@syntrologie/adapt-nav 2.15.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NavWidgetLit.d.ts.map +1 -1
- package/dist/chunk-HMLY7DHA.js +16 -0
- package/dist/chunk-HMLY7DHA.js.map +7 -0
- package/dist/chunk-ZYHZ6JAD.js +447 -0
- package/dist/chunk-ZYHZ6JAD.js.map +7 -0
- package/dist/editor.d.ts +42 -21
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +310 -313
- package/dist/editor.js.map +7 -0
- package/dist/resolveNavTarget.d.ts +61 -0
- package/dist/resolveNavTarget.d.ts.map +1 -0
- package/dist/resolveNavTarget.test.d.ts +2 -0
- package/dist/resolveNavTarget.test.d.ts.map +1 -0
- package/dist/runtime.d.ts +3 -4
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +612 -221
- package/dist/runtime.js.map +7 -0
- package/dist/schema.d.ts +182 -72
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +155 -125
- package/dist/schema.js.map +7 -0
- package/package.json +9 -24
- package/dist/NavWidget.d.ts +0 -31
- package/dist/NavWidget.d.ts.map +0 -1
- package/dist/NavWidget.js +0 -476
- package/dist/NavWidgetLit.js +0 -495
- package/dist/NavWidgetLit.test.js +0 -199
- package/dist/cdn.d.ts +0 -62
- package/dist/cdn.d.ts.map +0 -1
- package/dist/cdn.js +0 -48
- package/dist/editor-lit.d.ts +0 -49
- package/dist/editor-lit.d.ts.map +0 -1
- package/dist/editor-lit.js +0 -319
- package/dist/runtime-lit.d.ts +0 -108
- package/dist/runtime-lit.d.ts.map +0 -1
- package/dist/runtime-lit.js +0 -241
- package/dist/summarize.js +0 -51
- package/dist/types.js +0 -18
- package/node_modules/@syntro/design-system/README.md +0 -335
- package/node_modules/@syntro/design-system/dist/assets/syntrologie-logo.svg +0 -21
- package/node_modules/@syntro/design-system/dist/assets/syntrologie-logomark.svg +0 -10
- package/node_modules/@syntro/design-system/dist/index.d.ts +0 -8
- package/node_modules/@syntro/design-system/dist/index.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/index.js +0 -7
- package/node_modules/@syntro/design-system/dist/tailwind-preset.d.ts +0 -19
- package/node_modules/@syntro/design-system/dist/tailwind-preset.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/tailwind-preset.js +0 -455
- package/node_modules/@syntro/design-system/dist/tokens/colors.css +0 -464
- package/node_modules/@syntro/design-system/dist/tokens/colors.d.ts +0 -874
- package/node_modules/@syntro/design-system/dist/tokens/colors.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/tokens/colors.js +0 -564
- package/node_modules/@syntro/design-system/dist/tokens/effects.css +0 -43
- package/node_modules/@syntro/design-system/dist/tokens/effects.d.ts +0 -139
- package/node_modules/@syntro/design-system/dist/tokens/effects.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/tokens/effects.js +0 -121
- package/node_modules/@syntro/design-system/dist/tokens/index.d.ts +0 -12
- package/node_modules/@syntro/design-system/dist/tokens/index.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/tokens/index.js +0 -11
- package/node_modules/@syntro/design-system/dist/tokens/panel-shell.d.ts +0 -93
- package/node_modules/@syntro/design-system/dist/tokens/panel-shell.d.ts.map +0 -1
- package/node_modules/@syntro/design-system/dist/tokens/panel-shell.js +0 -72
- package/node_modules/@syntro/design-system/package.json +0 -55
- package/node_modules/@syntro/design-system/src/assets/syntrologie-logo.svg +0 -21
- package/node_modules/@syntro/design-system/src/assets/syntrologie-logomark.svg +0 -10
- package/node_modules/@syntrologie/sdk-contracts/dist/index.d.ts +0 -129
- package/node_modules/@syntrologie/sdk-contracts/dist/index.js +0 -17
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.d.ts +0 -2296
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.js +0 -361
- package/node_modules/@syntrologie/sdk-contracts/package.json +0 -33
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts +0 -2
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.js +0 -3
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts +0 -34
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +0 -161
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPickerLit.d.ts +0 -84
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPickerLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPickerLit.js +0 -323
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.js +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggleLit.d.ts +0 -25
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggleLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggleLit.js +0 -55
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +0 -23
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +0 -40
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLineLit.d.ts +0 -33
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLineLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLineLit.js +0 -118
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +0 -22
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadgeLit.d.ts +0 -32
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadgeLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadgeLit.js +0 -68
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.js +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSectionLit.d.ts +0 -34
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSectionLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSectionLit.js +0 -57
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButtonLit.d.ts +0 -13
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButtonLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButtonLit.js +0 -31
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBodyLit.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBodyLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBodyLit.js +0 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts +0 -13
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.js +0 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCardLit.d.ts +0 -36
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCardLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCardLit.js +0 -102
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooterLit.d.ts +0 -20
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooterLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooterLit.js +0 -48
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeaderLit.d.ts +0 -16
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeaderLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeaderLit.js +0 -25
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.js +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInputLit.d.ts +0 -66
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInputLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInputLit.js +0 -87
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayoutLit.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayoutLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayoutLit.js +0 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +0 -25
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +0 -390
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShellLit.d.ts +0 -66
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShellLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShellLit.js +0 -528
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.js +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelectLit.d.ts +0 -41
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelectLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelectLit.js +0 -63
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.js +0 -17
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextareaLit.d.ts +0 -55
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextareaLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextareaLit.js +0 -92
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts +0 -32
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +0 -85
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlightLit.d.ts +0 -90
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlightLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlightLit.js +0 -242
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts +0 -6
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyStateLit.d.ts +0 -12
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyStateLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyStateLit.js +0 -21
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.js +0 -5
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeaderLit.d.ts +0 -21
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeaderLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeaderLit.js +0 -33
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +0 -12
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +0 -40
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourneyLit.d.ts +0 -28
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourneyLit.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourneyLit.js +0 -121
- package/node_modules/@syntrologie/shared-editor-ui/dist/controllers/PanelShellController.d.ts +0 -110
- package/node_modules/@syntrologie/shared-editor-ui/dist/controllers/PanelShellController.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/controllers/PanelShellController.js +0 -476
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +0 -26
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +0 -202
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.js +0 -46
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +0 -24
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.js +0 -86
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +0 -36
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +0 -26
- package/node_modules/@syntrologie/shared-editor-ui/dist/lit-elements.d.ts +0 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/lit-elements.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/lit-elements.js +0 -14
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts +0 -33
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.js +0 -68
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts +0 -22
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.js +0 -143
- package/node_modules/@syntrologie/shared-editor-ui/package.json +0 -55
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @syntrologie/sdk-contracts
|
|
3
|
-
*
|
|
4
|
-
* Shared TypeScript contracts between runtime-sdk and adaptive packages.
|
|
5
|
-
* Executor types + shared Zod schemas for decision strategies and conditions.
|
|
6
|
-
*/
|
|
7
|
-
export { AnchorIdZ, AnchorVisibleConditionZ, COUNTABLE_EVENTS, type ConditionSchema, ConditionZ, CooldownActiveConditionZ, CountableEventZ, CounterDefZ, type DecisionStrategySchema, DecisionStrategyZ, DismissedConditionZ, ELEMENT_MATCH_FIELDS, EventCountConditionZ, EventOccurredConditionZ, type EventScopeSchema, EventScopeZ, ExternalStrategyZ, FrequencyLimitConditionZ, MATCH_FIELD_DOCS, MatchOpZ, ModelStrategyZ, NotifyZ, PageUrlConditionZ, RouteConditionZ, type RuleSchema, RuleStrategyZ, RuleZ, ScoreStrategyZ, SESSION_METRIC_KEYS, SessionMetricConditionZ, SessionMetricKeyZ, StateEqualsConditionZ, TRIGGER_EXAMPLES, type TriggerWhenSchema, TriggerWhenZ, ViewportConditionZ, } from './schemas.js';
|
|
8
|
-
/** Route-scoped anchor identifier */
|
|
9
|
-
export interface AnchorId {
|
|
10
|
-
/** CSS selector for the anchor element */
|
|
11
|
-
selector: string;
|
|
12
|
-
/** Route pattern(s) where this anchor applies */
|
|
13
|
-
route: string | string[];
|
|
14
|
-
}
|
|
15
|
-
/** Highlight style configuration */
|
|
16
|
-
export interface HighlightStyle {
|
|
17
|
-
/** Ring color (default: "#5b8cff") */
|
|
18
|
-
color?: string;
|
|
19
|
-
/** Backdrop scrim opacity 0-1 (default: 0.55) */
|
|
20
|
-
scrimOpacity?: number;
|
|
21
|
-
/** Padding between element and ring (default: 12px) */
|
|
22
|
-
paddingPx?: number;
|
|
23
|
-
/** Ring corner radius (default: 12px) */
|
|
24
|
-
radiusPx?: number;
|
|
25
|
-
}
|
|
26
|
-
/** Badge position relative to anchor */
|
|
27
|
-
export type BadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
28
|
-
/** CTA button configuration for tooltips/modals */
|
|
29
|
-
export interface CtaButton {
|
|
30
|
-
label: string;
|
|
31
|
-
actionId: string;
|
|
32
|
-
primary?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Modal content configuration */
|
|
35
|
-
export interface ModalContent {
|
|
36
|
-
title?: string;
|
|
37
|
-
body: string;
|
|
38
|
-
}
|
|
39
|
-
/** Tooltip content configuration (action typed as unknown — packages with ActionStep keep local narrowing) */
|
|
40
|
-
export interface TooltipContent {
|
|
41
|
-
title?: string;
|
|
42
|
-
body: string;
|
|
43
|
-
cta?: {
|
|
44
|
-
label: string;
|
|
45
|
-
action: unknown;
|
|
46
|
-
};
|
|
47
|
-
ctaButtons?: CtaButton[];
|
|
48
|
-
}
|
|
49
|
-
/** Tooltip trigger mode */
|
|
50
|
-
export type TooltipTrigger = 'immediate' | 'hover' | 'click';
|
|
51
|
-
/** Tooltip lifecycle — when the action completes (for sequences) */
|
|
52
|
-
export type TooltipWaitFor = 'dismissed' | 'cta-click' | `timeout:${number}`;
|
|
53
|
-
/** Modal lifecycle — when the action completes (for sequences) */
|
|
54
|
-
export type ModalWaitFor = 'dismissed' | 'cta-click' | `timeout:${number}`;
|
|
55
|
-
/** Position where HTML/content should be inserted */
|
|
56
|
-
export type InsertPosition = 'before' | 'after' | 'prepend' | 'append' | 'replace';
|
|
57
|
-
/** Deep-link target for opening a specific tile/item in the canvas sidebar */
|
|
58
|
-
export interface DeepLink {
|
|
59
|
-
tileId: string;
|
|
60
|
-
itemId?: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Scoped event filtering for event_count conditions.
|
|
64
|
-
* The adaptive registers a predicate built from this scope.
|
|
65
|
-
*/
|
|
66
|
-
export interface EventScope {
|
|
67
|
-
/** Event names to count */
|
|
68
|
-
events: string[];
|
|
69
|
-
/** URL path substring filter */
|
|
70
|
-
urlContains?: string;
|
|
71
|
-
/** Exact prop matching (e.g. { tagName: "a" }) */
|
|
72
|
-
props?: Record<string, string | number | boolean>;
|
|
73
|
-
}
|
|
74
|
-
/** Props passed to editor panel components by the ModularEditorPanel host. */
|
|
75
|
-
export interface EditorPanelProps {
|
|
76
|
-
config: Record<string, unknown>;
|
|
77
|
-
onChange: (config: Record<string, unknown>) => void;
|
|
78
|
-
editor: {
|
|
79
|
-
setDirty: (dirty: boolean) => void;
|
|
80
|
-
navigateHome: () => Promise<boolean>;
|
|
81
|
-
save: () => Promise<void>;
|
|
82
|
-
publish: (captureScreenshot?: boolean) => Promise<void>;
|
|
83
|
-
/** Navigate the target page to a different route (preserves editor params). */
|
|
84
|
-
navigateTo: (route: string) => Promise<void>;
|
|
85
|
-
/** Show a persistent blue highlight on the element matching this selector. */
|
|
86
|
-
highlightElement: (selector: string) => void;
|
|
87
|
-
/** Remove the persistent element highlight. */
|
|
88
|
-
clearHighlight: () => void;
|
|
89
|
-
/** Get the current page route (pathname). */
|
|
90
|
-
getCurrentRoute: () => string;
|
|
91
|
-
/** Push a temporary config to the live page preview without saving to state. */
|
|
92
|
-
previewConfig: (config: Record<string, unknown>) => void;
|
|
93
|
-
/** Global before/after preview mode set by the panel's toggle. */
|
|
94
|
-
previewMode?: 'before' | 'after';
|
|
95
|
-
/** Flat action index to open in edit mode (from accordion navigation). */
|
|
96
|
-
initialEditKey?: string;
|
|
97
|
-
/** Open the editor in create mode. */
|
|
98
|
-
initialCreate?: boolean;
|
|
99
|
-
/** Clear the initial navigation state (call after consuming). */
|
|
100
|
-
clearInitialState?: () => void;
|
|
101
|
-
/** Get dismissed keys persisted in navigation context. */
|
|
102
|
-
getDismissedKeys?: () => Set<string>;
|
|
103
|
-
/** Sync dismissed keys back to navigation context. */
|
|
104
|
-
setDismissedKeys?: (keys: Set<string>) => void;
|
|
105
|
-
/** Register a back handler shown in the panel header. Pass null to clear. */
|
|
106
|
-
setBackHandler?: (handler: (() => void) | null) => void;
|
|
107
|
-
};
|
|
108
|
-
platformClient?: unknown;
|
|
109
|
-
}
|
|
110
|
-
/** Cleanup function returned by executors */
|
|
111
|
-
export type ExecutorCleanup = () => void | Promise<void>;
|
|
112
|
-
/** Update function for actions that support in-place updates */
|
|
113
|
-
export type ExecutorUpdate = (changes: Record<string, unknown>) => void | Promise<void>;
|
|
114
|
-
/** Result returned by action executors */
|
|
115
|
-
export interface ExecutorResult {
|
|
116
|
-
cleanup: ExecutorCleanup;
|
|
117
|
-
updateFn?: ExecutorUpdate;
|
|
118
|
-
}
|
|
119
|
-
/** Context passed to action executors by the runtime */
|
|
120
|
-
export interface ExecutorContext {
|
|
121
|
-
overlayRoot: HTMLElement;
|
|
122
|
-
resolveAnchor: (anchorId: AnchorId) => HTMLElement | null;
|
|
123
|
-
waitForAnchor?: (anchorId: AnchorId, timeoutMs?: number) => Promise<HTMLElement | null>;
|
|
124
|
-
generateId: () => string;
|
|
125
|
-
publishEvent: (name: string, props?: Record<string, unknown>) => void;
|
|
126
|
-
adaptiveId?: string;
|
|
127
|
-
}
|
|
128
|
-
/** Executor function signature */
|
|
129
|
-
export type ActionExecutor<T = unknown> = (action: T, context: ExecutorContext) => Promise<ExecutorResult>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @syntrologie/sdk-contracts
|
|
3
|
-
*
|
|
4
|
-
* Shared TypeScript contracts between runtime-sdk and adaptive packages.
|
|
5
|
-
* Executor types + shared Zod schemas for decision strategies and conditions.
|
|
6
|
-
*/
|
|
7
|
-
export {
|
|
8
|
-
// Anchor ID schema
|
|
9
|
-
AnchorIdZ, AnchorVisibleConditionZ,
|
|
10
|
-
// Trigger vocabulary — canonical enums, examples, and match field docs
|
|
11
|
-
COUNTABLE_EVENTS, ConditionZ, CooldownActiveConditionZ, CountableEventZ, CounterDefZ, DecisionStrategyZ, DismissedConditionZ, ELEMENT_MATCH_FIELDS, EventCountConditionZ, EventOccurredConditionZ,
|
|
12
|
-
// Shared schemas
|
|
13
|
-
EventScopeZ, ExternalStrategyZ, FrequencyLimitConditionZ, MATCH_FIELD_DOCS, MatchOpZ, ModelStrategyZ, NotifyZ,
|
|
14
|
-
// Condition schemas
|
|
15
|
-
PageUrlConditionZ, RouteConditionZ, RuleStrategyZ,
|
|
16
|
-
// Strategy schemas
|
|
17
|
-
RuleZ, ScoreStrategyZ, SESSION_METRIC_KEYS, SessionMetricConditionZ, SessionMetricKeyZ, StateEqualsConditionZ, TRIGGER_EXAMPLES, TriggerWhenZ, ViewportConditionZ, } from './schemas.js';
|