@templatical/editor 0.51.0 → 0.51.1

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@templatical/editor",
3
3
  "description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
4
- "version": "0.51.0",
4
+ "version": "0.51.1",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "devDependencies": {
7
7
  "@lucide/vue": "^1.61.0",
8
- "@templatical/core": "0.51.0",
9
- "@templatical/media-library": "0.51.0",
10
- "@templatical/types": "0.51.0",
8
+ "@templatical/core": "0.51.1",
9
+ "@templatical/media-library": "0.51.1",
10
+ "@templatical/types": "0.51.1",
11
11
  "@tiptap/core": "^3.32.0",
12
12
  "@tiptap/extension-color": "^3.32.0",
13
13
  "@tiptap/extension-font-family": "^3.32.0",
@@ -63,11 +63,11 @@
63
63
  "license": "FSL-1.1-MIT",
64
64
  "module": "./dist/templatical-editor.js",
65
65
  "optionalDependencies": {
66
- "@templatical/quality": "0.51.0"
66
+ "@templatical/quality": "0.51.1"
67
67
  },
68
68
  "peerDependencies": {
69
- "@templatical/quality": "0.51.0",
70
- "@templatical/renderer": "0.51.0",
69
+ "@templatical/quality": "0.51.1",
70
+ "@templatical/renderer": "0.51.1",
71
71
  "pusher-js": "^8.6.0"
72
72
  },
73
73
  "peerDependenciesMeta": {
@@ -1,36 +0,0 @@
1
- import { At as e, Mt as t, _ as n, c as r, d as i, f as a, g as o, j as s, ot as c, y as l } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
- import { c as u } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
- import { t as d } from "./useI18n-BdoY7xDE.js";
4
- import { t as f } from "./sparkles-Ce0Qz0ox.js";
5
- //#region src/components/ai/AiHeaderMenu.vue?vue&type=script&setup=true&lang.ts
6
- var p = [
7
- "aria-pressed",
8
- "aria-label",
9
- "title"
10
- ], m = /* @__PURE__ */ l({
11
- __name: "AiHeaderMenu",
12
- props: { feature: {} },
13
- setup(l) {
14
- let m = l, { t: h } = d(), g = r(() => m.feature.panel.value === "chat");
15
- function _() {
16
- g.value ? m.feature.close() : m.feature.open("chat");
17
- }
18
- return (r, d) => l.feature.isAvailable.value && l.feature.has("chat") ? (s(), a("button", {
19
- key: 0,
20
- type: "button",
21
- "data-testid": "ai-menu-trigger",
22
- "aria-pressed": g.value,
23
- "aria-label": c(h).ai.menu.chat,
24
- title: c(h).ai.menu.chat,
25
- class: e(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", g.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
26
- onClick: u(_, ["stop"])
27
- }, [n(c(f), {
28
- size: 16,
29
- "stroke-width": 2,
30
- class: "tpl-ai-btn-icon",
31
- "aria-hidden": "true"
32
- }), o(" " + t(c(h).ai.menu.button), 1)], 10, p)) : i("", !0);
33
- }
34
- });
35
- //#endregion
36
- export { m as default };
@@ -1,37 +0,0 @@
1
- import { C as e, P as t, _ as n, b as r, dt as i, g as a, l as o, lt as s, ot as c, p as l, x as u } from "./draggable-DZ0gwUJ6.js";
2
- import { t as d } from "./useI18n-CbVubQhM.js";
3
- import { D as f } from "./icons-DNX6StSs.js";
4
- //#region src/components/ai/AiHeaderMenu.vue?vue&type=script&setup=true&lang.ts
5
- var p = [
6
- "aria-pressed",
7
- "aria-label",
8
- "title"
9
- ], m = /* @__PURE__ */ e({
10
- __name: "AiHeaderMenu",
11
- props: { feature: {} },
12
- setup(e) {
13
- let m = e, { t: h } = d(), g = l(() => m.feature.panel.value === "chat");
14
- function _() {
15
- g.value ? m.feature.close() : m.feature.open("chat");
16
- }
17
- return (l, d) => e.feature.isAvailable.value && e.feature.has("chat") ? (t(), n("button", {
18
- key: 0,
19
- type: "button",
20
- "data-testid": "ai-menu-trigger",
21
- "aria-pressed": g.value,
22
- "aria-label": c(h).ai.menu.chat,
23
- title: c(h).ai.menu.chat,
24
- class: s(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", g.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
25
- onClick: o(_, ["stop"])
26
- }, [u(c(f), {
27
- size: 16,
28
- "stroke-width": 2,
29
- class: "tpl-ai-btn-icon",
30
- "aria-hidden": "true"
31
- }), r(" " + i(c(h).ai.menu.button), 1)], 10, p)) : a("", !0);
32
- }
33
- });
34
- //#endregion
35
- export { m as default };
36
-
37
- //# sourceMappingURL=AiHeaderMenu-oldAAFyL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AiHeaderMenu-oldAAFyL.js","names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_withModifiers","_createVNode","_createTextVNode","_toDisplayString","_createCommentVNode","_sfc_main","defineComponent","openBlock","createElementBlock","createTextVNode","toDisplayString","createCommentVNode","withModifiers","normalizeClass","unref","computed","createVNode","useI18n","Sparkles","_hoisted_1","AiHeaderMenu_default","props","__props","isActive","toggle","t"],"sources":["../../../src/components/ai/AiHeaderMenu.vue","../../../src/components/ai/AiHeaderMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { UseAiFeatureReturn } from \"../../composables/useAiFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: Pick<\n UseAiFeatureReturn,\n \"panel\" | \"isAvailable\" | \"has\" | \"open\" | \"close\"\n >;\n}>();\n\nconst { t } = useI18n();\nconst isActive = computed(() => props.feature.panel.value === \"chat\");\n\nfunction toggle(): void {\n if (isActive.value) props.feature.close();\n else props.feature.open(\"chat\");\n}\n</script>\n\n<template>\n <button\n v-if=\"feature.isAvailable.value && feature.has('chat')\"\n type=\"button\"\n data-testid=\"ai-menu-trigger\"\n :aria-pressed=\"isActive\"\n :aria-label=\"t.ai.menu.chat\"\n :title=\"t.ai.menu.chat\"\n class=\"tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200\"\n :class=\"isActive ? 'tpl-ai-btn--active' : 'tpl-ai-btn--idle'\"\n @click.stop=\"toggle\"\n >\n <Sparkles\n :size=\"16\"\n :stroke-width=\"2\"\n class=\"tpl-ai-btn-icon\"\n aria-hidden=\"true\"\n />\n {{ t.ai.menu.button }}\n </button>\n</template>\n","<script setup lang=\"ts\">\nimport { Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { UseAiFeatureReturn } from \"../../composables/useAiFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: Pick<\n UseAiFeatureReturn,\n \"panel\" | \"isAvailable\" | \"has\" | \"open\" | \"close\"\n >;\n}>();\n\nconst { t } = useI18n();\nconst isActive = computed(() => props.feature.panel.value === \"chat\");\n\nfunction toggle(): void {\n if (isActive.value) props.feature.close();\n else props.feature.open(\"chat\");\n}\n</script>\n\n<template>\n <button\n v-if=\"feature.isAvailable.value && feature.has('chat')\"\n type=\"button\"\n data-testid=\"ai-menu-trigger\"\n :aria-pressed=\"isActive\"\n :aria-label=\"t.ai.menu.chat\"\n :title=\"t.ai.menu.chat\"\n class=\"tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200\"\n :class=\"isActive ? 'tpl-ai-btn--active' : 'tpl-ai-btn--idle'\"\n @click.stop=\"toggle\"\n >\n <Sparkles\n :size=\"16\"\n :stroke-width=\"2\"\n class=\"tpl-ai-btn-icon\"\n aria-hidden=\"true\"\n />\n {{ t.ai.menu.button }}\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;EAMA,IAAMyB,IAAQC,GAOR,EAAE,SAAML,EAAQ,GAChBM,IAAWR,QAAeM,EAAM,QAAQ,MAAM,UAAU,MAAM;EAEpE,SAASG,IAAe;GACtB,AAAID,EAAS,QAAOF,EAAM,QAAQ,MAAM,IACnCA,EAAM,QAAQ,KAAK,MAAM;EAChC;E,iBAKUC,EAAA,QAAQ,YAAY,SAASA,EAAA,QAAQ,IAAG,MAAA,KADhD1B,EAAA,GAAAC,EAkBS,UAAA;;GAhBP,MAAK;GACL,eAAY;GACX,gBAAc0B,EAAA;GACd,cAAYzB,EAAA2B,CAAA,CAAC,CAAC,GAAG,KAAK;GACtB,OAAO3B,EAAA2B,CAAA,CAAC,CAAC,GAAG,KAAK;GAClB,OAAK1B,EAAA,CAAC,wNACEwB,EAAA,QAAQ,uBAAA,kBAAA,CAAA;GACf,SAAKvB,EAAOwB,GAAM,CAAA,MAAA,CAAA;E,IAEnBvB,EAKEH,EAAAoB,CAAA,GAAA;GAJC,MAAM;GACN,gBAAc;GACf,OAAM;GACN,eAAY;E,IACZhB,EAAA,MACFC,EAAGL,EAAA2B,CAAA,CAAC,CAAC,GAAG,KAAK,MAAM,GAAA,CAAA,C"}