@uva-glass/component-library 3.50.5 → 3.50.7

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 (61) hide show
  1. package/dist/{Lexical.prod-DBU6xTBY.js → Lexical.prod-BAE-wnll.js} +873 -863
  2. package/dist/Lexical.prod-BAE-wnll.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-BS4qAkmJ.js +263 -0
  4. package/dist/LexicalClipboard.prod-BS4qAkmJ.js.map +1 -0
  5. package/dist/{LexicalLink.prod-DV9kT537.js → LexicalLink.prod-C6Or2Yo6.js} +97 -97
  6. package/dist/{LexicalLink.prod-DV9kT537.js.map → LexicalLink.prod-C6Or2Yo6.js.map} +1 -1
  7. package/dist/{LexicalList.prod-2UfLUgO1.js → LexicalList.prod-rTq41CO0.js} +24 -24
  8. package/dist/{LexicalList.prod-2UfLUgO1.js.map → LexicalList.prod-rTq41CO0.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-fLzEGOT_.js +116 -0
  10. package/dist/LexicalSelection.prod-fLzEGOT_.js.map +1 -0
  11. package/dist/{LexicalTable.prod-CZ1mYUR-.js → LexicalTable.prod-BBI7yaOy.js} +118 -118
  12. package/dist/LexicalTable.prod-BBI7yaOy.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-C3vvQk50.js → LexicalUtils.prod-D8DAKg7O.js} +36 -36
  14. package/dist/{LexicalUtils.prod-C3vvQk50.js.map → LexicalUtils.prod-D8DAKg7O.js.map} +1 -1
  15. package/dist/{TableCellResizerPlugin-CxFy7dbe.js → TableCellResizerPlugin-HPo4ZkHo.js} +39 -39
  16. package/dist/{TableCellResizerPlugin-CxFy7dbe.js.map → TableCellResizerPlugin-HPo4ZkHo.js.map} +1 -1
  17. package/dist/{TablePlugin-8TKXJMYE.js → TablePlugin-CeZO4BR1.js} +70 -70
  18. package/dist/{TablePlugin-8TKXJMYE.js.map → TablePlugin-CeZO4BR1.js.map} +1 -1
  19. package/dist/assets/StatusPill.css +1 -1
  20. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  21. package/dist/components/FormInput/FormInput.js +1 -1
  22. package/dist/components/InputField/InputField.stories.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  24. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  25. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  26. package/dist/components/MultiSelect/index.js +1 -1
  27. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  28. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  29. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  30. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  31. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  32. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +41 -41
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  36. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +14 -14
  37. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  38. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  39. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  41. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  42. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
  43. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  44. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +16 -16
  45. package/dist/components/RteEditor/Plugins/index.js +2 -2
  46. package/dist/components/RteEditor/RteEditor.js +219 -219
  47. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  48. package/dist/components/RteEditor/helpers.js +4 -4
  49. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +15 -15
  50. package/dist/components/StatusPill/StatusPill.d.ts +2 -2
  51. package/dist/components/StatusPill/StatusPill.js +11 -9
  52. package/dist/components/StatusPill/StatusPill.js.map +1 -1
  53. package/dist/components/index.js +1 -1
  54. package/dist/index.js +1 -1
  55. package/package.json +6 -6
  56. package/dist/Lexical.prod-DBU6xTBY.js.map +0 -1
  57. package/dist/LexicalClipboard.prod-CzGBnMdD.js +0 -272
  58. package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +0 -1
  59. package/dist/LexicalSelection.prod-C1JYA_go.js +0 -114
  60. package/dist/LexicalSelection.prod-C1JYA_go.js.map +0 -1
  61. package/dist/LexicalTable.prod-CZ1mYUR-.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import { U as K, l as It, L as $t } from "./LexicalUtils.prod-C3vvQk50.js";
2
- import { aK as At, aL as jt, aM as Ft, aN as Wt, U as bt, aO as Kt, aP as Jt, ad as zt, aQ as Bt, aR as Gt, ah as Zt, M as Vt, aS as Ht, g as Qt, aT as ot, f as w, _ as U, r as Et, Z as qt, a as R, P as X, e as I, v as Xt, aU as Yt, l as te, b as C, t as dt, aV as Y, K as wt, y as ht, a1 as ee, ae as ne } from "./Lexical.prod-DBU6xTBY.js";
1
+ import { U as J, l as At, L as Pt } from "./LexicalUtils.prod-D8DAKg7O.js";
2
+ import { aK as $t, aL as jt, aM as Ft, aN as Wt, Y as bt, aO as Jt, aP as zt, ad as Kt, aQ as Bt, aR as Zt, ah as Gt, A as Vt, aS as Ht, p as Qt, aT as ot, h as N, y as U, o as Et, Z as Yt, a as R, F as q, r as A, _ as qt, aU as Xt, j as te, d as C, n as dt, aV as X, B as Nt, m as ht, a1 as ee, ae as ne } from "./Lexical.prod-BAE-wnll.js";
3
3
  const ie = Symbol.for("preact-signals");
4
- function z() {
5
- if (N > 1) return void N--;
4
+ function K() {
5
+ if (w > 1) return void w--;
6
6
  let n, t = !1;
7
- for (; M !== void 0; ) {
8
- let e = M;
9
- for (M = void 0, tt++; e !== void 0; ) {
7
+ for (; L !== void 0; ) {
8
+ let e = L;
9
+ for (L = void 0, tt++; e !== void 0; ) {
10
10
  const i = e.o;
11
- if (e.o = void 0, e.f &= -3, !(8 & e.f) && Nt(e)) try {
11
+ if (e.o = void 0, e.f &= -3, !(8 & e.f) && wt(e)) try {
12
12
  e.c();
13
13
  } catch (o) {
14
14
  t || (n = o, t = !0);
@@ -16,18 +16,18 @@ function z() {
16
16
  e = i;
17
17
  }
18
18
  }
19
- if (tt = 0, N--, t) throw n;
19
+ if (tt = 0, w--, t) throw n;
20
20
  }
21
21
  function be(n) {
22
- if (N > 0) return n();
23
- N++;
22
+ if (w > 0) return n();
23
+ w++;
24
24
  try {
25
25
  return n();
26
26
  } finally {
27
- z();
27
+ K();
28
28
  }
29
29
  }
30
- let g, M;
30
+ let g, L;
31
31
  function gt(n) {
32
32
  const t = g;
33
33
  g = void 0;
@@ -37,7 +37,7 @@ function gt(n) {
37
37
  g = t;
38
38
  }
39
39
  }
40
- let N = 0, tt = 0, F = 0;
40
+ let w = 0, tt = 0, F = 0;
41
41
  function pt(n) {
42
42
  if (g === void 0) return;
43
43
  let t = n.n;
@@ -49,7 +49,7 @@ function _(n, t) {
49
49
  function se(n, t) {
50
50
  return new _(n, t);
51
51
  }
52
- function Nt(n) {
52
+ function wt(n) {
53
53
  for (let t = n.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
54
54
  return !1;
55
55
  }
@@ -76,7 +76,7 @@ function O(n, t) {
76
76
  function Ut(n) {
77
77
  const t = n.u;
78
78
  if (n.u = void 0, typeof t == "function") {
79
- N++;
79
+ w++;
80
80
  const e = g;
81
81
  g = void 0;
82
82
  try {
@@ -84,7 +84,7 @@ function Ut(n) {
84
84
  } catch (i) {
85
85
  throw n.f &= -2, n.f |= 8, lt(n), i;
86
86
  } finally {
87
- g = e, z();
87
+ g = e, K();
88
88
  }
89
89
  }
90
90
  }
@@ -94,7 +94,7 @@ function lt(n) {
94
94
  }
95
95
  function re(n) {
96
96
  if (g !== this) throw new Error("Out-of-order effect");
97
- Rt(this), g = n, this.f &= -2, 8 & this.f && lt(this), z();
97
+ Rt(this), g = n, this.f &= -2, 8 & this.f && lt(this), K();
98
98
  }
99
99
  function D(n, t) {
100
100
  this.x = n, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32, this.name = t?.name;
@@ -163,17 +163,17 @@ _.prototype.brand = ie, _.prototype.h = function() {
163
163
  }, set(n) {
164
164
  if (n !== this.v) {
165
165
  if (tt > 100) throw new Error("Cycle detected");
166
- this.v = n, this.i++, F++, N++;
166
+ this.v = n, this.i++, F++, w++;
167
167
  try {
168
168
  for (let t = this.t; t !== void 0; t = t.x) t.t.N();
169
169
  } finally {
170
- z();
170
+ K();
171
171
  }
172
172
  }
173
173
  } }), O.prototype = new _(), O.prototype.h = function() {
174
174
  if (this.f &= -3, 1 & this.f) return !1;
175
175
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === F)) return !0;
176
- if (this.g = F, this.f |= 1, this.i > 0 && !Nt(this)) return this.f &= -2, !0;
176
+ if (this.g = F, this.f |= 1, this.i > 0 && !wt(this)) return this.f &= -2, !0;
177
177
  const n = g;
178
178
  try {
179
179
  mt(this), g = this;
@@ -215,11 +215,11 @@ _.prototype.brand = ie, _.prototype.h = function() {
215
215
  }
216
216
  }, D.prototype.S = function() {
217
217
  if (1 & this.f) throw new Error("Cycle detected");
218
- this.f |= 1, this.f &= -9, Ut(this), mt(this), N++;
218
+ this.f |= 1, this.f &= -9, Ut(this), mt(this), w++;
219
219
  const n = g;
220
220
  return g = this, re.bind(this, n);
221
221
  }, D.prototype.N = function() {
222
- 2 & this.f || (this.f |= 2, this.o = M, M = this);
222
+ 2 & this.f || (this.f |= 2, this.o = L, L = this);
223
223
  }, D.prototype.d = function() {
224
224
  this.f |= 8, 1 & this.f || lt(this);
225
225
  }, D.prototype.dispose = function() {
@@ -239,7 +239,7 @@ function Ot(n, t) {
239
239
  }
240
240
  return t;
241
241
  }
242
- const at = 0, nt = 1, kt = 2, G = 3, A = 4, k = 5, Z = 6, T = 7;
242
+ const at = 0, nt = 1, kt = 2, Z = 3, $ = 4, k = 5, G = 6, T = 7;
243
243
  function V(n) {
244
244
  return n.id === at;
245
245
  }
@@ -273,17 +273,17 @@ class ae {
273
273
  const e = this.state;
274
274
  Ct(e) || p(306, String(e.id));
275
275
  const i = { getDependency: this.getInitDependency.bind(this), getDirectDependentNames: this.getDirectDependentNames.bind(this), getPeer: this.getInitPeer.bind(this), getPeerNameSet: this.getPeerNameSet.bind(this) }, o = { ...i, getDependency: this.getDependency.bind(this), getInitResult: this.getInitResult.bind(this), getPeer: this.getPeer.bind(this) }, s = (function(a, f, h) {
276
- return Object.assign(a, { config: f, id: G, registerState: h });
276
+ return Object.assign(a, { config: f, id: Z, registerState: h });
277
277
  })(e, this.mergeConfigs(), i);
278
278
  let r;
279
279
  this.state = s, this.extension.init && (r = this.extension.init(t, s.config, i)), this.state = (function(a, f, h) {
280
- return Object.assign(a, { id: A, initResult: f, registerState: h });
280
+ return Object.assign(a, { id: $, initResult: f, registerState: h });
281
281
  })(s, r, o);
282
282
  }
283
283
  build(t) {
284
284
  const e = this.state;
285
285
  let i;
286
- e.id !== A && p(307, String(e.id), String(k)), this.extension.build && (i = this.extension.build(t, e.config, e.registerState));
286
+ e.id !== $ && p(307, String(e.id), String(k)), this.extension.build && (i = this.extension.build(t, e.config, e.registerState));
287
287
  const o = { ...e.registerState, getOutput: () => i, getSignal: this.getSignal.bind(this) };
288
288
  this.state = (function(s, r, a) {
289
289
  return Object.assign(s, { id: k, output: r, registerState: a });
@@ -295,7 +295,7 @@ class ae {
295
295
  i.id !== k && p(308, String(i.id), String(k));
296
296
  const o = this.extension.register && this.extension.register(t, i.config, i.registerState);
297
297
  return this.state = (function(s) {
298
- return Object.assign(s, { id: Z });
298
+ return Object.assign(s, { id: G });
299
299
  })(i), () => {
300
300
  const s = this.state;
301
301
  s.id !== T && p(309, String(i.id), String(T)), this.state = (function(r) {
@@ -306,7 +306,7 @@ class ae {
306
306
  afterRegistration(t) {
307
307
  const e = this.state;
308
308
  let i;
309
- return e.id !== Z && p(310, String(e.id), String(Z)), this.extension.afterRegistration && (i = this.extension.afterRegistration(t, e.config, e.registerState)), this.state = (function(o) {
309
+ return e.id !== G && p(310, String(e.id), String(G)), this.extension.afterRegistration && (i = this.extension.afterRegistration(t, e.config, e.registerState)), this.state = (function(o) {
310
310
  return Object.assign(o, { id: T });
311
311
  })(e), i;
312
312
  }
@@ -317,8 +317,8 @@ class ae {
317
317
  this.extension.init === void 0 && p(312, this.extension.name);
318
318
  const t = this.state;
319
319
  return (function(e) {
320
- return e.id >= A;
321
- })(t) || p(313, String(t.id), String(A)), t.initResult;
320
+ return e.id >= $;
321
+ })(t) || p(313, String(t.id), String($)), t.initResult;
322
322
  }
323
323
  getInitPeer(t) {
324
324
  const e = this.builder.extensionNameMap.get(t);
@@ -327,8 +327,8 @@ class ae {
327
327
  getExtensionInitDependency() {
328
328
  const t = this.state;
329
329
  return (function(e) {
330
- return e.id >= G;
331
- })(t) || p(314, String(t.id), String(G)), { config: t.config };
330
+ return e.id >= Z;
331
+ })(t) || p(314, String(t.id), String(Z)), { config: t.config };
332
332
  }
333
333
  getPeer(t) {
334
334
  const e = this.builder.extensionNameMap.get(t);
@@ -367,7 +367,7 @@ class ae {
367
367
  }
368
368
  const vt = { tag: Ht };
369
369
  function ue() {
370
- const n = Zt();
370
+ const n = Gt();
371
371
  n.isEmpty() && n.append(Vt());
372
372
  }
373
373
  const ce = Ft({ config: Bt({ setOptions: vt, updateOptions: vt }), init: ({ $initialEditorState: n = ue }) => ({ $initialEditorState: n, initialized: !1 }), afterRegistration(n, { updateOptions: t, setOptions: e }, i) {
@@ -375,7 +375,7 @@ const ce = Ft({ config: Bt({ setOptions: vt, updateOptions: vt }), init: ({ $ini
375
375
  if (!o.initialized) {
376
376
  o.initialized = !0;
377
377
  const { $initialEditorState: s } = o;
378
- if (Gt(s)) n.setEditorState(s, e);
378
+ if (Zt(s)) n.setEditorState(s, e);
379
379
  else if (typeof s == "function") n.update(() => {
380
380
  s(n);
381
381
  }, t);
@@ -386,7 +386,7 @@ const ce = Ft({ config: Bt({ setOptions: vt, updateOptions: vt }), init: ({ $ini
386
386
  }
387
387
  return () => {
388
388
  };
389
- }, name: "@lexical/extension/InitialState", nodes: [Wt, bt, Kt, Jt, zt] }), xt = Symbol.for("@lexical/extension/LexicalBuilder");
389
+ }, name: "@lexical/extension/InitialState", nodes: [Wt, bt, Jt, zt, Kt] }), xt = Symbol.for("@lexical/extension/LexicalBuilder");
390
390
  function _t() {
391
391
  }
392
392
  function fe(n) {
@@ -395,8 +395,8 @@ function fe(n) {
395
395
  function j(n) {
396
396
  return Array.isArray(n) ? n : [n];
397
397
  }
398
- const H = "0.36.2+prod.esm";
399
- class L {
398
+ const H = "0.37.0+prod.esm";
399
+ class M {
400
400
  roots;
401
401
  extensionNameMap;
402
402
  outgoingConfigEdges;
@@ -411,18 +411,18 @@ class L {
411
411
  static fromExtensions(t) {
412
412
  const e = [j(ce)];
413
413
  for (const i of t) e.push(j(i));
414
- return new L(e);
414
+ return new M(e);
415
415
  }
416
416
  static maybeFromEditor(t) {
417
417
  const e = t[xt];
418
- return e && (e.PACKAGE_VERSION !== H && p(292, e.PACKAGE_VERSION, H), e instanceof L || p(293)), e;
418
+ return e && (e.PACKAGE_VERSION !== H && p(292, e.PACKAGE_VERSION, H), e instanceof M || p(293)), e;
419
419
  }
420
420
  static fromEditor(t) {
421
- const e = L.maybeFromEditor(t);
421
+ const e = M.maybeFromEditor(t);
422
422
  return e === void 0 && p(294), e;
423
423
  }
424
424
  constructEditor() {
425
- const { $initialEditorState: t, onError: e, ...i } = this.buildCreateEditorArgs(), o = Object.assign(At({ ...i, ...e ? { onError: (s) => {
425
+ const { $initialEditorState: t, onError: e, ...i } = this.buildCreateEditorArgs(), o = Object.assign($t({ ...i, ...e ? { onError: (s) => {
426
426
  e(s, o);
427
427
  } } : {} }), { [xt]: this });
428
428
  for (const s of this.sortedExtensionReps()) s.build(o);
@@ -438,7 +438,7 @@ class L {
438
438
  }
439
439
  }
440
440
  const i = Object.assign(this.constructEditor(), { dispose: e, [Symbol.dispose]: e });
441
- return t = K(this.registerEditor(i), () => i.setRootElement(null)), i;
441
+ return t = J(this.registerEditor(i), () => i.setRootElement(null)), i;
442
442
  }
443
443
  hasExtensionByName(t) {
444
444
  return this.extensionNameMap.has(t);
@@ -507,7 +507,7 @@ class L {
507
507
  const a = r.afterRegistration(t);
508
508
  a && o.push(a);
509
509
  }
510
- return K(...o);
510
+ return J(...o);
511
511
  }
512
512
  buildCreateEditorArgs() {
513
513
  const t = {}, e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = {}, r = {}, a = this.sortedExtensionReps();
@@ -533,12 +533,12 @@ class L {
533
533
  return t.onError || (t.onError = fe), t;
534
534
  }
535
535
  }
536
- function we(n, t) {
537
- const e = L.fromEditor(n).extensionNameMap.get(t);
536
+ function Ne(n, t) {
537
+ const e = M.fromEditor(n).extensionNameMap.get(t);
538
538
  return e ? e.getExtensionDependency() : void 0;
539
539
  }
540
540
  const de = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
541
- class $ extends Qt {
541
+ class P extends Qt {
542
542
  __url;
543
543
  __target;
544
544
  __rel;
@@ -547,7 +547,7 @@ class $ extends Qt {
547
547
  return "link";
548
548
  }
549
549
  static clone(t) {
550
- return new $(t.__url, { rel: t.__rel, target: t.__target, title: t.__title }, t.__key);
550
+ return new P(t.__url, { rel: t.__rel, target: t.__target, title: t.__title }, t.__key);
551
551
  }
552
552
  constructor(t = "", e = {}, i) {
553
553
  super(i);
@@ -556,7 +556,7 @@ class $ extends Qt {
556
556
  }
557
557
  createDOM(t) {
558
558
  const e = document.createElement("a");
559
- return this.updateLinkDOM(null, e, t), It(e, t.theme.link), e;
559
+ return this.updateLinkDOM(null, e, t), At(e, t.theme.link), e;
560
560
  }
561
561
  updateLinkDOM(t, e, i) {
562
562
  if (ot(e)) {
@@ -574,7 +574,7 @@ class $ extends Qt {
574
574
  return { a: (t) => ({ conversion: he, priority: 1 }) };
575
575
  }
576
576
  static importJSON(t) {
577
- return P().updateFromJSON(t);
577
+ return I().updateFromJSON(t);
578
578
  }
579
579
  updateFromJSON(t) {
580
580
  return super.updateFromJSON(t).setURL(t.url).setRel(t.rel || null).setTarget(t.target || null).setTitle(t.title || null);
@@ -621,7 +621,7 @@ class $ extends Qt {
621
621
  return e.__title = t, e;
622
622
  }
623
623
  insertNewAfter(t, e = !0) {
624
- const i = P(this.__url, { rel: this.__rel, target: this.__target, title: this.__title });
624
+ const i = I(this.__url, { rel: this.__rel, target: this.__target, title: this.__title });
625
625
  return this.insertAfter(i, e), i;
626
626
  }
627
627
  canInsertTextBefore() {
@@ -637,7 +637,7 @@ class $ extends Qt {
637
637
  return !0;
638
638
  }
639
639
  extractWithChild(t, e, i) {
640
- if (!w(e)) return !1;
640
+ if (!N(e)) return !1;
641
641
  const o = e.anchor.getNode(), s = e.focus.getNode();
642
642
  return this.isParentOf(o) && this.isParentOf(s) && e.getTextContent().length > 0;
643
643
  }
@@ -652,17 +652,17 @@ function he(n) {
652
652
  let t = null;
653
653
  if (ot(n)) {
654
654
  const e = n.textContent;
655
- (e !== null && e !== "" || n.children.length > 0) && (t = P(n.getAttribute("href") || "", { rel: n.getAttribute("rel"), target: n.getAttribute("target"), title: n.getAttribute("title") }));
655
+ (e !== null && e !== "" || n.children.length > 0) && (t = I(n.getAttribute("href") || "", { rel: n.getAttribute("rel"), target: n.getAttribute("target"), title: n.getAttribute("title") }));
656
656
  }
657
657
  return { node: t };
658
658
  }
659
- function P(n = "", t) {
660
- return Et(new $(n, t));
659
+ function I(n = "", t) {
660
+ return Et(new P(n, t));
661
661
  }
662
662
  function b(n) {
663
- return n instanceof $;
663
+ return n instanceof P;
664
664
  }
665
- class B extends $ {
665
+ class B extends P {
666
666
  __isUnlinked;
667
667
  constructor(t = "", e = {}, i) {
668
668
  super(t, e, i), this.__isUnlinked = e.isUnlinked !== void 0 && e.isUnlinked !== null && e.isUnlinked;
@@ -713,7 +713,7 @@ function it(n = "", t) {
713
713
  function E(n) {
714
714
  return n instanceof B;
715
715
  }
716
- const st = qt("TOGGLE_LINK_COMMAND");
716
+ const st = Yt("TOGGLE_LINK_COMMAND");
717
717
  function St(n, t) {
718
718
  if (n.type === "element") {
719
719
  const e = n.getNode();
@@ -733,8 +733,8 @@ function Q(n, t = {}) {
733
733
  e = u, t = { ...l, ...t };
734
734
  } else e = n;
735
735
  const { target: i, title: o } = t, s = t.rel === void 0 ? "noreferrer" : t.rel, r = R();
736
- if (r === null || !w(r) && !Y(r)) return;
737
- if (Y(r)) {
736
+ if (r === null || !N(r) && !X(r)) return;
737
+ if (X(r)) {
738
738
  const u = r.getNodes();
739
739
  return u.length === 0 ? void 0 : void u.forEach((l) => {
740
740
  if (e === null) {
@@ -744,7 +744,7 @@ function Q(n, t = {}) {
744
744
  const c = C(l, (d) => !E(d) && b(d));
745
745
  if (c) c.setURL(e), i !== void 0 && c.setTarget(i), s !== void 0 && c.setRel(s);
746
746
  else {
747
- const d = P(e, { rel: s, target: i });
747
+ const d = I(e, { rel: s, target: i });
748
748
  l.insertBefore(d), d.append(l);
749
749
  }
750
750
  }
@@ -768,11 +768,11 @@ function Q(n, t = {}) {
768
768
  }
769
769
  (function(u) {
770
770
  const l = R();
771
- if (!w(l)) return u();
771
+ if (!N(l)) return u();
772
772
  const c = ht(l), d = c.isBackward(), m = St(c.anchor, d ? -1 : 0), S = St(c.focus, d ? 0 : -1);
773
773
  if (u(), m || S) {
774
774
  const x = R();
775
- if (w(x)) {
775
+ if (N(x)) {
776
776
  const v = x.clone();
777
777
  if (m) {
778
778
  const y = m.getParent();
@@ -807,7 +807,7 @@ function Q(n, t = {}) {
807
807
  }
808
808
  }
809
809
  const d = l.getPreviousSibling();
810
- b(d) && d.is(u) ? d.append(l) : (u = P(e, { rel: s, target: i, title: o }), l.insertAfter(u), u.append(l));
810
+ b(d) && d.is(u) ? d.append(l) : (u = I(e, { rel: s, target: i, title: o }), l.insertAfter(u), u.append(l));
811
811
  }
812
812
  });
813
813
  }
@@ -815,8 +815,8 @@ const ge = /^\+?[0-9\s()-]{5,}$/;
815
815
  function yt(n) {
816
816
  return n.match(/^[a-z][a-z0-9+.-]*:/i) || n.match(/^[/#.]/) ? n : n.includes("@") ? `mailto:${n}` : ge.test(n) ? `tel:${n}` : `https://${n}`;
817
817
  }
818
- function Ne(n, t) {
819
- return K(et(() => n.registerCommand(st, (e) => {
818
+ function we(n, t) {
819
+ return J(et(() => n.registerCommand(st, (e) => {
820
820
  const i = t.validateUrl.peek(), o = t.attributes.peek();
821
821
  if (e === null) return Q(null), !0;
822
822
  if (typeof e == "string") return !(i !== void 0 && !i(e)) && (Q(e, o), !0);
@@ -824,23 +824,23 @@ function Ne(n, t) {
824
824
  const { url: s, target: r, rel: a, title: f } = e;
825
825
  return Q(s, { ...o, rel: a, target: r, title: f }), !0;
826
826
  }
827
- }, X)), et(() => {
827
+ }, q)), et(() => {
828
828
  const e = t.validateUrl.value;
829
829
  if (!e) return;
830
830
  const i = t.attributes.value;
831
831
  return n.registerCommand(ne, (o) => {
832
832
  const s = R();
833
- if (!w(s) || s.isCollapsed() || !$t(o, ClipboardEvent) || o.clipboardData === null) return !1;
833
+ if (!N(s) || s.isCollapsed() || !Pt(o, ClipboardEvent) || o.clipboardData === null) return !1;
834
834
  const r = o.clipboardData.getData("text");
835
835
  return !!e(r) && !s.getNodes().some((a) => U(a)) && (n.dispatchCommand(st, { ...i, url: r }), o.preventDefault(), !0);
836
- }, X);
836
+ }, q);
837
837
  }));
838
838
  }
839
839
  function Re(n, t, e = {}) {
840
840
  const i = (s) => {
841
841
  const r = s.target;
842
- if (!Xt(r)) return;
843
- const a = Yt(r);
842
+ if (!qt(r)) return;
843
+ const a = Xt(r);
844
844
  if (a === null) return;
845
845
  let f = null, h = null;
846
846
  if (a.update(() => {
@@ -862,7 +862,7 @@ function Re(n, t, e = {}) {
862
862
  }
863
863
  }), f === null || f === "") return;
864
864
  const u = n.getEditorState().read(R);
865
- if (w(u) && !u.isCollapsed()) return void s.preventDefault();
865
+ if (N(u) && !u.isCollapsed()) return void s.preventDefault();
866
866
  const l = s.type === "auxclick" && s.button === 1;
867
867
  window.open(f, t.newTab.peek() || l || s.metaKey || s.ctrlKey || h === "_blank" ? "_blank" : "_self"), s.preventDefault();
868
868
  }, o = (s) => {
@@ -886,25 +886,25 @@ function Dt(n, t) {
886
886
  return null;
887
887
  }
888
888
  const pe = /[.,;\s]/;
889
- function J(n) {
889
+ function z(n) {
890
890
  return pe.test(n);
891
891
  }
892
892
  function Tt(n) {
893
- return J(n[n.length - 1]);
893
+ return z(n[n.length - 1]);
894
894
  }
895
895
  function rt(n) {
896
- return J(n[0]);
896
+ return z(n[0]);
897
897
  }
898
- function Mt(n) {
898
+ function Lt(n) {
899
899
  let t = n.getPreviousSibling();
900
- return U(t) && (t = t.getLastDescendant()), t === null || wt(t) || I(t) && Tt(t.getTextContent());
900
+ return U(t) && (t = t.getLastDescendant()), t === null || Nt(t) || A(t) && Tt(t.getTextContent());
901
901
  }
902
- function Lt(n) {
902
+ function Mt(n) {
903
903
  let t = n.getNextSibling();
904
- return U(t) && (t = t.getFirstDescendant()), t === null || wt(t) || I(t) && rt(t.getTextContent());
904
+ return U(t) && (t = t.getFirstDescendant()), t === null || Nt(t) || A(t) && rt(t.getTextContent());
905
905
  }
906
906
  function me(n, t, e, i) {
907
- return (n > 0 ? J(e[n - 1]) : Mt(i[0])) ? t < e.length ? J(e[t]) : Lt(i[i.length - 1]) : !1;
907
+ return (n > 0 ? z(e[n - 1]) : Lt(i[0])) ? t < e.length ? z(e[t]) : Mt(i[i.length - 1]) : !1;
908
908
  }
909
909
  function ve(n, t, e) {
910
910
  const i = [], o = [], s = [];
@@ -939,18 +939,18 @@ function xe(n, t, e, i) {
939
939
  }
940
940
  a += S;
941
941
  }
942
- const u = R(), l = u ? u.getNodes().find(I) : void 0, c = dt(r.getTextContent());
943
- return c.setFormat(r.getFormat()), c.setDetail(r.getDetail()), c.setStyle(r.getStyle()), o.append(c, ...f), l && l === r && (w(u) ? c.select(u.anchor.offset, u.focus.offset) : Y(u) && c.select(0, c.getTextContent().length)), r.replace(o), h;
942
+ const u = R(), l = u ? u.getNodes().find(A) : void 0, c = dt(r.getTextContent());
943
+ return c.setFormat(r.getFormat()), c.setDetail(r.getDetail()), c.setStyle(r.getStyle()), o.append(c, ...f), l && l === r && (N(u) ? c.select(u.anchor.offset, u.focus.offset) : X(u) && c.select(0, c.getTextContent().length)), r.replace(o), h;
944
944
  }
945
945
  }
946
- function q(n, t, e) {
946
+ function Y(n, t, e) {
947
947
  const i = n.getChildren(), o = i.length;
948
948
  for (let f = 0; f < o; f++) {
949
949
  const h = i[f];
950
- if (!I(h) || !h.isSimpleText()) return W(n), void e(null, n.getURL());
950
+ if (!A(h) || !h.isSimpleText()) return W(n), void e(null, n.getURL());
951
951
  }
952
952
  const s = n.getTextContent(), r = Dt(s, t);
953
- if (r === null || r.text !== s || !Mt(n) || !Lt(n)) return W(n), void e(null, n.getURL());
953
+ if (r === null || r.text !== s || !Lt(n) || !Mt(n)) return W(n), void e(null, n.getURL());
954
954
  const a = n.getURL();
955
955
  if (a !== r.url && (n.setURL(r.url), e(r.url, a)), r.attributes) {
956
956
  const f = n.getRel();
@@ -969,15 +969,15 @@ function Oe(n, t = _e) {
969
969
  const { matchers: e, changeHandlers: i } = t, o = (s, r) => {
970
970
  for (const a of i) a(s, r);
971
971
  };
972
- return K(n.registerNodeTransform(bt, (s) => {
972
+ return J(n.registerNodeTransform(bt, (s) => {
973
973
  const r = s.getParentOrThrow(), a = s.getPreviousSibling();
974
- if (E(r) && !r.getIsUnlinked()) q(r, e, o);
974
+ if (E(r) && !r.getIsUnlinked()) Y(r, e, o);
975
975
  else if (!b(r)) {
976
976
  if (s.isSimpleText() && (rt(s.getTextContent()) || !E(a))) {
977
977
  const f = (function(h) {
978
978
  const u = [h];
979
979
  let l = h.getNextSibling();
980
- for (; l !== null && I(l) && l.isSimpleText() && (u.push(l), !/[\s]/.test(l.getTextContent())); ) l = l.getNextSibling();
980
+ for (; l !== null && A(l) && l.isSimpleText() && (u.push(l), !/[\s]/.test(l.getTextContent())); ) l = l.getNextSibling();
981
981
  return u;
982
982
  })(s);
983
983
  (function(h, u, l) {
@@ -987,7 +987,7 @@ function Oe(n, t = _e) {
987
987
  for (; (m = Dt(S, u)) && m !== null; ) {
988
988
  const v = m.index, y = v + m.length;
989
989
  if (me(x + v, x + y, d, c)) {
990
- const [ut, , Pt, ct] = ve(c, x + v, x + y), ft = xe(Pt, x + v - ut, x + y - ut, m);
990
+ const [ut, , It, ct] = ve(c, x + v, x + y), ft = xe(It, x + v - ut, x + y - ut, m);
991
991
  c = ft ? [ft, ...ct] : ct, l(m.url, null), x = 0;
992
992
  } else x += y;
993
993
  S = S.substring(y);
@@ -997,31 +997,31 @@ function Oe(n, t = _e) {
997
997
  (function(f, h, u) {
998
998
  const l = f.getPreviousSibling(), c = f.getNextSibling(), d = f.getTextContent();
999
999
  var m;
1000
- !E(l) || l.getIsUnlinked() || rt(d) && (m = d, !(l.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(m) : /^\.[a-zA-Z0-9]{1,}/.test(m))) || (l.append(f), q(l, h, u), u(null, l.getURL())), !E(c) || c.getIsUnlinked() || Tt(d) || (W(c), q(c, h, u), u(null, c.getURL()));
1000
+ !E(l) || l.getIsUnlinked() || rt(d) && (m = d, !(l.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(m) : /^\.[a-zA-Z0-9]{1,}/.test(m))) || (l.append(f), Y(l, h, u), u(null, l.getURL())), !E(c) || c.getIsUnlinked() || Tt(d) || (W(c), Y(c, h, u), u(null, c.getURL()));
1001
1001
  })(s, e, o);
1002
1002
  }
1003
1003
  }), n.registerCommand(st, (s) => {
1004
1004
  const r = R();
1005
- return s !== null || !w(r) || r.extract().forEach((a) => {
1005
+ return s !== null || !N(r) || r.extract().forEach((a) => {
1006
1006
  const f = a.getParent();
1007
1007
  E(f) && (f.setIsUnlinked(!f.getIsUnlinked()), f.markDirty());
1008
1008
  }), !1;
1009
- }, X));
1009
+ }, q));
1010
1010
  }
1011
1011
  export {
1012
1012
  B as A,
1013
- we as F,
1013
+ Ne as F,
1014
1014
  Ue as H,
1015
1015
  Q as J,
1016
1016
  Re as K,
1017
1017
  st as P,
1018
- $ as R,
1019
- L as T,
1018
+ P as R,
1019
+ M as T,
1020
1020
  Ee as a,
1021
1021
  be as b,
1022
1022
  et as d,
1023
1023
  Oe as l,
1024
1024
  b as w,
1025
- Ne as z
1025
+ we as z
1026
1026
  };
1027
- //# sourceMappingURL=LexicalLink.prod-DV9kT537.js.map
1027
+ //# sourceMappingURL=LexicalLink.prod-C6Or2Yo6.js.map