@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.
- package/dist/@types/config/schemas.js +118 -100
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +78 -75
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +21 -0
- package/dist/components/organisms/header/EditorActions.vue.js +11 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +34 -50
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +39 -0
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +6 -6
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -15
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +18 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +74 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -34
- package/dist/composables/useAccessibilityApi.js +31 -0
- package/dist/composables/useActionsApi.js +30 -22
- package/dist/composables/useEmailTemplateApplier.js +25 -23
- package/dist/composables/useHtmlValidator.js +85 -83
- package/dist/composables/useTimerClone.js +21 -19
- package/dist/config/i18n/en/labels.json.js +28 -4
- package/dist/config/migrator/checkboxMigrator.js +20 -19
- package/dist/config/migrator/radioButtonMigrator.js +26 -25
- package/dist/extensions/Blocks/Checkbox/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/Checkbox/constants/selectors.js +6 -0
- package/dist/extensions/Blocks/Checkbox/controls/blockBackground/index.js +10 -0
- package/dist/extensions/Blocks/Checkbox/extension.js +6 -5
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +15 -14
- package/dist/extensions/Blocks/Checkbox/template.js +10 -9
- package/dist/extensions/Blocks/Items/block.js +44 -42
- package/dist/extensions/Blocks/Items/template.js +86 -86
- package/dist/extensions/Blocks/RadioButton/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/RadioButton/constants/selectors.js +6 -0
- package/dist/extensions/Blocks/RadioButton/controls/blockBackground/index.js +10 -0
- package/dist/extensions/Blocks/RadioButton/extension.js +5 -4
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +12 -11
- package/dist/extensions/Blocks/RadioButton/template.js +16 -9
- package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +5 -9
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +98 -113
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +21 -0
- package/dist/extensions/Blocks/controlFactories.js +117 -115
- package/dist/guido.css +1 -1
- package/dist/library.js +11 -7
- package/dist/node_modules/@vueuse/core/index.js +102 -0
- package/dist/node_modules/@vueuse/shared/index.js +40 -28
- package/dist/node_modules/valibot/dist/index.js +230 -216
- package/dist/public/trackingIds.js +8 -0
- package/dist/src/@types/config/schemas.d.ts +24 -0
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
- package/dist/src/composables/useActionsApi.d.ts +3 -3
- package/dist/src/composables/useConfig.d.ts +6 -0
- package/dist/src/extensions/Blocks/Checkbox/constants/controlIds.d.ts +7 -0
- package/dist/src/extensions/Blocks/Checkbox/constants/index.d.ts +10 -0
- package/dist/src/extensions/Blocks/Checkbox/constants/selectors.d.ts +16 -0
- package/dist/src/extensions/Blocks/Checkbox/controls/blockBackground/index.d.ts +14 -0
- package/dist/src/extensions/Blocks/RadioButton/constants/controlIds.d.ts +7 -0
- package/dist/src/extensions/Blocks/RadioButton/constants/index.d.ts +10 -0
- package/dist/src/extensions/Blocks/RadioButton/constants/selectors.d.ts +16 -0
- package/dist/src/extensions/Blocks/RadioButton/controls/blockBackground/index.d.ts +14 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +5 -0
- package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +7 -0
- package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +10 -0
- package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +16 -0
- package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +14 -0
- package/dist/src/library.d.ts +1 -0
- package/dist/src/public/trackingIds.d.ts +9 -0
- package/dist/src/stores/config.d.ts +54 -0
- package/dist/src/stores/editor.d.ts +132 -0
- package/dist/src/stores/onboarding.d.ts +377 -0
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/linkTrackingIds.d.ts +30 -0
- package/dist/src/utils/timeUtil.d.ts +10 -0
- package/dist/stores/editor.js +9 -2
- package/dist/stores/onboarding.js +23 -14
- package/dist/utils/linkTrackingIds.js +56 -0
- package/dist/utils/pairProductVariables.js +105 -99
- package/dist/utils/templatePreparation.js +72 -61
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +5 -1
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
|
@@ -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,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,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,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
|
+
};
|
package/dist/src/library.d.ts
CHANGED
|
@@ -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';
|