From da8a1be55fd61031cc8f84807169bbdf6b6aa459 Mon Sep 17 00:00:00 2001 From: benjaminrocks Date: Wed, 22 Jun 2022 14:31:05 +0100 Subject: [PATCH] feat: add page interaction parameters --- src/prefabs/types/interactions.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/prefabs/types/interactions.ts b/src/prefabs/types/interactions.ts index c01acda4..64efd67b 100644 --- a/src/prefabs/types/interactions.ts +++ b/src/prefabs/types/interactions.ts @@ -63,10 +63,18 @@ export interface ParameterOptionWithComponentRef { }; } +export interface ParameterOptionWithPageId { + name: string, + pageId: string, + id: string, + paramters?: Record +} + export type PrefabInteractionParameter = | ParameterOptionWithId | ParameterOptionWithPath - | ParameterOptionWithComponentRef; + | ParameterOptionWithComponentRef + | ParameterOptionWithPageId; export interface PrefabCustomInteraction extends BasePrefabInteraction { type: InteractionType.Custom