@useinsider/guido 3.25.0 → 3.26.0-beta.017ecf8
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 +11 -0
- package/dist/@types/config/schemas.js +106 -100
- 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/useSave.js +57 -52
- package/dist/composables/useSaveValidation.js +118 -110
- package/dist/composables/useTranslations.js +2 -1
- package/dist/composables/validators/useUnsubscribeBlockValidator.js +48 -33
- 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/enums/save-validation.js +1 -1
- 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 +2 -2
- package/dist/services/displayConditionApi.js +39 -0
- package/dist/src/@types/config/schemas.d.ts +12 -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 +6 -0
- package/dist/src/composables/useDisplayConditions.d.ts +18 -0
- package/dist/src/composables/useModuleRepair.d.ts +2 -11
- package/dist/src/composables/useSaveValidation.d.ts +1 -1
- package/dist/src/composables/validators/useUnsubscribeBlockValidator.d.ts +4 -0
- 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/enums/save-validation.d.ts +2 -1
- 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 +210 -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/stripo-runtime-manifest.json.js +1 -1
- 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 +2 -2
|
@@ -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,7 +111,9 @@ 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;
|
|
116
|
+
blockUnsubscribeLinks: boolean;
|
|
114
117
|
};
|
|
115
118
|
blocks: {
|
|
116
119
|
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")[];
|
|
@@ -241,6 +244,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
241
244
|
ui: {
|
|
242
245
|
showHeader: boolean;
|
|
243
246
|
backButtonLabel?: string | undefined;
|
|
247
|
+
externalDisplayConditions: boolean;
|
|
244
248
|
};
|
|
245
249
|
features: {
|
|
246
250
|
dynamicContent: boolean;
|
|
@@ -257,7 +261,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
257
261
|
linkTrackingIds: boolean;
|
|
258
262
|
allowSaveWithErrors: boolean;
|
|
259
263
|
reusableRecommendationStrategy: boolean;
|
|
264
|
+
legacyUnsubscribeConversion: boolean;
|
|
260
265
|
itemsPriceFormatting: boolean;
|
|
266
|
+
blockUnsubscribeLinks: boolean;
|
|
261
267
|
};
|
|
262
268
|
blocks: {
|
|
263
269
|
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")[];
|
|
@@ -388,6 +394,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
388
394
|
ui: {
|
|
389
395
|
showHeader: boolean;
|
|
390
396
|
backButtonLabel?: string | undefined;
|
|
397
|
+
externalDisplayConditions: boolean;
|
|
391
398
|
};
|
|
392
399
|
features: {
|
|
393
400
|
dynamicContent: boolean;
|
|
@@ -404,7 +411,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
404
411
|
linkTrackingIds: boolean;
|
|
405
412
|
allowSaveWithErrors: boolean;
|
|
406
413
|
reusableRecommendationStrategy: boolean;
|
|
414
|
+
legacyUnsubscribeConversion: boolean;
|
|
407
415
|
itemsPriceFormatting: boolean;
|
|
416
|
+
blockUnsubscribeLinks: boolean;
|
|
408
417
|
};
|
|
409
418
|
blocks: {
|
|
410
419
|
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")[];
|
|
@@ -535,6 +544,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
535
544
|
ui: {
|
|
536
545
|
showHeader: boolean;
|
|
537
546
|
backButtonLabel?: string | undefined;
|
|
547
|
+
externalDisplayConditions: boolean;
|
|
538
548
|
};
|
|
539
549
|
features: {
|
|
540
550
|
dynamicContent: boolean;
|
|
@@ -551,7 +561,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
551
561
|
linkTrackingIds: boolean;
|
|
552
562
|
allowSaveWithErrors: boolean;
|
|
553
563
|
reusableRecommendationStrategy: boolean;
|
|
564
|
+
legacyUnsubscribeConversion: boolean;
|
|
554
565
|
itemsPriceFormatting: boolean;
|
|
566
|
+
blockUnsubscribeLinks: boolean;
|
|
555
567
|
};
|
|
556
568
|
blocks: {
|
|
557
569
|
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")[];
|
|
@@ -682,6 +694,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
682
694
|
ui: {
|
|
683
695
|
showHeader: boolean;
|
|
684
696
|
backButtonLabel?: string | undefined;
|
|
697
|
+
externalDisplayConditions: boolean;
|
|
685
698
|
};
|
|
686
699
|
features: {
|
|
687
700
|
dynamicContent: boolean;
|
|
@@ -698,7 +711,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
698
711
|
linkTrackingIds: boolean;
|
|
699
712
|
allowSaveWithErrors: boolean;
|
|
700
713
|
reusableRecommendationStrategy: boolean;
|
|
714
|
+
legacyUnsubscribeConversion: boolean;
|
|
701
715
|
itemsPriceFormatting: boolean;
|
|
716
|
+
blockUnsubscribeLinks: boolean;
|
|
702
717
|
};
|
|
703
718
|
blocks: {
|
|
704
719
|
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")[];
|
|
@@ -829,6 +844,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
829
844
|
ui: {
|
|
830
845
|
showHeader: boolean;
|
|
831
846
|
backButtonLabel?: string | undefined;
|
|
847
|
+
externalDisplayConditions: boolean;
|
|
832
848
|
};
|
|
833
849
|
features: {
|
|
834
850
|
dynamicContent: boolean;
|
|
@@ -845,7 +861,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
845
861
|
linkTrackingIds: boolean;
|
|
846
862
|
allowSaveWithErrors: boolean;
|
|
847
863
|
reusableRecommendationStrategy: boolean;
|
|
864
|
+
legacyUnsubscribeConversion: boolean;
|
|
848
865
|
itemsPriceFormatting: boolean;
|
|
866
|
+
blockUnsubscribeLinks: boolean;
|
|
849
867
|
};
|
|
850
868
|
blocks: {
|
|
851
869
|
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")[];
|
|
@@ -976,6 +994,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
976
994
|
ui: {
|
|
977
995
|
showHeader: boolean;
|
|
978
996
|
backButtonLabel?: string | undefined;
|
|
997
|
+
externalDisplayConditions: boolean;
|
|
979
998
|
};
|
|
980
999
|
features: {
|
|
981
1000
|
dynamicContent: boolean;
|
|
@@ -992,7 +1011,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
992
1011
|
linkTrackingIds: boolean;
|
|
993
1012
|
allowSaveWithErrors: boolean;
|
|
994
1013
|
reusableRecommendationStrategy: boolean;
|
|
1014
|
+
legacyUnsubscribeConversion: boolean;
|
|
995
1015
|
itemsPriceFormatting: boolean;
|
|
1016
|
+
blockUnsubscribeLinks: boolean;
|
|
996
1017
|
};
|
|
997
1018
|
blocks: {
|
|
998
1019
|
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")[];
|
|
@@ -1123,6 +1144,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1123
1144
|
ui: {
|
|
1124
1145
|
showHeader: boolean;
|
|
1125
1146
|
backButtonLabel?: string | undefined;
|
|
1147
|
+
externalDisplayConditions: boolean;
|
|
1126
1148
|
};
|
|
1127
1149
|
features: {
|
|
1128
1150
|
dynamicContent: boolean;
|
|
@@ -1139,7 +1161,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1139
1161
|
linkTrackingIds: boolean;
|
|
1140
1162
|
allowSaveWithErrors: boolean;
|
|
1141
1163
|
reusableRecommendationStrategy: boolean;
|
|
1164
|
+
legacyUnsubscribeConversion: boolean;
|
|
1142
1165
|
itemsPriceFormatting: boolean;
|
|
1166
|
+
blockUnsubscribeLinks: boolean;
|
|
1143
1167
|
};
|
|
1144
1168
|
blocks: {
|
|
1145
1169
|
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")[];
|
|
@@ -1270,6 +1294,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1270
1294
|
ui: {
|
|
1271
1295
|
showHeader: boolean;
|
|
1272
1296
|
backButtonLabel?: string | undefined;
|
|
1297
|
+
externalDisplayConditions: boolean;
|
|
1273
1298
|
};
|
|
1274
1299
|
features: {
|
|
1275
1300
|
dynamicContent: boolean;
|
|
@@ -1286,7 +1311,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1286
1311
|
linkTrackingIds: boolean;
|
|
1287
1312
|
allowSaveWithErrors: boolean;
|
|
1288
1313
|
reusableRecommendationStrategy: boolean;
|
|
1314
|
+
legacyUnsubscribeConversion: boolean;
|
|
1289
1315
|
itemsPriceFormatting: boolean;
|
|
1316
|
+
blockUnsubscribeLinks: boolean;
|
|
1290
1317
|
};
|
|
1291
1318
|
blocks: {
|
|
1292
1319
|
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")[];
|
|
@@ -1417,6 +1444,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1417
1444
|
ui: {
|
|
1418
1445
|
showHeader: boolean;
|
|
1419
1446
|
backButtonLabel?: string | undefined;
|
|
1447
|
+
externalDisplayConditions: boolean;
|
|
1420
1448
|
};
|
|
1421
1449
|
features: {
|
|
1422
1450
|
dynamicContent: boolean;
|
|
@@ -1433,7 +1461,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1433
1461
|
linkTrackingIds: boolean;
|
|
1434
1462
|
allowSaveWithErrors: boolean;
|
|
1435
1463
|
reusableRecommendationStrategy: boolean;
|
|
1464
|
+
legacyUnsubscribeConversion: boolean;
|
|
1436
1465
|
itemsPriceFormatting: boolean;
|
|
1466
|
+
blockUnsubscribeLinks: boolean;
|
|
1437
1467
|
};
|
|
1438
1468
|
blocks: {
|
|
1439
1469
|
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")[];
|
|
@@ -1564,6 +1594,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1564
1594
|
ui: {
|
|
1565
1595
|
showHeader: boolean;
|
|
1566
1596
|
backButtonLabel?: string | undefined;
|
|
1597
|
+
externalDisplayConditions: boolean;
|
|
1567
1598
|
};
|
|
1568
1599
|
features: {
|
|
1569
1600
|
dynamicContent: boolean;
|
|
@@ -1580,7 +1611,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1580
1611
|
linkTrackingIds: boolean;
|
|
1581
1612
|
allowSaveWithErrors: boolean;
|
|
1582
1613
|
reusableRecommendationStrategy: boolean;
|
|
1614
|
+
legacyUnsubscribeConversion: boolean;
|
|
1583
1615
|
itemsPriceFormatting: boolean;
|
|
1616
|
+
blockUnsubscribeLinks: boolean;
|
|
1584
1617
|
};
|
|
1585
1618
|
blocks: {
|
|
1586
1619
|
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")[];
|
|
@@ -1711,6 +1744,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1711
1744
|
ui: {
|
|
1712
1745
|
showHeader: boolean;
|
|
1713
1746
|
backButtonLabel?: string | undefined;
|
|
1747
|
+
externalDisplayConditions: boolean;
|
|
1714
1748
|
};
|
|
1715
1749
|
features: {
|
|
1716
1750
|
dynamicContent: boolean;
|
|
@@ -1727,7 +1761,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1727
1761
|
linkTrackingIds: boolean;
|
|
1728
1762
|
allowSaveWithErrors: boolean;
|
|
1729
1763
|
reusableRecommendationStrategy: boolean;
|
|
1764
|
+
legacyUnsubscribeConversion: boolean;
|
|
1730
1765
|
itemsPriceFormatting: boolean;
|
|
1766
|
+
blockUnsubscribeLinks: boolean;
|
|
1731
1767
|
};
|
|
1732
1768
|
blocks: {
|
|
1733
1769
|
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")[];
|
|
@@ -1858,6 +1894,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1858
1894
|
ui: {
|
|
1859
1895
|
showHeader: boolean;
|
|
1860
1896
|
backButtonLabel?: string | undefined;
|
|
1897
|
+
externalDisplayConditions: boolean;
|
|
1861
1898
|
};
|
|
1862
1899
|
features: {
|
|
1863
1900
|
dynamicContent: boolean;
|
|
@@ -1874,7 +1911,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1874
1911
|
linkTrackingIds: boolean;
|
|
1875
1912
|
allowSaveWithErrors: boolean;
|
|
1876
1913
|
reusableRecommendationStrategy: boolean;
|
|
1914
|
+
legacyUnsubscribeConversion: boolean;
|
|
1877
1915
|
itemsPriceFormatting: boolean;
|
|
1916
|
+
blockUnsubscribeLinks: boolean;
|
|
1878
1917
|
};
|
|
1879
1918
|
blocks: {
|
|
1880
1919
|
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")[];
|
|
@@ -2005,6 +2044,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2005
2044
|
ui: {
|
|
2006
2045
|
showHeader: boolean;
|
|
2007
2046
|
backButtonLabel?: string | undefined;
|
|
2047
|
+
externalDisplayConditions: boolean;
|
|
2008
2048
|
};
|
|
2009
2049
|
features: {
|
|
2010
2050
|
dynamicContent: boolean;
|
|
@@ -2021,7 +2061,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2021
2061
|
linkTrackingIds: boolean;
|
|
2022
2062
|
allowSaveWithErrors: boolean;
|
|
2023
2063
|
reusableRecommendationStrategy: boolean;
|
|
2064
|
+
legacyUnsubscribeConversion: boolean;
|
|
2024
2065
|
itemsPriceFormatting: boolean;
|
|
2066
|
+
blockUnsubscribeLinks: boolean;
|
|
2025
2067
|
};
|
|
2026
2068
|
blocks: {
|
|
2027
2069
|
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")[];
|
|
@@ -2152,6 +2194,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2152
2194
|
ui: {
|
|
2153
2195
|
showHeader: boolean;
|
|
2154
2196
|
backButtonLabel?: string | undefined;
|
|
2197
|
+
externalDisplayConditions: boolean;
|
|
2155
2198
|
};
|
|
2156
2199
|
features: {
|
|
2157
2200
|
dynamicContent: boolean;
|
|
@@ -2168,7 +2211,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2168
2211
|
linkTrackingIds: boolean;
|
|
2169
2212
|
allowSaveWithErrors: boolean;
|
|
2170
2213
|
reusableRecommendationStrategy: boolean;
|
|
2214
|
+
legacyUnsubscribeConversion: boolean;
|
|
2171
2215
|
itemsPriceFormatting: boolean;
|
|
2216
|
+
blockUnsubscribeLinks: boolean;
|
|
2172
2217
|
};
|
|
2173
2218
|
blocks: {
|
|
2174
2219
|
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")[];
|
|
@@ -2299,6 +2344,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2299
2344
|
ui: {
|
|
2300
2345
|
showHeader: boolean;
|
|
2301
2346
|
backButtonLabel?: string | undefined;
|
|
2347
|
+
externalDisplayConditions: boolean;
|
|
2302
2348
|
};
|
|
2303
2349
|
features: {
|
|
2304
2350
|
dynamicContent: boolean;
|
|
@@ -2315,7 +2361,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2315
2361
|
linkTrackingIds: boolean;
|
|
2316
2362
|
allowSaveWithErrors: boolean;
|
|
2317
2363
|
reusableRecommendationStrategy: boolean;
|
|
2364
|
+
legacyUnsubscribeConversion: boolean;
|
|
2318
2365
|
itemsPriceFormatting: boolean;
|
|
2366
|
+
blockUnsubscribeLinks: boolean;
|
|
2319
2367
|
};
|
|
2320
2368
|
blocks: {
|
|
2321
2369
|
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")[];
|
|
@@ -2446,6 +2494,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2446
2494
|
ui: {
|
|
2447
2495
|
showHeader: boolean;
|
|
2448
2496
|
backButtonLabel?: string | undefined;
|
|
2497
|
+
externalDisplayConditions: boolean;
|
|
2449
2498
|
};
|
|
2450
2499
|
features: {
|
|
2451
2500
|
dynamicContent: boolean;
|
|
@@ -2462,7 +2511,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2462
2511
|
linkTrackingIds: boolean;
|
|
2463
2512
|
allowSaveWithErrors: boolean;
|
|
2464
2513
|
reusableRecommendationStrategy: boolean;
|
|
2514
|
+
legacyUnsubscribeConversion: boolean;
|
|
2465
2515
|
itemsPriceFormatting: boolean;
|
|
2516
|
+
blockUnsubscribeLinks: boolean;
|
|
2466
2517
|
};
|
|
2467
2518
|
blocks: {
|
|
2468
2519
|
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")[];
|
|
@@ -2605,6 +2656,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2605
2656
|
ui: {
|
|
2606
2657
|
showHeader: boolean;
|
|
2607
2658
|
backButtonLabel?: string | undefined;
|
|
2659
|
+
externalDisplayConditions: boolean;
|
|
2608
2660
|
};
|
|
2609
2661
|
features: {
|
|
2610
2662
|
dynamicContent: boolean;
|
|
@@ -2621,7 +2673,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2621
2673
|
linkTrackingIds: boolean;
|
|
2622
2674
|
allowSaveWithErrors: boolean;
|
|
2623
2675
|
reusableRecommendationStrategy: boolean;
|
|
2676
|
+
legacyUnsubscribeConversion: boolean;
|
|
2624
2677
|
itemsPriceFormatting: boolean;
|
|
2678
|
+
blockUnsubscribeLinks: boolean;
|
|
2625
2679
|
};
|
|
2626
2680
|
blocks: {
|
|
2627
2681
|
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")[];
|
|
@@ -2752,6 +2806,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2752
2806
|
ui: {
|
|
2753
2807
|
showHeader: boolean;
|
|
2754
2808
|
backButtonLabel?: string | undefined;
|
|
2809
|
+
externalDisplayConditions: boolean;
|
|
2755
2810
|
};
|
|
2756
2811
|
features: {
|
|
2757
2812
|
dynamicContent: boolean;
|
|
@@ -2768,7 +2823,159 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2768
2823
|
linkTrackingIds: boolean;
|
|
2769
2824
|
allowSaveWithErrors: boolean;
|
|
2770
2825
|
reusableRecommendationStrategy: boolean;
|
|
2826
|
+
legacyUnsubscribeConversion: boolean;
|
|
2771
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;
|
|
2977
|
+
itemsPriceFormatting: boolean;
|
|
2978
|
+
blockUnsubscribeLinks: boolean;
|
|
2772
2979
|
};
|
|
2773
2980
|
blocks: {
|
|
2774
2981
|
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")[];
|
|
@@ -2901,6 +3108,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2901
3108
|
ui: {
|
|
2902
3109
|
showHeader: boolean;
|
|
2903
3110
|
backButtonLabel?: string | undefined;
|
|
3111
|
+
externalDisplayConditions: boolean;
|
|
2904
3112
|
};
|
|
2905
3113
|
features: {
|
|
2906
3114
|
dynamicContent: boolean;
|
|
@@ -2917,7 +3125,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2917
3125
|
linkTrackingIds: boolean;
|
|
2918
3126
|
allowSaveWithErrors: boolean;
|
|
2919
3127
|
reusableRecommendationStrategy: boolean;
|
|
3128
|
+
legacyUnsubscribeConversion: boolean;
|
|
2920
3129
|
itemsPriceFormatting: boolean;
|
|
3130
|
+
blockUnsubscribeLinks: boolean;
|
|
2921
3131
|
};
|
|
2922
3132
|
blocks: {
|
|
2923
3133
|
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")[];
|
|
@@ -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 {};
|