@useinsider/guido 3.15.1-beta.6da4177 → 3.16.0-beta.0faee0c
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 +108 -92
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +78 -75
- package/dist/composables/useActionsApi.js +30 -22
- package/dist/composables/useEmailTemplateApplier.js +25 -23
- package/dist/composables/useHtmlValidator.js +85 -83
- package/dist/composables/useStripo.js +30 -29
- package/dist/composables/useTimerClone.js +21 -19
- 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/valibot/dist/index.js +230 -216
- package/dist/public/trackingIds.js +8 -0
- package/dist/src/@types/config/schemas.d.ts +20 -0
- package/dist/src/composables/useActionsApi.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +4 -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 +36 -0
- package/dist/src/stores/editor.d.ts +25 -0
- package/dist/src/utils/linkTrackingIds.d.ts +30 -0
- package/dist/stores/editor.js +4 -1
- package/dist/stores/onboarding.js +11 -7
- package/dist/utils/linkTrackingIds.js +56 -0
- package/dist/utils/pairProductVariables.js +105 -99
- package/dist/utils/templatePreparation.js +72 -61
- package/package.json +5 -1
|
@@ -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
|
/**
|
|
@@ -385,6 +393,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
385
393
|
readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
386
394
|
/** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
|
|
387
395
|
readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
396
|
+
/** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
|
|
397
|
+
readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
388
398
|
}, undefined>;
|
|
389
399
|
/**
|
|
390
400
|
* Default block types available in Stripo
|
|
@@ -666,6 +676,14 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
666
676
|
readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
|
|
667
677
|
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
668
678
|
readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
679
|
+
/**
|
|
680
|
+
* Consumer-persisted tracking-id high-water mark (SD-141414). Used as the id floor
|
|
681
|
+
* during migration so a rolled-back document never re-mints retired tracking ids.
|
|
682
|
+
* Out-of-range numbers are coerced rather than rejected — this value arrives from
|
|
683
|
+
* stored partner data, and rejecting it would fail parseConfig and block the editor
|
|
684
|
+
* mount. Non-numbers still fail, like every other field in this schema.
|
|
685
|
+
*/
|
|
686
|
+
readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
|
|
669
687
|
/** Migration-only inputs (legacy block configs) */
|
|
670
688
|
readonly migration: v.OptionalSchema<v.ObjectSchema<{
|
|
671
689
|
/**
|
|
@@ -774,6 +792,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
774
792
|
readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
775
793
|
/** Enable pre-save domain-allowlist validation (opt-in; Guido self-serves the block toaster) */
|
|
776
794
|
readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
795
|
+
/** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
|
|
796
|
+
readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
777
797
|
}, undefined>, {}>;
|
|
778
798
|
/** Block configuration */
|
|
779
799
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -6,6 +6,6 @@ export declare const useActionsApi: () => {
|
|
|
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]: {
|
|
@@ -97,6 +98,7 @@ export declare const useConfig: () => {
|
|
|
97
98
|
liquidSyntax: boolean;
|
|
98
99
|
autosave: boolean;
|
|
99
100
|
allowlistEnabled: boolean;
|
|
101
|
+
linkTrackingIds: boolean;
|
|
100
102
|
};
|
|
101
103
|
blocks: {
|
|
102
104
|
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 +174,7 @@ export declare const useConfig: () => {
|
|
|
172
174
|
customFieldAttributes: string[];
|
|
173
175
|
selectedUnsubscribePages: number[];
|
|
174
176
|
forceRecreate: boolean;
|
|
177
|
+
trackIdCounter: number;
|
|
175
178
|
migration: {
|
|
176
179
|
recommendationConfigs: {
|
|
177
180
|
[x: string]: {
|
|
@@ -229,6 +232,7 @@ export declare const useConfig: () => {
|
|
|
229
232
|
liquidSyntax: boolean;
|
|
230
233
|
autosave: boolean;
|
|
231
234
|
allowlistEnabled: boolean;
|
|
235
|
+
linkTrackingIds: boolean;
|
|
232
236
|
} | null>;
|
|
233
237
|
blocks: import("vue").ComputedRef<{
|
|
234
238
|
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';
|
|
@@ -45,6 +45,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
45
45
|
customFieldAttributes: string[];
|
|
46
46
|
selectedUnsubscribePages: number[];
|
|
47
47
|
forceRecreate: boolean;
|
|
48
|
+
trackIdCounter: number;
|
|
48
49
|
migration: {
|
|
49
50
|
recommendationConfigs: {
|
|
50
51
|
[x: string]: {
|
|
@@ -102,6 +103,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
102
103
|
liquidSyntax: boolean;
|
|
103
104
|
autosave: boolean;
|
|
104
105
|
allowlistEnabled: boolean;
|
|
106
|
+
linkTrackingIds: boolean;
|
|
105
107
|
};
|
|
106
108
|
blocks: {
|
|
107
109
|
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")[];
|
|
@@ -183,6 +185,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
183
185
|
customFieldAttributes: string[];
|
|
184
186
|
selectedUnsubscribePages: number[];
|
|
185
187
|
forceRecreate: boolean;
|
|
188
|
+
trackIdCounter: number;
|
|
186
189
|
migration: {
|
|
187
190
|
recommendationConfigs: {
|
|
188
191
|
[x: string]: {
|
|
@@ -240,6 +243,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
240
243
|
liquidSyntax: boolean;
|
|
241
244
|
autosave: boolean;
|
|
242
245
|
allowlistEnabled: boolean;
|
|
246
|
+
linkTrackingIds: boolean;
|
|
243
247
|
};
|
|
244
248
|
blocks: {
|
|
245
249
|
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")[];
|
|
@@ -321,6 +325,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
321
325
|
customFieldAttributes: string[];
|
|
322
326
|
selectedUnsubscribePages: number[];
|
|
323
327
|
forceRecreate: boolean;
|
|
328
|
+
trackIdCounter: number;
|
|
324
329
|
migration: {
|
|
325
330
|
recommendationConfigs: {
|
|
326
331
|
[x: string]: {
|
|
@@ -378,6 +383,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
378
383
|
liquidSyntax: boolean;
|
|
379
384
|
autosave: boolean;
|
|
380
385
|
allowlistEnabled: boolean;
|
|
386
|
+
linkTrackingIds: boolean;
|
|
381
387
|
};
|
|
382
388
|
blocks: {
|
|
383
389
|
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")[];
|
|
@@ -459,6 +465,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
459
465
|
customFieldAttributes: string[];
|
|
460
466
|
selectedUnsubscribePages: number[];
|
|
461
467
|
forceRecreate: boolean;
|
|
468
|
+
trackIdCounter: number;
|
|
462
469
|
migration: {
|
|
463
470
|
recommendationConfigs: {
|
|
464
471
|
[x: string]: {
|
|
@@ -516,6 +523,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
516
523
|
liquidSyntax: boolean;
|
|
517
524
|
autosave: boolean;
|
|
518
525
|
allowlistEnabled: boolean;
|
|
526
|
+
linkTrackingIds: boolean;
|
|
519
527
|
};
|
|
520
528
|
blocks: {
|
|
521
529
|
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")[];
|
|
@@ -597,6 +605,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
597
605
|
customFieldAttributes: string[];
|
|
598
606
|
selectedUnsubscribePages: number[];
|
|
599
607
|
forceRecreate: boolean;
|
|
608
|
+
trackIdCounter: number;
|
|
600
609
|
migration: {
|
|
601
610
|
recommendationConfigs: {
|
|
602
611
|
[x: string]: {
|
|
@@ -654,6 +663,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
654
663
|
liquidSyntax: boolean;
|
|
655
664
|
autosave: boolean;
|
|
656
665
|
allowlistEnabled: boolean;
|
|
666
|
+
linkTrackingIds: boolean;
|
|
657
667
|
};
|
|
658
668
|
blocks: {
|
|
659
669
|
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")[];
|
|
@@ -735,6 +745,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
735
745
|
customFieldAttributes: string[];
|
|
736
746
|
selectedUnsubscribePages: number[];
|
|
737
747
|
forceRecreate: boolean;
|
|
748
|
+
trackIdCounter: number;
|
|
738
749
|
migration: {
|
|
739
750
|
recommendationConfigs: {
|
|
740
751
|
[x: string]: {
|
|
@@ -792,6 +803,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
792
803
|
liquidSyntax: boolean;
|
|
793
804
|
autosave: boolean;
|
|
794
805
|
allowlistEnabled: boolean;
|
|
806
|
+
linkTrackingIds: boolean;
|
|
795
807
|
};
|
|
796
808
|
blocks: {
|
|
797
809
|
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")[];
|
|
@@ -873,6 +885,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
873
885
|
customFieldAttributes: string[];
|
|
874
886
|
selectedUnsubscribePages: number[];
|
|
875
887
|
forceRecreate: boolean;
|
|
888
|
+
trackIdCounter: number;
|
|
876
889
|
migration: {
|
|
877
890
|
recommendationConfigs: {
|
|
878
891
|
[x: string]: {
|
|
@@ -930,6 +943,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
930
943
|
liquidSyntax: boolean;
|
|
931
944
|
autosave: boolean;
|
|
932
945
|
allowlistEnabled: boolean;
|
|
946
|
+
linkTrackingIds: boolean;
|
|
933
947
|
};
|
|
934
948
|
blocks: {
|
|
935
949
|
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")[];
|
|
@@ -1011,6 +1025,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1011
1025
|
customFieldAttributes: string[];
|
|
1012
1026
|
selectedUnsubscribePages: number[];
|
|
1013
1027
|
forceRecreate: boolean;
|
|
1028
|
+
trackIdCounter: number;
|
|
1014
1029
|
migration: {
|
|
1015
1030
|
recommendationConfigs: {
|
|
1016
1031
|
[x: string]: {
|
|
@@ -1068,6 +1083,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1068
1083
|
liquidSyntax: boolean;
|
|
1069
1084
|
autosave: boolean;
|
|
1070
1085
|
allowlistEnabled: boolean;
|
|
1086
|
+
linkTrackingIds: boolean;
|
|
1071
1087
|
};
|
|
1072
1088
|
blocks: {
|
|
1073
1089
|
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")[];
|
|
@@ -1149,6 +1165,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1149
1165
|
customFieldAttributes: string[];
|
|
1150
1166
|
selectedUnsubscribePages: number[];
|
|
1151
1167
|
forceRecreate: boolean;
|
|
1168
|
+
trackIdCounter: number;
|
|
1152
1169
|
migration: {
|
|
1153
1170
|
recommendationConfigs: {
|
|
1154
1171
|
[x: string]: {
|
|
@@ -1206,6 +1223,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1206
1223
|
liquidSyntax: boolean;
|
|
1207
1224
|
autosave: boolean;
|
|
1208
1225
|
allowlistEnabled: boolean;
|
|
1226
|
+
linkTrackingIds: boolean;
|
|
1209
1227
|
};
|
|
1210
1228
|
blocks: {
|
|
1211
1229
|
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")[];
|
|
@@ -1287,6 +1305,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1287
1305
|
customFieldAttributes: string[];
|
|
1288
1306
|
selectedUnsubscribePages: number[];
|
|
1289
1307
|
forceRecreate: boolean;
|
|
1308
|
+
trackIdCounter: number;
|
|
1290
1309
|
migration: {
|
|
1291
1310
|
recommendationConfigs: {
|
|
1292
1311
|
[x: string]: {
|
|
@@ -1344,6 +1363,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1344
1363
|
liquidSyntax: boolean;
|
|
1345
1364
|
autosave: boolean;
|
|
1346
1365
|
allowlistEnabled: boolean;
|
|
1366
|
+
linkTrackingIds: boolean;
|
|
1347
1367
|
};
|
|
1348
1368
|
blocks: {
|
|
1349
1369
|
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")[];
|
|
@@ -1425,6 +1445,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1425
1445
|
customFieldAttributes: string[];
|
|
1426
1446
|
selectedUnsubscribePages: number[];
|
|
1427
1447
|
forceRecreate: boolean;
|
|
1448
|
+
trackIdCounter: number;
|
|
1428
1449
|
migration: {
|
|
1429
1450
|
recommendationConfigs: {
|
|
1430
1451
|
[x: string]: {
|
|
@@ -1482,6 +1503,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1482
1503
|
liquidSyntax: boolean;
|
|
1483
1504
|
autosave: boolean;
|
|
1484
1505
|
allowlistEnabled: boolean;
|
|
1506
|
+
linkTrackingIds: boolean;
|
|
1485
1507
|
};
|
|
1486
1508
|
blocks: {
|
|
1487
1509
|
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")[];
|
|
@@ -1563,6 +1585,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1563
1585
|
customFieldAttributes: string[];
|
|
1564
1586
|
selectedUnsubscribePages: number[];
|
|
1565
1587
|
forceRecreate: boolean;
|
|
1588
|
+
trackIdCounter: number;
|
|
1566
1589
|
migration: {
|
|
1567
1590
|
recommendationConfigs: {
|
|
1568
1591
|
[x: string]: {
|
|
@@ -1620,6 +1643,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1620
1643
|
liquidSyntax: boolean;
|
|
1621
1644
|
autosave: boolean;
|
|
1622
1645
|
allowlistEnabled: boolean;
|
|
1646
|
+
linkTrackingIds: boolean;
|
|
1623
1647
|
};
|
|
1624
1648
|
blocks: {
|
|
1625
1649
|
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")[];
|
|
@@ -1701,6 +1725,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1701
1725
|
customFieldAttributes: string[];
|
|
1702
1726
|
selectedUnsubscribePages: number[];
|
|
1703
1727
|
forceRecreate: boolean;
|
|
1728
|
+
trackIdCounter: number;
|
|
1704
1729
|
migration: {
|
|
1705
1730
|
recommendationConfigs: {
|
|
1706
1731
|
[x: string]: {
|
|
@@ -1758,6 +1783,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1758
1783
|
liquidSyntax: boolean;
|
|
1759
1784
|
autosave: boolean;
|
|
1760
1785
|
allowlistEnabled: boolean;
|
|
1786
|
+
linkTrackingIds: boolean;
|
|
1761
1787
|
};
|
|
1762
1788
|
blocks: {
|
|
1763
1789
|
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")[];
|
|
@@ -1839,6 +1865,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1839
1865
|
customFieldAttributes: string[];
|
|
1840
1866
|
selectedUnsubscribePages: number[];
|
|
1841
1867
|
forceRecreate: boolean;
|
|
1868
|
+
trackIdCounter: number;
|
|
1842
1869
|
migration: {
|
|
1843
1870
|
recommendationConfigs: {
|
|
1844
1871
|
[x: string]: {
|
|
@@ -1896,6 +1923,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1896
1923
|
liquidSyntax: boolean;
|
|
1897
1924
|
autosave: boolean;
|
|
1898
1925
|
allowlistEnabled: boolean;
|
|
1926
|
+
linkTrackingIds: boolean;
|
|
1899
1927
|
};
|
|
1900
1928
|
blocks: {
|
|
1901
1929
|
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")[];
|
|
@@ -1977,6 +2005,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1977
2005
|
customFieldAttributes: string[];
|
|
1978
2006
|
selectedUnsubscribePages: number[];
|
|
1979
2007
|
forceRecreate: boolean;
|
|
2008
|
+
trackIdCounter: number;
|
|
1980
2009
|
migration: {
|
|
1981
2010
|
recommendationConfigs: {
|
|
1982
2011
|
[x: string]: {
|
|
@@ -2034,6 +2063,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2034
2063
|
liquidSyntax: boolean;
|
|
2035
2064
|
autosave: boolean;
|
|
2036
2065
|
allowlistEnabled: boolean;
|
|
2066
|
+
linkTrackingIds: boolean;
|
|
2037
2067
|
};
|
|
2038
2068
|
blocks: {
|
|
2039
2069
|
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")[];
|
|
@@ -2115,6 +2145,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2115
2145
|
customFieldAttributes: string[];
|
|
2116
2146
|
selectedUnsubscribePages: number[];
|
|
2117
2147
|
forceRecreate: boolean;
|
|
2148
|
+
trackIdCounter: number;
|
|
2118
2149
|
migration: {
|
|
2119
2150
|
recommendationConfigs: {
|
|
2120
2151
|
[x: string]: {
|
|
@@ -2172,6 +2203,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2172
2203
|
liquidSyntax: boolean;
|
|
2173
2204
|
autosave: boolean;
|
|
2174
2205
|
allowlistEnabled: boolean;
|
|
2206
|
+
linkTrackingIds: boolean;
|
|
2175
2207
|
};
|
|
2176
2208
|
blocks: {
|
|
2177
2209
|
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")[];
|
|
@@ -2253,6 +2285,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2253
2285
|
customFieldAttributes: string[];
|
|
2254
2286
|
selectedUnsubscribePages: number[];
|
|
2255
2287
|
forceRecreate: boolean;
|
|
2288
|
+
trackIdCounter: number;
|
|
2256
2289
|
migration: {
|
|
2257
2290
|
recommendationConfigs: {
|
|
2258
2291
|
[x: string]: {
|
|
@@ -2310,6 +2343,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2310
2343
|
liquidSyntax: boolean;
|
|
2311
2344
|
autosave: boolean;
|
|
2312
2345
|
allowlistEnabled: boolean;
|
|
2346
|
+
linkTrackingIds: boolean;
|
|
2313
2347
|
};
|
|
2314
2348
|
blocks: {
|
|
2315
2349
|
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")[];
|
|
@@ -2393,6 +2427,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2393
2427
|
customFieldAttributes: string[];
|
|
2394
2428
|
selectedUnsubscribePages: number[];
|
|
2395
2429
|
forceRecreate: boolean;
|
|
2430
|
+
trackIdCounter: number;
|
|
2396
2431
|
migration: {
|
|
2397
2432
|
recommendationConfigs: {
|
|
2398
2433
|
[x: string]: {
|
|
@@ -2450,6 +2485,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2450
2485
|
liquidSyntax: boolean;
|
|
2451
2486
|
autosave: boolean;
|
|
2452
2487
|
allowlistEnabled: boolean;
|
|
2488
|
+
linkTrackingIds: boolean;
|
|
2453
2489
|
};
|
|
2454
2490
|
blocks: {
|
|
2455
2491
|
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")[];
|