@fibery/custom-app-text-editor 1.2.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.
Files changed (105) hide show
  1. package/LICENSE +214 -0
  2. package/README.md +33 -0
  3. package/lib/abnfDiagram-VRR7QNED-BgjOQqEh.js +89 -0
  4. package/lib/arc-Dp0rqagO.js +82 -0
  5. package/lib/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  6. package/lib/architectureDiagram-ZJ3FMSHR-BucIluTN.js +4129 -0
  7. package/lib/array-CApNbSU9.js +6 -0
  8. package/lib/blockDiagram-677ZJIJ3-CWYuHThP.js +3157 -0
  9. package/lib/c4Diagram-LMCZKHZV-Cr3_W-xe.js +2982 -0
  10. package/lib/channel-Bb7a6w5c.js +5 -0
  11. package/lib/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  12. package/lib/chunk-32BRIVSS-b-BvyGz0.js +61 -0
  13. package/lib/chunk-52WLFC77-Cf8zEoqs.js +593 -0
  14. package/lib/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  15. package/lib/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  16. package/lib/chunk-C7G6YPKG-CmOuVFlJ.js +67 -0
  17. package/lib/chunk-EX3LRPZG-LynZw14I.js +2042 -0
  18. package/lib/chunk-HOUHSVGY-Br7ZSMKe.js +275 -0
  19. package/lib/chunk-ICXQ74PX-VqT5WUTt.js +1330 -0
  20. package/lib/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  21. package/lib/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  22. package/lib/chunk-MOJQB5TN-rQ4AfTd9.js +490 -0
  23. package/lib/chunk-OGEWGWER-BvF6eV9Q.js +32 -0
  24. package/lib/chunk-PUDLZKDR-BW7SZvCB.js +4135 -0
  25. package/lib/chunk-Q4XR5HBZ-CRgGP3ez.js +1635 -0
  26. package/lib/chunk-RYQCIY6F-CHlASUpG.js +241 -0
  27. package/lib/chunk-V7JOEXUC-OY39ml6X.js +3357 -0
  28. package/lib/chunk-VR4S4FIN-Bk7IFdYB.js +26 -0
  29. package/lib/chunk-WYO6CB5R-MV-yOaop.js +3769 -0
  30. package/lib/chunk-XXDRQBXY-Djd1ChwJ.js +9 -0
  31. package/lib/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  32. package/lib/chunk-ZGVPDNZ5-l81xl1BI.js +3738 -0
  33. package/lib/classDiagram-OUVF2IWQ--wRzSvLt.js +30 -0
  34. package/lib/classDiagram-v2-EOCWNBFH-ChMCdPO-.js +30 -0
  35. package/lib/cose-bilkent-JH36ORCC-CyVZn5M3.js +2254 -0
  36. package/lib/custom-app-text-editor.css +2 -0
  37. package/lib/custom-app-text-editor.js +81102 -0
  38. package/lib/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  39. package/lib/cynefinDiagram-TSTJHNR4-988Y73wV.js +355 -0
  40. package/lib/cytoscape.esm-DMXbtFI-.js +18145 -0
  41. package/lib/dagre-Dmarb1s8.js +1699 -0
  42. package/lib/dagre-VKFMJZFB-Bf-pz2Lx.js +328 -0
  43. package/lib/defaultLocale-A87O3snN.js +198 -0
  44. package/lib/diagram-FQU43EPY-BT8WeVzc.js +432 -0
  45. package/lib/diagram-G47NLZAW-vZ2XG37l.js +527 -0
  46. package/lib/diagram-NH7WQ7WH-CH0IfHB0.js +134 -0
  47. package/lib/diagram-OA4YK3LP-BgwQcJfp.js +300 -0
  48. package/lib/diagram-WEI45ONY-Cd3sVPil.js +214 -0
  49. package/lib/dist-PGS6ynRO.js +59 -0
  50. package/lib/ebnfDiagram-CCIWWBDH-CwBFb2Fm.js +100 -0
  51. package/lib/erDiagram-Q63AITRT-BshRACvj.js +1727 -0
  52. package/lib/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  53. package/lib/flowDiagram-23GEKE2U-C3zDgFvZ.js +16 -0
  54. package/lib/ganttDiagram-NO4QXBWP-BD5PiE8x.js +3073 -0
  55. package/lib/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  56. package/lib/gitGraphDiagram-IHSO6WYX-BAhccBh3.js +733 -0
  57. package/lib/graphlib-DglfpsVp.js +1267 -0
  58. package/lib/index.browser-Dv9K8IAp.js +26 -0
  59. package/lib/info-DKCQHKI2-BD_vOCz6.js +3 -0
  60. package/lib/infoDiagram-FWYZ7A6U-CGZnf03G.js +20 -0
  61. package/lib/init-sjaVZO3f.js +13 -0
  62. package/lib/ishikawaDiagram-FXEZZL3T-PFfVM0NO.js +719 -0
  63. package/lib/journeyDiagram-5HDEW3XC-CRGz7dcx.js +884 -0
  64. package/lib/kanban-definition-HUTT4EX6-BBH4Yn5e.js +974 -0
  65. package/lib/line-CJQicKfr.js +34 -0
  66. package/lib/linear-B9Cv96-J.js +288 -0
  67. package/lib/map-C7KALUOH.js +241 -0
  68. package/lib/mermaid-parser.core-BupC9XGF.js +638 -0
  69. package/lib/mermaid-renderer-Cp0xusfR.js +2425 -0
  70. package/lib/mindmap-definition-LN4V7U3C-CWL1sg0K.js +978 -0
  71. package/lib/ordinal-CNQzPcrr.js +65 -0
  72. package/lib/packet-7NZHBO7P-CgBlALV1.js +3 -0
  73. package/lib/path-DVvH25eQ.js +84 -0
  74. package/lib/pegDiagram-2B236MQR-BKv8dTtv.js +94 -0
  75. package/lib/pie-RZYD4A2V-CryPC-P_.js +3 -0
  76. package/lib/pieDiagram-ENE6RG2P-CXeFg_cL.js +203 -0
  77. package/lib/quadrantDiagram-ABIIQ3AL-v_u3aC8Y.js +2001 -0
  78. package/lib/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  79. package/lib/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  80. package/lib/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  81. package/lib/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  82. package/lib/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  83. package/lib/railroadDiagram-RFXS5EU6-mEC9tVS-.js +76 -0
  84. package/lib/requirementDiagram-TGXJPOKE-BAEzI7V4.js +2223 -0
  85. package/lib/rolldown-runtime-DArdT4gl.js +23 -0
  86. package/lib/rough.esm-B2w_aYoc.js +1361 -0
  87. package/lib/sankeyDiagram-HTMAVEWB-Dbu-sl2E.js +972 -0
  88. package/lib/sequenceDiagram-DBY2YBRQ-DCuWmWHX.js +4156 -0
  89. package/lib/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  90. package/lib/src-DQbL46sB.js +2139 -0
  91. package/lib/src-DuuHKEe6.js +704 -0
  92. package/lib/stateDiagram-2N3HPSRC-fs9QmDMR.js +220 -0
  93. package/lib/stateDiagram-v2-6OUMAXLB-wWxYbttN.js +30 -0
  94. package/lib/swimlanes-5IMT3BWC-QaXUd9db.js +5069 -0
  95. package/lib/swimlanesDiagram-G3AALYLV-BtGToCzH.js +30 -0
  96. package/lib/timeline-definition-FHXFAJF6-CAsyJrsw.js +1069 -0
  97. package/lib/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  98. package/lib/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  99. package/lib/types.d.ts +44 -0
  100. package/lib/v4-CZv9Hsqq.js +33 -0
  101. package/lib/vennDiagram-L72KCM5P-C87u0gjr.js +1880 -0
  102. package/lib/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  103. package/lib/wardleyDiagram-EHGQE667-BxviBDl_.js +645 -0
  104. package/lib/xychartDiagram-FW5EYKEG-BQQhanuH.js +2098 -0
  105. package/package.json +29 -0
@@ -0,0 +1,275 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
2
+ import { m as t } from "./src-DQbL46sB.js";
3
+ import { b as n, z as r } from "./chunk-WYO6CB5R-MV-yOaop.js";
4
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/icon/defaults.js
5
+ var i = Object.freeze({
6
+ left: 0,
7
+ top: 0,
8
+ width: 16,
9
+ height: 16
10
+ }), a = Object.freeze({
11
+ rotate: 0,
12
+ vFlip: !1,
13
+ hFlip: !1
14
+ }), o = Object.freeze({
15
+ ...i,
16
+ ...a
17
+ }), s = Object.freeze({
18
+ ...o,
19
+ body: "",
20
+ hidden: !1
21
+ }), c = Object.freeze({
22
+ width: null,
23
+ height: null
24
+ }), l = Object.freeze({
25
+ ...c,
26
+ ...a
27
+ }), u = (e, t, n, r = "") => {
28
+ let i = e.split(":");
29
+ if (e.slice(0, 1) === "@") {
30
+ if (i.length < 2 || i.length > 3) return null;
31
+ r = i.shift().slice(1);
32
+ }
33
+ if (i.length > 3 || !i.length) return null;
34
+ if (i.length > 1) {
35
+ let e = i.pop(), n = i.pop(), a = {
36
+ provider: i.length > 0 ? i[0] : r,
37
+ prefix: n,
38
+ name: e
39
+ };
40
+ return t && !d(a) ? null : a;
41
+ }
42
+ let a = i[0], o = a.split("-");
43
+ if (o.length > 1) {
44
+ let e = {
45
+ provider: r,
46
+ prefix: o.shift(),
47
+ name: o.join("-")
48
+ };
49
+ return t && !d(e) ? null : e;
50
+ }
51
+ if (n && r === "") {
52
+ let e = {
53
+ provider: r,
54
+ prefix: "",
55
+ name: a
56
+ };
57
+ return t && !d(e, n) ? null : e;
58
+ }
59
+ return null;
60
+ }, d = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
61
+ //#endregion
62
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/icon/transformations.js
63
+ function f(e, t) {
64
+ let n = {};
65
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
66
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
67
+ return r && (n.rotate = r), n;
68
+ }
69
+ //#endregion
70
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/icon/merge.js
71
+ function p(e, t) {
72
+ let n = f(e, t);
73
+ for (let r in s) r in a ? r in e && !(r in n) && (n[r] = a[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
74
+ return n;
75
+ }
76
+ //#endregion
77
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/icon-set/tree.js
78
+ function m(e, t) {
79
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
80
+ function a(e) {
81
+ if (n[e]) return i[e] = [];
82
+ if (!(e in i)) {
83
+ i[e] = null;
84
+ let t = r[e] && r[e].parent, n = t && a(t);
85
+ n && (i[e] = [t].concat(n));
86
+ }
87
+ return i[e];
88
+ }
89
+ return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
90
+ }
91
+ //#endregion
92
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/icon-set/get-icon.js
93
+ function h(e, t, n) {
94
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
95
+ function o(e) {
96
+ a = p(r[e] || i[e], a);
97
+ }
98
+ return o(t), n.forEach(o), p(e, a);
99
+ }
100
+ function g(e, t) {
101
+ if (e.icons[t]) return h(e, t, []);
102
+ let n = m(e, [t])[t];
103
+ return n ? h(e, t, n) : null;
104
+ }
105
+ //#endregion
106
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/svg/size.js
107
+ var _ = /(-?[0-9.]*[0-9]+[0-9.]*)/g, v = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
108
+ function y(e, t, n) {
109
+ if (t === 1) return e;
110
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
111
+ if (typeof e != "string") return e;
112
+ let r = e.split(_);
113
+ if (r === null || !r.length) return e;
114
+ let i = [], a = r.shift(), o = v.test(a);
115
+ for (;;) {
116
+ if (o) {
117
+ let e = parseFloat(a);
118
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
119
+ } else i.push(a);
120
+ if (a = r.shift(), a === void 0) return i.join("");
121
+ o = !o;
122
+ }
123
+ }
124
+ //#endregion
125
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/svg/defs.js
126
+ function b(e, t = "defs") {
127
+ let n = "", r = e.indexOf("<" + t);
128
+ for (; r >= 0;) {
129
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
130
+ if (i === -1 || a === -1) break;
131
+ let o = e.indexOf(">", a);
132
+ if (o === -1) break;
133
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
134
+ }
135
+ return {
136
+ defs: n,
137
+ content: e
138
+ };
139
+ }
140
+ function x(e, t) {
141
+ return e ? "<defs>" + e + "</defs>" + t : t;
142
+ }
143
+ function S(e, t, n) {
144
+ let r = b(e);
145
+ return x(r.defs, t + r.content + n);
146
+ }
147
+ //#endregion
148
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/svg/build.js
149
+ var C = (e) => e === "unset" || e === "undefined" || e === "none";
150
+ function w(e, t) {
151
+ let n = {
152
+ ...o,
153
+ ...e
154
+ }, r = {
155
+ ...l,
156
+ ...t
157
+ }, i = {
158
+ left: n.left,
159
+ top: n.top,
160
+ width: n.width,
161
+ height: n.height
162
+ }, a = n.body;
163
+ [n, r].forEach((e) => {
164
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
165
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
166
+ let s;
167
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
168
+ case 1:
169
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
170
+ break;
171
+ case 2:
172
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
173
+ break;
174
+ case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
175
+ }
176
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = S(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
177
+ });
178
+ let s = r.width, c = r.height, u = i.width, d = i.height, f, p;
179
+ s === null ? (p = c === null ? "1em" : c === "auto" ? d : c, f = y(p, u / d)) : (f = s === "auto" ? u : s, p = c === null ? y(f, d / u) : c === "auto" ? d : c);
180
+ let m = {}, h = (e, t) => {
181
+ C(t) || (m[e] = t.toString());
182
+ };
183
+ h("width", f), h("height", p);
184
+ let g = [
185
+ i.left,
186
+ i.top,
187
+ u,
188
+ d
189
+ ];
190
+ return m.viewBox = g.join(" "), {
191
+ attributes: m,
192
+ viewBox: g,
193
+ body: a
194
+ };
195
+ }
196
+ //#endregion
197
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/svg/id.js
198
+ var T = /\sid="(\S+)"/g, E = /* @__PURE__ */ new Map();
199
+ function D(e) {
200
+ e = e.replace(/[0-9]+$/, "") || "a";
201
+ let t = E.get(e) || 0;
202
+ return E.set(e, t + 1), t ? `${e}${t}` : e;
203
+ }
204
+ function O(e) {
205
+ let t = [], n;
206
+ for (; n = T.exec(e);) t.push(n[1]);
207
+ if (!t.length) return e;
208
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
209
+ return t.forEach((t) => {
210
+ let n = D(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
211
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
212
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
213
+ }
214
+ //#endregion
215
+ //#region ../../node_modules/.pnpm/@iconify+utils@3.1.4/node_modules/@iconify/utils/lib/svg/html.js
216
+ function k(e, t) {
217
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
218
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
219
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
220
+ }
221
+ //#endregion
222
+ //#region ../../node_modules/.pnpm/mermaid@11.16.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HOUHSVGY.mjs
223
+ var A = {
224
+ body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
225
+ height: 80,
226
+ width: 80
227
+ }, j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ e((e) => {
228
+ for (let n of e) {
229
+ if (!n.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
230
+ if (t.debug("Registering icon pack:", n.name), "loader" in n) M.set(n.name, n.loader);
231
+ else if ("icons" in n) j.set(n.name, n.icons);
232
+ else throw t.error("Invalid icon loader:", n), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
233
+ }
234
+ }, "registerIconPacks"), P = /* @__PURE__ */ e(async (e, n) => {
235
+ let r = u(e, !0, n !== void 0);
236
+ if (!r) throw Error(`Invalid icon name: ${e}`);
237
+ let i = r.prefix || n;
238
+ if (!i) throw Error(`Icon name must contain a prefix: ${e}`);
239
+ let a = j.get(i);
240
+ if (!a) {
241
+ let e = M.get(i);
242
+ if (!e) throw Error(`Icon set not found: ${r.prefix}`);
243
+ try {
244
+ a = {
245
+ ...await e(),
246
+ prefix: i
247
+ }, j.set(i, a);
248
+ } catch (e) {
249
+ throw t.error(e), Error(`Failed to load icon set: ${r.prefix}`);
250
+ }
251
+ }
252
+ let o = g(a, r.name);
253
+ if (!o) throw Error(`Icon not found: ${e}`);
254
+ return o;
255
+ }, "getRegisteredIconData"), F = /* @__PURE__ */ e(async (e) => {
256
+ try {
257
+ return await P(e), !0;
258
+ } catch {
259
+ return !1;
260
+ }
261
+ }, "isIconAvailable"), I = /* @__PURE__ */ e(async (e, i, a) => {
262
+ let o;
263
+ try {
264
+ o = await P(e, i?.fallbackPrefix);
265
+ } catch (e) {
266
+ t.error(e), o = A;
267
+ }
268
+ let s = w(o, i), c = k(O(s.body), {
269
+ ...s.attributes,
270
+ ...a
271
+ });
272
+ return r(c, n());
273
+ }, "getIconSVG");
274
+ //#endregion
275
+ export { A as i, F as n, N as r, I as t };