@useinsider/guido 3.19.0-beta.e110e88 → 3.19.0-beta.ed8a999

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 (53) hide show
  1. package/dist/@types/config/schemas.js +104 -91
  2. package/dist/components/Guido.vue.js +8 -8
  3. package/dist/components/Guido.vue2.js +79 -74
  4. package/dist/components/organisms/base/AuthErrorModal.vue.js +18 -0
  5. package/dist/components/organisms/base/AuthErrorModal.vue2.js +42 -0
  6. package/dist/components/wrappers/WpModal.vue.js +1 -1
  7. package/dist/components/wrappers/WpModal.vue2.js +4 -3
  8. package/dist/composables/useAuthError.js +52 -0
  9. package/dist/composables/useAutoSave.js +11 -11
  10. package/dist/composables/useHttp.js +64 -54
  11. package/dist/composables/useLegacyStrategyConversion.js +23 -19
  12. package/dist/composables/useStripo.js +24 -20
  13. package/dist/composables/useToaster.js +17 -15
  14. package/dist/composables/validators/useLiquidValidator.js +15 -15
  15. package/dist/config/migrator/index.js +14 -13
  16. package/dist/config/migrator/recommendationMigrator.js +28 -21
  17. package/dist/config/migrator/recommendationPartnerMigrator.js +56 -0
  18. package/dist/enums/extensions/recommendationBlock.js +30 -29
  19. package/dist/extensions/Blocks/Recommendation/block.js +21 -22
  20. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +97 -107
  21. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +72 -49
  22. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +203 -209
  23. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +67 -91
  24. package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +21 -26
  25. package/dist/extensions/Blocks/Recommendation/utils/partnerScope.js +25 -0
  26. package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +16 -55
  27. package/dist/guido.css +1 -1
  28. package/dist/src/@types/config/schemas.d.ts +16 -0
  29. package/dist/src/components/organisms/base/AuthErrorModal.vue.d.ts +2 -0
  30. package/dist/src/components/wrappers/WpModal.vue.d.ts +5 -1
  31. package/dist/src/composables/useAuthError.d.ts +12 -0
  32. package/dist/src/composables/useConfig.d.ts +2 -0
  33. package/dist/src/composables/useGuidoActions.d.ts +2 -0
  34. package/dist/src/composables/useHttp.d.ts +2 -0
  35. package/dist/src/config/migrator/index.d.ts +2 -1
  36. package/dist/src/config/migrator/recommendationPartnerMigrator.d.ts +19 -0
  37. package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -1
  38. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +0 -2
  39. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +2 -13
  40. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
  41. package/dist/src/extensions/Blocks/Recommendation/utils/nodeConfigWriter.d.ts +1 -3
  42. package/dist/src/extensions/Blocks/Recommendation/utils/partnerScope.d.ts +33 -0
  43. package/dist/src/extensions/Blocks/Recommendation/utils/strategyCommit.d.ts +0 -7
  44. package/dist/src/mock/cortexChatStore.d.ts +12 -0
  45. package/dist/src/stores/config.d.ts +20 -0
  46. package/dist/src/stores/onboarding.d.ts +4 -0
  47. package/dist/src/stores/recommendation.d.ts +5 -0
  48. package/dist/src/utils/dateUtil.d.ts +10 -0
  49. package/dist/src/utils/genericUtil.d.ts +3 -0
  50. package/dist/static/styles/components/recommendation-strategy.css.js +9 -0
  51. package/dist/static/styles/components/version-history.css.js +2 -6
  52. package/dist/stores/onboarding.js +4 -0
  53. package/package.json +2 -2
@@ -43,6 +43,7 @@ export declare const useConfig: () => {
43
43
  selectedUnsubscribePages: number[];
44
44
  forceRecreate: boolean;
45
45
  trackIdCounter: number;
46
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
46
47
  migration: {
47
48
  recommendationConfigs: {
48
49
  [x: string]: {
@@ -180,6 +181,7 @@ export declare const useConfig: () => {
180
181
  selectedUnsubscribePages: number[];
181
182
  forceRecreate: boolean;
182
183
  trackIdCounter: number;
184
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
183
185
  migration: {
184
186
  recommendationConfigs: {
185
187
  [x: string]: {
@@ -19,6 +19,8 @@ export declare const provideGuidoActions: (actions: {
19
19
  }) => void;
20
20
  /**
21
21
  * Provides individual Guido action handlers
22
+ * @deprecated No consumer in src/ and not exported from library.ts — provideGuidoActions
23
+ * provides all four keys itself. Slated for deletion, see the SD-667788 dead-code ledger.
22
24
  */
23
25
  export declare const provideBackHandler: (handler: BackHandler) => void;
24
26
  export declare const provideSaveStartHandler: (handler: SaveStartHandler) => void;
@@ -16,6 +16,7 @@ export interface HttpError {
16
16
  status?: number;
17
17
  statusText?: string;
18
18
  response?: Response;
19
+ authReported?: boolean;
19
20
  }
20
21
  export declare const useHttp: (defaultOptions?: HttpOptions) => {
21
22
  loading: import("vue").ComputedRef<boolean>;
@@ -65,6 +66,7 @@ export declare const useHttp: (defaultOptions?: HttpOptions) => {
65
66
  json: () => Promise<any>;
66
67
  text: () => Promise<string>;
67
68
  } | undefined;
69
+ authReported?: boolean | undefined;
68
70
  } | null>;
69
71
  hasError: import("vue").ComputedRef<boolean>;
70
72
  request: <T = unknown>(method: HttpMethod, url: string, data?: unknown, options?: HttpOptions) => Promise<HttpResponse<T>>;
@@ -1,2 +1,3 @@
1
1
  import type { LegacyRecommendationConfig } from '@@/Types/config';
2
- export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>) => Promise<string>;
2
+ import { type PartnerScopeMigrationOptions } from './recommendationPartnerMigrator';
3
+ export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>, partnerScope?: PartnerScopeMigrationOptions) => Promise<string>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Empties recommendation blocks copied in from another account and stamps the
3
+ * current one, before the editor ever sees the template (SD-151945).
4
+ *
5
+ * Runs at load rather than on document change: the stamp makes it a one-time
6
+ * pass per template, the campaign-URL rule only ever applies to the loaded HTML,
7
+ * and Stripo takes the result as the original document, so nothing is dirtied.
8
+ */
9
+ export interface PartnerScopeMigrationOptions {
10
+ partnerName: string;
11
+ /** `undefined` when the host does not pass the map — the unstamped check is then off. */
12
+ campaignUrls?: Record<string, unknown>;
13
+ rrsEnabled: boolean;
14
+ }
15
+ /**
16
+ * @param html Template HTML, already normalized by `migrateRecommendation`.
17
+ * @returns Migrated HTML, or the original when no block needed a reset or a stamp.
18
+ */
19
+ export declare function migrateRecommendationPartnerScope(html: string, { partnerName, campaignUrls, rrsEnabled }: PartnerScopeMigrationOptions): string;
@@ -8,8 +8,8 @@ export declare const URLS: {
8
8
  NEWSLETTER_RECOMMENDATIONS_PATH: string;
9
9
  MIGRATE_STRATEGIES_PATH: string;
10
10
  TEMPLATE_MIGRATE_STRATEGIES_PATH: string;
11
- RECOMMENDATION_STRATEGY_CREATE_PATH: string;
12
11
  };
12
+ export declare const strategyCreatePath: () => string;
13
13
  export declare const strategyEditPath: (strategyId: string | number) => string;
14
14
  export declare const MIGRATION_PATHS: Record<RrsMigrationTarget['scope'], string>;
15
15
  export declare const QUERY_PARAMS: {
@@ -139,8 +139,6 @@ export declare class RecommendationBlockControl extends CommonControl {
139
139
  * fails when the size actually changed.
140
140
  */
141
141
  private _debouncedRegenerateWithProducts;
142
- /** Draws the current block's products into this panel's node. */
143
- private _regenerateWithProducts;
144
142
  /**
145
143
  * Listen to store changes that require product refresh or regeneration.
146
144
  *
@@ -623,20 +623,9 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
623
623
  * Block-scoped counterpart of `fetchRecommendationProducts`, which only ever serves the
624
624
  * selected block. The legacy conversion must refresh the products of the block that
625
625
  * started it even after the user selected another one.
626
- * @returns whether real products arrived
627
626
  */
628
- fetchStrategyProductsForBlock(blockId: number, options?: {
629
- keepOnFailure?: boolean;
630
- }): Promise<boolean>;
631
- /**
632
- * Reloads a block's products and adopts its strategy's current size, which may have
633
- * moved since the block was assigned.
634
- * @returns whether a fresh listing holds the strategy and its products arrived
635
- */
636
- refreshStrategyBlock(blockId: number): Promise<boolean>;
637
- _doFetchStrategyProducts(blockId: number, { keepOnFailure }?: {
638
- keepOnFailure?: boolean;
639
- }): Promise<boolean>;
627
+ fetchStrategyProductsForBlock(blockId: number): Promise<void>;
628
+ _doFetchStrategyProducts(blockId: number): Promise<void>;
640
629
  _setBlockProducts(blockId: number, products: RecommendationProduct[], size: number): void;
641
630
  }>;
642
631
  export {};
@@ -83,6 +83,12 @@ export interface RecommendationNodeConfig {
83
83
  */
84
84
  filters: Filter[];
85
85
  strategyId: string;
86
+ /**
87
+ * Account (`config.partner.name`) that last wrote the strategy config. Strategy ids and
88
+ * attribute types are account-scoped, so a block opened under another account is reset.
89
+ * Absent on blocks saved before SD-151945.
90
+ */
91
+ partnerName?: string;
86
92
  /**
87
93
  * Layout orientation
88
94
  * - 'grid': Products in a grid, attributes aligned across products
@@ -1,5 +1,5 @@
1
1
  import type { DocumentModifier } from '../services/configService';
2
- import type { PartialNodeConfig, RecommendationNodeConfig } from '../types/nodeConfig';
2
+ import type { PartialNodeConfig } from '../types/nodeConfig';
3
3
  import type { RecommendationProduct } from '@@/Types/recommendation';
4
4
  import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
5
5
  interface ConfigWriterApi {
@@ -13,8 +13,6 @@ interface ConfigWriterApi {
13
13
  * itself is torn down.
14
14
  */
15
15
  export declare function registerNodeConfigWriter(api: ConfigWriterApi): void;
16
- /** Reads the persisted config of every node carrying a block id (two while a duplicate still shares it). */
17
- export declare function readBlockNodeConfigs(blockId: number): RecommendationNodeConfig[];
18
16
  /**
19
17
  * Commits a config change and its product re-render straight to the document,
20
18
  * bypassing the settings panel.
@@ -0,0 +1,33 @@
1
+ import type { RecommendationNodeConfig } from '../types/nodeConfig';
2
+ /**
3
+ * Mirrors the backend's `RecommendationCampaignUrls::isDefined`: a legacy feed URL
4
+ * string or an entry that names a strategy.
5
+ */
6
+ export declare function isDefinedCampaignUrl(value: unknown): boolean;
7
+ export interface PartnerScopeInputs {
8
+ config: Pick<RecommendationNodeConfig, 'strategyId' | 'partnerName'>;
9
+ blockId: number;
10
+ partnerName: string;
11
+ /** `undefined` when the host does not pass the map — the unstamped check is then off. */
12
+ campaignUrls: Record<string, unknown> | undefined;
13
+ /** With RRS off `buildCampaignUrl` drops the block's map entry, so the map says nothing. */
14
+ rrsEnabled: boolean;
15
+ }
16
+ /**
17
+ * Whether a block carries another account's strategy config (SD-151945).
18
+ *
19
+ * A stamped block is judged by its stamp. An unstamped one predates the stamp, so it
20
+ * falls back to the backend's own signal: a cross-account duplicate drops the block's
21
+ * strategy entry from the campaign URL map but leaves the HTML untouched. That signal
22
+ * only holds while RRS is on, and only for the HTML the host loaded — which is what
23
+ * the caller, a load-time migrator, runs on.
24
+ */
25
+ export declare function carriesForeignPartnerConfig({ config, blockId, partnerName, campaignUrls, rrsEnabled }: PartnerScopeInputs): boolean;
26
+ /**
27
+ * Whether an unstamped block's ownership can be decided at all. `carriesForeignPartnerConfig`
28
+ * answers `false` both for "clean" and for "cannot tell", and stamping on the latter would
29
+ * record a foreign block as this account's and silence every later check. A block with no
30
+ * strategy reference has nothing foreign to carry, so it is always decidable.
31
+ */
32
+ export declare function canJudgeUnstampedBlock({ config, campaignUrls, rrsEnabled }: Pick<PartnerScopeInputs, 'config' | 'campaignUrls' | 'rrsEnabled'>): boolean;
33
+ export declare function withoutCustomAttributes(composition: string[]): string[];
@@ -1,10 +1,3 @@
1
- import type { RecommendationNodeConfig } from '../types/nodeConfig';
2
- /**
3
- * Re-reads the strategy of a duplicated block and its source and redraws both: the clone copies the
4
- * cards the source last drew, so a strategy edited since then only reached a block once selected (SD-153266).
5
- * @param config - the arriving block's persisted config; seeds either block its store entry does not match
6
- */
7
- export declare function refreshDuplicatedStrategyBlocks(sourceId: number, duplicateId: number, config: RecommendationNodeConfig): Promise<void>;
8
1
  /**
9
2
  * Writes a strategy change and its products straight to the document, without the settings panel.
10
3
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Dev-harness stand-in for the cortex-fe MFE's shared `chat` store.
3
+ *
4
+ * `useCortexBlueprintBridge` resolves that store by id off the host's pinia at
5
+ * Guido's setup time, so a store registered after mount is never seen. Installing
6
+ * it here — before `<Guido>` renders — lets e2e drive the bridge through its real
7
+ * registration path instead of re-invoking the composable by hand.
8
+ *
9
+ * Activated with `?chatStore=true`; the instance is exposed on `window` so a test
10
+ * can push agent messages into it.
11
+ */
12
+ export declare const installMockChatStore: () => void;
@@ -48,6 +48,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
48
48
  selectedUnsubscribePages: number[];
49
49
  forceRecreate: boolean;
50
50
  trackIdCounter: number;
51
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
51
52
  migration: {
52
53
  recommendationConfigs: {
53
54
  [x: string]: {
@@ -191,6 +192,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
191
192
  selectedUnsubscribePages: number[];
192
193
  forceRecreate: boolean;
193
194
  trackIdCounter: number;
195
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
194
196
  migration: {
195
197
  recommendationConfigs: {
196
198
  [x: string]: {
@@ -334,6 +336,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
334
336
  selectedUnsubscribePages: number[];
335
337
  forceRecreate: boolean;
336
338
  trackIdCounter: number;
339
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
337
340
  migration: {
338
341
  recommendationConfigs: {
339
342
  [x: string]: {
@@ -477,6 +480,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
477
480
  selectedUnsubscribePages: number[];
478
481
  forceRecreate: boolean;
479
482
  trackIdCounter: number;
483
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
480
484
  migration: {
481
485
  recommendationConfigs: {
482
486
  [x: string]: {
@@ -620,6 +624,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
620
624
  selectedUnsubscribePages: number[];
621
625
  forceRecreate: boolean;
622
626
  trackIdCounter: number;
627
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
623
628
  migration: {
624
629
  recommendationConfigs: {
625
630
  [x: string]: {
@@ -763,6 +768,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
763
768
  selectedUnsubscribePages: number[];
764
769
  forceRecreate: boolean;
765
770
  trackIdCounter: number;
771
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
766
772
  migration: {
767
773
  recommendationConfigs: {
768
774
  [x: string]: {
@@ -906,6 +912,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
906
912
  selectedUnsubscribePages: number[];
907
913
  forceRecreate: boolean;
908
914
  trackIdCounter: number;
915
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
909
916
  migration: {
910
917
  recommendationConfigs: {
911
918
  [x: string]: {
@@ -1049,6 +1056,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1049
1056
  selectedUnsubscribePages: number[];
1050
1057
  forceRecreate: boolean;
1051
1058
  trackIdCounter: number;
1059
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1052
1060
  migration: {
1053
1061
  recommendationConfigs: {
1054
1062
  [x: string]: {
@@ -1192,6 +1200,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1192
1200
  selectedUnsubscribePages: number[];
1193
1201
  forceRecreate: boolean;
1194
1202
  trackIdCounter: number;
1203
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1195
1204
  migration: {
1196
1205
  recommendationConfigs: {
1197
1206
  [x: string]: {
@@ -1335,6 +1344,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1335
1344
  selectedUnsubscribePages: number[];
1336
1345
  forceRecreate: boolean;
1337
1346
  trackIdCounter: number;
1347
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1338
1348
  migration: {
1339
1349
  recommendationConfigs: {
1340
1350
  [x: string]: {
@@ -1478,6 +1488,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1478
1488
  selectedUnsubscribePages: number[];
1479
1489
  forceRecreate: boolean;
1480
1490
  trackIdCounter: number;
1491
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1481
1492
  migration: {
1482
1493
  recommendationConfigs: {
1483
1494
  [x: string]: {
@@ -1621,6 +1632,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1621
1632
  selectedUnsubscribePages: number[];
1622
1633
  forceRecreate: boolean;
1623
1634
  trackIdCounter: number;
1635
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1624
1636
  migration: {
1625
1637
  recommendationConfigs: {
1626
1638
  [x: string]: {
@@ -1764,6 +1776,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1764
1776
  selectedUnsubscribePages: number[];
1765
1777
  forceRecreate: boolean;
1766
1778
  trackIdCounter: number;
1779
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1767
1780
  migration: {
1768
1781
  recommendationConfigs: {
1769
1782
  [x: string]: {
@@ -1907,6 +1920,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1907
1920
  selectedUnsubscribePages: number[];
1908
1921
  forceRecreate: boolean;
1909
1922
  trackIdCounter: number;
1923
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
1910
1924
  migration: {
1911
1925
  recommendationConfigs: {
1912
1926
  [x: string]: {
@@ -2050,6 +2064,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2050
2064
  selectedUnsubscribePages: number[];
2051
2065
  forceRecreate: boolean;
2052
2066
  trackIdCounter: number;
2067
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2053
2068
  migration: {
2054
2069
  recommendationConfigs: {
2055
2070
  [x: string]: {
@@ -2193,6 +2208,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2193
2208
  selectedUnsubscribePages: number[];
2194
2209
  forceRecreate: boolean;
2195
2210
  trackIdCounter: number;
2211
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2196
2212
  migration: {
2197
2213
  recommendationConfigs: {
2198
2214
  [x: string]: {
@@ -2336,6 +2352,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2336
2352
  selectedUnsubscribePages: number[];
2337
2353
  forceRecreate: boolean;
2338
2354
  trackIdCounter: number;
2355
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2339
2356
  migration: {
2340
2357
  recommendationConfigs: {
2341
2358
  [x: string]: {
@@ -2479,6 +2496,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2479
2496
  selectedUnsubscribePages: number[];
2480
2497
  forceRecreate: boolean;
2481
2498
  trackIdCounter: number;
2499
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2482
2500
  migration: {
2483
2501
  recommendationConfigs: {
2484
2502
  [x: string]: {
@@ -2622,6 +2640,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2622
2640
  selectedUnsubscribePages: number[];
2623
2641
  forceRecreate: boolean;
2624
2642
  trackIdCounter: number;
2643
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2625
2644
  migration: {
2626
2645
  recommendationConfigs: {
2627
2646
  [x: string]: {
@@ -2767,6 +2786,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2767
2786
  selectedUnsubscribePages: number[];
2768
2787
  forceRecreate: boolean;
2769
2788
  trackIdCounter: number;
2789
+ recommendationCampaignUrls?: Record<string, unknown> | undefined;
2770
2790
  migration: {
2771
2791
  recommendationConfigs: {
2772
2792
  [x: string]: {
@@ -1,5 +1,6 @@
1
1
  import type { OnboardingCardConfig, OnboardingType, OnboardingStoreState } from '@@/Types/onboarding';
2
2
  export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoOnboarding", OnboardingStoreState, {
3
+ /** @deprecated Components use the type-specific getters. Slated for deletion, see the SD-667788 dead-code ledger. */
3
4
  getOnboarding: (state: {
4
5
  onboardings: {
5
6
  newVersionPopup: {
@@ -390,6 +391,7 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
390
391
  };
391
392
  isFetched: boolean;
392
393
  } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => boolean;
394
+ /** @deprecated Components use getGenericCurrentCard / getTextBlockCurrentCard. Slated for deletion, see the SD-667788 dead-code ledger. */
393
395
  getCurrentCard: (state: {
394
396
  onboardings: {
395
397
  newVersionPopup: {
@@ -2190,6 +2192,7 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
2190
2192
  close(type: OnboardingType): Promise<void>;
2191
2193
  next(type: OnboardingType): void;
2192
2194
  previous(type: OnboardingType): void;
2195
+ /** @deprecated No caller in src/. Slated for deletion, see the SD-667788 dead-code ledger. */
2193
2196
  updateCardPosition(type: OnboardingType, cardIndex: number, position: {
2194
2197
  top: string;
2195
2198
  position: string;
@@ -2198,6 +2201,7 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
2198
2201
  onDiscoverNowClicked(): Promise<void>;
2199
2202
  onRemindMeLater(): void;
2200
2203
  onNewVersionPopupClose(): Promise<void>;
2204
+ /** @deprecated No caller in src/. Slated for deletion, see the SD-667788 dead-code ledger. */
2201
2205
  isOnboardingActive(): boolean;
2202
2206
  fetchUserModalState(): Promise<void>;
2203
2207
  setUserModalState(modal: string, state: string, page: string): Promise<void>;
@@ -6,5 +6,10 @@ type RecommendationConfig = {
6
6
  interface StoreState {
7
7
  recommendationConfigs: RecommendationConfig[];
8
8
  }
9
+ /**
10
+ * @deprecated recommendationConfigs has no writer in src/, so the store is
11
+ * permanently empty and its only readers (useHtmlValidator.ts:496-497) are a
12
+ * no-op. Slated for deletion, see the SD-667788 dead-code ledger.
13
+ */
9
14
  export declare const useRecommendationStore: import("pinia").StoreDefinition<"guidoRecommendation", StoreState, {}, {}>;
10
15
  export {};
@@ -3,12 +3,22 @@
3
3
  * en-US -> MM/DD/YYYY
4
4
  * en-GB -> DD/MM/YYYY
5
5
  * tr-TR -> DD.MM.YYYY
6
+ *
7
+ * The non-string branches below are unreachable: the only caller chain is
8
+ * formatShortDate -> AssignStrategyDrawer.vue:74, which passes a non-empty string.
9
+ * The function itself is live — do not delete it with them.
6
10
  */
7
11
  export declare const convertToDateObject: (date: string | number | Date | null | undefined) => Date;
8
12
  export declare const locale: () => string;
9
13
  export declare const localTz: string;
10
14
  export declare const timezone: () => string;
15
+ /**
16
+ * @deprecated No caller in src/ and not exported from library.ts. Slated for deletion, see the SD-667788 dead-code ledger.
17
+ */
11
18
  export declare const hour12: () => boolean;
19
+ /**
20
+ * @deprecated No caller in src/ and not exported from library.ts. Slated for deletion, see the SD-667788 dead-code ledger.
21
+ */
12
22
  export declare const dateFormat: () => string;
13
23
  /**
14
24
  * @example 04/22/2024
@@ -24,6 +24,9 @@ export declare const getCsrfToken: () => string;
24
24
  */
25
25
  export declare const getUrlParams: () => URLSearchParams;
26
26
  export declare const getUrlParam: (paramName: string, defaultValue?: string) => string;
27
+ /**
28
+ * @deprecated No caller in src/. Slated for deletion, see the SD-667788 dead-code ledger.
29
+ */
27
30
  export declare const replaceString: (string?: string, values?: Record<string, string | number>, isRemoveEmptyValues?: boolean) => string;
28
31
  /**
29
32
  * Narrows an unknown API value to a printable string; anything that is neither
@@ -52,6 +52,15 @@ const n = `.strategy-control-header {
52
52
  mask-size: 24px 24px;
53
53
  }
54
54
 
55
+ .strategy-control-notice--error {
56
+ border-color: var(--guido-color-border-onpage-message-error);
57
+ background-color: var(--guido-color-background-onpage-message-error);
58
+ }
59
+
60
+ .strategy-control-notice--error::before {
61
+ background-color: var(--guido-color-border-onpage-message-error);
62
+ }
63
+
55
64
  .strategy-control-notice-text {
56
65
  margin: 0;
57
66
  padding: 4px 0;
@@ -1,4 +1,4 @@
1
- const n = `.patch-session-container {
1
+ const r = `.patch-session-container {
2
2
  row-gap: 16px;
3
3
  }
4
4
 
@@ -28,11 +28,7 @@ ue-vh-patch.selected .patch-wrapper {
28
28
  .change-history-panel-wrapper .control-panel-header {
29
29
  padding: 16px 0 16px 16px;
30
30
  }
31
-
32
- .change-history-panel-wrapper .header-control-panel-label {
33
- grid-area: 1 / 1 / 2 / 12;
34
- }
35
31
  `;
36
32
  export {
37
- n as default
33
+ r as default
38
34
  };
@@ -20,8 +20,10 @@ const t = () => ({
20
20
  }), c = s("guidoOnboarding", {
21
21
  state: () => a(),
22
22
  getters: {
23
+ /** @deprecated Components use the type-specific getters. Slated for deletion, see the SD-667788 dead-code ledger. */
23
24
  getOnboarding: (n) => (o) => n.onboardings[o],
24
25
  isActive: (n) => (o) => n.onboardings[o].isActive,
26
+ /** @deprecated Components use getGenericCurrentCard / getTextBlockCurrentCard. Slated for deletion, see the SD-667788 dead-code ledger. */
25
27
  getCurrentCard: (n) => (o) => {
26
28
  const i = n.onboardings[o];
27
29
  return i.config[i.cardIndex];
@@ -81,6 +83,7 @@ const t = () => ({
81
83
  previous(n) {
82
84
  this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
83
85
  },
86
+ /** @deprecated No caller in src/. Slated for deletion, see the SD-667788 dead-code ledger. */
84
87
  updateCardPosition(n, o, i) {
85
88
  const r = this.onboardings[n].config[o];
86
89
  r && (r.top = i.top, r.position = i.position);
@@ -97,6 +100,7 @@ const t = () => ({
97
100
  async onNewVersionPopupClose() {
98
101
  await this.setUserModalState("newVersionPopup", "true", "Guido");
99
102
  },
103
+ /** @deprecated No caller in src/. Slated for deletion, see the SD-667788 dead-code ledger. */
100
104
  isOnboardingActive() {
101
105
  return Object.values(this.onboardings).some((n) => n.isActive);
102
106
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.19.0-beta.e110e88",
3
+ "version": "3.19.0-beta.ed8a999",
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",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@stripoinc/ui-editor-extensions": "3.10.0",
56
56
  "@useinsider/design-system-organisms": "0.0.3-beta.d816f06",
57
- "@useinsider/design-system-vue": "1.5.0",
57
+ "@useinsider/design-system-vue": "2.3.1",
58
58
  "@vueuse/core": "11.3.0",
59
59
  "lodash-es": "4.17.21",
60
60
  "pinia": "2.3.1",