@useinsider/guido 1.0.3-beta.ba79634 → 1.0.3-beta.bd6a5dd

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 (108) hide show
  1. package/README.md +3 -32
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  4. package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
  5. package/dist/composables/useActionsApi.js +1 -1
  6. package/dist/composables/useHtmlValidator.js +36 -35
  7. package/dist/composables/useStripo.js +29 -25
  8. package/dist/extensions/Blocks/Checkbox/control.js +15 -14
  9. package/dist/extensions/Blocks/Checkbox/template.js +14 -9
  10. package/dist/extensions/Blocks/Items/block.js +26 -26
  11. package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
  12. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +92 -0
  13. package/dist/extensions/Blocks/Items/controls/settingsControl.js +90 -83
  14. package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
  15. package/dist/extensions/Blocks/Items/enums/productEnums.js +63 -4
  16. package/dist/extensions/Blocks/Items/enums/settingsEnums.js +3 -2
  17. package/dist/extensions/Blocks/Items/extension.js +7 -6
  18. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +57 -57
  19. package/dist/extensions/Blocks/Items/layouts/vertical.html.js +67 -56
  20. package/dist/extensions/Blocks/Items/settingsPanel.js +8 -8
  21. package/dist/extensions/Blocks/Items/store/items-block.js +8 -4
  22. package/dist/extensions/Blocks/Items/template.js +75 -72
  23. package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +35 -26
  24. package/dist/extensions/Blocks/Items/utils/updateAttributes.js +29 -27
  25. package/dist/extensions/Blocks/RadioButton/control.js +18 -17
  26. package/dist/extensions/Blocks/RadioButton/template.js +18 -9
  27. package/dist/extensions/Blocks/Unsubscribe/block.js +45 -41
  28. package/dist/guido.css +1 -1
  29. package/dist/node_modules/lodash-es/_DataView.js +6 -0
  30. package/dist/node_modules/lodash-es/_Promise.js +6 -0
  31. package/dist/node_modules/lodash-es/_Set.js +6 -0
  32. package/dist/node_modules/lodash-es/_SetCache.js +13 -0
  33. package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
  34. package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
  35. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  36. package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
  37. package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
  38. package/dist/node_modules/lodash-es/_arraySome.js +9 -0
  39. package/dist/node_modules/lodash-es/_baseEach.js +6 -0
  40. package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
  41. package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
  42. package/dist/node_modules/lodash-es/_baseGet.js +11 -0
  43. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  44. package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
  45. package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
  46. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  47. package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
  48. package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
  49. package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
  50. package/dist/node_modules/lodash-es/_baseMap.js +11 -0
  51. package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
  52. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  53. package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
  54. package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  55. package/dist/node_modules/lodash-es/_baseRange.js +9 -0
  56. package/dist/node_modules/lodash-es/_baseToString.js +18 -0
  57. package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
  58. package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
  59. package/dist/node_modules/lodash-es/_castPath.js +10 -0
  60. package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
  61. package/dist/node_modules/lodash-es/_createRange.js +11 -0
  62. package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
  63. package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
  64. package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
  65. package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
  66. package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
  67. package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
  68. package/dist/node_modules/lodash-es/_getTag.js +28 -0
  69. package/dist/node_modules/lodash-es/_hasPath.js +19 -0
  70. package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
  71. package/dist/node_modules/lodash-es/_isKey.js +12 -0
  72. package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
  73. package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
  74. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  75. package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
  76. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
  77. package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
  78. package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
  79. package/dist/node_modules/lodash-es/_setToArray.js +9 -0
  80. package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
  81. package/dist/node_modules/lodash-es/_toKey.js +10 -0
  82. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  83. package/dist/node_modules/lodash-es/flatMap.js +8 -0
  84. package/dist/node_modules/lodash-es/get.js +8 -0
  85. package/dist/node_modules/lodash-es/hasIn.js +8 -0
  86. package/dist/node_modules/lodash-es/isSymbol.js +9 -0
  87. package/dist/node_modules/lodash-es/keys.js +9 -0
  88. package/dist/node_modules/lodash-es/keysIn.js +3 -3
  89. package/dist/node_modules/lodash-es/map.js +11 -0
  90. package/dist/node_modules/lodash-es/property.js +10 -0
  91. package/dist/node_modules/lodash-es/range.js +5 -0
  92. package/dist/node_modules/lodash-es/stubArray.js +6 -0
  93. package/dist/node_modules/lodash-es/toFinite.js +14 -0
  94. package/dist/node_modules/lodash-es/toNumber.js +22 -0
  95. package/dist/node_modules/lodash-es/toString.js +7 -0
  96. package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
  97. package/dist/src/extensions/Blocks/Items/block.d.ts +14 -0
  98. package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +15 -0
  99. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +5 -2
  100. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
  101. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
  102. package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +1 -0
  103. package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +2 -0
  104. package/dist/src/extensions/Blocks/Items/template.d.ts +9 -1
  105. package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +6 -0
  106. package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
  107. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +3 -4
  108. package/package.json +5 -10
@@ -0,0 +1,9 @@
1
+ import t from "./_baseGetTag.js";
2
+ import m from "./isObjectLike.js";
3
+ var r = "[object Symbol]";
4
+ function i(o) {
5
+ return typeof o == "symbol" || m(o) && t(o) == r;
6
+ }
7
+ export {
8
+ i as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import e from "./_arrayLikeKeys.js";
2
+ import i from "./_baseKeys.js";
3
+ import a from "./isArrayLike.js";
4
+ function f(r) {
5
+ return a(r) ? e(r) : i(r);
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -1,9 +1,9 @@
1
1
  import e from "./_arrayLikeKeys.js";
2
2
  import i from "./_baseKeysIn.js";
3
3
  import a from "./isArrayLike.js";
4
- function f(r) {
5
- return a(r) ? e(r) : i(r);
4
+ function t(r) {
5
+ return a(r) ? e(r, !0) : i(r);
6
6
  }
7
7
  export {
8
- f as default
8
+ t as default
9
9
  };
@@ -0,0 +1,11 @@
1
+ import t from "./_arrayMap.js";
2
+ import o from "./_baseIteratee.js";
3
+ import p from "./_baseMap.js";
4
+ import e from "./isArray.js";
5
+ function n(r, a) {
6
+ var m = e(r) ? t : p;
7
+ return m(r, o(a));
8
+ }
9
+ export {
10
+ n as default
11
+ };
@@ -0,0 +1,10 @@
1
+ import o from "./_baseProperty.js";
2
+ import e from "./_basePropertyDeep.js";
3
+ import t from "./_isKey.js";
4
+ import m from "./_toKey.js";
5
+ function s(r) {
6
+ return t(r) ? o(m(r)) : e(r);
7
+ }
8
+ export {
9
+ s as default
10
+ };
@@ -0,0 +1,5 @@
1
+ import a from "./_createRange.js";
2
+ var r = a();
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,6 @@
1
+ function r() {
2
+ return [];
3
+ }
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,14 @@
1
+ import n from "./toNumber.js";
2
+ var t = 1 / 0, o = 17976931348623157e292;
3
+ function I(r) {
4
+ if (!r)
5
+ return r === 0 ? r : 0;
6
+ if (r = n(r), r === t || r === -t) {
7
+ var i = r < 0 ? -1 : 1;
8
+ return i * o;
9
+ }
10
+ return r === r ? r : 0;
11
+ }
12
+ export {
13
+ I as default
14
+ };
@@ -0,0 +1,22 @@
1
+ import n from "./_baseTrim.js";
2
+ import f from "./isObject.js";
3
+ import o from "./isSymbol.js";
4
+ var s = NaN, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, e = /^0o[0-7]+$/i, b = parseInt;
5
+ function O(r) {
6
+ if (typeof r == "number")
7
+ return r;
8
+ if (o(r))
9
+ return s;
10
+ if (f(r)) {
11
+ var t = typeof r.valueOf == "function" ? r.valueOf() : r;
12
+ r = f(t) ? t + "" : t;
13
+ }
14
+ if (typeof r != "string")
15
+ return r === 0 ? r : +r;
16
+ r = n(r);
17
+ var i = p.test(r);
18
+ return i || e.test(r) ? b(r.slice(2), i ? 2 : 8) : m.test(r) ? s : +r;
19
+ }
20
+ export {
21
+ O as default
22
+ };
@@ -0,0 +1,7 @@
1
+ import r from "./_baseToString.js";
2
+ function o(t) {
3
+ return t == null ? "" : r(t);
4
+ }
5
+ export {
6
+ o as default
7
+ };
@@ -1,4 +1,4 @@
1
- declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"checkbox-block\" \n class=\"checkbox-block-v2 esd-block-checkbox esd-checkbox-block esd-extension-block es-p20\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"39\" style=\"vertical-align: top\">\n <input type=\"checkbox\">\n </td>\n <td align=\"left\" width=\"816\" style=\"vertical-align: top\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
1
+ declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"checkbox-block\"\n class=\"\n checkbox-block\n checkbox-block-v2\n esd-block-checkbox\n esd-checkbox-block\n esd-extension-block es-p20\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"39\" style=\"vertical-align: top\">\n <input type=\"checkbox\">\n </td>\n <td align=\"left\" width=\"816\" style=\"vertical-align: top\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
2
2
  /**
3
3
  * @returns The template for the default checkbox block
4
4
  */
@@ -1,5 +1,19 @@
1
1
  import { Block, BlockCompositionType, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
2
  export declare const BLOCK_ID = "items-block";
3
+ /**
4
+ * Items Block extension for Stripo email editor.
5
+ *
6
+ * Displays personalized product items (cart items, browsed items, or purchased items)
7
+ * in a configurable card layout with horizontal or vertical orientation.
8
+ *
9
+ * Features:
10
+ * - Multiple product data sources (cart, browsed, purchased)
11
+ * - Configurable card composition (image, name, price, quantity, button)
12
+ * - Orientation control (horizontal/vertical)
13
+ * - Price formatting and currency display options
14
+ * - Product name trimming
15
+ * - Onboarding support
16
+ */
3
17
  export declare class ItemsBlock extends Block {
4
18
  getId(): string;
5
19
  getIcon(): string;
@@ -0,0 +1,15 @@
1
+ import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
+ import { CommonControl } from '../../../common-control';
3
+ import { ItemsBlockControlId } from '../../enums/controlEnums';
4
+ export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.PRICE_ORIENTATION;
5
+ export declare class PriceOrientationControl extends CommonControl {
6
+ private store;
7
+ getId(): string;
8
+ getTemplate(): string;
9
+ onRender(): void;
10
+ onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
11
+ _onPriceOrientationChange(value: string): void;
12
+ private _updateHorizontalLayout;
13
+ private _updateVerticalLayout;
14
+ _getPriceOrientation(): string;
15
+ }
@@ -13,7 +13,7 @@ export declare class ItemsBlockControl extends CommonControl {
13
13
  _getOrientation(): string;
14
14
  _getItemInCart(): string;
15
15
  _onOrientationChange(value: string): void;
16
- _onItemsTypeChange(value: string, oldValue: string): void;
16
+ _onItemsTypeChange(value: string): void;
17
17
  _onItemIdsChange(value: string): void;
18
18
  _initializeSelectItems(): void;
19
19
  _listenToFormUpdates(): void;
@@ -31,7 +31,10 @@ 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
- _updateButton(button: string): void;
34
+ /**
35
+ * @todo Optimize template reordering for performance.
36
+ * @description Reorders the template structure based on current orientation and visibility settings.
37
+ */
35
38
  _reOrderTemplate(): void;
36
39
  _updateDataTypeAttributes(itemsType: ProductType): void;
37
40
  _updateDataNumberAttributes(itemId: string): void;
@@ -44,6 +44,7 @@ export declare enum ItemsBlockControlId {
44
44
  PRICE_FORMATTED_PRICE = "items-block-price-formatted-price-control",
45
45
  PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
46
46
  PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
47
+ PRICE_ORIENTATION = "items-block-price-orientation-control",
47
48
  NAME_ALIGN = "items-block-name-align-control",
48
49
  NAME_COLOR = "items-block-name-color-control",
49
50
  NAME_SIZE = "items-block-name-size-control",
@@ -1,3 +1,4 @@
1
+ export declare const templateFirstLine = "<td align=\"center\" class=\"ins-product-td items-block items-block-v2\">";
1
2
  export declare const configAttributes: {
2
3
  TYPE: string;
3
4
  ITEMS_INDEX_SELECT_CONTROL_VALUE: string;
@@ -7,6 +8,7 @@ export declare const configAttributes: {
7
8
  PRODUCT_PRICE_FORMATTED: string;
8
9
  PRODUCT_PRICE_CURRENCY_SYMBOL: string;
9
10
  PRODUCT_PRICE_CURRENCY_LOCATION: string;
11
+ PRODUCT_ORIGINAL_PRICE_CONTROL_ORIENTATION: string;
10
12
  PRODUCT_BUTTON_LINK: string;
11
13
  PRODUCT_IMAGE_LINK: string;
12
14
  PRODUCT_NAME_CONTROL_VALUE: string;
@@ -158,3 +160,4 @@ export declare const productPairs: {
158
160
  };
159
161
  };
160
162
  };
163
+ export declare const itemsBlockDynamicVariables: string[];
@@ -40,6 +40,7 @@ export declare const DefaultConfigValues: {
40
40
  productPriceVisible: string;
41
41
  productOriginalPriceVisible: string;
42
42
  productButtonVisible: string;
43
+ productImageWidth: string;
43
44
  };
44
45
  export declare const ItemInCartOptions: {
45
46
  [x: string]: {
@@ -10,6 +10,7 @@ interface ItemsBlockState {
10
10
  currencySymbol: string;
11
11
  currencyLocation: string;
12
12
  formattedPrice: boolean;
13
+ priceOrientation: 'vertical' | 'horizontal';
13
14
  templateData: {
14
15
  imageSrc: string;
15
16
  name: string;
@@ -30,6 +31,7 @@ export declare const useItemsBlockStore: import("pinia").StoreDefinition<"guidoI
30
31
  setCurrencySymbol(currencySymbol: string): void;
31
32
  setCurrencyLocation(currencyLocation: string): void;
32
33
  setFormattedPrice(formattedPrice: boolean): void;
34
+ setPriceOrientation(priceOrientation: "vertical" | "horizontal"): void;
33
35
  setTemplateData(templateData: ItemsBlockState["templateData"]): void;
34
36
  updateFromAttributes(attributes: {
35
37
  itemsType?: string;
@@ -10,7 +10,15 @@ type TemplateParameters = {
10
10
  formattedPrice?: boolean;
11
11
  };
12
12
  /**
13
- * @returns The template for the default checkbox block
13
+ * Generates the default template for the Items Block.
14
+ * @param params - Template parameters including orientation, items type, item ID, and formatting options
15
+ * @param params.orientation - Layout orientation ('vertical' or 'horizontal')
16
+ * @param params.itemsType - Product data source type ('CART_ITEMS', 'BROWSED_ITEMS', or 'PURCHASED_ITEMS')
17
+ * @param params.itemId - The merge tag for the item (e.g., '{{Abandoned Cart Item (1) Url}}')
18
+ * @param params.currencySymbol - Currency symbol to display (e.g., 'USD')
19
+ * @param params.currencyLocation - Currency position ('0' for before, '1' for after)
20
+ * @param params.formattedPrice - Whether to use formatted price display
21
+ * @returns HTML template string for the Items Block
14
22
  */
15
23
  export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, formattedPrice, }: TemplateParameters): string;
16
24
  export default migrationTemplate;
@@ -42,3 +42,9 @@ export declare function syncButtonLinkFromAttributes(currentNode: ImmutableHtmlN
42
42
  * @param currentNode - The current node from the control (usually this.currentNode)
43
43
  */
44
44
  export declare function syncImageLinkFromAttributes(currentNode: ImmutableHtmlNode | undefined): void;
45
+ /**
46
+ * Reads price orientation value from esd-config-block attribute and updates the store.
47
+ * This makes the price orientation value mutable by syncing it from the DOM.
48
+ * @param currentNode - The current node from the control (usually this.currentNode)
49
+ */
50
+ export declare function syncPriceOrientationFromAttributes(currentNode: ImmutableHtmlNode | undefined): void;
@@ -1,4 +1,4 @@
1
- declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"radio-button-block\" \n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"radio-button-v2 esd-block-ra esd-radio-button-block esd-extension-block es-p10t es-p10b es-p30r es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;>\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
1
+ declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"radio-button-block\"\n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"\n radio-button\n radio-button-v2\n esd-block-ra\n esd-radio-button-block\n esd-extension-block\n es-p10t\n es-p10b\n es-p30r\n es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;>\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
2
2
  /**
3
3
  * @returns The template for the default checkbox block
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
1
+ import type { ImmutableHtmlElementNode } from '@stripoinc/ui-editor-extensions';
2
2
  import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
3
3
  export declare const UNSUBSCRIBE_BLOCK_ID = "unsubscribe-block";
4
4
  export declare class UnsubscribeBlock extends Block {
@@ -12,9 +12,8 @@ export declare class UnsubscribeBlock extends Block {
12
12
  getName(): string;
13
13
  getDescription(): string;
14
14
  getTemplate(): string;
15
- onCreated(node: ImmutableHtmlNode): void;
16
- onSelect(node: ImmutableHtmlNode): undefined;
17
- onDelete(node: ImmutableHtmlNode): undefined;
15
+ onSelect(node: ImmutableHtmlElementNode): void;
16
+ onDelete(node: ImmutableHtmlElementNode): void;
18
17
  onDestroy(): void;
19
18
  private _setupSelectEventListener;
20
19
  private _removeSelectEventListener;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.3-beta.ba79634",
3
+ "version": "1.0.3-beta.bd6a5dd",
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",
@@ -27,14 +27,7 @@
27
27
  "test:visual-update": "npx playwright test --update-snapshots --reporter html",
28
28
  "prepare": "husky"
29
29
  },
30
- "keywords": [
31
- "vue",
32
- "typescript",
33
- "email",
34
- "editor",
35
- "stripo",
36
- "useinsider"
37
- ],
30
+ "keywords": [],
38
31
  "author": "",
39
32
  "license": "ISC",
40
33
  "dependencies": {
@@ -48,10 +41,12 @@
48
41
  "vue": "2.7.14"
49
42
  },
50
43
  "devDependencies": {
44
+ "@commitlint/cli": "20.2.0",
45
+ "@commitlint/config-conventional": "20.2.0",
51
46
  "@cspell/eslint-plugin": "8.17.5",
52
47
  "@eslint/eslintrc": "3.3.0",
53
48
  "@eslint/js": "8.57.1",
54
- "@playwright/test": "1.55.0",
49
+ "@playwright/test": "1.57.0",
55
50
  "@stylistic/eslint-plugin": "3.1.0",
56
51
  "@stylistic/eslint-plugin-migrate": "3.1.0",
57
52
  "@types/eslint": "8.56.12",