@useinsider/guido 3.19.0-beta.acb00a2 → 3.19.0-beta.c604f7d
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.
- package/dist/@types/config/schemas.js +21 -20
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +72 -71
- package/dist/components/organisms/AutoSaveController.vue2.js +10 -8
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +36 -52
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +98 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +32 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +9 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +56 -38
- package/dist/composables/useAccessibilityApi.js +35 -0
- package/dist/composables/useActionsApi.js +20 -24
- package/dist/composables/useCortexBlueprintBridge.js +54 -122
- package/dist/composables/useCustomInterfaceAppearance.js +42 -41
- package/dist/composables/useEmailTemplateApplier.js +52 -108
- package/dist/config/i18n/en/labels.json.js +36 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/guido.css +1 -1
- package/dist/sprite.svg +6 -0
- package/dist/src/@types/config/schemas.d.ts +2 -0
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +3 -1
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useCortexBlueprintBridge.d.ts +3 -2
- package/dist/src/composables/useEmailTemplateApplier.d.ts +5 -18
- package/dist/src/stores/config.d.ts +20 -0
- package/dist/src/stores/editor.d.ts +109 -0
- package/dist/src/stores/guido-email-editor.d.ts +10 -20
- package/dist/src/stores/onboarding.d.ts +952 -21
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +5 -0
- package/dist/static/styles/components/accessibility.css.js +234 -0
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/stores/editor.js +7 -4
- package/dist/stores/guido-email-editor.js +1 -3
- package/dist/stores/onboarding.js +43 -21
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +1 -1
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { ColorVisionDeficiency } from '@@/Types/api/accessibility-api';
|
|
1
2
|
export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEditor", {
|
|
2
3
|
loadingStatus: boolean;
|
|
3
4
|
isCodeEditorOpen: boolean;
|
|
4
5
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
5
6
|
isVersionHistoryOpen: boolean;
|
|
6
7
|
isPreviewModeOpen: boolean;
|
|
8
|
+
isAccessibilityTestingOpen: boolean;
|
|
9
|
+
imagesHidden: boolean;
|
|
10
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
7
11
|
editorVisualMode: string;
|
|
8
12
|
hasChanges: boolean;
|
|
9
13
|
changeSeq: number;
|
|
@@ -18,6 +22,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
18
22
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
19
23
|
isVersionHistoryOpen: boolean;
|
|
20
24
|
isPreviewModeOpen: boolean;
|
|
25
|
+
isAccessibilityTestingOpen: boolean;
|
|
26
|
+
imagesHidden: boolean;
|
|
27
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
21
28
|
editorVisualMode: string;
|
|
22
29
|
hasChanges: boolean;
|
|
23
30
|
changeSeq: number;
|
|
@@ -31,6 +38,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
31
38
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
32
39
|
isVersionHistoryOpen: boolean;
|
|
33
40
|
isPreviewModeOpen: boolean;
|
|
41
|
+
isAccessibilityTestingOpen: boolean;
|
|
42
|
+
imagesHidden: boolean;
|
|
43
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
34
44
|
editorVisualMode: string;
|
|
35
45
|
hasChanges: boolean;
|
|
36
46
|
changeSeq: number;
|
|
@@ -45,6 +55,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
45
55
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
46
56
|
isVersionHistoryOpen: boolean;
|
|
47
57
|
isPreviewModeOpen: boolean;
|
|
58
|
+
isAccessibilityTestingOpen: boolean;
|
|
59
|
+
imagesHidden: boolean;
|
|
60
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
48
61
|
editorVisualMode: string;
|
|
49
62
|
hasChanges: boolean;
|
|
50
63
|
changeSeq: number;
|
|
@@ -58,6 +71,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
58
71
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
59
72
|
isVersionHistoryOpen: boolean;
|
|
60
73
|
isPreviewModeOpen: boolean;
|
|
74
|
+
isAccessibilityTestingOpen: boolean;
|
|
75
|
+
imagesHidden: boolean;
|
|
76
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
61
77
|
editorVisualMode: string;
|
|
62
78
|
hasChanges: boolean;
|
|
63
79
|
changeSeq: number;
|
|
@@ -72,6 +88,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
72
88
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
73
89
|
isVersionHistoryOpen: boolean;
|
|
74
90
|
isPreviewModeOpen: boolean;
|
|
91
|
+
isAccessibilityTestingOpen: boolean;
|
|
92
|
+
imagesHidden: boolean;
|
|
93
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
75
94
|
editorVisualMode: string;
|
|
76
95
|
hasChanges: boolean;
|
|
77
96
|
changeSeq: number;
|
|
@@ -85,6 +104,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
85
104
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
86
105
|
isVersionHistoryOpen: boolean;
|
|
87
106
|
isPreviewModeOpen: boolean;
|
|
107
|
+
isAccessibilityTestingOpen: boolean;
|
|
108
|
+
imagesHidden: boolean;
|
|
109
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
88
110
|
editorVisualMode: string;
|
|
89
111
|
hasChanges: boolean;
|
|
90
112
|
changeSeq: number;
|
|
@@ -99,6 +121,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
99
121
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
100
122
|
isVersionHistoryOpen: boolean;
|
|
101
123
|
isPreviewModeOpen: boolean;
|
|
124
|
+
isAccessibilityTestingOpen: boolean;
|
|
125
|
+
imagesHidden: boolean;
|
|
126
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
102
127
|
editorVisualMode: string;
|
|
103
128
|
hasChanges: boolean;
|
|
104
129
|
changeSeq: number;
|
|
@@ -112,6 +137,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
112
137
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
113
138
|
isVersionHistoryOpen: boolean;
|
|
114
139
|
isPreviewModeOpen: boolean;
|
|
140
|
+
isAccessibilityTestingOpen: boolean;
|
|
141
|
+
imagesHidden: boolean;
|
|
142
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
115
143
|
editorVisualMode: string;
|
|
116
144
|
hasChanges: boolean;
|
|
117
145
|
changeSeq: number;
|
|
@@ -126,6 +154,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
126
154
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
127
155
|
isVersionHistoryOpen: boolean;
|
|
128
156
|
isPreviewModeOpen: boolean;
|
|
157
|
+
isAccessibilityTestingOpen: boolean;
|
|
158
|
+
imagesHidden: boolean;
|
|
159
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
129
160
|
editorVisualMode: string;
|
|
130
161
|
hasChanges: boolean;
|
|
131
162
|
changeSeq: number;
|
|
@@ -139,6 +170,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
139
170
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
140
171
|
isVersionHistoryOpen: boolean;
|
|
141
172
|
isPreviewModeOpen: boolean;
|
|
173
|
+
isAccessibilityTestingOpen: boolean;
|
|
174
|
+
imagesHidden: boolean;
|
|
175
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
142
176
|
editorVisualMode: string;
|
|
143
177
|
hasChanges: boolean;
|
|
144
178
|
changeSeq: number;
|
|
@@ -153,6 +187,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
153
187
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
154
188
|
isVersionHistoryOpen: boolean;
|
|
155
189
|
isPreviewModeOpen: boolean;
|
|
190
|
+
isAccessibilityTestingOpen: boolean;
|
|
191
|
+
imagesHidden: boolean;
|
|
192
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
156
193
|
editorVisualMode: string;
|
|
157
194
|
hasChanges: boolean;
|
|
158
195
|
changeSeq: number;
|
|
@@ -166,6 +203,42 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
166
203
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
167
204
|
isVersionHistoryOpen: boolean;
|
|
168
205
|
isPreviewModeOpen: boolean;
|
|
206
|
+
isAccessibilityTestingOpen: boolean;
|
|
207
|
+
imagesHidden: boolean;
|
|
208
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
209
|
+
editorVisualMode: string;
|
|
210
|
+
hasChanges: boolean;
|
|
211
|
+
changeSeq: number;
|
|
212
|
+
isStripoInitialized: boolean;
|
|
213
|
+
templateId: string;
|
|
214
|
+
syncModulesEnabled: boolean;
|
|
215
|
+
trackIdSessionFloor: number;
|
|
216
|
+
}>) => boolean;
|
|
217
|
+
isNormalMode: (state: {
|
|
218
|
+
loadingStatus: boolean;
|
|
219
|
+
isCodeEditorOpen: boolean;
|
|
220
|
+
isSaveAsTemplateDrawerOpen: boolean;
|
|
221
|
+
isVersionHistoryOpen: boolean;
|
|
222
|
+
isPreviewModeOpen: boolean;
|
|
223
|
+
isAccessibilityTestingOpen: boolean;
|
|
224
|
+
imagesHidden: boolean;
|
|
225
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
226
|
+
editorVisualMode: string;
|
|
227
|
+
hasChanges: boolean;
|
|
228
|
+
changeSeq: number;
|
|
229
|
+
isStripoInitialized: boolean;
|
|
230
|
+
templateId: string;
|
|
231
|
+
syncModulesEnabled: boolean;
|
|
232
|
+
trackIdSessionFloor: number;
|
|
233
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
234
|
+
loadingStatus: boolean;
|
|
235
|
+
isCodeEditorOpen: boolean;
|
|
236
|
+
isSaveAsTemplateDrawerOpen: boolean;
|
|
237
|
+
isVersionHistoryOpen: boolean;
|
|
238
|
+
isPreviewModeOpen: boolean;
|
|
239
|
+
isAccessibilityTestingOpen: boolean;
|
|
240
|
+
imagesHidden: boolean;
|
|
241
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
169
242
|
editorVisualMode: string;
|
|
170
243
|
hasChanges: boolean;
|
|
171
244
|
changeSeq: number;
|
|
@@ -180,6 +253,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
180
253
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
181
254
|
isVersionHistoryOpen: boolean;
|
|
182
255
|
isPreviewModeOpen: boolean;
|
|
256
|
+
isAccessibilityTestingOpen: boolean;
|
|
257
|
+
imagesHidden: boolean;
|
|
258
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
183
259
|
editorVisualMode: string;
|
|
184
260
|
hasChanges: boolean;
|
|
185
261
|
changeSeq: number;
|
|
@@ -193,6 +269,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
193
269
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
194
270
|
isVersionHistoryOpen: boolean;
|
|
195
271
|
isPreviewModeOpen: boolean;
|
|
272
|
+
isAccessibilityTestingOpen: boolean;
|
|
273
|
+
imagesHidden: boolean;
|
|
274
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
196
275
|
editorVisualMode: string;
|
|
197
276
|
hasChanges: boolean;
|
|
198
277
|
changeSeq: number;
|
|
@@ -207,6 +286,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
207
286
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
208
287
|
isVersionHistoryOpen: boolean;
|
|
209
288
|
isPreviewModeOpen: boolean;
|
|
289
|
+
isAccessibilityTestingOpen: boolean;
|
|
290
|
+
imagesHidden: boolean;
|
|
291
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
210
292
|
editorVisualMode: string;
|
|
211
293
|
hasChanges: boolean;
|
|
212
294
|
changeSeq: number;
|
|
@@ -220,6 +302,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
220
302
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
221
303
|
isVersionHistoryOpen: boolean;
|
|
222
304
|
isPreviewModeOpen: boolean;
|
|
305
|
+
isAccessibilityTestingOpen: boolean;
|
|
306
|
+
imagesHidden: boolean;
|
|
307
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
223
308
|
editorVisualMode: string;
|
|
224
309
|
hasChanges: boolean;
|
|
225
310
|
changeSeq: number;
|
|
@@ -234,6 +319,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
234
319
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
235
320
|
isVersionHistoryOpen: boolean;
|
|
236
321
|
isPreviewModeOpen: boolean;
|
|
322
|
+
isAccessibilityTestingOpen: boolean;
|
|
323
|
+
imagesHidden: boolean;
|
|
324
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
237
325
|
editorVisualMode: string;
|
|
238
326
|
hasChanges: boolean;
|
|
239
327
|
changeSeq: number;
|
|
@@ -247,6 +335,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
247
335
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
248
336
|
isVersionHistoryOpen: boolean;
|
|
249
337
|
isPreviewModeOpen: boolean;
|
|
338
|
+
isAccessibilityTestingOpen: boolean;
|
|
339
|
+
imagesHidden: boolean;
|
|
340
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
250
341
|
editorVisualMode: string;
|
|
251
342
|
hasChanges: boolean;
|
|
252
343
|
changeSeq: number;
|
|
@@ -261,6 +352,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
261
352
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
262
353
|
isVersionHistoryOpen: boolean;
|
|
263
354
|
isPreviewModeOpen: boolean;
|
|
355
|
+
isAccessibilityTestingOpen: boolean;
|
|
356
|
+
imagesHidden: boolean;
|
|
357
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
264
358
|
editorVisualMode: string;
|
|
265
359
|
hasChanges: boolean;
|
|
266
360
|
changeSeq: number;
|
|
@@ -274,6 +368,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
274
368
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
275
369
|
isVersionHistoryOpen: boolean;
|
|
276
370
|
isPreviewModeOpen: boolean;
|
|
371
|
+
isAccessibilityTestingOpen: boolean;
|
|
372
|
+
imagesHidden: boolean;
|
|
373
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
277
374
|
editorVisualMode: string;
|
|
278
375
|
hasChanges: boolean;
|
|
279
376
|
changeSeq: number;
|
|
@@ -288,6 +385,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
288
385
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
289
386
|
isVersionHistoryOpen: boolean;
|
|
290
387
|
isPreviewModeOpen: boolean;
|
|
388
|
+
isAccessibilityTestingOpen: boolean;
|
|
389
|
+
imagesHidden: boolean;
|
|
390
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
291
391
|
editorVisualMode: string;
|
|
292
392
|
hasChanges: boolean;
|
|
293
393
|
changeSeq: number;
|
|
@@ -301,6 +401,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
301
401
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
302
402
|
isVersionHistoryOpen: boolean;
|
|
303
403
|
isPreviewModeOpen: boolean;
|
|
404
|
+
isAccessibilityTestingOpen: boolean;
|
|
405
|
+
imagesHidden: boolean;
|
|
406
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
304
407
|
editorVisualMode: string;
|
|
305
408
|
hasChanges: boolean;
|
|
306
409
|
changeSeq: number;
|
|
@@ -315,6 +418,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
315
418
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
316
419
|
isVersionHistoryOpen: boolean;
|
|
317
420
|
isPreviewModeOpen: boolean;
|
|
421
|
+
isAccessibilityTestingOpen: boolean;
|
|
422
|
+
imagesHidden: boolean;
|
|
423
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
318
424
|
editorVisualMode: string;
|
|
319
425
|
hasChanges: boolean;
|
|
320
426
|
changeSeq: number;
|
|
@@ -328,6 +434,9 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
328
434
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
329
435
|
isVersionHistoryOpen: boolean;
|
|
330
436
|
isPreviewModeOpen: boolean;
|
|
437
|
+
isAccessibilityTestingOpen: boolean;
|
|
438
|
+
imagesHidden: boolean;
|
|
439
|
+
colorVisionDeficiency: ColorVisionDeficiency;
|
|
331
440
|
editorVisualMode: string;
|
|
332
441
|
hasChanges: boolean;
|
|
333
442
|
changeSeq: number;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/** Terminal outcome of an editor write, keyed by `${blueprintId}:${version}`. */
|
|
2
|
-
export interface ApplyAck {
|
|
3
|
-
status: 'applied' | 'failed';
|
|
4
|
-
/** The `applyRequestedAt` of the click this ack answers — lets cortex drop stale acks. */
|
|
5
|
-
requestedAt: number;
|
|
6
|
-
/** Strictly increasing per key, so two acks in the same millisecond still order. */
|
|
7
|
-
ackAt: number;
|
|
8
|
-
/** Stringified — cortex JSON-clones store-derived payloads, an Error would not survive. */
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
1
|
/** The published editor snapshot — the shape a consumer reads off the shared store. */
|
|
12
2
|
export interface GuidoEmailEditorState {
|
|
13
3
|
/** Current Stripo HTML — stripe tables only, no DOCTYPE/wrapper. */
|
|
@@ -18,10 +8,6 @@ export interface GuidoEmailEditorState {
|
|
|
18
8
|
lastUpdatedAt: number;
|
|
19
9
|
/** Template id from the editor config, so a consumer can scope per-template. */
|
|
20
10
|
templateId: string;
|
|
21
|
-
/** True while a mounted Guido bridge is consuming the chat store. Gates cortex's Apply button. */
|
|
22
|
-
bridgeActive: boolean;
|
|
23
|
-
/** `${blueprintId}:${version}` → terminal outcome of the editor write, written only after it settles. */
|
|
24
|
-
applyAcks: Record<string, ApplyAck>;
|
|
25
11
|
}
|
|
26
12
|
/**
|
|
27
13
|
* Outbound contract Guido publishes to the host's shared Pinia singleton so a
|
|
@@ -32,11 +18,17 @@ export interface GuidoEmailEditorState {
|
|
|
32
18
|
* Published as `@useinsider/guido/editor-state` and from the root barrel, so a
|
|
33
19
|
* consumer imports this store instead of re-declaring one under the same id.
|
|
34
20
|
*
|
|
35
|
-
* State
|
|
36
|
-
*
|
|
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.
|
|
37
25
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
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.
|
|
40
32
|
*/
|
|
41
33
|
export declare const useGuidoEmailEditorStore: import("pinia").StoreDefinition<"guidoEmailEditor", GuidoEmailEditorState, {
|
|
42
34
|
/** True once the bridge has published at least one snapshot. */
|
|
@@ -45,7 +37,5 @@ export declare const useGuidoEmailEditorStore: import("pinia").StoreDefinition<"
|
|
|
45
37
|
css: string;
|
|
46
38
|
lastUpdatedAt: number;
|
|
47
39
|
templateId: string;
|
|
48
|
-
bridgeActive: boolean;
|
|
49
|
-
applyAcks: Record<string, ApplyAck>;
|
|
50
40
|
} & import("pinia").PiniaCustomStateProperties<GuidoEmailEditorState>) => boolean;
|
|
51
41
|
}, {}>;
|