@templatical/editor 0.17.0 → 0.18.0
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/{AiChatSidebar-LxCHMdcj.js → AiChatSidebar-BWIzNePR.js} +2 -2
- package/dist/{AiFeatureMenu-zwSmx9ZW.js → AiFeatureMenu-IoLW8c6m.js} +4 -4
- package/dist/{BlockIssueBadge-BQ1yB1me.js → BlockIssueBadge-FbyZBJlf.js} +2 -2
- package/dist/{CloudEditor-5ahgKRX8.js → CloudEditor-txLsdvcR.js} +10 -10
- package/dist/{CollaboratorBar-6PtX-1AS.js → CollaboratorBar-CpLOFt43.js} +2 -2
- package/dist/{ColorPicker-DfzDyNKe.js → ColorPicker-BXCcUYsZ.js} +3 -3
- package/dist/{CommentsSidebar-Cl93TN96.js → CommentsSidebar-C8xFu9qy.js} +3 -3
- package/dist/{CountdownBlock-DbXfzwae.js → CountdownBlock-CaU40Htk.js} +1 -1
- package/dist/{CountdownToolbar-BqaMWRyB.js → CountdownToolbar-CBbGAxmF.js} +3 -3
- package/dist/{DesignReferenceSidebar-jVrdS8wW.js → DesignReferenceSidebar-BWZgqmT-.js} +13 -14
- package/dist/{IssuesPanel-Bq3yXg6M.js → IssuesPanel-CBzfmzRM.js} +2 -2
- package/dist/{MergeTagSuggestion-jIpT_jmz.js → MergeTagSuggestion-DCuaSOPQ.js} +148 -162
- package/dist/{ModuleBrowserModal-B5IH3-1I.js → ModuleBrowserModal-C9qHpjaS.js} +7 -7
- package/dist/{ModulePreviewCanvas-CYOLWoZ9.js → ModulePreviewCanvas-xEMWMJwf.js} +2 -2
- package/dist/{NumberWithSuffix-9FG7mNnn.js → NumberWithSuffix-BreqtON_.js} +1 -1
- package/dist/{ParagraphEditor-duWYA6Vv.js → ParagraphEditor-iRJI_YbA.js} +19 -19
- package/dist/{RichTextEditorContent-DCzmVeyb.js → RichTextEditorContent-DkXai9qP.js} +4 -4
- package/dist/{SaveModuleDialog-BPUly5h3.js → SaveModuleDialog-DqDmk0rO.js} +6 -6
- package/dist/{SnapshotHistory-CmwU3nlN.js → SnapshotHistory-BVe5aCHi.js} +4 -4
- package/dist/{TemplateScoringPanel-CMrfa9Rd.js → TemplateScoringPanel-CRqt9-T5.js} +77 -77
- package/dist/{TestEmailModal-zfomMz9i.js → TestEmailModal-jpy4hnYZ.js} +3 -3
- package/dist/{TitleEditor-v0gtezZE.js → TitleEditor-Bf6Jv2qI.js} +10 -10
- package/dist/{TplModal-eGFG7k-y.js → TplModal-DAtccv6o.js} +3 -3
- package/dist/{blockTypeIcons-Dd0w4T0I.js → blockTypeIcons-CnlwyvkL.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-CtXsam7G.js → AiFeatureMenu-B4oJlFQI.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CtXsam7G.js.map → AiFeatureMenu-B4oJlFQI.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DR7cpDfQ.js → BlockIssueBadge-C7Ts7bT7.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-DR7cpDfQ.js.map → BlockIssueBadge-C7Ts7bT7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-YC5y3AwC.js → CloudEditor-BRO-2CcF.js} +9 -9
- package/dist/cdn/chunks/{CloudEditor-YC5y3AwC.js.map → CloudEditor-BRO-2CcF.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BOD2j8Kl.js → CollaboratorBar-BsWOjOCS.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BOD2j8Kl.js.map → CollaboratorBar-BsWOjOCS.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-CPMWLHpa.js → ColorPicker-DEtVX4gN.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-CPMWLHpa.js.map → ColorPicker-DEtVX4gN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BmGqb7Zi.js → CountdownBlock-BUGxk8GI.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BmGqb7Zi.js.map → CountdownBlock-BUGxk8GI.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BBwsdGbV.js → CountdownToolbar-C8tWWfGw.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BBwsdGbV.js.map → CountdownToolbar-C8tWWfGw.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-G0z-j3JS.js → IssuesPanel-C5izyrbm.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-G0z-j3JS.js.map → IssuesPanel-C5izyrbm.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js → MergeTagSuggestion-BmMmdcRg.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js.map → MergeTagSuggestion-BmMmdcRg.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DiLTY0ec.js → ModuleBrowserModal-DySKXKFF.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-DiLTY0ec.js.map → ModuleBrowserModal-DySKXKFF.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CdV5mEQ6.js → ModulePreviewCanvas-qqEvLBp2.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-CdV5mEQ6.js.map → ModulePreviewCanvas-qqEvLBp2.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-lqQlf0Uk.js → NumberWithSuffix-DttdbXsh.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-lqQlf0Uk.js.map → NumberWithSuffix-DttdbXsh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BYoZfURd.js → ParagraphEditor-CQJ23PXU.js} +17 -17
- package/dist/cdn/chunks/{ParagraphEditor-BYoZfURd.js.map → ParagraphEditor-CQJ23PXU.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BnPRnXxy.js → RichTextEditorContent-C4vxiXng.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-BnPRnXxy.js.map → RichTextEditorContent-C4vxiXng.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9hUeWyG.js → SaveModuleDialog-D5eddgzd.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-C9hUeWyG.js.map → SaveModuleDialog-D5eddgzd.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-wFvnU3Jr.js → TitleEditor-5TkwDrPL.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-wFvnU3Jr.js.map → TitleEditor-5TkwDrPL.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DNMvDz5B.js → blockTypeIcons-CbmN4aSw.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DNMvDz5B.js.map → blockTypeIcons-CbmN4aSw.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DxcxIlwT.js → extensions-B3M4IqhZ.js} +4 -4
- package/dist/cdn/chunks/{extensions-DxcxIlwT.js.map → extensions-B3M4IqhZ.js.map} +1 -1
- package/dist/cdn/chunks/{features-B3qgDBHf.js → features-HBwOEo4D.js} +748 -685
- package/dist/cdn/chunks/features-HBwOEo4D.js.map +1 -0
- package/dist/cdn/chunks/{icons-kiMqh99T.js → icons-D4vTsN4p.js} +2 -2
- package/dist/cdn/chunks/{icons-kiMqh99T.js.map → icons-D4vTsN4p.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-C5ogiZ4f.js → media-library-CfExuiSG.js} +3 -3
- package/dist/cdn/chunks/{media-library-C5ogiZ4f.js.map → media-library-CfExuiSG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BftAn_AJ.js → quality-nh1R42eb.js} +2 -2
- package/dist/cdn/chunks/{quality-BftAn_AJ.js.map → quality-nh1R42eb.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Cdlo4MVX.js → renderer-BLvlUayY.js} +4 -4
- package/dist/cdn/chunks/renderer-BLvlUayY.js.map +1 -0
- package/dist/cdn/chunks/{src-GBA8oUL2.js → src-Cks4RrLL.js} +4 -4
- package/dist/cdn/chunks/{src-GBA8oUL2.js.map → src-Cks4RrLL.js.map} +1 -1
- package/dist/cdn/chunks/{styles-B6rdq9JB.js → styles-CPCN13az.js} +10 -10
- package/dist/cdn/chunks/{styles-B6rdq9JB.js.map → styles-CPCN13az.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-zpXk5mN4.js → tiptap-C2indasq.js} +806 -811
- package/dist/cdn/chunks/tiptap-C2indasq.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +8 -7
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{dist-BReUTadj.js → dist-8TKf-Jpg.js} +2 -2
- package/dist/{dist-BE9m_i60.js → dist-BDVm2MrW.js} +1 -1
- package/dist/{dist-D1WmF8BF.js → dist-BKKo5wPC.js} +1 -1
- package/dist/{dist-DhY2di4U.js → dist-COSN3oDJ.js} +1 -1
- package/dist/{dist-CHLoeloJ.js → dist-CcX5sLpz.js} +1 -1
- package/dist/{dist-D9g4CSnm.js → dist-CgTKuIUN.js} +300 -298
- package/dist/{dist-i_Z7t67A.js → dist-Cx7IUM7J.js} +22 -15
- package/dist/{dist-Bm07Z3Es.js → dist-D6M5FAY7.js} +1 -1
- package/dist/{dist-DGEaAAIb.js → dist-DXAZUjj3.js} +1 -1
- package/dist/{dist-BXR1aBJV.js → dist-DbekZDmJ.js} +1 -1
- package/dist/{dist-DcKlLQ8d.js → dist-Dk5AdwoQ.js} +1 -1
- package/dist/{dist-BPPeDw62.js → dist-YSCPD13F.js} +1 -1
- package/dist/{extensions-B4lu0KkE.js → extensions-gpFdCinj.js} +5 -5
- package/dist/index.d.ts +37 -0
- package/dist/{keys-WVNarXg8.js → keys-DAxnnmXs.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{styles-mBSbDYeX.js → styles-CJ6WmkYL.js} +138 -138
- package/dist/templatical-editor.js +7 -6
- package/dist/{upload-BKg6hDRW.js → upload-y4gxiFp5.js} +3 -2
- package/dist/{useCloudI18n-CIKI0hCd.js → useCloudI18n-DIn74fK2.js} +1 -1
- package/dist/{useEditorCore-CaaHPKjm.js → useEditorCore-LJJNXXqC.js} +794 -731
- package/dist/{useI18n-0EU_JVe7.js → useI18n-OaMLWqhY.js} +1 -1
- package/dist/{useMergeTag-C7v6MVah.js → useMergeTag-CZMgwVvr.js} +2 -2
- package/dist/{usePopoverPosition-BDqqnMeo.js → usePopoverPosition-QDY09q9H.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/features-B3qgDBHf.js.map +0 -1
- package/dist/cdn/chunks/renderer-Cdlo4MVX.js.map +0 -1
- package/dist/cdn/chunks/tiptap-zpXk5mN4.js.map +0 -1
- package/dist/timeouts-Bmi_yePw.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as oe } from "./useI18n-
|
|
6
|
-
import { n as se, r as y, t as b } from "./blockTypeIcons-
|
|
3
|
+
import "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { N as ie, m as ae, z as v } from "./keys-DAxnnmXs.js";
|
|
5
|
+
import { t as oe } from "./useI18n-OaMLWqhY.js";
|
|
6
|
+
import { n as se, r as y, t as b } from "./blockTypeIcons-CnlwyvkL.js";
|
|
7
7
|
import { t as ce } from "./trash-2-CRBDolnR.js";
|
|
8
8
|
import { t as le } from "./x-Ctg_250T.js";
|
|
9
|
-
import { n as ue } from "./useCloudI18n-
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
9
|
+
import { n as ue } from "./useCloudI18n-DIn74fK2.js";
|
|
10
|
+
import { t as de } from "./TplModal-DAtccv6o.js";
|
|
11
11
|
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var fe = {
|
|
13
13
|
role: "dialog",
|
|
@@ -46,7 +46,7 @@ var fe = {
|
|
|
46
46
|
props: { visible: { type: Boolean } },
|
|
47
47
|
emits: ["close", "insert"],
|
|
48
48
|
setup(c, { emit: B }) {
|
|
49
|
-
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-
|
|
49
|
+
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-xEMWMJwf.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
|
|
50
50
|
let e = U.modules.value;
|
|
51
51
|
if (!G.value) return e;
|
|
52
52
|
let t = G.value.toLowerCase();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-
|
|
3
|
-
import { o as D } from "./keys-
|
|
2
|
+
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-LJJNXXqC.js";
|
|
3
|
+
import { o as D } from "./keys-DAxnnmXs.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
|
|
6
6
|
name: "PreviewSectionBlock",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { h, m as g, p as _ } from "./ColorPicker-
|
|
2
|
+
import { h, m as g, p as _ } from "./ColorPicker-BXCcUYsZ.js";
|
|
3
3
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = [
|
|
5
5
|
"aria-checked",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as S, E as C, S as w, x as T } from "./useEditorCore-
|
|
4
|
-
import { i as E, n as D } from "./usePopoverPosition-
|
|
5
|
-
import {
|
|
6
|
-
import { t as j } from "./useI18n-
|
|
3
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { i as E, n as D } from "./usePopoverPosition-QDY09q9H.js";
|
|
5
|
+
import { C as O, E as k, I as A, R as ee, g as te, m as ne, z as re } from "./keys-DAxnnmXs.js";
|
|
6
|
+
import { t as j } from "./useI18n-OaMLWqhY.js";
|
|
7
7
|
import { t as M } from "./createLucideIcon-FSF4peHQ.js";
|
|
8
|
-
import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-
|
|
8
|
+
import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DkXai9qP.js";
|
|
9
9
|
import { n as se, t as ce } from "./scan-line-IAMjPtRw.js";
|
|
10
10
|
import { t as le } from "./loader-circle-BT38qSm3.js";
|
|
11
11
|
import { n as ue, r as de, t as fe } from "./text-align-start-BwsA6QzC.js";
|
|
12
12
|
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-
|
|
13
|
+
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-BXCcUYsZ.js";
|
|
14
14
|
var L = M("list-ordered", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M11 5h10",
|
|
@@ -305,7 +305,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
305
305
|
"add-logic-tag"
|
|
306
306
|
],
|
|
307
307
|
setup(e, { emit: n }) {
|
|
308
|
-
let r = e, o = n, s = y(
|
|
308
|
+
let r = e, o = n, s = y(A, null), c = y(ee, null), b = re(te, "ParagraphToolbar"), x = D(), S = y(k, null), C = y(O, null), w = y(ne, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
|
|
309
309
|
function N(e) {
|
|
310
310
|
r.editor?.chain().focus().insertContent(e).run();
|
|
311
311
|
}
|
|
@@ -625,18 +625,18 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
625
625
|
editorName: "ParagraphEditor",
|
|
626
626
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
627
627
|
let [{ Editor: o, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
|
|
628
|
-
import("./dist-
|
|
629
|
-
import("./dist-
|
|
630
|
-
import("./dist-
|
|
631
|
-
import("./dist-
|
|
632
|
-
import("./dist-
|
|
633
|
-
import("./dist-
|
|
634
|
-
import("./dist-
|
|
635
|
-
import("./dist-
|
|
636
|
-
import("./dist-
|
|
637
|
-
import("./dist-
|
|
638
|
-
import("./dist-
|
|
639
|
-
import("./extensions-
|
|
628
|
+
import("./dist-8TKf-Jpg.js").then((e) => e.r),
|
|
629
|
+
import("./dist-Cx7IUM7J.js"),
|
|
630
|
+
import("./dist-CcX5sLpz.js"),
|
|
631
|
+
import("./dist-DXAZUjj3.js"),
|
|
632
|
+
import("./dist-Dk5AdwoQ.js"),
|
|
633
|
+
import("./dist-BKKo5wPC.js"),
|
|
634
|
+
import("./dist-D6M5FAY7.js"),
|
|
635
|
+
import("./dist-COSN3oDJ.js"),
|
|
636
|
+
import("./dist-DbekZDmJ.js"),
|
|
637
|
+
import("./dist-BDVm2MrW.js"),
|
|
638
|
+
import("./dist-YSCPD13F.js"),
|
|
639
|
+
import("./extensions-gpFdCinj.js")
|
|
640
640
|
]);
|
|
641
641
|
return {
|
|
642
642
|
TiptapEditor: o,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { n as b } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as w } from "./useI18n-
|
|
3
|
+
import { n as b } from "./usePopoverPosition-QDY09q9H.js";
|
|
4
|
+
import { I as x, R as S, m as C } from "./keys-DAxnnmXs.js";
|
|
5
|
+
import { t as w } from "./useI18n-OaMLWqhY.js";
|
|
6
6
|
import { t as T } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
7
|
import { t as E } from "./x-Ctg_250T.js";
|
|
8
|
-
import { t as D } from "./ColorPicker-
|
|
8
|
+
import { t as D } from "./ColorPicker-BXCcUYsZ.js";
|
|
9
9
|
var O = T("bold", [["path", {
|
|
10
10
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
11
11
|
key: "mg9rjx"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as S } from "./useI18n-
|
|
3
|
+
import "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { N as y, m as b, z as x } from "./keys-DAxnnmXs.js";
|
|
5
|
+
import { t as S } from "./useI18n-OaMLWqhY.js";
|
|
6
6
|
import { t as te } from "./loader-circle-BT38qSm3.js";
|
|
7
|
-
import { n as ne } from "./useCloudI18n-
|
|
7
|
+
import { n as ne } from "./useCloudI18n-DIn74fK2.js";
|
|
8
8
|
import { t as re } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
9
|
-
import { t as C } from "./TplModal-
|
|
9
|
+
import { t as C } from "./TplModal-DAtccv6o.js";
|
|
10
10
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var w = ["aria-busy"], T = {
|
|
12
12
|
id: "tpl-save-module-title",
|
|
@@ -26,7 +26,7 @@ var w = ["aria-busy"], T = {
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["close", "saved"],
|
|
28
28
|
setup(c, { emit: R }) {
|
|
29
|
-
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b
|
|
29
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = x(b, "SaveModuleDialog"), W = x(y, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
|
|
30
30
|
function X(e, t) {
|
|
31
31
|
let n = e.type;
|
|
32
32
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import { i as _ } from "./usePopoverPosition-
|
|
5
|
-
import { t as v } from "./useI18n-
|
|
3
|
+
import "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { i as _ } from "./usePopoverPosition-QDY09q9H.js";
|
|
5
|
+
import { t as v } from "./useI18n-OaMLWqhY.js";
|
|
6
6
|
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
7
|
import { t as b } from "./chevron-down-dClfxKrJ.js";
|
|
8
8
|
import { t as x } from "./clock-m7TwQw4b.js";
|
|
9
9
|
import { t as S } from "./loader-circle-BT38qSm3.js";
|
|
10
|
-
import { n as C } from "./useCloudI18n-
|
|
10
|
+
import { n as C } from "./useCloudI18n-DIn74fK2.js";
|
|
11
11
|
import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
12
12
|
var T = y("chevron-left", [["path", {
|
|
13
13
|
d: "m15 18-6-6 6-6",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { n as
|
|
17
|
-
var
|
|
3
|
+
import { P as re, m as ie, w as ae, z as _ } from "./keys-DAxnnmXs.js";
|
|
4
|
+
import { t as v } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
|
+
import { t as y } from "./chevron-down-dClfxKrJ.js";
|
|
6
|
+
import { t as b } from "./circle-alert-Bhzm-fNA.js";
|
|
7
|
+
import { n as x, t as S } from "./refresh-cw-as5Bmg4X.js";
|
|
8
|
+
import { t as oe } from "./info-BNP8yGsK.js";
|
|
9
|
+
import { t as C } from "./loader-circle-BT38qSm3.js";
|
|
10
|
+
import { t as w } from "./shield-check-YYDhGroE.js";
|
|
11
|
+
import { t as T } from "./sparkles-CCwQMMMZ.js";
|
|
12
|
+
import { t as se } from "./triangle-alert-B2g0ALvq.js";
|
|
13
|
+
import { t as ce } from "./x-Ctg_250T.js";
|
|
14
|
+
import { t as le } from "./LoadingTrack-KIcREPlS.js";
|
|
15
|
+
import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { n as ue } from "./useCloudI18n-DIn74fK2.js";
|
|
17
|
+
var D = v("shield-x", [
|
|
18
18
|
["path", {
|
|
19
19
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
20
20
|
key: "oel41y"
|
|
@@ -27,71 +27,71 @@ var O = y("shield-x", [
|
|
|
27
27
|
d: "m9.5 9.5 5 5",
|
|
28
28
|
key: "18nt4w"
|
|
29
29
|
}]
|
|
30
|
-
]),
|
|
30
|
+
]), O = v("zap", [["path", {
|
|
31
31
|
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
32
32
|
key: "1xq2db"
|
|
33
33
|
}]]);
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/cloud/utils/scoringStyles.ts
|
|
36
|
-
function
|
|
36
|
+
function k(e) {
|
|
37
37
|
return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function A(e) {
|
|
40
40
|
return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function j(e) {
|
|
43
43
|
return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function M(e) {
|
|
46
46
|
return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
|
|
50
|
-
var
|
|
50
|
+
var N = {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
53
|
-
},
|
|
53
|
+
}, P = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, F = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["title"], R = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, z = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
56
|
-
},
|
|
56
|
+
}, B = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, V = {
|
|
57
57
|
key: 1,
|
|
58
58
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
59
|
-
},
|
|
59
|
+
}, H = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, U = {
|
|
60
60
|
key: 2,
|
|
61
61
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
62
|
-
},
|
|
62
|
+
}, de = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, fe = {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
65
|
-
},
|
|
65
|
+
}, pe = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
68
|
-
},
|
|
68
|
+
}, me = ["onClick"], he = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ge = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
71
|
-
},
|
|
71
|
+
}, _e = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
74
|
-
},
|
|
74
|
+
}, ve = {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
77
|
-
},
|
|
77
|
+
}, ye = { class: "tpl:flex tpl:items-start tpl:gap-2" }, be = { class: "tpl:flex-1 tpl:min-w-0" }, xe = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, Se = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Ce = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
|
|
80
|
-
},
|
|
80
|
+
}, we = {
|
|
81
81
|
key: 1,
|
|
82
82
|
class: "tpl:mt-2 tpl:flex tpl:justify-center"
|
|
83
|
-
},
|
|
83
|
+
}, Te = ["disabled", "onClick"], Ee = {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
|
|
86
|
-
},
|
|
86
|
+
}, De = {
|
|
87
87
|
key: 3,
|
|
88
88
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
89
|
-
},
|
|
89
|
+
}, W = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ E(/* @__PURE__ */ c({
|
|
90
90
|
__name: "TemplateScoringPanel",
|
|
91
91
|
props: { visible: { type: Boolean } },
|
|
92
92
|
emits: ["close"],
|
|
93
|
-
setup(c, { emit:
|
|
94
|
-
let
|
|
93
|
+
setup(c, { emit: v }) {
|
|
94
|
+
let E = c, G = v, { t: K } = ue(), q = _(ie, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ae, []), X = s({
|
|
95
95
|
spam: !0,
|
|
96
96
|
readability: !0,
|
|
97
97
|
accessibility: !0,
|
|
@@ -106,15 +106,15 @@ var P = {
|
|
|
106
106
|
"accessibility",
|
|
107
107
|
"bestPractices"
|
|
108
108
|
], Ae = {
|
|
109
|
-
spam:
|
|
110
|
-
readability:
|
|
111
|
-
accessibility:
|
|
112
|
-
bestPractices:
|
|
109
|
+
spam: D,
|
|
110
|
+
readability: x,
|
|
111
|
+
accessibility: T,
|
|
112
|
+
bestPractices: O
|
|
113
113
|
};
|
|
114
114
|
function Q() {
|
|
115
115
|
J.score(q.content.value, Y);
|
|
116
116
|
}
|
|
117
|
-
r(() =>
|
|
117
|
+
r(() => E.visible, (e) => {
|
|
118
118
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
119
119
|
});
|
|
120
120
|
async function je(e) {
|
|
@@ -137,50 +137,50 @@ var P = {
|
|
|
137
137
|
"leave-from-class": "tpl:translate-x-0",
|
|
138
138
|
"leave-to-class": "tpl:translate-x-full"
|
|
139
139
|
}, {
|
|
140
|
-
default: ee(() => [c.visible ? (a(), u("div",
|
|
140
|
+
default: ee(() => [c.visible ? (a(), u("div", N, [l("div", P, [l("div", F, [d(m(w), {
|
|
141
141
|
size: 13,
|
|
142
142
|
"stroke-width": 2
|
|
143
|
-
}), l("span", null, o(m(K).scoring.title), 1)]), l("div",
|
|
143
|
+
}), l("span", null, o(m(K).scoring.title), 1)]), l("div", I, [m(J).scoringResult.value && !m(J).isScoring.value ? (a(), u("button", {
|
|
144
144
|
key: 0,
|
|
145
145
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
146
146
|
title: m(K).scoring.rescore,
|
|
147
147
|
onClick: s[0] ||= (e) => Q()
|
|
148
|
-
}, [d(m(
|
|
148
|
+
}, [d(m(S), {
|
|
149
149
|
size: 14,
|
|
150
150
|
"stroke-width": 2
|
|
151
|
-
})], 8,
|
|
151
|
+
})], 8, L)) : g("", !0), l("button", {
|
|
152
152
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
153
153
|
onClick: s[1] ||= (e) => G("close")
|
|
154
|
-
}, [d(m(
|
|
154
|
+
}, [d(m(ce), {
|
|
155
155
|
size: 14,
|
|
156
156
|
"stroke-width": 2
|
|
157
|
-
})])])]), l("div",
|
|
158
|
-
d(m(
|
|
157
|
+
})])])]), l("div", R, [m(J).isScoring.value ? (a(), u("div", z, [l("p", B, o(m(K).scoring.scoring), 1), d(le, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (a(), u("div", V, [
|
|
158
|
+
d(m(b), {
|
|
159
159
|
size: 32,
|
|
160
160
|
"stroke-width": 1.5,
|
|
161
161
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
162
162
|
}),
|
|
163
|
-
l("p",
|
|
163
|
+
l("p", H, o(m(K).scoring.error), 1),
|
|
164
164
|
l("button", {
|
|
165
165
|
class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
|
|
166
166
|
onClick: s[2] ||= (e) => Q()
|
|
167
|
-
}, [d(m(
|
|
167
|
+
}, [d(m(S), {
|
|
168
168
|
size: 12,
|
|
169
169
|
"stroke-width": 2
|
|
170
170
|
}), p(" " + o(m(K).scoring.rescore), 1)])
|
|
171
|
-
])) : m(J).scoringResult.value ? (a(), u("div",
|
|
171
|
+
])) : m(J).scoringResult.value ? (a(), u("div", U, [
|
|
172
172
|
l("div", {
|
|
173
173
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
174
|
-
style: t({ backgroundColor: m(
|
|
174
|
+
style: t({ backgroundColor: m(A)(m(J).scoringResult.value.score) })
|
|
175
175
|
}, [
|
|
176
176
|
l("span", {
|
|
177
177
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
178
|
-
style: t({ color: m(
|
|
178
|
+
style: t({ color: m(k)(m(J).scoringResult.value.score) })
|
|
179
179
|
}, o(m(J).scoringResult.value.score), 5),
|
|
180
|
-
l("span",
|
|
181
|
-
$() > 0 ? (a(), u("span",
|
|
180
|
+
l("span", de, o(m(K).scoring.overallScore), 1),
|
|
181
|
+
$() > 0 ? (a(), u("span", fe, o($()) + " " + o(m(K).scoring.findings), 1)) : g("", !0)
|
|
182
182
|
], 4),
|
|
183
|
-
m(J).fixError.value ? (a(), u("div",
|
|
183
|
+
m(J).fixError.value ? (a(), u("div", pe, [d(m(b), {
|
|
184
184
|
size: 14,
|
|
185
185
|
"stroke-width": 2,
|
|
186
186
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -195,60 +195,60 @@ var P = {
|
|
|
195
195
|
(a(), f(i(Ae[r]), {
|
|
196
196
|
size: 14,
|
|
197
197
|
"stroke-width": 2,
|
|
198
|
-
style: t({ color: m(
|
|
198
|
+
style: t({ color: m(k)(m(J).scoringResult.value.categories[r].score) })
|
|
199
199
|
}, null, 8, ["style"])),
|
|
200
|
-
l("span",
|
|
200
|
+
l("span", he, o(m(K).scoring.categories[r]), 1),
|
|
201
201
|
l("span", {
|
|
202
202
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
203
203
|
style: t({
|
|
204
|
-
color: m(
|
|
205
|
-
backgroundColor: m(
|
|
204
|
+
color: m(k)(m(J).scoringResult.value.categories[r].score),
|
|
205
|
+
backgroundColor: m(A)(m(J).scoringResult.value.categories[r].score)
|
|
206
206
|
})
|
|
207
207
|
}, o(m(J).scoringResult.value.categories[r].score), 5),
|
|
208
|
-
m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span",
|
|
209
|
-
d(m(
|
|
208
|
+
m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span", ge, o(m(J).scoringResult.value.categories[r].findings.length), 1)) : g("", !0),
|
|
209
|
+
d(m(y), {
|
|
210
210
|
size: 12,
|
|
211
211
|
"stroke-width": 2,
|
|
212
212
|
class: n(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[r] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
213
213
|
}, null, 8, ["class"])
|
|
214
|
-
], 8,
|
|
214
|
+
], 8, me), X.value[r] ? (a(), u("div", _e, [m(J).scoringResult.value.categories[r].findings.length === 0 ? (a(), u("div", ve, o(m(K).scoring.noFindings), 1)) : g("", !0), (a(!0), u(h, null, e(m(J).scoringResult.value.categories[r].findings, (e) => (a(), u("div", {
|
|
215
215
|
key: e.id,
|
|
216
216
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
217
|
-
}, [l("div",
|
|
217
|
+
}, [l("div", ye, [(a(), f(i(e.severity === "high" ? m(b) : e.severity === "medium" ? m(se) : m(oe)), {
|
|
218
218
|
size: 13,
|
|
219
219
|
"stroke-width": 2,
|
|
220
220
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
221
|
-
style: t({ color: m(
|
|
222
|
-
}, null, 8, ["style"])), l("div",
|
|
223
|
-
l("div",
|
|
221
|
+
style: t({ color: m(j)(e.severity) })
|
|
222
|
+
}, null, 8, ["style"])), l("div", be, [
|
|
223
|
+
l("div", xe, [l("span", {
|
|
224
224
|
class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
|
|
225
225
|
style: t({
|
|
226
|
-
color: m(
|
|
227
|
-
backgroundColor: m(
|
|
226
|
+
color: m(j)(e.severity),
|
|
227
|
+
backgroundColor: m(M)(e.severity)
|
|
228
228
|
})
|
|
229
|
-
}, o(m(K).scoring.severity[e.severity]), 5), l("span",
|
|
230
|
-
e.suggestion ? (a(), u("p",
|
|
231
|
-
e.blockId ? (a(), u("div",
|
|
229
|
+
}, o(m(K).scoring.severity[e.severity]), 5), l("span", Se, o(e.message), 1)]),
|
|
230
|
+
e.suggestion ? (a(), u("p", Ce, o(e.suggestion), 1)) : g("", !0),
|
|
231
|
+
e.blockId ? (a(), u("div", we, [l("button", {
|
|
232
232
|
class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
|
|
233
233
|
style: { "background-color": "transparent" },
|
|
234
234
|
disabled: m(J).fixingFindingId.value !== null,
|
|
235
235
|
onClick: (t) => je(e)
|
|
236
|
-
}, [m(J).fixingFindingId.value === e.id ? (a(), f(m(
|
|
236
|
+
}, [m(J).fixingFindingId.value === e.id ? (a(), f(m(C), {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "tpl-spinner",
|
|
239
239
|
size: 11,
|
|
240
240
|
"stroke-width": 2
|
|
241
|
-
})) : (a(), f(m(
|
|
241
|
+
})) : (a(), f(m(T), {
|
|
242
242
|
key: 1,
|
|
243
243
|
size: 11,
|
|
244
244
|
"stroke-width": 2
|
|
245
|
-
})), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8,
|
|
245
|
+
})), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, Te), m(J).fixError.value ? (a(), u("p", Ee, o(m(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
|
|
246
246
|
])])]))), 128))])) : g("", !0)])), 64))
|
|
247
|
-
])) : (a(), u("div",
|
|
247
|
+
])) : (a(), u("div", De, [d(m(w), {
|
|
248
248
|
size: 32,
|
|
249
249
|
"stroke-width": 1.5,
|
|
250
250
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
251
|
-
}), l("p",
|
|
251
|
+
}), l("p", W, o(m(K).scoring.emptyState), 1)])), l("p", Oe, o(m(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
|
|
252
252
|
_: 1
|
|
253
253
|
}));
|
|
254
254
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, l as d, m as f, nt as p, r as m, u as h, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-LJJNXXqC.js";
|
|
4
4
|
import { t as v } from "./loader-circle-BT38qSm3.js";
|
|
5
|
-
import { n as y } from "./useCloudI18n-
|
|
6
|
-
import { t as b } from "./TplModal-
|
|
5
|
+
import { n as y } from "./useCloudI18n-DIn74fK2.js";
|
|
6
|
+
import { t as b } from "./TplModal-DAtccv6o.js";
|
|
7
7
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var x = ["aria-busy"], S = {
|
|
9
9
|
id: "tpl-test-email-title",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { S as ee, x as te } from "./useEditorCore-
|
|
3
|
-
import { n as ne } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as re } from "./useI18n-
|
|
6
|
-
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-
|
|
2
|
+
import { S as ee, x as te } from "./useEditorCore-LJJNXXqC.js";
|
|
3
|
+
import { n as ne } from "./usePopoverPosition-QDY09q9H.js";
|
|
4
|
+
import { C as _, E as v, I as y, R as b } from "./keys-DAxnnmXs.js";
|
|
5
|
+
import { t as re } from "./useI18n-OaMLWqhY.js";
|
|
6
|
+
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DkXai9qP.js";
|
|
7
7
|
import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
|
|
8
8
|
import { t as C } from "./loader-circle-BT38qSm3.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -24,17 +24,17 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["done"],
|
|
26
26
|
setup(a, { emit: P }) {
|
|
27
|
-
let F = a, I = P, L = g(
|
|
27
|
+
let F = a, I = P, L = g(y, null), R = g(b, null), z = ne(), B = g(v, null), le = g(_, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
|
|
28
28
|
blockId: () => F.block.id,
|
|
29
29
|
blockContent: () => F.block.content,
|
|
30
30
|
onDone: () => I("done"),
|
|
31
31
|
editorName: "TitleEditor",
|
|
32
32
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
33
33
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
34
|
-
import("./dist-
|
|
35
|
-
import("./dist-
|
|
36
|
-
import("./dist-
|
|
37
|
-
import("./extensions-
|
|
34
|
+
import("./dist-8TKf-Jpg.js").then((e) => e.r),
|
|
35
|
+
import("./dist-Cx7IUM7J.js"),
|
|
36
|
+
import("./dist-CcX5sLpz.js"),
|
|
37
|
+
import("./extensions-gpFdCinj.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as e, R as t, Y as n, _ as r, c as i, d as a, h as o, i as s, j as c, l, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as g } from "./useEditorCore-
|
|
4
|
-
import { n as _ } from "./usePopoverPosition-
|
|
5
|
-
import {
|
|
3
|
+
import { D as g } from "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { n as _ } from "./usePopoverPosition-QDY09q9H.js";
|
|
5
|
+
import { R as v } from "./keys-DAxnnmXs.js";
|
|
6
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
8
8
|
__name: "TplModal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-
|
|
1
|
+
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-LJJNXXqC.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-FSF4peHQ.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
5
|
-
"initialFileCount":
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
2
|
+
"version": "0.18.0",
|
|
3
|
+
"initialGzipBytes": 283514,
|
|
4
|
+
"initialRawBytes": 1017713,
|
|
5
|
+
"initialFileCount": 41,
|
|
6
|
+
"lazyGzipBytes": 181543,
|
|
7
|
+
"lazyRawBytes": 596308,
|
|
8
8
|
"lazyFileCount": 46,
|
|
9
|
-
"generatedAt": "2026-07-
|
|
9
|
+
"generatedAt": "2026-07-23T20:58:55.516Z"
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-D840DIZB.js";
|
|
2
|
-
import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-
|
|
2
|
+
import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-HBwOEo4D.js";
|
|
3
3
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = {
|
|
5
5
|
class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
@@ -56,4 +56,4 @@ var v = {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { C as default };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=AiFeatureMenu-
|
|
59
|
+
//# sourceMappingURL=AiFeatureMenu-B4oJlFQI.js.map
|