@syntrologie/runtime-sdk 2.4.0-canary.18 → 2.4.0-canary.19
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/actions/schema.d.ts +7256 -384
- package/dist/actions/schema.js +2 -2
- package/dist/actions/types.d.ts +7 -0
- package/dist/anchor/AnchorResolver.d.ts +18 -0
- package/dist/anchor/index.d.ts +2 -0
- package/dist/{chunk-LZLDT5DA.js → chunk-LR5AA5SE.js} +2 -2
- package/dist/{chunk-NR57IT54.js → chunk-LRN3K2VD.js} +282 -100
- package/dist/chunk-LRN3K2VD.js.map +7 -0
- package/dist/{chunk-4NYS7GAW.js → chunk-P5G4KT2U.js} +39 -6
- package/dist/chunk-P5G4KT2U.js.map +7 -0
- package/dist/config/schema.d.ts +448 -40
- package/dist/config/schema.js +1 -1
- package/dist/context/schema.d.ts +8 -8
- package/dist/decisions/schema.d.ts +424 -1408
- package/dist/decisions/schema.js +5 -1
- package/dist/decisions/types.d.ts +22 -0
- package/dist/events/registerConfigPredicates.d.ts +6 -10
- package/dist/events/schema.d.ts +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -77
- package/dist/index.js.map +3 -3
- package/dist/overlays/schema.d.ts +22 -22
- package/dist/react.js +3 -3
- package/dist/runtime.d.ts +3 -0
- package/dist/smart-canvas.esm.js +36 -37
- package/dist/smart-canvas.esm.js.map +4 -4
- package/dist/smart-canvas.js +318 -177
- package/dist/smart-canvas.js.map +4 -4
- package/dist/smart-canvas.min.js +36 -37
- package/dist/smart-canvas.min.js.map +4 -4
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/schema/canvas-config.schema.json +996 -56
- package/dist/chunk-4NYS7GAW.js.map +0 -7
- package/dist/chunk-NR57IT54.js.map +0 -7
- /package/dist/{chunk-LZLDT5DA.js.map → chunk-LR5AA5SE.js.map} +0 -0
|
@@ -125,13 +125,13 @@ export declare const TooltipStepZ: z.ZodObject<{
|
|
|
125
125
|
closeButton: z.ZodOptional<z.ZodBoolean>;
|
|
126
126
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
timeoutMs?: number | undefined;
|
|
129
128
|
onEsc?: boolean | undefined;
|
|
130
129
|
closeButton?: boolean | undefined;
|
|
131
|
-
}, {
|
|
132
130
|
timeoutMs?: number | undefined;
|
|
131
|
+
}, {
|
|
133
132
|
onEsc?: boolean | undefined;
|
|
134
133
|
closeButton?: boolean | undefined;
|
|
134
|
+
timeoutMs?: number | undefined;
|
|
135
135
|
}>>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
137
|
kind: "tooltip";
|
|
@@ -162,9 +162,9 @@ export declare const TooltipStepZ: z.ZodObject<{
|
|
|
162
162
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
163
163
|
blocking?: boolean | undefined;
|
|
164
164
|
dismiss?: {
|
|
165
|
-
timeoutMs?: number | undefined;
|
|
166
165
|
onEsc?: boolean | undefined;
|
|
167
166
|
closeButton?: boolean | undefined;
|
|
167
|
+
timeoutMs?: number | undefined;
|
|
168
168
|
} | undefined;
|
|
169
169
|
offsetPx?: number | undefined;
|
|
170
170
|
}, {
|
|
@@ -196,9 +196,9 @@ export declare const TooltipStepZ: z.ZodObject<{
|
|
|
196
196
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
197
197
|
blocking?: boolean | undefined;
|
|
198
198
|
dismiss?: {
|
|
199
|
-
timeoutMs?: number | undefined;
|
|
200
199
|
onEsc?: boolean | undefined;
|
|
201
200
|
closeButton?: boolean | undefined;
|
|
201
|
+
timeoutMs?: number | undefined;
|
|
202
202
|
} | undefined;
|
|
203
203
|
offsetPx?: number | undefined;
|
|
204
204
|
}>;
|
|
@@ -282,12 +282,12 @@ export declare const HighlightStepZ: z.ZodObject<{
|
|
|
282
282
|
onEsc: z.ZodOptional<z.ZodBoolean>;
|
|
283
283
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
284
284
|
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
timeoutMs?: number | undefined;
|
|
286
285
|
onEsc?: boolean | undefined;
|
|
286
|
+
timeoutMs?: number | undefined;
|
|
287
287
|
onClickOutside?: boolean | undefined;
|
|
288
288
|
}, {
|
|
289
|
-
timeoutMs?: number | undefined;
|
|
290
289
|
onEsc?: boolean | undefined;
|
|
290
|
+
timeoutMs?: number | undefined;
|
|
291
291
|
onClickOutside?: boolean | undefined;
|
|
292
292
|
}>>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -316,8 +316,8 @@ export declare const HighlightStepZ: z.ZodObject<{
|
|
|
316
316
|
opacity?: number | undefined;
|
|
317
317
|
} | undefined;
|
|
318
318
|
dismiss?: {
|
|
319
|
-
timeoutMs?: number | undefined;
|
|
320
319
|
onEsc?: boolean | undefined;
|
|
320
|
+
timeoutMs?: number | undefined;
|
|
321
321
|
onClickOutside?: boolean | undefined;
|
|
322
322
|
} | undefined;
|
|
323
323
|
copy?: string | undefined;
|
|
@@ -352,8 +352,8 @@ export declare const HighlightStepZ: z.ZodObject<{
|
|
|
352
352
|
opacity?: number | undefined;
|
|
353
353
|
} | undefined;
|
|
354
354
|
dismiss?: {
|
|
355
|
-
timeoutMs?: number | undefined;
|
|
356
355
|
onEsc?: boolean | undefined;
|
|
356
|
+
timeoutMs?: number | undefined;
|
|
357
357
|
onClickOutside?: boolean | undefined;
|
|
358
358
|
} | undefined;
|
|
359
359
|
copy?: string | undefined;
|
|
@@ -441,13 +441,13 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
441
441
|
closeButton: z.ZodOptional<z.ZodBoolean>;
|
|
442
442
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
443
443
|
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
timeoutMs?: number | undefined;
|
|
445
444
|
onEsc?: boolean | undefined;
|
|
446
445
|
closeButton?: boolean | undefined;
|
|
447
|
-
}, {
|
|
448
446
|
timeoutMs?: number | undefined;
|
|
447
|
+
}, {
|
|
449
448
|
onEsc?: boolean | undefined;
|
|
450
449
|
closeButton?: boolean | undefined;
|
|
450
|
+
timeoutMs?: number | undefined;
|
|
451
451
|
}>>;
|
|
452
452
|
}, "strip", z.ZodTypeAny, {
|
|
453
453
|
kind: "tooltip";
|
|
@@ -478,9 +478,9 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
478
478
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
479
479
|
blocking?: boolean | undefined;
|
|
480
480
|
dismiss?: {
|
|
481
|
-
timeoutMs?: number | undefined;
|
|
482
481
|
onEsc?: boolean | undefined;
|
|
483
482
|
closeButton?: boolean | undefined;
|
|
483
|
+
timeoutMs?: number | undefined;
|
|
484
484
|
} | undefined;
|
|
485
485
|
offsetPx?: number | undefined;
|
|
486
486
|
}, {
|
|
@@ -512,9 +512,9 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
512
512
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
513
513
|
blocking?: boolean | undefined;
|
|
514
514
|
dismiss?: {
|
|
515
|
-
timeoutMs?: number | undefined;
|
|
516
515
|
onEsc?: boolean | undefined;
|
|
517
516
|
closeButton?: boolean | undefined;
|
|
517
|
+
timeoutMs?: number | undefined;
|
|
518
518
|
} | undefined;
|
|
519
519
|
offsetPx?: number | undefined;
|
|
520
520
|
}>, z.ZodObject<{
|
|
@@ -597,12 +597,12 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
597
597
|
onEsc: z.ZodOptional<z.ZodBoolean>;
|
|
598
598
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
timeoutMs?: number | undefined;
|
|
601
600
|
onEsc?: boolean | undefined;
|
|
601
|
+
timeoutMs?: number | undefined;
|
|
602
602
|
onClickOutside?: boolean | undefined;
|
|
603
603
|
}, {
|
|
604
|
-
timeoutMs?: number | undefined;
|
|
605
604
|
onEsc?: boolean | undefined;
|
|
605
|
+
timeoutMs?: number | undefined;
|
|
606
606
|
onClickOutside?: boolean | undefined;
|
|
607
607
|
}>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -631,8 +631,8 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
631
631
|
opacity?: number | undefined;
|
|
632
632
|
} | undefined;
|
|
633
633
|
dismiss?: {
|
|
634
|
-
timeoutMs?: number | undefined;
|
|
635
634
|
onEsc?: boolean | undefined;
|
|
635
|
+
timeoutMs?: number | undefined;
|
|
636
636
|
onClickOutside?: boolean | undefined;
|
|
637
637
|
} | undefined;
|
|
638
638
|
copy?: string | undefined;
|
|
@@ -667,8 +667,8 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
667
667
|
opacity?: number | undefined;
|
|
668
668
|
} | undefined;
|
|
669
669
|
dismiss?: {
|
|
670
|
-
timeoutMs?: number | undefined;
|
|
671
670
|
onEsc?: boolean | undefined;
|
|
671
|
+
timeoutMs?: number | undefined;
|
|
672
672
|
onClickOutside?: boolean | undefined;
|
|
673
673
|
} | undefined;
|
|
674
674
|
copy?: string | undefined;
|
|
@@ -708,9 +708,9 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
708
708
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
709
709
|
blocking?: boolean | undefined;
|
|
710
710
|
dismiss?: {
|
|
711
|
-
timeoutMs?: number | undefined;
|
|
712
711
|
onEsc?: boolean | undefined;
|
|
713
712
|
closeButton?: boolean | undefined;
|
|
713
|
+
timeoutMs?: number | undefined;
|
|
714
714
|
} | undefined;
|
|
715
715
|
offsetPx?: number | undefined;
|
|
716
716
|
} | {
|
|
@@ -739,8 +739,8 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
739
739
|
opacity?: number | undefined;
|
|
740
740
|
} | undefined;
|
|
741
741
|
dismiss?: {
|
|
742
|
-
timeoutMs?: number | undefined;
|
|
743
742
|
onEsc?: boolean | undefined;
|
|
743
|
+
timeoutMs?: number | undefined;
|
|
744
744
|
onClickOutside?: boolean | undefined;
|
|
745
745
|
} | undefined;
|
|
746
746
|
copy?: string | undefined;
|
|
@@ -783,9 +783,9 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
783
783
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
784
784
|
blocking?: boolean | undefined;
|
|
785
785
|
dismiss?: {
|
|
786
|
-
timeoutMs?: number | undefined;
|
|
787
786
|
onEsc?: boolean | undefined;
|
|
788
787
|
closeButton?: boolean | undefined;
|
|
788
|
+
timeoutMs?: number | undefined;
|
|
789
789
|
} | undefined;
|
|
790
790
|
offsetPx?: number | undefined;
|
|
791
791
|
} | {
|
|
@@ -814,8 +814,8 @@ export declare const CanvasRecipeZ: z.ZodObject<{
|
|
|
814
814
|
opacity?: number | undefined;
|
|
815
815
|
} | undefined;
|
|
816
816
|
dismiss?: {
|
|
817
|
-
timeoutMs?: number | undefined;
|
|
818
817
|
onEsc?: boolean | undefined;
|
|
818
|
+
timeoutMs?: number | undefined;
|
|
819
819
|
onClickOutside?: boolean | undefined;
|
|
820
820
|
} | undefined;
|
|
821
821
|
copy?: string | undefined;
|
|
@@ -859,9 +859,9 @@ export declare function validateRecipe(json: unknown): {
|
|
|
859
859
|
placement?: "top" | "right" | "bottom" | "left" | "auto" | undefined;
|
|
860
860
|
blocking?: boolean | undefined;
|
|
861
861
|
dismiss?: {
|
|
862
|
-
timeoutMs?: number | undefined;
|
|
863
862
|
onEsc?: boolean | undefined;
|
|
864
863
|
closeButton?: boolean | undefined;
|
|
864
|
+
timeoutMs?: number | undefined;
|
|
865
865
|
} | undefined;
|
|
866
866
|
offsetPx?: number | undefined;
|
|
867
867
|
} | {
|
|
@@ -890,8 +890,8 @@ export declare function validateRecipe(json: unknown): {
|
|
|
890
890
|
opacity?: number | undefined;
|
|
891
891
|
} | undefined;
|
|
892
892
|
dismiss?: {
|
|
893
|
-
timeoutMs?: number | undefined;
|
|
894
893
|
onEsc?: boolean | undefined;
|
|
894
|
+
timeoutMs?: number | undefined;
|
|
895
895
|
onClickOutside?: boolean | undefined;
|
|
896
896
|
} | undefined;
|
|
897
897
|
copy?: string | undefined;
|
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Syntro
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LRN3K2VD.js";
|
|
4
|
+
import "./chunk-LR5AA5SE.js";
|
|
5
|
+
import "./chunk-P5G4KT2U.js";
|
|
6
6
|
|
|
7
7
|
// src/react.tsx
|
|
8
8
|
import { createContext, useContext, useEffect, useRef, useState } from "react";
|
package/dist/runtime.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* The runtime receives the config and makes decisions using DecisionStrategy.
|
|
15
15
|
*/
|
|
16
16
|
import { type ActionEngine, type ExecutorRegistry } from './actions';
|
|
17
|
+
import { type AnchorResolver } from './anchor';
|
|
17
18
|
import { type AppRegistry } from './apps';
|
|
18
19
|
import { type ContextManager } from './context/ContextManager';
|
|
19
20
|
import type { DecisionResult, DecisionStrategy, RouteFilter } from './decisions/types';
|
|
@@ -60,6 +61,8 @@ export interface SmartCanvasRuntime {
|
|
|
60
61
|
apps: AppRegistry;
|
|
61
62
|
/** Event accumulator for event_count conditions */
|
|
62
63
|
accumulator: EventAccumulator;
|
|
64
|
+
/** Centralized anchor resolver for DOM observation */
|
|
65
|
+
anchorResolver: AnchorResolver;
|
|
63
66
|
/** Centralized navigation monitor for History API interception */
|
|
64
67
|
navigation: NavigationMonitor;
|
|
65
68
|
/** Runtime version */
|