@useinsider/guido 3.15.1-beta.6da4177 → 3.16.0-beta.20cd2fe

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 (93) hide show
  1. package/dist/@types/config/schemas.js +118 -100
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/Guido.vue2.js +78 -75
  4. package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
  5. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +21 -0
  6. package/dist/components/organisms/header/EditorActions.vue.js +11 -11
  7. package/dist/components/organisms/header/EditorActions.vue2.js +34 -50
  8. package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
  9. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +39 -0
  10. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  11. package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
  12. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  13. package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
  14. package/dist/components/organisms/header/RightSlot.vue.js +6 -6
  15. package/dist/components/organisms/header/RightSlot.vue2.js +17 -15
  16. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
  17. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
  18. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
  19. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
  20. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +18 -0
  21. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +74 -0
  22. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -34
  23. package/dist/composables/useAccessibilityApi.js +31 -0
  24. package/dist/composables/useActionsApi.js +30 -22
  25. package/dist/composables/useEmailTemplateApplier.js +25 -23
  26. package/dist/composables/useHtmlValidator.js +85 -83
  27. package/dist/composables/useTimerClone.js +21 -19
  28. package/dist/config/i18n/en/labels.json.js +28 -4
  29. package/dist/config/migrator/checkboxMigrator.js +20 -19
  30. package/dist/config/migrator/radioButtonMigrator.js +26 -25
  31. package/dist/extensions/Blocks/Checkbox/constants/controlIds.js +4 -0
  32. package/dist/extensions/Blocks/Checkbox/constants/selectors.js +6 -0
  33. package/dist/extensions/Blocks/Checkbox/controls/blockBackground/index.js +10 -0
  34. package/dist/extensions/Blocks/Checkbox/extension.js +6 -5
  35. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +15 -14
  36. package/dist/extensions/Blocks/Checkbox/template.js +10 -9
  37. package/dist/extensions/Blocks/Items/block.js +44 -42
  38. package/dist/extensions/Blocks/Items/template.js +86 -86
  39. package/dist/extensions/Blocks/RadioButton/constants/controlIds.js +4 -0
  40. package/dist/extensions/Blocks/RadioButton/constants/selectors.js +6 -0
  41. package/dist/extensions/Blocks/RadioButton/controls/blockBackground/index.js +10 -0
  42. package/dist/extensions/Blocks/RadioButton/extension.js +5 -4
  43. package/dist/extensions/Blocks/RadioButton/settingsPanel.js +12 -11
  44. package/dist/extensions/Blocks/RadioButton/template.js +16 -9
  45. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +5 -9
  46. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +98 -113
  47. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +21 -0
  48. package/dist/extensions/Blocks/controlFactories.js +117 -115
  49. package/dist/guido.css +1 -1
  50. package/dist/library.js +11 -7
  51. package/dist/node_modules/@vueuse/core/index.js +102 -0
  52. package/dist/node_modules/@vueuse/shared/index.js +40 -28
  53. package/dist/node_modules/valibot/dist/index.js +230 -216
  54. package/dist/public/trackingIds.js +8 -0
  55. package/dist/src/@types/config/schemas.d.ts +24 -0
  56. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
  57. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
  58. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
  59. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
  60. package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
  61. package/dist/src/composables/useActionsApi.d.ts +3 -3
  62. package/dist/src/composables/useConfig.d.ts +6 -0
  63. package/dist/src/extensions/Blocks/Checkbox/constants/controlIds.d.ts +7 -0
  64. package/dist/src/extensions/Blocks/Checkbox/constants/index.d.ts +10 -0
  65. package/dist/src/extensions/Blocks/Checkbox/constants/selectors.d.ts +16 -0
  66. package/dist/src/extensions/Blocks/Checkbox/controls/blockBackground/index.d.ts +14 -0
  67. package/dist/src/extensions/Blocks/RadioButton/constants/controlIds.d.ts +7 -0
  68. package/dist/src/extensions/Blocks/RadioButton/constants/index.d.ts +10 -0
  69. package/dist/src/extensions/Blocks/RadioButton/constants/selectors.d.ts +16 -0
  70. package/dist/src/extensions/Blocks/RadioButton/controls/blockBackground/index.d.ts +14 -0
  71. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +5 -0
  72. package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +7 -0
  73. package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +10 -0
  74. package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +16 -0
  75. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +14 -0
  76. package/dist/src/library.d.ts +1 -0
  77. package/dist/src/public/trackingIds.d.ts +9 -0
  78. package/dist/src/stores/config.d.ts +54 -0
  79. package/dist/src/stores/editor.d.ts +132 -0
  80. package/dist/src/stores/onboarding.d.ts +377 -0
  81. package/dist/src/stores/version-history.d.ts +1 -1
  82. package/dist/src/utils/linkTrackingIds.d.ts +30 -0
  83. package/dist/src/utils/timeUtil.d.ts +10 -0
  84. package/dist/stores/editor.js +9 -2
  85. package/dist/stores/onboarding.js +23 -14
  86. package/dist/utils/linkTrackingIds.js +56 -0
  87. package/dist/utils/pairProductVariables.js +105 -99
  88. package/dist/utils/templatePreparation.js +72 -61
  89. package/dist/utils/timeUtil.js +6 -17
  90. package/package.json +5 -1
  91. package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
  92. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
  93. /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ import { TRACK_ID_ATTRIBUTE as a, TRACK_SEQ_ATTRIBUTE as e, assignTrackingIds as o, readTrackFloor as A, readTrackSeq as I } from "../utils/linkTrackingIds.js";
2
+ export {
3
+ a as TRACK_ID_ATTRIBUTE,
4
+ e as TRACK_SEQ_ATTRIBUTE,
5
+ o as assignTrackingIds,
6
+ A as readTrackFloor,
7
+ I as readTrackSeq
8
+ };
@@ -262,6 +262,14 @@ export declare const TemplateSchema: v.ObjectSchema<{
262
262
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
263
263
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
264
264
  readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
265
+ /**
266
+ * Consumer-persisted tracking-id high-water mark (SD-141414). Used as the id floor
267
+ * during migration so a rolled-back document never re-mints retired tracking ids.
268
+ * Out-of-range numbers are coerced rather than rejected — this value arrives from
269
+ * stored partner data, and rejecting it would fail parseConfig and block the editor
270
+ * mount. Non-numbers still fail, like every other field in this schema.
271
+ */
272
+ readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
265
273
  /** Migration-only inputs (legacy block configs) */
266
274
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
267
275
  /**
@@ -383,8 +391,12 @@ export declare const FeaturesSchema: v.ObjectSchema<{
383
391
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
384
392
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
385
393
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
394
+ /** Enable the Stripo Accessibility Checker control in the editor toolbar. */
395
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
386
396
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
387
397
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
398
+ /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
399
+ readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
388
400
  }, undefined>;
389
401
  /**
390
402
  * Default block types available in Stripo
@@ -666,6 +678,14 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
666
678
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
667
679
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
668
680
  readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
681
+ /**
682
+ * Consumer-persisted tracking-id high-water mark (SD-141414). Used as the id floor
683
+ * during migration so a rolled-back document never re-mints retired tracking ids.
684
+ * Out-of-range numbers are coerced rather than rejected — this value arrives from
685
+ * stored partner data, and rejecting it would fail parseConfig and block the editor
686
+ * mount. Non-numbers still fail, like every other field in this schema.
687
+ */
688
+ readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
669
689
  /** Migration-only inputs (legacy block configs) */
670
690
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
671
691
  /**
@@ -772,8 +792,12 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
772
792
  readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
773
793
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
774
794
  readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
795
+ /** Enable the Stripo Accessibility Checker control in the editor toolbar. */
796
+ readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
775
797
  /** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
776
798
  readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
799
+ /** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
800
+ readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
777
801
  }, undefined>, {}>;
778
802
  /** Block configuration */
779
803
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import type { ColorVisionDeficiency } from '@@/Types/api/accessibility-api';
2
+ export declare const useAccessibilityApi: () => {
3
+ openAccessibilityTestingMode: () => void;
4
+ closeAccessibilityTestingMode: () => void;
5
+ toggleAccessibilityTestingMode: () => void;
6
+ isAccessibilityTestingModeOpen: () => boolean;
7
+ showImages: () => void;
8
+ hideImages: () => void;
9
+ toggleImages: () => void;
10
+ setColorVisionDeficiency: (type: ColorVisionDeficiency) => void;
11
+ getColorVisionDeficiency: () => ColorVisionDeficiency;
12
+ switchToDesktopPreview: () => void;
13
+ switchToMobilePreview: () => void;
14
+ toggleCodeEditor: () => void;
15
+ };
@@ -1,11 +1,11 @@
1
- import type { CompileEmailOptions } from '@@/Types/actions-api';
2
- import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
1
+ import type { CompileEmailOptions } from '@@/Types/api/actions-api';
2
+ import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/api/actions-api';
3
3
  export declare const useActionsApi: () => {
4
4
  getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
5
5
  getTemplateData: () => Promise<TemplateData>;
6
6
  activateCustomViewStyles: (isActive?: boolean) => void;
7
7
  getPreviewData: (options?: CompileEmailOptions) => Promise<CompiledEmailResult>;
8
8
  updateTimerInClonedTemplate: () => Promise<string | null>;
9
- updateHtmlAndCss: (html: string, css: string) => void;
9
+ updateHtmlAndCss: (html: string, css: string) => Promise<void>;
10
10
  editorSave: () => Promise<boolean>;
11
11
  };
@@ -40,6 +40,7 @@ export declare const useConfig: () => {
40
40
  customFieldAttributes: string[];
41
41
  selectedUnsubscribePages: number[];
42
42
  forceRecreate: boolean;
43
+ trackIdCounter: number;
43
44
  migration: {
44
45
  recommendationConfigs: {
45
46
  [x: string]: {
@@ -96,7 +97,9 @@ export declare const useConfig: () => {
96
97
  modulesDisabled: boolean;
97
98
  liquidSyntax: boolean;
98
99
  autosave: boolean;
100
+ accessibilityTesting: boolean;
99
101
  allowlistEnabled: boolean;
102
+ linkTrackingIds: boolean;
100
103
  };
101
104
  blocks: {
102
105
  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")[];
@@ -172,6 +175,7 @@ export declare const useConfig: () => {
172
175
  customFieldAttributes: string[];
173
176
  selectedUnsubscribePages: number[];
174
177
  forceRecreate: boolean;
178
+ trackIdCounter: number;
175
179
  migration: {
176
180
  recommendationConfigs: {
177
181
  [x: string]: {
@@ -228,7 +232,9 @@ export declare const useConfig: () => {
228
232
  modulesDisabled: boolean;
229
233
  liquidSyntax: boolean;
230
234
  autosave: boolean;
235
+ accessibilityTesting: boolean;
231
236
  allowlistEnabled: boolean;
237
+ linkTrackingIds: boolean;
232
238
  } | null>;
233
239
  blocks: import("vue").ComputedRef<{
234
240
  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,7 @@
1
+ /**
2
+ * Control IDs used in the Checkbox Extension
3
+ * These IDs are returned by the getId() method of each control
4
+ */
5
+ export declare enum CheckboxControlId {
6
+ BLOCK_BACKGROUND = "checkbox-block-background-color-control"
7
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Checkbox Extension Constants
3
+ *
4
+ * This module re-exports all constants for the Checkbox extension.
5
+ * Import from this file for cleaner imports.
6
+ * @example
7
+ * import { CheckboxControlId, BLOCK_ROOT_SELECTOR } from './constants';
8
+ */
9
+ export { CheckboxControlId } from './controlIds';
10
+ export { BLOCK_ROOT_SELECTOR, CSS_CLASS_CHECKBOX_BLOCK, CSS_CLASS_CHECKBOX_BLOCK_V2, } from './selectors';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * CSS selectors and class names used across the Checkbox extension
3
+ */
4
+ /**
5
+ * Stable contract class present on BOTH legacy and v2 markup — the backend submit
6
+ * script selects by it. Renaming it silently breaks form submission.
7
+ */
8
+ export declare const CSS_CLASS_CHECKBOX_BLOCK = "checkbox-block";
9
+ /** Current block class — what the template emits and the migrator upgrades legacy blocks to. */
10
+ export declare const CSS_CLASS_CHECKBOX_BLOCK_V2 = "checkbox-block-v2";
11
+ /**
12
+ * Block root selector — the block `<td>` itself.
13
+ * Used across block-level controls so edits apply to the whole block, not the title cell.
14
+ * Derived from the class so a rename cannot half-land.
15
+ */
16
+ export declare const BLOCK_ROOT_SELECTOR = ".checkbox-block-v2";
@@ -0,0 +1,14 @@
1
+ export declare const CheckboxBlockBackgroundControl: {
2
+ new (): {
3
+ getId(): string;
4
+ getLabels(): {
5
+ title: string;
6
+ };
7
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
8
+ 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;
9
+ getParentControlId(): string;
10
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
11
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
12
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
13
+ };
14
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Control IDs used in the RadioButton Extension
3
+ * These IDs are returned by the getId() method of each control
4
+ */
5
+ export declare enum RadioButtonControlId {
6
+ BLOCK_BACKGROUND = "radio-button-block-background-color-control"
7
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * RadioButton Extension Constants
3
+ *
4
+ * This module re-exports all constants for the RadioButton extension.
5
+ * Import from this file for cleaner imports.
6
+ * @example
7
+ * import { RadioButtonControlId, BLOCK_ROOT_SELECTOR } from './constants';
8
+ */
9
+ export { RadioButtonControlId } from './controlIds';
10
+ export { BLOCK_ROOT_SELECTOR, CSS_CLASS_RADIO_BUTTON_BLOCK, CSS_CLASS_RADIO_BUTTON_BLOCK_V2, } from './selectors';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * CSS selectors and class names used across the RadioButton extension
3
+ */
4
+ /**
5
+ * Stable contract class present on BOTH legacy and v2 markup — the backend submit
6
+ * script selects by it. Renaming it silently breaks form submission.
7
+ */
8
+ export declare const CSS_CLASS_RADIO_BUTTON_BLOCK = "radio-button-block";
9
+ /** Current block class — what the template emits and the migrator upgrades legacy blocks to. */
10
+ export declare const CSS_CLASS_RADIO_BUTTON_BLOCK_V2 = "radio-button-v2";
11
+ /**
12
+ * Block root selector — the block `<td>` itself.
13
+ * Used across block-level controls so edits apply to the whole block, not the title cell.
14
+ * Derived from the class so a rename cannot half-land.
15
+ */
16
+ export declare const BLOCK_ROOT_SELECTOR = ".radio-button-v2";
@@ -0,0 +1,14 @@
1
+ export declare const RadioButtonBlockBackgroundControl: {
2
+ new (): {
3
+ getId(): string;
4
+ getLabels(): {
5
+ title: string;
6
+ };
7
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
8
+ 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;
9
+ getParentControlId(): string;
10
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
11
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
12
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
13
+ };
14
+ };
@@ -30,6 +30,11 @@ export declare class SpacingControl extends CommonControl {
30
30
  onRender(): void;
31
31
  onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
32
32
  onDestroy(): void;
33
+ /**
34
+ * One label + counter per two-column row, so every spacing field gets the same
35
+ * 16px-padded row the color controls already render instead of sharing one grid.
36
+ */
37
+ _spacingRow(label: string, labelName: string, counterName: string): string;
33
38
  /**
34
39
  * Updates spacing control visibility based on layout orientation and mobileLayoutEnabled.
35
40
  * - List layout: hide column spacing (products are full-width), hide ALL mobile
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Control IDs used in the Extension
3
+ * These IDs are returned by the getId() method of each control
4
+ */
5
+ export declare enum BlockControlId {
6
+ BLOCK_BACKGROUND = "{{your-block}}-background-color-control"
7
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Extension Constants
3
+ *
4
+ * This module re-exports all constants for the extension.
5
+ * Import from this file for cleaner imports.
6
+ * @example
7
+ * import { BlockControlId, BLOCK_ROOT_SELECTOR } from './constants';
8
+ */
9
+ export { BlockControlId } from './controlIds';
10
+ export { BLOCK_ROOT_SELECTOR, CSS_CLASS_BLOCK, CSS_CLASS_BLOCK_V2, } from './selectors';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * CSS selectors and class names used across the extension
3
+ *
4
+ * Declare them ONCE here and import everywhere (template, migrator, save validator,
5
+ * controls). The same literal re-typed across those files is how a rename half-lands.
6
+ */
7
+ /** Stable contract class, if the backend selects this block by name. Renaming breaks it. */
8
+ export declare const CSS_CLASS_BLOCK = "{{your-block}}";
9
+ /** Current block class — what the template emits and the migrator upgrades legacy blocks to. */
10
+ export declare const CSS_CLASS_BLOCK_V2 = "{{your-block}}-v2";
11
+ /**
12
+ * Block root selector — the block `<td>` itself.
13
+ * Used across block-level controls so edits apply to the whole block, not the title cell.
14
+ * Derived from the class so a rename cannot half-land.
15
+ */
16
+ export declare const BLOCK_ROOT_SELECTOR = ".{{your-block}}-v2";
@@ -0,0 +1,14 @@
1
+ export declare const BlockBackgroundControl: {
2
+ new (): {
3
+ getId(): string;
4
+ getLabels(): {
5
+ title: string;
6
+ };
7
+ getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
8
+ 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;
9
+ getParentControlId(): string;
10
+ api: import("@stripoinc/ui-editor-extensions").ControlApi;
11
+ getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
12
+ isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
13
+ };
14
+ };
@@ -1,5 +1,6 @@
1
1
  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
+ export { assignTrackingIds, readTrackFloor, readTrackSeq } from './public/trackingIds';
4
5
  export type { StripoEventType } from './@types/events';
5
6
  export type { PositionData, DynamicContentEvent, MergeTagClickEvent, MergeTag, BaseDynamicContent, DynamicContentNode, DynamicContentList, TooltipOptions, TextValueObject, L10n, } from './@types/generic';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Published as `@useinsider/guido/tracking-ids` — persistent link ids for the click heatmap.
3
+ *
4
+ * Importing from here pulls in nothing else, so the editor never enters a
5
+ * consumer's module graph. Re-export surface only: this is the contract,
6
+ * `utils/linkTrackingIds` is the implementation and stays free to move.
7
+ */
8
+ export { assignTrackingIds, readTrackFloor, readTrackSeq, TRACK_ID_ATTRIBUTE, TRACK_SEQ_ATTRIBUTE, } from '@@/Utils/linkTrackingIds';
9
+ export type { TrackingIdResult } from '@@/Utils/linkTrackingIds';