laif-ds 0.2.85 → 0.2.86

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 (120) hide show
  1. package/README.md +11 -81
  2. package/dist/CHANGELOG.md +7 -0
  3. package/dist/_virtual/index3.js +5 -5
  4. package/dist/_virtual/index4.js +5 -5
  5. package/dist/_virtual/index5.js +4 -4
  6. package/dist/_virtual/index7.js +5 -2
  7. package/dist/_virtual/index8.js +2 -5
  8. package/dist/agent-docs/adoption-report.json +2 -2
  9. package/dist/agent-docs/manifest.json +3 -3
  10. package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
  11. package/dist/components/editor/editor-ui/content-editable.js +1 -1
  12. package/dist/components/editor/nodes/mention-node.js +2 -2
  13. package/dist/components/editor/plugins/actions/clear-editor-plugin.js +2 -2
  14. package/dist/components/editor/plugins/actions/counter-character-plugin.js +2 -2
  15. package/dist/components/editor/plugins/mention-plugin.js +21 -21
  16. package/dist/components/editor/plugins/toolbar/block-format/format-bulleted-list.js +10 -10
  17. package/dist/components/editor/plugins/toolbar/block-format/format-check-list.js +5 -5
  18. package/dist/components/editor/plugins/toolbar/block-format/format-heading.js +5 -5
  19. package/dist/components/editor/plugins/toolbar/block-format/format-numbered-list.js +5 -5
  20. package/dist/components/editor/plugins/toolbar/block-format/format-paragraph.js +9 -9
  21. package/dist/components/editor/plugins/toolbar/block-format/format-quote.js +3 -3
  22. package/dist/components/editor/plugins/toolbar/block-format-toolbar-plugin.js +13 -13
  23. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +2 -2
  24. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +18 -19
  25. package/dist/components/editor/plugins/toolbar/mention-insert-toolbar-plugin.js +1 -1
  26. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +3 -3
  27. package/dist/components/ui/app-editor.js +51 -51
  28. package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
  29. package/dist/components/ui/markdown-renderer.js +33 -32
  30. package/dist/lib/utils.js +35 -34
  31. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  32. package/dist/node_modules/@floating-ui/{utils → core/node_modules/@floating-ui/utils}/dist/floating-ui.utils.js +33 -39
  33. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +20 -19
  34. package/dist/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +12 -0
  35. package/dist/node_modules/@lexical/clipboard/dist/LexicalClipboard.prod.js +354 -0
  36. package/dist/node_modules/@lexical/code-core/dist/LexicalCodeCore.prod.js +298 -0
  37. package/dist/node_modules/@lexical/dragon/dist/LexicalDragon.prod.js +89 -0
  38. package/dist/node_modules/@lexical/extension/dist/LexicalExtension.prod.js +611 -0
  39. package/dist/node_modules/@lexical/history/dist/LexicalHistory.prod.js +96 -0
  40. package/dist/node_modules/@lexical/html/dist/LexicalHtml.prod.js +604 -0
  41. package/dist/node_modules/@lexical/link/dist/LexicalLink.prod.js +201 -0
  42. package/dist/node_modules/@lexical/list/dist/LexicalList.prod.js +843 -0
  43. package/dist/node_modules/@lexical/markdown/dist/LexicalMarkdown.prod.js +555 -0
  44. package/dist/node_modules/@lexical/react/dist/LexicalCheckListPlugin.prod.js +11 -0
  45. package/dist/node_modules/@lexical/react/dist/LexicalClearEditorPlugin.prod.js +13 -0
  46. package/dist/node_modules/@lexical/react/dist/LexicalComposer.prod.js +45 -0
  47. package/dist/node_modules/@lexical/react/{LexicalComposerContext.prod.js → dist/LexicalComposerContext.prod.js} +1 -1
  48. package/dist/node_modules/@lexical/react/dist/LexicalContentEditable.prod.js +53 -0
  49. package/dist/node_modules/@lexical/react/dist/LexicalErrorBoundary.prod.js +21 -0
  50. package/dist/node_modules/@lexical/react/{LexicalHistoryPlugin.prod.js → dist/LexicalHistoryPlugin.prod.js} +3 -3
  51. package/dist/node_modules/@lexical/react/dist/LexicalListPlugin.prod.js +17 -0
  52. package/dist/node_modules/@lexical/react/dist/LexicalOnChangePlugin.prod.js +16 -0
  53. package/dist/node_modules/@lexical/react/dist/LexicalReactProviderExtension.prod.js +6 -0
  54. package/dist/node_modules/@lexical/react/dist/LexicalRichTextPlugin.prod.js +77 -0
  55. package/dist/node_modules/@lexical/react/dist/LexicalTypeaheadMenuPlugin.prod.js +245 -0
  56. package/dist/node_modules/@lexical/react/dist/useLexicalEditable.prod.js +22 -0
  57. package/dist/node_modules/@lexical/rich-text/dist/LexicalRichText.prod.js +567 -0
  58. package/dist/node_modules/@lexical/selection/dist/LexicalSelection.prod.js +123 -0
  59. package/dist/node_modules/@lexical/table/dist/LexicalTable.prod.js +929 -0
  60. package/dist/node_modules/@lexical/text/{LexicalText.prod.js → dist/LexicalText.prod.js} +6 -6
  61. package/dist/node_modules/@lexical/utils/dist/LexicalUtils.prod.js +111 -0
  62. package/dist/node_modules/eventemitter3/index.js +1 -1
  63. package/dist/node_modules/eventemitter3/index2.js +1 -1
  64. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  65. package/dist/node_modules/lexical/dist/Lexical.prod.js +6731 -0
  66. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  67. package/dist/node_modules/unified/lib/index.js +1 -1
  68. package/package.json +14 -14
  69. package/dist/_virtual/prism-cpp.js +0 -3
  70. package/dist/_virtual/prism-cpp2.js +0 -5
  71. package/dist/_virtual/prism-java.js +0 -3
  72. package/dist/_virtual/prism-java2.js +0 -5
  73. package/dist/_virtual/prism-python.js +0 -3
  74. package/dist/_virtual/prism-python2.js +0 -5
  75. package/dist/_virtual/prism-rust.js +0 -3
  76. package/dist/_virtual/prism-rust2.js +0 -5
  77. package/dist/_virtual/prism-typescript.js +0 -3
  78. package/dist/_virtual/prism-typescript2.js +0 -5
  79. package/dist/_virtual/prism.js +0 -3
  80. package/dist/_virtual/prism2.js +0 -5
  81. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +0 -159
  82. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +0 -236
  83. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +0 -46
  84. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +0 -89
  85. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +0 -108
  86. package/dist/node_modules/@lexical/link/LexicalLink.prod.js +0 -187
  87. package/dist/node_modules/@lexical/list/LexicalList.prod.js +0 -729
  88. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +0 -367
  89. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +0 -11
  90. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +0 -17
  91. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +0 -45
  92. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +0 -55
  93. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +0 -49
  94. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +0 -17
  95. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +0 -16
  96. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +0 -56
  97. package/dist/node_modules/@lexical/react/LexicalTypeaheadMenuPlugin.prod.js +0 -220
  98. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +0 -21
  99. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +0 -376
  100. package/dist/node_modules/@lexical/selection/LexicalSelection.prod.js +0 -107
  101. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +0 -661
  102. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +0 -102
  103. package/dist/node_modules/lexical/Lexical.prod.js +0 -4912
  104. package/dist/node_modules/prismjs/components/prism-c.js +0 -77
  105. package/dist/node_modules/prismjs/components/prism-clike.js +0 -32
  106. package/dist/node_modules/prismjs/components/prism-cpp.js +0 -93
  107. package/dist/node_modules/prismjs/components/prism-css.js +0 -56
  108. package/dist/node_modules/prismjs/components/prism-java.js +0 -122
  109. package/dist/node_modules/prismjs/components/prism-javascript.js +0 -138
  110. package/dist/node_modules/prismjs/components/prism-markdown.js +0 -301
  111. package/dist/node_modules/prismjs/components/prism-markup.js +0 -174
  112. package/dist/node_modules/prismjs/components/prism-objectivec.js +0 -11
  113. package/dist/node_modules/prismjs/components/prism-powershell.js +0 -56
  114. package/dist/node_modules/prismjs/components/prism-python.js +0 -69
  115. package/dist/node_modules/prismjs/components/prism-rust.js +0 -124
  116. package/dist/node_modules/prismjs/components/prism-sql.js +0 -34
  117. package/dist/node_modules/prismjs/components/prism-swift.js +0 -114
  118. package/dist/node_modules/prismjs/components/prism-typescript.js +0 -53
  119. package/dist/node_modules/prismjs/prism.js +0 -1165
  120. /package/dist/node_modules/@floating-ui/{utils → dom/node_modules/@floating-ui/utils}/dist/floating-ui.utils.dom.js +0 -0
@@ -1,108 +0,0 @@
1
- "use client";
2
- import { $sliceSelectedTextNodeContent as E } from "../selection/LexicalSelection.prod.js";
3
- import { ArtificialNode__DO_NOT_USE as $, $createLineBreakNode as v, $isRootOrShadowRoot as O, $isBlockElementNode as y, isBlockDomNode as C, isInlineDomNode as S, $isElementNode as N, $getRoot as _, $cloneWithProperties as k, $isTextNode as L, isHTMLElement as P, isDocumentFragment as b, $createParagraphNode as B } from "../../lexical/Lexical.prod.js";
4
- function I(l, o) {
5
- const c = o.body ? o.body.childNodes : [];
6
- let r = [];
7
- const s = [];
8
- for (let a = 0; a < c.length; a++) {
9
- const e = c[a];
10
- if (!F.has(e.nodeName)) {
11
- const n = T(e, l, s, !1);
12
- n !== null && (r = r.concat(n));
13
- }
14
- }
15
- return (function(a) {
16
- for (const e of a) e.getNextSibling() instanceof $ && e.insertAfter(v());
17
- for (const e of a) {
18
- const n = e.getChildren();
19
- for (const f of n) e.insertBefore(f);
20
- e.remove();
21
- }
22
- })(s), r;
23
- }
24
- function z(l, o) {
25
- if (typeof document > "u" || typeof window > "u" && global.window === void 0) throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
26
- const c = document.createElement("div"), r = _().getChildren();
27
- for (let s = 0; s < r.length; s++)
28
- D(l, r[s], c, o);
29
- return c.innerHTML;
30
- }
31
- function D(l, o, c, r = null) {
32
- let s = r === null || o.isSelected(r);
33
- const a = N(o) && o.excludeFromCopy("html");
34
- let e = o;
35
- if (r !== null) {
36
- let i = k(o);
37
- i = L(i) && r !== null ? E(r, i) : i, e = i;
38
- }
39
- const n = N(e) ? e.getChildren() : [], f = l._nodes.get(e.getType());
40
- let h;
41
- h = f && f.exportDOM !== void 0 ? f.exportDOM(l, e) : e.exportDOM(l);
42
- const { element: d, after: m } = h;
43
- if (!d) return !1;
44
- const u = document.createDocumentFragment();
45
- for (let i = 0; i < n.length; i++) {
46
- const t = n[i], p = D(l, t, u, r);
47
- !s && N(o) && p && o.extractWithChild(t, r, "html") && (s = !0);
48
- }
49
- if (s && !a) {
50
- if ((P(d) || b(d)) && d.append(u), c.append(d), m) {
51
- const i = m.call(e, d);
52
- i && (b(d) ? d.replaceChildren(i) : d.replaceWith(i));
53
- }
54
- } else c.append(u);
55
- return s;
56
- }
57
- const F = /* @__PURE__ */ new Set(["STYLE", "SCRIPT"]);
58
- function T(l, o, c, r, s = /* @__PURE__ */ new Map(), a) {
59
- let e = [];
60
- if (F.has(l.nodeName)) return e;
61
- let n = null;
62
- const f = (function(t, p) {
63
- const { nodeName: A } = t, x = p._htmlConversions.get(A.toLowerCase());
64
- let g = null;
65
- if (x !== void 0) for (const M of x) {
66
- const w = M(t);
67
- w !== null && (g === null || (g.priority || 0) <= (w.priority || 0)) && (g = w);
68
- }
69
- return g !== null ? g.conversion : null;
70
- })(l, o), h = f ? f(l) : null;
71
- let d = null;
72
- if (h !== null) {
73
- d = h.after;
74
- const t = h.node;
75
- if (n = Array.isArray(t) ? t[t.length - 1] : t, n !== null) {
76
- for (const [, p] of s) if (n = p(n, a), !n) break;
77
- n && e.push(...Array.isArray(t) ? t : [n]);
78
- }
79
- h.forChild != null && s.set(l.nodeName, h.forChild);
80
- }
81
- const m = l.childNodes;
82
- let u = [];
83
- const i = (n == null || !O(n)) && (n != null && y(n) || r);
84
- for (let t = 0; t < m.length; t++) u.push(...T(m[t], o, c, i, new Map(s), n));
85
- return d != null && (u = d(u)), C(l) && (u = H(l, u, i ? () => {
86
- const t = new $();
87
- return c.push(t), t;
88
- } : B)), n == null ? u.length > 0 ? e = e.concat(u) : C(l) && (function(t) {
89
- return t.nextSibling == null || t.previousSibling == null ? !1 : S(t.nextSibling) && S(t.previousSibling);
90
- })(l) && (e = e.concat(v())) : N(n) && n.append(...u), e;
91
- }
92
- function H(l, o, c) {
93
- const r = l.style.textAlign, s = [];
94
- let a = [];
95
- for (let e = 0; e < o.length; e++) {
96
- const n = o[e];
97
- if (y(n)) r && !n.getFormat() && n.setFormat(r), s.push(n);
98
- else if (a.push(n), e === o.length - 1 || e < o.length - 1 && y(o[e + 1])) {
99
- const f = c();
100
- f.setFormat(r), f.append(...a), s.push(f), a = [];
101
- }
102
- }
103
- return s;
104
- }
105
- export {
106
- z as $generateHtmlFromNodes,
107
- I as $generateNodesFromDOM
108
- };
@@ -1,187 +0,0 @@
1
- "use client";
2
- import { addClassNamesToElement as g } from "../utils/LexicalUtils.prod.js";
3
- import { ElementNode as p, isHTMLAnchorElement as h, $isRangeSelection as f, $applyNodeReplacement as d, $isElementNode as m } from "../../lexical/Lexical.prod.js";
4
- const k = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
5
- class u extends p {
6
- static getType() {
7
- return "link";
8
- }
9
- static clone(t) {
10
- return new u(t.__url, { rel: t.__rel, target: t.__target, title: t.__title }, t.__key);
11
- }
12
- constructor(t = "", e = {}, n) {
13
- super(n);
14
- const { target: i = null, rel: s = null, title: l = null } = e;
15
- this.__url = t, this.__target = i, this.__rel = s, this.__title = l;
16
- }
17
- createDOM(t) {
18
- const e = document.createElement("a");
19
- return this.updateLinkDOM(null, e, t), g(e, t.theme.link), e;
20
- }
21
- updateLinkDOM(t, e, n) {
22
- if (h(e)) {
23
- t && t.__url === this.__url || (e.href = this.sanitizeUrl(this.__url));
24
- for (const i of ["target", "rel", "title"]) {
25
- const s = `__${i}`, l = this[s];
26
- t && t[s] === l || (l ? e[i] = l : e.removeAttribute(i));
27
- }
28
- }
29
- }
30
- updateDOM(t, e, n) {
31
- return this.updateLinkDOM(t, e, n), !1;
32
- }
33
- static importDOM() {
34
- return { a: (t) => ({ conversion: U, priority: 1 }) };
35
- }
36
- static importJSON(t) {
37
- return o().updateFromJSON(t);
38
- }
39
- updateFromJSON(t) {
40
- return super.updateFromJSON(t).setURL(t.url).setRel(t.rel || null).setTarget(t.target || null).setTitle(t.title || null);
41
- }
42
- sanitizeUrl(t) {
43
- t = c(t);
44
- try {
45
- const e = new URL(c(t));
46
- if (!k.has(e.protocol)) return "about:blank";
47
- } catch {
48
- return t;
49
- }
50
- return t;
51
- }
52
- exportJSON() {
53
- return { ...super.exportJSON(), rel: this.getRel(), target: this.getTarget(), title: this.getTitle(), url: this.getURL() };
54
- }
55
- getURL() {
56
- return this.getLatest().__url;
57
- }
58
- setURL(t) {
59
- const e = this.getWritable();
60
- return e.__url = t, e;
61
- }
62
- getTarget() {
63
- return this.getLatest().__target;
64
- }
65
- setTarget(t) {
66
- const e = this.getWritable();
67
- return e.__target = t, e;
68
- }
69
- getRel() {
70
- return this.getLatest().__rel;
71
- }
72
- setRel(t) {
73
- const e = this.getWritable();
74
- return e.__rel = t, e;
75
- }
76
- getTitle() {
77
- return this.getLatest().__title;
78
- }
79
- setTitle(t) {
80
- const e = this.getWritable();
81
- return e.__title = t, e;
82
- }
83
- insertNewAfter(t, e = !0) {
84
- const n = o(this.__url, { rel: this.__rel, target: this.__target, title: this.__title });
85
- return this.insertAfter(n, e), n;
86
- }
87
- canInsertTextBefore() {
88
- return !1;
89
- }
90
- canInsertTextAfter() {
91
- return !1;
92
- }
93
- canBeEmpty() {
94
- return !1;
95
- }
96
- isInline() {
97
- return !0;
98
- }
99
- extractWithChild(t, e, n) {
100
- if (!f(e)) return !1;
101
- const i = e.anchor.getNode(), s = e.focus.getNode();
102
- return this.isParentOf(i) && this.isParentOf(s) && e.getTextContent().length > 0;
103
- }
104
- isEmailURI() {
105
- return this.__url.startsWith("mailto:");
106
- }
107
- isWebSiteURI() {
108
- return this.__url.startsWith("https://") || this.__url.startsWith("http://");
109
- }
110
- }
111
- function U(r) {
112
- let t = null;
113
- if (h(r)) {
114
- const e = r.textContent;
115
- (e !== null && e !== "" || r.children.length > 0) && (t = o(r.getAttribute("href") || "", { rel: r.getAttribute("rel"), target: r.getAttribute("target"), title: r.getAttribute("title") }));
116
- }
117
- return { node: t };
118
- }
119
- function o(r = "", t) {
120
- return d(new u(r, t));
121
- }
122
- function S(r) {
123
- return r instanceof u;
124
- }
125
- class a extends u {
126
- constructor(t = "", e = {}, n) {
127
- super(t, e, n), this.__isUnlinked = e.isUnlinked !== void 0 && e.isUnlinked !== null && e.isUnlinked;
128
- }
129
- static getType() {
130
- return "autolink";
131
- }
132
- static clone(t) {
133
- return new a(t.__url, { isUnlinked: t.__isUnlinked, rel: t.__rel, target: t.__target, title: t.__title }, t.__key);
134
- }
135
- getIsUnlinked() {
136
- return this.__isUnlinked;
137
- }
138
- setIsUnlinked(t) {
139
- const e = this.getWritable();
140
- return e.__isUnlinked = t, e;
141
- }
142
- createDOM(t) {
143
- return this.__isUnlinked ? document.createElement("span") : super.createDOM(t);
144
- }
145
- updateDOM(t, e, n) {
146
- return super.updateDOM(t, e, n) || t.__isUnlinked !== this.__isUnlinked;
147
- }
148
- static importJSON(t) {
149
- return _().updateFromJSON(t);
150
- }
151
- updateFromJSON(t) {
152
- return super.updateFromJSON(t).setIsUnlinked(t.isUnlinked || !1);
153
- }
154
- static importDOM() {
155
- return null;
156
- }
157
- exportJSON() {
158
- return { ...super.exportJSON(), isUnlinked: this.__isUnlinked };
159
- }
160
- insertNewAfter(t, e = !0) {
161
- const n = this.getParentOrThrow().insertNewAfter(t, e);
162
- if (m(n)) {
163
- const i = _(this.__url, { isUnlinked: this.__isUnlinked, rel: this.__rel, target: this.__target, title: this.__title });
164
- return n.append(i), i;
165
- }
166
- return null;
167
- }
168
- }
169
- function _(r = "", t) {
170
- return d(new a(r, t));
171
- }
172
- function T(r) {
173
- return r instanceof a;
174
- }
175
- const N = /^\+?[0-9\s()-]{5,}$/;
176
- function c(r) {
177
- return r.match(/^[a-z][a-z0-9+.-]*:/i) || r.match(/^[/#.]/) ? r : r.includes("@") ? `mailto:${r}` : N.test(r) ? `tel:${r}` : `https://${r}`;
178
- }
179
- export {
180
- _ as $createAutoLinkNode,
181
- o as $createLinkNode,
182
- T as $isAutoLinkNode,
183
- S as $isLinkNode,
184
- a as AutoLinkNode,
185
- u as LinkNode,
186
- c as formatUrl
187
- };