@useinsider/guido 1.0.2-beta.8424df0 → 1.0.2-beta.85ea6e2

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 (64) hide show
  1. package/README.md +12 -0
  2. package/dist/@types/events.d.ts +6 -0
  3. package/dist/@types/generic.d.ts +1 -0
  4. package/dist/components/Guido.vue.d.ts +1 -0
  5. package/dist/components/Guido.vue.js +11 -11
  6. package/dist/components/Guido.vue2.js +63 -55
  7. package/dist/components/organisms/LoadingWrapper.vue.d.ts +2 -0
  8. package/dist/components/organisms/LoadingWrapper.vue.js +18 -0
  9. package/dist/components/organisms/LoadingWrapper.vue2.js +12 -0
  10. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
  11. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +7 -8
  12. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +15 -14
  13. package/dist/components/organisms/header/LeftSlot.vue.js +10 -9
  14. package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
  15. package/dist/components/organisms/header/MiddleSlot.vue2.js +15 -16
  16. package/dist/components/organisms/header/RightSlot.vue.js +3 -3
  17. package/dist/components/organisms/header/RightSlot.vue2.js +25 -26
  18. package/dist/components/organisms/header/ViewOptions.vue.js +10 -10
  19. package/dist/components/organisms/header/ViewOptions.vue2.js +14 -15
  20. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  21. package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +2 -0
  22. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +20 -0
  23. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +37 -0
  24. package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +2 -0
  25. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +21 -0
  26. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +83 -0
  27. package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +2 -0
  28. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +17 -0
  29. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -0
  30. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +2 -0
  31. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +19 -0
  32. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +38 -0
  33. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +2 -0
  34. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +21 -0
  35. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +62 -0
  36. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +2 -0
  37. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +20 -0
  38. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +37 -0
  39. package/dist/composables/useCustomInterfaceAppearance.js +15 -13
  40. package/dist/composables/usePartner.d.ts +1 -0
  41. package/dist/composables/usePartner.js +16 -9
  42. package/dist/composables/usePreviewMode.js +16 -15
  43. package/dist/composables/useStripo.js +49 -48
  44. package/dist/composables/useStripoEventHandler.d.ts +3 -0
  45. package/dist/composables/useStripoEventHandler.js +20 -0
  46. package/dist/enums/defaults.d.ts +1 -0
  47. package/dist/enums/defaults.js +42 -9
  48. package/dist/enums/onboarding.d.ts +1 -0
  49. package/dist/enums/onboarding.js +8 -0
  50. package/dist/guido.css +1 -1
  51. package/dist/mock/api/user-modal-state.d.ts +2 -0
  52. package/dist/services/onboardingApi.d.ts +4 -0
  53. package/dist/services/onboardingApi.js +23 -0
  54. package/dist/static/assets/onboarding-img.svg.js +4 -0
  55. package/dist/static/styles/components/loader.css.js +10 -0
  56. package/dist/static/styles/components/wide-panel.css.js +11 -2
  57. package/dist/static/styles/customEditorStyle.css.js +18 -0
  58. package/dist/stores/editor.d.ts +194 -1
  59. package/dist/stores/editor.js +18 -2
  60. package/dist/stores/onboarding.d.ts +1004 -0
  61. package/dist/stores/onboarding.js +95 -0
  62. package/dist/stores/preview.d.ts +0 -8
  63. package/dist/stores/preview.js +14 -20
  64. package/package.json +1 -1
@@ -0,0 +1,1004 @@
1
+ import type { OnboardingCardConfig, OnboardingType, OnboardingStoreState } from '@@/Types/onboarding';
2
+ export declare const useOnboardingStore: import("pinia").StoreDefinition<"onboarding", OnboardingStoreState, {
3
+ getOnboarding: (state: {
4
+ onboardings: {
5
+ newVersionPopup: {
6
+ cardIndex: number;
7
+ isActive: boolean;
8
+ config: {
9
+ classes: string;
10
+ position: string;
11
+ left?: string | undefined;
12
+ right?: string | undefined;
13
+ top?: string | undefined;
14
+ bottom?: string | undefined;
15
+ title: string;
16
+ description: string;
17
+ imageSource: string;
18
+ backButtonClick: () => void;
19
+ nextButtonType: string;
20
+ nextButtonText: string;
21
+ nextButtonClick: () => void;
22
+ backButtonType?: string | undefined;
23
+ backButtonText?: string | undefined;
24
+ }[];
25
+ };
26
+ genericOnboarding: {
27
+ cardIndex: number;
28
+ isActive: boolean;
29
+ config: {
30
+ classes: string;
31
+ position: string;
32
+ left?: string | undefined;
33
+ right?: string | undefined;
34
+ top?: string | undefined;
35
+ bottom?: string | undefined;
36
+ title: string;
37
+ description: string;
38
+ imageSource: string;
39
+ backButtonClick: () => void;
40
+ nextButtonType: string;
41
+ nextButtonText: string;
42
+ nextButtonClick: () => void;
43
+ backButtonType?: string | undefined;
44
+ backButtonText?: string | undefined;
45
+ }[];
46
+ };
47
+ textBlockOnboarding: {
48
+ cardIndex: number;
49
+ isActive: boolean;
50
+ config: {
51
+ classes: string;
52
+ position: string;
53
+ left?: string | undefined;
54
+ right?: string | undefined;
55
+ top?: string | undefined;
56
+ bottom?: string | undefined;
57
+ title: string;
58
+ description: string;
59
+ imageSource: string;
60
+ backButtonClick: () => void;
61
+ nextButtonType: string;
62
+ nextButtonText: string;
63
+ nextButtonClick: () => void;
64
+ backButtonType?: string | undefined;
65
+ backButtonText?: string | undefined;
66
+ }[];
67
+ };
68
+ versionHistoryOnboarding: {
69
+ cardIndex: number;
70
+ isActive: boolean;
71
+ config: {
72
+ classes: string;
73
+ position: string;
74
+ left?: string | undefined;
75
+ right?: string | undefined;
76
+ top?: string | undefined;
77
+ bottom?: string | undefined;
78
+ title: string;
79
+ description: string;
80
+ imageSource: string;
81
+ backButtonClick: () => void;
82
+ nextButtonType: string;
83
+ nextButtonText: string;
84
+ nextButtonClick: () => void;
85
+ backButtonType?: string | undefined;
86
+ backButtonText?: string | undefined;
87
+ }[];
88
+ };
89
+ ampOnboarding: {
90
+ cardIndex: number;
91
+ isActive: boolean;
92
+ config: {
93
+ classes: string;
94
+ position: string;
95
+ left?: string | undefined;
96
+ right?: string | undefined;
97
+ top?: string | undefined;
98
+ bottom?: string | undefined;
99
+ title: string;
100
+ description: string;
101
+ imageSource: string;
102
+ backButtonClick: () => void;
103
+ nextButtonType: string;
104
+ nextButtonText: string;
105
+ nextButtonClick: () => void;
106
+ backButtonType?: string | undefined;
107
+ backButtonText?: string | undefined;
108
+ }[];
109
+ };
110
+ };
111
+ userModalState: Record<string, Record<string, boolean>>;
112
+ isFetched: boolean;
113
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => {
114
+ cardIndex: number;
115
+ isActive: boolean;
116
+ config: {
117
+ classes: string;
118
+ position: string;
119
+ left?: string | undefined;
120
+ right?: string | undefined;
121
+ top?: string | undefined;
122
+ bottom?: string | undefined;
123
+ title: string;
124
+ description: string;
125
+ imageSource: string;
126
+ backButtonClick: () => void;
127
+ nextButtonType: string;
128
+ nextButtonText: string;
129
+ nextButtonClick: () => void;
130
+ backButtonType?: string | undefined;
131
+ backButtonText?: string | undefined;
132
+ }[];
133
+ };
134
+ isActive: (state: {
135
+ onboardings: {
136
+ newVersionPopup: {
137
+ cardIndex: number;
138
+ isActive: boolean;
139
+ config: {
140
+ classes: string;
141
+ position: string;
142
+ left?: string | undefined;
143
+ right?: string | undefined;
144
+ top?: string | undefined;
145
+ bottom?: string | undefined;
146
+ title: string;
147
+ description: string;
148
+ imageSource: string;
149
+ backButtonClick: () => void;
150
+ nextButtonType: string;
151
+ nextButtonText: string;
152
+ nextButtonClick: () => void;
153
+ backButtonType?: string | undefined;
154
+ backButtonText?: string | undefined;
155
+ }[];
156
+ };
157
+ genericOnboarding: {
158
+ cardIndex: number;
159
+ isActive: boolean;
160
+ config: {
161
+ classes: string;
162
+ position: string;
163
+ left?: string | undefined;
164
+ right?: string | undefined;
165
+ top?: string | undefined;
166
+ bottom?: string | undefined;
167
+ title: string;
168
+ description: string;
169
+ imageSource: string;
170
+ backButtonClick: () => void;
171
+ nextButtonType: string;
172
+ nextButtonText: string;
173
+ nextButtonClick: () => void;
174
+ backButtonType?: string | undefined;
175
+ backButtonText?: string | undefined;
176
+ }[];
177
+ };
178
+ textBlockOnboarding: {
179
+ cardIndex: number;
180
+ isActive: boolean;
181
+ config: {
182
+ classes: string;
183
+ position: string;
184
+ left?: string | undefined;
185
+ right?: string | undefined;
186
+ top?: string | undefined;
187
+ bottom?: string | undefined;
188
+ title: string;
189
+ description: string;
190
+ imageSource: string;
191
+ backButtonClick: () => void;
192
+ nextButtonType: string;
193
+ nextButtonText: string;
194
+ nextButtonClick: () => void;
195
+ backButtonType?: string | undefined;
196
+ backButtonText?: string | undefined;
197
+ }[];
198
+ };
199
+ versionHistoryOnboarding: {
200
+ cardIndex: number;
201
+ isActive: boolean;
202
+ config: {
203
+ classes: string;
204
+ position: string;
205
+ left?: string | undefined;
206
+ right?: string | undefined;
207
+ top?: string | undefined;
208
+ bottom?: string | undefined;
209
+ title: string;
210
+ description: string;
211
+ imageSource: string;
212
+ backButtonClick: () => void;
213
+ nextButtonType: string;
214
+ nextButtonText: string;
215
+ nextButtonClick: () => void;
216
+ backButtonType?: string | undefined;
217
+ backButtonText?: string | undefined;
218
+ }[];
219
+ };
220
+ ampOnboarding: {
221
+ cardIndex: number;
222
+ isActive: boolean;
223
+ config: {
224
+ classes: string;
225
+ position: string;
226
+ left?: string | undefined;
227
+ right?: string | undefined;
228
+ top?: string | undefined;
229
+ bottom?: string | undefined;
230
+ title: string;
231
+ description: string;
232
+ imageSource: string;
233
+ backButtonClick: () => void;
234
+ nextButtonType: string;
235
+ nextButtonText: string;
236
+ nextButtonClick: () => void;
237
+ backButtonType?: string | undefined;
238
+ backButtonText?: string | undefined;
239
+ }[];
240
+ };
241
+ };
242
+ userModalState: Record<string, Record<string, boolean>>;
243
+ isFetched: boolean;
244
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => boolean;
245
+ getCurrentCard: (state: {
246
+ onboardings: {
247
+ newVersionPopup: {
248
+ cardIndex: number;
249
+ isActive: boolean;
250
+ config: {
251
+ classes: string;
252
+ position: string;
253
+ left?: string | undefined;
254
+ right?: string | undefined;
255
+ top?: string | undefined;
256
+ bottom?: string | undefined;
257
+ title: string;
258
+ description: string;
259
+ imageSource: string;
260
+ backButtonClick: () => void;
261
+ nextButtonType: string;
262
+ nextButtonText: string;
263
+ nextButtonClick: () => void;
264
+ backButtonType?: string | undefined;
265
+ backButtonText?: string | undefined;
266
+ }[];
267
+ };
268
+ genericOnboarding: {
269
+ cardIndex: number;
270
+ isActive: boolean;
271
+ config: {
272
+ classes: string;
273
+ position: string;
274
+ left?: string | undefined;
275
+ right?: string | undefined;
276
+ top?: string | undefined;
277
+ bottom?: string | undefined;
278
+ title: string;
279
+ description: string;
280
+ imageSource: string;
281
+ backButtonClick: () => void;
282
+ nextButtonType: string;
283
+ nextButtonText: string;
284
+ nextButtonClick: () => void;
285
+ backButtonType?: string | undefined;
286
+ backButtonText?: string | undefined;
287
+ }[];
288
+ };
289
+ textBlockOnboarding: {
290
+ cardIndex: number;
291
+ isActive: boolean;
292
+ config: {
293
+ classes: string;
294
+ position: string;
295
+ left?: string | undefined;
296
+ right?: string | undefined;
297
+ top?: string | undefined;
298
+ bottom?: string | undefined;
299
+ title: string;
300
+ description: string;
301
+ imageSource: string;
302
+ backButtonClick: () => void;
303
+ nextButtonType: string;
304
+ nextButtonText: string;
305
+ nextButtonClick: () => void;
306
+ backButtonType?: string | undefined;
307
+ backButtonText?: string | undefined;
308
+ }[];
309
+ };
310
+ versionHistoryOnboarding: {
311
+ cardIndex: number;
312
+ isActive: boolean;
313
+ config: {
314
+ classes: string;
315
+ position: string;
316
+ left?: string | undefined;
317
+ right?: string | undefined;
318
+ top?: string | undefined;
319
+ bottom?: string | undefined;
320
+ title: string;
321
+ description: string;
322
+ imageSource: string;
323
+ backButtonClick: () => void;
324
+ nextButtonType: string;
325
+ nextButtonText: string;
326
+ nextButtonClick: () => void;
327
+ backButtonType?: string | undefined;
328
+ backButtonText?: string | undefined;
329
+ }[];
330
+ };
331
+ ampOnboarding: {
332
+ cardIndex: number;
333
+ isActive: boolean;
334
+ config: {
335
+ classes: string;
336
+ position: string;
337
+ left?: string | undefined;
338
+ right?: string | undefined;
339
+ top?: string | undefined;
340
+ bottom?: string | undefined;
341
+ title: string;
342
+ description: string;
343
+ imageSource: string;
344
+ backButtonClick: () => void;
345
+ nextButtonType: string;
346
+ nextButtonText: string;
347
+ nextButtonClick: () => void;
348
+ backButtonType?: string | undefined;
349
+ backButtonText?: string | undefined;
350
+ }[];
351
+ };
352
+ };
353
+ userModalState: Record<string, Record<string, boolean>>;
354
+ isFetched: boolean;
355
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => {
356
+ classes: string;
357
+ position: string;
358
+ left?: string | undefined;
359
+ right?: string | undefined;
360
+ top?: string | undefined;
361
+ bottom?: string | undefined;
362
+ title: string;
363
+ description: string;
364
+ imageSource: string;
365
+ backButtonClick: () => void;
366
+ nextButtonType: string;
367
+ nextButtonText: string;
368
+ nextButtonClick: () => void;
369
+ backButtonType?: string | undefined;
370
+ backButtonText?: string | undefined;
371
+ };
372
+ getGenericCurrentCard: (state: {
373
+ onboardings: {
374
+ newVersionPopup: {
375
+ cardIndex: number;
376
+ isActive: boolean;
377
+ config: {
378
+ classes: string;
379
+ position: string;
380
+ left?: string | undefined;
381
+ right?: string | undefined;
382
+ top?: string | undefined;
383
+ bottom?: string | undefined;
384
+ title: string;
385
+ description: string;
386
+ imageSource: string;
387
+ backButtonClick: () => void;
388
+ nextButtonType: string;
389
+ nextButtonText: string;
390
+ nextButtonClick: () => void;
391
+ backButtonType?: string | undefined;
392
+ backButtonText?: string | undefined;
393
+ }[];
394
+ };
395
+ genericOnboarding: {
396
+ cardIndex: number;
397
+ isActive: boolean;
398
+ config: {
399
+ classes: string;
400
+ position: string;
401
+ left?: string | undefined;
402
+ right?: string | undefined;
403
+ top?: string | undefined;
404
+ bottom?: string | undefined;
405
+ title: string;
406
+ description: string;
407
+ imageSource: string;
408
+ backButtonClick: () => void;
409
+ nextButtonType: string;
410
+ nextButtonText: string;
411
+ nextButtonClick: () => void;
412
+ backButtonType?: string | undefined;
413
+ backButtonText?: string | undefined;
414
+ }[];
415
+ };
416
+ textBlockOnboarding: {
417
+ cardIndex: number;
418
+ isActive: boolean;
419
+ config: {
420
+ classes: string;
421
+ position: string;
422
+ left?: string | undefined;
423
+ right?: string | undefined;
424
+ top?: string | undefined;
425
+ bottom?: string | undefined;
426
+ title: string;
427
+ description: string;
428
+ imageSource: string;
429
+ backButtonClick: () => void;
430
+ nextButtonType: string;
431
+ nextButtonText: string;
432
+ nextButtonClick: () => void;
433
+ backButtonType?: string | undefined;
434
+ backButtonText?: string | undefined;
435
+ }[];
436
+ };
437
+ versionHistoryOnboarding: {
438
+ cardIndex: number;
439
+ isActive: boolean;
440
+ config: {
441
+ classes: string;
442
+ position: string;
443
+ left?: string | undefined;
444
+ right?: string | undefined;
445
+ top?: string | undefined;
446
+ bottom?: string | undefined;
447
+ title: string;
448
+ description: string;
449
+ imageSource: string;
450
+ backButtonClick: () => void;
451
+ nextButtonType: string;
452
+ nextButtonText: string;
453
+ nextButtonClick: () => void;
454
+ backButtonType?: string | undefined;
455
+ backButtonText?: string | undefined;
456
+ }[];
457
+ };
458
+ ampOnboarding: {
459
+ cardIndex: number;
460
+ isActive: boolean;
461
+ config: {
462
+ classes: string;
463
+ position: string;
464
+ left?: string | undefined;
465
+ right?: string | undefined;
466
+ top?: string | undefined;
467
+ bottom?: string | undefined;
468
+ title: string;
469
+ description: string;
470
+ imageSource: string;
471
+ backButtonClick: () => void;
472
+ nextButtonType: string;
473
+ nextButtonText: string;
474
+ nextButtonClick: () => void;
475
+ backButtonType?: string | undefined;
476
+ backButtonText?: string | undefined;
477
+ }[];
478
+ };
479
+ };
480
+ userModalState: Record<string, Record<string, boolean>>;
481
+ isFetched: boolean;
482
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
483
+ classes: string;
484
+ position: string;
485
+ left?: string | undefined;
486
+ right?: string | undefined;
487
+ top?: string | undefined;
488
+ bottom?: string | undefined;
489
+ title: string;
490
+ description: string;
491
+ imageSource: string;
492
+ backButtonClick: () => void;
493
+ nextButtonType: string;
494
+ nextButtonText: string;
495
+ nextButtonClick: () => void;
496
+ backButtonType?: string | undefined;
497
+ backButtonText?: string | undefined;
498
+ };
499
+ getTextBlockCurrentCard: (state: {
500
+ onboardings: {
501
+ newVersionPopup: {
502
+ cardIndex: number;
503
+ isActive: boolean;
504
+ config: {
505
+ classes: string;
506
+ position: string;
507
+ left?: string | undefined;
508
+ right?: string | undefined;
509
+ top?: string | undefined;
510
+ bottom?: string | undefined;
511
+ title: string;
512
+ description: string;
513
+ imageSource: string;
514
+ backButtonClick: () => void;
515
+ nextButtonType: string;
516
+ nextButtonText: string;
517
+ nextButtonClick: () => void;
518
+ backButtonType?: string | undefined;
519
+ backButtonText?: string | undefined;
520
+ }[];
521
+ };
522
+ genericOnboarding: {
523
+ cardIndex: number;
524
+ isActive: boolean;
525
+ config: {
526
+ classes: string;
527
+ position: string;
528
+ left?: string | undefined;
529
+ right?: string | undefined;
530
+ top?: string | undefined;
531
+ bottom?: string | undefined;
532
+ title: string;
533
+ description: string;
534
+ imageSource: string;
535
+ backButtonClick: () => void;
536
+ nextButtonType: string;
537
+ nextButtonText: string;
538
+ nextButtonClick: () => void;
539
+ backButtonType?: string | undefined;
540
+ backButtonText?: string | undefined;
541
+ }[];
542
+ };
543
+ textBlockOnboarding: {
544
+ cardIndex: number;
545
+ isActive: boolean;
546
+ config: {
547
+ classes: string;
548
+ position: string;
549
+ left?: string | undefined;
550
+ right?: string | undefined;
551
+ top?: string | undefined;
552
+ bottom?: string | undefined;
553
+ title: string;
554
+ description: string;
555
+ imageSource: string;
556
+ backButtonClick: () => void;
557
+ nextButtonType: string;
558
+ nextButtonText: string;
559
+ nextButtonClick: () => void;
560
+ backButtonType?: string | undefined;
561
+ backButtonText?: string | undefined;
562
+ }[];
563
+ };
564
+ versionHistoryOnboarding: {
565
+ cardIndex: number;
566
+ isActive: boolean;
567
+ config: {
568
+ classes: string;
569
+ position: string;
570
+ left?: string | undefined;
571
+ right?: string | undefined;
572
+ top?: string | undefined;
573
+ bottom?: string | undefined;
574
+ title: string;
575
+ description: string;
576
+ imageSource: string;
577
+ backButtonClick: () => void;
578
+ nextButtonType: string;
579
+ nextButtonText: string;
580
+ nextButtonClick: () => void;
581
+ backButtonType?: string | undefined;
582
+ backButtonText?: string | undefined;
583
+ }[];
584
+ };
585
+ ampOnboarding: {
586
+ cardIndex: number;
587
+ isActive: boolean;
588
+ config: {
589
+ classes: string;
590
+ position: string;
591
+ left?: string | undefined;
592
+ right?: string | undefined;
593
+ top?: string | undefined;
594
+ bottom?: string | undefined;
595
+ title: string;
596
+ description: string;
597
+ imageSource: string;
598
+ backButtonClick: () => void;
599
+ nextButtonType: string;
600
+ nextButtonText: string;
601
+ nextButtonClick: () => void;
602
+ backButtonType?: string | undefined;
603
+ backButtonText?: string | undefined;
604
+ }[];
605
+ };
606
+ };
607
+ userModalState: Record<string, Record<string, boolean>>;
608
+ isFetched: boolean;
609
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
610
+ classes: string;
611
+ position: string;
612
+ left?: string | undefined;
613
+ right?: string | undefined;
614
+ top?: string | undefined;
615
+ bottom?: string | undefined;
616
+ title: string;
617
+ description: string;
618
+ imageSource: string;
619
+ backButtonClick: () => void;
620
+ nextButtonType: string;
621
+ nextButtonText: string;
622
+ nextButtonClick: () => void;
623
+ backButtonType?: string | undefined;
624
+ backButtonText?: string | undefined;
625
+ };
626
+ getVersionHistoryCurrentCard: (state: {
627
+ onboardings: {
628
+ newVersionPopup: {
629
+ cardIndex: number;
630
+ isActive: boolean;
631
+ config: {
632
+ classes: string;
633
+ position: string;
634
+ left?: string | undefined;
635
+ right?: string | undefined;
636
+ top?: string | undefined;
637
+ bottom?: string | undefined;
638
+ title: string;
639
+ description: string;
640
+ imageSource: string;
641
+ backButtonClick: () => void;
642
+ nextButtonType: string;
643
+ nextButtonText: string;
644
+ nextButtonClick: () => void;
645
+ backButtonType?: string | undefined;
646
+ backButtonText?: string | undefined;
647
+ }[];
648
+ };
649
+ genericOnboarding: {
650
+ cardIndex: number;
651
+ isActive: boolean;
652
+ config: {
653
+ classes: string;
654
+ position: string;
655
+ left?: string | undefined;
656
+ right?: string | undefined;
657
+ top?: string | undefined;
658
+ bottom?: string | undefined;
659
+ title: string;
660
+ description: string;
661
+ imageSource: string;
662
+ backButtonClick: () => void;
663
+ nextButtonType: string;
664
+ nextButtonText: string;
665
+ nextButtonClick: () => void;
666
+ backButtonType?: string | undefined;
667
+ backButtonText?: string | undefined;
668
+ }[];
669
+ };
670
+ textBlockOnboarding: {
671
+ cardIndex: number;
672
+ isActive: boolean;
673
+ config: {
674
+ classes: string;
675
+ position: string;
676
+ left?: string | undefined;
677
+ right?: string | undefined;
678
+ top?: string | undefined;
679
+ bottom?: string | undefined;
680
+ title: string;
681
+ description: string;
682
+ imageSource: string;
683
+ backButtonClick: () => void;
684
+ nextButtonType: string;
685
+ nextButtonText: string;
686
+ nextButtonClick: () => void;
687
+ backButtonType?: string | undefined;
688
+ backButtonText?: string | undefined;
689
+ }[];
690
+ };
691
+ versionHistoryOnboarding: {
692
+ cardIndex: number;
693
+ isActive: boolean;
694
+ config: {
695
+ classes: string;
696
+ position: string;
697
+ left?: string | undefined;
698
+ right?: string | undefined;
699
+ top?: string | undefined;
700
+ bottom?: string | undefined;
701
+ title: string;
702
+ description: string;
703
+ imageSource: string;
704
+ backButtonClick: () => void;
705
+ nextButtonType: string;
706
+ nextButtonText: string;
707
+ nextButtonClick: () => void;
708
+ backButtonType?: string | undefined;
709
+ backButtonText?: string | undefined;
710
+ }[];
711
+ };
712
+ ampOnboarding: {
713
+ cardIndex: number;
714
+ isActive: boolean;
715
+ config: {
716
+ classes: string;
717
+ position: string;
718
+ left?: string | undefined;
719
+ right?: string | undefined;
720
+ top?: string | undefined;
721
+ bottom?: string | undefined;
722
+ title: string;
723
+ description: string;
724
+ imageSource: string;
725
+ backButtonClick: () => void;
726
+ nextButtonType: string;
727
+ nextButtonText: string;
728
+ nextButtonClick: () => void;
729
+ backButtonType?: string | undefined;
730
+ backButtonText?: string | undefined;
731
+ }[];
732
+ };
733
+ };
734
+ userModalState: Record<string, Record<string, boolean>>;
735
+ isFetched: boolean;
736
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
737
+ classes: string;
738
+ position: string;
739
+ left?: string | undefined;
740
+ right?: string | undefined;
741
+ top?: string | undefined;
742
+ bottom?: string | undefined;
743
+ title: string;
744
+ description: string;
745
+ imageSource: string;
746
+ backButtonClick: () => void;
747
+ nextButtonType: string;
748
+ nextButtonText: string;
749
+ nextButtonClick: () => void;
750
+ backButtonType?: string | undefined;
751
+ backButtonText?: string | undefined;
752
+ };
753
+ getAmpCurrentCard: (state: {
754
+ onboardings: {
755
+ newVersionPopup: {
756
+ cardIndex: number;
757
+ isActive: boolean;
758
+ config: {
759
+ classes: string;
760
+ position: string;
761
+ left?: string | undefined;
762
+ right?: string | undefined;
763
+ top?: string | undefined;
764
+ bottom?: string | undefined;
765
+ title: string;
766
+ description: string;
767
+ imageSource: string;
768
+ backButtonClick: () => void;
769
+ nextButtonType: string;
770
+ nextButtonText: string;
771
+ nextButtonClick: () => void;
772
+ backButtonType?: string | undefined;
773
+ backButtonText?: string | undefined;
774
+ }[];
775
+ };
776
+ genericOnboarding: {
777
+ cardIndex: number;
778
+ isActive: boolean;
779
+ config: {
780
+ classes: string;
781
+ position: string;
782
+ left?: string | undefined;
783
+ right?: string | undefined;
784
+ top?: string | undefined;
785
+ bottom?: string | undefined;
786
+ title: string;
787
+ description: string;
788
+ imageSource: string;
789
+ backButtonClick: () => void;
790
+ nextButtonType: string;
791
+ nextButtonText: string;
792
+ nextButtonClick: () => void;
793
+ backButtonType?: string | undefined;
794
+ backButtonText?: string | undefined;
795
+ }[];
796
+ };
797
+ textBlockOnboarding: {
798
+ cardIndex: number;
799
+ isActive: boolean;
800
+ config: {
801
+ classes: string;
802
+ position: string;
803
+ left?: string | undefined;
804
+ right?: string | undefined;
805
+ top?: string | undefined;
806
+ bottom?: string | undefined;
807
+ title: string;
808
+ description: string;
809
+ imageSource: string;
810
+ backButtonClick: () => void;
811
+ nextButtonType: string;
812
+ nextButtonText: string;
813
+ nextButtonClick: () => void;
814
+ backButtonType?: string | undefined;
815
+ backButtonText?: string | undefined;
816
+ }[];
817
+ };
818
+ versionHistoryOnboarding: {
819
+ cardIndex: number;
820
+ isActive: boolean;
821
+ config: {
822
+ classes: string;
823
+ position: string;
824
+ left?: string | undefined;
825
+ right?: string | undefined;
826
+ top?: string | undefined;
827
+ bottom?: string | undefined;
828
+ title: string;
829
+ description: string;
830
+ imageSource: string;
831
+ backButtonClick: () => void;
832
+ nextButtonType: string;
833
+ nextButtonText: string;
834
+ nextButtonClick: () => void;
835
+ backButtonType?: string | undefined;
836
+ backButtonText?: string | undefined;
837
+ }[];
838
+ };
839
+ ampOnboarding: {
840
+ cardIndex: number;
841
+ isActive: boolean;
842
+ config: {
843
+ classes: string;
844
+ position: string;
845
+ left?: string | undefined;
846
+ right?: string | undefined;
847
+ top?: string | undefined;
848
+ bottom?: string | undefined;
849
+ title: string;
850
+ description: string;
851
+ imageSource: string;
852
+ backButtonClick: () => void;
853
+ nextButtonType: string;
854
+ nextButtonText: string;
855
+ nextButtonClick: () => void;
856
+ backButtonType?: string | undefined;
857
+ backButtonText?: string | undefined;
858
+ }[];
859
+ };
860
+ };
861
+ userModalState: Record<string, Record<string, boolean>>;
862
+ isFetched: boolean;
863
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => {
864
+ classes: string;
865
+ position: string;
866
+ left?: string | undefined;
867
+ right?: string | undefined;
868
+ top?: string | undefined;
869
+ bottom?: string | undefined;
870
+ title: string;
871
+ description: string;
872
+ imageSource: string;
873
+ backButtonClick: () => void;
874
+ nextButtonType: string;
875
+ nextButtonText: string;
876
+ nextButtonClick: () => void;
877
+ backButtonType?: string | undefined;
878
+ backButtonText?: string | undefined;
879
+ };
880
+ shouldShowOnboarding: (state: {
881
+ onboardings: {
882
+ newVersionPopup: {
883
+ cardIndex: number;
884
+ isActive: boolean;
885
+ config: {
886
+ classes: string;
887
+ position: string;
888
+ left?: string | undefined;
889
+ right?: string | undefined;
890
+ top?: string | undefined;
891
+ bottom?: string | undefined;
892
+ title: string;
893
+ description: string;
894
+ imageSource: string;
895
+ backButtonClick: () => void;
896
+ nextButtonType: string;
897
+ nextButtonText: string;
898
+ nextButtonClick: () => void;
899
+ backButtonType?: string | undefined;
900
+ backButtonText?: string | undefined;
901
+ }[];
902
+ };
903
+ genericOnboarding: {
904
+ cardIndex: number;
905
+ isActive: boolean;
906
+ config: {
907
+ classes: string;
908
+ position: string;
909
+ left?: string | undefined;
910
+ right?: string | undefined;
911
+ top?: string | undefined;
912
+ bottom?: string | undefined;
913
+ title: string;
914
+ description: string;
915
+ imageSource: string;
916
+ backButtonClick: () => void;
917
+ nextButtonType: string;
918
+ nextButtonText: string;
919
+ nextButtonClick: () => void;
920
+ backButtonType?: string | undefined;
921
+ backButtonText?: string | undefined;
922
+ }[];
923
+ };
924
+ textBlockOnboarding: {
925
+ cardIndex: number;
926
+ isActive: boolean;
927
+ config: {
928
+ classes: string;
929
+ position: string;
930
+ left?: string | undefined;
931
+ right?: string | undefined;
932
+ top?: string | undefined;
933
+ bottom?: string | undefined;
934
+ title: string;
935
+ description: string;
936
+ imageSource: string;
937
+ backButtonClick: () => void;
938
+ nextButtonType: string;
939
+ nextButtonText: string;
940
+ nextButtonClick: () => void;
941
+ backButtonType?: string | undefined;
942
+ backButtonText?: string | undefined;
943
+ }[];
944
+ };
945
+ versionHistoryOnboarding: {
946
+ cardIndex: number;
947
+ isActive: boolean;
948
+ config: {
949
+ classes: string;
950
+ position: string;
951
+ left?: string | undefined;
952
+ right?: string | undefined;
953
+ top?: string | undefined;
954
+ bottom?: string | undefined;
955
+ title: string;
956
+ description: string;
957
+ imageSource: string;
958
+ backButtonClick: () => void;
959
+ nextButtonType: string;
960
+ nextButtonText: string;
961
+ nextButtonClick: () => void;
962
+ backButtonType?: string | undefined;
963
+ backButtonText?: string | undefined;
964
+ }[];
965
+ };
966
+ ampOnboarding: {
967
+ cardIndex: number;
968
+ isActive: boolean;
969
+ config: {
970
+ classes: string;
971
+ position: string;
972
+ left?: string | undefined;
973
+ right?: string | undefined;
974
+ top?: string | undefined;
975
+ bottom?: string | undefined;
976
+ title: string;
977
+ description: string;
978
+ imageSource: string;
979
+ backButtonClick: () => void;
980
+ nextButtonType: string;
981
+ nextButtonText: string;
982
+ nextButtonClick: () => void;
983
+ backButtonType?: string | undefined;
984
+ backButtonText?: string | undefined;
985
+ }[];
986
+ };
987
+ };
988
+ userModalState: Record<string, Record<string, boolean>>;
989
+ isFetched: boolean;
990
+ } & import("pinia").PiniaCustomStateProperties<OnboardingStoreState>) => (type: OnboardingType) => boolean;
991
+ }, {
992
+ closeOtherOnboardings(exceptType: OnboardingType): void;
993
+ start(type: OnboardingType): void;
994
+ close(type: OnboardingType): Promise<void>;
995
+ next(type: OnboardingType): void;
996
+ previous(type: OnboardingType): void;
997
+ setConfig(type: OnboardingType, config: OnboardingCardConfig[]): void;
998
+ onDiscoverNowClicked(): Promise<void>;
999
+ onRemindMeLater(): void;
1000
+ onNewVersionPopupClose(): Promise<void>;
1001
+ isOnboardingActive(): boolean;
1002
+ fetchUserModalState(): Promise<void>;
1003
+ setUserModalState(modal: string, state: string, page: string): Promise<void>;
1004
+ }>;