@useinsider/guido 3.24.0-beta.0abeefe → 3.24.0-beta.172ae7a

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.
Files changed (97) hide show
  1. package/README.md +15 -2
  2. package/dist/@types/config/schemas.js +37 -37
  3. package/dist/components/Guido.vue.js +2 -2
  4. package/dist/components/Guido.vue2.js +80 -82
  5. package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js +17 -0
  6. package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue2.js +30 -0
  7. package/dist/composables/useActionsApi.js +2 -2
  8. package/dist/composables/useBlocksConfig.js +20 -31
  9. package/dist/composables/useEditorTrackingIds.js +49 -0
  10. package/dist/composables/useHtmlCompiler.js +2 -0
  11. package/dist/composables/useModuleRepair.js +32 -23
  12. package/dist/composables/useStripo.js +70 -70
  13. package/dist/composables/useTranslations.js +1 -2
  14. package/dist/config/compiler/htmlCompilerRules.js +14 -6
  15. package/dist/config/compiler/utils/itemsCompilerUtils.js +42 -43
  16. package/dist/config/compiler/utils/recommendationCompilerUtils.js +64 -67
  17. package/dist/config/migrator/index.js +10 -9
  18. package/dist/config/migrator/legacyUnsubscribeTextMigrator.js +16 -0
  19. package/dist/enums/academy.js +2 -2
  20. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +10 -8
  21. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +28 -24
  22. package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +23 -22
  23. package/dist/guido.css +1 -1
  24. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +92 -93
  25. package/dist/node_modules/valibot/dist/index.js +261 -297
  26. package/dist/package.json.js +6 -6
  27. package/dist/services/templateLibraryApi.js +39 -36
  28. package/dist/src/@types/config/schemas.d.ts +4 -4
  29. package/dist/src/composables/useConfig.d.ts +2 -2
  30. package/dist/src/composables/useEditorTrackingIds.d.ts +7 -0
  31. package/dist/src/composables/useModuleRepair.d.ts +2 -11
  32. package/dist/src/composables/useStripo.d.ts +1 -1
  33. package/dist/src/config/migrator/legacyUnsubscribeTextMigrator.d.ts +1 -0
  34. package/dist/src/enums/academy.d.ts +1 -1
  35. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +2 -0
  36. package/dist/src/stores/config.d.ts +20 -167
  37. package/dist/src/stores/editor.d.ts +27 -0
  38. package/dist/src/utils/legacyUnsubscribeConversion.d.ts +10 -0
  39. package/dist/src/utils/linkTrackingIds.d.ts +24 -22
  40. package/dist/src/utils/trimHrefWhitespace.d.ts +5 -0
  41. package/dist/stores/config.js +6 -13
  42. package/dist/stores/editor.js +1 -0
  43. package/dist/utils/legacyUnsubscribeConversion.js +49 -0
  44. package/dist/utils/linkTrackingIds.js +72 -72
  45. package/dist/utils/pairProductVariables.js +29 -30
  46. package/dist/utils/templatePreparation.js +59 -72
  47. package/dist/utils/trimHrefWhitespace.js +10 -0
  48. package/package.json +1 -1
  49. package/dist/@types/display-condition.js +0 -25
  50. package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +0 -17
  51. package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +0 -41
  52. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +0 -30
  53. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +0 -81
  54. package/dist/components/organisms/display-conditions/DisplayConditionListState.vue.js +0 -17
  55. package/dist/components/organisms/display-conditions/DisplayConditionListState.vue2.js +0 -45
  56. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +0 -36
  57. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +0 -63
  58. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +0 -17
  59. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +0 -22
  60. package/dist/composables/useDisplayConditions.js +0 -117
  61. package/dist/enums/display-condition.js +0 -12
  62. package/dist/extensions/DisplayConditions/bridge.js +0 -25
  63. package/dist/extensions/DisplayConditions/constants.js +0 -26
  64. package/dist/extensions/DisplayConditions/control.js +0 -215
  65. package/dist/extensions/DisplayConditions/display-conditions.css.js +0 -226
  66. package/dist/extensions/DisplayConditions/extension.js +0 -28
  67. package/dist/extensions/DisplayConditions/iconsRegistry.js +0 -20
  68. package/dist/extensions/DisplayConditions/library.js +0 -30
  69. package/dist/extensions/DisplayConditions/settingsPanel.js +0 -17
  70. package/dist/extensions/LinkTracking/extension.js +0 -17
  71. package/dist/extensions/LinkTracking/writer.js +0 -41
  72. package/dist/services/displayConditionApi.js +0 -39
  73. package/dist/src/@types/display-condition.d.ts +0 -60
  74. package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +0 -43
  75. package/dist/src/components/organisms/display-conditions/DisplayConditionListState.vue.d.ts +0 -18
  76. package/dist/src/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.d.ts +0 -2
  77. package/dist/src/components/organisms/display-conditions/DisplayConditionsHost.vue.d.ts +0 -2
  78. package/dist/src/composables/useDisplayConditions.d.ts +0 -18
  79. package/dist/src/enums/display-condition.d.ts +0 -15
  80. package/dist/src/extensions/DisplayConditions/bridge.d.ts +0 -7
  81. package/dist/src/extensions/DisplayConditions/constants.d.ts +0 -23
  82. package/dist/src/extensions/DisplayConditions/control.d.ts +0 -25
  83. package/dist/src/extensions/DisplayConditions/extension.d.ts +0 -2
  84. package/dist/src/extensions/DisplayConditions/iconsRegistry.d.ts +0 -4
  85. package/dist/src/extensions/DisplayConditions/library.d.ts +0 -8
  86. package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +0 -5
  87. package/dist/src/extensions/LinkTracking/extension.d.ts +0 -2
  88. package/dist/src/extensions/LinkTracking/writer.d.ts +0 -13
  89. package/dist/src/mock/api/display-conditions.d.ts +0 -2
  90. package/dist/src/services/displayConditionApi.d.ts +0 -8
  91. package/dist/src/stores/display-condition.d.ts +0 -84
  92. package/dist/src/utils/displayCondition.d.ts +0 -11
  93. package/dist/src/utils/protectTableText.d.ts +0 -2
  94. package/dist/stores/display-condition.js +0 -29
  95. package/dist/utils/displayCondition.js +0 -26
  96. package/dist/utils/protectTableText.js +0 -22
  97. /package/dist/src/components/organisms/{display-conditions/DisplayConditionCreateDrawer.vue.d.ts → unsubscribe/LegacyUnsubscribeConvertedModal.vue.d.ts} +0 -0
@@ -94,7 +94,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
94
94
  ui: {
95
95
  showHeader: boolean;
96
96
  backButtonLabel?: string | undefined;
97
- externalDisplayConditions: boolean;
98
97
  };
99
98
  features: {
100
99
  dynamicContent: boolean;
@@ -111,6 +110,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
111
110
  linkTrackingIds: boolean;
112
111
  allowSaveWithErrors: boolean;
113
112
  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,7 +241,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
241
241
  ui: {
242
242
  showHeader: boolean;
243
243
  backButtonLabel?: string | undefined;
244
- externalDisplayConditions: boolean;
245
244
  };
246
245
  features: {
247
246
  dynamicContent: boolean;
@@ -258,6 +257,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
258
257
  linkTrackingIds: boolean;
259
258
  allowSaveWithErrors: boolean;
260
259
  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,7 +388,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
388
388
  ui: {
389
389
  showHeader: boolean;
390
390
  backButtonLabel?: string | undefined;
391
- externalDisplayConditions: boolean;
392
391
  };
393
392
  features: {
394
393
  dynamicContent: boolean;
@@ -405,6 +404,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
405
404
  linkTrackingIds: boolean;
406
405
  allowSaveWithErrors: boolean;
407
406
  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,7 +535,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
535
535
  ui: {
536
536
  showHeader: boolean;
537
537
  backButtonLabel?: string | undefined;
538
- externalDisplayConditions: boolean;
539
538
  };
540
539
  features: {
541
540
  dynamicContent: boolean;
@@ -552,6 +551,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
552
551
  linkTrackingIds: boolean;
553
552
  allowSaveWithErrors: boolean;
554
553
  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,7 +682,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
682
682
  ui: {
683
683
  showHeader: boolean;
684
684
  backButtonLabel?: string | undefined;
685
- externalDisplayConditions: boolean;
686
685
  };
687
686
  features: {
688
687
  dynamicContent: boolean;
@@ -699,6 +698,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
699
698
  linkTrackingIds: boolean;
700
699
  allowSaveWithErrors: boolean;
701
700
  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,7 +829,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
829
829
  ui: {
830
830
  showHeader: boolean;
831
831
  backButtonLabel?: string | undefined;
832
- externalDisplayConditions: boolean;
833
832
  };
834
833
  features: {
835
834
  dynamicContent: boolean;
@@ -846,6 +845,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
846
845
  linkTrackingIds: boolean;
847
846
  allowSaveWithErrors: boolean;
848
847
  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,7 +976,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
976
976
  ui: {
977
977
  showHeader: boolean;
978
978
  backButtonLabel?: string | undefined;
979
- externalDisplayConditions: boolean;
980
979
  };
981
980
  features: {
982
981
  dynamicContent: boolean;
@@ -993,6 +992,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
993
992
  linkTrackingIds: boolean;
994
993
  allowSaveWithErrors: boolean;
995
994
  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,7 +1123,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1123
1123
  ui: {
1124
1124
  showHeader: boolean;
1125
1125
  backButtonLabel?: string | undefined;
1126
- externalDisplayConditions: boolean;
1127
1126
  };
1128
1127
  features: {
1129
1128
  dynamicContent: boolean;
@@ -1140,6 +1139,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1140
1139
  linkTrackingIds: boolean;
1141
1140
  allowSaveWithErrors: boolean;
1142
1141
  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,7 +1270,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1270
1270
  ui: {
1271
1271
  showHeader: boolean;
1272
1272
  backButtonLabel?: string | undefined;
1273
- externalDisplayConditions: boolean;
1274
1273
  };
1275
1274
  features: {
1276
1275
  dynamicContent: boolean;
@@ -1287,6 +1286,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1287
1286
  linkTrackingIds: boolean;
1288
1287
  allowSaveWithErrors: boolean;
1289
1288
  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,7 +1417,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1417
1417
  ui: {
1418
1418
  showHeader: boolean;
1419
1419
  backButtonLabel?: string | undefined;
1420
- externalDisplayConditions: boolean;
1421
1420
  };
1422
1421
  features: {
1423
1422
  dynamicContent: boolean;
@@ -1434,6 +1433,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1434
1433
  linkTrackingIds: boolean;
1435
1434
  allowSaveWithErrors: boolean;
1436
1435
  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,7 +1564,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1564
1564
  ui: {
1565
1565
  showHeader: boolean;
1566
1566
  backButtonLabel?: string | undefined;
1567
- externalDisplayConditions: boolean;
1568
1567
  };
1569
1568
  features: {
1570
1569
  dynamicContent: boolean;
@@ -1581,6 +1580,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1581
1580
  linkTrackingIds: boolean;
1582
1581
  allowSaveWithErrors: boolean;
1583
1582
  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,7 +1711,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1711
1711
  ui: {
1712
1712
  showHeader: boolean;
1713
1713
  backButtonLabel?: string | undefined;
1714
- externalDisplayConditions: boolean;
1715
1714
  };
1716
1715
  features: {
1717
1716
  dynamicContent: boolean;
@@ -1728,6 +1727,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1728
1727
  linkTrackingIds: boolean;
1729
1728
  allowSaveWithErrors: boolean;
1730
1729
  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,7 +1858,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1858
1858
  ui: {
1859
1859
  showHeader: boolean;
1860
1860
  backButtonLabel?: string | undefined;
1861
- externalDisplayConditions: boolean;
1862
1861
  };
1863
1862
  features: {
1864
1863
  dynamicContent: boolean;
@@ -1875,6 +1874,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1875
1874
  linkTrackingIds: boolean;
1876
1875
  allowSaveWithErrors: boolean;
1877
1876
  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,7 +2005,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2005
2005
  ui: {
2006
2006
  showHeader: boolean;
2007
2007
  backButtonLabel?: string | undefined;
2008
- externalDisplayConditions: boolean;
2009
2008
  };
2010
2009
  features: {
2011
2010
  dynamicContent: boolean;
@@ -2022,6 +2021,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2022
2021
  linkTrackingIds: boolean;
2023
2022
  allowSaveWithErrors: boolean;
2024
2023
  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,7 +2152,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2152
2152
  ui: {
2153
2153
  showHeader: boolean;
2154
2154
  backButtonLabel?: string | undefined;
2155
- externalDisplayConditions: boolean;
2156
2155
  };
2157
2156
  features: {
2158
2157
  dynamicContent: boolean;
@@ -2169,6 +2168,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2169
2168
  linkTrackingIds: boolean;
2170
2169
  allowSaveWithErrors: boolean;
2171
2170
  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,7 +2299,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2299
2299
  ui: {
2300
2300
  showHeader: boolean;
2301
2301
  backButtonLabel?: string | undefined;
2302
- externalDisplayConditions: boolean;
2303
2302
  };
2304
2303
  features: {
2305
2304
  dynamicContent: boolean;
@@ -2316,6 +2315,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2316
2315
  linkTrackingIds: boolean;
2317
2316
  allowSaveWithErrors: boolean;
2318
2317
  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,7 +2446,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2446
2446
  ui: {
2447
2447
  showHeader: boolean;
2448
2448
  backButtonLabel?: string | undefined;
2449
- externalDisplayConditions: boolean;
2450
2449
  };
2451
2450
  features: {
2452
2451
  dynamicContent: boolean;
@@ -2463,6 +2462,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2463
2462
  linkTrackingIds: boolean;
2464
2463
  allowSaveWithErrors: boolean;
2465
2464
  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,7 +2605,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2605
2605
  ui: {
2606
2606
  showHeader: boolean;
2607
2607
  backButtonLabel?: string | undefined;
2608
- externalDisplayConditions: boolean;
2609
2608
  };
2610
2609
  features: {
2611
2610
  dynamicContent: boolean;
@@ -2622,6 +2621,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2622
2621
  linkTrackingIds: boolean;
2623
2622
  allowSaveWithErrors: boolean;
2624
2623
  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,154 +2752,6 @@ 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;
2903
2755
  };
2904
2756
  features: {
2905
2757
  dynamicContent: boolean;
@@ -2916,6 +2768,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2916
2768
  linkTrackingIds: boolean;
2917
2769
  allowSaveWithErrors: boolean;
2918
2770
  reusableRecommendationStrategy: boolean;
2771
+ legacyUnsubscribeConversion: boolean;
2919
2772
  };
2920
2773
  blocks: {
2921
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")[];
@@ -3048,7 +2901,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
3048
2901
  ui: {
3049
2902
  showHeader: boolean;
3050
2903
  backButtonLabel?: string | undefined;
3051
- externalDisplayConditions: boolean;
3052
2904
  };
3053
2905
  features: {
3054
2906
  dynamicContent: boolean;
@@ -3065,6 +2917,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
3065
2917
  linkTrackingIds: boolean;
3066
2918
  allowSaveWithErrors: boolean;
3067
2919
  reusableRecommendationStrategy: boolean;
2920
+ legacyUnsubscribeConversion: boolean;
3068
2921
  };
3069
2922
  blocks: {
3070
2923
  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")[];
@@ -12,6 +12,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
12
12
  hasChanges: boolean;
13
13
  changeSeq: number;
14
14
  isStripoInitialized: boolean;
15
+ isLegacyUnsubscribeModalRequested: boolean;
15
16
  templateId: string;
16
17
  syncModulesEnabled: boolean;
17
18
  trackIdSessionFloor: number;
@@ -29,6 +30,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
29
30
  hasChanges: boolean;
30
31
  changeSeq: number;
31
32
  isStripoInitialized: boolean;
33
+ isLegacyUnsubscribeModalRequested: boolean;
32
34
  templateId: string;
33
35
  syncModulesEnabled: boolean;
34
36
  trackIdSessionFloor: number;
@@ -45,6 +47,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
45
47
  hasChanges: boolean;
46
48
  changeSeq: number;
47
49
  isStripoInitialized: boolean;
50
+ isLegacyUnsubscribeModalRequested: boolean;
48
51
  templateId: string;
49
52
  syncModulesEnabled: boolean;
50
53
  trackIdSessionFloor: number;
@@ -62,6 +65,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
62
65
  hasChanges: boolean;
63
66
  changeSeq: number;
64
67
  isStripoInitialized: boolean;
68
+ isLegacyUnsubscribeModalRequested: boolean;
65
69
  templateId: string;
66
70
  syncModulesEnabled: boolean;
67
71
  trackIdSessionFloor: number;
@@ -78,6 +82,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
78
82
  hasChanges: boolean;
79
83
  changeSeq: number;
80
84
  isStripoInitialized: boolean;
85
+ isLegacyUnsubscribeModalRequested: boolean;
81
86
  templateId: string;
82
87
  syncModulesEnabled: boolean;
83
88
  trackIdSessionFloor: number;
@@ -95,6 +100,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
95
100
  hasChanges: boolean;
96
101
  changeSeq: number;
97
102
  isStripoInitialized: boolean;
103
+ isLegacyUnsubscribeModalRequested: boolean;
98
104
  templateId: string;
99
105
  syncModulesEnabled: boolean;
100
106
  trackIdSessionFloor: number;
@@ -111,6 +117,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
111
117
  hasChanges: boolean;
112
118
  changeSeq: number;
113
119
  isStripoInitialized: boolean;
120
+ isLegacyUnsubscribeModalRequested: boolean;
114
121
  templateId: string;
115
122
  syncModulesEnabled: boolean;
116
123
  trackIdSessionFloor: number;
@@ -128,6 +135,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
128
135
  hasChanges: boolean;
129
136
  changeSeq: number;
130
137
  isStripoInitialized: boolean;
138
+ isLegacyUnsubscribeModalRequested: boolean;
131
139
  templateId: string;
132
140
  syncModulesEnabled: boolean;
133
141
  trackIdSessionFloor: number;
@@ -144,6 +152,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
144
152
  hasChanges: boolean;
145
153
  changeSeq: number;
146
154
  isStripoInitialized: boolean;
155
+ isLegacyUnsubscribeModalRequested: boolean;
147
156
  templateId: string;
148
157
  syncModulesEnabled: boolean;
149
158
  trackIdSessionFloor: number;
@@ -161,6 +170,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
161
170
  hasChanges: boolean;
162
171
  changeSeq: number;
163
172
  isStripoInitialized: boolean;
173
+ isLegacyUnsubscribeModalRequested: boolean;
164
174
  templateId: string;
165
175
  syncModulesEnabled: boolean;
166
176
  trackIdSessionFloor: number;
@@ -177,6 +187,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
177
187
  hasChanges: boolean;
178
188
  changeSeq: number;
179
189
  isStripoInitialized: boolean;
190
+ isLegacyUnsubscribeModalRequested: boolean;
180
191
  templateId: string;
181
192
  syncModulesEnabled: boolean;
182
193
  trackIdSessionFloor: number;
@@ -194,6 +205,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
194
205
  hasChanges: boolean;
195
206
  changeSeq: number;
196
207
  isStripoInitialized: boolean;
208
+ isLegacyUnsubscribeModalRequested: boolean;
197
209
  templateId: string;
198
210
  syncModulesEnabled: boolean;
199
211
  trackIdSessionFloor: number;
@@ -210,6 +222,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
210
222
  hasChanges: boolean;
211
223
  changeSeq: number;
212
224
  isStripoInitialized: boolean;
225
+ isLegacyUnsubscribeModalRequested: boolean;
213
226
  templateId: string;
214
227
  syncModulesEnabled: boolean;
215
228
  trackIdSessionFloor: number;
@@ -227,6 +240,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
227
240
  hasChanges: boolean;
228
241
  changeSeq: number;
229
242
  isStripoInitialized: boolean;
243
+ isLegacyUnsubscribeModalRequested: boolean;
230
244
  templateId: string;
231
245
  syncModulesEnabled: boolean;
232
246
  trackIdSessionFloor: number;
@@ -243,6 +257,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
243
257
  hasChanges: boolean;
244
258
  changeSeq: number;
245
259
  isStripoInitialized: boolean;
260
+ isLegacyUnsubscribeModalRequested: boolean;
246
261
  templateId: string;
247
262
  syncModulesEnabled: boolean;
248
263
  trackIdSessionFloor: number;
@@ -260,6 +275,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
260
275
  hasChanges: boolean;
261
276
  changeSeq: number;
262
277
  isStripoInitialized: boolean;
278
+ isLegacyUnsubscribeModalRequested: boolean;
263
279
  templateId: string;
264
280
  syncModulesEnabled: boolean;
265
281
  trackIdSessionFloor: number;
@@ -276,6 +292,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
276
292
  hasChanges: boolean;
277
293
  changeSeq: number;
278
294
  isStripoInitialized: boolean;
295
+ isLegacyUnsubscribeModalRequested: boolean;
279
296
  templateId: string;
280
297
  syncModulesEnabled: boolean;
281
298
  trackIdSessionFloor: number;
@@ -293,6 +310,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
293
310
  hasChanges: boolean;
294
311
  changeSeq: number;
295
312
  isStripoInitialized: boolean;
313
+ isLegacyUnsubscribeModalRequested: boolean;
296
314
  templateId: string;
297
315
  syncModulesEnabled: boolean;
298
316
  trackIdSessionFloor: number;
@@ -309,6 +327,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
309
327
  hasChanges: boolean;
310
328
  changeSeq: number;
311
329
  isStripoInitialized: boolean;
330
+ isLegacyUnsubscribeModalRequested: boolean;
312
331
  templateId: string;
313
332
  syncModulesEnabled: boolean;
314
333
  trackIdSessionFloor: number;
@@ -326,6 +345,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
326
345
  hasChanges: boolean;
327
346
  changeSeq: number;
328
347
  isStripoInitialized: boolean;
348
+ isLegacyUnsubscribeModalRequested: boolean;
329
349
  templateId: string;
330
350
  syncModulesEnabled: boolean;
331
351
  trackIdSessionFloor: number;
@@ -342,6 +362,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
342
362
  hasChanges: boolean;
343
363
  changeSeq: number;
344
364
  isStripoInitialized: boolean;
365
+ isLegacyUnsubscribeModalRequested: boolean;
345
366
  templateId: string;
346
367
  syncModulesEnabled: boolean;
347
368
  trackIdSessionFloor: number;
@@ -359,6 +380,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
359
380
  hasChanges: boolean;
360
381
  changeSeq: number;
361
382
  isStripoInitialized: boolean;
383
+ isLegacyUnsubscribeModalRequested: boolean;
362
384
  templateId: string;
363
385
  syncModulesEnabled: boolean;
364
386
  trackIdSessionFloor: number;
@@ -375,6 +397,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
375
397
  hasChanges: boolean;
376
398
  changeSeq: number;
377
399
  isStripoInitialized: boolean;
400
+ isLegacyUnsubscribeModalRequested: boolean;
378
401
  templateId: string;
379
402
  syncModulesEnabled: boolean;
380
403
  trackIdSessionFloor: number;
@@ -392,6 +415,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
392
415
  hasChanges: boolean;
393
416
  changeSeq: number;
394
417
  isStripoInitialized: boolean;
418
+ isLegacyUnsubscribeModalRequested: boolean;
395
419
  templateId: string;
396
420
  syncModulesEnabled: boolean;
397
421
  trackIdSessionFloor: number;
@@ -408,6 +432,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
408
432
  hasChanges: boolean;
409
433
  changeSeq: number;
410
434
  isStripoInitialized: boolean;
435
+ isLegacyUnsubscribeModalRequested: boolean;
411
436
  templateId: string;
412
437
  syncModulesEnabled: boolean;
413
438
  trackIdSessionFloor: number;
@@ -425,6 +450,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
425
450
  hasChanges: boolean;
426
451
  changeSeq: number;
427
452
  isStripoInitialized: boolean;
453
+ isLegacyUnsubscribeModalRequested: boolean;
428
454
  templateId: string;
429
455
  syncModulesEnabled: boolean;
430
456
  trackIdSessionFloor: number;
@@ -441,6 +467,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
441
467
  hasChanges: boolean;
442
468
  changeSeq: number;
443
469
  isStripoInitialized: boolean;
470
+ isLegacyUnsubscribeModalRequested: boolean;
444
471
  templateId: string;
445
472
  syncModulesEnabled: boolean;
446
473
  trackIdSessionFloor: number;
@@ -0,0 +1,10 @@
1
+ export declare const LEGACY_UNSUBSCRIBE_SELECTOR = "td.unsubscribe-block";
2
+ export declare const LEGACY_UNSUBSCRIBE_LINK_SELECTORS: readonly ["a.unsubscribe-link", "a[href*=\"unsubscribe\"]"];
3
+ export interface LegacyUnsubscribeConversionResult {
4
+ html: string;
5
+ converted: boolean;
6
+ }
7
+ export declare const hasLegacyUnsubscribeClass: (html: string) => boolean;
8
+ export declare const convertLinklessLegacyUnsubscribeBlocks: (root: ParentNode) => number;
9
+ export declare const convertLegacyUnsubscribeInModuleHtml: (html: string) => LegacyUnsubscribeConversionResult;
10
+ export declare const convertLegacyUnsubscribeInDocumentHtml: (html: string) => LegacyUnsubscribeConversionResult;