@useinsider/guido 3.9.0-beta.8ad06e1 → 3.9.0-beta.92efc6f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.9.0-beta.8ad06e1",
3
+ "version": "3.9.0-beta.92efc6f",
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",
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "guido": {
106
106
  "stripo": {
107
- "version": "2.66.0"
107
+ "version": "2.68.0"
108
108
  }
109
109
  }
110
110
  }
@@ -1,32 +0,0 @@
1
- import { useToaster as m } from "../composables/useToaster.js";
2
- import { useTranslations as c } from "../composables/useTranslations.js";
3
- import { BLANK_TEMPLATE_HTML_URL as p, BLANK_TEMPLATE_CSS_URL as T } from "../enums/defaults.js";
4
- import { ToasterTypeOptions as i } from "../enums/toaster.js";
5
- const a = 3;
6
- let e = null;
7
- const n = async (r) => {
8
- const t = await fetch(r);
9
- if (!t.ok)
10
- throw new Error(`Blank template request failed: ${t.status}`);
11
- return t.text();
12
- }, L = () => {
13
- const { showToaster: r } = m(), t = c();
14
- return { getBlankTemplate: async () => {
15
- if (e)
16
- return e;
17
- for (let s = 1; s <= a; s++)
18
- try {
19
- const [o, l] = await Promise.all([
20
- n(p),
21
- n(T)
22
- ]);
23
- return e = { html: o, css: l }, e;
24
- } catch (o) {
25
- console.error(`Failed to fetch blank template (attempt ${s}/${a}):`, o);
26
- }
27
- return r({ type: i.Alert, message: t("errors-pages.undefined-response") }), { html: "", css: "" };
28
- } };
29
- };
30
- export {
31
- L as useBlankTemplate
32
- };
@@ -1,11 +0,0 @@
1
- import type { Template } from '@@/Types/stripo';
2
- /**
3
- * Fetches the blank starter template (html + css) from the email CDN — the single
4
- * source of truth shared with email-fe. Retries a few times, caches the result for
5
- * the session, and on persistent failure returns an empty template (the editor still
6
- * opens) plus a toaster. Kept separate from stripoApi: this is a CDN asset fetch, not
7
- * a Stripo backend call.
8
- */
9
- export declare const useBlankTemplate: () => {
10
- getBlankTemplate: () => Promise<Template>;
11
- };