@templatical/editor 0.13.0 → 0.15.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-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/CloudEditor-DptuSf7A.js +1234 -0
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/TitleEditor-D4t_gZZJ.js +193 -0
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
- package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
- package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
- package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
- package/dist/keys-Cv8-8GsD.js +10 -0
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/scan-line-DgijVq9y.js +31 -0
- package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +155 -152
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
- package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
- package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
- package/package.json +27 -27
- package/dist/CloudEditor-DaEfipBn.js +0 -1230
- package/dist/CountdownBlock-DO9fziwf.js +0 -92
- package/dist/CountdownToolbar-BeII06yJ.js +0 -210
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
- package/dist/TitleEditor-DbNOcvhR.js +0 -177
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
- package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
- package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/createLucideIcon-CmPAC-gt.js +0 -43
- package/dist/dist-BNEdeWub.js +0 -5
- package/dist/dist-Cgry6fNv.js +0 -382
- package/dist/dist-u0iIJH3V.js +0 -5
- package/dist/extensions-XPlNAKIL.js +0 -1720
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/styles-D0RCAWhB.js +0 -3647
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -101,7 +101,9 @@ var e = {
|
|
|
101
101
|
column2: "2 Columns",
|
|
102
102
|
column3: "3 Columns",
|
|
103
103
|
ratio12: "1:2 Ratio",
|
|
104
|
-
ratio21: "2:1 Ratio"
|
|
104
|
+
ratio21: "2:1 Ratio",
|
|
105
|
+
borderRadius: "Border Radius",
|
|
106
|
+
wrapperEnable: "Add wrapper"
|
|
105
107
|
},
|
|
106
108
|
linkDialog: {
|
|
107
109
|
editLink: "Edit Link",
|
|
@@ -392,6 +394,7 @@ var e = {
|
|
|
392
394
|
clickToEdit: "Click to edit",
|
|
393
395
|
remove: "Remove merge tag",
|
|
394
396
|
insert: "Insert merge tag",
|
|
397
|
+
insertShort: "Merge tag",
|
|
395
398
|
editValue: "Edit merge tag value",
|
|
396
399
|
deleteMergeTag: "Delete merge tag",
|
|
397
400
|
suggestionEmpty: "No matching merge tags",
|
|
@@ -407,6 +410,19 @@ var e = {
|
|
|
407
410
|
groupCount: "{count}"
|
|
408
411
|
}
|
|
409
412
|
},
|
|
413
|
+
logicTag: {
|
|
414
|
+
insert: "Insert logic",
|
|
415
|
+
insertShort: "Logic",
|
|
416
|
+
picker: {
|
|
417
|
+
title: "Insert logic",
|
|
418
|
+
searchPlaceholder: "Search logic tags",
|
|
419
|
+
searchAriaLabel: "Search logic tags",
|
|
420
|
+
noResults: "No matching logic tags",
|
|
421
|
+
empty: "No logic tags configured",
|
|
422
|
+
otherGroup: "Other",
|
|
423
|
+
close: "Close"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
410
426
|
canvas: {
|
|
411
427
|
noBlocks: "No blocks yet",
|
|
412
428
|
dragHint: "Start from scratch by dragging blocks from the sidebar",
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { Dt as e, Et as t, O as n, Ot as r, R as i, Y as a, _ as o, c as s, d as c, l, nt as u, s as d, u as f, w as p, z as m } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { a as h, c as g, s as _ } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import { T as v, k as y, r as b, w as x } from "./dist-BibU4HNl.js";
|
|
4
|
+
import { t as S } from "./useI18n-C-TDeJBt.js";
|
|
5
|
+
import { t as C } from "./useMergeTag-DSrBY0-2.js";
|
|
6
|
+
import { i as w, o as T, p as E, qt as D, u as O } from "./dist-itdjZraK.js";
|
|
7
|
+
import { i as k, r as A, t as j } from "./MergeTagSuggestion-CH2SUxBo.js";
|
|
8
|
+
import { n as M, t as N } from "./dist-BsCGIDSt.js";
|
|
9
|
+
//#region src/extensions/FontSize.ts
|
|
10
|
+
var P = w.create({
|
|
11
|
+
name: "fontSize",
|
|
12
|
+
addOptions() {
|
|
13
|
+
return { types: ["textStyle"] };
|
|
14
|
+
},
|
|
15
|
+
addGlobalAttributes() {
|
|
16
|
+
return [{
|
|
17
|
+
types: this.options.types,
|
|
18
|
+
attributes: { fontSize: {
|
|
19
|
+
default: null,
|
|
20
|
+
parseHTML: (e) => e.style.fontSize?.replace(/['"]+/g, "") || null,
|
|
21
|
+
renderHTML: (e) => e.fontSize ? { style: `font-size: ${e.fontSize}` } : {}
|
|
22
|
+
} }
|
|
23
|
+
}];
|
|
24
|
+
},
|
|
25
|
+
addCommands() {
|
|
26
|
+
return {
|
|
27
|
+
setFontSize: (e) => ({ chain: t }) => t().setMark("textStyle", { fontSize: e }).run(),
|
|
28
|
+
unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}), F = w.create({
|
|
32
|
+
name: "letterSpacing",
|
|
33
|
+
addOptions() {
|
|
34
|
+
return { types: ["textStyle"] };
|
|
35
|
+
},
|
|
36
|
+
addGlobalAttributes() {
|
|
37
|
+
return [{
|
|
38
|
+
types: this.options.types,
|
|
39
|
+
attributes: { letterSpacing: {
|
|
40
|
+
default: null,
|
|
41
|
+
parseHTML: (e) => e.style.letterSpacing?.replace(/['"]+/g, "") || null,
|
|
42
|
+
renderHTML: (e) => e.letterSpacing ? { style: `letter-spacing: ${e.letterSpacing}` } : {}
|
|
43
|
+
} }
|
|
44
|
+
}];
|
|
45
|
+
},
|
|
46
|
+
addCommands() {
|
|
47
|
+
return {
|
|
48
|
+
setLetterSpacing: (e) => ({ chain: t }) => t().setMark("textStyle", { letterSpacing: e }).run(),
|
|
49
|
+
unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}), I = w.create({
|
|
53
|
+
name: "lineHeight",
|
|
54
|
+
addOptions() {
|
|
55
|
+
return {
|
|
56
|
+
types: ["paragraph"],
|
|
57
|
+
defaultLineHeight: "1.5"
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
addGlobalAttributes() {
|
|
61
|
+
return [{
|
|
62
|
+
types: this.options.types,
|
|
63
|
+
attributes: { lineHeight: {
|
|
64
|
+
default: null,
|
|
65
|
+
parseHTML: (e) => e.style.lineHeight || null,
|
|
66
|
+
renderHTML: (e) => e.lineHeight ? { style: `line-height: ${e.lineHeight}` } : {}
|
|
67
|
+
} }
|
|
68
|
+
}];
|
|
69
|
+
},
|
|
70
|
+
addCommands() {
|
|
71
|
+
return {
|
|
72
|
+
setLineHeight: (e) => ({ commands: t }) => this.options.types.every((n) => t.updateAttributes(n, { lineHeight: e })),
|
|
73
|
+
unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}), L = [
|
|
77
|
+
"aria-label",
|
|
78
|
+
"data-tooltip",
|
|
79
|
+
"onKeydown"
|
|
80
|
+
], R = ["aria-label", "onKeydown"], z = ["aria-label"], B = /* @__PURE__ */ o({
|
|
81
|
+
__name: "LogicMergeTagNodeView",
|
|
82
|
+
props: {
|
|
83
|
+
node: {},
|
|
84
|
+
editor: {},
|
|
85
|
+
getPos: { type: Function },
|
|
86
|
+
deleteNode: { type: Function },
|
|
87
|
+
updateAttributes: { type: Function }
|
|
88
|
+
},
|
|
89
|
+
setup(o) {
|
|
90
|
+
let v = o, { syntax: b } = C(), { t: w } = S(), T = d(() => y(v.node.attrs.value, b)), E = d(() => x(v.node.attrs.value, b)), D = a(!1), O = a(""), k = a(null), A = !1;
|
|
91
|
+
function j() {
|
|
92
|
+
O.value = v.node.attrs.value, A = !1, D.value = !0, p(() => {
|
|
93
|
+
k.value?.focus(), k.value?.select();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function M() {
|
|
97
|
+
if (A) return;
|
|
98
|
+
A = !0;
|
|
99
|
+
let e = O.value.trim();
|
|
100
|
+
if (!e) {
|
|
101
|
+
D.value = !1;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
e !== v.node.attrs.value && v.updateAttributes({
|
|
105
|
+
value: e,
|
|
106
|
+
keyword: y(e, b) ? x(e, b) : ""
|
|
107
|
+
}), D.value = !1;
|
|
108
|
+
}
|
|
109
|
+
function P(e) {
|
|
110
|
+
e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (D.value = !1);
|
|
111
|
+
}
|
|
112
|
+
return (a, d) => (n(), l(u(N), {
|
|
113
|
+
as: "span",
|
|
114
|
+
class: t(T.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
|
|
115
|
+
style: e(T.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
|
|
116
|
+
contenteditable: "false"
|
|
117
|
+
}, {
|
|
118
|
+
default: i(() => [D.value ? m((n(), c("input", {
|
|
119
|
+
key: 0,
|
|
120
|
+
ref_key: "inputRef",
|
|
121
|
+
ref: k,
|
|
122
|
+
"onUpdate:modelValue": d[0] ||= (e) => O.value = e,
|
|
123
|
+
type: "text",
|
|
124
|
+
class: "tpl:w-40 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:normal-case tpl:outline-none tpl:text-[var(--tpl-primary)]",
|
|
125
|
+
onBlur: M,
|
|
126
|
+
onKeydown: P
|
|
127
|
+
}, null, 544)), [[h, O.value]]) : T.value ? (n(), c("span", {
|
|
128
|
+
key: 1,
|
|
129
|
+
role: "button",
|
|
130
|
+
tabindex: "0",
|
|
131
|
+
"aria-label": u(w).mergeTag.editValue,
|
|
132
|
+
class: "tpl-tooltip tpl:cursor-pointer",
|
|
133
|
+
"data-tooltip": o.node.attrs.value,
|
|
134
|
+
onClick: g(j, ["stop"]),
|
|
135
|
+
onKeydown: [_(g(j, ["stop"]), ["enter"]), _(g(j, ["prevent", "stop"]), ["space"])]
|
|
136
|
+
}, r(E.value), 41, L)) : (n(), c("span", {
|
|
137
|
+
key: 2,
|
|
138
|
+
role: "button",
|
|
139
|
+
tabindex: "0",
|
|
140
|
+
"aria-label": u(w).mergeTag.editValue,
|
|
141
|
+
onClick: g(j, ["stop"]),
|
|
142
|
+
onKeydown: [_(g(j, ["stop"]), ["enter"]), _(g(j, ["prevent", "stop"]), ["space"])]
|
|
143
|
+
}, r(o.node.attrs.value), 41, R)), T.value ? (n(), c("button", {
|
|
144
|
+
key: 3,
|
|
145
|
+
type: "button",
|
|
146
|
+
"aria-label": u(w).mergeTag.deleteMergeTag,
|
|
147
|
+
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all hover:tpl:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
148
|
+
contenteditable: "false",
|
|
149
|
+
onClick: d[1] ||= g((...e) => o.deleteNode && o.deleteNode(...e), ["stop", "prevent"])
|
|
150
|
+
}, [...d[2] ||= [s("svg", {
|
|
151
|
+
width: "10",
|
|
152
|
+
height: "10",
|
|
153
|
+
viewBox: "0 0 24 24",
|
|
154
|
+
fill: "none",
|
|
155
|
+
stroke: "currentColor",
|
|
156
|
+
"stroke-width": "3",
|
|
157
|
+
"aria-hidden": "true"
|
|
158
|
+
}, [s("line", {
|
|
159
|
+
x1: "18",
|
|
160
|
+
y1: "6",
|
|
161
|
+
x2: "6",
|
|
162
|
+
y2: "18"
|
|
163
|
+
}), s("line", {
|
|
164
|
+
x1: "6",
|
|
165
|
+
y1: "6",
|
|
166
|
+
x2: "18",
|
|
167
|
+
y2: "18"
|
|
168
|
+
})], -1)]], 8, z)) : f("", !0)]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["class", "style"]));
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/extensions/isNodeSelected.ts
|
|
175
|
+
function V(e, t) {
|
|
176
|
+
let { $from: n, $to: r } = e.state.selection;
|
|
177
|
+
return n.pos === r.pos ? n.pos > 0 && n.nodeBefore?.type.name === t || n.nodeAfter?.type.name === t : !1;
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/extensions/renderVueNodeView.ts
|
|
181
|
+
function H(e) {
|
|
182
|
+
return M(e);
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/extensions/LogicMergeTagNode.ts
|
|
186
|
+
var U = O.create({
|
|
187
|
+
name: "logicMergeTagNode",
|
|
188
|
+
group: "inline",
|
|
189
|
+
inline: !0,
|
|
190
|
+
atom: !0,
|
|
191
|
+
addOptions() {
|
|
192
|
+
return { syntax: b.liquid };
|
|
193
|
+
},
|
|
194
|
+
addAttributes() {
|
|
195
|
+
return {
|
|
196
|
+
value: {
|
|
197
|
+
default: "",
|
|
198
|
+
parseHTML: (e) => e.getAttribute("data-logic-merge-tag") || ""
|
|
199
|
+
},
|
|
200
|
+
keyword: {
|
|
201
|
+
default: "",
|
|
202
|
+
parseHTML: (e) => e.getAttribute("data-keyword") || e.textContent || ""
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
parseHTML() {
|
|
207
|
+
return [{ tag: "span[data-logic-merge-tag]" }];
|
|
208
|
+
},
|
|
209
|
+
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
210
|
+
if (!y(e.attrs.value, this.options.syntax)) return [
|
|
211
|
+
"span",
|
|
212
|
+
{},
|
|
213
|
+
e.attrs.value
|
|
214
|
+
];
|
|
215
|
+
let n = x(e.attrs.value, this.options.syntax);
|
|
216
|
+
return [
|
|
217
|
+
"span",
|
|
218
|
+
D(t, {
|
|
219
|
+
"data-logic-merge-tag": e.attrs.value,
|
|
220
|
+
"data-keyword": n
|
|
221
|
+
}),
|
|
222
|
+
n
|
|
223
|
+
];
|
|
224
|
+
},
|
|
225
|
+
addNodeView() {
|
|
226
|
+
return H(B);
|
|
227
|
+
},
|
|
228
|
+
addKeyboardShortcuts() {
|
|
229
|
+
return {
|
|
230
|
+
Backspace: () => V(this.editor, this.name),
|
|
231
|
+
Delete: () => V(this.editor, this.name)
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
addInputRules() {
|
|
235
|
+
return [new T({
|
|
236
|
+
find: RegExp(this.options.syntax.logic.source + "$", ""),
|
|
237
|
+
handler: ({ state: e, range: t, match: n }) => {
|
|
238
|
+
let r = n[0];
|
|
239
|
+
if (!y(r, this.options.syntax)) return;
|
|
240
|
+
let i = x(r, this.options.syntax), a = this.type.create({
|
|
241
|
+
value: r,
|
|
242
|
+
keyword: i
|
|
243
|
+
});
|
|
244
|
+
e.tr.replaceWith(t.from, t.to, a);
|
|
245
|
+
}
|
|
246
|
+
})];
|
|
247
|
+
},
|
|
248
|
+
addPasteRules() {
|
|
249
|
+
return [new E({
|
|
250
|
+
find: new RegExp(this.options.syntax.logic.source, "g"),
|
|
251
|
+
handler: ({ state: e, range: t, match: n }) => {
|
|
252
|
+
let r = n[0];
|
|
253
|
+
if (!y(r, this.options.syntax)) return;
|
|
254
|
+
let i = x(r, this.options.syntax), a = this.type.create({
|
|
255
|
+
value: r,
|
|
256
|
+
keyword: i
|
|
257
|
+
});
|
|
258
|
+
e.tr.replaceWith(t.from, t.to, a);
|
|
259
|
+
}
|
|
260
|
+
})];
|
|
261
|
+
}
|
|
262
|
+
}), W = [
|
|
263
|
+
"aria-label",
|
|
264
|
+
"data-tooltip",
|
|
265
|
+
"onKeydown"
|
|
266
|
+
], G = ["aria-label"], K = /* @__PURE__ */ o({
|
|
267
|
+
__name: "MergeTagNodeView",
|
|
268
|
+
props: {
|
|
269
|
+
node: {},
|
|
270
|
+
deleteNode: { type: Function },
|
|
271
|
+
updateAttributes: { type: Function }
|
|
272
|
+
},
|
|
273
|
+
setup(e) {
|
|
274
|
+
let t = e, { getMergeTagLabel: o } = C(), { t: f } = S(), v = d(() => o(t.node.attrs.value)), y = a(!1), b = a(""), x = a(null);
|
|
275
|
+
function w() {
|
|
276
|
+
b.value = t.node.attrs.value, y.value = !0, p(() => {
|
|
277
|
+
x.value?.focus(), x.value?.select();
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
function T() {
|
|
281
|
+
let e = b.value.trim();
|
|
282
|
+
e && e !== t.node.attrs.value && t.updateAttributes({
|
|
283
|
+
value: e,
|
|
284
|
+
label: o(e)
|
|
285
|
+
}), y.value = !1;
|
|
286
|
+
}
|
|
287
|
+
function E(e) {
|
|
288
|
+
e.key === "Enter" ? (e.preventDefault(), T()) : e.key === "Escape" && (y.value = !1);
|
|
289
|
+
}
|
|
290
|
+
return (t, a) => (n(), l(u(N), {
|
|
291
|
+
as: "span",
|
|
292
|
+
class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
|
|
293
|
+
style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
|
|
294
|
+
contenteditable: "false"
|
|
295
|
+
}, {
|
|
296
|
+
default: i(() => [y.value ? m((n(), c("input", {
|
|
297
|
+
key: 0,
|
|
298
|
+
ref_key: "inputRef",
|
|
299
|
+
ref: x,
|
|
300
|
+
"onUpdate:modelValue": a[0] ||= (e) => b.value = e,
|
|
301
|
+
type: "text",
|
|
302
|
+
class: "tpl:w-32 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]",
|
|
303
|
+
onBlur: T,
|
|
304
|
+
onKeydown: E
|
|
305
|
+
}, null, 544)), [[h, b.value]]) : (n(), c("span", {
|
|
306
|
+
key: 1,
|
|
307
|
+
role: "button",
|
|
308
|
+
tabindex: "0",
|
|
309
|
+
"aria-label": u(f).mergeTag.editValue,
|
|
310
|
+
class: "tpl-tooltip tpl:cursor-pointer",
|
|
311
|
+
"data-tooltip": e.node.attrs.value,
|
|
312
|
+
onClick: g(w, ["stop"]),
|
|
313
|
+
onKeydown: [_(g(w, ["stop"]), ["enter"]), _(g(w, ["prevent", "stop"]), ["space"])]
|
|
314
|
+
}, r(v.value), 41, W)), s("button", {
|
|
315
|
+
type: "button",
|
|
316
|
+
"aria-label": u(f).mergeTag.deleteMergeTag,
|
|
317
|
+
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all hover:tpl:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
318
|
+
contenteditable: "false",
|
|
319
|
+
onClick: a[1] ||= g((...t) => e.deleteNode && e.deleteNode(...t), ["stop", "prevent"])
|
|
320
|
+
}, [...a[2] ||= [s("svg", {
|
|
321
|
+
width: "10",
|
|
322
|
+
height: "10",
|
|
323
|
+
viewBox: "0 0 24 24",
|
|
324
|
+
fill: "none",
|
|
325
|
+
stroke: "currentColor",
|
|
326
|
+
"stroke-width": "3",
|
|
327
|
+
"aria-hidden": "true"
|
|
328
|
+
}, [s("line", {
|
|
329
|
+
x1: "18",
|
|
330
|
+
y1: "6",
|
|
331
|
+
x2: "6",
|
|
332
|
+
y2: "18"
|
|
333
|
+
}), s("line", {
|
|
334
|
+
x1: "6",
|
|
335
|
+
y1: "6",
|
|
336
|
+
x2: "18",
|
|
337
|
+
y2: "18"
|
|
338
|
+
})], -1)]], 8, G)]),
|
|
339
|
+
_: 1
|
|
340
|
+
}));
|
|
341
|
+
}
|
|
342
|
+
}), q = O.create({
|
|
343
|
+
name: "mergeTagNode",
|
|
344
|
+
group: "inline",
|
|
345
|
+
inline: !0,
|
|
346
|
+
atom: !0,
|
|
347
|
+
addOptions() {
|
|
348
|
+
return {
|
|
349
|
+
mergeTags: [],
|
|
350
|
+
syntax: b.liquid
|
|
351
|
+
};
|
|
352
|
+
},
|
|
353
|
+
addAttributes() {
|
|
354
|
+
return {
|
|
355
|
+
label: {
|
|
356
|
+
default: "",
|
|
357
|
+
parseHTML: (e) => e.getAttribute("data-label") || e.textContent || ""
|
|
358
|
+
},
|
|
359
|
+
value: {
|
|
360
|
+
default: "",
|
|
361
|
+
parseHTML: (e) => e.getAttribute("data-merge-tag") || ""
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
},
|
|
365
|
+
parseHTML() {
|
|
366
|
+
return [{ tag: "span[data-merge-tag]" }];
|
|
367
|
+
},
|
|
368
|
+
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
369
|
+
let n = v(e.attrs.value, this.options.mergeTags);
|
|
370
|
+
return [
|
|
371
|
+
"span",
|
|
372
|
+
D(t, {
|
|
373
|
+
"data-merge-tag": e.attrs.value,
|
|
374
|
+
"data-label": n
|
|
375
|
+
}),
|
|
376
|
+
n
|
|
377
|
+
];
|
|
378
|
+
},
|
|
379
|
+
addNodeView() {
|
|
380
|
+
return H(K);
|
|
381
|
+
},
|
|
382
|
+
addCommands() {
|
|
383
|
+
return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
|
|
384
|
+
type: this.name,
|
|
385
|
+
attrs: {
|
|
386
|
+
label: e.label,
|
|
387
|
+
value: e.value
|
|
388
|
+
}
|
|
389
|
+
}) };
|
|
390
|
+
},
|
|
391
|
+
addKeyboardShortcuts() {
|
|
392
|
+
return {
|
|
393
|
+
Backspace: () => V(this.editor, this.name),
|
|
394
|
+
Delete: () => V(this.editor, this.name)
|
|
395
|
+
};
|
|
396
|
+
},
|
|
397
|
+
addInputRules() {
|
|
398
|
+
return [new T({
|
|
399
|
+
find: RegExp(this.options.syntax.value.source + "$", ""),
|
|
400
|
+
handler: ({ state: e, range: t, match: n }) => {
|
|
401
|
+
let r = n[0], i = v(r, this.options.mergeTags), a = this.type.create({
|
|
402
|
+
label: i,
|
|
403
|
+
value: r
|
|
404
|
+
});
|
|
405
|
+
e.tr.replaceWith(t.from, t.to, a);
|
|
406
|
+
}
|
|
407
|
+
})];
|
|
408
|
+
},
|
|
409
|
+
addPasteRules() {
|
|
410
|
+
return [new E({
|
|
411
|
+
find: new RegExp(this.options.syntax.value.source, "g"),
|
|
412
|
+
handler: ({ state: e, range: t, match: n }) => {
|
|
413
|
+
let r = n[0], i = v(r, this.options.mergeTags), a = this.type.create({
|
|
414
|
+
label: i,
|
|
415
|
+
value: r
|
|
416
|
+
});
|
|
417
|
+
e.tr.replaceWith(t.from, t.to, a);
|
|
418
|
+
}
|
|
419
|
+
})];
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
//#endregion
|
|
423
|
+
export { P as FontSize, F as LetterSpacing, I as LineHeight, U as LogicMergeTagNode, q as MergeTagNode, j as MergeTagSuggestion, A as filterMergeTags, k as handleSuggestionKeyDown };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import { CustomFont } from '@templatical/types';
|
|
|
9
9
|
import { DisplayConditionsConfig } from '@templatical/types';
|
|
10
10
|
import { FontsConfig } from '@templatical/types';
|
|
11
11
|
import { LintOptions } from '@templatical/quality';
|
|
12
|
+
import { LogicPair } from '@templatical/types';
|
|
13
|
+
import { LogicTag } from '@templatical/types';
|
|
14
|
+
import { LogicTagsConfig } from '@templatical/types';
|
|
12
15
|
import type { McpConfig } from '@templatical/types';
|
|
13
16
|
import type { MediaItem } from '@templatical/media-library';
|
|
14
17
|
import type { MediaRequestContext } from '@templatical/media-library';
|
|
@@ -79,6 +82,12 @@ export declare function isCloudLocaleSupported(locale: string): boolean;
|
|
|
79
82
|
/** Check if a locale has OSS translations (matched by exact locale, then base). */
|
|
80
83
|
export declare function isLocaleSupported(locale: string): boolean;
|
|
81
84
|
|
|
85
|
+
export { LogicPair }
|
|
86
|
+
|
|
87
|
+
export { LogicTag }
|
|
88
|
+
|
|
89
|
+
export { LogicTagsConfig }
|
|
90
|
+
|
|
82
91
|
export { MergeTagsConfig }
|
|
83
92
|
|
|
84
93
|
/** Function type for media browser requests, used by both OSS and Cloud editors. */
|
|
@@ -173,6 +182,7 @@ export declare interface TemplaticalCloudEditorConfig {
|
|
|
173
182
|
autoSave?: boolean;
|
|
174
183
|
autoSaveDebounce?: number;
|
|
175
184
|
mergeTags?: MergeTagsConfig;
|
|
185
|
+
logicTags?: LogicTagsConfig;
|
|
176
186
|
displayConditions?: DisplayConditionsConfig;
|
|
177
187
|
customBlocks?: CustomBlockDefinition[];
|
|
178
188
|
/**
|
|
@@ -263,6 +273,13 @@ export declare interface TemplaticalEditorConfig {
|
|
|
263
273
|
onError?: (error: Error) => void;
|
|
264
274
|
onRequestMedia?: OnRequestMedia;
|
|
265
275
|
mergeTags?: MergeTagsConfig;
|
|
276
|
+
/**
|
|
277
|
+
* Standalone logic tags — control-flow tokens (`{% else %}`) and open/close
|
|
278
|
+
* pairs (`{% if %}` … `{% endif %}`) inserted from a dedicated "Insert logic"
|
|
279
|
+
* button. Separate from `mergeTags`; typed/pasted logic is highlighted
|
|
280
|
+
* regardless of this config.
|
|
281
|
+
*/
|
|
282
|
+
logicTags?: LogicTagsConfig;
|
|
266
283
|
displayConditions?: DisplayConditionsConfig;
|
|
267
284
|
customBlocks?: CustomBlockDefinition[];
|
|
268
285
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { x as e } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
//#region src/keys.ts
|
|
3
|
+
var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("paletteBlocks"), p = Symbol("customBlockStylesheets"), m = Symbol("mergeTags"), h = Symbol("mergeTagSyntax"), g = Symbol("onRequestMergeTag"), _ = Symbol("mergeTagAutocomplete"), v = Symbol("mergeTagPicker"), y = Symbol("logicTags"), b = Symbol("logicPairs"), x = Symbol("logicPicker"), S = Symbol("onRequestLogic"), C = Symbol("onRequestMedia"), w = Symbol("displayConditions"), T = Symbol("allowCustomConditions"), E = Symbol("capabilities"), D = Symbol("keyboardReorder"), O = Symbol("templateLint"), k = Symbol("editorRoot"), A = Symbol("popoverRoot"), j = Symbol("authManager"), M = Symbol("aiConfig"), N = Symbol("comments"), P = Symbol("savedModulesHeadless"), F = Symbol("scoring"), I = Symbol("cloudTranslations");
|
|
4
|
+
function L(t, n) {
|
|
5
|
+
let r = e(t, null);
|
|
6
|
+
if (r == null) throw Error(`${n} requires a provider for ${t.description ?? "unknown key"}. Ensure it is a descendant of Editor or CloudEditor.`);
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { A, _ as C, C as D, S as E, t as F, c as I, L, F as M, O as N, g as O, s as P, m as S, h as T, r as _, l as a, y as b, I as c, d, p as f, o as g, k as h, i, P as j, f as k, N as l, n as m, T as n, u as o, w as p, j as r, E as s, M as t, a as u, D as v, v as w, x, b as y };
|