@useinsider/guido 3.2.0-beta.c3bc14c → 3.2.0-beta.cb38cc7

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.
@@ -1,11 +1,11 @@
1
1
  import { ToasterTypeOptions as c } from "../../enums/toaster.js";
2
- import { COUPON_PLACEHOLDER_DEFAULT as l, COUPON_PLACEHOLDER_LIQUID as i } from "../../extensions/Blocks/CouponBlock/template.js";
2
+ import { COUPON_PLACEHOLDER_DEFAULT as i, COUPON_PLACEHOLDER_LIQUID as l } from "../../extensions/Blocks/CouponBlock/template.js";
3
3
  import { useToaster as m } from "../useToaster.js";
4
4
  import { useTranslations as p } from "../useTranslations.js";
5
5
  const u = /* @__PURE__ */ new Set([
6
- l,
7
- i
8
- ]), L = () => {
6
+ i,
7
+ l
8
+ ]), A = () => {
9
9
  const { showToaster: t } = m(), r = p();
10
10
  return { validateCouponBlockTags: (e) => {
11
11
  const n = new DOMParser().parseFromString(e, "text/html");
@@ -14,11 +14,11 @@ const u = /* @__PURE__ */ new Set([
14
14
  const a = ((o = s.textContent) == null ? void 0 : o.trim()) ?? "";
15
15
  return !u.has(a);
16
16
  }) ? (t({
17
- type: c.Alert,
17
+ type: c.Warning,
18
18
  message: r("newsletter.coupon-tag-modified")
19
19
  }), !1) : !0;
20
20
  } };
21
21
  };
22
22
  export {
23
- L as useCouponBlockValidator
23
+ A as useCouponBlockValidator
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.2.0-beta.c3bc14c",
3
+ "version": "3.2.0-beta.cb38cc7",
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",