laif-ds 0.2.85 → 0.2.87
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 +11 -81
- package/dist/CHANGELOG.md +13 -0
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/agent-docs/adoption-report.json +2 -2
- package/dist/agent-docs/manifest.json +3 -3
- package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
- package/dist/components/editor/editor-ui/content-editable.js +1 -1
- package/dist/components/editor/nodes/mention-node.js +2 -2
- package/dist/components/editor/plugins/actions/clear-editor-plugin.js +2 -2
- package/dist/components/editor/plugins/actions/counter-character-plugin.js +2 -2
- package/dist/components/editor/plugins/mention-plugin.js +21 -21
- package/dist/components/editor/plugins/toolbar/block-format/format-bulleted-list.js +10 -10
- package/dist/components/editor/plugins/toolbar/block-format/format-check-list.js +5 -5
- package/dist/components/editor/plugins/toolbar/block-format/format-heading.js +5 -5
- package/dist/components/editor/plugins/toolbar/block-format/format-numbered-list.js +5 -5
- package/dist/components/editor/plugins/toolbar/block-format/format-paragraph.js +9 -9
- package/dist/components/editor/plugins/toolbar/block-format/format-quote.js +3 -3
- package/dist/components/editor/plugins/toolbar/block-format-toolbar-plugin.js +13 -13
- package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +2 -2
- package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +18 -19
- package/dist/components/editor/plugins/toolbar/mention-insert-toolbar-plugin.js +1 -1
- package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +3 -3
- package/dist/components/ui/app-editor.js +51 -51
- package/dist/components/ui/markdown-renderer.js +33 -32
- package/dist/lib/utils.js +35 -34
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/{utils → core/node_modules/@floating-ui/utils}/dist/floating-ui.utils.js +33 -39
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +20 -19
- package/dist/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +12 -0
- package/dist/node_modules/@lexical/clipboard/dist/LexicalClipboard.prod.js +354 -0
- package/dist/node_modules/@lexical/code-core/dist/LexicalCodeCore.prod.js +298 -0
- package/dist/node_modules/@lexical/dragon/dist/LexicalDragon.prod.js +89 -0
- package/dist/node_modules/@lexical/extension/dist/LexicalExtension.prod.js +611 -0
- package/dist/node_modules/@lexical/history/dist/LexicalHistory.prod.js +96 -0
- package/dist/node_modules/@lexical/html/dist/LexicalHtml.prod.js +604 -0
- package/dist/node_modules/@lexical/link/dist/LexicalLink.prod.js +201 -0
- package/dist/node_modules/@lexical/list/dist/LexicalList.prod.js +843 -0
- package/dist/node_modules/@lexical/markdown/dist/LexicalMarkdown.prod.js +555 -0
- package/dist/node_modules/@lexical/react/dist/LexicalCheckListPlugin.prod.js +11 -0
- package/dist/node_modules/@lexical/react/dist/LexicalClearEditorPlugin.prod.js +13 -0
- package/dist/node_modules/@lexical/react/dist/LexicalComposer.prod.js +45 -0
- package/dist/node_modules/@lexical/react/{LexicalComposerContext.prod.js → dist/LexicalComposerContext.prod.js} +1 -1
- package/dist/node_modules/@lexical/react/dist/LexicalContentEditable.prod.js +53 -0
- package/dist/node_modules/@lexical/react/dist/LexicalErrorBoundary.prod.js +21 -0
- package/dist/node_modules/@lexical/react/{LexicalHistoryPlugin.prod.js → dist/LexicalHistoryPlugin.prod.js} +3 -3
- package/dist/node_modules/@lexical/react/dist/LexicalListPlugin.prod.js +17 -0
- package/dist/node_modules/@lexical/react/dist/LexicalOnChangePlugin.prod.js +16 -0
- package/dist/node_modules/@lexical/react/dist/LexicalReactProviderExtension.prod.js +6 -0
- package/dist/node_modules/@lexical/react/dist/LexicalRichTextPlugin.prod.js +77 -0
- package/dist/node_modules/@lexical/react/dist/LexicalTypeaheadMenuPlugin.prod.js +245 -0
- package/dist/node_modules/@lexical/react/dist/useLexicalEditable.prod.js +22 -0
- package/dist/node_modules/@lexical/rich-text/dist/LexicalRichText.prod.js +567 -0
- package/dist/node_modules/@lexical/selection/dist/LexicalSelection.prod.js +123 -0
- package/dist/node_modules/@lexical/table/dist/LexicalTable.prod.js +929 -0
- package/dist/node_modules/@lexical/text/{LexicalText.prod.js → dist/LexicalText.prod.js} +6 -6
- package/dist/node_modules/@lexical/utils/dist/LexicalUtils.prod.js +111 -0
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/lexical/dist/Lexical.prod.js +6731 -0
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/package.json +17 -15
- package/dist/_virtual/prism-cpp.js +0 -3
- package/dist/_virtual/prism-cpp2.js +0 -5
- package/dist/_virtual/prism-java.js +0 -3
- package/dist/_virtual/prism-java2.js +0 -5
- package/dist/_virtual/prism-python.js +0 -3
- package/dist/_virtual/prism-python2.js +0 -5
- package/dist/_virtual/prism-rust.js +0 -3
- package/dist/_virtual/prism-rust2.js +0 -5
- package/dist/_virtual/prism-typescript.js +0 -3
- package/dist/_virtual/prism-typescript2.js +0 -5
- package/dist/_virtual/prism.js +0 -3
- package/dist/_virtual/prism2.js +0 -5
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +0 -159
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +0 -236
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +0 -46
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +0 -89
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +0 -108
- package/dist/node_modules/@lexical/link/LexicalLink.prod.js +0 -187
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +0 -729
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +0 -367
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +0 -11
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +0 -17
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +0 -45
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +0 -55
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +0 -49
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +0 -17
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +0 -16
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +0 -56
- package/dist/node_modules/@lexical/react/LexicalTypeaheadMenuPlugin.prod.js +0 -220
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +0 -21
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +0 -376
- package/dist/node_modules/@lexical/selection/LexicalSelection.prod.js +0 -107
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +0 -661
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +0 -102
- package/dist/node_modules/lexical/Lexical.prod.js +0 -4912
- package/dist/node_modules/prismjs/components/prism-c.js +0 -77
- package/dist/node_modules/prismjs/components/prism-clike.js +0 -32
- package/dist/node_modules/prismjs/components/prism-cpp.js +0 -93
- package/dist/node_modules/prismjs/components/prism-css.js +0 -56
- package/dist/node_modules/prismjs/components/prism-java.js +0 -122
- package/dist/node_modules/prismjs/components/prism-javascript.js +0 -138
- package/dist/node_modules/prismjs/components/prism-markdown.js +0 -301
- package/dist/node_modules/prismjs/components/prism-markup.js +0 -174
- package/dist/node_modules/prismjs/components/prism-objectivec.js +0 -11
- package/dist/node_modules/prismjs/components/prism-powershell.js +0 -56
- package/dist/node_modules/prismjs/components/prism-python.js +0 -69
- package/dist/node_modules/prismjs/components/prism-rust.js +0 -124
- package/dist/node_modules/prismjs/components/prism-sql.js +0 -34
- package/dist/node_modules/prismjs/components/prism-swift.js +0 -114
- package/dist/node_modules/prismjs/components/prism-typescript.js +0 -53
- package/dist/node_modules/prismjs/prism.js +0 -1165
- /package/dist/node_modules/@floating-ui/{utils → dom/node_modules/@floating-ui/utils}/dist/floating-ui.utils.dom.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $getRoot as
|
|
2
|
+
import { $getRoot as i, $isDecoratorNode as u, $isElementNode as c, $isParagraphNode as d, $isTextNode as h } from "../../../lexical/dist/Lexical.prod.js";
|
|
3
3
|
function $() {
|
|
4
|
-
return
|
|
4
|
+
return i().getTextContent();
|
|
5
5
|
}
|
|
6
6
|
function g(t, r = !0) {
|
|
7
7
|
if (t) return !1;
|
|
@@ -10,7 +10,7 @@ function g(t, r = !0) {
|
|
|
10
10
|
}
|
|
11
11
|
function C(t) {
|
|
12
12
|
if (!g(t, !1)) return !1;
|
|
13
|
-
const r =
|
|
13
|
+
const r = i().getChildren(), e = r.length;
|
|
14
14
|
if (e > 1) return !1;
|
|
15
15
|
for (let o = 0; o < e; o++) {
|
|
16
16
|
const n = r[o];
|
|
@@ -18,7 +18,7 @@ function C(t) {
|
|
|
18
18
|
if (c(n)) {
|
|
19
19
|
if (!d(n) || n.__indent !== 0) return !1;
|
|
20
20
|
const s = n.getChildren(), f = s.length;
|
|
21
|
-
for (let
|
|
21
|
+
for (let a = 0; a < f; a++) {
|
|
22
22
|
const l = s[o];
|
|
23
23
|
if (!h(l)) return !1;
|
|
24
24
|
}
|
|
@@ -26,12 +26,12 @@ function C(t) {
|
|
|
26
26
|
}
|
|
27
27
|
return !0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function x(t) {
|
|
30
30
|
return () => C(t);
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
33
|
C as $canShowPlaceholder,
|
|
34
|
-
|
|
34
|
+
x as $canShowPlaceholderCurry,
|
|
35
35
|
g as $isRootTextContentEmpty,
|
|
36
36
|
$ as $rootTextContent
|
|
37
37
|
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { $findMatchingParent as m, $isElementNode as a, $getSelection as g, $isRangeSelection as h, getParentElement as p, IS_FIREFOX as S, CAN_USE_DOM as I, $getChildCaret as E, makeStepwiseIterator as y, $isSiblingCaret as w } from "../../../lexical/dist/Lexical.prod.js";
|
|
3
|
+
import { $insertNodeToNearestRootAtCaret as M, CAN_USE_BEFORE_INPUT as x, IS_ANDROID as T, IS_ANDROID_CHROME as U, IS_APPLE as B, IS_APPLE_WEBKIT as k, IS_CHROME as j, IS_IOS as H, IS_SAFARI as K, addClassNamesToElement as z, isBlockDomNode as V, isHTMLAnchorElement as X, isHTMLElement as J, isInlineDomNode as W, mergeRegister as Y, removeClassNamesFromElement as Z } from "../../../lexical/dist/Lexical.prod.js";
|
|
4
|
+
function C(e, ...n) {
|
|
5
|
+
const t = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
|
|
6
|
+
o.append("code", e);
|
|
7
|
+
for (const r of n) o.append("v", r);
|
|
8
|
+
throw t.search = o.toString(), Error(`Minified Lexical error #${e}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
9
|
+
}
|
|
10
|
+
function A(e, n) {
|
|
11
|
+
const t = e.ownerDocument, o = t.defaultView || window;
|
|
12
|
+
let r = o.getComputedStyle(e);
|
|
13
|
+
const i = r.position === "absolute", l = n ? /(auto|scroll|hidden)/ : /(auto|scroll)/;
|
|
14
|
+
if (r.position === "fixed") return t.body;
|
|
15
|
+
for (let s = e; s = p(s); ) if (r = o.getComputedStyle(s), (!i || r.position !== "static") && l.test(r.overflow + r.overflowY + r.overflowX)) return s;
|
|
16
|
+
return t.body;
|
|
17
|
+
}
|
|
18
|
+
function $(e, n) {
|
|
19
|
+
let t = e;
|
|
20
|
+
for (; t != null; ) {
|
|
21
|
+
if (t instanceof n) return t;
|
|
22
|
+
t = t.getParent();
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
function O(e) {
|
|
27
|
+
const n = m(e, (t) => a(t) && !t.isInline());
|
|
28
|
+
return a(n) || C(4, e.__key), n;
|
|
29
|
+
}
|
|
30
|
+
function f(e, n) {
|
|
31
|
+
return e !== null && Object.getPrototypeOf(e).constructor.name === n.name;
|
|
32
|
+
}
|
|
33
|
+
function P(e) {
|
|
34
|
+
let n = null;
|
|
35
|
+
if (f(e, DragEvent) ? n = e.dataTransfer : f(e, ClipboardEvent) && (n = e.clipboardData), n === null) return [!1, [], !1];
|
|
36
|
+
const t = n.types, o = t.includes("Files"), r = t.includes("text/html") || t.includes("text/plain");
|
|
37
|
+
return [o, Array.from(n.files), r];
|
|
38
|
+
}
|
|
39
|
+
function R(e) {
|
|
40
|
+
const n = g();
|
|
41
|
+
if (!h(n)) return !1;
|
|
42
|
+
const t = /* @__PURE__ */ new Set(), o = n.getNodes();
|
|
43
|
+
for (let r = 0; r < o.length; r++) {
|
|
44
|
+
const i = o[r], l = i.getKey();
|
|
45
|
+
if (t.has(l)) continue;
|
|
46
|
+
const s = m(i, (d) => a(d) && !d.isInline());
|
|
47
|
+
if (s === null) continue;
|
|
48
|
+
const u = s.getKey();
|
|
49
|
+
s.canIndent() && !t.has(u) && (t.add(u), e(s));
|
|
50
|
+
}
|
|
51
|
+
return t.size > 0;
|
|
52
|
+
}
|
|
53
|
+
let c = !(S || !I) && void 0;
|
|
54
|
+
function b(e, n = !1) {
|
|
55
|
+
let t = 1;
|
|
56
|
+
if ((function() {
|
|
57
|
+
if (c === void 0) {
|
|
58
|
+
const o = document.createElement("div");
|
|
59
|
+
o.style.position = "absolute", o.style.opacity = "0", o.style.width = "100px", o.style.left = "-1000px", document.body.appendChild(o);
|
|
60
|
+
const r = o.getBoundingClientRect();
|
|
61
|
+
o.style.setProperty("zoom", "2"), c = o.getBoundingClientRect().width === r.width, document.body.removeChild(o);
|
|
62
|
+
}
|
|
63
|
+
return c;
|
|
64
|
+
})() || n) {
|
|
65
|
+
const o = e && e.ownerDocument.defaultView || window;
|
|
66
|
+
for (; e; ) t *= Number(o.getComputedStyle(e).getPropertyValue("zoom")), e = p(e);
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
function D(e, n) {
|
|
71
|
+
const t = [], o = Array.from(e).reverse();
|
|
72
|
+
for (let r = o.pop(); r !== void 0; r = o.pop()) if (n(r)) t.push(r);
|
|
73
|
+
else if (a(r)) for (const i of _(r)) o.push(i);
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
function _(e) {
|
|
77
|
+
return v(E(e, "previous"));
|
|
78
|
+
}
|
|
79
|
+
function v(e) {
|
|
80
|
+
return y({ hasNext: w, initial: e.getAdjacentCaret(), map: (n) => n.origin.getLatest(), step: (n) => n.getAdjacentCaret() });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
D as $descendantsMatching,
|
|
84
|
+
m as $findMatchingParent,
|
|
85
|
+
O as $getNearestBlockElementAncestorOrThrow,
|
|
86
|
+
$ as $getNearestNodeOfType,
|
|
87
|
+
R as $handleIndentAndOutdent,
|
|
88
|
+
M as $insertNodeToNearestRootAtCaret,
|
|
89
|
+
_ as $lastToFirstIterator,
|
|
90
|
+
x as CAN_USE_BEFORE_INPUT,
|
|
91
|
+
I as CAN_USE_DOM,
|
|
92
|
+
T as IS_ANDROID,
|
|
93
|
+
U as IS_ANDROID_CHROME,
|
|
94
|
+
B as IS_APPLE,
|
|
95
|
+
k as IS_APPLE_WEBKIT,
|
|
96
|
+
j as IS_CHROME,
|
|
97
|
+
S as IS_FIREFOX,
|
|
98
|
+
H as IS_IOS,
|
|
99
|
+
K as IS_SAFARI,
|
|
100
|
+
z as addClassNamesToElement,
|
|
101
|
+
b as calculateZoomLevel,
|
|
102
|
+
P as eventFiles,
|
|
103
|
+
A as getScrollParent,
|
|
104
|
+
V as isBlockDomNode,
|
|
105
|
+
X as isHTMLAnchorElement,
|
|
106
|
+
J as isHTMLElement,
|
|
107
|
+
W as isInlineDomNode,
|
|
108
|
+
Y as mergeRegister,
|
|
109
|
+
f as objectKlassEquals,
|
|
110
|
+
Z as removeClassNamesFromElement
|
|
111
|
+
};
|