@useinsider/guido 3.18.1-beta.2b89365 → 3.18.1-beta.3826f39

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/components/Guido.vue.js +3 -3
  2. package/dist/components/Guido.vue2.js +30 -30
  3. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +13 -11
  4. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +65 -53
  5. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -18
  6. package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +21 -0
  7. package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +47 -0
  8. package/dist/composables/useCustomInterfaceAppearance.js +46 -41
  9. package/dist/composables/useGuidoStateBridge.js +24 -29
  10. package/dist/composables/useHtmlValidator.js +84 -79
  11. package/dist/composables/useRecommendation.js +21 -18
  12. package/dist/composables/useStripo.js +12 -12
  13. package/dist/enums/extensions/recommendationBlock.js +38 -31
  14. package/dist/extensions/Blocks/Recommendation/block.js +43 -39
  15. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +8 -8
  16. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +80 -52
  17. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +150 -73
  18. package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +21 -12
  19. package/dist/guido.css +1 -1
  20. package/dist/library.js +13 -15
  21. package/dist/src/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.d.ts +2 -0
  22. package/dist/src/composables/useGuidoStateBridge.d.ts +7 -11
  23. package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
  24. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +9 -0
  25. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +61 -0
  26. package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +4 -0
  27. package/dist/src/library.d.ts +0 -2
  28. package/dist/src/public/trackingIds.d.ts +2 -6
  29. package/dist/src/stores/editor.d.ts +0 -25
  30. package/dist/src/stores/guido-email-editor.d.ts +27 -27
  31. package/dist/src/stores/onboarding.d.ts +377 -0
  32. package/dist/static/styles/components/recommendation-strategy.css.js +51 -4
  33. package/dist/stores/editor.js +0 -4
  34. package/dist/stores/guido-email-editor.js +4 -0
  35. package/dist/stores/onboarding.js +41 -36
  36. package/dist/utils/templatePreparation.js +50 -50
  37. package/package.json +1 -5
  38. package/dist/public/editorState.js +0 -4
  39. package/dist/src/public/editorState.d.ts +0 -14
@@ -71,8 +71,10 @@ interface StoreState {
71
71
  strategies: RrsStrategy[];
72
72
  strategiesLoading: boolean;
73
73
  strategyUrlTemplates: Record<string, string>;
74
+ strategiesFetched: boolean;
74
75
  blockStates: Record<number, PerBlockState>;
75
76
  currentRecommendationId: number | null;
77
+ strategyPanelOpen: boolean;
76
78
  configVersion: number;
77
79
  }
78
80
  export declare const useRecommendationExtensionStore: import("pinia").StoreDefinition<"guidoRecommendationExtension", StoreState, {
@@ -99,8 +101,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
99
101
  }[];
100
102
  strategiesLoading: boolean;
101
103
  strategyUrlTemplates: Record<string, string>;
104
+ strategiesFetched: boolean;
102
105
  blockStates: Record<number, PerBlockState>;
103
106
  currentRecommendationId: number | null;
107
+ strategyPanelOpen: boolean;
104
108
  configVersion: number;
105
109
  } & import("pinia").PiniaCustomStateProperties<StoreState>): PerBlockConfigs;
106
110
  /**
@@ -125,8 +129,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
125
129
  }[];
126
130
  strategiesLoading: boolean;
127
131
  strategyUrlTemplates: Record<string, string>;
132
+ strategiesFetched: boolean;
128
133
  blockStates: Record<number, PerBlockState>;
129
134
  currentRecommendationId: number | null;
135
+ strategyPanelOpen: boolean;
130
136
  configVersion: number;
131
137
  } & import("pinia").PiniaCustomStateProperties<StoreState>): RecommendationProduct[];
132
138
  /**
@@ -151,8 +157,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
151
157
  }[];
152
158
  strategiesLoading: boolean;
153
159
  strategyUrlTemplates: Record<string, string>;
160
+ strategiesFetched: boolean;
154
161
  blockStates: Record<number, PerBlockState>;
155
162
  currentRecommendationId: number | null;
163
+ strategyPanelOpen: boolean;
156
164
  configVersion: number;
157
165
  } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
158
166
  assignStrategyDrawerStatus(state: {
@@ -174,8 +182,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
174
182
  }[];
175
183
  strategiesLoading: boolean;
176
184
  strategyUrlTemplates: Record<string, string>;
185
+ strategiesFetched: boolean;
177
186
  blockStates: Record<number, PerBlockState>;
178
187
  currentRecommendationId: number | null;
188
+ strategyPanelOpen: boolean;
179
189
  configVersion: number;
180
190
  } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
181
191
  removeStrategyModalStatus(state: {
@@ -197,8 +207,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
197
207
  }[];
198
208
  strategiesLoading: boolean;
199
209
  strategyUrlTemplates: Record<string, string>;
210
+ strategiesFetched: boolean;
200
211
  blockStates: Record<number, PerBlockState>;
201
212
  currentRecommendationId: number | null;
213
+ strategyPanelOpen: boolean;
202
214
  configVersion: number;
203
215
  } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
204
216
  assignedStrategy(state: {
@@ -220,8 +232,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
220
232
  }[];
221
233
  strategiesLoading: boolean;
222
234
  strategyUrlTemplates: Record<string, string>;
235
+ strategiesFetched: boolean;
223
236
  blockStates: Record<number, PerBlockState>;
224
237
  currentRecommendationId: number | null;
238
+ strategyPanelOpen: boolean;
225
239
  configVersion: number;
226
240
  } & import("pinia").PiniaCustomStateProperties<StoreState>): RrsStrategy | null;
227
241
  /**
@@ -246,8 +260,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
246
260
  }[];
247
261
  strategiesLoading: boolean;
248
262
  strategyUrlTemplates: Record<string, string>;
263
+ strategiesFetched: boolean;
249
264
  blockStates: Record<number, PerBlockState>;
250
265
  currentRecommendationId: number | null;
266
+ strategyPanelOpen: boolean;
251
267
  configVersion: number;
252
268
  } & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
253
269
  /**
@@ -272,8 +288,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
272
288
  }[];
273
289
  strategiesLoading: boolean;
274
290
  strategyUrlTemplates: Record<string, string>;
291
+ strategiesFetched: boolean;
275
292
  blockStates: Record<number, PerBlockState>;
276
293
  currentRecommendationId: number | null;
294
+ strategyPanelOpen: boolean;
277
295
  configVersion: number;
278
296
  } & import("pinia").PiniaCustomStateProperties<StoreState>): number;
279
297
  hasFilters(): boolean;
@@ -299,8 +317,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
299
317
  }[];
300
318
  strategiesLoading: boolean;
301
319
  strategyUrlTemplates: Record<string, string>;
320
+ strategiesFetched: boolean;
302
321
  blockStates: Record<number, PerBlockState>;
303
322
  currentRecommendationId: number | null;
323
+ strategyPanelOpen: boolean;
304
324
  configVersion: number;
305
325
  } & import("pinia").PiniaCustomStateProperties<StoreState>) => {
306
326
  text: string;
@@ -325,8 +345,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
325
345
  }[];
326
346
  strategiesLoading: boolean;
327
347
  strategyUrlTemplates: Record<string, string>;
348
+ strategiesFetched: boolean;
328
349
  blockStates: Record<number, PerBlockState>;
329
350
  currentRecommendationId: number | null;
351
+ strategyPanelOpen: boolean;
330
352
  configVersion: number;
331
353
  } & import("pinia").PiniaCustomStateProperties<StoreState>) => {
332
354
  text: string;
@@ -351,8 +373,10 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
351
373
  }[];
352
374
  strategiesLoading: boolean;
353
375
  strategyUrlTemplates: Record<string, string>;
376
+ strategiesFetched: boolean;
354
377
  blockStates: Record<number, PerBlockState>;
355
378
  currentRecommendationId: number | null;
379
+ strategyPanelOpen: boolean;
356
380
  configVersion: number;
357
381
  } & import("pinia").PiniaCustomStateProperties<StoreState>) => {
358
382
  text: string;
@@ -433,6 +457,38 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
433
457
  openRemoveStrategyModal(): void;
434
458
  closeRemoveStrategyModal(): void;
435
459
  fetchStrategies(): Promise<void>;
460
+ invalidateStrategies(): void;
461
+ /**
462
+ * Opens a Smart Recommender strategy page in a new tab and refreshes the list every time
463
+ * the user comes back. `visibilitychange` covers the tab case; `focus` covers the page
464
+ * landing in a separate window, where this document never goes hidden.
465
+ *
466
+ * Deliberately NOT one-shot: the strategy tab stays open, so a user can create a second
467
+ * strategy in it and come back again — a listener that disarmed on the first return would
468
+ * leave that one missing from the list. Armed only once the user actually opens a strategy
469
+ * page, so anyone who never does pays nothing.
470
+ */
471
+ _armStrategyPageReturn(url: string): void;
472
+ /**
473
+ * Reloads the products of the block the user is on, so an edit made in the strategy tab
474
+ * lands on the canvas instead of waiting for the assign drawer to be reopened.
475
+ *
476
+ * Only the selected block: the canvas regeneration is driven off the active block's
477
+ * product array, so refreshing an unselected block would fetch without redrawing it.
478
+ */
479
+ _refreshAssignedStrategyProducts(): Promise<void>;
480
+ /** Lets the editor tear the return listeners down when it unmounts. */
481
+ disposeStrategyPageReturn(): void;
482
+ /**
483
+ * Opens Smart Recommender's strategy creation page. Every return refreshes the list so the
484
+ * new strategy is offered; the user picks it themselves.
485
+ */
486
+ openStrategyCreation(): void;
487
+ /**
488
+ * Opens the strategy's edit page. Every return refreshes the list so the block reflects the
489
+ * edited configuration.
490
+ */
491
+ openStrategyEdit(strategyId: string | number): void;
436
492
  resolveStrategyUrlTemplate(strategy: RrsStrategy, currency: string): Promise<string>;
437
493
  assignStrategy(strategy: RrsStrategy): void;
438
494
  removeStrategy(): void;
@@ -450,6 +506,11 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
450
506
  * every block's recommendationConfigs across user edits.
451
507
  */
452
508
  hasInvalidBlock(): boolean;
509
+ /**
510
+ * Which required fields are missing across the design's blocks, so the save
511
+ * toaster can name the cause instead of always showing the generic message.
512
+ */
513
+ invalidBlockFields(): string[];
453
514
  fetchRecommendationProducts(): Promise<void>;
454
515
  _doFetchProducts(): Promise<void>;
455
516
  _doFetchStrategyProducts(blockId: number): Promise<void>;
@@ -15,7 +15,11 @@ export interface RequiredField {
15
15
  getAvailableOptions?: (store: ExtensionStoreSlice) => string[];
16
16
  condition?: (config: PerBlockConfigs) => boolean;
17
17
  }
18
+ /** Field key of the strategy/algorithm descriptor, used to pick the toaster message. */
19
+ export declare const STRATEGY_FIELD_KEY = "strategy";
18
20
  export declare const REQUIRED_RECOMMENDATION_FIELDS: RequiredField[];
19
21
  export declare const RecommendationRequiredFieldsKey = "newsletter.recommendation-fill-required-fields";
22
+ /** Shown instead of the generic message when the only thing missing is the strategy. */
23
+ export declare const RecommendationAssignStrategyKey = "newsletter.recommendation-assign-strategy";
20
24
  export declare function getInvalidFields(config: PerBlockConfigs, store: ExtensionStoreSlice, fields?: RequiredField[]): string[];
21
25
  export declare function isConfigValid(config: PerBlockConfigs, store: ExtensionStoreSlice): boolean;
@@ -2,7 +2,5 @@ export { default as Guido } from './components/Guido.vue';
2
2
  export type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, TemplateMigrationConfig, LegacyRecommendationConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig, DynamicContent, EmailHeader, DefaultBlockType, CustomBlockType, ValidationResult, ValidationError, } from './@types/config';
3
3
  export { validateConfig, parseConfig, parseConfigSafe, isValidConfig, getValidationErrors, MessageType, ProductType, } from './@types/config';
4
4
  export { assignTrackingIds, readTrackFloor, readTrackSeq } from './public/trackingIds';
5
- export { useGuidoEmailEditorStore } from './public/editorState';
6
- export type { GuidoEmailEditorState } from './public/editorState';
7
5
  export type { StripoEventType } from './@types/events';
8
6
  export type { PositionData, DynamicContentEvent, MergeTagClickEvent, MergeTag, BaseDynamicContent, DynamicContentNode, DynamicContentList, TooltipOptions, TextValueObject, L10n, } from './@types/generic';
@@ -4,10 +4,6 @@
4
4
  * Importing from here pulls in nothing else, so the editor never enters a
5
5
  * consumer's module graph. Re-export surface only: this is the contract,
6
6
  * `utils/linkTrackingIds` is the implementation and stays free to move.
7
- *
8
- * Relative, not the `@@/Utils/` alias: vue-tsc copies the specifier into the emitted
9
- * .d.ts verbatim, and a consumer's TypeScript cannot resolve our alias table. A relative
10
- * path resolves against dist/src/, so the published types actually load.
11
7
  */
12
- export { assignTrackingIds, readTrackFloor, readTrackSeq, TRACK_ID_ATTRIBUTE, TRACK_SEQ_ATTRIBUTE, } from '../utils/linkTrackingIds';
13
- export type { TrackingIdResult } from '../utils/linkTrackingIds';
8
+ export { assignTrackingIds, readTrackFloor, readTrackSeq, TRACK_ID_ATTRIBUTE, TRACK_SEQ_ATTRIBUTE, } from '@@/Utils/linkTrackingIds';
9
+ export type { TrackingIdResult } from '@@/Utils/linkTrackingIds';
@@ -6,7 +6,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
6
6
  isPreviewModeOpen: boolean;
7
7
  editorVisualMode: string;
8
8
  hasChanges: boolean;
9
- changeSeq: number;
10
9
  isStripoInitialized: boolean;
11
10
  templateId: string;
12
11
  syncModulesEnabled: boolean;
@@ -20,7 +19,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
20
19
  isPreviewModeOpen: boolean;
21
20
  editorVisualMode: string;
22
21
  hasChanges: boolean;
23
- changeSeq: number;
24
22
  isStripoInitialized: boolean;
25
23
  templateId: string;
26
24
  syncModulesEnabled: boolean;
@@ -33,7 +31,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
33
31
  isPreviewModeOpen: boolean;
34
32
  editorVisualMode: string;
35
33
  hasChanges: boolean;
36
- changeSeq: number;
37
34
  isStripoInitialized: boolean;
38
35
  templateId: string;
39
36
  syncModulesEnabled: boolean;
@@ -47,7 +44,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
47
44
  isPreviewModeOpen: boolean;
48
45
  editorVisualMode: string;
49
46
  hasChanges: boolean;
50
- changeSeq: number;
51
47
  isStripoInitialized: boolean;
52
48
  templateId: string;
53
49
  syncModulesEnabled: boolean;
@@ -60,7 +56,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
60
56
  isPreviewModeOpen: boolean;
61
57
  editorVisualMode: string;
62
58
  hasChanges: boolean;
63
- changeSeq: number;
64
59
  isStripoInitialized: boolean;
65
60
  templateId: string;
66
61
  syncModulesEnabled: boolean;
@@ -74,7 +69,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
74
69
  isPreviewModeOpen: boolean;
75
70
  editorVisualMode: string;
76
71
  hasChanges: boolean;
77
- changeSeq: number;
78
72
  isStripoInitialized: boolean;
79
73
  templateId: string;
80
74
  syncModulesEnabled: boolean;
@@ -87,7 +81,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
87
81
  isPreviewModeOpen: boolean;
88
82
  editorVisualMode: string;
89
83
  hasChanges: boolean;
90
- changeSeq: number;
91
84
  isStripoInitialized: boolean;
92
85
  templateId: string;
93
86
  syncModulesEnabled: boolean;
@@ -101,7 +94,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
101
94
  isPreviewModeOpen: boolean;
102
95
  editorVisualMode: string;
103
96
  hasChanges: boolean;
104
- changeSeq: number;
105
97
  isStripoInitialized: boolean;
106
98
  templateId: string;
107
99
  syncModulesEnabled: boolean;
@@ -114,7 +106,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
114
106
  isPreviewModeOpen: boolean;
115
107
  editorVisualMode: string;
116
108
  hasChanges: boolean;
117
- changeSeq: number;
118
109
  isStripoInitialized: boolean;
119
110
  templateId: string;
120
111
  syncModulesEnabled: boolean;
@@ -128,7 +119,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
128
119
  isPreviewModeOpen: boolean;
129
120
  editorVisualMode: string;
130
121
  hasChanges: boolean;
131
- changeSeq: number;
132
122
  isStripoInitialized: boolean;
133
123
  templateId: string;
134
124
  syncModulesEnabled: boolean;
@@ -141,7 +131,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
141
131
  isPreviewModeOpen: boolean;
142
132
  editorVisualMode: string;
143
133
  hasChanges: boolean;
144
- changeSeq: number;
145
134
  isStripoInitialized: boolean;
146
135
  templateId: string;
147
136
  syncModulesEnabled: boolean;
@@ -155,7 +144,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
155
144
  isPreviewModeOpen: boolean;
156
145
  editorVisualMode: string;
157
146
  hasChanges: boolean;
158
- changeSeq: number;
159
147
  isStripoInitialized: boolean;
160
148
  templateId: string;
161
149
  syncModulesEnabled: boolean;
@@ -168,7 +156,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
168
156
  isPreviewModeOpen: boolean;
169
157
  editorVisualMode: string;
170
158
  hasChanges: boolean;
171
- changeSeq: number;
172
159
  isStripoInitialized: boolean;
173
160
  templateId: string;
174
161
  syncModulesEnabled: boolean;
@@ -182,7 +169,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
182
169
  isPreviewModeOpen: boolean;
183
170
  editorVisualMode: string;
184
171
  hasChanges: boolean;
185
- changeSeq: number;
186
172
  isStripoInitialized: boolean;
187
173
  templateId: string;
188
174
  syncModulesEnabled: boolean;
@@ -195,7 +181,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
195
181
  isPreviewModeOpen: boolean;
196
182
  editorVisualMode: string;
197
183
  hasChanges: boolean;
198
- changeSeq: number;
199
184
  isStripoInitialized: boolean;
200
185
  templateId: string;
201
186
  syncModulesEnabled: boolean;
@@ -209,7 +194,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
209
194
  isPreviewModeOpen: boolean;
210
195
  editorVisualMode: string;
211
196
  hasChanges: boolean;
212
- changeSeq: number;
213
197
  isStripoInitialized: boolean;
214
198
  templateId: string;
215
199
  syncModulesEnabled: boolean;
@@ -222,7 +206,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
222
206
  isPreviewModeOpen: boolean;
223
207
  editorVisualMode: string;
224
208
  hasChanges: boolean;
225
- changeSeq: number;
226
209
  isStripoInitialized: boolean;
227
210
  templateId: string;
228
211
  syncModulesEnabled: boolean;
@@ -236,7 +219,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
236
219
  isPreviewModeOpen: boolean;
237
220
  editorVisualMode: string;
238
221
  hasChanges: boolean;
239
- changeSeq: number;
240
222
  isStripoInitialized: boolean;
241
223
  templateId: string;
242
224
  syncModulesEnabled: boolean;
@@ -249,7 +231,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
249
231
  isPreviewModeOpen: boolean;
250
232
  editorVisualMode: string;
251
233
  hasChanges: boolean;
252
- changeSeq: number;
253
234
  isStripoInitialized: boolean;
254
235
  templateId: string;
255
236
  syncModulesEnabled: boolean;
@@ -263,7 +244,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
263
244
  isPreviewModeOpen: boolean;
264
245
  editorVisualMode: string;
265
246
  hasChanges: boolean;
266
- changeSeq: number;
267
247
  isStripoInitialized: boolean;
268
248
  templateId: string;
269
249
  syncModulesEnabled: boolean;
@@ -276,7 +256,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
276
256
  isPreviewModeOpen: boolean;
277
257
  editorVisualMode: string;
278
258
  hasChanges: boolean;
279
- changeSeq: number;
280
259
  isStripoInitialized: boolean;
281
260
  templateId: string;
282
261
  syncModulesEnabled: boolean;
@@ -290,7 +269,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
290
269
  isPreviewModeOpen: boolean;
291
270
  editorVisualMode: string;
292
271
  hasChanges: boolean;
293
- changeSeq: number;
294
272
  isStripoInitialized: boolean;
295
273
  templateId: string;
296
274
  syncModulesEnabled: boolean;
@@ -303,7 +281,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
303
281
  isPreviewModeOpen: boolean;
304
282
  editorVisualMode: string;
305
283
  hasChanges: boolean;
306
- changeSeq: number;
307
284
  isStripoInitialized: boolean;
308
285
  templateId: string;
309
286
  syncModulesEnabled: boolean;
@@ -317,7 +294,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
317
294
  isPreviewModeOpen: boolean;
318
295
  editorVisualMode: string;
319
296
  hasChanges: boolean;
320
- changeSeq: number;
321
297
  isStripoInitialized: boolean;
322
298
  templateId: string;
323
299
  syncModulesEnabled: boolean;
@@ -330,7 +306,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
330
306
  isPreviewModeOpen: boolean;
331
307
  editorVisualMode: string;
332
308
  hasChanges: boolean;
333
- changeSeq: number;
334
309
  isStripoInitialized: boolean;
335
310
  templateId: string;
336
311
  syncModulesEnabled: boolean;
@@ -1,41 +1,41 @@
1
- /** The published editor snapshot — the shape a consumer reads off the shared store. */
2
- export interface GuidoEmailEditorState {
1
+ /**
2
+ * Outbound contract Guido publishes to the host's shared Pinia singleton so
3
+ * cortex-fe can pick up the current editor state and forward it as
4
+ * `clientState.editor` on the next chat-stream POST.
5
+ *
6
+ * State + getters only — `useGuidoStateBridge` writes via `$patch`, no actions
7
+ * live here (architecture invariant).
8
+ *
9
+ * Store id `guidoEmailEditor` is cross-MFE: cortex-fe reads it via
10
+ * `pinia._s.get('guidoEmailEditor')` at runtime. The internal Guido editor
11
+ * store keeps id `guidoEditor` — these are intentionally separate. The
12
+ * internal store carries UI state that cortex-fe should not see; this public
13
+ * store carries the contract Guido is willing to share.
14
+ */
15
+ export declare const useGuidoEmailEditorStore: import("pinia").StoreDefinition<"guidoEmailEditor", {
3
16
  /** Current Stripo HTML — stripe tables only, no DOCTYPE/wrapper. */
4
17
  html: string;
5
18
  /** Current Stripo CSS — es-p* utility classes used by the html. */
6
19
  css: string;
7
20
  /** Wall-clock ms when html/css were last written by the bridge. */
8
21
  lastUpdatedAt: number;
9
- /** Template id from the editor config, so a consumer can scope per-template. */
22
+ /** Template id from the editor config, for cortex-fe to scope per-template. */
10
23
  templateId: string;
11
- }
12
- /**
13
- * Outbound contract Guido publishes to the host's shared Pinia singleton so a
14
- * consumer can read the current editor state: cortex-fe forwards it as
15
- * `clientState.editor` on the next chat-stream POST, email-fe scans it for the
16
- * Array of Objects lock.
17
- *
18
- * Published as `@useinsider/guido/editor-state` and from the root barrel, so a
19
- * consumer imports this store instead of re-declaring one under the same id.
20
- *
21
- * State + getters only, no actions. `useGuidoStateBridge` is the only intended
22
- * writer, but that is Guido's own convention rather than something the store
23
- * enforces: publishing the definition hands a consumer `$patch` as well, exactly
24
- * as the runtime `pinia._s` probe always did.
25
- *
26
- * Store id `guidoEmailEditor` is cross-MFE: cortex-fe reads it via
27
- * `pinia._s.get('guidoEmailEditor')` at runtime rather than importing it, so the
28
- * id stays part of the contract. The internal Guido editor store keeps id
29
- * `guidoEditor` — these are intentionally separate. The internal store carries
30
- * UI state a consumer should not see; this public store carries the contract
31
- * Guido is willing to share.
32
- */
33
- export declare const useGuidoEmailEditorStore: import("pinia").StoreDefinition<"guidoEmailEditor", GuidoEmailEditorState, {
24
+ }, {
34
25
  /** True once the bridge has published at least one snapshot. */
35
26
  hasSnapshot: (state: {
36
27
  html: string;
37
28
  css: string;
38
29
  lastUpdatedAt: number;
39
30
  templateId: string;
40
- } & import("pinia").PiniaCustomStateProperties<GuidoEmailEditorState>) => boolean;
31
+ } & import("pinia").PiniaCustomStateProperties<{
32
+ /** Current Stripo HTML — stripe tables only, no DOCTYPE/wrapper. */
33
+ html: string;
34
+ /** Current Stripo CSS — es-p* utility classes used by the html. */
35
+ css: string;
36
+ /** Wall-clock ms when html/css were last written by the bridge. */
37
+ lastUpdatedAt: number;
38
+ /** Template id from the editor config, for cortex-fe to scope per-template. */
39
+ templateId: string;
40
+ }>) => boolean;
41
41
  }, {}>;