@useinsider/guido 3.26.0-beta.19d84af → 3.26.0-beta.1c75c9f
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/README.md +10 -0
- package/dist/@types/config/schemas.js +98 -94
- package/dist/@types/display-condition.js +25 -0
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +113 -104
- package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +17 -0
- package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +41 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +30 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +81 -0
- package/dist/components/organisms/display-conditions/DisplayConditionListState.vue.js +17 -0
- package/dist/components/organisms/display-conditions/DisplayConditionListState.vue2.js +45 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +36 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +63 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +17 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +22 -0
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js +17 -0
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue2.js +30 -0
- package/dist/composables/useBlocksConfig.js +29 -20
- package/dist/composables/useDisplayConditions.js +116 -0
- package/dist/composables/useModuleRepair.js +33 -24
- package/dist/composables/useTranslations.js +2 -1
- package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
- package/dist/config/migrator/index.js +8 -7
- package/dist/config/migrator/legacyUnsubscribeTextMigrator.js +16 -0
- package/dist/enums/academy.js +3 -1
- package/dist/enums/display-condition.js +12 -0
- package/dist/extensions/DisplayConditions/bridge.js +25 -0
- package/dist/extensions/DisplayConditions/constants.js +26 -0
- package/dist/extensions/DisplayConditions/control.js +215 -0
- package/dist/extensions/DisplayConditions/display-conditions.css.js +226 -0
- package/dist/extensions/DisplayConditions/extension.js +28 -0
- package/dist/extensions/DisplayConditions/iconsRegistry.js +20 -0
- package/dist/extensions/DisplayConditions/library.js +30 -0
- package/dist/extensions/DisplayConditions/settingsPanel.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -92
- package/dist/node_modules/valibot/dist/index.js +297 -261
- package/dist/package.json.js +1 -1
- package/dist/services/displayConditionApi.js +39 -0
- package/dist/src/@types/config/schemas.d.ts +8 -0
- package/dist/src/@types/display-condition.d.ts +61 -0
- package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +43 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionListState.vue.d.ts +18 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionsHost.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.d.ts +2 -0
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useDisplayConditions.d.ts +18 -0
- package/dist/src/composables/useModuleRepair.d.ts +2 -11
- package/dist/src/config/migrator/legacyUnsubscribeTextMigrator.d.ts +1 -0
- package/dist/src/enums/academy.d.ts +2 -0
- package/dist/src/enums/display-condition.d.ts +15 -0
- package/dist/src/extensions/DisplayConditions/bridge.d.ts +7 -0
- package/dist/src/extensions/DisplayConditions/constants.d.ts +23 -0
- package/dist/src/extensions/DisplayConditions/control.d.ts +25 -0
- package/dist/src/extensions/DisplayConditions/extension.d.ts +2 -0
- package/dist/src/extensions/DisplayConditions/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/DisplayConditions/library.d.ts +8 -0
- package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +5 -0
- package/dist/src/mock/api/display-conditions.d.ts +2 -0
- package/dist/src/services/displayConditionApi.d.ts +8 -0
- package/dist/src/stores/config.d.ts +190 -0
- package/dist/src/stores/display-condition.d.ts +86 -0
- package/dist/src/stores/editor.d.ts +27 -0
- package/dist/src/utils/displayCondition.d.ts +11 -0
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +10 -0
- package/dist/src/utils/protectTableText.d.ts +2 -0
- package/dist/static/styles/variables.css.js +1 -0
- package/dist/stores/config.js +13 -6
- package/dist/stores/display-condition.js +29 -0
- package/dist/stores/editor.js +1 -0
- package/dist/utils/displayCondition.js +29 -0
- package/dist/utils/legacyUnsubscribeConversion.js +49 -0
- package/dist/utils/pairProductVariables.js +29 -28
- package/dist/utils/protectTableText.js +22 -0
- package/package.json +1 -1
|
@@ -94,6 +94,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
94
94
|
ui: {
|
|
95
95
|
showHeader: boolean;
|
|
96
96
|
backButtonLabel?: string | undefined;
|
|
97
|
+
externalDisplayConditions: boolean;
|
|
97
98
|
};
|
|
98
99
|
features: {
|
|
99
100
|
dynamicContent: boolean;
|
|
@@ -110,6 +111,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
110
111
|
linkTrackingIds: boolean;
|
|
111
112
|
allowSaveWithErrors: boolean;
|
|
112
113
|
reusableRecommendationStrategy: boolean;
|
|
114
|
+
legacyUnsubscribeConversion: boolean;
|
|
113
115
|
itemsPriceFormatting: boolean;
|
|
114
116
|
blockUnsubscribeLinks: boolean;
|
|
115
117
|
};
|
|
@@ -242,6 +244,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
242
244
|
ui: {
|
|
243
245
|
showHeader: boolean;
|
|
244
246
|
backButtonLabel?: string | undefined;
|
|
247
|
+
externalDisplayConditions: boolean;
|
|
245
248
|
};
|
|
246
249
|
features: {
|
|
247
250
|
dynamicContent: boolean;
|
|
@@ -258,6 +261,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
258
261
|
linkTrackingIds: boolean;
|
|
259
262
|
allowSaveWithErrors: boolean;
|
|
260
263
|
reusableRecommendationStrategy: boolean;
|
|
264
|
+
legacyUnsubscribeConversion: boolean;
|
|
261
265
|
itemsPriceFormatting: boolean;
|
|
262
266
|
blockUnsubscribeLinks: boolean;
|
|
263
267
|
};
|
|
@@ -390,6 +394,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
390
394
|
ui: {
|
|
391
395
|
showHeader: boolean;
|
|
392
396
|
backButtonLabel?: string | undefined;
|
|
397
|
+
externalDisplayConditions: boolean;
|
|
393
398
|
};
|
|
394
399
|
features: {
|
|
395
400
|
dynamicContent: boolean;
|
|
@@ -406,6 +411,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
406
411
|
linkTrackingIds: boolean;
|
|
407
412
|
allowSaveWithErrors: boolean;
|
|
408
413
|
reusableRecommendationStrategy: boolean;
|
|
414
|
+
legacyUnsubscribeConversion: boolean;
|
|
409
415
|
itemsPriceFormatting: boolean;
|
|
410
416
|
blockUnsubscribeLinks: boolean;
|
|
411
417
|
};
|
|
@@ -538,6 +544,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
538
544
|
ui: {
|
|
539
545
|
showHeader: boolean;
|
|
540
546
|
backButtonLabel?: string | undefined;
|
|
547
|
+
externalDisplayConditions: boolean;
|
|
541
548
|
};
|
|
542
549
|
features: {
|
|
543
550
|
dynamicContent: boolean;
|
|
@@ -554,6 +561,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
554
561
|
linkTrackingIds: boolean;
|
|
555
562
|
allowSaveWithErrors: boolean;
|
|
556
563
|
reusableRecommendationStrategy: boolean;
|
|
564
|
+
legacyUnsubscribeConversion: boolean;
|
|
557
565
|
itemsPriceFormatting: boolean;
|
|
558
566
|
blockUnsubscribeLinks: boolean;
|
|
559
567
|
};
|
|
@@ -686,6 +694,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
686
694
|
ui: {
|
|
687
695
|
showHeader: boolean;
|
|
688
696
|
backButtonLabel?: string | undefined;
|
|
697
|
+
externalDisplayConditions: boolean;
|
|
689
698
|
};
|
|
690
699
|
features: {
|
|
691
700
|
dynamicContent: boolean;
|
|
@@ -702,6 +711,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
702
711
|
linkTrackingIds: boolean;
|
|
703
712
|
allowSaveWithErrors: boolean;
|
|
704
713
|
reusableRecommendationStrategy: boolean;
|
|
714
|
+
legacyUnsubscribeConversion: boolean;
|
|
705
715
|
itemsPriceFormatting: boolean;
|
|
706
716
|
blockUnsubscribeLinks: boolean;
|
|
707
717
|
};
|
|
@@ -834,6 +844,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
834
844
|
ui: {
|
|
835
845
|
showHeader: boolean;
|
|
836
846
|
backButtonLabel?: string | undefined;
|
|
847
|
+
externalDisplayConditions: boolean;
|
|
837
848
|
};
|
|
838
849
|
features: {
|
|
839
850
|
dynamicContent: boolean;
|
|
@@ -850,6 +861,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
850
861
|
linkTrackingIds: boolean;
|
|
851
862
|
allowSaveWithErrors: boolean;
|
|
852
863
|
reusableRecommendationStrategy: boolean;
|
|
864
|
+
legacyUnsubscribeConversion: boolean;
|
|
853
865
|
itemsPriceFormatting: boolean;
|
|
854
866
|
blockUnsubscribeLinks: boolean;
|
|
855
867
|
};
|
|
@@ -982,6 +994,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
982
994
|
ui: {
|
|
983
995
|
showHeader: boolean;
|
|
984
996
|
backButtonLabel?: string | undefined;
|
|
997
|
+
externalDisplayConditions: boolean;
|
|
985
998
|
};
|
|
986
999
|
features: {
|
|
987
1000
|
dynamicContent: boolean;
|
|
@@ -998,6 +1011,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
998
1011
|
linkTrackingIds: boolean;
|
|
999
1012
|
allowSaveWithErrors: boolean;
|
|
1000
1013
|
reusableRecommendationStrategy: boolean;
|
|
1014
|
+
legacyUnsubscribeConversion: boolean;
|
|
1001
1015
|
itemsPriceFormatting: boolean;
|
|
1002
1016
|
blockUnsubscribeLinks: boolean;
|
|
1003
1017
|
};
|
|
@@ -1130,6 +1144,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1130
1144
|
ui: {
|
|
1131
1145
|
showHeader: boolean;
|
|
1132
1146
|
backButtonLabel?: string | undefined;
|
|
1147
|
+
externalDisplayConditions: boolean;
|
|
1133
1148
|
};
|
|
1134
1149
|
features: {
|
|
1135
1150
|
dynamicContent: boolean;
|
|
@@ -1146,6 +1161,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1146
1161
|
linkTrackingIds: boolean;
|
|
1147
1162
|
allowSaveWithErrors: boolean;
|
|
1148
1163
|
reusableRecommendationStrategy: boolean;
|
|
1164
|
+
legacyUnsubscribeConversion: boolean;
|
|
1149
1165
|
itemsPriceFormatting: boolean;
|
|
1150
1166
|
blockUnsubscribeLinks: boolean;
|
|
1151
1167
|
};
|
|
@@ -1278,6 +1294,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1278
1294
|
ui: {
|
|
1279
1295
|
showHeader: boolean;
|
|
1280
1296
|
backButtonLabel?: string | undefined;
|
|
1297
|
+
externalDisplayConditions: boolean;
|
|
1281
1298
|
};
|
|
1282
1299
|
features: {
|
|
1283
1300
|
dynamicContent: boolean;
|
|
@@ -1294,6 +1311,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1294
1311
|
linkTrackingIds: boolean;
|
|
1295
1312
|
allowSaveWithErrors: boolean;
|
|
1296
1313
|
reusableRecommendationStrategy: boolean;
|
|
1314
|
+
legacyUnsubscribeConversion: boolean;
|
|
1297
1315
|
itemsPriceFormatting: boolean;
|
|
1298
1316
|
blockUnsubscribeLinks: boolean;
|
|
1299
1317
|
};
|
|
@@ -1426,6 +1444,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1426
1444
|
ui: {
|
|
1427
1445
|
showHeader: boolean;
|
|
1428
1446
|
backButtonLabel?: string | undefined;
|
|
1447
|
+
externalDisplayConditions: boolean;
|
|
1429
1448
|
};
|
|
1430
1449
|
features: {
|
|
1431
1450
|
dynamicContent: boolean;
|
|
@@ -1442,6 +1461,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1442
1461
|
linkTrackingIds: boolean;
|
|
1443
1462
|
allowSaveWithErrors: boolean;
|
|
1444
1463
|
reusableRecommendationStrategy: boolean;
|
|
1464
|
+
legacyUnsubscribeConversion: boolean;
|
|
1445
1465
|
itemsPriceFormatting: boolean;
|
|
1446
1466
|
blockUnsubscribeLinks: boolean;
|
|
1447
1467
|
};
|
|
@@ -1574,6 +1594,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1574
1594
|
ui: {
|
|
1575
1595
|
showHeader: boolean;
|
|
1576
1596
|
backButtonLabel?: string | undefined;
|
|
1597
|
+
externalDisplayConditions: boolean;
|
|
1577
1598
|
};
|
|
1578
1599
|
features: {
|
|
1579
1600
|
dynamicContent: boolean;
|
|
@@ -1590,6 +1611,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1590
1611
|
linkTrackingIds: boolean;
|
|
1591
1612
|
allowSaveWithErrors: boolean;
|
|
1592
1613
|
reusableRecommendationStrategy: boolean;
|
|
1614
|
+
legacyUnsubscribeConversion: boolean;
|
|
1593
1615
|
itemsPriceFormatting: boolean;
|
|
1594
1616
|
blockUnsubscribeLinks: boolean;
|
|
1595
1617
|
};
|
|
@@ -1722,6 +1744,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1722
1744
|
ui: {
|
|
1723
1745
|
showHeader: boolean;
|
|
1724
1746
|
backButtonLabel?: string | undefined;
|
|
1747
|
+
externalDisplayConditions: boolean;
|
|
1725
1748
|
};
|
|
1726
1749
|
features: {
|
|
1727
1750
|
dynamicContent: boolean;
|
|
@@ -1738,6 +1761,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1738
1761
|
linkTrackingIds: boolean;
|
|
1739
1762
|
allowSaveWithErrors: boolean;
|
|
1740
1763
|
reusableRecommendationStrategy: boolean;
|
|
1764
|
+
legacyUnsubscribeConversion: boolean;
|
|
1741
1765
|
itemsPriceFormatting: boolean;
|
|
1742
1766
|
blockUnsubscribeLinks: boolean;
|
|
1743
1767
|
};
|
|
@@ -1870,6 +1894,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1870
1894
|
ui: {
|
|
1871
1895
|
showHeader: boolean;
|
|
1872
1896
|
backButtonLabel?: string | undefined;
|
|
1897
|
+
externalDisplayConditions: boolean;
|
|
1873
1898
|
};
|
|
1874
1899
|
features: {
|
|
1875
1900
|
dynamicContent: boolean;
|
|
@@ -1886,6 +1911,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1886
1911
|
linkTrackingIds: boolean;
|
|
1887
1912
|
allowSaveWithErrors: boolean;
|
|
1888
1913
|
reusableRecommendationStrategy: boolean;
|
|
1914
|
+
legacyUnsubscribeConversion: boolean;
|
|
1889
1915
|
itemsPriceFormatting: boolean;
|
|
1890
1916
|
blockUnsubscribeLinks: boolean;
|
|
1891
1917
|
};
|
|
@@ -2018,6 +2044,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2018
2044
|
ui: {
|
|
2019
2045
|
showHeader: boolean;
|
|
2020
2046
|
backButtonLabel?: string | undefined;
|
|
2047
|
+
externalDisplayConditions: boolean;
|
|
2021
2048
|
};
|
|
2022
2049
|
features: {
|
|
2023
2050
|
dynamicContent: boolean;
|
|
@@ -2034,6 +2061,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2034
2061
|
linkTrackingIds: boolean;
|
|
2035
2062
|
allowSaveWithErrors: boolean;
|
|
2036
2063
|
reusableRecommendationStrategy: boolean;
|
|
2064
|
+
legacyUnsubscribeConversion: boolean;
|
|
2037
2065
|
itemsPriceFormatting: boolean;
|
|
2038
2066
|
blockUnsubscribeLinks: boolean;
|
|
2039
2067
|
};
|
|
@@ -2166,6 +2194,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2166
2194
|
ui: {
|
|
2167
2195
|
showHeader: boolean;
|
|
2168
2196
|
backButtonLabel?: string | undefined;
|
|
2197
|
+
externalDisplayConditions: boolean;
|
|
2169
2198
|
};
|
|
2170
2199
|
features: {
|
|
2171
2200
|
dynamicContent: boolean;
|
|
@@ -2182,6 +2211,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2182
2211
|
linkTrackingIds: boolean;
|
|
2183
2212
|
allowSaveWithErrors: boolean;
|
|
2184
2213
|
reusableRecommendationStrategy: boolean;
|
|
2214
|
+
legacyUnsubscribeConversion: boolean;
|
|
2185
2215
|
itemsPriceFormatting: boolean;
|
|
2186
2216
|
blockUnsubscribeLinks: boolean;
|
|
2187
2217
|
};
|
|
@@ -2314,6 +2344,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2314
2344
|
ui: {
|
|
2315
2345
|
showHeader: boolean;
|
|
2316
2346
|
backButtonLabel?: string | undefined;
|
|
2347
|
+
externalDisplayConditions: boolean;
|
|
2317
2348
|
};
|
|
2318
2349
|
features: {
|
|
2319
2350
|
dynamicContent: boolean;
|
|
@@ -2330,6 +2361,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2330
2361
|
linkTrackingIds: boolean;
|
|
2331
2362
|
allowSaveWithErrors: boolean;
|
|
2332
2363
|
reusableRecommendationStrategy: boolean;
|
|
2364
|
+
legacyUnsubscribeConversion: boolean;
|
|
2333
2365
|
itemsPriceFormatting: boolean;
|
|
2334
2366
|
blockUnsubscribeLinks: boolean;
|
|
2335
2367
|
};
|
|
@@ -2462,6 +2494,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2462
2494
|
ui: {
|
|
2463
2495
|
showHeader: boolean;
|
|
2464
2496
|
backButtonLabel?: string | undefined;
|
|
2497
|
+
externalDisplayConditions: boolean;
|
|
2465
2498
|
};
|
|
2466
2499
|
features: {
|
|
2467
2500
|
dynamicContent: boolean;
|
|
@@ -2478,6 +2511,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2478
2511
|
linkTrackingIds: boolean;
|
|
2479
2512
|
allowSaveWithErrors: boolean;
|
|
2480
2513
|
reusableRecommendationStrategy: boolean;
|
|
2514
|
+
legacyUnsubscribeConversion: boolean;
|
|
2481
2515
|
itemsPriceFormatting: boolean;
|
|
2482
2516
|
blockUnsubscribeLinks: boolean;
|
|
2483
2517
|
};
|
|
@@ -2622,6 +2656,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2622
2656
|
ui: {
|
|
2623
2657
|
showHeader: boolean;
|
|
2624
2658
|
backButtonLabel?: string | undefined;
|
|
2659
|
+
externalDisplayConditions: boolean;
|
|
2625
2660
|
};
|
|
2626
2661
|
features: {
|
|
2627
2662
|
dynamicContent: boolean;
|
|
@@ -2638,6 +2673,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2638
2673
|
linkTrackingIds: boolean;
|
|
2639
2674
|
allowSaveWithErrors: boolean;
|
|
2640
2675
|
reusableRecommendationStrategy: boolean;
|
|
2676
|
+
legacyUnsubscribeConversion: boolean;
|
|
2641
2677
|
itemsPriceFormatting: boolean;
|
|
2642
2678
|
blockUnsubscribeLinks: boolean;
|
|
2643
2679
|
};
|
|
@@ -2770,6 +2806,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2770
2806
|
ui: {
|
|
2771
2807
|
showHeader: boolean;
|
|
2772
2808
|
backButtonLabel?: string | undefined;
|
|
2809
|
+
externalDisplayConditions: boolean;
|
|
2773
2810
|
};
|
|
2774
2811
|
features: {
|
|
2775
2812
|
dynamicContent: boolean;
|
|
@@ -2786,6 +2823,157 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2786
2823
|
linkTrackingIds: boolean;
|
|
2787
2824
|
allowSaveWithErrors: boolean;
|
|
2788
2825
|
reusableRecommendationStrategy: boolean;
|
|
2826
|
+
legacyUnsubscribeConversion: boolean;
|
|
2827
|
+
itemsPriceFormatting: boolean;
|
|
2828
|
+
blockUnsubscribeLinks: boolean;
|
|
2829
|
+
};
|
|
2830
|
+
blocks: {
|
|
2831
|
+
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
2832
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
2833
|
+
};
|
|
2834
|
+
compiler: {
|
|
2835
|
+
customRules: ({
|
|
2836
|
+
type: "replace";
|
|
2837
|
+
search: string;
|
|
2838
|
+
replacement: string;
|
|
2839
|
+
replaceAll?: boolean | undefined;
|
|
2840
|
+
id: string;
|
|
2841
|
+
description?: string | undefined;
|
|
2842
|
+
priority: number;
|
|
2843
|
+
} | {
|
|
2844
|
+
type: "regex";
|
|
2845
|
+
pattern: string;
|
|
2846
|
+
replacement: string;
|
|
2847
|
+
flags?: string | undefined;
|
|
2848
|
+
id: string;
|
|
2849
|
+
description?: string | undefined;
|
|
2850
|
+
priority: number;
|
|
2851
|
+
} | {
|
|
2852
|
+
type: "remove";
|
|
2853
|
+
targets: string[];
|
|
2854
|
+
id: string;
|
|
2855
|
+
description?: string | undefined;
|
|
2856
|
+
priority: number;
|
|
2857
|
+
} | {
|
|
2858
|
+
type: "custom";
|
|
2859
|
+
processor: (html: string) => string;
|
|
2860
|
+
id: string;
|
|
2861
|
+
description?: string | undefined;
|
|
2862
|
+
priority: number;
|
|
2863
|
+
})[];
|
|
2864
|
+
ignoreDefaultRules: boolean;
|
|
2865
|
+
};
|
|
2866
|
+
callbacks: {
|
|
2867
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
2868
|
+
};
|
|
2869
|
+
} | null;
|
|
2870
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
|
|
2871
|
+
/**
|
|
2872
|
+
* Check if the Insider display-condition UI replaces Stripo's
|
|
2873
|
+
*/
|
|
2874
|
+
externalDisplayConditions: (state: {
|
|
2875
|
+
initialized: boolean;
|
|
2876
|
+
config: {
|
|
2877
|
+
identity: {
|
|
2878
|
+
templateId: string;
|
|
2879
|
+
userId: string;
|
|
2880
|
+
variationId?: string | undefined;
|
|
2881
|
+
campaignId?: string | undefined;
|
|
2882
|
+
templateLibraryId?: string | undefined;
|
|
2883
|
+
};
|
|
2884
|
+
partner: {
|
|
2885
|
+
name: string;
|
|
2886
|
+
productType: 60 | 49 | 97;
|
|
2887
|
+
messageType: 1 | 2;
|
|
2888
|
+
username: string;
|
|
2889
|
+
fallbackFont?: {
|
|
2890
|
+
name: string;
|
|
2891
|
+
family: string;
|
|
2892
|
+
} | undefined;
|
|
2893
|
+
};
|
|
2894
|
+
template: {
|
|
2895
|
+
html: string;
|
|
2896
|
+
css: string;
|
|
2897
|
+
preselectedDynamicContent: {
|
|
2898
|
+
text: string;
|
|
2899
|
+
value: string;
|
|
2900
|
+
fallback?: string | undefined;
|
|
2901
|
+
format?: {
|
|
2902
|
+
key: string;
|
|
2903
|
+
value: string;
|
|
2904
|
+
} | undefined;
|
|
2905
|
+
}[];
|
|
2906
|
+
dynamicContentList: {
|
|
2907
|
+
[x: string]: import("../library").DynamicContentNode[];
|
|
2908
|
+
};
|
|
2909
|
+
customFieldAttributes: string[];
|
|
2910
|
+
selectedUnsubscribePages: number[];
|
|
2911
|
+
forceRecreate: boolean;
|
|
2912
|
+
trackIdCounter: number;
|
|
2913
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2914
|
+
migration: {
|
|
2915
|
+
recommendationConfigs: {
|
|
2916
|
+
[x: string]: {
|
|
2917
|
+
id?: number | undefined;
|
|
2918
|
+
decimalCount?: string | number | undefined;
|
|
2919
|
+
productIds?: unknown[] | undefined;
|
|
2920
|
+
sendProductRequestFlag?: boolean | undefined;
|
|
2921
|
+
shuffleProducts?: boolean | undefined;
|
|
2922
|
+
filters?: unknown[] | undefined;
|
|
2923
|
+
currency?: string | undefined;
|
|
2924
|
+
currencySettings?: unknown;
|
|
2925
|
+
language?: string | undefined;
|
|
2926
|
+
strategy?: string | undefined;
|
|
2927
|
+
recommendedProducts?: unknown[] | undefined;
|
|
2928
|
+
cardsInRow?: number | undefined;
|
|
2929
|
+
mobileRightPadding?: number | undefined;
|
|
2930
|
+
mobileLeftPadding?: number | undefined;
|
|
2931
|
+
unresponsive?: boolean | undefined;
|
|
2932
|
+
orientation?: string | undefined;
|
|
2933
|
+
textTrimming?: boolean | undefined;
|
|
2934
|
+
blockType?: string | undefined;
|
|
2935
|
+
size?: string | number | undefined;
|
|
2936
|
+
verticalResponsiveness?: boolean | undefined;
|
|
2937
|
+
isPriceMovedToNextLine?: boolean | undefined;
|
|
2938
|
+
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
2939
|
+
} & {
|
|
2940
|
+
[key: string]: unknown;
|
|
2941
|
+
};
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
editor: {
|
|
2946
|
+
locale: string;
|
|
2947
|
+
translationsPath: string;
|
|
2948
|
+
migrationDate: number;
|
|
2949
|
+
emailHeader: {
|
|
2950
|
+
senderName: string;
|
|
2951
|
+
subject: string;
|
|
2952
|
+
};
|
|
2953
|
+
savedModulesFolderName: string;
|
|
2954
|
+
defaultModulesFolderName: string;
|
|
2955
|
+
};
|
|
2956
|
+
ui: {
|
|
2957
|
+
showHeader: boolean;
|
|
2958
|
+
backButtonLabel?: string | undefined;
|
|
2959
|
+
externalDisplayConditions: boolean;
|
|
2960
|
+
};
|
|
2961
|
+
features: {
|
|
2962
|
+
dynamicContent: boolean;
|
|
2963
|
+
saveAsTemplate: boolean;
|
|
2964
|
+
versionHistory: boolean;
|
|
2965
|
+
testMessage: boolean;
|
|
2966
|
+
displayConditions: boolean;
|
|
2967
|
+
unsubscribe: boolean;
|
|
2968
|
+
modulesDisabled: boolean;
|
|
2969
|
+
liquidSyntax: boolean;
|
|
2970
|
+
autosave: boolean;
|
|
2971
|
+
accessibilityTesting: boolean;
|
|
2972
|
+
allowlistEnabled: boolean;
|
|
2973
|
+
linkTrackingIds: boolean;
|
|
2974
|
+
allowSaveWithErrors: boolean;
|
|
2975
|
+
reusableRecommendationStrategy: boolean;
|
|
2976
|
+
legacyUnsubscribeConversion: boolean;
|
|
2789
2977
|
itemsPriceFormatting: boolean;
|
|
2790
2978
|
blockUnsubscribeLinks: boolean;
|
|
2791
2979
|
};
|
|
@@ -2920,6 +3108,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2920
3108
|
ui: {
|
|
2921
3109
|
showHeader: boolean;
|
|
2922
3110
|
backButtonLabel?: string | undefined;
|
|
3111
|
+
externalDisplayConditions: boolean;
|
|
2923
3112
|
};
|
|
2924
3113
|
features: {
|
|
2925
3114
|
dynamicContent: boolean;
|
|
@@ -2936,6 +3125,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2936
3125
|
linkTrackingIds: boolean;
|
|
2937
3126
|
allowSaveWithErrors: boolean;
|
|
2938
3127
|
reusableRecommendationStrategy: boolean;
|
|
3128
|
+
legacyUnsubscribeConversion: boolean;
|
|
2939
3129
|
itemsPriceFormatting: boolean;
|
|
2940
3130
|
blockUnsubscribeLinks: boolean;
|
|
2941
3131
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { AppliedDisplayCondition, SavedDisplayCondition } from '@@/Types/display-condition';
|
|
2
|
+
export type DisplayConditionView = 'none' | 'create' | 'select';
|
|
3
|
+
export type DisplayConditionListStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
4
|
+
interface DisplayConditionState {
|
|
5
|
+
view: DisplayConditionView;
|
|
6
|
+
editing: AppliedDisplayCondition | null;
|
|
7
|
+
list: SavedDisplayCondition[];
|
|
8
|
+
listStatus: DisplayConditionListStatus;
|
|
9
|
+
listRequest: number;
|
|
10
|
+
pendingDelete: SavedDisplayCondition | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const useDisplayConditionStore: import("pinia").StoreDefinition<"guidoDisplayCondition", DisplayConditionState, {
|
|
13
|
+
isCreateOpen: (state: {
|
|
14
|
+
view: DisplayConditionView;
|
|
15
|
+
editing: {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
beforeScript: string;
|
|
20
|
+
afterScript: string;
|
|
21
|
+
extraData?: string | undefined;
|
|
22
|
+
type?: string | undefined;
|
|
23
|
+
} | null;
|
|
24
|
+
list: {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
syntax: "liquid" | "pongo";
|
|
29
|
+
method: "codeOnly" | "logicBuilder";
|
|
30
|
+
codeBefore: string;
|
|
31
|
+
codeAfter: string;
|
|
32
|
+
createdAt?: string | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
listStatus: DisplayConditionListStatus;
|
|
35
|
+
listRequest: number;
|
|
36
|
+
pendingDelete: {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
syntax: "liquid" | "pongo";
|
|
41
|
+
method: "codeOnly" | "logicBuilder";
|
|
42
|
+
codeBefore: string;
|
|
43
|
+
codeAfter: string;
|
|
44
|
+
createdAt?: string | undefined;
|
|
45
|
+
} | null;
|
|
46
|
+
} & import("pinia").PiniaCustomStateProperties<DisplayConditionState>) => boolean;
|
|
47
|
+
isSelectOpen: (state: {
|
|
48
|
+
view: DisplayConditionView;
|
|
49
|
+
editing: {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
beforeScript: string;
|
|
54
|
+
afterScript: string;
|
|
55
|
+
extraData?: string | undefined;
|
|
56
|
+
type?: string | undefined;
|
|
57
|
+
} | null;
|
|
58
|
+
list: {
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
description: string;
|
|
62
|
+
syntax: "liquid" | "pongo";
|
|
63
|
+
method: "codeOnly" | "logicBuilder";
|
|
64
|
+
codeBefore: string;
|
|
65
|
+
codeAfter: string;
|
|
66
|
+
createdAt?: string | undefined;
|
|
67
|
+
}[];
|
|
68
|
+
listStatus: DisplayConditionListStatus;
|
|
69
|
+
listRequest: number;
|
|
70
|
+
pendingDelete: {
|
|
71
|
+
id: number;
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
syntax: "liquid" | "pongo";
|
|
75
|
+
method: "codeOnly" | "logicBuilder";
|
|
76
|
+
codeBefore: string;
|
|
77
|
+
codeAfter: string;
|
|
78
|
+
createdAt?: string | undefined;
|
|
79
|
+
} | null;
|
|
80
|
+
} & import("pinia").PiniaCustomStateProperties<DisplayConditionState>) => boolean;
|
|
81
|
+
}, {
|
|
82
|
+
openCreate(editing?: AppliedDisplayCondition | null): void;
|
|
83
|
+
openSelect(): void;
|
|
84
|
+
close(): void;
|
|
85
|
+
}>;
|
|
86
|
+
export {};
|