@lightspeed/crane-api 2.3.2-rc.0 → 2.3.2-rc.1
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/CHANGELOG.md +1 -1
- package/dist/index.d.mts +54 -54
- package/dist/index.d.ts +54 -54
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Add `'ALL'` selection type to `PRODUCT_SELECTOR`. When `selectionType` is `'ALL'`, the `useProductSelectorElementContent` composable returns every product from the storefront's `storeData` without filtering by `productIds` or `categoryId`.
|
|
8
8
|
|
|
9
9
|
## 2.3.1 - 2026-05-11
|
|
10
10
|
|
package/dist/index.d.mts
CHANGED
|
@@ -388,9 +388,9 @@ declare const DescriptorSchema: z.ZodObject<{
|
|
|
388
388
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
389
389
|
}, z.core.$strict>>;
|
|
390
390
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
391
|
-
small: "small";
|
|
392
391
|
none: "none";
|
|
393
392
|
all: "all";
|
|
393
|
+
small: "small";
|
|
394
394
|
}>>;
|
|
395
395
|
}, z.core.$strict>, z.ZodObject<{
|
|
396
396
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -465,9 +465,9 @@ declare const DescriptorSchema: z.ZodObject<{
|
|
|
465
465
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
466
466
|
}, z.core.$strict>>;
|
|
467
467
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
468
|
-
small: "small";
|
|
469
468
|
none: "none";
|
|
470
469
|
all: "all";
|
|
470
|
+
small: "small";
|
|
471
471
|
}>>;
|
|
472
472
|
}, z.core.$strict>, z.ZodObject<{
|
|
473
473
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -891,9 +891,9 @@ declare const CollectionDescriptorSchema: z.ZodObject<{
|
|
|
891
891
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
892
892
|
}, z.core.$strict>>;
|
|
893
893
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
894
|
-
small: "small";
|
|
895
894
|
none: "none";
|
|
896
895
|
all: "all";
|
|
896
|
+
small: "small";
|
|
897
897
|
}>>;
|
|
898
898
|
}, z.core.$strict>, z.ZodObject<{
|
|
899
899
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -968,9 +968,9 @@ declare const CollectionDescriptorSchema: z.ZodObject<{
|
|
|
968
968
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
969
969
|
}, z.core.$strict>>;
|
|
970
970
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
971
|
-
small: "small";
|
|
972
971
|
none: "none";
|
|
973
972
|
all: "all";
|
|
973
|
+
small: "small";
|
|
974
974
|
}>>;
|
|
975
975
|
}, z.core.$strict>, z.ZodObject<{
|
|
976
976
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -1830,9 +1830,9 @@ declare const LogoDesignEditorDefaultsSchema: z.ZodObject<{
|
|
|
1830
1830
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
1831
1831
|
}, z.core.$strict>>;
|
|
1832
1832
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
1833
|
-
small: "small";
|
|
1834
1833
|
none: "none";
|
|
1835
1834
|
all: "all";
|
|
1835
|
+
small: "small";
|
|
1836
1836
|
}>>;
|
|
1837
1837
|
}, z.core.$strict>;
|
|
1838
1838
|
declare const LogoDesignEditorSchema: z.ZodObject<{
|
|
@@ -1855,9 +1855,9 @@ declare const LogoDesignEditorSchema: z.ZodObject<{
|
|
|
1855
1855
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
1856
1856
|
}, z.core.$strict>>;
|
|
1857
1857
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
1858
|
-
small: "small";
|
|
1859
1858
|
none: "none";
|
|
1860
1859
|
all: "all";
|
|
1860
|
+
small: "small";
|
|
1861
1861
|
}>>;
|
|
1862
1862
|
}, z.core.$strict>>;
|
|
1863
1863
|
}, z.core.$strict>;
|
|
@@ -4466,9 +4466,9 @@ declare const DesignEditorDefaultsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4466
4466
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4467
4467
|
}, z.core.$strict>>;
|
|
4468
4468
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4469
|
-
small: "small";
|
|
4470
4469
|
none: "none";
|
|
4471
4470
|
all: "all";
|
|
4471
|
+
small: "small";
|
|
4472
4472
|
}>>;
|
|
4473
4473
|
}, z.core.$strict>, z.ZodObject<{
|
|
4474
4474
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4543,9 +4543,9 @@ declare const DesignEditorDefaultsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4543
4543
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4544
4544
|
}, z.core.$strict>>;
|
|
4545
4545
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4546
|
-
small: "small";
|
|
4547
4546
|
none: "none";
|
|
4548
4547
|
all: "all";
|
|
4548
|
+
small: "small";
|
|
4549
4549
|
}>>;
|
|
4550
4550
|
}, z.core.$strict>, z.ZodObject<{
|
|
4551
4551
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4663,9 +4663,9 @@ declare const AccordionShowcaseItemSchema: z.ZodObject<{
|
|
|
4663
4663
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4664
4664
|
}, z.core.$strict>>;
|
|
4665
4665
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4666
|
-
small: "small";
|
|
4667
4666
|
none: "none";
|
|
4668
4667
|
all: "all";
|
|
4668
|
+
small: "small";
|
|
4669
4669
|
}>>;
|
|
4670
4670
|
}, z.core.$strict>, z.ZodObject<{
|
|
4671
4671
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4749,9 +4749,9 @@ declare const AccordionShowcaseDesignEditorDefaultsSchema: z.ZodObject<{
|
|
|
4749
4749
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4750
4750
|
}, z.core.$strict>>;
|
|
4751
4751
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4752
|
-
small: "small";
|
|
4753
4752
|
none: "none";
|
|
4754
4753
|
all: "all";
|
|
4754
|
+
small: "small";
|
|
4755
4755
|
}>>;
|
|
4756
4756
|
}, z.core.$strict>, z.ZodObject<{
|
|
4757
4757
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4896,9 +4896,9 @@ declare const AccordionDesignItemSchema: z.ZodObject<{
|
|
|
4896
4896
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4897
4897
|
}, z.core.$strict>>;
|
|
4898
4898
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4899
|
-
small: "small";
|
|
4900
4899
|
none: "none";
|
|
4901
4900
|
all: "all";
|
|
4901
|
+
small: "small";
|
|
4902
4902
|
}>>;
|
|
4903
4903
|
}, z.core.$strict>>;
|
|
4904
4904
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5059,9 +5059,9 @@ declare const AccordionDesignEditorSchema: z.ZodObject<{
|
|
|
5059
5059
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5060
5060
|
}, z.core.$strict>>;
|
|
5061
5061
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5062
|
-
small: "small";
|
|
5063
5062
|
none: "none";
|
|
5064
5063
|
all: "all";
|
|
5064
|
+
small: "small";
|
|
5065
5065
|
}>>;
|
|
5066
5066
|
}, z.core.$strict>>;
|
|
5067
5067
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5322,9 +5322,9 @@ declare const DesignEditorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5322
5322
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5323
5323
|
}, z.core.$strict>>;
|
|
5324
5324
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5325
|
-
small: "small";
|
|
5326
5325
|
none: "none";
|
|
5327
5326
|
all: "all";
|
|
5327
|
+
small: "small";
|
|
5328
5328
|
}>>;
|
|
5329
5329
|
}, z.core.$strict>>;
|
|
5330
5330
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5467,9 +5467,9 @@ declare const DesignEditorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5467
5467
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5468
5468
|
}, z.core.$strict>>;
|
|
5469
5469
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5470
|
-
small: "small";
|
|
5471
5470
|
none: "none";
|
|
5472
5471
|
all: "all";
|
|
5472
|
+
small: "small";
|
|
5473
5473
|
}>>;
|
|
5474
5474
|
}, z.core.$strict>>;
|
|
5475
5475
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5644,9 +5644,9 @@ declare const DesignSettingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
5644
5644
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5645
5645
|
}, z.core.$strict>>;
|
|
5646
5646
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5647
|
-
small: "small";
|
|
5648
5647
|
none: "none";
|
|
5649
5648
|
all: "all";
|
|
5649
|
+
small: "small";
|
|
5650
5650
|
}>>;
|
|
5651
5651
|
}, z.core.$strict>>;
|
|
5652
5652
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5789,9 +5789,9 @@ declare const DesignSettingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
5789
5789
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5790
5790
|
}, z.core.$strict>>;
|
|
5791
5791
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5792
|
-
small: "small";
|
|
5793
5792
|
none: "none";
|
|
5794
5793
|
all: "all";
|
|
5794
|
+
small: "small";
|
|
5795
5795
|
}>>;
|
|
5796
5796
|
}, z.core.$strict>>;
|
|
5797
5797
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6375,9 +6375,9 @@ declare const LayoutDesignOverrideSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6375
6375
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
6376
6376
|
}, z.core.$strict>>;
|
|
6377
6377
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
6378
|
-
small: "small";
|
|
6379
6378
|
none: "none";
|
|
6380
6379
|
all: "all";
|
|
6380
|
+
small: "small";
|
|
6381
6381
|
}>>;
|
|
6382
6382
|
}, z.core.$strict>>;
|
|
6383
6383
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6595,9 +6595,9 @@ declare const LayoutSettingsSchema: z.ZodObject<{
|
|
|
6595
6595
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
6596
6596
|
}, z.core.$strict>>;
|
|
6597
6597
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
6598
|
-
small: "small";
|
|
6599
6598
|
none: "none";
|
|
6600
6599
|
all: "all";
|
|
6600
|
+
small: "small";
|
|
6601
6601
|
}>>;
|
|
6602
6602
|
}, z.core.$strict>>;
|
|
6603
6603
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7300,9 +7300,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7300
7300
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7301
7301
|
}, z.core.$strict>>;
|
|
7302
7302
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7303
|
-
small: "small";
|
|
7304
7303
|
none: "none";
|
|
7305
7304
|
all: "all";
|
|
7305
|
+
small: "small";
|
|
7306
7306
|
}>>;
|
|
7307
7307
|
}, z.core.$strict>>;
|
|
7308
7308
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7445,9 +7445,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7445
7445
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7446
7446
|
}, z.core.$strict>>;
|
|
7447
7447
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7448
|
-
small: "small";
|
|
7449
7448
|
none: "none";
|
|
7450
7449
|
all: "all";
|
|
7450
|
+
small: "small";
|
|
7451
7451
|
}>>;
|
|
7452
7452
|
}, z.core.$strict>>;
|
|
7453
7453
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7685,9 +7685,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7685
7685
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7686
7686
|
}, z.core.$strict>>;
|
|
7687
7687
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7688
|
-
small: "small";
|
|
7689
7688
|
none: "none";
|
|
7690
7689
|
all: "all";
|
|
7690
|
+
small: "small";
|
|
7691
7691
|
}>>;
|
|
7692
7692
|
}, z.core.$strict>>;
|
|
7693
7693
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -8075,9 +8075,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8075
8075
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8076
8076
|
}, z.core.$strict>>;
|
|
8077
8077
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8078
|
-
small: "small";
|
|
8079
8078
|
none: "none";
|
|
8080
8079
|
all: "all";
|
|
8080
|
+
small: "small";
|
|
8081
8081
|
}>>;
|
|
8082
8082
|
}, z.core.$strict>, z.ZodObject<{
|
|
8083
8083
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8152,9 +8152,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8152
8152
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8153
8153
|
}, z.core.$strict>>;
|
|
8154
8154
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8155
|
-
small: "small";
|
|
8156
8155
|
none: "none";
|
|
8157
8156
|
all: "all";
|
|
8157
|
+
small: "small";
|
|
8158
8158
|
}>>;
|
|
8159
8159
|
}, z.core.$strict>, z.ZodObject<{
|
|
8160
8160
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8580,9 +8580,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8580
8580
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8581
8581
|
}, z.core.$strict>>;
|
|
8582
8582
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8583
|
-
small: "small";
|
|
8584
8583
|
none: "none";
|
|
8585
8584
|
all: "all";
|
|
8585
|
+
small: "small";
|
|
8586
8586
|
}>>;
|
|
8587
8587
|
}, z.core.$strict>, z.ZodObject<{
|
|
8588
8588
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8657,9 +8657,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8657
8657
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8658
8658
|
}, z.core.$strict>>;
|
|
8659
8659
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8660
|
-
small: "small";
|
|
8661
8660
|
none: "none";
|
|
8662
8661
|
all: "all";
|
|
8662
|
+
small: "small";
|
|
8663
8663
|
}>>;
|
|
8664
8664
|
}, z.core.$strict>, z.ZodObject<{
|
|
8665
8665
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9027,9 +9027,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9027
9027
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9028
9028
|
}, z.core.$strict>>;
|
|
9029
9029
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9030
|
-
small: "small";
|
|
9031
9030
|
none: "none";
|
|
9032
9031
|
all: "all";
|
|
9032
|
+
small: "small";
|
|
9033
9033
|
}>>;
|
|
9034
9034
|
}, z.core.$strict>, z.ZodObject<{
|
|
9035
9035
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9104,9 +9104,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9104
9104
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9105
9105
|
}, z.core.$strict>>;
|
|
9106
9106
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9107
|
-
small: "small";
|
|
9108
9107
|
none: "none";
|
|
9109
9108
|
all: "all";
|
|
9109
|
+
small: "small";
|
|
9110
9110
|
}>>;
|
|
9111
9111
|
}, z.core.$strict>, z.ZodObject<{
|
|
9112
9112
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9479,9 +9479,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9479
9479
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9480
9480
|
}, z.core.$strict>>;
|
|
9481
9481
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9482
|
-
small: "small";
|
|
9483
9482
|
none: "none";
|
|
9484
9483
|
all: "all";
|
|
9484
|
+
small: "small";
|
|
9485
9485
|
}>>;
|
|
9486
9486
|
}, z.core.$strict>, z.ZodObject<{
|
|
9487
9487
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9556,9 +9556,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9556
9556
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9557
9557
|
}, z.core.$strict>>;
|
|
9558
9558
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9559
|
-
small: "small";
|
|
9560
9559
|
none: "none";
|
|
9561
9560
|
all: "all";
|
|
9561
|
+
small: "small";
|
|
9562
9562
|
}>>;
|
|
9563
9563
|
}, z.core.$strict>, z.ZodObject<{
|
|
9564
9564
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -10252,9 +10252,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10252
10252
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10253
10253
|
}, z.core.$strict>>;
|
|
10254
10254
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10255
|
-
small: "small";
|
|
10256
10255
|
none: "none";
|
|
10257
10256
|
all: "all";
|
|
10257
|
+
small: "small";
|
|
10258
10258
|
}>>;
|
|
10259
10259
|
}, z.core.$strict>>;
|
|
10260
10260
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -10397,9 +10397,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10397
10397
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10398
10398
|
}, z.core.$strict>>;
|
|
10399
10399
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10400
|
-
small: "small";
|
|
10401
10400
|
none: "none";
|
|
10402
10401
|
all: "all";
|
|
10402
|
+
small: "small";
|
|
10403
10403
|
}>>;
|
|
10404
10404
|
}, z.core.$strict>>;
|
|
10405
10405
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -10638,9 +10638,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10638
10638
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10639
10639
|
}, z.core.$strict>>;
|
|
10640
10640
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10641
|
-
small: "small";
|
|
10642
10641
|
none: "none";
|
|
10643
10642
|
all: "all";
|
|
10643
|
+
small: "small";
|
|
10644
10644
|
}>>;
|
|
10645
10645
|
}, z.core.$strict>>;
|
|
10646
10646
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -11060,9 +11060,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
11060
11060
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11061
11061
|
}, z.core.$strict>>;
|
|
11062
11062
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11063
|
-
small: "small";
|
|
11064
11063
|
none: "none";
|
|
11065
11064
|
all: "all";
|
|
11065
|
+
small: "small";
|
|
11066
11066
|
}>>;
|
|
11067
11067
|
}, z.core.$strict>, z.ZodObject<{
|
|
11068
11068
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11137,9 +11137,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
11137
11137
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11138
11138
|
}, z.core.$strict>>;
|
|
11139
11139
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11140
|
-
small: "small";
|
|
11141
11140
|
none: "none";
|
|
11142
11141
|
all: "all";
|
|
11142
|
+
small: "small";
|
|
11143
11143
|
}>>;
|
|
11144
11144
|
}, z.core.$strict>, z.ZodObject<{
|
|
11145
11145
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11546,9 +11546,9 @@ declare const CustomSectionSchema: z.ZodObject<{
|
|
|
11546
11546
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11547
11547
|
}, z.core.$strict>>;
|
|
11548
11548
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11549
|
-
small: "small";
|
|
11550
11549
|
none: "none";
|
|
11551
11550
|
all: "all";
|
|
11551
|
+
small: "small";
|
|
11552
11552
|
}>>;
|
|
11553
11553
|
}, z.core.$strict>, z.ZodObject<{
|
|
11554
11554
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11623,9 +11623,9 @@ declare const CustomSectionSchema: z.ZodObject<{
|
|
|
11623
11623
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11624
11624
|
}, z.core.$strict>>;
|
|
11625
11625
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11626
|
-
small: "small";
|
|
11627
11626
|
none: "none";
|
|
11628
11627
|
all: "all";
|
|
11628
|
+
small: "small";
|
|
11629
11629
|
}>>;
|
|
11630
11630
|
}, z.core.$strict>, z.ZodObject<{
|
|
11631
11631
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11997,9 +11997,9 @@ declare const SectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11997
11997
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11998
11998
|
}, z.core.$strict>>;
|
|
11999
11999
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12000
|
-
small: "small";
|
|
12001
12000
|
none: "none";
|
|
12002
12001
|
all: "all";
|
|
12002
|
+
small: "small";
|
|
12003
12003
|
}>>;
|
|
12004
12004
|
}, z.core.$strict>, z.ZodObject<{
|
|
12005
12005
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12074,9 +12074,9 @@ declare const SectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12074
12074
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12075
12075
|
}, z.core.$strict>>;
|
|
12076
12076
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12077
|
-
small: "small";
|
|
12078
12077
|
none: "none";
|
|
12079
12078
|
all: "all";
|
|
12079
|
+
small: "small";
|
|
12080
12080
|
}>>;
|
|
12081
12081
|
}, z.core.$strict>, z.ZodObject<{
|
|
12082
12082
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12451,9 +12451,9 @@ declare const TemplatePageSchema: z.ZodObject<{
|
|
|
12451
12451
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12452
12452
|
}, z.core.$strict>>;
|
|
12453
12453
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12454
|
-
small: "small";
|
|
12455
12454
|
none: "none";
|
|
12456
12455
|
all: "all";
|
|
12456
|
+
small: "small";
|
|
12457
12457
|
}>>;
|
|
12458
12458
|
}, z.core.$strict>, z.ZodObject<{
|
|
12459
12459
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12528,9 +12528,9 @@ declare const TemplatePageSchema: z.ZodObject<{
|
|
|
12528
12528
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12529
12529
|
}, z.core.$strict>>;
|
|
12530
12530
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12531
|
-
small: "small";
|
|
12532
12531
|
none: "none";
|
|
12533
12532
|
all: "all";
|
|
12533
|
+
small: "small";
|
|
12534
12534
|
}>>;
|
|
12535
12535
|
}, z.core.$strict>, z.ZodObject<{
|
|
12536
12536
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12906,9 +12906,9 @@ declare const TemplatePageNamedSchema: z.ZodObject<{
|
|
|
12906
12906
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12907
12907
|
}, z.core.$strict>>;
|
|
12908
12908
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12909
|
-
small: "small";
|
|
12910
12909
|
none: "none";
|
|
12911
12910
|
all: "all";
|
|
12911
|
+
small: "small";
|
|
12912
12912
|
}>>;
|
|
12913
12913
|
}, z.core.$strict>, z.ZodObject<{
|
|
12914
12914
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12983,9 +12983,9 @@ declare const TemplatePageNamedSchema: z.ZodObject<{
|
|
|
12983
12983
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12984
12984
|
}, z.core.$strict>>;
|
|
12985
12985
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12986
|
-
small: "small";
|
|
12987
12986
|
none: "none";
|
|
12988
12987
|
all: "all";
|
|
12988
|
+
small: "small";
|
|
12989
12989
|
}>>;
|
|
12990
12990
|
}, z.core.$strict>, z.ZodObject<{
|
|
12991
12991
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13421,9 +13421,9 @@ declare const TemplateConfigurationSectionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
13421
13421
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13422
13422
|
}, z.core.$strict>>;
|
|
13423
13423
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13424
|
-
small: "small";
|
|
13425
13424
|
none: "none";
|
|
13426
13425
|
all: "all";
|
|
13426
|
+
small: "small";
|
|
13427
13427
|
}>>;
|
|
13428
13428
|
}, z.core.$strict>, z.ZodObject<{
|
|
13429
13429
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13498,9 +13498,9 @@ declare const TemplateConfigurationSectionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
13498
13498
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13499
13499
|
}, z.core.$strict>>;
|
|
13500
13500
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13501
|
-
small: "small";
|
|
13502
13501
|
none: "none";
|
|
13503
13502
|
all: "all";
|
|
13503
|
+
small: "small";
|
|
13504
13504
|
}>>;
|
|
13505
13505
|
}, z.core.$strict>, z.ZodObject<{
|
|
13506
13506
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13925,9 +13925,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
13925
13925
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13926
13926
|
}, z.core.$strict>>;
|
|
13927
13927
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13928
|
-
small: "small";
|
|
13929
13928
|
none: "none";
|
|
13930
13929
|
all: "all";
|
|
13930
|
+
small: "small";
|
|
13931
13931
|
}>>;
|
|
13932
13932
|
}, z.core.$strict>, z.ZodObject<{
|
|
13933
13933
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14002,9 +14002,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14002
14002
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14003
14003
|
}, z.core.$strict>>;
|
|
14004
14004
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14005
|
-
small: "small";
|
|
14006
14005
|
none: "none";
|
|
14007
14006
|
all: "all";
|
|
14007
|
+
small: "small";
|
|
14008
14008
|
}>>;
|
|
14009
14009
|
}, z.core.$strict>, z.ZodObject<{
|
|
14010
14010
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14372,9 +14372,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14372
14372
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14373
14373
|
}, z.core.$strict>>;
|
|
14374
14374
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14375
|
-
small: "small";
|
|
14376
14375
|
none: "none";
|
|
14377
14376
|
all: "all";
|
|
14377
|
+
small: "small";
|
|
14378
14378
|
}>>;
|
|
14379
14379
|
}, z.core.$strict>, z.ZodObject<{
|
|
14380
14380
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14449,9 +14449,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14449
14449
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14450
14450
|
}, z.core.$strict>>;
|
|
14451
14451
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14452
|
-
small: "small";
|
|
14453
14452
|
none: "none";
|
|
14454
14453
|
all: "all";
|
|
14454
|
+
small: "small";
|
|
14455
14455
|
}>>;
|
|
14456
14456
|
}, z.core.$strict>, z.ZodObject<{
|
|
14457
14457
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14883,9 +14883,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
14883
14883
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14884
14884
|
}, z.core.$strict>>;
|
|
14885
14885
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14886
|
-
small: "small";
|
|
14887
14886
|
none: "none";
|
|
14888
14887
|
all: "all";
|
|
14888
|
+
small: "small";
|
|
14889
14889
|
}>>;
|
|
14890
14890
|
}, z.core.$strict>, z.ZodObject<{
|
|
14891
14891
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14960,9 +14960,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
14960
14960
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14961
14961
|
}, z.core.$strict>>;
|
|
14962
14962
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14963
|
-
small: "small";
|
|
14964
14963
|
none: "none";
|
|
14965
14964
|
all: "all";
|
|
14965
|
+
small: "small";
|
|
14966
14966
|
}>>;
|
|
14967
14967
|
}, z.core.$strict>, z.ZodObject<{
|
|
14968
14968
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15330,9 +15330,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15330
15330
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15331
15331
|
}, z.core.$strict>>;
|
|
15332
15332
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15333
|
-
small: "small";
|
|
15334
15333
|
none: "none";
|
|
15335
15334
|
all: "all";
|
|
15335
|
+
small: "small";
|
|
15336
15336
|
}>>;
|
|
15337
15337
|
}, z.core.$strict>, z.ZodObject<{
|
|
15338
15338
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15407,9 +15407,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15407
15407
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15408
15408
|
}, z.core.$strict>>;
|
|
15409
15409
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15410
|
-
small: "small";
|
|
15411
15410
|
none: "none";
|
|
15412
15411
|
all: "all";
|
|
15412
|
+
small: "small";
|
|
15413
15413
|
}>>;
|
|
15414
15414
|
}, z.core.$strict>, z.ZodObject<{
|
|
15415
15415
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15782,9 +15782,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15782
15782
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15783
15783
|
}, z.core.$strict>>;
|
|
15784
15784
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15785
|
-
small: "small";
|
|
15786
15785
|
none: "none";
|
|
15787
15786
|
all: "all";
|
|
15787
|
+
small: "small";
|
|
15788
15788
|
}>>;
|
|
15789
15789
|
}, z.core.$strict>, z.ZodObject<{
|
|
15790
15790
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15859,9 +15859,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15859
15859
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15860
15860
|
}, z.core.$strict>>;
|
|
15861
15861
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15862
|
-
small: "small";
|
|
15863
15862
|
none: "none";
|
|
15864
15863
|
all: "all";
|
|
15864
|
+
small: "small";
|
|
15865
15865
|
}>>;
|
|
15866
15866
|
}, z.core.$strict>, z.ZodObject<{
|
|
15867
15867
|
type: z.ZodLiteral<"DIVIDER">;
|
package/dist/index.d.ts
CHANGED
|
@@ -389,9 +389,9 @@ declare const DescriptorSchema: z.ZodObject<{
|
|
|
389
389
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
390
390
|
}, z.core.$strict>>;
|
|
391
391
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
392
|
-
small: "small";
|
|
393
392
|
none: "none";
|
|
394
393
|
all: "all";
|
|
394
|
+
small: "small";
|
|
395
395
|
}>>;
|
|
396
396
|
}, z.core.$strict>, z.ZodObject<{
|
|
397
397
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -466,9 +466,9 @@ declare const DescriptorSchema: z.ZodObject<{
|
|
|
466
466
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
467
467
|
}, z.core.$strict>>;
|
|
468
468
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
469
|
-
small: "small";
|
|
470
469
|
none: "none";
|
|
471
470
|
all: "all";
|
|
471
|
+
small: "small";
|
|
472
472
|
}>>;
|
|
473
473
|
}, z.core.$strict>, z.ZodObject<{
|
|
474
474
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -892,9 +892,9 @@ declare const CollectionDescriptorSchema: z.ZodObject<{
|
|
|
892
892
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
893
893
|
}, z.core.$strict>>;
|
|
894
894
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
895
|
-
small: "small";
|
|
896
895
|
none: "none";
|
|
897
896
|
all: "all";
|
|
897
|
+
small: "small";
|
|
898
898
|
}>>;
|
|
899
899
|
}, z.core.$strict>, z.ZodObject<{
|
|
900
900
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -969,9 +969,9 @@ declare const CollectionDescriptorSchema: z.ZodObject<{
|
|
|
969
969
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
970
970
|
}, z.core.$strict>>;
|
|
971
971
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
972
|
-
small: "small";
|
|
973
972
|
none: "none";
|
|
974
973
|
all: "all";
|
|
974
|
+
small: "small";
|
|
975
975
|
}>>;
|
|
976
976
|
}, z.core.$strict>, z.ZodObject<{
|
|
977
977
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -1831,9 +1831,9 @@ declare const LogoDesignEditorDefaultsSchema: z.ZodObject<{
|
|
|
1831
1831
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
1832
1832
|
}, z.core.$strict>>;
|
|
1833
1833
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
1834
|
-
small: "small";
|
|
1835
1834
|
none: "none";
|
|
1836
1835
|
all: "all";
|
|
1836
|
+
small: "small";
|
|
1837
1837
|
}>>;
|
|
1838
1838
|
}, z.core.$strict>;
|
|
1839
1839
|
declare const LogoDesignEditorSchema: z.ZodObject<{
|
|
@@ -1856,9 +1856,9 @@ declare const LogoDesignEditorSchema: z.ZodObject<{
|
|
|
1856
1856
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
1857
1857
|
}, z.core.$strict>>;
|
|
1858
1858
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
1859
|
-
small: "small";
|
|
1860
1859
|
none: "none";
|
|
1861
1860
|
all: "all";
|
|
1861
|
+
small: "small";
|
|
1862
1862
|
}>>;
|
|
1863
1863
|
}, z.core.$strict>>;
|
|
1864
1864
|
}, z.core.$strict>;
|
|
@@ -4467,9 +4467,9 @@ declare const DesignEditorDefaultsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4467
4467
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4468
4468
|
}, z.core.$strict>>;
|
|
4469
4469
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4470
|
-
small: "small";
|
|
4471
4470
|
none: "none";
|
|
4472
4471
|
all: "all";
|
|
4472
|
+
small: "small";
|
|
4473
4473
|
}>>;
|
|
4474
4474
|
}, z.core.$strict>, z.ZodObject<{
|
|
4475
4475
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4544,9 +4544,9 @@ declare const DesignEditorDefaultsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4544
4544
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4545
4545
|
}, z.core.$strict>>;
|
|
4546
4546
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4547
|
-
small: "small";
|
|
4548
4547
|
none: "none";
|
|
4549
4548
|
all: "all";
|
|
4549
|
+
small: "small";
|
|
4550
4550
|
}>>;
|
|
4551
4551
|
}, z.core.$strict>, z.ZodObject<{
|
|
4552
4552
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4664,9 +4664,9 @@ declare const AccordionShowcaseItemSchema: z.ZodObject<{
|
|
|
4664
4664
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4665
4665
|
}, z.core.$strict>>;
|
|
4666
4666
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4667
|
-
small: "small";
|
|
4668
4667
|
none: "none";
|
|
4669
4668
|
all: "all";
|
|
4669
|
+
small: "small";
|
|
4670
4670
|
}>>;
|
|
4671
4671
|
}, z.core.$strict>, z.ZodObject<{
|
|
4672
4672
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4750,9 +4750,9 @@ declare const AccordionShowcaseDesignEditorDefaultsSchema: z.ZodObject<{
|
|
|
4750
4750
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4751
4751
|
}, z.core.$strict>>;
|
|
4752
4752
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4753
|
-
small: "small";
|
|
4754
4753
|
none: "none";
|
|
4755
4754
|
all: "all";
|
|
4755
|
+
small: "small";
|
|
4756
4756
|
}>>;
|
|
4757
4757
|
}, z.core.$strict>, z.ZodObject<{
|
|
4758
4758
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -4897,9 +4897,9 @@ declare const AccordionDesignItemSchema: z.ZodObject<{
|
|
|
4897
4897
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
4898
4898
|
}, z.core.$strict>>;
|
|
4899
4899
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
4900
|
-
small: "small";
|
|
4901
4900
|
none: "none";
|
|
4902
4901
|
all: "all";
|
|
4902
|
+
small: "small";
|
|
4903
4903
|
}>>;
|
|
4904
4904
|
}, z.core.$strict>>;
|
|
4905
4905
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5060,9 +5060,9 @@ declare const AccordionDesignEditorSchema: z.ZodObject<{
|
|
|
5060
5060
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5061
5061
|
}, z.core.$strict>>;
|
|
5062
5062
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5063
|
-
small: "small";
|
|
5064
5063
|
none: "none";
|
|
5065
5064
|
all: "all";
|
|
5065
|
+
small: "small";
|
|
5066
5066
|
}>>;
|
|
5067
5067
|
}, z.core.$strict>>;
|
|
5068
5068
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5323,9 +5323,9 @@ declare const DesignEditorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5323
5323
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5324
5324
|
}, z.core.$strict>>;
|
|
5325
5325
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5326
|
-
small: "small";
|
|
5327
5326
|
none: "none";
|
|
5328
5327
|
all: "all";
|
|
5328
|
+
small: "small";
|
|
5329
5329
|
}>>;
|
|
5330
5330
|
}, z.core.$strict>>;
|
|
5331
5331
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5468,9 +5468,9 @@ declare const DesignEditorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5468
5468
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5469
5469
|
}, z.core.$strict>>;
|
|
5470
5470
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5471
|
-
small: "small";
|
|
5472
5471
|
none: "none";
|
|
5473
5472
|
all: "all";
|
|
5473
|
+
small: "small";
|
|
5474
5474
|
}>>;
|
|
5475
5475
|
}, z.core.$strict>>;
|
|
5476
5476
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5645,9 +5645,9 @@ declare const DesignSettingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
5645
5645
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5646
5646
|
}, z.core.$strict>>;
|
|
5647
5647
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5648
|
-
small: "small";
|
|
5649
5648
|
none: "none";
|
|
5650
5649
|
all: "all";
|
|
5650
|
+
small: "small";
|
|
5651
5651
|
}>>;
|
|
5652
5652
|
}, z.core.$strict>>;
|
|
5653
5653
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5790,9 +5790,9 @@ declare const DesignSettingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
5790
5790
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
5791
5791
|
}, z.core.$strict>>;
|
|
5792
5792
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
5793
|
-
small: "small";
|
|
5794
5793
|
none: "none";
|
|
5795
5794
|
all: "all";
|
|
5795
|
+
small: "small";
|
|
5796
5796
|
}>>;
|
|
5797
5797
|
}, z.core.$strict>>;
|
|
5798
5798
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6376,9 +6376,9 @@ declare const LayoutDesignOverrideSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6376
6376
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
6377
6377
|
}, z.core.$strict>>;
|
|
6378
6378
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
6379
|
-
small: "small";
|
|
6380
6379
|
none: "none";
|
|
6381
6380
|
all: "all";
|
|
6381
|
+
small: "small";
|
|
6382
6382
|
}>>;
|
|
6383
6383
|
}, z.core.$strict>>;
|
|
6384
6384
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6596,9 +6596,9 @@ declare const LayoutSettingsSchema: z.ZodObject<{
|
|
|
6596
6596
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
6597
6597
|
}, z.core.$strict>>;
|
|
6598
6598
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
6599
|
-
small: "small";
|
|
6600
6599
|
none: "none";
|
|
6601
6600
|
all: "all";
|
|
6601
|
+
small: "small";
|
|
6602
6602
|
}>>;
|
|
6603
6603
|
}, z.core.$strict>>;
|
|
6604
6604
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7301,9 +7301,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7301
7301
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7302
7302
|
}, z.core.$strict>>;
|
|
7303
7303
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7304
|
-
small: "small";
|
|
7305
7304
|
none: "none";
|
|
7306
7305
|
all: "all";
|
|
7306
|
+
small: "small";
|
|
7307
7307
|
}>>;
|
|
7308
7308
|
}, z.core.$strict>>;
|
|
7309
7309
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7446,9 +7446,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7446
7446
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7447
7447
|
}, z.core.$strict>>;
|
|
7448
7448
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7449
|
-
small: "small";
|
|
7450
7449
|
none: "none";
|
|
7451
7450
|
all: "all";
|
|
7451
|
+
small: "small";
|
|
7452
7452
|
}>>;
|
|
7453
7453
|
}, z.core.$strict>>;
|
|
7454
7454
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7686,9 +7686,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7686
7686
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
7687
7687
|
}, z.core.$strict>>;
|
|
7688
7688
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
7689
|
-
small: "small";
|
|
7690
7689
|
none: "none";
|
|
7691
7690
|
all: "all";
|
|
7691
|
+
small: "small";
|
|
7692
7692
|
}>>;
|
|
7693
7693
|
}, z.core.$strict>>;
|
|
7694
7694
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -8076,9 +8076,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8076
8076
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8077
8077
|
}, z.core.$strict>>;
|
|
8078
8078
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8079
|
-
small: "small";
|
|
8080
8079
|
none: "none";
|
|
8081
8080
|
all: "all";
|
|
8081
|
+
small: "small";
|
|
8082
8082
|
}>>;
|
|
8083
8083
|
}, z.core.$strict>, z.ZodObject<{
|
|
8084
8084
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8153,9 +8153,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8153
8153
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8154
8154
|
}, z.core.$strict>>;
|
|
8155
8155
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8156
|
-
small: "small";
|
|
8157
8156
|
none: "none";
|
|
8158
8157
|
all: "all";
|
|
8158
|
+
small: "small";
|
|
8159
8159
|
}>>;
|
|
8160
8160
|
}, z.core.$strict>, z.ZodObject<{
|
|
8161
8161
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8581,9 +8581,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8581
8581
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8582
8582
|
}, z.core.$strict>>;
|
|
8583
8583
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8584
|
-
small: "small";
|
|
8585
8584
|
none: "none";
|
|
8586
8585
|
all: "all";
|
|
8586
|
+
small: "small";
|
|
8587
8587
|
}>>;
|
|
8588
8588
|
}, z.core.$strict>, z.ZodObject<{
|
|
8589
8589
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -8658,9 +8658,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
8658
8658
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
8659
8659
|
}, z.core.$strict>>;
|
|
8660
8660
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
8661
|
-
small: "small";
|
|
8662
8661
|
none: "none";
|
|
8663
8662
|
all: "all";
|
|
8663
|
+
small: "small";
|
|
8664
8664
|
}>>;
|
|
8665
8665
|
}, z.core.$strict>, z.ZodObject<{
|
|
8666
8666
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9028,9 +9028,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9028
9028
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9029
9029
|
}, z.core.$strict>>;
|
|
9030
9030
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9031
|
-
small: "small";
|
|
9032
9031
|
none: "none";
|
|
9033
9032
|
all: "all";
|
|
9033
|
+
small: "small";
|
|
9034
9034
|
}>>;
|
|
9035
9035
|
}, z.core.$strict>, z.ZodObject<{
|
|
9036
9036
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9105,9 +9105,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9105
9105
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9106
9106
|
}, z.core.$strict>>;
|
|
9107
9107
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9108
|
-
small: "small";
|
|
9109
9108
|
none: "none";
|
|
9110
9109
|
all: "all";
|
|
9110
|
+
small: "small";
|
|
9111
9111
|
}>>;
|
|
9112
9112
|
}, z.core.$strict>, z.ZodObject<{
|
|
9113
9113
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9480,9 +9480,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9480
9480
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9481
9481
|
}, z.core.$strict>>;
|
|
9482
9482
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9483
|
-
small: "small";
|
|
9484
9483
|
none: "none";
|
|
9485
9484
|
all: "all";
|
|
9485
|
+
small: "small";
|
|
9486
9486
|
}>>;
|
|
9487
9487
|
}, z.core.$strict>, z.ZodObject<{
|
|
9488
9488
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -9557,9 +9557,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
9557
9557
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
9558
9558
|
}, z.core.$strict>>;
|
|
9559
9559
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
9560
|
-
small: "small";
|
|
9561
9560
|
none: "none";
|
|
9562
9561
|
all: "all";
|
|
9562
|
+
small: "small";
|
|
9563
9563
|
}>>;
|
|
9564
9564
|
}, z.core.$strict>, z.ZodObject<{
|
|
9565
9565
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -10253,9 +10253,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10253
10253
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10254
10254
|
}, z.core.$strict>>;
|
|
10255
10255
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10256
|
-
small: "small";
|
|
10257
10256
|
none: "none";
|
|
10258
10257
|
all: "all";
|
|
10258
|
+
small: "small";
|
|
10259
10259
|
}>>;
|
|
10260
10260
|
}, z.core.$strict>>;
|
|
10261
10261
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -10398,9 +10398,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10398
10398
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10399
10399
|
}, z.core.$strict>>;
|
|
10400
10400
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10401
|
-
small: "small";
|
|
10402
10401
|
none: "none";
|
|
10403
10402
|
all: "all";
|
|
10403
|
+
small: "small";
|
|
10404
10404
|
}>>;
|
|
10405
10405
|
}, z.core.$strict>>;
|
|
10406
10406
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -10639,9 +10639,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
10639
10639
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
10640
10640
|
}, z.core.$strict>>;
|
|
10641
10641
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
10642
|
-
small: "small";
|
|
10643
10642
|
none: "none";
|
|
10644
10643
|
all: "all";
|
|
10644
|
+
small: "small";
|
|
10645
10645
|
}>>;
|
|
10646
10646
|
}, z.core.$strict>>;
|
|
10647
10647
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -11061,9 +11061,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
11061
11061
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11062
11062
|
}, z.core.$strict>>;
|
|
11063
11063
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11064
|
-
small: "small";
|
|
11065
11064
|
none: "none";
|
|
11066
11065
|
all: "all";
|
|
11066
|
+
small: "small";
|
|
11067
11067
|
}>>;
|
|
11068
11068
|
}, z.core.$strict>, z.ZodObject<{
|
|
11069
11069
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11138,9 +11138,9 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
11138
11138
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11139
11139
|
}, z.core.$strict>>;
|
|
11140
11140
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11141
|
-
small: "small";
|
|
11142
11141
|
none: "none";
|
|
11143
11142
|
all: "all";
|
|
11143
|
+
small: "small";
|
|
11144
11144
|
}>>;
|
|
11145
11145
|
}, z.core.$strict>, z.ZodObject<{
|
|
11146
11146
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11547,9 +11547,9 @@ declare const CustomSectionSchema: z.ZodObject<{
|
|
|
11547
11547
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11548
11548
|
}, z.core.$strict>>;
|
|
11549
11549
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11550
|
-
small: "small";
|
|
11551
11550
|
none: "none";
|
|
11552
11551
|
all: "all";
|
|
11552
|
+
small: "small";
|
|
11553
11553
|
}>>;
|
|
11554
11554
|
}, z.core.$strict>, z.ZodObject<{
|
|
11555
11555
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11624,9 +11624,9 @@ declare const CustomSectionSchema: z.ZodObject<{
|
|
|
11624
11624
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11625
11625
|
}, z.core.$strict>>;
|
|
11626
11626
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
11627
|
-
small: "small";
|
|
11628
11627
|
none: "none";
|
|
11629
11628
|
all: "all";
|
|
11629
|
+
small: "small";
|
|
11630
11630
|
}>>;
|
|
11631
11631
|
}, z.core.$strict>, z.ZodObject<{
|
|
11632
11632
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -11998,9 +11998,9 @@ declare const SectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11998
11998
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
11999
11999
|
}, z.core.$strict>>;
|
|
12000
12000
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12001
|
-
small: "small";
|
|
12002
12001
|
none: "none";
|
|
12003
12002
|
all: "all";
|
|
12003
|
+
small: "small";
|
|
12004
12004
|
}>>;
|
|
12005
12005
|
}, z.core.$strict>, z.ZodObject<{
|
|
12006
12006
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12075,9 +12075,9 @@ declare const SectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12075
12075
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12076
12076
|
}, z.core.$strict>>;
|
|
12077
12077
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12078
|
-
small: "small";
|
|
12079
12078
|
none: "none";
|
|
12080
12079
|
all: "all";
|
|
12080
|
+
small: "small";
|
|
12081
12081
|
}>>;
|
|
12082
12082
|
}, z.core.$strict>, z.ZodObject<{
|
|
12083
12083
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12452,9 +12452,9 @@ declare const TemplatePageSchema: z.ZodObject<{
|
|
|
12452
12452
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12453
12453
|
}, z.core.$strict>>;
|
|
12454
12454
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12455
|
-
small: "small";
|
|
12456
12455
|
none: "none";
|
|
12457
12456
|
all: "all";
|
|
12457
|
+
small: "small";
|
|
12458
12458
|
}>>;
|
|
12459
12459
|
}, z.core.$strict>, z.ZodObject<{
|
|
12460
12460
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12529,9 +12529,9 @@ declare const TemplatePageSchema: z.ZodObject<{
|
|
|
12529
12529
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12530
12530
|
}, z.core.$strict>>;
|
|
12531
12531
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12532
|
-
small: "small";
|
|
12533
12532
|
none: "none";
|
|
12534
12533
|
all: "all";
|
|
12534
|
+
small: "small";
|
|
12535
12535
|
}>>;
|
|
12536
12536
|
}, z.core.$strict>, z.ZodObject<{
|
|
12537
12537
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12907,9 +12907,9 @@ declare const TemplatePageNamedSchema: z.ZodObject<{
|
|
|
12907
12907
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12908
12908
|
}, z.core.$strict>>;
|
|
12909
12909
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12910
|
-
small: "small";
|
|
12911
12910
|
none: "none";
|
|
12912
12911
|
all: "all";
|
|
12912
|
+
small: "small";
|
|
12913
12913
|
}>>;
|
|
12914
12914
|
}, z.core.$strict>, z.ZodObject<{
|
|
12915
12915
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -12984,9 +12984,9 @@ declare const TemplatePageNamedSchema: z.ZodObject<{
|
|
|
12984
12984
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
12985
12985
|
}, z.core.$strict>>;
|
|
12986
12986
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
12987
|
-
small: "small";
|
|
12988
12987
|
none: "none";
|
|
12989
12988
|
all: "all";
|
|
12989
|
+
small: "small";
|
|
12990
12990
|
}>>;
|
|
12991
12991
|
}, z.core.$strict>, z.ZodObject<{
|
|
12992
12992
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13422,9 +13422,9 @@ declare const TemplateConfigurationSectionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
13422
13422
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13423
13423
|
}, z.core.$strict>>;
|
|
13424
13424
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13425
|
-
small: "small";
|
|
13426
13425
|
none: "none";
|
|
13427
13426
|
all: "all";
|
|
13427
|
+
small: "small";
|
|
13428
13428
|
}>>;
|
|
13429
13429
|
}, z.core.$strict>, z.ZodObject<{
|
|
13430
13430
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13499,9 +13499,9 @@ declare const TemplateConfigurationSectionSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
13499
13499
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13500
13500
|
}, z.core.$strict>>;
|
|
13501
13501
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13502
|
-
small: "small";
|
|
13503
13502
|
none: "none";
|
|
13504
13503
|
all: "all";
|
|
13504
|
+
small: "small";
|
|
13505
13505
|
}>>;
|
|
13506
13506
|
}, z.core.$strict>, z.ZodObject<{
|
|
13507
13507
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -13926,9 +13926,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
13926
13926
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
13927
13927
|
}, z.core.$strict>>;
|
|
13928
13928
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
13929
|
-
small: "small";
|
|
13930
13929
|
none: "none";
|
|
13931
13930
|
all: "all";
|
|
13931
|
+
small: "small";
|
|
13932
13932
|
}>>;
|
|
13933
13933
|
}, z.core.$strict>, z.ZodObject<{
|
|
13934
13934
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14003,9 +14003,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14003
14003
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14004
14004
|
}, z.core.$strict>>;
|
|
14005
14005
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14006
|
-
small: "small";
|
|
14007
14006
|
none: "none";
|
|
14008
14007
|
all: "all";
|
|
14008
|
+
small: "small";
|
|
14009
14009
|
}>>;
|
|
14010
14010
|
}, z.core.$strict>, z.ZodObject<{
|
|
14011
14011
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14373,9 +14373,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14373
14373
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14374
14374
|
}, z.core.$strict>>;
|
|
14375
14375
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14376
|
-
small: "small";
|
|
14377
14376
|
none: "none";
|
|
14378
14377
|
all: "all";
|
|
14378
|
+
small: "small";
|
|
14379
14379
|
}>>;
|
|
14380
14380
|
}, z.core.$strict>, z.ZodObject<{
|
|
14381
14381
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14450,9 +14450,9 @@ declare const TemplateConfigurationSchema: z.ZodObject<{
|
|
|
14450
14450
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14451
14451
|
}, z.core.$strict>>;
|
|
14452
14452
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14453
|
-
small: "small";
|
|
14454
14453
|
none: "none";
|
|
14455
14454
|
all: "all";
|
|
14455
|
+
small: "small";
|
|
14456
14456
|
}>>;
|
|
14457
14457
|
}, z.core.$strict>, z.ZodObject<{
|
|
14458
14458
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14884,9 +14884,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
14884
14884
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14885
14885
|
}, z.core.$strict>>;
|
|
14886
14886
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14887
|
-
small: "small";
|
|
14888
14887
|
none: "none";
|
|
14889
14888
|
all: "all";
|
|
14889
|
+
small: "small";
|
|
14890
14890
|
}>>;
|
|
14891
14891
|
}, z.core.$strict>, z.ZodObject<{
|
|
14892
14892
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -14961,9 +14961,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
14961
14961
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
14962
14962
|
}, z.core.$strict>>;
|
|
14963
14963
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
14964
|
-
small: "small";
|
|
14965
14964
|
none: "none";
|
|
14966
14965
|
all: "all";
|
|
14966
|
+
small: "small";
|
|
14967
14967
|
}>>;
|
|
14968
14968
|
}, z.core.$strict>, z.ZodObject<{
|
|
14969
14969
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15331,9 +15331,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15331
15331
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15332
15332
|
}, z.core.$strict>>;
|
|
15333
15333
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15334
|
-
small: "small";
|
|
15335
15334
|
none: "none";
|
|
15336
15335
|
all: "all";
|
|
15336
|
+
small: "small";
|
|
15337
15337
|
}>>;
|
|
15338
15338
|
}, z.core.$strict>, z.ZodObject<{
|
|
15339
15339
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15408,9 +15408,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15408
15408
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15409
15409
|
}, z.core.$strict>>;
|
|
15410
15410
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15411
|
-
small: "small";
|
|
15412
15411
|
none: "none";
|
|
15413
15412
|
all: "all";
|
|
15413
|
+
small: "small";
|
|
15414
15414
|
}>>;
|
|
15415
15415
|
}, z.core.$strict>, z.ZodObject<{
|
|
15416
15416
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15783,9 +15783,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15783
15783
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15784
15784
|
}, z.core.$strict>>;
|
|
15785
15785
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15786
|
-
small: "small";
|
|
15787
15786
|
none: "none";
|
|
15788
15787
|
all: "all";
|
|
15788
|
+
small: "small";
|
|
15789
15789
|
}>>;
|
|
15790
15790
|
}, z.core.$strict>, z.ZodObject<{
|
|
15791
15791
|
type: z.ZodLiteral<"DIVIDER">;
|
|
@@ -15860,9 +15860,9 @@ declare const TemplateSchema: z.ZodObject<{
|
|
|
15860
15860
|
color: z.ZodOptional<z.ZodCustom<string, string>>;
|
|
15861
15861
|
}, z.core.$strict>>;
|
|
15862
15862
|
capitalization: z.ZodOptional<z.ZodEnum<{
|
|
15863
|
-
small: "small";
|
|
15864
15863
|
none: "none";
|
|
15865
15864
|
all: "all";
|
|
15865
|
+
small: "small";
|
|
15866
15866
|
}>>;
|
|
15867
15867
|
}, z.core.$strict>, z.ZodObject<{
|
|
15868
15868
|
type: z.ZodLiteral<"DIVIDER">;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSSRApp as Te,getCurrentInstance as fe,ref as y,computed as a,reactive as E}from"vue";import{renderToString as pe}from"vue/server-renderer";import{z as m}from"zod";function B(e){return{app:Te(e)}}const w=new Map;function O(){const e=(r,i,l,d,v,c,s,u)=>{w.set(r._uid,{context:y(i),content:y(l),design:y(d),defaults:y(v),site:y(c?.site??{}),category:y(c?.category),storeData:y(c?.storeData),globalDesign:y(s),tileId:y(u??void 0)})},t=(r,i,l,d,v,c,s)=>{const u=w.get(r._uid);u!==void 0&&(u.content.value=i,u.design.value=l,u.defaults.value=d,u.site.value=v.site??{},u.category.value=v.category,u.globalDesign.value=c,u.storeData.value=v.storeData,u.tileId.value=s)},n=fe()?.appContext.app._uid??-1,o=w.get(n);return{init:e,update:t,context:o?.context,content:o?.content,design:o?.design,defaults:o?.defaults,site:o?.site,category:o?.category,storeData:o?.storeData,globalDesign:o?.globalDesign,tileId:o?.tileId}}function me(e,t){return{init:()=>{const{app:n}=B(e);return t?.init?.(n),{mount:(o,r)=>{O().init(n,r.context,r.data.content,r.data.design,r.data.defaults,r.data.externalContent,r.context.globalDesign,r.data.tileId),t?.mount?.(n,o,r),n.mount(o)},update:o=>{O().update(n,o.data.content,o.data.design,o.data.defaults,o.data.externalContent,o.context.globalDesign,o.data.tileId),t?.update?.(n,o)},unmount:()=>{t?.unmount?.(n),n.unmount()}}}}}function Ie(){return globalThis.window.instantsite}function Le(e){const t={appName:"",blockName:"",version:"",scriptUrl:"",imageBuckets:{},globalDesign:{}};return{component:e,initState(n,o,r,i){O().init(n,t,o,r,i,{},{},void 0)},updateState(n,o,r,i){O().update(n,o,r,i,{},{},void 0)}}}function _e(e,t){return{init:()=>{const{app:n}=B(e);return t?.init?.(n),{render:async(o,r)=>(O().init(n,o,r.content,r.design,r.defaults,r.externalContent,o.globalDesign,r.tileId),t?.render?.(n,o,r),{html:await pe(n,{context:o}),state:{context:o,data:r}})}}}}const Ce={SOLID:"solid",GRADIENT:"gradient",NONE:"none"},M={SCROLL_TO_TILE:"SCROLL_TO_TILE",HYPER_LINK:"HYPER_LINK",MAIL_LINK:"MAIL_LINK",TEL_LINK:"TEL_LINK",GO_TO_STORE:"GO_TO_STORE",GO_TO_STORE_LINK:"GO_TO_STORE_LINK",GO_TO_PAGE:"GO_TO_PAGE",GO_TO_CATEGORY:"GO_TO_CATEGORY",GO_TO_CATEGORY_LINK:"GO_TO_CATEGORY_LINK"};m.enum(Object.values(M));const Re=M,x={COLOR:"COLOR",GRADIENT:"GRADIENT",NONE:"NONE"};m.enum(Object.values(x));const be=x,k={SOLID:"SOLID",OUTLINE:"OUTLINE",TEXT:"TEXT"};m.enum(Object.values(k));const ye=k,P={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"};m.enum(Object.values(P));const Se=P,$={ROUND_CORNER:"ROUND_CORNER",RECTANGLE:"RECTANGLE",PILL:"PILL"};m.enum(Object.values($));const Ae=$,K={COLOR:"COLOR",GRADIENT:"GRADIENT"};m.enum(Object.values(K));const Ne=K,X={SECTION:"SECTION",HEADER:"HEADER",FOOTER:"FOOTER"};m.enum(Object.values(X));const Ge=X;var z=(e=>(e[e.Server=0]="Server",e[e.Client=1]="Client",e[e.Misc=2]="Misc",e[e.Layout=3]="Layout",e[e.Asset=4]="Asset",e[e.SharedFiles=5]="SharedFiles",e))(z||{}),F=(e=>(e[e.Server=0]="Server",e[e.Client=1]="Client",e[e.SectionSetting=2]="SectionSetting",e[e.SectionShowcase=3]="SectionShowcase",e[e.SectionAsset=4]="SectionAsset",e[e.TemplateDescriptor=5]="TemplateDescriptor",e[e.PageTemplateDescriptor=6]="PageTemplateDescriptor",e[e.TemplateAsset=7]="TemplateAsset",e[e.Layout=8]="Layout",e[e.LayoutSettings=9]="LayoutSettings",e[e.LayoutAsset=10]="LayoutAsset",e[e.SlotServer=11]="SlotServer",e[e.SlotClient=12]="SlotClient",e[e.SharedTranslation=13]="SharedTranslation",e[e.CollectionDescriptor=14]="CollectionDescriptor",e[e.CollectionAsset=15]="CollectionAsset",e))(F||{}),Y=(e=>(e.SCROLL_TO_TILE="SCROLL_TO_TILE",e.HYPER_LINK="HYPER_LINK",e.MAIL_LINK="MAIL_LINK",e.TEL_LINK="TEL_LINK",e.GO_TO_STORE="GO_TO_STORE",e.GO_TO_STORE_LINK="GO_TO_STORE_LINK",e.GO_TO_PAGE="GO_TO_PAGE",e))(Y||{});const I={TEXTAREA:"TEXTAREA",INPUTBOX:"INPUTBOX",SELECTBOX:"SELECTBOX",IMAGE:"IMAGE",TOGGLE:"TOGGLE",BUTTON:"BUTTON",DECK:"DECK",MENU:"MENU",NAVIGATION_MENU:"NAVIGATION_MENU",LOGO:"LOGO",INFO:"INFO",DIVIDER:"DIVIDER",PRODUCT_SELECTOR:"PRODUCT_SELECTOR",CATEGORY_SELECTOR:"CATEGORY_SELECTOR"};m.enum(Object.values(I));const V={TEXT:"TEXT",BUTTON:"BUTTON",IMAGE:"IMAGE",TOGGLE:"TOGGLE",SELECTBOX:"SELECTBOX",BACKGROUND:"BACKGROUND",COLOR_PICKER:"COLOR_PICKER",LOGO:"LOGO",DIVIDER:"DIVIDER",INFO:"INFO",ACCORDION:"ACCORDION"};m.enum(Object.values(V));const De=V,j={CONTENT:"Content",DESIGN:"Design"};m.enum(Object.values(j));const he=j,W={TEXT:"TEXT",IMAGE:"IMAGE"};m.enum(Object.values(W));const we=W;class Ue{type="STRUCTURED_COLOR";raw;hex;hsl;rgba;auto;constructor({raw:t,hex:n,hsl:o,rgba:r,auto:i}){this.raw=t,this.hex=n,this.hsl=o,this.rgba=r,this.auto=i}}function Be(e){if(e!==void 0)return{...e,type:"STRUCTURED_COLOR"}}var H=(e=>(e.ORIGINAL="original",e.WEBP_LOW_RES="webp-200x200",e.WEBP_HI_2X_RES="webp-2000x2000",e.MOBILE_WEBP_LOW_RES="cropped-webp-100x200",e.MOBILE_WEBP_HI_RES="cropped-webp-1000x2000",e))(H||{}),J=(e=>(e.TILE_LOADED="tile-loaded",e.TILE_UNLOADED="tile-unloaded",e))(J||{});const Me={PRODUCT_LIST:"CONTROLS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},xe={CATEGORY_TITLE:"MAIN_TITLE",PRODUCT_LIST:"CONTROLS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},ke={TOP_BAR:"TOP_BAR",GALLERY:"GALLERY",SIDEBAR:"SIDEBAR",DESCRIPTION:"DESCRIPTION",REVIEW_LIST:"REVIEW_LIST",RELATED_PRODUCTS:"RELATED_PRODUCTS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},q={apparel_footwear:"apparel_footwear",vape_smoke:"vape_smoke",home_garden:"home_garden",sport_outdoor:"sport_outdoor",jewelry_accessories:"jewelry_accessories",pet_animals:"pet_animals",bikes:"bikes",health_beauty:"health_beauty",gift_shop:"gift_shop",electronics:"electronics",other:"other"};m.enum(Object.values(q));const Pe=q;function Q(e){if(!e||e.length===0)return[];const t=[];function n(o){if(t.push({id:o.id,name:o.name,url:o.urlPath}),o.children&&o.children.length>0)for(const r of o.children)n(r)}for(const o of e)n(o);return t}const S={HYPER_LINK:"HYPER_LINK",SCROLL_TO_TILE:"SCROLL_TO_TILE",MAIL_LINK:"MAIL_LINK",TEL_LINK:"TEL_LINK",GO_TO_STORE:"GO_TO_STORE",GO_TO_STORE_LINK:"GO_TO_STORE_LINK",GO_TO_PAGE:"GO_TO_PAGE",GO_TO_CATEGORY:"GO_TO_CATEGORY",GO_TO_CATEGORY_LINK:"GO_TO_CATEGORY_LINK"};function $e(e){if("tileId"in e)return e.tileId;if("tileIdForScroll"in e)return e.tileIdForScroll}function Ke(e){if("pageId"in e)return e.pageId;if("pageIdForNavigate"in e)return e.pageIdForNavigate}function Xe(e,t){if("pageUrl"in e)return e.pageUrl;const n=Ke(e);switch(n){case"products":return"/products";case"cart":return"/cart";case"account":return"/account";case"search":return"/search";case"home":return"/"}if(t){const o=t.find(r=>r.pageId===n);if(o)return o.url}return"/"}function ze(e){if("categoryId"in e)return e.categoryId}function Fe(e){if(!e||e.length===0)return"";const t=e.find(n=>n.selected);return!t||t.main?"":`/${t.code}`}const Z=(e,t,n)=>{if(!e||t)return;const{type:o,link:r,email:i,phone:l}=e,d=O(),v=d.site?.value?.pages,c=d.site?.value?.languages,s=Fe(c),u=Xe(e,v),g=ze(e);switch(o){case S.HYPER_LINK:if(r){const f=e.linkTarget??"_blank";return()=>window.open(r,f)}break;case S.GO_TO_STORE:case S.GO_TO_STORE_LINK:return()=>window.open(`${s}/products`,"_self");case S.GO_TO_CATEGORY:case S.GO_TO_CATEGORY_LINK:const A=n?.find(f=>f.id===g)?.url;return A===void 0?()=>window.open(`${s}/404`,"_self"):()=>window.open(A,"_self");case S.MAIL_LINK:if(i)return()=>window.open(`mailto:${i}`,"_self");break;case S.TEL_LINK:if(l)return()=>window.open(`tel:${l}`,"_self");break;case S.SCROLL_TO_TILE:if(typeof document<"u")return()=>{const f=$e(e);document.getElementById(`tile-${f}`)?.scrollIntoView()};break;case S.GO_TO_PAGE:if(u)return()=>window.open(`${s}${u}`,"_self");break;default:console.error(`Unknown type of ActionLink: ${o}`)}};function Ye(e){return"title"in e&&"type"in e}function Ve(e,t,n,o){const r=a(()=>{const b=e.value[t];if(b!==void 0){if(Ye(b))return b;throw new Error(`Element ${t} is not action link`)}}),i=a(()=>r.value?.title),l=a(()=>r.value?.type),d=a(()=>r.value?.link),v=a(()=>r.value?.email),c=a(()=>r.value?.phone),s=a(()=>r.value?.tileId?`tile-${r.value?.tileId}`:null),u=a(()=>r.value?.type==="GO_TO_STORE_LINK"?"products":r.value?.pageId),g=a(()=>r.value?.pageUrl),A=a(()=>!!i.value),f=a(()=>!!d.value),N=Z(r.value,n,o);return E({title:i,type:l,link:d,email:v,phone:c,tileDivId:s,pageId:u,pageUrl:g,hasTitle:A,hasLink:f,performAction:N})}function ee(e,t){const n=O(),o=a(()=>!!n.site?.value?.isPreviewMode),r=a(()=>{const l=n.category?.value?.categoryTree;return Q(l)}),i=a(()=>t!==void 0?t:n.content.value!==void 0?n.content.value:{});return Ve(i,e,o.value,r.value)}function te({content:e,elementName:t,errorMessage:n,validatorFn:o}){return a(()=>{const r=e.value?.[t];if(r!==void 0){if(o(r))return r;throw new Error(n)}})}function je(e){return typeof e=="object"&&e!==null&&"categories"in e}function We(e){return a(()=>e.value.reduce((t,n)=>(t[n.id]=n,t),{}))}function He(e){return e!==void 0}function Je(e){return!!e?.trim()}function qe({name:e,customName:t,selectionType:n}){return n==="ROOT"?e:Je(t)?t:e}function Qe(e,t){return He(e)&&t}function ne({itemId:e,id:t,alt:n,name:o,nameTranslated:r,customName:i,enabled:l,productsCount:d,url:v,imageUrl:c,thumbnailImageUrl:s,imageBorderInfo:u,selectionType:g}){return{itemId:e||t.toString(),id:t,alt:n,name:qe({name:o,customName:i,selectionType:g}),nameTranslated:r,label:o,enabled:l,url:v,productsCount:d,imageUrl:c,thumbnailImageUrl:s,imageBorderInfo:u,showCategory:Qe(t,l)}}function oe(e,t,n){const o=O(),r=a(()=>t!==void 0?t:o.content.value),i=te({content:r,elementName:e,errorMessage:`Element ${e} is not a category selector type`,validatorFn:je}),l=a(()=>n??o.storeData?.value),d=a(()=>i.value?.categories.selectionType??"ROOT"),v=a(()=>l.value?.categories??[]),c=a(()=>i.value?.categories?.categoryIds??[]),s=a(()=>{const A=We(v);return d.value==="MANUAL"?i.value?.categories?.items?.map(f=>{const N=A.value[f.id];return ne({...f,...N,selectionType:d.value})})??[]:l?.value?.categories.map(f=>ne({...f,selectionType:d.value}))??[]}),u=a(()=>i.value!==void 0),g=a(()=>s.value!==void 0&&s.value.length>0);return E({categories:s,categoryIds:c,hasContent:u,hasCategories:g})}function Ze(e){return typeof e=="object"&&e!==null&&("products"in e||"product"in e)}function ae(e,t,n){const o=O(),r=a(()=>t!==void 0?t:o.content.value),i=te({content:r,elementName:e,errorMessage:`Element ${e} is not a product selector type`,validatorFn:Ze}),l=a(()=>n??o.storeData?.value),d=a(()=>i.value?.products?.selectionType??"MANUAL"),v=a(()=>i.value?.products?.productIds??[]),c=a(()=>i.value?.product?.id),s=a(()=>typeof i.value?.categoryId=="number"?i.value.categoryId:void 0),u=a(()=>{if(d.value==="CATEGORY")return s.value===0?l?.value?.products.filter(b=>b?.defaultCategoryId===0)??[]:l?.value?.products.filter(b=>s.value&&b?.categoryIds?.includes(s.value))??[];const N=c.value?[c.value]:v.value??[];return l?.value?.products?.filter(b=>N.includes(b.id))??[]}),g=a(()=>l?.value?.categories.filter(N=>N.id===s?.value)??[]),A=a(()=>i.value!==void 0&&u.value.length>0),f=a(()=>u.value!==void 0&&u.value.length>0);return E({products:u,categories:g,categoryId:s,hasContent:A,hasProducts:f})}function et(e){return"bucket"in e&&"set"in e}function G(e,t){const n=new RegExp(/^https?:\/\//);return e!=null&&n.test(e)?e:`${t}/${e}`}function tt(e,t){const n=a(()=>{const c=e.value[t];if(c!==void 0){if(et(c))return c;throw new Error(`Element ${t} is not image`)}}),o=a(()=>n.value===void 0?"":O().context.value.imageBuckets?.[n.value?.bucket]),r=a(()=>n.value!==void 0),i=a(()=>G(n.value?.set?.["cropped-webp-100x200"]?.url,o.value)),l=a(()=>G(n.value?.set?.["cropped-webp-1000x2000"]?.url,o.value)),d=a(()=>G(n.value?.set?.["webp-200x200"]?.url,o.value)),v=a(()=>G(n.value?.set?.["webp-2000x2000"]?.url,o.value));return E({hasContent:r,lowResolutionMobileImage:i,highResolutionMobileImage:l,lowResolutionDesktopImage:d,highResolutionDesktopImage:v})}function re(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return tt(o,e)}function nt(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not inputbox`)}}),o=a(()=>n.value!==void 0&&n.value.length>0),r=a(()=>n.value);return E({hasContent:o,value:r})}function ie(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return nt(o,e)}function ot(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not selectbox`)}}),o=a(()=>n.value!==void 0),r=a(()=>n.value);return E({hasContent:o,value:r})}function le(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return ot(o,e)}function at(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not textarea`)}}),o=a(()=>n.value!==void 0&&n.value.length>0),r=a(()=>n.value);return E({hasContent:o,value:r})}function ue(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return at(o,e)}function rt(e){return"enabled"in e}function it(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(rt(i))return i;throw new Error(`Element ${t} is not toggle`)}}),o=a(()=>n.value!==void 0),r=a(()=>n.value?.enabled);return E({hasContent:o,value:r})}function se(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return it(o,e)}function ce(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.cards)&&t.cards.every(n=>typeof n.settings=="object"&&n.settings!==null)}function de(e,t,n,o){if(e==null)throw Error("Could not get a reactive ref for undefined Card");const r=e.settings[n];if(r===void 0)return r;switch(t){case I.TEXTAREA:return ue(n,e.settings);case I.INPUTBOX:return ie(n,e.settings);case I.SELECTBOX:return le(n,e.settings);case I.IMAGE:return re(n,e.settings);case I.TOGGLE:return se(n,e.settings);case I.BUTTON:return ee(n,e.settings);case I.CATEGORY_SELECTOR:return oe(n,e.settings,o);case I.PRODUCT_SELECTOR:return ae(n,e.settings,o);case I.DECK:return lt(e,n,o);default:return}}function lt(e,t,n){const o=a(()=>{const l=e.settings[t];if(l!==void 0){if(ce(l))return l;throw new Error(`Element ${t} is not of DECK type`)}}),r=a(()=>o.value!==void 0&&o.value.cards.length>0),i=a(()=>o.value?.cards);return E({hasContent:r,cards:i,getReactiveRef:(l,d,v)=>de(l,d,v,n)})}function ut(e){const t=O(),n=a(()=>t.storeData?.value),o=a(()=>{const l=t.content.value[e];if(l!==void 0){if(ce(l))return l;throw new Error(`Element ${e} is not of DECK type`)}}),r=a(()=>o.value!==void 0&&o.value.cards.length>0),i=a(()=>o.value?.cards);return E({hasContent:r,cards:i,getReactiveRef:(l,d,v)=>de(l,d,v,n.value)})}function st(e){return"type"in e&&("text"in e||"image"in e)}function D(e,t){const n=new RegExp(/^https?:\/\//);return e!==void 0&&n.test(e)?e:`${t}/${e}`}function ct(){const e=O(),t=a(()=>{const l=e.content.value.logo;if(l!==void 0){if(st(l))return l;throw new Error("Element logo is not LOGO")}}),n=a(()=>t.value?.type),o=a(()=>t.value?.text),r=a(()=>t.value?.image===void 0?"":e.context.value.imageBuckets?.[t.value.image.bucket]),i=a(()=>({lowResolutionMobileImage:D(t.value?.image?.set?.["cropped-webp-100x200"]?.url,r.value),highResolutionMobileImage:D(t.value?.image?.set?.["cropped-webp-1000x2000"]?.url,r.value),lowResolutionDesktopImage:D(t.value?.image?.set?.["webp-200x200"]?.url,r.value),highResolutionDesktopImage:D(t.value?.image?.set?.["webp-2000x2000"]?.url,r.value)}));return E({type:n,text:o,image:i})}function dt(e){return e!==null&&"items"in e}function ve(e){const t=O(),n=a(()=>{const u=t.content.value[e];if(u!==void 0){if(dt(u))return u;throw new Error(`Element ${e} is not an menu`)}}),o=a(()=>!!t.site?.value?.isPreviewMode),r=a(()=>{const u=t.category?.value?.categoryTree;return Q(u)}),i=a(()=>n.value!==void 0);function l(u){if(u)try{return new URL(u).pathname}catch{return u}}function d(u){return u?.map(g=>({...g,url:l(g.url)??g.url}))}const v=a(()=>d(r.value));function c(u){const g=Z(u,o.value,v.value);return{...u,performAction:g,nestedItems:u.nestedItems?.map(c)}}const s=a(()=>n.value?.items?n.value.items.map(c):[]);return E({hasContent:i,items:s})}const vt="menu";function Ot(){return ve(vt)}function Et(){return globalThis.craneSharedTranslation??{}}function gt(){const e=O(),t=a(()=>e.site?.value),n=a(()=>Et()),o=a(()=>{const r=t.value?.languages;return r?r.find(i=>i.selected)?.code??r.find(i=>i.main)?.code??"en":"en"});return{t:r=>{const i=n.value;if(!i||Object.keys(i).length===0)return r;const l=o.value,d=i[l]?.[r];if(d!==void 0)return d;if(l!=="en"){const v=i.en?.[r];if(v!==void 0)return v}return r},currentLanguageCode:o}}function Tt(e){const t=O(),n=a(()=>t.design.value[e]),o=a(()=>{const l=n.value?.items;return l!==void 0&&Object.keys(l).length>0}),r=a(()=>n.value?.items),i=a(()=>n.value?.sortable??!1);return E({hasItems:o,items:r,sortable:i})}function Oe(e,t){if(t===void 0)return;if(!t.startsWith("global."))return t.replaceAll("_"," ");const n=t.split(".").at(2);return n===void 0?void 0:e.fontFamily?.[n]?.replaceAll("_"," ")}function h(e,t,n){return t?Oe(e,t):Oe(e,n)}function Ee(e,t){if(t===void 0)return;if(typeof t!="string"||!t.startsWith("global."))return t;const n=t.split(".").at(2);if(n!==void 0)return e.textSize?e.textSize[n]:void 0}function U(e,t,n){return t?Ee(e,t):Ee(e,n)}function ge(e,t){if(t===void 0)return;if(typeof t!="string"||!t.startsWith("global."))return t;const n=t.split(".").at(2);if(n!==void 0)return e.color?e.color[n]:void 0}function L(e,t,n){return t?ge(e,t):ge(e,n)}function ft(e,t,n){return{visible:t?.visible??n?.visible??!1,width:t?.width??n?.width??1,color:L(e,t?.color,n?.color)}}function pt(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e],l=t.globalDesign.value;return{background:{type:r?.background?.type??i?.background?.type,solid:{color:L(l,r?.background?.solid?.color,i?.background?.solid?.color)},gradient:{fromColor:L(l,r?.background?.gradient?.fromColor,i?.background?.gradient?.fromColor),toColor:L(l,r?.background?.gradient?.toColor,i?.background?.gradient?.toColor)}}}}),o=a(()=>n.value?.background);return E({background:o})}function mt(e){const t=O(),n=a(()=>{const c=t.design.value[e],s=t.defaults.value[e],u=t.globalDesign.value;return{appearance:c?.appearance??s?.appearance,font:h(u,c?.font,s?.font),size:c?.size??s?.size,style:c?.style??s?.style,color:L(u,c?.color,s?.color),visible:c?.visible??s?.visible??!1}}),o=a(()=>n.value?.appearance),r=a(()=>n.value?.font),i=a(()=>n.value?.size),l=a(()=>n.value?.style),d=a(()=>n.value?.color),v=a(()=>n.value?.visible);return E({appearance:o,font:r,size:i,style:l,color:d,visible:v.value??!1})}function It(e){const t=O(),n=a(()=>{const i=t.design.value[e],l=t.defaults.value[e],d=t.globalDesign.value;return{overlay:{type:i?.overlay?.type??l?.overlay?.type,solid:{color:L(d,i?.overlay?.solid?.color,l?.overlay?.solid?.color)},gradient:{fromColor:L(d,i?.overlay?.gradient?.fromColor,l?.overlay?.gradient?.fromColor),toColor:L(d,i?.overlay?.gradient?.toColor,l?.overlay?.gradient?.toColor)}},visible:i?.visible??l?.visible??!1}}),o=a(()=>n.value?.overlay),r=a(()=>n.value?.visible);return E({overlay:o,visible:r})}function Lt(){const e=O(),t=a(()=>e.design.value.layout),n=a(()=>t.value);return E({layout:n})}function _t(){const e=O();return a(()=>{const t=e.design.value.logo,n=e.defaults.value.logo,o=e.globalDesign.value;return{font:h(o,t?.font,n?.font),size:U(o,t?.size,n?.size),bold:t?.bold??n?.bold,italic:t?.italic??n?.italic,color:L(o,t?.color,n?.color),visible:t?.visible??n?.visible??!1,spacing:t?.spacing??n?.spacing??0,capitalization:t?.capitalization??n?.capitalization??"none",frame:ft(o,t?.frame,n?.frame)}})}function Ct(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e];return{value:r?.value??i?.value}}),o=a(()=>n.value?.value);return E({value:o})}function Rt(e){const t=O(),n=a(()=>{const c=t.design.value[e],s=t.defaults.value[e],u=t.globalDesign.value;return{font:h(u,c?.font,s?.font),size:U(u,c?.size,s?.size),bold:c?.bold??s?.bold,italic:c?.italic??s?.italic,color:L(u,c?.color,s?.color),visible:c?.visible??s?.visible??!1}}),o=a(()=>n.value?.font),r=a(()=>n.value?.size),i=a(()=>n.value?.bold),l=a(()=>n.value?.italic),d=a(()=>n.value?.color),v=a(()=>n.value?.visible);return E({font:o,size:r,bold:i,italic:l,color:d,visible:v})}function bt(e){const t=O(),n=a(()=>{const s=t.design.value[e],u=t.defaults.value[e],g=t.globalDesign.value;return{font:h(g,s?.font,u?.font),size:U(g,s?.size,u?.size),bold:s?.bold??u?.bold,italic:s?.italic??u?.italic,color:L(g,s?.color,u?.color),visible:s?.visible??u?.visible??!1,whiteSpace:"pre-wrap"}}),o=a(()=>n.value?.font),r=a(()=>n.value?.size),i=a(()=>n.value?.bold),l=a(()=>n.value?.italic),d=a(()=>n.value?.color),v=a(()=>n.value?.visible),c=a(()=>n.value?.whiteSpace);return E({font:o,size:r,bold:i,italic:l,color:d,visible:v,whiteSpace:c})}function yt(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e];return{enabled:r?.enabled??i?.enabled}}),o=a(()=>n.value?.enabled);return E({enabled:o})}const St={configuration:e=>({metadata:{...e.metadata},sections:[...e.sections]})};function T(e){return t=>{const{type:n}=t;return"type"in t?t:{type:e,...t}}}function p(e){return t=>{const{type:n,defaults:o,...r}=t,i=o?T(e)(o):void 0;return{type:e,...r,...i!==void 0?{defaults:i}:{}}}}const At={inputbox:p("INPUTBOX"),textarea:p("TEXTAREA"),button:p("BUTTON"),image:p("IMAGE"),toggle:p("TOGGLE"),selectbox:p("SELECTBOX"),deck:p("DECK"),menu:p("MENU"),navigationMenu:p("NAVIGATION_MENU"),logo:p("LOGO"),productSelector:p("PRODUCT_SELECTOR"),categorySelector:p("CATEGORY_SELECTOR"),divider:p("DIVIDER"),info:p("INFO"),default:{inputbox:T("INPUTBOX"),textarea:T("TEXTAREA"),button:T("BUTTON"),selectbox:T("SELECTBOX"),image:T("IMAGE"),toggle:T("TOGGLE"),divider:T("DIVIDER"),info:T("INFO"),deck:T("DECK"),logo:T("LOGO"),menu:T("MENU"),navigationMenu:T("NAVIGATION_MENU"),productSelector:T("PRODUCT_SELECTOR"),categorySelector:T("CATEGORY_SELECTOR")}};function _(e){return t=>{const{type:n}=t;return"type"in t?t:{type:e,...t}}}function C(e){return t=>{const{type:n,defaults:o,...r}=t,i=o?_(e)(o):void 0;return{type:e,...r,...i!==void 0?{defaults:i}:{}}}}const Nt={text:C("TEXT"),button:C("BUTTON"),image:C("IMAGE"),toggle:C("TOGGLE"),selectbox:C("SELECTBOX"),background:C("BACKGROUND"),colorPicker:C("COLOR_PICKER"),logo:C("LOGO"),divider:C("DIVIDER"),info:C("INFO"),accordion:C("ACCORDION"),default:{text:_("TEXT"),button:_("BUTTON"),image:_("IMAGE"),toggle:_("TOGGLE"),selectbox:_("SELECTBOX"),background:_("BACKGROUND"),colorPicker:_("COLOR_PICKER"),logo:_("LOGO"),accordion:_("ACCORDION"),info:_("INFO")}};function R(e){return t=>{const{type:n,defaults:o,...r}=t,i=o,l=i&&!("type"in i)?{...i,type:e}:o;return{type:e,...r,...l!==void 0?{defaults:l}:{}}}}const Gt={init:e=>({...e}),designOverride:{text:R("TEXT"),button:R("BUTTON"),image:R("IMAGE"),toggle:R("TOGGLE"),selectbox:R("SELECTBOX"),background:R("BACKGROUND"),colorPicker:R("COLOR_PICKER"),logo:R("LOGO"),divider:R("DIVIDER"),info:R("INFO"),accordion:R("ACCORDION")}},Dt={init:e=>e},ht={configuration:e=>({...e}),page:e=>({...e})},wt={default:e=>{const{type:t,...n}=e;return{type:"default",...n}},custom:e=>{const{type:t,...n}=e;return{type:"custom",...n}},store:(e={})=>{const{type:t,...n}=e;return{type:"store",...n}}},Ut={init:e=>({...e})};export{Y as ActionLinkTypeEnum,Ne as BackgroundStyleEnum,ye as ButtonAppearanceEnum,Ae as ButtonShapeEnum,Se as ButtonSizeEnum,Re as ButtonTypeEnum,Me as CatalogLayoutSlot,xe as CategoryLayoutSlot,Ue as Color,F as ConfigTypeEnum,De as DesignEditorType,I as EditorTypes,H as ImageSet,J as InstantsiteJsEvent,we as LogoTypeEnum,Ce as OverlayType,be as OverlayTypeEnum,z as PluginTypeEnum,ke as ProductLayoutSlot,Ge as SectionTypeEnum,Pe as TemplateCategoriesList,he as ValidationTypeEnum,Be as asStructuredColor,St as collection,At as content,Le as createLayoutApp,me as createVueClientApp,_e as createVueServerApp,Nt as design,Gt as layout,wt as section,Dt as showcase,ht as template,Ut as translation,Tt as useAccordionElementDesign,pt as useBackgroundElementDesign,ee as useButtonElementContent,mt as useButtonElementDesign,oe as useCategorySelectorElementContent,ut as useDeckElementContent,re as useImageElementContent,It as useImageElementDesign,ie as useInputboxElementContent,Ie as useInstantsiteJsApi,Lt as useLayoutElementDesign,ct as useLogoElementContent,_t as useLogoElementDesign,ve as useMenuElementContent,Ot as useNavigationMenuElementContent,ae as useProductSelectorElementContent,le as useSelectboxElementContent,Ct as useSelectboxElementDesign,Rt as useTextElementDesign,ue as useTextareaElementContent,bt as useTextareaElementDesign,se as useToggleElementContent,yt as useToggleElementDesign,gt as useTranslation,O as useVueBaseProps};
|
|
1
|
+
import{createSSRApp as Te,getCurrentInstance as fe,ref as y,computed as a,reactive as E}from"vue";import{renderToString as pe}from"vue/server-renderer";import{z as m}from"zod";function B(e){return{app:Te(e)}}const w=new Map;function O(){const e=(r,i,l,c,v,d,s,u)=>{w.set(r._uid,{context:y(i),content:y(l),design:y(c),defaults:y(v),site:y(d?.site??{}),category:y(d?.category),storeData:y(d?.storeData),globalDesign:y(s),tileId:y(u??void 0)})},t=(r,i,l,c,v,d,s)=>{const u=w.get(r._uid);u!==void 0&&(u.content.value=i,u.design.value=l,u.defaults.value=c,u.site.value=v.site??{},u.category.value=v.category,u.globalDesign.value=d,u.storeData.value=v.storeData,u.tileId.value=s)},n=fe()?.appContext.app._uid??-1,o=w.get(n);return{init:e,update:t,context:o?.context,content:o?.content,design:o?.design,defaults:o?.defaults,site:o?.site,category:o?.category,storeData:o?.storeData,globalDesign:o?.globalDesign,tileId:o?.tileId}}function me(e,t){return{init:()=>{const{app:n}=B(e);return t?.init?.(n),{mount:(o,r)=>{O().init(n,r.context,r.data.content,r.data.design,r.data.defaults,r.data.externalContent,r.context.globalDesign,r.data.tileId),t?.mount?.(n,o,r),n.mount(o)},update:o=>{O().update(n,o.data.content,o.data.design,o.data.defaults,o.data.externalContent,o.context.globalDesign,o.data.tileId),t?.update?.(n,o)},unmount:()=>{t?.unmount?.(n),n.unmount()}}}}}function Ie(){return globalThis.window.instantsite}function Le(e){const t={appName:"",blockName:"",version:"",scriptUrl:"",imageBuckets:{},globalDesign:{}};return{component:e,initState(n,o,r,i){O().init(n,t,o,r,i,{},{},void 0)},updateState(n,o,r,i){O().update(n,o,r,i,{},{},void 0)}}}function _e(e,t){return{init:()=>{const{app:n}=B(e);return t?.init?.(n),{render:async(o,r)=>(O().init(n,o,r.content,r.design,r.defaults,r.externalContent,o.globalDesign,r.tileId),t?.render?.(n,o,r),{html:await pe(n,{context:o}),state:{context:o,data:r}})}}}}const Ce={SOLID:"solid",GRADIENT:"gradient",NONE:"none"},M={SCROLL_TO_TILE:"SCROLL_TO_TILE",HYPER_LINK:"HYPER_LINK",MAIL_LINK:"MAIL_LINK",TEL_LINK:"TEL_LINK",GO_TO_STORE:"GO_TO_STORE",GO_TO_STORE_LINK:"GO_TO_STORE_LINK",GO_TO_PAGE:"GO_TO_PAGE",GO_TO_CATEGORY:"GO_TO_CATEGORY",GO_TO_CATEGORY_LINK:"GO_TO_CATEGORY_LINK"};m.enum(Object.values(M));const Re=M,x={COLOR:"COLOR",GRADIENT:"GRADIENT",NONE:"NONE"};m.enum(Object.values(x));const be=x,k={SOLID:"SOLID",OUTLINE:"OUTLINE",TEXT:"TEXT"};m.enum(Object.values(k));const ye=k,P={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"};m.enum(Object.values(P));const Se=P,$={ROUND_CORNER:"ROUND_CORNER",RECTANGLE:"RECTANGLE",PILL:"PILL"};m.enum(Object.values($));const Ae=$,K={COLOR:"COLOR",GRADIENT:"GRADIENT"};m.enum(Object.values(K));const Ne=K,X={SECTION:"SECTION",HEADER:"HEADER",FOOTER:"FOOTER"};m.enum(Object.values(X));const Ge=X;var z=(e=>(e[e.Server=0]="Server",e[e.Client=1]="Client",e[e.Misc=2]="Misc",e[e.Layout=3]="Layout",e[e.Asset=4]="Asset",e[e.SharedFiles=5]="SharedFiles",e))(z||{}),F=(e=>(e[e.Server=0]="Server",e[e.Client=1]="Client",e[e.SectionSetting=2]="SectionSetting",e[e.SectionShowcase=3]="SectionShowcase",e[e.SectionAsset=4]="SectionAsset",e[e.TemplateDescriptor=5]="TemplateDescriptor",e[e.PageTemplateDescriptor=6]="PageTemplateDescriptor",e[e.TemplateAsset=7]="TemplateAsset",e[e.Layout=8]="Layout",e[e.LayoutSettings=9]="LayoutSettings",e[e.LayoutAsset=10]="LayoutAsset",e[e.SlotServer=11]="SlotServer",e[e.SlotClient=12]="SlotClient",e[e.SharedTranslation=13]="SharedTranslation",e[e.CollectionDescriptor=14]="CollectionDescriptor",e[e.CollectionAsset=15]="CollectionAsset",e))(F||{}),Y=(e=>(e.SCROLL_TO_TILE="SCROLL_TO_TILE",e.HYPER_LINK="HYPER_LINK",e.MAIL_LINK="MAIL_LINK",e.TEL_LINK="TEL_LINK",e.GO_TO_STORE="GO_TO_STORE",e.GO_TO_STORE_LINK="GO_TO_STORE_LINK",e.GO_TO_PAGE="GO_TO_PAGE",e))(Y||{});const I={TEXTAREA:"TEXTAREA",INPUTBOX:"INPUTBOX",SELECTBOX:"SELECTBOX",IMAGE:"IMAGE",TOGGLE:"TOGGLE",BUTTON:"BUTTON",DECK:"DECK",MENU:"MENU",NAVIGATION_MENU:"NAVIGATION_MENU",LOGO:"LOGO",INFO:"INFO",DIVIDER:"DIVIDER",PRODUCT_SELECTOR:"PRODUCT_SELECTOR",CATEGORY_SELECTOR:"CATEGORY_SELECTOR"};m.enum(Object.values(I));const V={TEXT:"TEXT",BUTTON:"BUTTON",IMAGE:"IMAGE",TOGGLE:"TOGGLE",SELECTBOX:"SELECTBOX",BACKGROUND:"BACKGROUND",COLOR_PICKER:"COLOR_PICKER",LOGO:"LOGO",DIVIDER:"DIVIDER",INFO:"INFO",ACCORDION:"ACCORDION"};m.enum(Object.values(V));const De=V,j={CONTENT:"Content",DESIGN:"Design"};m.enum(Object.values(j));const he=j,W={TEXT:"TEXT",IMAGE:"IMAGE"};m.enum(Object.values(W));const we=W;class Ue{type="STRUCTURED_COLOR";raw;hex;hsl;rgba;auto;constructor({raw:t,hex:n,hsl:o,rgba:r,auto:i}){this.raw=t,this.hex=n,this.hsl=o,this.rgba=r,this.auto=i}}function Be(e){if(e!==void 0)return{...e,type:"STRUCTURED_COLOR"}}var H=(e=>(e.ORIGINAL="original",e.WEBP_LOW_RES="webp-200x200",e.WEBP_HI_2X_RES="webp-2000x2000",e.MOBILE_WEBP_LOW_RES="cropped-webp-100x200",e.MOBILE_WEBP_HI_RES="cropped-webp-1000x2000",e))(H||{}),J=(e=>(e.TILE_LOADED="tile-loaded",e.TILE_UNLOADED="tile-unloaded",e))(J||{});const Me={PRODUCT_LIST:"CONTROLS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},xe={CATEGORY_TITLE:"MAIN_TITLE",PRODUCT_LIST:"CONTROLS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},ke={TOP_BAR:"TOP_BAR",GALLERY:"GALLERY",SIDEBAR:"SIDEBAR",DESCRIPTION:"DESCRIPTION",REVIEW_LIST:"REVIEW_LIST",RELATED_PRODUCTS:"RELATED_PRODUCTS",BOTTOM_BAR:"FOOTER",CUSTOM_SLOT:"CUSTOM_SLOT"},q={apparel_footwear:"apparel_footwear",vape_smoke:"vape_smoke",home_garden:"home_garden",sport_outdoor:"sport_outdoor",jewelry_accessories:"jewelry_accessories",pet_animals:"pet_animals",bikes:"bikes",health_beauty:"health_beauty",gift_shop:"gift_shop",electronics:"electronics",other:"other"};m.enum(Object.values(q));const Pe=q;function Q(e){if(!e||e.length===0)return[];const t=[];function n(o){if(t.push({id:o.id,name:o.name,url:o.urlPath}),o.children&&o.children.length>0)for(const r of o.children)n(r)}for(const o of e)n(o);return t}const S={HYPER_LINK:"HYPER_LINK",SCROLL_TO_TILE:"SCROLL_TO_TILE",MAIL_LINK:"MAIL_LINK",TEL_LINK:"TEL_LINK",GO_TO_STORE:"GO_TO_STORE",GO_TO_STORE_LINK:"GO_TO_STORE_LINK",GO_TO_PAGE:"GO_TO_PAGE",GO_TO_CATEGORY:"GO_TO_CATEGORY",GO_TO_CATEGORY_LINK:"GO_TO_CATEGORY_LINK"};function $e(e){if("tileId"in e)return e.tileId;if("tileIdForScroll"in e)return e.tileIdForScroll}function Ke(e){if("pageId"in e)return e.pageId;if("pageIdForNavigate"in e)return e.pageIdForNavigate}function Xe(e,t){if("pageUrl"in e)return e.pageUrl;const n=Ke(e);switch(n){case"products":return"/products";case"cart":return"/cart";case"account":return"/account";case"search":return"/search";case"home":return"/"}if(t){const o=t.find(r=>r.pageId===n);if(o)return o.url}return"/"}function ze(e){if("categoryId"in e)return e.categoryId}function Fe(e){if(!e||e.length===0)return"";const t=e.find(n=>n.selected);return!t||t.main?"":`/${t.code}`}const Z=(e,t,n)=>{if(!e||t)return;const{type:o,link:r,email:i,phone:l}=e,c=O(),v=c.site?.value?.pages,d=c.site?.value?.languages,s=Fe(d),u=Xe(e,v),g=ze(e);switch(o){case S.HYPER_LINK:if(r){const f=e.linkTarget??"_blank";return()=>window.open(r,f)}break;case S.GO_TO_STORE:case S.GO_TO_STORE_LINK:return()=>window.open(`${s}/products`,"_self");case S.GO_TO_CATEGORY:case S.GO_TO_CATEGORY_LINK:const A=n?.find(f=>f.id===g)?.url;return A===void 0?()=>window.open(`${s}/404`,"_self"):()=>window.open(A,"_self");case S.MAIL_LINK:if(i)return()=>window.open(`mailto:${i}`,"_self");break;case S.TEL_LINK:if(l)return()=>window.open(`tel:${l}`,"_self");break;case S.SCROLL_TO_TILE:if(typeof document<"u")return()=>{const f=$e(e);document.getElementById(`tile-${f}`)?.scrollIntoView()};break;case S.GO_TO_PAGE:if(u)return()=>window.open(`${s}${u}`,"_self");break;default:console.error(`Unknown type of ActionLink: ${o}`)}};function Ye(e){return"title"in e&&"type"in e}function Ve(e,t,n,o){const r=a(()=>{const b=e.value[t];if(b!==void 0){if(Ye(b))return b;throw new Error(`Element ${t} is not action link`)}}),i=a(()=>r.value?.title),l=a(()=>r.value?.type),c=a(()=>r.value?.link),v=a(()=>r.value?.email),d=a(()=>r.value?.phone),s=a(()=>r.value?.tileId?`tile-${r.value?.tileId}`:null),u=a(()=>r.value?.type==="GO_TO_STORE_LINK"?"products":r.value?.pageId),g=a(()=>r.value?.pageUrl),A=a(()=>!!i.value),f=a(()=>!!c.value),N=Z(r.value,n,o);return E({title:i,type:l,link:c,email:v,phone:d,tileDivId:s,pageId:u,pageUrl:g,hasTitle:A,hasLink:f,performAction:N})}function ee(e,t){const n=O(),o=a(()=>!!n.site?.value?.isPreviewMode),r=a(()=>{const l=n.category?.value?.categoryTree;return Q(l)}),i=a(()=>t!==void 0?t:n.content.value!==void 0?n.content.value:{});return Ve(i,e,o.value,r.value)}function te({content:e,elementName:t,errorMessage:n,validatorFn:o}){return a(()=>{const r=e.value?.[t];if(r!==void 0){if(o(r))return r;throw new Error(n)}})}function je(e){return typeof e=="object"&&e!==null&&"categories"in e}function We(e){return a(()=>e.value.reduce((t,n)=>(t[n.id]=n,t),{}))}function He(e){return e!==void 0}function Je(e){return!!e?.trim()}function qe({name:e,customName:t,selectionType:n}){return n==="ROOT"?e:Je(t)?t:e}function Qe(e,t){return He(e)&&t}function ne({itemId:e,id:t,alt:n,name:o,nameTranslated:r,customName:i,enabled:l,productsCount:c,url:v,imageUrl:d,thumbnailImageUrl:s,imageBorderInfo:u,selectionType:g}){return{itemId:e||t.toString(),id:t,alt:n,name:qe({name:o,customName:i,selectionType:g}),nameTranslated:r,label:o,enabled:l,url:v,productsCount:c,imageUrl:d,thumbnailImageUrl:s,imageBorderInfo:u,showCategory:Qe(t,l)}}function oe(e,t,n){const o=O(),r=a(()=>t!==void 0?t:o.content.value),i=te({content:r,elementName:e,errorMessage:`Element ${e} is not a category selector type`,validatorFn:je}),l=a(()=>n??o.storeData?.value),c=a(()=>i.value?.categories.selectionType??"ROOT"),v=a(()=>l.value?.categories??[]),d=a(()=>i.value?.categories?.categoryIds??[]),s=a(()=>{const A=We(v);return c.value==="MANUAL"?i.value?.categories?.items?.map(f=>{const N=A.value[f.id];return ne({...f,...N,selectionType:c.value})})??[]:l?.value?.categories.map(f=>ne({...f,selectionType:c.value}))??[]}),u=a(()=>i.value!==void 0),g=a(()=>s.value!==void 0&&s.value.length>0);return E({categories:s,categoryIds:d,hasContent:u,hasCategories:g})}function Ze(e){return typeof e=="object"&&e!==null&&("products"in e||"product"in e)}function ae(e,t,n){const o=O(),r=a(()=>t!==void 0?t:o.content.value),i=te({content:r,elementName:e,errorMessage:`Element ${e} is not a product selector type`,validatorFn:Ze}),l=a(()=>n??o.storeData?.value),c=a(()=>i.value?.products?.selectionType??"MANUAL"),v=a(()=>i.value?.products?.productIds??[]),d=a(()=>i.value?.product?.id),s=a(()=>typeof i.value?.categoryId=="number"?i.value.categoryId:void 0),u=a(()=>{if(c.value==="ALL")return l?.value?.products??[];if(c.value==="CATEGORY")return s.value===0?l?.value?.products.filter(b=>b?.defaultCategoryId===0)??[]:l?.value?.products.filter(b=>s.value&&b?.categoryIds?.includes(s.value))??[];const N=d.value?[d.value]:v.value??[];return l?.value?.products?.filter(b=>N.includes(b.id))??[]}),g=a(()=>l?.value?.categories.filter(N=>N.id===s?.value)??[]),A=a(()=>i.value!==void 0&&u.value.length>0),f=a(()=>u.value!==void 0&&u.value.length>0);return E({products:u,categories:g,categoryId:s,hasContent:A,hasProducts:f})}function et(e){return"bucket"in e&&"set"in e}function G(e,t){const n=new RegExp(/^https?:\/\//);return e!=null&&n.test(e)?e:`${t}/${e}`}function tt(e,t){const n=a(()=>{const d=e.value[t];if(d!==void 0){if(et(d))return d;throw new Error(`Element ${t} is not image`)}}),o=a(()=>n.value===void 0?"":O().context.value.imageBuckets?.[n.value?.bucket]),r=a(()=>n.value!==void 0),i=a(()=>G(n.value?.set?.["cropped-webp-100x200"]?.url,o.value)),l=a(()=>G(n.value?.set?.["cropped-webp-1000x2000"]?.url,o.value)),c=a(()=>G(n.value?.set?.["webp-200x200"]?.url,o.value)),v=a(()=>G(n.value?.set?.["webp-2000x2000"]?.url,o.value));return E({hasContent:r,lowResolutionMobileImage:i,highResolutionMobileImage:l,lowResolutionDesktopImage:c,highResolutionDesktopImage:v})}function re(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return tt(o,e)}function nt(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not inputbox`)}}),o=a(()=>n.value!==void 0&&n.value.length>0),r=a(()=>n.value);return E({hasContent:o,value:r})}function ie(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return nt(o,e)}function ot(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not selectbox`)}}),o=a(()=>n.value!==void 0),r=a(()=>n.value);return E({hasContent:o,value:r})}function le(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return ot(o,e)}function at(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(typeof i=="string")return i;throw new Error(`Element ${t} is not textarea`)}}),o=a(()=>n.value!==void 0&&n.value.length>0),r=a(()=>n.value);return E({hasContent:o,value:r})}function ue(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return at(o,e)}function rt(e){return"enabled"in e}function it(e,t){const n=a(()=>{const i=e.value[t];if(i!==void 0){if(rt(i))return i;throw new Error(`Element ${t} is not toggle`)}}),o=a(()=>n.value!==void 0),r=a(()=>n.value?.enabled);return E({hasContent:o,value:r})}function se(e,t){const n=O(),o=a(()=>t!==void 0?t:n.content.value);return it(o,e)}function ce(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.cards)&&t.cards.every(n=>typeof n.settings=="object"&&n.settings!==null)}function de(e,t,n,o){if(e==null)throw Error("Could not get a reactive ref for undefined Card");const r=e.settings[n];if(r===void 0)return r;switch(t){case I.TEXTAREA:return ue(n,e.settings);case I.INPUTBOX:return ie(n,e.settings);case I.SELECTBOX:return le(n,e.settings);case I.IMAGE:return re(n,e.settings);case I.TOGGLE:return se(n,e.settings);case I.BUTTON:return ee(n,e.settings);case I.CATEGORY_SELECTOR:return oe(n,e.settings,o);case I.PRODUCT_SELECTOR:return ae(n,e.settings,o);case I.DECK:return lt(e,n,o);default:return}}function lt(e,t,n){const o=a(()=>{const l=e.settings[t];if(l!==void 0){if(ce(l))return l;throw new Error(`Element ${t} is not of DECK type`)}}),r=a(()=>o.value!==void 0&&o.value.cards.length>0),i=a(()=>o.value?.cards);return E({hasContent:r,cards:i,getReactiveRef:(l,c,v)=>de(l,c,v,n)})}function ut(e){const t=O(),n=a(()=>t.storeData?.value),o=a(()=>{const l=t.content.value[e];if(l!==void 0){if(ce(l))return l;throw new Error(`Element ${e} is not of DECK type`)}}),r=a(()=>o.value!==void 0&&o.value.cards.length>0),i=a(()=>o.value?.cards);return E({hasContent:r,cards:i,getReactiveRef:(l,c,v)=>de(l,c,v,n.value)})}function st(e){return"type"in e&&("text"in e||"image"in e)}function D(e,t){const n=new RegExp(/^https?:\/\//);return e!==void 0&&n.test(e)?e:`${t}/${e}`}function ct(){const e=O(),t=a(()=>{const l=e.content.value.logo;if(l!==void 0){if(st(l))return l;throw new Error("Element logo is not LOGO")}}),n=a(()=>t.value?.type),o=a(()=>t.value?.text),r=a(()=>t.value?.image===void 0?"":e.context.value.imageBuckets?.[t.value.image.bucket]),i=a(()=>({lowResolutionMobileImage:D(t.value?.image?.set?.["cropped-webp-100x200"]?.url,r.value),highResolutionMobileImage:D(t.value?.image?.set?.["cropped-webp-1000x2000"]?.url,r.value),lowResolutionDesktopImage:D(t.value?.image?.set?.["webp-200x200"]?.url,r.value),highResolutionDesktopImage:D(t.value?.image?.set?.["webp-2000x2000"]?.url,r.value)}));return E({type:n,text:o,image:i})}function dt(e){return e!==null&&"items"in e}function ve(e){const t=O(),n=a(()=>{const u=t.content.value[e];if(u!==void 0){if(dt(u))return u;throw new Error(`Element ${e} is not an menu`)}}),o=a(()=>!!t.site?.value?.isPreviewMode),r=a(()=>{const u=t.category?.value?.categoryTree;return Q(u)}),i=a(()=>n.value!==void 0);function l(u){if(u)try{return new URL(u).pathname}catch{return u}}function c(u){return u?.map(g=>({...g,url:l(g.url)??g.url}))}const v=a(()=>c(r.value));function d(u){const g=Z(u,o.value,v.value);return{...u,performAction:g,nestedItems:u.nestedItems?.map(d)}}const s=a(()=>n.value?.items?n.value.items.map(d):[]);return E({hasContent:i,items:s})}const vt="menu";function Ot(){return ve(vt)}function Et(){return globalThis.craneSharedTranslation??{}}function gt(){const e=O(),t=a(()=>e.site?.value),n=a(()=>Et()),o=a(()=>{const r=t.value?.languages;return r?r.find(i=>i.selected)?.code??r.find(i=>i.main)?.code??"en":"en"});return{t:r=>{const i=n.value;if(!i||Object.keys(i).length===0)return r;const l=o.value,c=i[l]?.[r];if(c!==void 0)return c;if(l!=="en"){const v=i.en?.[r];if(v!==void 0)return v}return r},currentLanguageCode:o}}function Tt(e){const t=O(),n=a(()=>t.design.value[e]),o=a(()=>{const l=n.value?.items;return l!==void 0&&Object.keys(l).length>0}),r=a(()=>n.value?.items),i=a(()=>n.value?.sortable??!1);return E({hasItems:o,items:r,sortable:i})}function Oe(e,t){if(t===void 0)return;if(!t.startsWith("global."))return t.replaceAll("_"," ");const n=t.split(".").at(2);return n===void 0?void 0:e.fontFamily?.[n]?.replaceAll("_"," ")}function h(e,t,n){return t?Oe(e,t):Oe(e,n)}function Ee(e,t){if(t===void 0)return;if(typeof t!="string"||!t.startsWith("global."))return t;const n=t.split(".").at(2);if(n!==void 0)return e.textSize?e.textSize[n]:void 0}function U(e,t,n){return t?Ee(e,t):Ee(e,n)}function ge(e,t){if(t===void 0)return;if(typeof t!="string"||!t.startsWith("global."))return t;const n=t.split(".").at(2);if(n!==void 0)return e.color?e.color[n]:void 0}function L(e,t,n){return t?ge(e,t):ge(e,n)}function ft(e,t,n){return{visible:t?.visible??n?.visible??!1,width:t?.width??n?.width??1,color:L(e,t?.color,n?.color)}}function pt(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e],l=t.globalDesign.value;return{background:{type:r?.background?.type??i?.background?.type,solid:{color:L(l,r?.background?.solid?.color,i?.background?.solid?.color)},gradient:{fromColor:L(l,r?.background?.gradient?.fromColor,i?.background?.gradient?.fromColor),toColor:L(l,r?.background?.gradient?.toColor,i?.background?.gradient?.toColor)}}}}),o=a(()=>n.value?.background);return E({background:o})}function mt(e){const t=O(),n=a(()=>{const d=t.design.value[e],s=t.defaults.value[e],u=t.globalDesign.value;return{appearance:d?.appearance??s?.appearance,font:h(u,d?.font,s?.font),size:d?.size??s?.size,style:d?.style??s?.style,color:L(u,d?.color,s?.color),visible:d?.visible??s?.visible??!1}}),o=a(()=>n.value?.appearance),r=a(()=>n.value?.font),i=a(()=>n.value?.size),l=a(()=>n.value?.style),c=a(()=>n.value?.color),v=a(()=>n.value?.visible);return E({appearance:o,font:r,size:i,style:l,color:c,visible:v.value??!1})}function It(e){const t=O(),n=a(()=>{const i=t.design.value[e],l=t.defaults.value[e],c=t.globalDesign.value;return{overlay:{type:i?.overlay?.type??l?.overlay?.type,solid:{color:L(c,i?.overlay?.solid?.color,l?.overlay?.solid?.color)},gradient:{fromColor:L(c,i?.overlay?.gradient?.fromColor,l?.overlay?.gradient?.fromColor),toColor:L(c,i?.overlay?.gradient?.toColor,l?.overlay?.gradient?.toColor)}},visible:i?.visible??l?.visible??!1}}),o=a(()=>n.value?.overlay),r=a(()=>n.value?.visible);return E({overlay:o,visible:r})}function Lt(){const e=O(),t=a(()=>e.design.value.layout),n=a(()=>t.value);return E({layout:n})}function _t(){const e=O();return a(()=>{const t=e.design.value.logo,n=e.defaults.value.logo,o=e.globalDesign.value;return{font:h(o,t?.font,n?.font),size:U(o,t?.size,n?.size),bold:t?.bold??n?.bold,italic:t?.italic??n?.italic,color:L(o,t?.color,n?.color),visible:t?.visible??n?.visible??!1,spacing:t?.spacing??n?.spacing??0,capitalization:t?.capitalization??n?.capitalization??"none",frame:ft(o,t?.frame,n?.frame)}})}function Ct(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e];return{value:r?.value??i?.value}}),o=a(()=>n.value?.value);return E({value:o})}function Rt(e){const t=O(),n=a(()=>{const d=t.design.value[e],s=t.defaults.value[e],u=t.globalDesign.value;return{font:h(u,d?.font,s?.font),size:U(u,d?.size,s?.size),bold:d?.bold??s?.bold,italic:d?.italic??s?.italic,color:L(u,d?.color,s?.color),visible:d?.visible??s?.visible??!1}}),o=a(()=>n.value?.font),r=a(()=>n.value?.size),i=a(()=>n.value?.bold),l=a(()=>n.value?.italic),c=a(()=>n.value?.color),v=a(()=>n.value?.visible);return E({font:o,size:r,bold:i,italic:l,color:c,visible:v})}function bt(e){const t=O(),n=a(()=>{const s=t.design.value[e],u=t.defaults.value[e],g=t.globalDesign.value;return{font:h(g,s?.font,u?.font),size:U(g,s?.size,u?.size),bold:s?.bold??u?.bold,italic:s?.italic??u?.italic,color:L(g,s?.color,u?.color),visible:s?.visible??u?.visible??!1,whiteSpace:"pre-wrap"}}),o=a(()=>n.value?.font),r=a(()=>n.value?.size),i=a(()=>n.value?.bold),l=a(()=>n.value?.italic),c=a(()=>n.value?.color),v=a(()=>n.value?.visible),d=a(()=>n.value?.whiteSpace);return E({font:o,size:r,bold:i,italic:l,color:c,visible:v,whiteSpace:d})}function yt(e){const t=O(),n=a(()=>{const r=t.design.value[e],i=t.defaults.value[e];return{enabled:r?.enabled??i?.enabled}}),o=a(()=>n.value?.enabled);return E({enabled:o})}const St={configuration:e=>({metadata:{...e.metadata},sections:[...e.sections]})};function T(e){return t=>{const{type:n}=t;return"type"in t?t:{type:e,...t}}}function p(e){return t=>{const{type:n,defaults:o,...r}=t,i=o?T(e)(o):void 0;return{type:e,...r,...i!==void 0?{defaults:i}:{}}}}const At={inputbox:p("INPUTBOX"),textarea:p("TEXTAREA"),button:p("BUTTON"),image:p("IMAGE"),toggle:p("TOGGLE"),selectbox:p("SELECTBOX"),deck:p("DECK"),menu:p("MENU"),navigationMenu:p("NAVIGATION_MENU"),logo:p("LOGO"),productSelector:p("PRODUCT_SELECTOR"),categorySelector:p("CATEGORY_SELECTOR"),divider:p("DIVIDER"),info:p("INFO"),default:{inputbox:T("INPUTBOX"),textarea:T("TEXTAREA"),button:T("BUTTON"),selectbox:T("SELECTBOX"),image:T("IMAGE"),toggle:T("TOGGLE"),divider:T("DIVIDER"),info:T("INFO"),deck:T("DECK"),logo:T("LOGO"),menu:T("MENU"),navigationMenu:T("NAVIGATION_MENU"),productSelector:T("PRODUCT_SELECTOR"),categorySelector:T("CATEGORY_SELECTOR")}};function _(e){return t=>{const{type:n}=t;return"type"in t?t:{type:e,...t}}}function C(e){return t=>{const{type:n,defaults:o,...r}=t,i=o?_(e)(o):void 0;return{type:e,...r,...i!==void 0?{defaults:i}:{}}}}const Nt={text:C("TEXT"),button:C("BUTTON"),image:C("IMAGE"),toggle:C("TOGGLE"),selectbox:C("SELECTBOX"),background:C("BACKGROUND"),colorPicker:C("COLOR_PICKER"),logo:C("LOGO"),divider:C("DIVIDER"),info:C("INFO"),accordion:C("ACCORDION"),default:{text:_("TEXT"),button:_("BUTTON"),image:_("IMAGE"),toggle:_("TOGGLE"),selectbox:_("SELECTBOX"),background:_("BACKGROUND"),colorPicker:_("COLOR_PICKER"),logo:_("LOGO"),accordion:_("ACCORDION"),info:_("INFO")}};function R(e){return t=>{const{type:n,defaults:o,...r}=t,i=o,l=i&&!("type"in i)?{...i,type:e}:o;return{type:e,...r,...l!==void 0?{defaults:l}:{}}}}const Gt={init:e=>({...e}),designOverride:{text:R("TEXT"),button:R("BUTTON"),image:R("IMAGE"),toggle:R("TOGGLE"),selectbox:R("SELECTBOX"),background:R("BACKGROUND"),colorPicker:R("COLOR_PICKER"),logo:R("LOGO"),divider:R("DIVIDER"),info:R("INFO"),accordion:R("ACCORDION")}},Dt={init:e=>e},ht={configuration:e=>({...e}),page:e=>({...e})},wt={default:e=>{const{type:t,...n}=e;return{type:"default",...n}},custom:e=>{const{type:t,...n}=e;return{type:"custom",...n}},store:(e={})=>{const{type:t,...n}=e;return{type:"store",...n}}},Ut={init:e=>({...e})};export{Y as ActionLinkTypeEnum,Ne as BackgroundStyleEnum,ye as ButtonAppearanceEnum,Ae as ButtonShapeEnum,Se as ButtonSizeEnum,Re as ButtonTypeEnum,Me as CatalogLayoutSlot,xe as CategoryLayoutSlot,Ue as Color,F as ConfigTypeEnum,De as DesignEditorType,I as EditorTypes,H as ImageSet,J as InstantsiteJsEvent,we as LogoTypeEnum,Ce as OverlayType,be as OverlayTypeEnum,z as PluginTypeEnum,ke as ProductLayoutSlot,Ge as SectionTypeEnum,Pe as TemplateCategoriesList,he as ValidationTypeEnum,Be as asStructuredColor,St as collection,At as content,Le as createLayoutApp,me as createVueClientApp,_e as createVueServerApp,Nt as design,Gt as layout,wt as section,Dt as showcase,ht as template,Ut as translation,Tt as useAccordionElementDesign,pt as useBackgroundElementDesign,ee as useButtonElementContent,mt as useButtonElementDesign,oe as useCategorySelectorElementContent,ut as useDeckElementContent,re as useImageElementContent,It as useImageElementDesign,ie as useInputboxElementContent,Ie as useInstantsiteJsApi,Lt as useLayoutElementDesign,ct as useLogoElementContent,_t as useLogoElementDesign,ve as useMenuElementContent,Ot as useNavigationMenuElementContent,ae as useProductSelectorElementContent,le as useSelectboxElementContent,Ct as useSelectboxElementDesign,Rt as useTextElementDesign,ue as useTextareaElementContent,bt as useTextareaElementDesign,se as useToggleElementContent,yt as useToggleElementDesign,gt as useTranslation,O as useVueBaseProps};
|
package/package.json
CHANGED