@useinsider/guido 3.24.0-beta.82c2d5e → 3.24.0-beta.89982ef
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 +1 -9
- package/dist/@types/config/schemas.js +37 -37
- package/dist/@types/display-condition.js +25 -0
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +82 -80
- 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/composables/useBlocksConfig.js +31 -20
- package/dist/composables/useDisplayConditions.js +117 -0
- package/dist/composables/useModuleRepair.js +23 -32
- 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 +9 -10
- package/dist/enums/academy.js +2 -2
- 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/extensions/LinkTracking/extension.js +17 -0
- package/dist/extensions/LinkTracking/writer.js +41 -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 +4 -4
- 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/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/composables/useConfig.d.ts +2 -2
- package/dist/src/composables/useDisplayConditions.d.ts +18 -0
- package/dist/src/composables/useModuleRepair.d.ts +11 -2
- package/dist/src/enums/academy.d.ts +1 -1
- 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/extensions/LinkTracking/extension.d.ts +2 -0
- package/dist/src/extensions/LinkTracking/writer.d.ts +13 -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 +167 -20
- package/dist/src/stores/display-condition.d.ts +86 -0
- package/dist/src/stores/editor.d.ts +0 -27
- package/dist/src/utils/displayCondition.d.ts +11 -0
- package/dist/src/utils/linkTrackingIds.d.ts +22 -5
- 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 +0 -1
- package/dist/utils/displayCondition.js +29 -0
- package/dist/utils/linkTrackingIds.js +82 -48
- package/dist/utils/pairProductVariables.js +30 -29
- package/dist/utils/protectTableText.js +22 -0
- package/dist/utils/templatePreparation.js +67 -57
- package/package.json +1 -1
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js +0 -17
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue2.js +0 -30
- package/dist/config/migrator/legacyUnsubscribeTextMigrator.js +0 -16
- package/dist/src/config/migrator/legacyUnsubscribeTextMigrator.d.ts +0 -1
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +0 -10
- package/dist/utils/legacyUnsubscribeConversion.js +0 -49
- /package/dist/src/components/organisms/{unsubscribe/LegacyUnsubscribeConvertedModal.vue.d.ts → display-conditions/DisplayConditionCreateDrawer.vue.d.ts} +0 -0
|
@@ -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,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
110
111
|
linkTrackingIds: boolean;
|
|
111
112
|
allowSaveWithErrors: boolean;
|
|
112
113
|
reusableRecommendationStrategy: boolean;
|
|
113
|
-
legacyUnsubscribeConversion: boolean;
|
|
114
114
|
};
|
|
115
115
|
blocks: {
|
|
116
116
|
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 +241,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
241
241
|
ui: {
|
|
242
242
|
showHeader: boolean;
|
|
243
243
|
backButtonLabel?: string | undefined;
|
|
244
|
+
externalDisplayConditions: boolean;
|
|
244
245
|
};
|
|
245
246
|
features: {
|
|
246
247
|
dynamicContent: boolean;
|
|
@@ -257,7 +258,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
257
258
|
linkTrackingIds: boolean;
|
|
258
259
|
allowSaveWithErrors: boolean;
|
|
259
260
|
reusableRecommendationStrategy: boolean;
|
|
260
|
-
legacyUnsubscribeConversion: boolean;
|
|
261
261
|
};
|
|
262
262
|
blocks: {
|
|
263
263
|
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 +388,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
388
388
|
ui: {
|
|
389
389
|
showHeader: boolean;
|
|
390
390
|
backButtonLabel?: string | undefined;
|
|
391
|
+
externalDisplayConditions: boolean;
|
|
391
392
|
};
|
|
392
393
|
features: {
|
|
393
394
|
dynamicContent: boolean;
|
|
@@ -404,7 +405,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
404
405
|
linkTrackingIds: boolean;
|
|
405
406
|
allowSaveWithErrors: boolean;
|
|
406
407
|
reusableRecommendationStrategy: boolean;
|
|
407
|
-
legacyUnsubscribeConversion: boolean;
|
|
408
408
|
};
|
|
409
409
|
blocks: {
|
|
410
410
|
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 +535,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
535
535
|
ui: {
|
|
536
536
|
showHeader: boolean;
|
|
537
537
|
backButtonLabel?: string | undefined;
|
|
538
|
+
externalDisplayConditions: boolean;
|
|
538
539
|
};
|
|
539
540
|
features: {
|
|
540
541
|
dynamicContent: boolean;
|
|
@@ -551,7 +552,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
551
552
|
linkTrackingIds: boolean;
|
|
552
553
|
allowSaveWithErrors: boolean;
|
|
553
554
|
reusableRecommendationStrategy: boolean;
|
|
554
|
-
legacyUnsubscribeConversion: boolean;
|
|
555
555
|
};
|
|
556
556
|
blocks: {
|
|
557
557
|
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 +682,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
682
682
|
ui: {
|
|
683
683
|
showHeader: boolean;
|
|
684
684
|
backButtonLabel?: string | undefined;
|
|
685
|
+
externalDisplayConditions: boolean;
|
|
685
686
|
};
|
|
686
687
|
features: {
|
|
687
688
|
dynamicContent: boolean;
|
|
@@ -698,7 +699,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
698
699
|
linkTrackingIds: boolean;
|
|
699
700
|
allowSaveWithErrors: boolean;
|
|
700
701
|
reusableRecommendationStrategy: boolean;
|
|
701
|
-
legacyUnsubscribeConversion: boolean;
|
|
702
702
|
};
|
|
703
703
|
blocks: {
|
|
704
704
|
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 +829,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
829
829
|
ui: {
|
|
830
830
|
showHeader: boolean;
|
|
831
831
|
backButtonLabel?: string | undefined;
|
|
832
|
+
externalDisplayConditions: boolean;
|
|
832
833
|
};
|
|
833
834
|
features: {
|
|
834
835
|
dynamicContent: boolean;
|
|
@@ -845,7 +846,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
845
846
|
linkTrackingIds: boolean;
|
|
846
847
|
allowSaveWithErrors: boolean;
|
|
847
848
|
reusableRecommendationStrategy: boolean;
|
|
848
|
-
legacyUnsubscribeConversion: boolean;
|
|
849
849
|
};
|
|
850
850
|
blocks: {
|
|
851
851
|
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 +976,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
976
976
|
ui: {
|
|
977
977
|
showHeader: boolean;
|
|
978
978
|
backButtonLabel?: string | undefined;
|
|
979
|
+
externalDisplayConditions: boolean;
|
|
979
980
|
};
|
|
980
981
|
features: {
|
|
981
982
|
dynamicContent: boolean;
|
|
@@ -992,7 +993,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
992
993
|
linkTrackingIds: boolean;
|
|
993
994
|
allowSaveWithErrors: boolean;
|
|
994
995
|
reusableRecommendationStrategy: boolean;
|
|
995
|
-
legacyUnsubscribeConversion: boolean;
|
|
996
996
|
};
|
|
997
997
|
blocks: {
|
|
998
998
|
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 +1123,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1123
1123
|
ui: {
|
|
1124
1124
|
showHeader: boolean;
|
|
1125
1125
|
backButtonLabel?: string | undefined;
|
|
1126
|
+
externalDisplayConditions: boolean;
|
|
1126
1127
|
};
|
|
1127
1128
|
features: {
|
|
1128
1129
|
dynamicContent: boolean;
|
|
@@ -1139,7 +1140,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1139
1140
|
linkTrackingIds: boolean;
|
|
1140
1141
|
allowSaveWithErrors: boolean;
|
|
1141
1142
|
reusableRecommendationStrategy: boolean;
|
|
1142
|
-
legacyUnsubscribeConversion: boolean;
|
|
1143
1143
|
};
|
|
1144
1144
|
blocks: {
|
|
1145
1145
|
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 +1270,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1270
1270
|
ui: {
|
|
1271
1271
|
showHeader: boolean;
|
|
1272
1272
|
backButtonLabel?: string | undefined;
|
|
1273
|
+
externalDisplayConditions: boolean;
|
|
1273
1274
|
};
|
|
1274
1275
|
features: {
|
|
1275
1276
|
dynamicContent: boolean;
|
|
@@ -1286,7 +1287,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1286
1287
|
linkTrackingIds: boolean;
|
|
1287
1288
|
allowSaveWithErrors: boolean;
|
|
1288
1289
|
reusableRecommendationStrategy: boolean;
|
|
1289
|
-
legacyUnsubscribeConversion: boolean;
|
|
1290
1290
|
};
|
|
1291
1291
|
blocks: {
|
|
1292
1292
|
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 +1417,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1417
1417
|
ui: {
|
|
1418
1418
|
showHeader: boolean;
|
|
1419
1419
|
backButtonLabel?: string | undefined;
|
|
1420
|
+
externalDisplayConditions: boolean;
|
|
1420
1421
|
};
|
|
1421
1422
|
features: {
|
|
1422
1423
|
dynamicContent: boolean;
|
|
@@ -1433,7 +1434,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1433
1434
|
linkTrackingIds: boolean;
|
|
1434
1435
|
allowSaveWithErrors: boolean;
|
|
1435
1436
|
reusableRecommendationStrategy: boolean;
|
|
1436
|
-
legacyUnsubscribeConversion: boolean;
|
|
1437
1437
|
};
|
|
1438
1438
|
blocks: {
|
|
1439
1439
|
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 +1564,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1564
1564
|
ui: {
|
|
1565
1565
|
showHeader: boolean;
|
|
1566
1566
|
backButtonLabel?: string | undefined;
|
|
1567
|
+
externalDisplayConditions: boolean;
|
|
1567
1568
|
};
|
|
1568
1569
|
features: {
|
|
1569
1570
|
dynamicContent: boolean;
|
|
@@ -1580,7 +1581,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1580
1581
|
linkTrackingIds: boolean;
|
|
1581
1582
|
allowSaveWithErrors: boolean;
|
|
1582
1583
|
reusableRecommendationStrategy: boolean;
|
|
1583
|
-
legacyUnsubscribeConversion: boolean;
|
|
1584
1584
|
};
|
|
1585
1585
|
blocks: {
|
|
1586
1586
|
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 +1711,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1711
1711
|
ui: {
|
|
1712
1712
|
showHeader: boolean;
|
|
1713
1713
|
backButtonLabel?: string | undefined;
|
|
1714
|
+
externalDisplayConditions: boolean;
|
|
1714
1715
|
};
|
|
1715
1716
|
features: {
|
|
1716
1717
|
dynamicContent: boolean;
|
|
@@ -1727,7 +1728,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1727
1728
|
linkTrackingIds: boolean;
|
|
1728
1729
|
allowSaveWithErrors: boolean;
|
|
1729
1730
|
reusableRecommendationStrategy: boolean;
|
|
1730
|
-
legacyUnsubscribeConversion: boolean;
|
|
1731
1731
|
};
|
|
1732
1732
|
blocks: {
|
|
1733
1733
|
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 +1858,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1858
1858
|
ui: {
|
|
1859
1859
|
showHeader: boolean;
|
|
1860
1860
|
backButtonLabel?: string | undefined;
|
|
1861
|
+
externalDisplayConditions: boolean;
|
|
1861
1862
|
};
|
|
1862
1863
|
features: {
|
|
1863
1864
|
dynamicContent: boolean;
|
|
@@ -1874,7 +1875,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1874
1875
|
linkTrackingIds: boolean;
|
|
1875
1876
|
allowSaveWithErrors: boolean;
|
|
1876
1877
|
reusableRecommendationStrategy: boolean;
|
|
1877
|
-
legacyUnsubscribeConversion: boolean;
|
|
1878
1878
|
};
|
|
1879
1879
|
blocks: {
|
|
1880
1880
|
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 +2005,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2005
2005
|
ui: {
|
|
2006
2006
|
showHeader: boolean;
|
|
2007
2007
|
backButtonLabel?: string | undefined;
|
|
2008
|
+
externalDisplayConditions: boolean;
|
|
2008
2009
|
};
|
|
2009
2010
|
features: {
|
|
2010
2011
|
dynamicContent: boolean;
|
|
@@ -2021,7 +2022,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2021
2022
|
linkTrackingIds: boolean;
|
|
2022
2023
|
allowSaveWithErrors: boolean;
|
|
2023
2024
|
reusableRecommendationStrategy: boolean;
|
|
2024
|
-
legacyUnsubscribeConversion: boolean;
|
|
2025
2025
|
};
|
|
2026
2026
|
blocks: {
|
|
2027
2027
|
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 +2152,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2152
2152
|
ui: {
|
|
2153
2153
|
showHeader: boolean;
|
|
2154
2154
|
backButtonLabel?: string | undefined;
|
|
2155
|
+
externalDisplayConditions: boolean;
|
|
2155
2156
|
};
|
|
2156
2157
|
features: {
|
|
2157
2158
|
dynamicContent: boolean;
|
|
@@ -2168,7 +2169,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2168
2169
|
linkTrackingIds: boolean;
|
|
2169
2170
|
allowSaveWithErrors: boolean;
|
|
2170
2171
|
reusableRecommendationStrategy: boolean;
|
|
2171
|
-
legacyUnsubscribeConversion: boolean;
|
|
2172
2172
|
};
|
|
2173
2173
|
blocks: {
|
|
2174
2174
|
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 +2299,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2299
2299
|
ui: {
|
|
2300
2300
|
showHeader: boolean;
|
|
2301
2301
|
backButtonLabel?: string | undefined;
|
|
2302
|
+
externalDisplayConditions: boolean;
|
|
2302
2303
|
};
|
|
2303
2304
|
features: {
|
|
2304
2305
|
dynamicContent: boolean;
|
|
@@ -2315,7 +2316,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2315
2316
|
linkTrackingIds: boolean;
|
|
2316
2317
|
allowSaveWithErrors: boolean;
|
|
2317
2318
|
reusableRecommendationStrategy: boolean;
|
|
2318
|
-
legacyUnsubscribeConversion: boolean;
|
|
2319
2319
|
};
|
|
2320
2320
|
blocks: {
|
|
2321
2321
|
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 +2446,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2446
2446
|
ui: {
|
|
2447
2447
|
showHeader: boolean;
|
|
2448
2448
|
backButtonLabel?: string | undefined;
|
|
2449
|
+
externalDisplayConditions: boolean;
|
|
2449
2450
|
};
|
|
2450
2451
|
features: {
|
|
2451
2452
|
dynamicContent: boolean;
|
|
@@ -2462,7 +2463,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2462
2463
|
linkTrackingIds: boolean;
|
|
2463
2464
|
allowSaveWithErrors: boolean;
|
|
2464
2465
|
reusableRecommendationStrategy: boolean;
|
|
2465
|
-
legacyUnsubscribeConversion: boolean;
|
|
2466
2466
|
};
|
|
2467
2467
|
blocks: {
|
|
2468
2468
|
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 +2605,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2605
2605
|
ui: {
|
|
2606
2606
|
showHeader: boolean;
|
|
2607
2607
|
backButtonLabel?: string | undefined;
|
|
2608
|
+
externalDisplayConditions: boolean;
|
|
2608
2609
|
};
|
|
2609
2610
|
features: {
|
|
2610
2611
|
dynamicContent: boolean;
|
|
@@ -2621,7 +2622,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2621
2622
|
linkTrackingIds: boolean;
|
|
2622
2623
|
allowSaveWithErrors: boolean;
|
|
2623
2624
|
reusableRecommendationStrategy: boolean;
|
|
2624
|
-
legacyUnsubscribeConversion: boolean;
|
|
2625
2625
|
};
|
|
2626
2626
|
blocks: {
|
|
2627
2627
|
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 +2752,154 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2752
2752
|
ui: {
|
|
2753
2753
|
showHeader: boolean;
|
|
2754
2754
|
backButtonLabel?: string | undefined;
|
|
2755
|
+
externalDisplayConditions: boolean;
|
|
2756
|
+
};
|
|
2757
|
+
features: {
|
|
2758
|
+
dynamicContent: boolean;
|
|
2759
|
+
saveAsTemplate: boolean;
|
|
2760
|
+
versionHistory: boolean;
|
|
2761
|
+
testMessage: boolean;
|
|
2762
|
+
displayConditions: boolean;
|
|
2763
|
+
unsubscribe: boolean;
|
|
2764
|
+
modulesDisabled: boolean;
|
|
2765
|
+
liquidSyntax: boolean;
|
|
2766
|
+
autosave: boolean;
|
|
2767
|
+
accessibilityTesting: boolean;
|
|
2768
|
+
allowlistEnabled: boolean;
|
|
2769
|
+
linkTrackingIds: boolean;
|
|
2770
|
+
allowSaveWithErrors: boolean;
|
|
2771
|
+
reusableRecommendationStrategy: boolean;
|
|
2772
|
+
};
|
|
2773
|
+
blocks: {
|
|
2774
|
+
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")[];
|
|
2775
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
2776
|
+
};
|
|
2777
|
+
compiler: {
|
|
2778
|
+
customRules: ({
|
|
2779
|
+
type: "replace";
|
|
2780
|
+
search: string;
|
|
2781
|
+
replacement: string;
|
|
2782
|
+
replaceAll?: boolean | undefined;
|
|
2783
|
+
id: string;
|
|
2784
|
+
description?: string | undefined;
|
|
2785
|
+
priority: number;
|
|
2786
|
+
} | {
|
|
2787
|
+
type: "regex";
|
|
2788
|
+
pattern: string;
|
|
2789
|
+
replacement: string;
|
|
2790
|
+
flags?: string | undefined;
|
|
2791
|
+
id: string;
|
|
2792
|
+
description?: string | undefined;
|
|
2793
|
+
priority: number;
|
|
2794
|
+
} | {
|
|
2795
|
+
type: "remove";
|
|
2796
|
+
targets: string[];
|
|
2797
|
+
id: string;
|
|
2798
|
+
description?: string | undefined;
|
|
2799
|
+
priority: number;
|
|
2800
|
+
} | {
|
|
2801
|
+
type: "custom";
|
|
2802
|
+
processor: (html: string) => string;
|
|
2803
|
+
id: string;
|
|
2804
|
+
description?: string | undefined;
|
|
2805
|
+
priority: number;
|
|
2806
|
+
})[];
|
|
2807
|
+
ignoreDefaultRules: boolean;
|
|
2808
|
+
};
|
|
2809
|
+
callbacks: {
|
|
2810
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
2811
|
+
};
|
|
2812
|
+
} | null;
|
|
2813
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
|
|
2814
|
+
/**
|
|
2815
|
+
* Check if the Insider display-condition UI replaces Stripo's
|
|
2816
|
+
*/
|
|
2817
|
+
externalDisplayConditions: (state: {
|
|
2818
|
+
initialized: boolean;
|
|
2819
|
+
config: {
|
|
2820
|
+
identity: {
|
|
2821
|
+
templateId: string;
|
|
2822
|
+
userId: string;
|
|
2823
|
+
variationId?: string | undefined;
|
|
2824
|
+
campaignId?: string | undefined;
|
|
2825
|
+
templateLibraryId?: string | undefined;
|
|
2826
|
+
};
|
|
2827
|
+
partner: {
|
|
2828
|
+
name: string;
|
|
2829
|
+
productType: 60 | 49 | 97;
|
|
2830
|
+
messageType: 1 | 2;
|
|
2831
|
+
username: string;
|
|
2832
|
+
fallbackFont?: {
|
|
2833
|
+
name: string;
|
|
2834
|
+
family: string;
|
|
2835
|
+
} | undefined;
|
|
2836
|
+
};
|
|
2837
|
+
template: {
|
|
2838
|
+
html: string;
|
|
2839
|
+
css: string;
|
|
2840
|
+
preselectedDynamicContent: {
|
|
2841
|
+
text: string;
|
|
2842
|
+
value: string;
|
|
2843
|
+
fallback?: string | undefined;
|
|
2844
|
+
format?: {
|
|
2845
|
+
key: string;
|
|
2846
|
+
value: string;
|
|
2847
|
+
} | undefined;
|
|
2848
|
+
}[];
|
|
2849
|
+
dynamicContentList: {
|
|
2850
|
+
[x: string]: import("../library").DynamicContentNode[];
|
|
2851
|
+
};
|
|
2852
|
+
customFieldAttributes: string[];
|
|
2853
|
+
selectedUnsubscribePages: number[];
|
|
2854
|
+
forceRecreate: boolean;
|
|
2855
|
+
trackIdCounter: number;
|
|
2856
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2857
|
+
migration: {
|
|
2858
|
+
recommendationConfigs: {
|
|
2859
|
+
[x: string]: {
|
|
2860
|
+
id?: number | undefined;
|
|
2861
|
+
decimalCount?: string | number | undefined;
|
|
2862
|
+
productIds?: unknown[] | undefined;
|
|
2863
|
+
sendProductRequestFlag?: boolean | undefined;
|
|
2864
|
+
shuffleProducts?: boolean | undefined;
|
|
2865
|
+
filters?: unknown[] | undefined;
|
|
2866
|
+
currency?: string | undefined;
|
|
2867
|
+
currencySettings?: unknown;
|
|
2868
|
+
language?: string | undefined;
|
|
2869
|
+
strategy?: string | undefined;
|
|
2870
|
+
recommendedProducts?: unknown[] | undefined;
|
|
2871
|
+
cardsInRow?: number | undefined;
|
|
2872
|
+
mobileRightPadding?: number | undefined;
|
|
2873
|
+
mobileLeftPadding?: number | undefined;
|
|
2874
|
+
unresponsive?: boolean | undefined;
|
|
2875
|
+
orientation?: string | undefined;
|
|
2876
|
+
textTrimming?: boolean | undefined;
|
|
2877
|
+
blockType?: string | undefined;
|
|
2878
|
+
size?: string | number | undefined;
|
|
2879
|
+
verticalResponsiveness?: boolean | undefined;
|
|
2880
|
+
isPriceMovedToNextLine?: boolean | undefined;
|
|
2881
|
+
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
2882
|
+
} & {
|
|
2883
|
+
[key: string]: unknown;
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
editor: {
|
|
2889
|
+
locale: string;
|
|
2890
|
+
translationsPath: string;
|
|
2891
|
+
migrationDate: number;
|
|
2892
|
+
emailHeader: {
|
|
2893
|
+
senderName: string;
|
|
2894
|
+
subject: string;
|
|
2895
|
+
};
|
|
2896
|
+
savedModulesFolderName: string;
|
|
2897
|
+
defaultModulesFolderName: string;
|
|
2898
|
+
};
|
|
2899
|
+
ui: {
|
|
2900
|
+
showHeader: boolean;
|
|
2901
|
+
backButtonLabel?: string | undefined;
|
|
2902
|
+
externalDisplayConditions: boolean;
|
|
2755
2903
|
};
|
|
2756
2904
|
features: {
|
|
2757
2905
|
dynamicContent: boolean;
|
|
@@ -2768,7 +2916,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2768
2916
|
linkTrackingIds: boolean;
|
|
2769
2917
|
allowSaveWithErrors: boolean;
|
|
2770
2918
|
reusableRecommendationStrategy: boolean;
|
|
2771
|
-
legacyUnsubscribeConversion: boolean;
|
|
2772
2919
|
};
|
|
2773
2920
|
blocks: {
|
|
2774
2921
|
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 +3048,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2901
3048
|
ui: {
|
|
2902
3049
|
showHeader: boolean;
|
|
2903
3050
|
backButtonLabel?: string | undefined;
|
|
3051
|
+
externalDisplayConditions: boolean;
|
|
2904
3052
|
};
|
|
2905
3053
|
features: {
|
|
2906
3054
|
dynamicContent: boolean;
|
|
@@ -2917,7 +3065,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2917
3065
|
linkTrackingIds: boolean;
|
|
2918
3066
|
allowSaveWithErrors: boolean;
|
|
2919
3067
|
reusableRecommendationStrategy: boolean;
|
|
2920
|
-
legacyUnsubscribeConversion: boolean;
|
|
2921
3068
|
};
|
|
2922
3069
|
blocks: {
|
|
2923
3070
|
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 {};
|