@useinsider/guido 3.18.1-beta.8d3bf29 → 3.18.1

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 (40) hide show
  1. package/dist/@types/config/schemas.js +1 -3
  2. package/dist/components/Guido.vue.js +4 -4
  3. package/dist/components/Guido.vue2.js +53 -55
  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/onboarding/OnboardingWrapper.vue2.js +24 -28
  7. package/dist/composables/useCustomInterfaceAppearance.js +42 -46
  8. package/dist/enums/extensions/recommendationBlock.js +1 -2
  9. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +69 -70
  10. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +28 -67
  11. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +56 -98
  12. package/dist/guido.css +1 -1
  13. package/dist/services/recommendationApi.js +52 -61
  14. package/dist/src/@types/config/schemas.d.ts +0 -4
  15. package/dist/src/composables/useConfig.d.ts +0 -2
  16. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -1
  17. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -2
  18. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -54
  19. package/dist/src/services/recommendationApi.d.ts +1 -2
  20. package/dist/src/stores/config.d.ts +0 -160
  21. package/dist/src/stores/onboarding.d.ts +10 -808
  22. package/dist/static/styles/components/recommendation-strategy.css.js +5 -70
  23. package/dist/stores/config.js +59 -66
  24. package/dist/stores/onboarding.js +36 -46
  25. package/package.json +1 -1
  26. package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js +0 -18
  27. package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue2.js +0 -25
  28. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +0 -21
  29. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +0 -46
  30. package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +0 -21
  31. package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +0 -46
  32. package/dist/composables/useLegacyStrategyConversion.js +0 -54
  33. package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +0 -58
  34. package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts +0 -2
  35. package/dist/src/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.d.ts +0 -2
  36. package/dist/src/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.d.ts +0 -2
  37. package/dist/src/composables/useLegacyStrategyConversion.d.ts +0 -3
  38. package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.d.ts +0 -39
  39. package/dist/static/assets/icons/filled-arrow-rising.svg.js +0 -5
  40. package/dist/static/assets/icons/line-info.svg.js +0 -5
@@ -1,4 +1,4 @@
1
- import type { Orientation, Languages, Currency, NumericSeparator, FiltersResponse, Filter, RecommendationCampaignUrlValue, RecommendationProduct, RrsMigrationPayload, RrsStrategy } from '@@/Types/recommendation';
1
+ import type { Orientation, Languages, Currency, NumericSeparator, FiltersResponse, Filter, RecommendationCampaignUrlValue, RecommendationProduct, RrsStrategy } from '@@/Types/recommendation';
2
2
  export interface PerBlockConfigs {
3
3
  cardsInRow: number;
4
4
  currencySettings: {
@@ -22,7 +22,6 @@ export interface PerBlockConfigs {
22
22
  shuffleProducts: boolean;
23
23
  strategy: string;
24
24
  strategyId: string;
25
- nodeConfigVersion: number;
26
25
  textTrimming: boolean;
27
26
  unresponsive: boolean;
28
27
  size: string;
@@ -37,13 +36,11 @@ interface PerBlockState {
37
36
  filterSelectionDrawerStatus: boolean;
38
37
  assignStrategyDrawerStatus: boolean;
39
38
  removeStrategyModalStatus: boolean;
40
- legacyStrategyUpdatedModalStatus: boolean;
41
39
  filterGroup: number;
42
40
  /** Whether initial API data (filters, algorithms, products) has been fetched for this block */
43
41
  isInitialized: boolean;
44
42
  /** Snapshot of filters taken when the drawer opens, used to revert on cancel */
45
43
  filterSnapshot: Filter[] | null;
46
- legacyConversionLoading: boolean;
47
44
  }
48
45
  /**
49
46
  * Persisted-config subset used by `seedBlockUrlConfig` to reconstruct
@@ -204,53 +201,6 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
204
201
  currentRecommendationId: number | null;
205
202
  configVersion: number;
206
203
  } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
207
- isLegacyStrategyBlock(): boolean;
208
- legacyConversionLoading(state: {
209
- recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
210
- activePredictiveAlgorithms: number[];
211
- languages: Languages;
212
- currencyList: {
213
- text: string;
214
- value: string;
215
- }[];
216
- filterList: FiltersResponse;
217
- strategies: {
218
- [x: string]: unknown;
219
- strategy_id: number;
220
- name: string;
221
- status: string;
222
- suitable_channels: string;
223
- size?: (number | string) | undefined;
224
- }[];
225
- strategiesLoading: boolean;
226
- strategyUrlTemplates: Record<string, string>;
227
- blockStates: Record<number, PerBlockState>;
228
- currentRecommendationId: number | null;
229
- configVersion: number;
230
- } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
231
- legacyStrategyUpdatedModalStatus(state: {
232
- recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
233
- activePredictiveAlgorithms: number[];
234
- languages: Languages;
235
- currencyList: {
236
- text: string;
237
- value: string;
238
- }[];
239
- filterList: FiltersResponse;
240
- strategies: {
241
- [x: string]: unknown;
242
- strategy_id: number;
243
- name: string;
244
- status: string;
245
- suitable_channels: string;
246
- size?: (number | string) | undefined;
247
- }[];
248
- strategiesLoading: boolean;
249
- strategyUrlTemplates: Record<string, string>;
250
- blockStates: Record<number, PerBlockState>;
251
- currentRecommendationId: number | null;
252
- configVersion: number;
253
- } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
254
204
  assignedStrategy(state: {
255
205
  recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
256
206
  activePredictiveAlgorithms: number[];
@@ -480,14 +430,11 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
480
430
  cancelFilterDrawer(): void;
481
431
  openAssignStrategyDrawer(): void;
482
432
  closeAssignStrategyDrawer(): void;
483
- openLegacyStrategyUpdatedModal(): void;
484
- closeLegacyStrategyUpdatedModal(): void;
485
433
  openRemoveStrategyModal(): void;
486
434
  closeRemoveStrategyModal(): void;
487
435
  fetchStrategies(): Promise<void>;
488
436
  resolveStrategyUrlTemplate(strategy: RrsStrategy, currency: string): Promise<string>;
489
437
  assignStrategy(strategy: RrsStrategy): void;
490
- convertLegacyStrategy(payload: RrsMigrationPayload): Promise<string>;
491
438
  removeStrategy(): void;
492
439
  fetchRecommendationCreateData(): Promise<void>;
493
440
  fetchRecommendationFilters(): Promise<void>;
@@ -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;