@syntrologie/runtime-sdk 2.4.0-canary.24 → 2.4.0-canary.25
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.js +2 -2
- package/dist/{chunk-LD22WJ44.js → chunk-2WDY7YGN.js} +78 -40
- package/dist/chunk-2WDY7YGN.js.map +7 -0
- package/dist/{chunk-WILWIL6L.js → chunk-7OZFA3CQ.js} +5 -2
- package/dist/chunk-7OZFA3CQ.js.map +7 -0
- package/dist/{chunk-NM5Y27GX.js → chunk-YZ27S3HX.js} +2 -2
- package/dist/config/schema.d.ts +81 -0
- package/dist/config/schema.js +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +2 -2
- package/dist/react.js +3 -3
- package/dist/smart-canvas.esm.js +31 -31
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +68 -30
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +31 -31
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/schema/canvas-config.schema.json +9 -0
- package/scripts/validate-config.mjs +71 -0
- package/dist/chunk-LD22WJ44.js.map +0 -7
- package/dist/chunk-WILWIL6L.js.map +0 -7
- /package/dist/{chunk-NM5Y27GX.js.map → chunk-YZ27S3HX.js.map} +0 -0
|
@@ -34,7 +34,10 @@ var CanvasElementConfigZ = z.object({
|
|
|
34
34
|
background: z.string().optional(),
|
|
35
35
|
blur: z.string().optional(),
|
|
36
36
|
border: z.string().optional(),
|
|
37
|
-
width: z.string().optional()
|
|
37
|
+
width: z.string().optional(),
|
|
38
|
+
transitionDuration: z.string().optional(),
|
|
39
|
+
transitionEasing: z.string().optional(),
|
|
40
|
+
transitionFade: z.string().optional()
|
|
38
41
|
});
|
|
39
42
|
var LauncherElementConfigZ = z.object({
|
|
40
43
|
background: z.string().optional(),
|
|
@@ -161,4 +164,4 @@ export {
|
|
|
161
164
|
CanvasConfigResponseZ,
|
|
162
165
|
configSchemas
|
|
163
166
|
};
|
|
164
|
-
//# sourceMappingURL=chunk-
|
|
167
|
+
//# sourceMappingURL=chunk-7OZFA3CQ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/config/schema.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Zod schemas for canvas configuration types.\n *\n * Single source of truth for tile, theme, launcher, and top-level\n * CanvasConfigResponse shapes. These schemas are converted to JSON Schema\n * during build and merged into the unified canvas-config.schema.json.\n *\n * Design decisions:\n * - `.strict()` on top-level objects \u2192 `additionalProperties: false` in JSON Schema\n * - Element sub-schemas (canvas, tile, etc.) are NOT strict to allow future expansion\n */\n\nimport { z } from 'zod';\nimport { ActivationConfigZ } from '../decisions/schema';\n\n// ============================================================================\n// Tile Notification Sub-Types\n// ============================================================================\n\nconst NotificationDeepLinkZ = z\n .object({\n tileId: z.string(),\n itemId: z.string().optional(),\n })\n .strict();\n\nconst TileNotificationRuleZ = z\n .object({\n on: z.string(),\n title: z.string(),\n body: z.string().optional(),\n icon: z.string().optional(),\n ttl: z.number().optional(),\n cooldown: z.number().optional(),\n deepLink: NotificationDeepLinkZ.optional(),\n })\n .strict();\n\n// ============================================================================\n// Tile\n// ============================================================================\n\nexport const TileZ = z\n .object({\n id: z.string(),\n title: z.string().optional(),\n subtitle: z.string().optional(),\n icon: z.string().optional(),\n priority: z.number().optional(),\n widget: z.string(),\n props: z.record(z.unknown()).optional(),\n activation: ActivationConfigZ.optional(),\n notifications: z.array(TileNotificationRuleZ).optional(),\n })\n .strict();\n\n// ============================================================================\n// Theme Config \u2014 Element Sub-Schemas\n// ============================================================================\n\nexport const CanvasElementConfigZ = z.object({\n position: z.enum(['left', 'right']).optional(),\n layout: z.enum(['overlay', 'push']).optional(),\n background: z.string().optional(),\n blur: z.string().optional(),\n border: z.string().optional(),\n width: z.string().optional(),\n transitionDuration: z.string().optional(),\n transitionEasing: z.string().optional(),\n transitionFade: z.string().optional(),\n});\n\nexport const LauncherElementConfigZ = z.object({\n background: z.string().optional(),\n backgroundHover: z.string().optional(),\n color: z.string().optional(),\n size: z.string().optional(),\n shadow: z.string().optional(),\n borderRadius: z.string().optional(),\n});\n\nexport const TileElementConfigZ = z.object({\n background: z.string().optional(),\n backgroundHover: z.string().optional(),\n border: z.string().optional(),\n borderRadius: z.string().optional(),\n shadow: z.string().optional(),\n titleColor: z.string().optional(),\n textColor: z.string().optional(),\n iconBackground: z.string().optional(),\n iconShadow: z.string().optional(),\n headerPadding: z.string().optional(),\n bodyPadding: z.string().optional(),\n gap: z.string().optional(),\n});\n\nexport const OverlayElementConfigZ = z.object({\n background: z.string().optional(),\n textColor: z.string().optional(),\n titleColor: z.string().optional(),\n arrowColor: z.string().optional(),\n arrowSize: z.string().optional(),\n border: z.string().optional(),\n borderRadius: z.string().optional(),\n scrimOpacity: z.string().optional(),\n highlightRing: z.string().optional(),\n});\n\nexport const NotificationElementConfigZ = z.object({\n background: z.string().optional(),\n textColor: z.string().optional(),\n textSecondaryColor: z.string().optional(),\n border: z.string().optional(),\n borderRadius: z.string().optional(),\n successColor: z.string().optional(),\n warningColor: z.string().optional(),\n errorColor: z.string().optional(),\n iconBackground: z.string().optional(),\n progressGradient: z.string().optional(),\n});\n\nexport const ContentElementConfigZ = z.object({\n background: z.string().optional(),\n backgroundHover: z.string().optional(),\n border: z.string().optional(),\n borderRadius: z.string().optional(),\n textColor: z.string().optional(),\n textSecondaryColor: z.string().optional(),\n // Accordion layout\n itemDivider: z.string().optional(),\n itemGap: z.string().optional(),\n itemPadding: z.string().optional(),\n itemFontSize: z.string().optional(),\n // Expanded content\n bodyPadding: z.string().optional(),\n bodyFontSize: z.string().optional(),\n // Category headers\n categoryPadding: z.string().optional(),\n categoryGap: z.string().optional(),\n categoryFontSize: z.string().optional(),\n // Search\n searchBackground: z.string().optional(),\n searchColor: z.string().optional(),\n // Chevron\n chevronColor: z.string().optional(),\n});\n\n// ============================================================================\n// Theme Config \u2014 Top-Level\n// ============================================================================\n\nexport const CanvasThemeConfigZ = z\n .object({\n mode: z.enum(['dark', 'light']).optional(),\n fontFamily: z.string().optional(),\n colorPrimary: z.string().optional(),\n colorPrimaryHover: z.string().optional(),\n borderRadius: z.string().optional(),\n canvas: CanvasElementConfigZ.optional(),\n launcher: LauncherElementConfigZ.optional(),\n tile: TileElementConfigZ.optional(),\n overlay: OverlayElementConfigZ.optional(),\n notification: NotificationElementConfigZ.optional(),\n content: ContentElementConfigZ.optional(),\n })\n .strict();\n\n// ============================================================================\n// Launcher Config\n// ============================================================================\n\nexport const LauncherConfigZ = z\n .object({\n enabled: z.boolean().optional(),\n label: z.string().optional(),\n icon: z.string().optional(),\n position: z.string().optional(),\n animate: z.boolean().optional(),\n animationStyle: z.enum(['pulse', 'bounce', 'glow']).optional(),\n notificationCount: z.number().optional(),\n })\n .strict();\n\n// ============================================================================\n// Canvas Config Response (top-level)\n// ============================================================================\n\nexport const CanvasConfigResponseZ = z\n .object({\n schemaVersion: z.string().optional(),\n fetchedAt: z.string().datetime(),\n configVersion: z.string().optional(),\n canvasTitle: z.string().optional(),\n tiles: z.array(TileZ),\n actions: z.array(z.any()),\n theme: CanvasThemeConfigZ.optional(),\n launcher: LauncherConfigZ.optional(),\n verificationSteps: z.array(z.string()).optional(),\n })\n .strict();\n\n// ============================================================================\n// Export: Array for unified schema generation\n// ============================================================================\n\n/**\n * Config schemas for unified JSON Schema generation.\n * The generator imports this array and converts each to a JSON Schema $def.\n */\nexport const configSchemas = [\n { defName: 'tile', schema: TileZ },\n { defName: 'themeConfig', schema: CanvasThemeConfigZ },\n { defName: 'launcherConfig', schema: LauncherConfigZ },\n { defName: 'canvasConfigResponse', schema: CanvasConfigResponseZ },\n];\n\n// ============================================================================\n// Named Exports\n// ============================================================================\n\nexport { NotificationDeepLinkZ, TileNotificationRuleZ };\n"],
|
|
5
|
+
"mappings": ";;;;;AAYA,SAAS,SAA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ACN,eAAe,EAAE,OAAO,EAAE,SAAS;AAAA,EACnC,WAAW,EAAE,OAAO,EAAE,SAAS;AAAA,EAC/B,eAAe,EAAE,OAAO,EAAE,SAAS;AAAA,EACnC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,OAAO,EAAE,MAAM,KAAK;AAAA,EACpB,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC;AAAA,EACxB,OAAO,mBAAmB,SAAS;AAAA,EACnC,UAAU,gBAAgB,SAAS;AAAA,EACnC,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAClD,CAAC,EACA,OAAO;AAUH,IAAM,gBAAgB;AAAA,EAC3B,EAAE,SAAS,QAAQ,QAAQ,MAAM;AAAA,EACjC,EAAE,SAAS,eAAe,QAAQ,mBAAmB;AAAA,EACrD,EAAE,SAAS,kBAAkB,QAAQ,gBAAgB;AAAA,EACrD,EAAE,SAAS,wBAAwB,QAAQ,sBAAsB;AACnE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NotificationDeepLinkZ
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OZFA3CQ.js";
|
|
4
4
|
import {
|
|
5
5
|
TriggerWhenZ
|
|
6
6
|
} from "./chunk-BU4Z6PD7.js";
|
|
@@ -249,4 +249,4 @@ export {
|
|
|
249
249
|
TourZ,
|
|
250
250
|
coreActionStepSchemas
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-YZ27S3HX.js.map
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -195,6 +195,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
|
|
|
195
195
|
blur: z.ZodOptional<z.ZodString>;
|
|
196
196
|
border: z.ZodOptional<z.ZodString>;
|
|
197
197
|
width: z.ZodOptional<z.ZodString>;
|
|
198
|
+
transitionDuration: z.ZodOptional<z.ZodString>;
|
|
199
|
+
transitionEasing: z.ZodOptional<z.ZodString>;
|
|
200
|
+
transitionFade: z.ZodOptional<z.ZodString>;
|
|
198
201
|
}, "strip", z.ZodTypeAny, {
|
|
199
202
|
position?: "right" | "left" | undefined;
|
|
200
203
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -202,6 +205,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
|
|
|
202
205
|
blur?: string | undefined;
|
|
203
206
|
border?: string | undefined;
|
|
204
207
|
width?: string | undefined;
|
|
208
|
+
transitionDuration?: string | undefined;
|
|
209
|
+
transitionEasing?: string | undefined;
|
|
210
|
+
transitionFade?: string | undefined;
|
|
205
211
|
}, {
|
|
206
212
|
position?: "right" | "left" | undefined;
|
|
207
213
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -209,6 +215,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
|
|
|
209
215
|
blur?: string | undefined;
|
|
210
216
|
border?: string | undefined;
|
|
211
217
|
width?: string | undefined;
|
|
218
|
+
transitionDuration?: string | undefined;
|
|
219
|
+
transitionEasing?: string | undefined;
|
|
220
|
+
transitionFade?: string | undefined;
|
|
212
221
|
}>;
|
|
213
222
|
export declare const LauncherElementConfigZ: z.ZodObject<{
|
|
214
223
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -408,6 +417,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
|
|
|
408
417
|
blur: z.ZodOptional<z.ZodString>;
|
|
409
418
|
border: z.ZodOptional<z.ZodString>;
|
|
410
419
|
width: z.ZodOptional<z.ZodString>;
|
|
420
|
+
transitionDuration: z.ZodOptional<z.ZodString>;
|
|
421
|
+
transitionEasing: z.ZodOptional<z.ZodString>;
|
|
422
|
+
transitionFade: z.ZodOptional<z.ZodString>;
|
|
411
423
|
}, "strip", z.ZodTypeAny, {
|
|
412
424
|
position?: "right" | "left" | undefined;
|
|
413
425
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -415,6 +427,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
|
|
|
415
427
|
blur?: string | undefined;
|
|
416
428
|
border?: string | undefined;
|
|
417
429
|
width?: string | undefined;
|
|
430
|
+
transitionDuration?: string | undefined;
|
|
431
|
+
transitionEasing?: string | undefined;
|
|
432
|
+
transitionFade?: string | undefined;
|
|
418
433
|
}, {
|
|
419
434
|
position?: "right" | "left" | undefined;
|
|
420
435
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -422,6 +437,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
|
|
|
422
437
|
blur?: string | undefined;
|
|
423
438
|
border?: string | undefined;
|
|
424
439
|
width?: string | undefined;
|
|
440
|
+
transitionDuration?: string | undefined;
|
|
441
|
+
transitionEasing?: string | undefined;
|
|
442
|
+
transitionFade?: string | undefined;
|
|
425
443
|
}>>;
|
|
426
444
|
launcher: z.ZodOptional<z.ZodObject<{
|
|
427
445
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -652,6 +670,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
|
|
|
652
670
|
blur?: string | undefined;
|
|
653
671
|
border?: string | undefined;
|
|
654
672
|
width?: string | undefined;
|
|
673
|
+
transitionDuration?: string | undefined;
|
|
674
|
+
transitionEasing?: string | undefined;
|
|
675
|
+
transitionFade?: string | undefined;
|
|
655
676
|
} | undefined;
|
|
656
677
|
launcher?: {
|
|
657
678
|
size?: string | undefined;
|
|
@@ -731,6 +752,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
|
|
|
731
752
|
blur?: string | undefined;
|
|
732
753
|
border?: string | undefined;
|
|
733
754
|
width?: string | undefined;
|
|
755
|
+
transitionDuration?: string | undefined;
|
|
756
|
+
transitionEasing?: string | undefined;
|
|
757
|
+
transitionFade?: string | undefined;
|
|
734
758
|
} | undefined;
|
|
735
759
|
launcher?: {
|
|
736
760
|
size?: string | undefined;
|
|
@@ -939,6 +963,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
939
963
|
blur: z.ZodOptional<z.ZodString>;
|
|
940
964
|
border: z.ZodOptional<z.ZodString>;
|
|
941
965
|
width: z.ZodOptional<z.ZodString>;
|
|
966
|
+
transitionDuration: z.ZodOptional<z.ZodString>;
|
|
967
|
+
transitionEasing: z.ZodOptional<z.ZodString>;
|
|
968
|
+
transitionFade: z.ZodOptional<z.ZodString>;
|
|
942
969
|
}, "strip", z.ZodTypeAny, {
|
|
943
970
|
position?: "right" | "left" | undefined;
|
|
944
971
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -946,6 +973,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
946
973
|
blur?: string | undefined;
|
|
947
974
|
border?: string | undefined;
|
|
948
975
|
width?: string | undefined;
|
|
976
|
+
transitionDuration?: string | undefined;
|
|
977
|
+
transitionEasing?: string | undefined;
|
|
978
|
+
transitionFade?: string | undefined;
|
|
949
979
|
}, {
|
|
950
980
|
position?: "right" | "left" | undefined;
|
|
951
981
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -953,6 +983,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
953
983
|
blur?: string | undefined;
|
|
954
984
|
border?: string | undefined;
|
|
955
985
|
width?: string | undefined;
|
|
986
|
+
transitionDuration?: string | undefined;
|
|
987
|
+
transitionEasing?: string | undefined;
|
|
988
|
+
transitionFade?: string | undefined;
|
|
956
989
|
}>>;
|
|
957
990
|
launcher: z.ZodOptional<z.ZodObject<{
|
|
958
991
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,6 +1216,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
1183
1216
|
blur?: string | undefined;
|
|
1184
1217
|
border?: string | undefined;
|
|
1185
1218
|
width?: string | undefined;
|
|
1219
|
+
transitionDuration?: string | undefined;
|
|
1220
|
+
transitionEasing?: string | undefined;
|
|
1221
|
+
transitionFade?: string | undefined;
|
|
1186
1222
|
} | undefined;
|
|
1187
1223
|
launcher?: {
|
|
1188
1224
|
size?: string | undefined;
|
|
@@ -1262,6 +1298,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
1262
1298
|
blur?: string | undefined;
|
|
1263
1299
|
border?: string | undefined;
|
|
1264
1300
|
width?: string | undefined;
|
|
1301
|
+
transitionDuration?: string | undefined;
|
|
1302
|
+
transitionEasing?: string | undefined;
|
|
1303
|
+
transitionFade?: string | undefined;
|
|
1265
1304
|
} | undefined;
|
|
1266
1305
|
launcher?: {
|
|
1267
1306
|
size?: string | undefined;
|
|
@@ -1411,6 +1450,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
1411
1450
|
blur?: string | undefined;
|
|
1412
1451
|
border?: string | undefined;
|
|
1413
1452
|
width?: string | undefined;
|
|
1453
|
+
transitionDuration?: string | undefined;
|
|
1454
|
+
transitionEasing?: string | undefined;
|
|
1455
|
+
transitionFade?: string | undefined;
|
|
1414
1456
|
} | undefined;
|
|
1415
1457
|
launcher?: {
|
|
1416
1458
|
size?: string | undefined;
|
|
@@ -1535,6 +1577,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
|
|
|
1535
1577
|
blur?: string | undefined;
|
|
1536
1578
|
border?: string | undefined;
|
|
1537
1579
|
width?: string | undefined;
|
|
1580
|
+
transitionDuration?: string | undefined;
|
|
1581
|
+
transitionEasing?: string | undefined;
|
|
1582
|
+
transitionFade?: string | undefined;
|
|
1538
1583
|
} | undefined;
|
|
1539
1584
|
launcher?: {
|
|
1540
1585
|
size?: string | undefined;
|
|
@@ -1722,6 +1767,9 @@ export declare const configSchemas: ({
|
|
|
1722
1767
|
blur: z.ZodOptional<z.ZodString>;
|
|
1723
1768
|
border: z.ZodOptional<z.ZodString>;
|
|
1724
1769
|
width: z.ZodOptional<z.ZodString>;
|
|
1770
|
+
transitionDuration: z.ZodOptional<z.ZodString>;
|
|
1771
|
+
transitionEasing: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
transitionFade: z.ZodOptional<z.ZodString>;
|
|
1725
1773
|
}, "strip", z.ZodTypeAny, {
|
|
1726
1774
|
position?: "right" | "left" | undefined;
|
|
1727
1775
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -1729,6 +1777,9 @@ export declare const configSchemas: ({
|
|
|
1729
1777
|
blur?: string | undefined;
|
|
1730
1778
|
border?: string | undefined;
|
|
1731
1779
|
width?: string | undefined;
|
|
1780
|
+
transitionDuration?: string | undefined;
|
|
1781
|
+
transitionEasing?: string | undefined;
|
|
1782
|
+
transitionFade?: string | undefined;
|
|
1732
1783
|
}, {
|
|
1733
1784
|
position?: "right" | "left" | undefined;
|
|
1734
1785
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -1736,6 +1787,9 @@ export declare const configSchemas: ({
|
|
|
1736
1787
|
blur?: string | undefined;
|
|
1737
1788
|
border?: string | undefined;
|
|
1738
1789
|
width?: string | undefined;
|
|
1790
|
+
transitionDuration?: string | undefined;
|
|
1791
|
+
transitionEasing?: string | undefined;
|
|
1792
|
+
transitionFade?: string | undefined;
|
|
1739
1793
|
}>>;
|
|
1740
1794
|
launcher: z.ZodOptional<z.ZodObject<{
|
|
1741
1795
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -1966,6 +2020,9 @@ export declare const configSchemas: ({
|
|
|
1966
2020
|
blur?: string | undefined;
|
|
1967
2021
|
border?: string | undefined;
|
|
1968
2022
|
width?: string | undefined;
|
|
2023
|
+
transitionDuration?: string | undefined;
|
|
2024
|
+
transitionEasing?: string | undefined;
|
|
2025
|
+
transitionFade?: string | undefined;
|
|
1969
2026
|
} | undefined;
|
|
1970
2027
|
launcher?: {
|
|
1971
2028
|
size?: string | undefined;
|
|
@@ -2045,6 +2102,9 @@ export declare const configSchemas: ({
|
|
|
2045
2102
|
blur?: string | undefined;
|
|
2046
2103
|
border?: string | undefined;
|
|
2047
2104
|
width?: string | undefined;
|
|
2105
|
+
transitionDuration?: string | undefined;
|
|
2106
|
+
transitionEasing?: string | undefined;
|
|
2107
|
+
transitionFade?: string | undefined;
|
|
2048
2108
|
} | undefined;
|
|
2049
2109
|
launcher?: {
|
|
2050
2110
|
size?: string | undefined;
|
|
@@ -2257,6 +2317,9 @@ export declare const configSchemas: ({
|
|
|
2257
2317
|
blur: z.ZodOptional<z.ZodString>;
|
|
2258
2318
|
border: z.ZodOptional<z.ZodString>;
|
|
2259
2319
|
width: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
transitionDuration: z.ZodOptional<z.ZodString>;
|
|
2321
|
+
transitionEasing: z.ZodOptional<z.ZodString>;
|
|
2322
|
+
transitionFade: z.ZodOptional<z.ZodString>;
|
|
2260
2323
|
}, "strip", z.ZodTypeAny, {
|
|
2261
2324
|
position?: "right" | "left" | undefined;
|
|
2262
2325
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -2264,6 +2327,9 @@ export declare const configSchemas: ({
|
|
|
2264
2327
|
blur?: string | undefined;
|
|
2265
2328
|
border?: string | undefined;
|
|
2266
2329
|
width?: string | undefined;
|
|
2330
|
+
transitionDuration?: string | undefined;
|
|
2331
|
+
transitionEasing?: string | undefined;
|
|
2332
|
+
transitionFade?: string | undefined;
|
|
2267
2333
|
}, {
|
|
2268
2334
|
position?: "right" | "left" | undefined;
|
|
2269
2335
|
layout?: "push" | "overlay" | undefined;
|
|
@@ -2271,6 +2337,9 @@ export declare const configSchemas: ({
|
|
|
2271
2337
|
blur?: string | undefined;
|
|
2272
2338
|
border?: string | undefined;
|
|
2273
2339
|
width?: string | undefined;
|
|
2340
|
+
transitionDuration?: string | undefined;
|
|
2341
|
+
transitionEasing?: string | undefined;
|
|
2342
|
+
transitionFade?: string | undefined;
|
|
2274
2343
|
}>>;
|
|
2275
2344
|
launcher: z.ZodOptional<z.ZodObject<{
|
|
2276
2345
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -2501,6 +2570,9 @@ export declare const configSchemas: ({
|
|
|
2501
2570
|
blur?: string | undefined;
|
|
2502
2571
|
border?: string | undefined;
|
|
2503
2572
|
width?: string | undefined;
|
|
2573
|
+
transitionDuration?: string | undefined;
|
|
2574
|
+
transitionEasing?: string | undefined;
|
|
2575
|
+
transitionFade?: string | undefined;
|
|
2504
2576
|
} | undefined;
|
|
2505
2577
|
launcher?: {
|
|
2506
2578
|
size?: string | undefined;
|
|
@@ -2580,6 +2652,9 @@ export declare const configSchemas: ({
|
|
|
2580
2652
|
blur?: string | undefined;
|
|
2581
2653
|
border?: string | undefined;
|
|
2582
2654
|
width?: string | undefined;
|
|
2655
|
+
transitionDuration?: string | undefined;
|
|
2656
|
+
transitionEasing?: string | undefined;
|
|
2657
|
+
transitionFade?: string | undefined;
|
|
2583
2658
|
} | undefined;
|
|
2584
2659
|
launcher?: {
|
|
2585
2660
|
size?: string | undefined;
|
|
@@ -2729,6 +2804,9 @@ export declare const configSchemas: ({
|
|
|
2729
2804
|
blur?: string | undefined;
|
|
2730
2805
|
border?: string | undefined;
|
|
2731
2806
|
width?: string | undefined;
|
|
2807
|
+
transitionDuration?: string | undefined;
|
|
2808
|
+
transitionEasing?: string | undefined;
|
|
2809
|
+
transitionFade?: string | undefined;
|
|
2732
2810
|
} | undefined;
|
|
2733
2811
|
launcher?: {
|
|
2734
2812
|
size?: string | undefined;
|
|
@@ -2853,6 +2931,9 @@ export declare const configSchemas: ({
|
|
|
2853
2931
|
blur?: string | undefined;
|
|
2854
2932
|
border?: string | undefined;
|
|
2855
2933
|
width?: string | undefined;
|
|
2934
|
+
transitionDuration?: string | undefined;
|
|
2935
|
+
transitionEasing?: string | undefined;
|
|
2936
|
+
transitionFade?: string | undefined;
|
|
2856
2937
|
} | undefined;
|
|
2857
2938
|
launcher?: {
|
|
2858
2939
|
size?: string | undefined;
|
package/dist/config/schema.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
validateAction,
|
|
101
101
|
validateActions,
|
|
102
102
|
widgetRegistry
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-2WDY7YGN.js";
|
|
104
104
|
import {
|
|
105
105
|
AddClassZ,
|
|
106
106
|
AnchorIdZ,
|
|
@@ -134,8 +134,8 @@ import {
|
|
|
134
134
|
WaitZ,
|
|
135
135
|
WidgetConfigZ,
|
|
136
136
|
coreActionStepSchemas
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
137
|
+
} from "./chunk-YZ27S3HX.js";
|
|
138
|
+
import "./chunk-7OZFA3CQ.js";
|
|
139
139
|
import {
|
|
140
140
|
ActivationConfigZ,
|
|
141
141
|
AnchorVisibleConditionZ,
|
|
@@ -1073,7 +1073,7 @@ function FAQWidget({ config, runtime: runtime7, instanceId }) {
|
|
|
1073
1073
|
};
|
|
1074
1074
|
const renderItems = (items) => items.map((q, index) => _jsx2(FAQItem, { item: q, isExpanded: expandedIds.has(q.config.id), isHighlighted: highlightId === q.config.id, isLast: index === items.length - 1, onToggle: () => handleToggle(q.config.id), theme: resolvedTheme, feedbackConfig, feedbackValue: feedbackState.get(q.config.id), onFeedback: handleFeedback }, q.config.id));
|
|
1075
1075
|
if (visibleQuestions.length === 0) {
|
|
1076
|
-
return _jsx2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: _jsx2("div", { style: emptyStateStyle, children: "
|
|
1076
|
+
return _jsx2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: _jsx2("div", { style: emptyStateStyle, children: "You're all set for now! We'll surface answers here when they're relevant to what you're doing." }) });
|
|
1077
1077
|
}
|
|
1078
1078
|
return _jsxs2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: [config.searchable && _jsxs2("div", { style: baseStyles.searchWrapper, children: [_jsx2("style", { children: `[data-adaptive-id="${instanceId}"] input::placeholder { color: var(--sc-content-search-color, inherit); opacity: 0.7; }` }), _jsx2("input", { type: "text", placeholder: "Search questions...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), style: searchInputStyle })] }), _jsx2("div", { style: baseStyles.accordion, children: hasCategories ? Array.from(categoryGroups.entries()).map(([category, items]) => _jsxs2(React2.Fragment, { children: [category && _jsx2("div", { style: categoryHeaderStyle, "data-category-header": category, children: category }), renderItems(items)] }, category != null ? category : "__ungrouped")) : renderItems(filteredQuestions) }), config.searchable && filteredQuestions.length === 0 && searchQuery && _jsxs2("div", { style: { ...baseStyles.noResults, ...themeStyles[resolvedTheme].emptyState }, children: ['No questions found matching "', searchQuery, '"'] })] });
|
|
1079
1079
|
}
|
|
@@ -1506,7 +1506,7 @@ function NavWidget({ config, runtime: runtime7, instanceId }) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
const renderItems = (items) => items.map((tip, index) => _jsx3(NavTipItem, { item: tip, isExpanded: expandedIds.has(tip.config.id), isLast: index === items.length - 1, onToggle: () => handleToggle(tip.config.id), onNavigate: handleNavigate, theme: resolvedTheme }, tip.config.id));
|
|
1508
1508
|
if (visibleTips.length === 0) {
|
|
1509
|
-
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: emptyStateStyle, children: "
|
|
1509
|
+
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: emptyStateStyle, children: "You're all set for now! We'll share helpful tips here when they're relevant to what you're doing." }) });
|
|
1510
1510
|
}
|
|
1511
1511
|
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: baseStyles2.accordion, children: hasCategories ? Array.from(categoryGroups.entries()).map(([category, items]) => _jsxs3(React3.Fragment, { children: [category && _jsx3("div", { style: categoryHeaderStyle, "data-category-header": category, children: category }), renderItems(items)] }, category != null ? category : "__ungrouped")) : renderItems(visibleTips) }) });
|
|
1512
1512
|
}
|