@editora/core 1.0.9 → 1.0.11
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/README.md +1 -1
- package/dist/{A11yCheckerPlugin.native-58d12bed.mjs → A11yCheckerPlugin.native-BRdGYMju.mjs} +12 -23
- package/dist/{AnchorPlugin.native-289a112a.mjs → AnchorPlugin.native-BcYGEtd9.mjs} +102 -112
- package/dist/{ApprovalWorkflowPlugin.native-449ce66c.mjs → ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs} +173 -209
- package/dist/{BackgroundColorPlugin.native-8aceb5cc.mjs → BackgroundColorPlugin.native-50iAT9xU.mjs} +9 -16
- package/dist/BlockquotePlugin.native-57_Xcjl1.mjs +212 -0
- package/dist/{BlocksLibraryPlugin.native-1cc51e63.mjs → BlocksLibraryPlugin.native-5sdsXsiE.mjs} +149 -205
- package/dist/{BoldPlugin.native-f9d7f8e4.mjs → BoldPlugin.native-CSh_LiIJ.mjs} +11 -7
- package/dist/CapitalizationPlugin.native-DLV4oPmB.mjs +159 -0
- package/dist/ChecklistPlugin.native-BS-kMz9O.mjs +371 -0
- package/dist/{CitationsPlugin.native-169fb1e8.mjs → CitationsPlugin.native-DQgoCd1B.mjs} +196 -261
- package/dist/ClearFormattingPlugin.native-DIS6AN2t.mjs +172 -0
- package/dist/CodePlugin.native-veDC_kx5.mjs +4600 -0
- package/dist/{CodeSamplePlugin.native-6cc0148e.mjs → CodeSamplePlugin.native-CgGoH-X4.mjs} +10 -19
- package/dist/{CommentsPlugin.native-03659874.mjs → CommentsPlugin.native-DPSqTkiv.mjs} +28 -55
- package/dist/{ConditionalContentPlugin.native-4983143a.mjs → ConditionalContentPlugin.native-CfhY46rU.mjs} +51 -108
- package/dist/{ContentRulesPlugin.native-63ed405b.mjs → ContentRulesPlugin.native-vPx5nC73.mjs} +153 -200
- package/dist/{DataBindingPlugin.native-427e9d75.mjs → DataBindingPlugin.native-BoXwghTz.mjs} +88 -124
- package/dist/DirectionPlugin.native-Bl-QLFzO.mjs +153 -0
- package/dist/{DocSchemaPlugin.native-8e41eda0.mjs → DocSchemaPlugin.native-DUSVRHqT.mjs} +112 -166
- package/dist/{DocumentManagerPlugin.native-e69895ad.mjs → DocumentManagerPlugin.native-C2cs_1w4.mjs} +4 -4
- package/dist/EmbedIframePlugin.native-BF_-LjTq.mjs +740 -0
- package/dist/{EmojisPlugin.native-65c5ac47.mjs → EmojisPlugin.native-CitxxlWX.mjs} +6 -11
- package/dist/{FontFamilyPlugin.native-f9bc255a.mjs → FontFamilyPlugin.native-j8hMTbg4.mjs} +4 -7
- package/dist/{FontSizePlugin.native-f5647872.mjs → FontSizePlugin.native-B_jCh7dY.mjs} +10 -19
- package/dist/{FootnotePlugin.native-494657b3.mjs → FootnotePlugin.native-D730OGRm.mjs} +39 -77
- package/dist/{FullscreenPlugin.native-87ce92e9.mjs → FullscreenPlugin.native-ChXyxeNw.mjs} +1 -1
- package/dist/HeadingPlugin.native-DZdvubrQ.mjs +249 -0
- package/dist/{HistoryPlugin.native-92ed4be4.mjs → HistoryPlugin.native-D2wl32jV.mjs} +107 -143
- package/dist/{IndentPlugin.native-e4ee902b.mjs → IndentPlugin.native-BHixp8sP.mjs} +12 -23
- package/dist/{ItalicPlugin.native-7c95cfbc.mjs → ItalicPlugin.native-CmnlwFHB.mjs} +15 -11
- package/dist/{LineHeightPlugin.native-5668f78c.mjs → LineHeightPlugin.native-CM7iXdQj.mjs} +10 -19
- package/dist/{LinkPlugin.native-6df29111.mjs → LinkPlugin.native-DYCIcdTm.mjs} +5 -9
- package/dist/{ListPlugin.native-fe2e115a.mjs → ListPlugin.native-V7EZC1lM.mjs} +5 -9
- package/dist/MathPlugin.native-NwWPHVmj.mjs +369 -0
- package/dist/{MediaManagerPlugin.native-3cf48a00.mjs → MediaManagerPlugin.native-eOsTJFpw.mjs} +11 -21
- package/dist/{MentionPlugin.native-3b1e8c05.mjs → MentionPlugin.native-BMDlOqur.mjs} +45 -89
- package/dist/MergeTagPlugin.native-BzRVoD9-.mjs +580 -0
- package/dist/{PIIRedactionPlugin.native-7ab10b9f.mjs → PIIRedactionPlugin.native-g7j4jOmm.mjs} +210 -260
- package/dist/{PageBreakPlugin.native-1794c5fb.mjs → PageBreakPlugin.native-DijGuHJZ.mjs} +16 -31
- package/dist/{PreviewPlugin.native-f7b67cc0.mjs → PreviewPlugin.native-WuIwOAOR.mjs} +6 -11
- package/dist/{PrintPlugin.native-f6a168c2.mjs → PrintPlugin.native-7qt5v7L5.mjs} +3 -5
- package/dist/{SlashCommandsPlugin.native-8d45e511.mjs → SlashCommandsPlugin.native-BiN6ODw5.mjs} +36 -71
- package/dist/{SmartPastePlugin.native-a6c5efec.mjs → SmartPastePlugin.native-CZAEHkyt.mjs} +173 -219
- package/dist/{SpecialCharactersPlugin.native-7f06d4ba.mjs → SpecialCharactersPlugin.native-DaG4b19I.mjs} +101 -85
- package/dist/{SpellCheckPlugin.native-04e20834.mjs → SpellCheckPlugin.native-BZB9AewP.mjs} +21 -41
- package/dist/{StrikethroughPlugin.native-905e9501.mjs → StrikethroughPlugin.native-V0TL4F48.mjs} +12 -30
- package/dist/{TablePlugin.native-7d5458c1.mjs → TablePlugin.native-DrHX-efe.mjs} +30 -58
- package/dist/TemplatePlugin.native-DLjFUaPW.mjs +1150 -0
- package/dist/{TextAlignmentPlugin.native-9357b3ed.mjs → TextAlignmentPlugin.native-sM_1s00t.mjs} +6 -11
- package/dist/{TextColorPlugin.native-d53ed459.mjs → TextColorPlugin.native-Bwl_bSmc.mjs} +14 -26
- package/dist/{TrackChangesPlugin.native-e96da509.mjs → TrackChangesPlugin.native-Bghu2q4a.mjs} +58 -115
- package/dist/{TranslationWorkflowPlugin.native-4e711b1e.mjs → TranslationWorkflowPlugin.native-DdF16tgT.mjs} +191 -257
- package/dist/{UnderlinePlugin.native-8080c998.mjs → UnderlinePlugin.native-DZzg23rv.mjs} +8 -4
- package/dist/{VersionDiffPlugin.native-5bbeff85.mjs → VersionDiffPlugin.native-Bvxgy--t.mjs} +26 -51
- package/dist/_commonjsHelpers-DOllISpa.mjs +32 -0
- package/dist/{anchoredPopover-5cca53ba.mjs → anchoredPopover-Bxds0VoB.mjs} +1 -1
- package/dist/core.css +1 -0
- package/dist/documentManager-vQ1VkbUY.mjs +8418 -0
- package/dist/{editorContainerHelpers-69585c07.mjs → editorContainerHelpers-C7kdWnS0.mjs} +2 -3
- package/dist/editora.min.js +13 -14
- package/dist/editora.umd.js +13 -14
- package/dist/{html2canvas.esm-c51cb3b9.mjs → html2canvas.esm-AYkPY5LS.mjs} +894 -978
- package/dist/index-BslAFzmv.mjs +16544 -0
- package/dist/index-CPMGUZfB.js +10 -0
- package/dist/{index-7da30697.mjs → index-DBoj6QfW.mjs} +127 -164
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-BYD2KEo6.mjs +6666 -0
- package/dist/index.esm.js +7 -12
- package/dist/inlineFormatting-DJ0-NZtx.mjs +97 -0
- package/dist/{jspdf.es.min-780c82db.mjs → jspdf.es.min-BJGtOnRT.mjs} +3784 -4808
- package/dist/plugin-loader.js +67 -67
- package/dist/{purify.es-3bdbcfc5.mjs → purify.es-CKpwg8Tk.mjs} +10 -20
- package/dist/webcomponent-core.js +131 -168
- package/dist/webcomponent-core.min.css +1 -1
- package/dist/webcomponent-core.min.js +147 -65
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +1 -1
- package/dist/webcomponent.js +191 -228
- package/dist/webcomponent.min.css +1 -1
- package/dist/webcomponent.min.js +1248 -1346
- package/package.json +1 -1
- package/dist/BlockquotePlugin.native-3541c714.mjs +0 -49
- package/dist/CapitalizationPlugin.native-42c135dc.mjs +0 -80
- package/dist/ChecklistPlugin.native-3b397ee9.mjs +0 -330
- package/dist/ClearFormattingPlugin.native-77baa514.mjs +0 -145
- package/dist/CodePlugin.native-989cf0aa.mjs +0 -2740
- package/dist/DirectionPlugin.native-4e742f42.mjs +0 -139
- package/dist/EmbedIframePlugin.native-55209c87.mjs +0 -568
- package/dist/HeadingPlugin.native-e38c4a16.mjs +0 -64
- package/dist/MathPlugin.native-735bbac2.mjs +0 -296
- package/dist/MergeTagPlugin.native-31cf7d48.mjs +0 -584
- package/dist/TemplatePlugin.native-580f0f63.mjs +0 -617
- package/dist/_commonjsHelpers-69d58be2.mjs +0 -31
- package/dist/documentManager-8327fb6e.mjs +0 -9166
- package/dist/index-072ef022.js +0 -11
- package/dist/index-49d31221.mjs +0 -16860
- package/dist/index.es-b47a189f.mjs +0 -5782
- package/dist/style.css +0 -1
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
const w = ".rte-content, .editora-content", ee = '[data-theme="dark"], .dark, .editora-theme-dark', te = {
|
|
2
|
-
title: "Insert Merge Tag",
|
|
3
|
-
searchPlaceholder: "Search merge tags...",
|
|
4
|
-
emptyStateText: "No merge tags found",
|
|
5
|
-
cancelText: "Cancel",
|
|
6
|
-
insertText: "Insert",
|
|
7
|
-
showPreview: !0
|
|
8
|
-
};
|
|
9
|
-
function re() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
id: "USER",
|
|
13
|
-
name: "User",
|
|
14
|
-
tags: [
|
|
15
|
-
{ key: "first_name", label: "First Name", category: "User", preview: "John" },
|
|
16
|
-
{ key: "last_name", label: "Last Name", category: "User", preview: "Doe" },
|
|
17
|
-
{ key: "email", label: "Email", category: "User", preview: "john@example.com" },
|
|
18
|
-
{ key: "phone", label: "Phone", category: "User", preview: "+1-555-1234" },
|
|
19
|
-
{ key: "full_name", label: "Full Name", category: "User", preview: "John Doe" },
|
|
20
|
-
{ key: "username", label: "Username", category: "User", preview: "johndoe" }
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "COMPANY",
|
|
25
|
-
name: "Company",
|
|
26
|
-
tags: [
|
|
27
|
-
{ key: "company_name", label: "Company Name", category: "Company", preview: "Acme Corp" },
|
|
28
|
-
{ key: "company_address", label: "Company Address", category: "Company", preview: "123 Main St" },
|
|
29
|
-
{ key: "company_phone", label: "Company Phone", category: "Company", preview: "+1-555-0000" },
|
|
30
|
-
{ key: "company_email", label: "Company Email", category: "Company", preview: "info@acme.com" }
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "DATE",
|
|
35
|
-
name: "Date",
|
|
36
|
-
tags: [
|
|
37
|
-
{ key: "today", label: "Today", category: "Date", preview: (/* @__PURE__ */ new Date()).toLocaleDateString() },
|
|
38
|
-
{ key: "tomorrow", label: "Tomorrow", category: "Date", preview: new Date(Date.now() + 864e5).toLocaleDateString() },
|
|
39
|
-
{ key: "next_week", label: "Next Week", category: "Date", preview: new Date(Date.now() + 6048e5).toLocaleDateString() }
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: "CUSTOM",
|
|
44
|
-
name: "Custom",
|
|
45
|
-
tags: []
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
function R(t, r) {
|
|
50
|
-
return t.trim().toUpperCase().replace(/[^A-Z0-9]+/g, "_").replace(/^_+|_+$/g, "") || `CATEGORY_${r + 1}`;
|
|
51
|
-
}
|
|
52
|
-
function ne(t, r) {
|
|
53
|
-
return (t.key || t.value || t.label).trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || `tag_${r + 1}`;
|
|
54
|
-
}
|
|
55
|
-
function ae(t) {
|
|
56
|
-
const r = (() => {
|
|
57
|
-
if (Array.isArray(t == null ? void 0 : t.categories) && t.categories.length > 0)
|
|
58
|
-
return t.categories;
|
|
59
|
-
if (Array.isArray(t == null ? void 0 : t.tags) && t.tags.length > 0) {
|
|
60
|
-
const c = /* @__PURE__ */ new Map();
|
|
61
|
-
return t.tags.forEach((s) => {
|
|
62
|
-
const g = (s.category || "Custom").trim() || "Custom", i = c.get(g);
|
|
63
|
-
i ? i.push(s) : c.set(g, [s]);
|
|
64
|
-
}), Array.from(c.entries()).map(([s, g], i) => ({
|
|
65
|
-
id: R(s, i),
|
|
66
|
-
name: s,
|
|
67
|
-
tags: g
|
|
68
|
-
}));
|
|
69
|
-
}
|
|
70
|
-
return re();
|
|
71
|
-
})(), e = {}, n = [];
|
|
72
|
-
if (r.forEach((c, s) => {
|
|
73
|
-
const g = R(c.id || c.name, s);
|
|
74
|
-
n.push(g), e[g] = {
|
|
75
|
-
name: c.name,
|
|
76
|
-
tags: (Array.isArray(c.tags) ? c.tags : []).map((i, b) => {
|
|
77
|
-
var v, y;
|
|
78
|
-
const u = ne(i, b), p = (i.category || c.name).trim() || c.name;
|
|
79
|
-
return {
|
|
80
|
-
...i,
|
|
81
|
-
key: u,
|
|
82
|
-
category: p,
|
|
83
|
-
categoryKey: g,
|
|
84
|
-
searchIndex: `${i.label} ${u} ${p} ${(v = i.description) != null ? v : ""} ${(y = i.value) != null ? y : ""}`.toLowerCase()
|
|
85
|
-
};
|
|
86
|
-
})
|
|
87
|
-
};
|
|
88
|
-
}), n.length === 0) {
|
|
89
|
-
const c = "CUSTOM";
|
|
90
|
-
n.push(c), e[c] = { name: "Custom", tags: [] };
|
|
91
|
-
}
|
|
92
|
-
const a = t != null && t.defaultCategory ? R(t.defaultCategory, 0) : null, l = a && n.includes(a) ? a : n[0];
|
|
93
|
-
return {
|
|
94
|
-
categoriesByKey: e,
|
|
95
|
-
categoryKeys: n,
|
|
96
|
-
defaultCategory: l
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function oe(t) {
|
|
100
|
-
const r = t == null ? void 0 : t.tokenTemplate;
|
|
101
|
-
return typeof r == "function" ? (e) => {
|
|
102
|
-
var a;
|
|
103
|
-
const n = r(e);
|
|
104
|
-
return typeof n == "string" && n.trim() ? n : ((a = e.value) == null ? void 0 : a.trim()) || `{{ ${e.label} }}`;
|
|
105
|
-
} : typeof r == "string" && r.trim() ? (e) => {
|
|
106
|
-
var n;
|
|
107
|
-
return r.replace(/\{key\}/gi, e.key).replace(/\{label\}/gi, e.label).replace(/\{category\}/gi, e.category).replace(/\{value\}/gi, (n = e.value) != null ? n : "");
|
|
108
|
-
} : (e) => {
|
|
109
|
-
var n;
|
|
110
|
-
return ((n = e.value) == null ? void 0 : n.trim()) || `{{ ${e.label} }}`;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function le(t) {
|
|
114
|
-
return {
|
|
115
|
-
catalog: ae(t),
|
|
116
|
-
dialog: {
|
|
117
|
-
...te,
|
|
118
|
-
...(t == null ? void 0 : t.dialog) || {}
|
|
119
|
-
},
|
|
120
|
-
formatToken: oe(t)
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
let K = !1, B = !1, k = null, L = null, T = null, j = !1;
|
|
124
|
-
function Y(t, r) {
|
|
125
|
-
if (r === t.innerHTML)
|
|
126
|
-
return;
|
|
127
|
-
const e = window.execEditorCommand || window.executeEditorCommand;
|
|
128
|
-
if (typeof e == "function")
|
|
129
|
-
try {
|
|
130
|
-
e("recordDomTransaction", t, r, t.innerHTML);
|
|
131
|
-
} catch (n) {
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function I() {
|
|
135
|
-
if (K || typeof document == "undefined")
|
|
136
|
-
return;
|
|
137
|
-
K = !0;
|
|
138
|
-
const t = document.createElement("style");
|
|
139
|
-
t.id = "merge-tag-plugin-styles", t.textContent = `
|
|
140
|
-
.rte-merge-tag-overlay {
|
|
141
|
-
--rte-mt-overlay-bg: rgba(15, 23, 36, 0.56);
|
|
142
|
-
--rte-mt-dialog-bg: #ffffff;
|
|
143
|
-
--rte-mt-dialog-text: #101828;
|
|
144
|
-
--rte-mt-border: #d6dbe4;
|
|
145
|
-
--rte-mt-subtle-bg: #f7f9fc;
|
|
146
|
-
--rte-mt-subtle-hover: #eef2f7;
|
|
147
|
-
--rte-mt-muted-text: #5f6b7d;
|
|
148
|
-
--rte-mt-accent: #1976d2;
|
|
149
|
-
--rte-mt-accent-strong: #1565c0;
|
|
150
|
-
position: fixed;
|
|
151
|
-
inset: 0;
|
|
152
|
-
background-color: var(--rte-mt-overlay-bg);
|
|
153
|
-
backdrop-filter: blur(2px);
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: center;
|
|
157
|
-
z-index: 10000;
|
|
158
|
-
padding: 16px;
|
|
159
|
-
box-sizing: border-box;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.rte-merge-tag-overlay.rte-ui-theme-dark {
|
|
163
|
-
--rte-mt-overlay-bg: rgba(2, 8, 20, 0.72);
|
|
164
|
-
--rte-mt-dialog-bg: #202938;
|
|
165
|
-
--rte-mt-dialog-text: #e8effc;
|
|
166
|
-
--rte-mt-border: #49566c;
|
|
167
|
-
--rte-mt-subtle-bg: #2a3444;
|
|
168
|
-
--rte-mt-subtle-hover: #344256;
|
|
169
|
-
--rte-mt-muted-text: #a5b1c5;
|
|
170
|
-
--rte-mt-accent: #58a6ff;
|
|
171
|
-
--rte-mt-accent-strong: #4598f4;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.rte-merge-tag-dialog {
|
|
175
|
-
background: var(--rte-mt-dialog-bg);
|
|
176
|
-
color: var(--rte-mt-dialog-text);
|
|
177
|
-
border: 1px solid var(--rte-mt-border);
|
|
178
|
-
border-radius: 12px;
|
|
179
|
-
box-shadow: 0 24px 48px rgba(10, 15, 24, 0.28);
|
|
180
|
-
width: 500px;
|
|
181
|
-
max-width: 90vw;
|
|
182
|
-
max-height: 80vh;
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: column;
|
|
185
|
-
overflow: hidden;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.rte-merge-tag-header { padding: 16px; border-bottom: 1px solid var(--rte-mt-border); display:flex; justify-content:space-between; align-items:center; }
|
|
189
|
-
.rte-merge-tag-body {
|
|
190
|
-
padding: 16px;
|
|
191
|
-
flex: 1;
|
|
192
|
-
min-height: 0;
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-direction: column;
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
}
|
|
197
|
-
.rte-merge-tag-input {
|
|
198
|
-
width:100%;
|
|
199
|
-
padding:11px 12px;
|
|
200
|
-
border:1px solid var(--rte-mt-border);
|
|
201
|
-
border-radius:6px;
|
|
202
|
-
background:var(--rte-mt-subtle-bg);
|
|
203
|
-
color:var(--rte-mt-dialog-text);
|
|
204
|
-
font-size:14px;
|
|
205
|
-
line-height:1.45;
|
|
206
|
-
box-sizing:border-box;
|
|
207
|
-
}
|
|
208
|
-
.rte-merge-tag-tabs { display:flex; flex-wrap: wrap; gap:8px; margin: 12px 0; }
|
|
209
|
-
.rte-merge-tag-tab { padding:8px 12px; background:none; border:none; cursor:pointer; color:var(--rte-mt-muted-text); border-bottom:3px solid transparent; }
|
|
210
|
-
.rte-merge-tag-tab.active { color:var(--rte-mt-accent); border-bottom-color:var(--rte-mt-accent); }
|
|
211
|
-
.rte-merge-tag-list {
|
|
212
|
-
border:1px solid var(--rte-mt-border);
|
|
213
|
-
border-radius:4px;
|
|
214
|
-
flex: 1;
|
|
215
|
-
min-height: 180px;
|
|
216
|
-
max-height: 300px;
|
|
217
|
-
overflow-y:auto;
|
|
218
|
-
overflow-x:hidden;
|
|
219
|
-
margin-bottom:12px;
|
|
220
|
-
background:var(--rte-mt-subtle-bg);
|
|
221
|
-
}
|
|
222
|
-
.rte-merge-tag-item {
|
|
223
|
-
padding:8px 12px;
|
|
224
|
-
border-bottom:1px solid var(--rte-mt-border);
|
|
225
|
-
cursor:pointer;
|
|
226
|
-
transition:background-color 0.16s;
|
|
227
|
-
color:var(--rte-mt-dialog-text);
|
|
228
|
-
overflow-wrap:anywhere;
|
|
229
|
-
word-break:break-word;
|
|
230
|
-
}
|
|
231
|
-
.rte-merge-tag-item:last-child { border-bottom: none; }
|
|
232
|
-
.rte-merge-tag-item.selected, .rte-merge-tag-item:hover { background-color:var(--rte-mt-subtle-hover); }
|
|
233
|
-
.rte-merge-tag-item-label { font-weight: 600; }
|
|
234
|
-
.rte-merge-tag-item-preview { font-size: 12px; color: var(--rte-mt-muted-text); margin-top: 2px; overflow-wrap:anywhere; word-break:break-word; }
|
|
235
|
-
.rte-merge-tag-empty { padding: 24px; text-align: center; color: var(--rte-mt-muted-text); }
|
|
236
|
-
.rte-merge-tag-preview { padding:8px; background:var(--rte-mt-subtle-bg); border-radius:4px; font-family:monospace; font-size:12px; color:var(--rte-mt-dialog-text); overflow-wrap:anywhere; word-break:break-word; }
|
|
237
|
-
.rte-merge-tag-footer { padding:12px 16px; border-top:1px solid var(--rte-mt-border); display:flex; gap:8px; justify-content:flex-end; background:var(--rte-mt-subtle-bg); }
|
|
238
|
-
.rte-merge-tag-btn-primary { padding:8px 16px; border:none; border-radius:4px; background:var(--rte-mt-accent); color:#fff; cursor:pointer; }
|
|
239
|
-
.rte-merge-tag-btn-primary:hover { background: var(--rte-mt-accent-strong); }
|
|
240
|
-
.rte-merge-tag-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
241
|
-
.rte-merge-tag-btn-secondary { padding:8px 16px; border:1px solid var(--rte-mt-border); border-radius:4px; background:var(--rte-mt-subtle-bg); color:var(--rte-mt-dialog-text); cursor:pointer; }
|
|
242
|
-
|
|
243
|
-
.rte-merge-tag {
|
|
244
|
-
display: inline-flex;
|
|
245
|
-
align-items: center;
|
|
246
|
-
white-space: nowrap;
|
|
247
|
-
user-select: none;
|
|
248
|
-
background-color: #e3f2fd;
|
|
249
|
-
border: 1px solid #bbdefb;
|
|
250
|
-
border-radius: 3px;
|
|
251
|
-
padding: 1px 6px;
|
|
252
|
-
margin: 0 2px;
|
|
253
|
-
color: #1976d2;
|
|
254
|
-
font-weight: 600;
|
|
255
|
-
line-height: 1.3;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
:is([data-theme="dark"], .dark, .editora-theme-dark) .rte-merge-tag {
|
|
259
|
-
background: #223247;
|
|
260
|
-
border-color: #3f5f84;
|
|
261
|
-
color: #8dc4ff;
|
|
262
|
-
}
|
|
263
|
-
`, document.head.appendChild(t);
|
|
264
|
-
}
|
|
265
|
-
function q() {
|
|
266
|
-
B || typeof document == "undefined" || (B = !0, document.addEventListener("focusin", (t) => {
|
|
267
|
-
const r = t.target, e = r == null ? void 0 : r.closest(w);
|
|
268
|
-
e && (k = e);
|
|
269
|
-
}), document.addEventListener("selectionchange", () => {
|
|
270
|
-
const t = X();
|
|
271
|
-
t && (k = t);
|
|
272
|
-
}));
|
|
273
|
-
}
|
|
274
|
-
function X() {
|
|
275
|
-
const t = window.getSelection();
|
|
276
|
-
if (!t || t.rangeCount === 0)
|
|
277
|
-
return null;
|
|
278
|
-
const e = t.getRangeAt(0).startContainer, n = e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
|
|
279
|
-
return (n == null ? void 0 : n.closest(w)) || null;
|
|
280
|
-
}
|
|
281
|
-
function Z() {
|
|
282
|
-
const t = X();
|
|
283
|
-
if (t)
|
|
284
|
-
return t;
|
|
285
|
-
const r = document.activeElement, e = r == null ? void 0 : r.closest(w);
|
|
286
|
-
return e || (k != null && k.isConnected ? k : document.querySelector(w));
|
|
287
|
-
}
|
|
288
|
-
function ce(t) {
|
|
289
|
-
const r = t.parentNode;
|
|
290
|
-
if (!r)
|
|
291
|
-
return;
|
|
292
|
-
const e = window.getSelection();
|
|
293
|
-
if (!e)
|
|
294
|
-
return;
|
|
295
|
-
const n = document.createRange(), l = Array.from(r.childNodes).indexOf(t);
|
|
296
|
-
l < 0 || (n.setStart(r, l), n.setEnd(r, l + 1), e.removeAllRanges(), e.addRange(n));
|
|
297
|
-
}
|
|
298
|
-
function W(t, r) {
|
|
299
|
-
var e;
|
|
300
|
-
t instanceof Text && t.data.length !== 0 && (r ? (t.data.startsWith(" ") || t.data.startsWith(" ")) && t.deleteData(0, 1) : (t.data.endsWith(" ") || t.data.endsWith(" ")) && t.deleteData(t.data.length - 1, 1), t.data.length === 0 && ((e = t.parentNode) == null || e.removeChild(t)));
|
|
301
|
-
}
|
|
302
|
-
function V(t, r) {
|
|
303
|
-
const e = window.getSelection();
|
|
304
|
-
if (!e)
|
|
305
|
-
return;
|
|
306
|
-
const n = document.createRange(), a = Math.max(0, Math.min(r, t.childNodes.length));
|
|
307
|
-
n.setStart(t, a), n.collapse(!0), e.removeAllRanges(), e.addRange(n);
|
|
308
|
-
}
|
|
309
|
-
function ie(t, r) {
|
|
310
|
-
var i;
|
|
311
|
-
const e = t.closest(w), n = (i = e == null ? void 0 : e.innerHTML) != null ? i : "", a = t.parentNode;
|
|
312
|
-
if (!a)
|
|
313
|
-
return !1;
|
|
314
|
-
const c = Array.from(a.childNodes).indexOf(t);
|
|
315
|
-
if (c < 0)
|
|
316
|
-
return !1;
|
|
317
|
-
const s = t.previousSibling, g = t.nextSibling;
|
|
318
|
-
return a.removeChild(t), r === "Backspace" ? (W(g, !0), V(a, c)) : (W(s, !1), V(a, c)), e && (Y(e, n), e.dispatchEvent(new Event("input", { bubbles: !0 }))), !0;
|
|
319
|
-
}
|
|
320
|
-
function se(t) {
|
|
321
|
-
if (t.collapsed || !(t.startContainer instanceof HTMLElement || t.startContainer instanceof Text) || t.startContainer !== t.endContainer || t.endOffset !== t.startOffset + 1)
|
|
322
|
-
return null;
|
|
323
|
-
const r = t.startContainer;
|
|
324
|
-
if (!(r instanceof Element || r instanceof DocumentFragment))
|
|
325
|
-
return null;
|
|
326
|
-
const e = r.childNodes[t.startOffset];
|
|
327
|
-
return e instanceof HTMLElement && e.classList.contains("rte-merge-tag") ? e : null;
|
|
328
|
-
}
|
|
329
|
-
function de(t, r) {
|
|
330
|
-
if (!t.collapsed)
|
|
331
|
-
return null;
|
|
332
|
-
const { startContainer: e, startOffset: n } = t, a = (l) => l instanceof HTMLElement && l.classList.contains("rte-merge-tag") ? l : null;
|
|
333
|
-
if (e.nodeType === Node.ELEMENT_NODE) {
|
|
334
|
-
const l = e;
|
|
335
|
-
return r === "Backspace" && n > 0 ? a(l.childNodes[n - 1] || null) : r === "Delete" ? a(l.childNodes[n] || null) : null;
|
|
336
|
-
}
|
|
337
|
-
if (e.nodeType === Node.TEXT_NODE) {
|
|
338
|
-
const l = e;
|
|
339
|
-
return r === "Backspace" ? n === 0 ? a(l.previousSibling) : n === 1 && (l.data[0] === " " || l.data[0] === " ") && l.previousSibling instanceof HTMLElement && l.previousSibling.classList.contains("rte-merge-tag") ? l.previousSibling : null : n === l.data.length ? a(l.nextSibling) : null;
|
|
340
|
-
}
|
|
341
|
-
return null;
|
|
342
|
-
}
|
|
343
|
-
function G() {
|
|
344
|
-
j || typeof document == "undefined" || (j = !0, document.addEventListener("click", (t) => {
|
|
345
|
-
const r = t.target, e = r == null ? void 0 : r.closest(".rte-merge-tag");
|
|
346
|
-
if (!e)
|
|
347
|
-
return;
|
|
348
|
-
const n = e.closest(w);
|
|
349
|
-
n && (t.preventDefault(), t.stopPropagation(), n.focus({ preventScroll: !0 }), ce(e));
|
|
350
|
-
}), document.addEventListener("keydown", (t) => {
|
|
351
|
-
if (t.key !== "Backspace" && t.key !== "Delete")
|
|
352
|
-
return;
|
|
353
|
-
const r = window.getSelection();
|
|
354
|
-
if (!r || r.rangeCount === 0)
|
|
355
|
-
return;
|
|
356
|
-
const e = r.getRangeAt(0), n = Z();
|
|
357
|
-
if (!n || !n.contains(e.commonAncestorContainer))
|
|
358
|
-
return;
|
|
359
|
-
let a = se(e);
|
|
360
|
-
a || (a = de(e, t.key)), a && (t.preventDefault(), t.stopPropagation(), ie(a, t.key));
|
|
361
|
-
}));
|
|
362
|
-
}
|
|
363
|
-
function ge(t) {
|
|
364
|
-
return t ? !!t.closest(ee) : !1;
|
|
365
|
-
}
|
|
366
|
-
function me() {
|
|
367
|
-
T && (T(), T = null), L = null;
|
|
368
|
-
}
|
|
369
|
-
function J(t) {
|
|
370
|
-
const r = document.createRange();
|
|
371
|
-
return r.selectNodeContents(t), r.collapse(!1), r;
|
|
372
|
-
}
|
|
373
|
-
function ue(t, r) {
|
|
374
|
-
const e = window.getSelection(), n = r ? r.cloneRange() : J(t), l = n.startContainer.isConnected && n.endContainer.isConnected && t.contains(n.commonAncestorContainer) ? n : J(t);
|
|
375
|
-
return e && (e.removeAllRanges(), e.addRange(l)), l;
|
|
376
|
-
}
|
|
377
|
-
function fe(t, r) {
|
|
378
|
-
const e = document.createElement("span");
|
|
379
|
-
e.className = "rte-merge-tag", e.setAttribute("contenteditable", "false"), e.setAttribute("data-key", t.key), e.setAttribute("data-category", t.category), e.setAttribute("data-label", t.label), t.value && e.setAttribute("data-value", t.value);
|
|
380
|
-
const n = r(t);
|
|
381
|
-
return e.setAttribute("data-token", n), e.setAttribute("aria-label", `Merge tag: ${t.label}`), e.textContent = n, e;
|
|
382
|
-
}
|
|
383
|
-
function pe(t, r, e, n) {
|
|
384
|
-
const a = window.getSelection();
|
|
385
|
-
if (!a)
|
|
386
|
-
return !1;
|
|
387
|
-
const l = t.innerHTML;
|
|
388
|
-
t.focus({ preventScroll: !0 });
|
|
389
|
-
const c = ue(t, r), s = c.startContainer.nodeType === Node.ELEMENT_NODE ? c.startContainer : c.startContainer.parentElement, g = s == null ? void 0 : s.closest(".rte-merge-tag");
|
|
390
|
-
g && t.contains(g) && (c.setStartAfter(g), c.setEndAfter(g));
|
|
391
|
-
try {
|
|
392
|
-
c.deleteContents();
|
|
393
|
-
const i = fe(e, n), b = document.createTextNode(" "), u = document.createDocumentFragment();
|
|
394
|
-
u.appendChild(i), u.appendChild(b), c.insertNode(u);
|
|
395
|
-
const p = document.createRange();
|
|
396
|
-
return p.setStartAfter(b), p.collapse(!0), a.removeAllRanges(), a.addRange(p), Y(t, l), t.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
|
|
397
|
-
} catch (i) {
|
|
398
|
-
return console.error("Failed to insert merge tag:", i), !1;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
function be(t, r, e) {
|
|
402
|
-
var l;
|
|
403
|
-
const n = ((l = t.catalog.categoriesByKey[r]) == null ? void 0 : l.tags) || [], a = e.trim().toLowerCase();
|
|
404
|
-
return a ? n.filter((c) => c.searchIndex.includes(a)) : n;
|
|
405
|
-
}
|
|
406
|
-
function ye(t, r) {
|
|
407
|
-
var H;
|
|
408
|
-
me(), I();
|
|
409
|
-
const e = {
|
|
410
|
-
category: r.catalog.defaultCategory,
|
|
411
|
-
searchTerm: "",
|
|
412
|
-
filteredTags: ((H = r.catalog.categoriesByKey[r.catalog.defaultCategory]) == null ? void 0 : H.tags) || [],
|
|
413
|
-
selectedIndex: 0,
|
|
414
|
-
savedRange: (() => {
|
|
415
|
-
const o = window.getSelection();
|
|
416
|
-
if (!o || o.rangeCount === 0)
|
|
417
|
-
return null;
|
|
418
|
-
const d = o.getRangeAt(0);
|
|
419
|
-
return t.contains(d.commonAncestorContainer) ? d.cloneRange() : null;
|
|
420
|
-
})(),
|
|
421
|
-
searchRaf: null
|
|
422
|
-
}, n = document.createElement("div");
|
|
423
|
-
n.className = "rte-merge-tag-overlay", n.setAttribute("role", "dialog"), n.setAttribute("aria-modal", "true"), ge(t) && n.classList.add("rte-ui-theme-dark");
|
|
424
|
-
const a = document.createElement("div");
|
|
425
|
-
a.className = "rte-merge-tag-dialog";
|
|
426
|
-
const l = document.createElement("div");
|
|
427
|
-
l.className = "rte-merge-tag-header";
|
|
428
|
-
const c = document.createElement("h2");
|
|
429
|
-
c.style.margin = "0", c.style.fontSize = "18px", c.style.fontWeight = "700", c.textContent = r.dialog.title;
|
|
430
|
-
const s = document.createElement("button");
|
|
431
|
-
s.className = "rte-merge-tag-close", s.setAttribute("aria-label", "Close"), s.style.background = "none", s.style.border = "none", s.style.color = "inherit", s.style.cursor = "pointer", s.style.fontSize = "20px", s.textContent = "✕", l.appendChild(c), l.appendChild(s);
|
|
432
|
-
const g = document.createElement("div");
|
|
433
|
-
g.className = "rte-merge-tag-body";
|
|
434
|
-
const i = document.createElement("input");
|
|
435
|
-
i.type = "text", i.className = "rte-merge-tag-input", i.placeholder = r.dialog.searchPlaceholder, i.setAttribute("aria-label", "Search merge tags");
|
|
436
|
-
const b = document.createElement("div");
|
|
437
|
-
b.className = "rte-merge-tag-tabs", r.catalog.categoryKeys.forEach((o) => {
|
|
438
|
-
var f;
|
|
439
|
-
const d = document.createElement("button");
|
|
440
|
-
d.type = "button", d.className = "rte-merge-tag-tab", d.setAttribute("data-category", o), d.textContent = ((f = r.catalog.categoriesByKey[o]) == null ? void 0 : f.name) || o, b.appendChild(d);
|
|
441
|
-
});
|
|
442
|
-
const u = document.createElement("div");
|
|
443
|
-
u.className = "rte-merge-tag-list";
|
|
444
|
-
const p = document.createElement("div");
|
|
445
|
-
p.className = "rte-merge-tag-preview", g.appendChild(i), g.appendChild(b), g.appendChild(u), g.appendChild(p);
|
|
446
|
-
const v = document.createElement("div");
|
|
447
|
-
v.className = "rte-merge-tag-footer";
|
|
448
|
-
const y = document.createElement("button");
|
|
449
|
-
y.type = "button", y.className = "rte-merge-tag-btn-secondary", y.textContent = r.dialog.cancelText;
|
|
450
|
-
const x = document.createElement("button");
|
|
451
|
-
x.type = "button", x.className = "rte-merge-tag-btn-primary", x.textContent = r.dialog.insertText, v.appendChild(y), v.appendChild(x), a.appendChild(l), a.appendChild(g), a.appendChild(v), n.appendChild(a), document.body.appendChild(n), L = n;
|
|
452
|
-
const _ = () => {
|
|
453
|
-
b.querySelectorAll(".rte-merge-tag-tab").forEach((d) => {
|
|
454
|
-
const f = d.dataset.category === e.category;
|
|
455
|
-
d.classList.toggle("active", f);
|
|
456
|
-
});
|
|
457
|
-
}, A = () => {
|
|
458
|
-
if (e.filteredTags.length === 0) {
|
|
459
|
-
e.selectedIndex = -1;
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
e.selectedIndex < 0 && (e.selectedIndex = 0), e.selectedIndex >= e.filteredTags.length && (e.selectedIndex = e.filteredTags.length - 1);
|
|
463
|
-
}, O = () => {
|
|
464
|
-
if (!r.dialog.showPreview) {
|
|
465
|
-
p.style.display = "none", x.disabled = e.filteredTags.length === 0;
|
|
466
|
-
return;
|
|
467
|
-
}
|
|
468
|
-
A();
|
|
469
|
-
const o = e.selectedIndex >= 0 ? e.filteredTags[e.selectedIndex] : null;
|
|
470
|
-
if (!o) {
|
|
471
|
-
p.style.display = "none", x.disabled = !0;
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
p.style.display = "block", p.textContent = `Preview: ${r.formatToken(o)}`, x.disabled = !1;
|
|
475
|
-
}, Q = () => {
|
|
476
|
-
if (e.selectedIndex < 0)
|
|
477
|
-
return;
|
|
478
|
-
const o = u.querySelector(`.rte-merge-tag-item[data-index="${e.selectedIndex}"]`);
|
|
479
|
-
o == null || o.scrollIntoView({ block: "nearest" });
|
|
480
|
-
}, E = () => {
|
|
481
|
-
const o = u.querySelector(".rte-merge-tag-item.selected");
|
|
482
|
-
if (o == null || o.classList.remove("selected"), e.selectedIndex >= 0) {
|
|
483
|
-
const d = u.querySelector(`.rte-merge-tag-item[data-index="${e.selectedIndex}"]`);
|
|
484
|
-
d == null || d.classList.add("selected");
|
|
485
|
-
}
|
|
486
|
-
O(), Q();
|
|
487
|
-
}, S = () => {
|
|
488
|
-
if (e.filteredTags = be(r, e.category, e.searchTerm), e.filteredTags.length > 0 && e.selectedIndex < 0 && (e.selectedIndex = 0), A(), u.innerHTML = "", e.filteredTags.length === 0) {
|
|
489
|
-
const d = document.createElement("div");
|
|
490
|
-
d.className = "rte-merge-tag-empty", d.textContent = r.dialog.emptyStateText, u.appendChild(d), O();
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
const o = document.createDocumentFragment();
|
|
494
|
-
e.filteredTags.forEach((d, f) => {
|
|
495
|
-
const m = document.createElement("div");
|
|
496
|
-
m.className = "rte-merge-tag-item", m.setAttribute("data-index", String(f)), m.classList.toggle("selected", f === e.selectedIndex);
|
|
497
|
-
const D = document.createElement("div");
|
|
498
|
-
if (D.className = "rte-merge-tag-item-label", D.textContent = d.label, m.appendChild(D), d.preview) {
|
|
499
|
-
const M = document.createElement("div");
|
|
500
|
-
M.className = "rte-merge-tag-item-preview", M.textContent = d.preview, m.appendChild(M);
|
|
501
|
-
}
|
|
502
|
-
o.appendChild(m);
|
|
503
|
-
}), u.appendChild(o), E();
|
|
504
|
-
}, z = () => {
|
|
505
|
-
e.searchRaf !== null && cancelAnimationFrame(e.searchRaf), e.searchRaf = requestAnimationFrame(() => {
|
|
506
|
-
e.searchRaf = null, e.searchTerm = i.value, e.selectedIndex = 0, S();
|
|
507
|
-
});
|
|
508
|
-
}, h = () => {
|
|
509
|
-
e.searchRaf !== null && (cancelAnimationFrame(e.searchRaf), e.searchRaf = null), n.remove(), L === n && (L = null, T = null);
|
|
510
|
-
}, C = () => {
|
|
511
|
-
if (A(), e.selectedIndex < 0)
|
|
512
|
-
return;
|
|
513
|
-
const o = e.filteredTags[e.selectedIndex];
|
|
514
|
-
pe(t, e.savedRange, o, r.formatToken) && h();
|
|
515
|
-
}, F = (o) => {
|
|
516
|
-
const f = o.target.closest(".rte-merge-tag-tab");
|
|
517
|
-
if (!f)
|
|
518
|
-
return;
|
|
519
|
-
const m = f.dataset.category;
|
|
520
|
-
!m || !r.catalog.categoriesByKey[m] || (e.category = m, e.searchTerm = "", i.value = "", e.selectedIndex = 0, _(), S());
|
|
521
|
-
}, U = (o) => {
|
|
522
|
-
const f = o.target.closest(".rte-merge-tag-item");
|
|
523
|
-
if (!f)
|
|
524
|
-
return;
|
|
525
|
-
const m = Number(f.dataset.index || "-1");
|
|
526
|
-
Number.isNaN(m) || m < 0 || m >= e.filteredTags.length || (e.selectedIndex = m, E());
|
|
527
|
-
}, $ = (o) => {
|
|
528
|
-
const f = o.target.closest(".rte-merge-tag-item");
|
|
529
|
-
if (!f)
|
|
530
|
-
return;
|
|
531
|
-
const m = Number(f.dataset.index || "-1");
|
|
532
|
-
Number.isNaN(m) || m < 0 || m >= e.filteredTags.length || (e.selectedIndex = m, C());
|
|
533
|
-
}, N = (o) => {
|
|
534
|
-
if (o.key === "Escape") {
|
|
535
|
-
o.preventDefault(), h();
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
if (o.key === "ArrowDown") {
|
|
539
|
-
if (o.preventDefault(), e.filteredTags.length === 0)
|
|
540
|
-
return;
|
|
541
|
-
e.selectedIndex = Math.min(e.filteredTags.length - 1, e.selectedIndex + 1), E();
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
if (o.key === "ArrowUp") {
|
|
545
|
-
if (o.preventDefault(), e.filteredTags.length === 0)
|
|
546
|
-
return;
|
|
547
|
-
e.selectedIndex = Math.max(0, e.selectedIndex - 1), E();
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
o.key === "Enter" && (o.preventDefault(), C());
|
|
551
|
-
}, P = (o) => {
|
|
552
|
-
o.target === n && h();
|
|
553
|
-
};
|
|
554
|
-
b.addEventListener("click", F), u.addEventListener("click", U), u.addEventListener("dblclick", $), i.addEventListener("input", z), i.addEventListener("keydown", N), n.addEventListener("click", P), a.addEventListener("keydown", N), s == null || s.addEventListener("click", h), y.addEventListener("click", h), x.addEventListener("click", C), T = () => {
|
|
555
|
-
b.removeEventListener("click", F), u.removeEventListener("click", U), u.removeEventListener("dblclick", $), i.removeEventListener("input", z), i.removeEventListener("keydown", N), n.removeEventListener("click", P), a.removeEventListener("keydown", N), s == null || s.removeEventListener("click", h), y.removeEventListener("click", h), x.removeEventListener("click", C), e.searchRaf !== null && (cancelAnimationFrame(e.searchRaf), e.searchRaf = null), n.remove();
|
|
556
|
-
}, _(), S(), setTimeout(() => {
|
|
557
|
-
i.focus();
|
|
558
|
-
}, 0);
|
|
559
|
-
}
|
|
560
|
-
const xe = (t) => ({
|
|
561
|
-
name: "mergeTag",
|
|
562
|
-
config: t,
|
|
563
|
-
init: () => {
|
|
564
|
-
I(), q(), G();
|
|
565
|
-
},
|
|
566
|
-
toolbar: [
|
|
567
|
-
{
|
|
568
|
-
label: "Merge Tag",
|
|
569
|
-
command: "insertMergeTag",
|
|
570
|
-
icon: "{{ }}"
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
commands: {
|
|
574
|
-
insertMergeTag: () => {
|
|
575
|
-
I(), q(), G();
|
|
576
|
-
const r = Z();
|
|
577
|
-
return r ? (ye(r, le(t)), !0) : !1;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
export {
|
|
582
|
-
xe as MergeTagPlugin
|
|
583
|
-
};
|
|
584
|
-
//# sourceMappingURL=MergeTagPlugin.native-31cf7d48.mjs.map
|