@useinsider/guido 2.0.0-beta.9b144a9 → 2.0.0-beta.b46bbf6
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 +6 -4
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +2 -2
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
- package/dist/composables/useStripo.js +54 -55
- package/dist/config/migrator/index.js +9 -8
- package/dist/config/migrator/itemsBlockMigrator.js +283 -0
- package/dist/extensions/Blocks/Items/block.js +39 -40
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +46 -49
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +28 -26
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +132 -127
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -2
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +58 -48
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +48 -58
- package/dist/extensions/Blocks/Items/store/items-block.js +2 -2
- package/dist/extensions/Blocks/Items/template.js +296 -123
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +172 -0
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +11 -20
- package/dist/extensions/Blocks/Recommendation/control.js +1 -1
- package/dist/extensions/Blocks/common-control.js +64 -53
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +366 -287
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/config/migrator/itemsBlockMigrator.d.ts +6 -0
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -4
- package/dist/src/extensions/Blocks/Items/template.d.ts +20 -1
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +71 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +13 -8
- package/dist/src/stores/config.d.ts +17 -0
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/package.json +3 -3
- package/dist/package.json.js +0 -7
|
@@ -146,6 +146,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
146
146
|
readonly displayConditions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
147
147
|
/** Enable unsubscribe block */
|
|
148
148
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
149
|
+
/** Disable modules panel in the editor */
|
|
150
|
+
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
149
151
|
}, undefined>;
|
|
150
152
|
/**
|
|
151
153
|
* Default block types available in Stripo
|
|
@@ -439,6 +441,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
439
441
|
readonly displayConditions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
440
442
|
/** Enable unsubscribe block */
|
|
441
443
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
444
|
+
/** Disable modules panel in the editor */
|
|
445
|
+
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
442
446
|
}, undefined>, {}>;
|
|
443
447
|
/** Block configuration */
|
|
444
448
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -52,6 +52,7 @@ export declare const useConfig: () => {
|
|
|
52
52
|
testMessage: boolean;
|
|
53
53
|
displayConditions: boolean;
|
|
54
54
|
unsubscribe: boolean;
|
|
55
|
+
modulesDisabled: boolean;
|
|
55
56
|
};
|
|
56
57
|
blocks: {
|
|
57
58
|
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")[];
|
|
@@ -136,6 +137,7 @@ export declare const useConfig: () => {
|
|
|
136
137
|
testMessage: boolean;
|
|
137
138
|
displayConditions: boolean;
|
|
138
139
|
unsubscribe: boolean;
|
|
140
|
+
modulesDisabled: boolean;
|
|
139
141
|
} | null>;
|
|
140
142
|
blocks: import("vue").ComputedRef<{
|
|
141
143
|
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")[];
|
|
@@ -9,7 +9,7 @@ export declare class PriceOrientationControl extends CommonControl {
|
|
|
9
9
|
onRender(): void;
|
|
10
10
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
11
11
|
_onPriceOrientationChange(value: string): void;
|
|
12
|
-
private _updateHorizontalLayout;
|
|
13
12
|
private _updateVerticalLayout;
|
|
13
|
+
private _updateHorizontalLayout;
|
|
14
14
|
_getPriceOrientation(): string;
|
|
15
15
|
}
|
|
@@ -31,10 +31,6 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
31
31
|
_updatePrice(price: string): void;
|
|
32
32
|
_updateOriginalPrice(originalPrice: string): void;
|
|
33
33
|
_updateQuantity(quantity: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* @todo Optimize template reordering for performance.
|
|
36
|
-
* @description Reorders the template structure based on current orientation and visibility settings.
|
|
37
|
-
*/
|
|
38
34
|
_reOrderTemplate(): void;
|
|
39
35
|
_updateDataTypeAttributes(itemsType: ProductType): void;
|
|
40
36
|
_updateDataNumberAttributes(itemId: string): void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ItemsBlockConfig } from './utils/nodeConfigUtils';
|
|
1
2
|
declare const migrationTemplate = "ADD YOUR MIGRATION HERE";
|
|
2
3
|
type ProductType = 'CART_ITEMS' | 'BROWSED_ITEMS' | 'PURCHASED_ITEMS';
|
|
3
4
|
type OrientationType = 'vertical' | 'horizontal';
|
|
5
|
+
type PriceOrientationType = 'vertical' | 'horizontal';
|
|
4
6
|
type TemplateParameters = {
|
|
5
7
|
orientation: OrientationType;
|
|
6
8
|
itemsType: ProductType;
|
|
@@ -8,6 +10,23 @@ type TemplateParameters = {
|
|
|
8
10
|
currencySymbol?: string;
|
|
9
11
|
currencyLocation?: string;
|
|
10
12
|
formattedPrice?: boolean;
|
|
13
|
+
migrate?: boolean;
|
|
14
|
+
/** Legacy config format (data-* attributes from esd-config-block) */
|
|
15
|
+
configBlockAttributes?: Record<string, string>;
|
|
16
|
+
/** New config format (Stripo V2 nodeConfig from esd-ext-config) */
|
|
17
|
+
nodeConfig?: Partial<ItemsBlockConfig>;
|
|
18
|
+
/** Extracted styles from a[product-attr="name"] for migration */
|
|
19
|
+
nameStyles?: string;
|
|
20
|
+
/** Extracted styles from a.es-button for migration */
|
|
21
|
+
buttonStyles?: string;
|
|
22
|
+
/** Extracted styles from p[product-attr="price"] for migration */
|
|
23
|
+
priceStyles?: string;
|
|
24
|
+
/** Extracted styles from p[product-attr="originalPrice"] for migration */
|
|
25
|
+
originalPriceStyles?: string;
|
|
26
|
+
/** Extracted styles from p[product-attr="quantity"] for migration */
|
|
27
|
+
quantityStyles?: string;
|
|
28
|
+
/** Price orientation within the card ('vertical' = stacked, 'horizontal' = side-by-side) */
|
|
29
|
+
priceOrientation?: PriceOrientationType;
|
|
11
30
|
};
|
|
12
31
|
/**
|
|
13
32
|
* Generates the default template for the Items Block.
|
|
@@ -20,5 +39,5 @@ type TemplateParameters = {
|
|
|
20
39
|
* @param params.formattedPrice - Whether to use formatted price display
|
|
21
40
|
* @returns HTML template string for the Items Block
|
|
22
41
|
*/
|
|
23
|
-
export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, formattedPrice, }: TemplateParameters): string;
|
|
42
|
+
export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, migrate, formattedPrice, configBlockAttributes, nodeConfig, nameStyles, buttonStyles, priceStyles, originalPriceStyles, quantityStyles, priceOrientation, }: TemplateParameters): string;
|
|
24
43
|
export default migrationTemplate;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { OrientationType, ProductType } from '@@/Types/extensions/items';
|
|
2
|
+
import { ImmutableHtmlNode, ImmutableHtmlElementNode, ControlApi, BlockApi } from '@stripoinc/ui-editor-extensions';
|
|
3
|
+
/**
|
|
4
|
+
* Typed configuration object for Items Block.
|
|
5
|
+
* Replaces the deprecated esd-config-block data-* attributes approach.
|
|
6
|
+
* Configuration is stored directly on the block node using Stripo V2's getNodeConfig/setNodeConfig API.
|
|
7
|
+
*/
|
|
8
|
+
export interface ItemsBlockConfig {
|
|
9
|
+
initialized: boolean;
|
|
10
|
+
blockInstanceId: string;
|
|
11
|
+
source: ProductType;
|
|
12
|
+
type: ProductType;
|
|
13
|
+
itemsSelectValue: string;
|
|
14
|
+
orientation: OrientationType;
|
|
15
|
+
nameTrimming: boolean;
|
|
16
|
+
nameControlEnabled: boolean;
|
|
17
|
+
priceHideDiscount: boolean;
|
|
18
|
+
priceFormatted: boolean;
|
|
19
|
+
priceCurrencySymbol: string;
|
|
20
|
+
priceCurrencyLocation: string;
|
|
21
|
+
priceControlOpened: boolean;
|
|
22
|
+
priceOrientation: 'vertical' | 'horizontal';
|
|
23
|
+
quantityControlEnabled: boolean;
|
|
24
|
+
buttonLink: string;
|
|
25
|
+
imageLink: string;
|
|
26
|
+
buttonLabel: string;
|
|
27
|
+
imageVisible: boolean;
|
|
28
|
+
nameVisible: boolean;
|
|
29
|
+
quantityVisible: boolean;
|
|
30
|
+
priceVisible: boolean;
|
|
31
|
+
originalPriceVisible: boolean;
|
|
32
|
+
buttonVisible: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Generates a unique block instance ID.
|
|
36
|
+
*/
|
|
37
|
+
export declare function generateBlockInstanceId(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Returns default ItemsBlockConfig values.
|
|
40
|
+
* These are used when initializing a new block or when migrating from legacy format.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getDefaultItemsBlockConfig(): ItemsBlockConfig;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the Items block container element from the current node.
|
|
45
|
+
* The container is identified by the `.items-block-v2` class (new) or `.esd-cart-items-block` (legacy).
|
|
46
|
+
* @param currentNode - The current node from the control (usually this.currentNode)
|
|
47
|
+
* @returns The container element or null if not found
|
|
48
|
+
*/
|
|
49
|
+
export declare function getItemsBlockContainer(currentNode: ImmutableHtmlNode | undefined): ImmutableHtmlElementNode | null;
|
|
50
|
+
/**
|
|
51
|
+
* Gets the node configuration from the Items block.
|
|
52
|
+
* Uses Stripo V2's getNodeConfig() API.
|
|
53
|
+
* Falls back to migrating from legacy esd-config-block if nodeConfig is empty.
|
|
54
|
+
* @param currentNode - The current node from the control
|
|
55
|
+
* @returns The ItemsBlockConfig object or null if not found
|
|
56
|
+
*/
|
|
57
|
+
export declare function getItemsBlockConfig(currentNode: ImmutableHtmlNode | undefined): ItemsBlockConfig | null;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the node configuration on the Items block.
|
|
60
|
+
* Uses Stripo V2's setNodeConfig() API.
|
|
61
|
+
* @param currentNode - The current node from the control
|
|
62
|
+
* @param api - The API object (ControlApi or BlockApi)
|
|
63
|
+
* @param config - The configuration to set (partial update supported)
|
|
64
|
+
*/
|
|
65
|
+
export declare function setItemsBlockConfig(currentNode: ImmutableHtmlNode | undefined, api: ControlApi | BlockApi, config: Partial<ItemsBlockConfig>): void;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the block instance ID from the node config.
|
|
68
|
+
* @param currentNode - The current node from the control
|
|
69
|
+
* @returns The block instance ID or null if not found
|
|
70
|
+
*/
|
|
71
|
+
export declare function getBlockInstanceIdFromConfig(currentNode: ImmutableHtmlNode | undefined): string | null;
|
|
@@ -56,25 +56,30 @@ export declare abstract class CommonControl extends Control {
|
|
|
56
56
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
57
57
|
onDestroy(): void;
|
|
58
58
|
/**
|
|
59
|
-
* Gets the
|
|
59
|
+
* Gets the Items block container element from the current node.
|
|
60
|
+
* @returns The container element or null if not found
|
|
61
|
+
*/
|
|
62
|
+
protected getItemsBlockContainer(): ImmutableHtmlElementNode | null;
|
|
63
|
+
/**
|
|
64
|
+
* Gets the config block element from the current node (legacy support).
|
|
65
|
+
* @deprecated Use getNodeConfig() from nodeConfigUtils instead for Stripo V2
|
|
60
66
|
* @returns The config block element or null if not found
|
|
61
67
|
*/
|
|
62
68
|
protected getConfigBlock(): ImmutableHtmlElementNode | null;
|
|
63
69
|
/**
|
|
64
|
-
* Gets the current block instance ID from the config block.
|
|
65
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
70
|
+
* Gets the current block instance ID from the node config (Stripo V2) or legacy config block.
|
|
66
71
|
* @returns The block instance ID or null if not found
|
|
67
72
|
*/
|
|
68
|
-
protected getBlockInstanceId(
|
|
73
|
+
protected getBlockInstanceId(): string | null;
|
|
69
74
|
/**
|
|
70
75
|
* Handles block instance change detection and syncing.
|
|
71
|
-
* This is a helper method for controls that need to sync
|
|
72
|
-
*
|
|
76
|
+
* This is a helper method for controls that need to sync config when switching between block instances.
|
|
77
|
+
* Uses Stripo V2 nodeConfig API for block instance tracking.
|
|
78
|
+
* @param syncFunction - Function to call when block instance changes (to sync from node config)
|
|
73
79
|
* @param updateUI - Function to call to update the UI (called both on change and when same block)
|
|
74
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
75
80
|
* @returns true if block instance changed, false otherwise
|
|
76
81
|
*/
|
|
77
|
-
protected handleBlockInstanceChange(syncFunction: (node: ImmutableHtmlNode) => void, updateUI: () => void
|
|
82
|
+
protected handleBlockInstanceChange(syncFunction: (node: ImmutableHtmlNode) => void, updateUI: () => void): boolean;
|
|
78
83
|
_GuLabel({ text, name, position }: LabelProps): string;
|
|
79
84
|
_GuToggle(name: string): string;
|
|
80
85
|
_GuSelectItem({ text, value }: {
|
|
@@ -57,6 +57,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
57
57
|
testMessage: boolean;
|
|
58
58
|
displayConditions: boolean;
|
|
59
59
|
unsubscribe: boolean;
|
|
60
|
+
modulesDisabled: boolean;
|
|
60
61
|
};
|
|
61
62
|
blocks: {
|
|
62
63
|
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")[];
|
|
@@ -147,6 +148,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
147
148
|
testMessage: boolean;
|
|
148
149
|
displayConditions: boolean;
|
|
149
150
|
unsubscribe: boolean;
|
|
151
|
+
modulesDisabled: boolean;
|
|
150
152
|
};
|
|
151
153
|
blocks: {
|
|
152
154
|
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")[];
|
|
@@ -237,6 +239,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
237
239
|
testMessage: boolean;
|
|
238
240
|
displayConditions: boolean;
|
|
239
241
|
unsubscribe: boolean;
|
|
242
|
+
modulesDisabled: boolean;
|
|
240
243
|
};
|
|
241
244
|
blocks: {
|
|
242
245
|
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")[];
|
|
@@ -327,6 +330,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
327
330
|
testMessage: boolean;
|
|
328
331
|
displayConditions: boolean;
|
|
329
332
|
unsubscribe: boolean;
|
|
333
|
+
modulesDisabled: boolean;
|
|
330
334
|
};
|
|
331
335
|
blocks: {
|
|
332
336
|
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")[];
|
|
@@ -417,6 +421,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
417
421
|
testMessage: boolean;
|
|
418
422
|
displayConditions: boolean;
|
|
419
423
|
unsubscribe: boolean;
|
|
424
|
+
modulesDisabled: boolean;
|
|
420
425
|
};
|
|
421
426
|
blocks: {
|
|
422
427
|
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")[];
|
|
@@ -507,6 +512,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
507
512
|
testMessage: boolean;
|
|
508
513
|
displayConditions: boolean;
|
|
509
514
|
unsubscribe: boolean;
|
|
515
|
+
modulesDisabled: boolean;
|
|
510
516
|
};
|
|
511
517
|
blocks: {
|
|
512
518
|
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 +603,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
597
603
|
testMessage: boolean;
|
|
598
604
|
displayConditions: boolean;
|
|
599
605
|
unsubscribe: boolean;
|
|
606
|
+
modulesDisabled: boolean;
|
|
600
607
|
};
|
|
601
608
|
blocks: {
|
|
602
609
|
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")[];
|
|
@@ -687,6 +694,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
687
694
|
testMessage: boolean;
|
|
688
695
|
displayConditions: boolean;
|
|
689
696
|
unsubscribe: boolean;
|
|
697
|
+
modulesDisabled: boolean;
|
|
690
698
|
};
|
|
691
699
|
blocks: {
|
|
692
700
|
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")[];
|
|
@@ -777,6 +785,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
777
785
|
testMessage: boolean;
|
|
778
786
|
displayConditions: boolean;
|
|
779
787
|
unsubscribe: boolean;
|
|
788
|
+
modulesDisabled: boolean;
|
|
780
789
|
};
|
|
781
790
|
blocks: {
|
|
782
791
|
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")[];
|
|
@@ -867,6 +876,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
867
876
|
testMessage: boolean;
|
|
868
877
|
displayConditions: boolean;
|
|
869
878
|
unsubscribe: boolean;
|
|
879
|
+
modulesDisabled: boolean;
|
|
870
880
|
};
|
|
871
881
|
blocks: {
|
|
872
882
|
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")[];
|
|
@@ -957,6 +967,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
957
967
|
testMessage: boolean;
|
|
958
968
|
displayConditions: boolean;
|
|
959
969
|
unsubscribe: boolean;
|
|
970
|
+
modulesDisabled: boolean;
|
|
960
971
|
};
|
|
961
972
|
blocks: {
|
|
962
973
|
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")[];
|
|
@@ -1047,6 +1058,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1047
1058
|
testMessage: boolean;
|
|
1048
1059
|
displayConditions: boolean;
|
|
1049
1060
|
unsubscribe: boolean;
|
|
1061
|
+
modulesDisabled: boolean;
|
|
1050
1062
|
};
|
|
1051
1063
|
blocks: {
|
|
1052
1064
|
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")[];
|
|
@@ -1137,6 +1149,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1137
1149
|
testMessage: boolean;
|
|
1138
1150
|
displayConditions: boolean;
|
|
1139
1151
|
unsubscribe: boolean;
|
|
1152
|
+
modulesDisabled: boolean;
|
|
1140
1153
|
};
|
|
1141
1154
|
blocks: {
|
|
1142
1155
|
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")[];
|
|
@@ -1227,6 +1240,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1227
1240
|
testMessage: boolean;
|
|
1228
1241
|
displayConditions: boolean;
|
|
1229
1242
|
unsubscribe: boolean;
|
|
1243
|
+
modulesDisabled: boolean;
|
|
1230
1244
|
};
|
|
1231
1245
|
blocks: {
|
|
1232
1246
|
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")[];
|
|
@@ -1317,6 +1331,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1317
1331
|
testMessage: boolean;
|
|
1318
1332
|
displayConditions: boolean;
|
|
1319
1333
|
unsubscribe: boolean;
|
|
1334
|
+
modulesDisabled: boolean;
|
|
1320
1335
|
};
|
|
1321
1336
|
blocks: {
|
|
1322
1337
|
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")[];
|
|
@@ -1407,6 +1422,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1407
1422
|
testMessage: boolean;
|
|
1408
1423
|
displayConditions: boolean;
|
|
1409
1424
|
unsubscribe: boolean;
|
|
1425
|
+
modulesDisabled: boolean;
|
|
1410
1426
|
};
|
|
1411
1427
|
blocks: {
|
|
1412
1428
|
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")[];
|
|
@@ -1497,6 +1513,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1497
1513
|
testMessage: boolean;
|
|
1498
1514
|
displayConditions: boolean;
|
|
1499
1515
|
unsubscribe: boolean;
|
|
1516
|
+
modulesDisabled: boolean;
|
|
1500
1517
|
};
|
|
1501
1518
|
blocks: {
|
|
1502
1519
|
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.
|
|
3
|
+
"version": "2.0.0-beta.b46bbf6",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@stripoinc/ui-editor-extensions": "3.
|
|
34
|
+
"@stripoinc/ui-editor-extensions": "3.5.0",
|
|
35
35
|
"@useinsider/design-system-vue": "0.14.20",
|
|
36
36
|
"@vueuse/core": "11.3.0",
|
|
37
37
|
"lodash-es": "4.17.21",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"guido": {
|
|
87
87
|
"stripo": {
|
|
88
|
-
"version": "2.
|
|
88
|
+
"version": "2.52.0"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|