@useinsider/guido 3.18.0-beta.41e529d → 3.18.0-beta.599df29

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 (39) hide show
  1. package/dist/@types/config/schemas.js +1 -3
  2. package/dist/components/Guido.vue.js +2 -2
  3. package/dist/components/Guido.vue2.js +87 -85
  4. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +7 -7
  5. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +57 -82
  6. package/dist/components/organisms/header/EditorActions.vue.js +1 -1
  7. package/dist/components/organisms/header/EditorActions.vue2.js +54 -41
  8. package/dist/composables/useActionsApi.js +82 -67
  9. package/dist/composables/useAutoSave.js +31 -26
  10. package/dist/composables/useCustomInterfaceAppearance.js +42 -46
  11. package/dist/composables/useEditorLock.js +20 -0
  12. package/dist/composables/useGuidoStateBridge.js +37 -31
  13. package/dist/composables/useSave.js +42 -39
  14. package/dist/enums/extensions/recommendationBlock.js +1 -2
  15. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +69 -70
  16. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +31 -66
  17. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +49 -90
  18. package/dist/guido.css +1 -1
  19. package/dist/services/recommendationApi.js +52 -61
  20. package/dist/src/@types/config/schemas.d.ts +0 -4
  21. package/dist/src/composables/useConfig.d.ts +0 -2
  22. package/dist/src/composables/useEditorLock.d.ts +10 -0
  23. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -1
  24. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -1
  25. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -54
  26. package/dist/src/services/recommendationApi.d.ts +1 -2
  27. package/dist/src/stores/config.d.ts +0 -160
  28. package/dist/static/styles/components/recommendation-strategy.css.js +5 -70
  29. package/dist/stores/config.js +59 -66
  30. package/package.json +1 -1
  31. package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js +0 -18
  32. package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue2.js +0 -25
  33. package/dist/composables/useLegacyStrategyConversion.js +0 -52
  34. package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +0 -58
  35. package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts +0 -2
  36. package/dist/src/composables/useLegacyStrategyConversion.d.ts +0 -3
  37. package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.d.ts +0 -39
  38. package/dist/static/assets/icons/filled-arrow-rising.svg.js +0 -5
  39. package/dist/static/assets/icons/line-info.svg.js +0 -5
@@ -1,4 +1,4 @@
1
- import type { InitialResponse, FiltersResponse, RecommendationProduct, RecommendationProductsParams, RrsEndpointGenerateResponse, RrsMigrationPayload, RrsStrategy } from '@@/Types/recommendation';
1
+ import type { InitialResponse, FiltersResponse, RecommendationProduct, RecommendationProductsParams, RrsEndpointGenerateResponse, RrsStrategy } from '@@/Types/recommendation';
2
2
  export declare const useRecommendationApi: () => {
3
3
  fetchRecommendationCreateData: () => Promise<InitialResponse>;
4
4
  fetchRecommendationFilters: () => Promise<FiltersResponse>;
@@ -6,5 +6,4 @@ export declare const useRecommendationApi: () => {
6
6
  fetchRecommendationProductsByUrl: (url: string) => Promise<RecommendationProduct[]>;
7
7
  fetchRecommendationStrategies: () => Promise<RrsStrategy[]>;
8
8
  generateStrategyEndpoint: (strategy: RrsStrategy, currency: string) => Promise<RrsEndpointGenerateResponse | null>;
9
- migrateLegacyStrategy: (payload: RrsMigrationPayload) => Promise<string>;
10
9
  };
@@ -16,7 +16,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
16
16
  templateId: string;
17
17
  userId: string;
18
18
  variationId?: string | undefined;
19
- campaignId?: string | undefined;
20
19
  };
21
20
  partner: {
22
21
  name: string;
@@ -158,7 +157,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
158
157
  templateId: string;
159
158
  userId: string;
160
159
  variationId?: string | undefined;
161
- campaignId?: string | undefined;
162
160
  };
163
161
  partner: {
164
162
  name: string;
@@ -300,7 +298,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
300
298
  templateId: string;
301
299
  userId: string;
302
300
  variationId?: string | undefined;
303
- campaignId?: string | undefined;
304
301
  };
305
302
  partner: {
306
303
  name: string;
@@ -442,7 +439,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
442
439
  templateId: string;
443
440
  userId: string;
444
441
  variationId?: string | undefined;
445
- campaignId?: string | undefined;
446
442
  };
447
443
  partner: {
448
444
  name: string;
@@ -584,7 +580,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
584
580
  templateId: string;
585
581
  userId: string;
586
582
  variationId?: string | undefined;
587
- campaignId?: string | undefined;
588
583
  };
589
584
  partner: {
590
585
  name: string;
@@ -726,7 +721,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
726
721
  templateId: string;
727
722
  userId: string;
728
723
  variationId?: string | undefined;
729
- campaignId?: string | undefined;
730
724
  };
731
725
  partner: {
732
726
  name: string;
@@ -868,7 +862,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
868
862
  templateId: string;
869
863
  userId: string;
870
864
  variationId?: string | undefined;
871
- campaignId?: string | undefined;
872
865
  };
873
866
  partner: {
874
867
  name: string;
@@ -1010,7 +1003,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1010
1003
  templateId: string;
1011
1004
  userId: string;
1012
1005
  variationId?: string | undefined;
1013
- campaignId?: string | undefined;
1014
1006
  };
1015
1007
  partner: {
1016
1008
  name: string;
@@ -1152,7 +1144,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1152
1144
  templateId: string;
1153
1145
  userId: string;
1154
1146
  variationId?: string | undefined;
1155
- campaignId?: string | undefined;
1156
1147
  };
1157
1148
  partner: {
1158
1149
  name: string;
@@ -1294,7 +1285,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1294
1285
  templateId: string;
1295
1286
  userId: string;
1296
1287
  variationId?: string | undefined;
1297
- campaignId?: string | undefined;
1298
1288
  };
1299
1289
  partner: {
1300
1290
  name: string;
@@ -1436,7 +1426,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1436
1426
  templateId: string;
1437
1427
  userId: string;
1438
1428
  variationId?: string | undefined;
1439
- campaignId?: string | undefined;
1440
1429
  };
1441
1430
  partner: {
1442
1431
  name: string;
@@ -1578,149 +1567,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1578
1567
  templateId: string;
1579
1568
  userId: string;
1580
1569
  variationId?: string | undefined;
1581
- campaignId?: string | undefined;
1582
- };
1583
- partner: {
1584
- name: string;
1585
- productType: 60 | 49 | 97;
1586
- messageType: 1 | 2;
1587
- username: string;
1588
- fallbackFont?: {
1589
- name: string;
1590
- family: string;
1591
- } | undefined;
1592
- };
1593
- template: {
1594
- html: string;
1595
- css: string;
1596
- preselectedDynamicContent: {
1597
- text: string;
1598
- value: string;
1599
- fallback?: string | undefined;
1600
- format?: {
1601
- key: string;
1602
- value: string;
1603
- } | undefined;
1604
- }[];
1605
- dynamicContentList: {
1606
- [x: string]: import("../library").DynamicContentNode[];
1607
- };
1608
- customFieldAttributes: string[];
1609
- selectedUnsubscribePages: number[];
1610
- forceRecreate: boolean;
1611
- trackIdCounter: number;
1612
- migration: {
1613
- recommendationConfigs: {
1614
- [x: string]: {
1615
- id?: number | undefined;
1616
- decimalCount?: string | number | undefined;
1617
- productIds?: unknown[] | undefined;
1618
- sendProductRequestFlag?: boolean | undefined;
1619
- shuffleProducts?: boolean | undefined;
1620
- filters?: unknown[] | undefined;
1621
- currency?: string | undefined;
1622
- currencySettings?: unknown;
1623
- language?: string | undefined;
1624
- strategy?: string | undefined;
1625
- recommendedProducts?: unknown[] | undefined;
1626
- cardsInRow?: number | undefined;
1627
- mobileRightPadding?: number | undefined;
1628
- mobileLeftPadding?: number | undefined;
1629
- unresponsive?: boolean | undefined;
1630
- orientation?: string | undefined;
1631
- textTrimming?: boolean | undefined;
1632
- blockType?: string | undefined;
1633
- size?: string | number | undefined;
1634
- verticalResponsiveness?: boolean | undefined;
1635
- isPriceMovedToNextLine?: boolean | undefined;
1636
- isPriceDeletedForZeroSale?: boolean | undefined;
1637
- } & {
1638
- [key: string]: unknown;
1639
- };
1640
- };
1641
- };
1642
- };
1643
- editor: {
1644
- locale: string;
1645
- translationsPath: string;
1646
- migrationDate: number;
1647
- emailHeader: {
1648
- senderName: string;
1649
- subject: string;
1650
- };
1651
- savedModulesFolderName: string;
1652
- defaultModulesFolderName: string;
1653
- };
1654
- ui: {
1655
- showHeader: boolean;
1656
- backButtonLabel?: string | undefined;
1657
- };
1658
- features: {
1659
- dynamicContent: boolean;
1660
- saveAsTemplate: boolean;
1661
- versionHistory: boolean;
1662
- testMessage: boolean;
1663
- displayConditions: boolean;
1664
- unsubscribe: boolean;
1665
- modulesDisabled: boolean;
1666
- liquidSyntax: boolean;
1667
- autosave: boolean;
1668
- allowlistEnabled: boolean;
1669
- linkTrackingIds: boolean;
1670
- reusableRecommendationStrategy: boolean;
1671
- };
1672
- blocks: {
1673
- 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")[];
1674
- includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
1675
- };
1676
- compiler: {
1677
- customRules: ({
1678
- type: "replace";
1679
- search: string;
1680
- replacement: string;
1681
- replaceAll?: boolean | undefined;
1682
- id: string;
1683
- description?: string | undefined;
1684
- priority: number;
1685
- } | {
1686
- type: "regex";
1687
- pattern: string;
1688
- replacement: string;
1689
- flags?: string | undefined;
1690
- id: string;
1691
- description?: string | undefined;
1692
- priority: number;
1693
- } | {
1694
- type: "remove";
1695
- targets: string[];
1696
- id: string;
1697
- description?: string | undefined;
1698
- priority: number;
1699
- } | {
1700
- type: "custom";
1701
- processor: (html: string) => string;
1702
- id: string;
1703
- description?: string | undefined;
1704
- priority: number;
1705
- })[];
1706
- ignoreDefaultRules: boolean;
1707
- };
1708
- callbacks: {
1709
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1710
- };
1711
- } | null;
1712
- } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
1713
- /**
1714
- * Get the campaign ID
1715
- */
1716
- campaignId: (state: {
1717
- initialized: boolean;
1718
- config: {
1719
- identity: {
1720
- templateId: string;
1721
- userId: string;
1722
- variationId?: string | undefined;
1723
- campaignId?: string | undefined;
1724
1570
  };
1725
1571
  partner: {
1726
1572
  name: string;
@@ -1862,7 +1708,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1862
1708
  templateId: string;
1863
1709
  userId: string;
1864
1710
  variationId?: string | undefined;
1865
- campaignId?: string | undefined;
1866
1711
  };
1867
1712
  partner: {
1868
1713
  name: string;
@@ -2004,7 +1849,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2004
1849
  templateId: string;
2005
1850
  userId: string;
2006
1851
  variationId?: string | undefined;
2007
- campaignId?: string | undefined;
2008
1852
  };
2009
1853
  partner: {
2010
1854
  name: string;
@@ -2146,7 +1990,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2146
1990
  templateId: string;
2147
1991
  userId: string;
2148
1992
  variationId?: string | undefined;
2149
- campaignId?: string | undefined;
2150
1993
  };
2151
1994
  partner: {
2152
1995
  name: string;
@@ -2288,7 +2131,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2288
2131
  templateId: string;
2289
2132
  userId: string;
2290
2133
  variationId?: string | undefined;
2291
- campaignId?: string | undefined;
2292
2134
  };
2293
2135
  partner: {
2294
2136
  name: string;
@@ -2430,7 +2272,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2430
2272
  templateId: string;
2431
2273
  userId: string;
2432
2274
  variationId?: string | undefined;
2433
- campaignId?: string | undefined;
2434
2275
  };
2435
2276
  partner: {
2436
2277
  name: string;
@@ -2574,7 +2415,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2574
2415
  templateId: string;
2575
2416
  userId: string;
2576
2417
  variationId?: string | undefined;
2577
- campaignId?: string | undefined;
2578
2418
  };
2579
2419
  partner: {
2580
2420
  name: string;
@@ -26,40 +26,6 @@ const n = `.strategy-control-header {
26
26
  text-decoration: underline;
27
27
  }
28
28
 
29
- .strategy-control-notice-row {
30
- padding: 0 16px 16px;
31
- }
32
-
33
- .strategy-control-notice {
34
- display: flex;
35
- gap: 8px;
36
- align-items: center;
37
- padding: 12px;
38
- border: 1px solid var(--guido-color-border-onpage-message-info);
39
- border-radius: 4px;
40
- background-color: var(--guido-color-background-onpage-message-info);
41
- }
42
-
43
- .strategy-control-notice::before {
44
- content: '';
45
- flex: none;
46
- width: 24px;
47
- height: 24px;
48
- background-color: var(--guido-color-border-onpage-message-info);
49
- mask-image: var(--guido-icon-line-info);
50
- mask-repeat: no-repeat;
51
- mask-position: center;
52
- mask-size: 24px 24px;
53
- }
54
-
55
- .strategy-control-notice-text {
56
- margin: 0;
57
- padding: 4px 0;
58
- color: var(--guido-color-neutral-700);
59
- font-size: 13px;
60
- line-height: 16px;
61
- }
62
-
63
29
  .recommendation-controls-container .container.strategy-control-cta-row {
64
30
  grid-template-columns: repeat(2, minmax(0, 180px));
65
31
  justify-content: start;
@@ -98,14 +64,6 @@ const n = `.strategy-control-header {
98
64
  background-color: var(--guido-color-gray-0);
99
65
  }
100
66
 
101
- /* Figma gives the legacy band a 59px row: 17.5px above and below its 24px content. */
102
- [data-strategy-legacy-state] .strategy-control-name-band {
103
- gap: 8px;
104
- justify-content: space-between;
105
- min-height: auto;
106
- padding: 17.5px 16px;
107
- }
108
-
109
67
  .strategy-control-name {
110
68
  color: var(--guido-color-gray-800);
111
69
  font-size: 15px;
@@ -159,15 +117,6 @@ const n = `.strategy-control-header {
159
117
  mask-image: var(--guido-icon-line-plus);
160
118
  }
161
119
 
162
- .strategy-control-action--update::before {
163
- mask-image: var(--guido-icon-filled-arrow-rising);
164
- }
165
-
166
- .strategy-control-name-band .strategy-control-action > span {
167
- padding: 0 0 0 8px;
168
- }
169
-
170
- .strategy-control-action--update,
171
120
  .strategy-control-action--change {
172
121
  color: var(--guido-color-primary-500);
173
122
  }
@@ -180,38 +129,24 @@ const n = `.strategy-control-header {
180
129
  text-decoration: underline;
181
130
  }
182
131
 
183
- .strategy-control-action:disabled,
184
- .strategy-control-action:disabled:hover {
185
- color: var(--guido-color-gray-700);
186
- text-decoration: none;
187
- cursor: default;
188
- }
189
-
190
- .recommendation-controls-container:not(.strategy-block):not(.legacy-strategy-block) .strategy-control-container,
132
+ .recommendation-controls-container:not(.strategy-block) .strategy-control-container,
191
133
  .recommendation-controls-container.strategy-block .product-count-control-container,
192
134
  .recommendation-controls-container.strategy-block .algorithm-control-container,
193
135
  .recommendation-controls-container.strategy-block .filters-control-container,
194
- .recommendation-controls-container.strategy-block .shuffle-control-container,
195
- .recommendation-controls-container.legacy-strategy-block .product-count-control-container,
196
- .recommendation-controls-container.legacy-strategy-block .algorithm-control-container,
197
- .recommendation-controls-container.legacy-strategy-block .filters-control-container,
198
- .recommendation-controls-container.legacy-strategy-block .shuffle-control-container {
136
+ .recommendation-controls-container.strategy-block .shuffle-control-container {
199
137
  display: none;
200
138
  }
201
139
 
202
- .recommendation-controls-container.strategy-block,
203
- .recommendation-controls-container.legacy-strategy-block {
140
+ .recommendation-controls-container.strategy-block {
204
141
  display: flex;
205
142
  flex-direction: column;
206
143
  }
207
144
 
208
- .recommendation-controls-container.strategy-block .price-placement-control-container,
209
- .recommendation-controls-container.legacy-strategy-block .price-placement-control-container {
145
+ .recommendation-controls-container.strategy-block .price-placement-control-container {
210
146
  order: 1;
211
147
  }
212
148
 
213
- .recommendation-controls-container.strategy-block .product-layout-control-container,
214
- .recommendation-controls-container.legacy-strategy-block .product-layout-control-container {
149
+ .recommendation-controls-container.strategy-block .product-layout-control-container {
215
150
  order: 2;
216
151
  }
217
152
  `;
@@ -1,8 +1,8 @@
1
1
  import "../@types/config/schemas.js";
2
2
  import "../@types/config/defaults.js";
3
3
  import { parseConfig as o } from "../@types/config/validator.js";
4
- import { defineStore as a } from "pinia";
5
- const s = a("guido-config", {
4
+ import { defineStore as r } from "pinia";
5
+ const f = r("guido-config", {
6
6
  state: () => ({
7
7
  initialized: !1,
8
8
  config: null
@@ -11,128 +11,121 @@ const s = a("guido-config", {
11
11
  /**
12
12
  * Get the identity configuration
13
13
  */
14
- identity: (e) => {
15
- var i;
16
- return ((i = e.config) == null ? void 0 : i.identity) ?? null;
14
+ identity: (i) => {
15
+ var e;
16
+ return ((e = i.config) == null ? void 0 : e.identity) ?? null;
17
17
  },
18
18
  /**
19
19
  * Get the partner configuration
20
20
  */
21
- partner: (e) => {
22
- var i;
23
- return ((i = e.config) == null ? void 0 : i.partner) ?? null;
21
+ partner: (i) => {
22
+ var e;
23
+ return ((e = i.config) == null ? void 0 : e.partner) ?? null;
24
24
  },
25
25
  /**
26
26
  * Get the template configuration
27
27
  */
28
- template: (e) => {
29
- var i;
30
- return ((i = e.config) == null ? void 0 : i.template) ?? null;
28
+ template: (i) => {
29
+ var e;
30
+ return ((e = i.config) == null ? void 0 : e.template) ?? null;
31
31
  },
32
32
  /**
33
33
  * Get the editor configuration
34
34
  */
35
- editor: (e) => {
36
- var i;
37
- return ((i = e.config) == null ? void 0 : i.editor) ?? null;
35
+ editor: (i) => {
36
+ var e;
37
+ return ((e = i.config) == null ? void 0 : e.editor) ?? null;
38
38
  },
39
39
  /**
40
40
  * Get the UI configuration
41
41
  */
42
- ui: (e) => {
43
- var i;
44
- return ((i = e.config) == null ? void 0 : i.ui) ?? null;
42
+ ui: (i) => {
43
+ var e;
44
+ return ((e = i.config) == null ? void 0 : e.ui) ?? null;
45
45
  },
46
46
  /**
47
47
  * Get the features configuration
48
48
  */
49
- features: (e) => {
50
- var i;
51
- return ((i = e.config) == null ? void 0 : i.features) ?? null;
49
+ features: (i) => {
50
+ var e;
51
+ return ((e = i.config) == null ? void 0 : e.features) ?? null;
52
52
  },
53
53
  /**
54
54
  * Get the blocks configuration
55
55
  */
56
- blocks: (e) => {
57
- var i;
58
- return ((i = e.config) == null ? void 0 : i.blocks) ?? null;
56
+ blocks: (i) => {
57
+ var e;
58
+ return ((e = i.config) == null ? void 0 : e.blocks) ?? null;
59
59
  },
60
60
  /**
61
61
  * Get the compiler configuration
62
62
  */
63
- compiler: (e) => {
64
- var i;
65
- return ((i = e.config) == null ? void 0 : i.compiler) ?? null;
63
+ compiler: (i) => {
64
+ var e;
65
+ return ((e = i.config) == null ? void 0 : e.compiler) ?? null;
66
66
  },
67
67
  /**
68
68
  * Get the callbacks configuration
69
69
  */
70
- callbacks: (e) => {
71
- var i;
72
- return ((i = e.config) == null ? void 0 : i.callbacks) ?? null;
70
+ callbacks: (i) => {
71
+ var e;
72
+ return ((e = i.config) == null ? void 0 : e.callbacks) ?? null;
73
73
  },
74
74
  /**
75
75
  * Get the template ID
76
76
  */
77
- templateId: (e) => {
78
- var i, n;
79
- return ((n = (i = e.config) == null ? void 0 : i.identity) == null ? void 0 : n.templateId) ?? "";
77
+ templateId: (i) => {
78
+ var e, n;
79
+ return ((n = (e = i.config) == null ? void 0 : e.identity) == null ? void 0 : n.templateId) ?? "";
80
80
  },
81
81
  /**
82
82
  * Get the user ID
83
83
  */
84
- userId: (e) => {
85
- var i, n;
86
- return ((n = (i = e.config) == null ? void 0 : i.identity) == null ? void 0 : n.userId) ?? "";
84
+ userId: (i) => {
85
+ var e, n;
86
+ return ((n = (e = i.config) == null ? void 0 : e.identity) == null ? void 0 : n.userId) ?? "";
87
87
  },
88
88
  /**
89
89
  * Get the variation ID
90
90
  */
91
- variationId: (e) => {
92
- var i, n;
93
- return ((n = (i = e.config) == null ? void 0 : i.identity) == null ? void 0 : n.variationId) ?? "";
94
- },
95
- /**
96
- * Get the campaign ID
97
- */
98
- campaignId: (e) => {
99
- var i, n;
100
- return ((n = (i = e.config) == null ? void 0 : i.identity) == null ? void 0 : n.campaignId) ?? "";
91
+ variationId: (i) => {
92
+ var e, n;
93
+ return ((n = (e = i.config) == null ? void 0 : e.identity) == null ? void 0 : n.variationId) ?? "";
101
94
  },
102
95
  /**
103
96
  * Get the partner name
104
97
  */
105
- partnerName: (e) => {
106
- var i, n;
107
- return ((n = (i = e.config) == null ? void 0 : i.partner) == null ? void 0 : n.name) ?? "";
98
+ partnerName: (i) => {
99
+ var e, n;
100
+ return ((n = (e = i.config) == null ? void 0 : e.partner) == null ? void 0 : n.name) ?? "";
108
101
  },
109
102
  /**
110
103
  * Get the product type
111
104
  */
112
- productType: (e) => {
113
- var i, n;
114
- return ((n = (i = e.config) == null ? void 0 : i.partner) == null ? void 0 : n.productType) ?? 60;
105
+ productType: (i) => {
106
+ var e, n;
107
+ return ((n = (e = i.config) == null ? void 0 : e.partner) == null ? void 0 : n.productType) ?? 60;
115
108
  },
116
109
  /**
117
110
  * Get the message type
118
111
  */
119
- messageType: (e) => {
120
- var i, n;
121
- return ((n = (i = e.config) == null ? void 0 : i.partner) == null ? void 0 : n.messageType) ?? 1;
112
+ messageType: (i) => {
113
+ var e, n;
114
+ return ((n = (e = i.config) == null ? void 0 : e.partner) == null ? void 0 : n.messageType) ?? 1;
122
115
  },
123
116
  /**
124
117
  * Get the username
125
118
  */
126
- username: (e) => {
127
- var i, n;
128
- return ((n = (i = e.config) == null ? void 0 : i.partner) == null ? void 0 : n.username) ?? "Guido User";
119
+ username: (i) => {
120
+ var e, n;
121
+ return ((n = (e = i.config) == null ? void 0 : e.partner) == null ? void 0 : n.username) ?? "Guido User";
129
122
  },
130
123
  /**
131
124
  * Check if header should be shown
132
125
  */
133
- showHeader: (e) => {
134
- var i, n;
135
- return ((n = (i = e.config) == null ? void 0 : i.ui) == null ? void 0 : n.showHeader) ?? !0;
126
+ showHeader: (i) => {
127
+ var e, n;
128
+ return ((n = (e = i.config) == null ? void 0 : e.ui) == null ? void 0 : n.showHeader) ?? !0;
136
129
  },
137
130
  /**
138
131
  * Check if a specific feature is enabled.
@@ -140,18 +133,18 @@ const s = a("guido-config", {
140
133
  * flash on during loading, then disappear once config resolves.
141
134
  */
142
135
  // eslint-disable-next-line @stylistic/max-len
143
- isFeatureEnabled: (e) => (i) => {
136
+ isFeatureEnabled: (i) => (e) => {
144
137
  var n, t;
145
- return ((t = (n = e.config) == null ? void 0 : n.features) == null ? void 0 : t[i]) ?? !1;
138
+ return ((t = (n = i.config) == null ? void 0 : n.features) == null ? void 0 : t[e]) ?? !1;
146
139
  }
147
140
  },
148
141
  actions: {
149
142
  /**
150
143
  * Initialize the config store with validated configuration
151
144
  */
152
- init(e) {
153
- const i = o(e);
154
- this.config = i, this.initialized = !0;
145
+ init(i) {
146
+ const e = o(i);
147
+ this.config = e, this.initialized = !0;
155
148
  },
156
149
  /**
157
150
  * Reset the config store
@@ -162,5 +155,5 @@ const s = a("guido-config", {
162
155
  }
163
156
  });
164
157
  export {
165
- s as useConfigStore
158
+ f as useConfigStore
166
159
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.18.0-beta.41e529d",
3
+ "version": "3.18.0-beta.599df29",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -1,18 +0,0 @@
1
- import s from "./LegacyStrategyUpdatedModal.vue2.js";
2
- /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
5
- var t = this, a = t._self._c, e = t._self._setupProxy;
6
- return e.store.legacyStrategyUpdatedModalStatus ? a("div", { staticClass: "legacy-strategy-updated-modal" }, [a(e.WpModal, { attrs: { id: "guido__legacy-strategy-updated-modal", size: "small", "close-on-outside-click": !1, "footer-button-options": e.footerButtonOptions, title: e.trans("ds-steps.recommendation-strategy-migration-modal-title") }, on: { close: e.close, "primary-action": e.close } }, [a("p", [t._v(t._s(e.messageParts[0])), a("b", [t._v(t._s(e.strategyName))]), t._v(t._s(e.messageParts[1]))])])], 1) : t._e();
7
- }, l = [], n = /* @__PURE__ */ o(
8
- s,
9
- r,
10
- l,
11
- !1,
12
- null,
13
- "da2225a1"
14
- );
15
- const m = n.exports;
16
- export {
17
- m as default
18
- };