@useinsider/guido 2.0.0-beta.c13893e → 2.0.0-beta.c588e27

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.
@@ -1,8 +1,8 @@
1
1
  import { useHttp as m } from "../composables/useHttp.js";
2
- import { useToaster as u } from "../composables/useToaster.js";
3
- import { MAX_DEFAULT_TEMPLATE_ID as i } from "../enums/defaults.js";
2
+ import { useToaster as i } from "../composables/useToaster.js";
3
+ import { MAX_DEFAULT_TEMPLATE_ID as p } from "../enums/defaults.js";
4
4
  const y = () => {
5
- const { get: r } = m(), { handleError: o } = u();
5
+ const { get: r } = m(), { handleError: o } = i();
6
6
  return {
7
7
  getToken: async () => {
8
8
  try {
@@ -26,17 +26,13 @@ const y = () => {
26
26
  getDefaultTemplate: async () => {
27
27
  const t = {
28
28
  html: "",
29
- css: "",
30
- forceRecreate: !0
29
+ css: ""
31
30
  };
32
31
  try {
33
- const c = new URLSearchParams(window.location.search).get("default-template"), s = c ? parseInt(c) : 0, l = s >= 1 && s <= i ? s : 0, { data: n } = await r(
32
+ const c = new URLSearchParams(window.location.search).get("default-template"), s = c ? parseInt(c) : 0, l = s >= 1 && s <= p ? s : 0, { data: n } = await r(
34
33
  `/stripo/default-template/${l}`
35
34
  ), a = typeof n == "string" ? JSON.parse(n) : n;
36
- return !a || typeof a != "object" || !("html" in a) || !("css" in a) ? t : {
37
- ...a,
38
- forceRecreate: !0
39
- };
35
+ return !a || typeof a != "object" || !("html" in a) || !("css" in a) ? t : a;
40
36
  } catch (e) {
41
37
  return o(e, "Failed to fetch default template"), t;
42
38
  }
@@ -90,6 +90,8 @@ export declare const TemplateSchema: v.ObjectSchema<{
90
90
  }, undefined>, undefined>, readonly []>;
91
91
  /** Selected unsubscribe page IDs */
92
92
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
93
+ /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
94
+ readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
93
95
  }, undefined>;
94
96
  /**
95
97
  * Email header configuration (sender name and subject)
@@ -146,6 +148,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
146
148
  readonly displayConditions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
147
149
  /** Enable unsubscribe block */
148
150
  readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
151
+ /** Disable modules panel in the editor */
152
+ readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
149
153
  }, undefined>;
150
154
  /**
151
155
  * Default block types available in Stripo
@@ -398,6 +402,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
398
402
  }, undefined>, undefined>, readonly []>;
399
403
  /** Selected unsubscribe page IDs */
400
404
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
405
+ /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
406
+ readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
401
407
  }, undefined>, {}>;
402
408
  /** Editor settings */
403
409
  readonly editor: v.OptionalSchema<v.ObjectSchema<{
@@ -439,6 +445,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
439
445
  readonly displayConditions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
440
446
  /** Enable unsubscribe block */
441
447
  readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
448
+ /** Disable modules panel in the editor */
449
+ readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
442
450
  }, undefined>, {}>;
443
451
  /** Block configuration */
444
452
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -31,6 +31,7 @@ export declare const useConfig: () => {
31
31
  } | undefined;
32
32
  }[];
33
33
  selectedUnsubscribePages: number[];
34
+ forceRecreate: boolean;
34
35
  };
35
36
  editor: {
36
37
  locale: string;
@@ -52,6 +53,7 @@ export declare const useConfig: () => {
52
53
  testMessage: boolean;
53
54
  displayConditions: boolean;
54
55
  unsubscribe: boolean;
56
+ modulesDisabled: boolean;
55
57
  };
56
58
  blocks: {
57
59
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -115,6 +117,7 @@ export declare const useConfig: () => {
115
117
  } | undefined;
116
118
  }[];
117
119
  selectedUnsubscribePages: number[];
120
+ forceRecreate: boolean;
118
121
  } | null>;
119
122
  editor: import("vue").ComputedRef<{
120
123
  locale: string;
@@ -136,6 +139,7 @@ export declare const useConfig: () => {
136
139
  testMessage: boolean;
137
140
  displayConditions: boolean;
138
141
  unsubscribe: boolean;
142
+ modulesDisabled: boolean;
139
143
  } | null>;
140
144
  blocks: import("vue").ComputedRef<{
141
145
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Control IDs used in the CouponBlock Extension
3
+ * These IDs are returned by the getId() method of each control
4
+ */
5
+ export declare enum CouponControlId {
6
+ TEXT_ALIGN = "coupon-block-text-align-control",
7
+ TEXT_COLOR = "coupon-block-text-color-control",
8
+ TEXT_SIZE = "coupon-block-text-size-control",
9
+ TEXT_STYLE = "coupon-block-text-style-control",
10
+ TEXT_FONT_FAMILY = "coupon-block-text-font-family-control",
11
+ TEXT_BACKGROUND = "coupon-block-text-background-control",
12
+ TEXT_PADDINGS = "coupon-block-text-paddings-control",
13
+ TEXT_LINE_SPACING = "coupon-block-text-line-spacing-control"
14
+ }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * CouponBlock Control Instances
3
+ *
4
+ * This file generates all control instances for the CouponBlock
5
+ * using the reusable factory functions from controlFactories.ts
6
+ *
7
+ * Note: Factory-generated controls use runtime class generation which TypeScript
8
+ * cannot fully type-check. The controls are type-safe at runtime.
9
+ *
10
+ * These controls apply directly to the selected root element (no targetBlockId/containerSelector)
11
+ * to ensure styles are applied correctly regardless of nested element structure.
12
+ */
13
+ export declare const TextAlignControl: {
14
+ new (): {
15
+ getId(): string;
16
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
17
+ getParentControlId(): string;
18
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
19
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
20
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
21
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
22
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
23
+ };
24
+ };
25
+ export declare const TextColorControl: {
26
+ new (): {
27
+ getId(): string;
28
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
29
+ getParentControlId(): string;
30
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
31
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
32
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
33
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
34
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
35
+ };
36
+ };
37
+ export declare const TextSizeControl: {
38
+ new (): {
39
+ getId(): string;
40
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
41
+ getParentControlId(): string;
42
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
43
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
44
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
45
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
46
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
47
+ };
48
+ };
49
+ export declare const TextStyleControl: {
50
+ new (): {
51
+ getId(): string;
52
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
53
+ getParentControlId(): string;
54
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
55
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
56
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
57
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
58
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
59
+ };
60
+ };
61
+ export declare const TextFontFamilyControl: {
62
+ new (): {
63
+ getId(): string;
64
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
65
+ getParentControlId(): string;
66
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
67
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
68
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
69
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
70
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
71
+ };
72
+ };
73
+ export declare const TextBackgroundControl: {
74
+ new (): {
75
+ getId(): string;
76
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
77
+ getParentControlId(): string;
78
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
79
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
80
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
81
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
82
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
83
+ };
84
+ };
85
+ export declare const TextPaddingsControl: {
86
+ new (): {
87
+ getId(): string;
88
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
89
+ getParentControlId(): string;
90
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
91
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
92
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
93
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
94
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
95
+ };
96
+ };
97
+ export declare const TextLineSpacingControl: {
98
+ new (): {
99
+ getId(): string;
100
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
101
+ getParentControlId(): string;
102
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
103
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
104
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
105
+ getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
106
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
107
+ };
108
+ };
@@ -1,3 +1,3 @@
1
- declare const migrationTemplate = "\n <td \n class=\"coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block\" \n esd-extension-block-id=\"coupon-block\"\n >\n <p class=\"ins-title\" contenteditable=\"false\">{@COUPON_CODE}</p>\n </td>\n";
1
+ declare const migrationTemplate = "\n <td\n class=\"coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block\"\n esd-extension-block-id=\"coupon-block\"\n >\n <p class=\"ins-title\" contenteditable=\"false\">{@COUPON_CODE}</p>\n </td>\n";
2
2
  export declare function getDefaultTemplate(): string;
3
3
  export default migrationTemplate;
@@ -75,7 +75,7 @@ export declare abstract class CommonControl extends Control {
75
75
  * @returns true if block instance changed, false otherwise
76
76
  */
77
77
  protected handleBlockInstanceChange(syncFunction: (node: ImmutableHtmlNode) => void, updateUI: () => void, blockInstanceIdAttribute?: string): boolean;
78
- _GuLabel({ text, name, position }: LabelProps): string;
78
+ _GuLabel({ text, name }: LabelProps): string;
79
79
  _GuToggle(name: string): string;
80
80
  _GuSelectItem({ text, value }: {
81
81
  text: string;
@@ -12,8 +12,9 @@
12
12
  import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
13
13
  /**
14
14
  * Factory function to create text align controls for different block elements
15
+ * When targetBlockId and containerSelector are not provided, applies directly to root
15
16
  */
16
- export declare function createTextAlignControl(controlId: string, targetBlockId: string, containerSelector: string): {
17
+ export declare function createTextAlignControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
17
18
  new (): {
18
19
  getId(): string;
19
20
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -27,8 +28,9 @@ export declare function createTextAlignControl(controlId: string, targetBlockId:
27
28
  };
28
29
  /**
29
30
  * Factory function to create text color controls for different block elements
31
+ * When targetBlockId and containerSelector are not provided, applies directly to root
30
32
  */
31
- export declare function createTextColorControl(controlId: string, targetBlockId: string, containerSelector?: string): {
33
+ export declare function createTextColorControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
32
34
  new (): {
33
35
  getId(): string;
34
36
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -42,8 +44,9 @@ export declare function createTextColorControl(controlId: string, targetBlockId:
42
44
  };
43
45
  /**
44
46
  * Factory function to create text size controls for different block elements
47
+ * When targetBlockId and containerSelector are not provided, applies directly to root
45
48
  */
46
- export declare function createTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): {
49
+ export declare function createTextSizeControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
47
50
  new (): {
48
51
  getId(): string;
49
52
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -57,8 +60,9 @@ export declare function createTextSizeControl(controlId: string, targetBlockId:
57
60
  };
58
61
  /**
59
62
  * Factory function to create text style controls for different block elements
63
+ * When targetBlockId and containerSelector are not provided, applies directly to root
60
64
  */
61
- export declare function createTextStyleControl(controlId: string, targetBlockId: string, containerSelector?: string): {
65
+ export declare function createTextStyleControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
62
66
  new (): {
63
67
  getId(): string;
64
68
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -72,8 +76,9 @@ export declare function createTextStyleControl(controlId: string, targetBlockId:
72
76
  };
73
77
  /**
74
78
  * Factory function to create text font family controls for different block elements
79
+ * When targetBlockId and containerSelector are not provided, applies directly to root
75
80
  */
76
- export declare function createTextFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): {
81
+ export declare function createTextFontFamilyControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
77
82
  new (): {
78
83
  getId(): string;
79
84
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -87,8 +92,9 @@ export declare function createTextFontFamilyControl(controlId: string, targetBlo
87
92
  };
88
93
  /**
89
94
  * Factory function to create text background color controls for different block elements
95
+ * When targetBlockId and containerSelector are not provided, applies directly to root
90
96
  */
91
- export declare function createTextBackgroundColorControl(controlId: string, targetBlockId: string, containerSelector?: string): {
97
+ export declare function createTextBackgroundColorControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
92
98
  new (): {
93
99
  getId(): string;
94
100
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -102,8 +108,25 @@ export declare function createTextBackgroundColorControl(controlId: string, targ
102
108
  };
103
109
  /**
104
110
  * Factory function to create paddings controls for different block elements
111
+ * When targetBlockId and containerSelector are not provided, applies directly to root
105
112
  */
106
- export declare function createPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): {
113
+ export declare function createPaddingsControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
114
+ new (): {
115
+ getId(): string;
116
+ getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
117
+ getParentControlId(): string;
118
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
119
+ getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
120
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
121
+ getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
122
+ isVisible(_node: ImmutableHtmlNode): boolean;
123
+ };
124
+ };
125
+ /**
126
+ * Factory function to create text line spacing controls for different block elements
127
+ * When targetBlockId and containerSelector are not provided, applies directly to root
128
+ */
129
+ export declare function createTextLineSpacingControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
107
130
  new (): {
108
131
  getId(): string;
109
132
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -36,6 +36,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
36
36
  } | undefined;
37
37
  }[];
38
38
  selectedUnsubscribePages: number[];
39
+ forceRecreate: boolean;
39
40
  };
40
41
  editor: {
41
42
  locale: string;
@@ -57,6 +58,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
57
58
  testMessage: boolean;
58
59
  displayConditions: boolean;
59
60
  unsubscribe: boolean;
61
+ modulesDisabled: boolean;
60
62
  };
61
63
  blocks: {
62
64
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -126,6 +128,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
126
128
  } | undefined;
127
129
  }[];
128
130
  selectedUnsubscribePages: number[];
131
+ forceRecreate: boolean;
129
132
  };
130
133
  editor: {
131
134
  locale: string;
@@ -147,6 +150,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
147
150
  testMessage: boolean;
148
151
  displayConditions: boolean;
149
152
  unsubscribe: boolean;
153
+ modulesDisabled: boolean;
150
154
  };
151
155
  blocks: {
152
156
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -216,6 +220,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
216
220
  } | undefined;
217
221
  }[];
218
222
  selectedUnsubscribePages: number[];
223
+ forceRecreate: boolean;
219
224
  };
220
225
  editor: {
221
226
  locale: string;
@@ -237,6 +242,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
237
242
  testMessage: boolean;
238
243
  displayConditions: boolean;
239
244
  unsubscribe: boolean;
245
+ modulesDisabled: boolean;
240
246
  };
241
247
  blocks: {
242
248
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -306,6 +312,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
306
312
  } | undefined;
307
313
  }[];
308
314
  selectedUnsubscribePages: number[];
315
+ forceRecreate: boolean;
309
316
  };
310
317
  editor: {
311
318
  locale: string;
@@ -327,6 +334,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
327
334
  testMessage: boolean;
328
335
  displayConditions: boolean;
329
336
  unsubscribe: boolean;
337
+ modulesDisabled: boolean;
330
338
  };
331
339
  blocks: {
332
340
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -396,6 +404,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
396
404
  } | undefined;
397
405
  }[];
398
406
  selectedUnsubscribePages: number[];
407
+ forceRecreate: boolean;
399
408
  };
400
409
  editor: {
401
410
  locale: string;
@@ -417,6 +426,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
417
426
  testMessage: boolean;
418
427
  displayConditions: boolean;
419
428
  unsubscribe: boolean;
429
+ modulesDisabled: boolean;
420
430
  };
421
431
  blocks: {
422
432
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -486,6 +496,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
486
496
  } | undefined;
487
497
  }[];
488
498
  selectedUnsubscribePages: number[];
499
+ forceRecreate: boolean;
489
500
  };
490
501
  editor: {
491
502
  locale: string;
@@ -507,6 +518,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
507
518
  testMessage: boolean;
508
519
  displayConditions: boolean;
509
520
  unsubscribe: boolean;
521
+ modulesDisabled: boolean;
510
522
  };
511
523
  blocks: {
512
524
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -576,6 +588,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
576
588
  } | undefined;
577
589
  }[];
578
590
  selectedUnsubscribePages: number[];
591
+ forceRecreate: boolean;
579
592
  };
580
593
  editor: {
581
594
  locale: string;
@@ -597,6 +610,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
597
610
  testMessage: boolean;
598
611
  displayConditions: boolean;
599
612
  unsubscribe: boolean;
613
+ modulesDisabled: boolean;
600
614
  };
601
615
  blocks: {
602
616
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -666,6 +680,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
666
680
  } | undefined;
667
681
  }[];
668
682
  selectedUnsubscribePages: number[];
683
+ forceRecreate: boolean;
669
684
  };
670
685
  editor: {
671
686
  locale: string;
@@ -687,6 +702,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
687
702
  testMessage: boolean;
688
703
  displayConditions: boolean;
689
704
  unsubscribe: boolean;
705
+ modulesDisabled: boolean;
690
706
  };
691
707
  blocks: {
692
708
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -756,6 +772,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
756
772
  } | undefined;
757
773
  }[];
758
774
  selectedUnsubscribePages: number[];
775
+ forceRecreate: boolean;
759
776
  };
760
777
  editor: {
761
778
  locale: string;
@@ -777,6 +794,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
777
794
  testMessage: boolean;
778
795
  displayConditions: boolean;
779
796
  unsubscribe: boolean;
797
+ modulesDisabled: boolean;
780
798
  };
781
799
  blocks: {
782
800
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -846,6 +864,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
846
864
  } | undefined;
847
865
  }[];
848
866
  selectedUnsubscribePages: number[];
867
+ forceRecreate: boolean;
849
868
  };
850
869
  editor: {
851
870
  locale: string;
@@ -867,6 +886,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
867
886
  testMessage: boolean;
868
887
  displayConditions: boolean;
869
888
  unsubscribe: boolean;
889
+ modulesDisabled: boolean;
870
890
  };
871
891
  blocks: {
872
892
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -936,6 +956,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
936
956
  } | undefined;
937
957
  }[];
938
958
  selectedUnsubscribePages: number[];
959
+ forceRecreate: boolean;
939
960
  };
940
961
  editor: {
941
962
  locale: string;
@@ -957,6 +978,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
957
978
  testMessage: boolean;
958
979
  displayConditions: boolean;
959
980
  unsubscribe: boolean;
981
+ modulesDisabled: boolean;
960
982
  };
961
983
  blocks: {
962
984
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1026,6 +1048,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1026
1048
  } | undefined;
1027
1049
  }[];
1028
1050
  selectedUnsubscribePages: number[];
1051
+ forceRecreate: boolean;
1029
1052
  };
1030
1053
  editor: {
1031
1054
  locale: string;
@@ -1047,6 +1070,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1047
1070
  testMessage: boolean;
1048
1071
  displayConditions: boolean;
1049
1072
  unsubscribe: boolean;
1073
+ modulesDisabled: boolean;
1050
1074
  };
1051
1075
  blocks: {
1052
1076
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1116,6 +1140,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1116
1140
  } | undefined;
1117
1141
  }[];
1118
1142
  selectedUnsubscribePages: number[];
1143
+ forceRecreate: boolean;
1119
1144
  };
1120
1145
  editor: {
1121
1146
  locale: string;
@@ -1137,6 +1162,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1137
1162
  testMessage: boolean;
1138
1163
  displayConditions: boolean;
1139
1164
  unsubscribe: boolean;
1165
+ modulesDisabled: boolean;
1140
1166
  };
1141
1167
  blocks: {
1142
1168
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1206,6 +1232,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1206
1232
  } | undefined;
1207
1233
  }[];
1208
1234
  selectedUnsubscribePages: number[];
1235
+ forceRecreate: boolean;
1209
1236
  };
1210
1237
  editor: {
1211
1238
  locale: string;
@@ -1227,6 +1254,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1227
1254
  testMessage: boolean;
1228
1255
  displayConditions: boolean;
1229
1256
  unsubscribe: boolean;
1257
+ modulesDisabled: boolean;
1230
1258
  };
1231
1259
  blocks: {
1232
1260
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1296,6 +1324,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1296
1324
  } | undefined;
1297
1325
  }[];
1298
1326
  selectedUnsubscribePages: number[];
1327
+ forceRecreate: boolean;
1299
1328
  };
1300
1329
  editor: {
1301
1330
  locale: string;
@@ -1317,6 +1346,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1317
1346
  testMessage: boolean;
1318
1347
  displayConditions: boolean;
1319
1348
  unsubscribe: boolean;
1349
+ modulesDisabled: boolean;
1320
1350
  };
1321
1351
  blocks: {
1322
1352
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1386,6 +1416,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1386
1416
  } | undefined;
1387
1417
  }[];
1388
1418
  selectedUnsubscribePages: number[];
1419
+ forceRecreate: boolean;
1389
1420
  };
1390
1421
  editor: {
1391
1422
  locale: string;
@@ -1407,6 +1438,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1407
1438
  testMessage: boolean;
1408
1439
  displayConditions: boolean;
1409
1440
  unsubscribe: boolean;
1441
+ modulesDisabled: boolean;
1410
1442
  };
1411
1443
  blocks: {
1412
1444
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1476,6 +1508,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1476
1508
  } | undefined;
1477
1509
  }[];
1478
1510
  selectedUnsubscribePages: number[];
1511
+ forceRecreate: boolean;
1479
1512
  };
1480
1513
  editor: {
1481
1514
  locale: string;
@@ -1497,6 +1530,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1497
1530
  testMessage: boolean;
1498
1531
  displayConditions: boolean;
1499
1532
  unsubscribe: boolean;
1533
+ modulesDisabled: boolean;
1500
1534
  };
1501
1535
  blocks: {
1502
1536
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -32,16 +32,6 @@ ue-stripe-thumb:hover:not(.disabled),
32
32
  padding: 0 16px 16px;
33
33
  grid-row-gap: 16px;
34
34
  }
35
-
36
- /* TODO: will be removed after we find another way to hide stripo custom modules */
37
- #moduleTab_tab1,
38
- button[aria-label="Default Modules"],
39
- button[aria-controls="moduleTab_tab1_content"],
40
- #moduleTab_tab2,
41
- button[aria-label="Pre-Built AMP"],
42
- button[aria-controls="moduleTab_tab2_content"] {
43
- display: none !important;
44
- }
45
35
  `;
46
36
  export {
47
37
  o as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "2.0.0-beta.c13893e",
3
+ "version": "2.0.0-beta.c588e27",
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",