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,107 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { $createRangeSelection as k, $isElementNode as g, INTERNAL_$isBlock as $, $getSelection as P, $setSelection as v, $caretFromPoint as w, $isExtendableTextPointCaret as K, $extendCaretToRange as E, $isChildCaret as I, $isDecoratorNode as O, $isRootNode as h, $getEditor as _, $isTokenOrSegmented as B, $getCharacterOffsets as F } from "../../lexical/Lexical.prod.js";
|
|
3
|
-
import { $cloneWithProperties as J, $selectAll as Q } from "../../lexical/Lexical.prod.js";
|
|
4
|
-
const p = /* @__PURE__ */ new Map();
|
|
5
|
-
function S(t) {
|
|
6
|
-
const e = {};
|
|
7
|
-
if (!t) return e;
|
|
8
|
-
const n = t.split(";");
|
|
9
|
-
for (const o of n) if (o !== "") {
|
|
10
|
-
const [r, s] = o.split(/:([^]+)/);
|
|
11
|
-
r && s && (e[r.trim()] = s.trim());
|
|
12
|
-
}
|
|
13
|
-
return e;
|
|
14
|
-
}
|
|
15
|
-
function A(t) {
|
|
16
|
-
let e = p.get(t);
|
|
17
|
-
return e === void 0 && (e = S(t), p.set(t, e)), e;
|
|
18
|
-
}
|
|
19
|
-
function L(t, e) {
|
|
20
|
-
const n = t.getStartEndPoints();
|
|
21
|
-
if (e.isSelected(t) && !B(e) && n !== null) {
|
|
22
|
-
const [o, r] = n, s = t.isBackward(), i = o.getNode(), c = r.getNode(), l = e.is(i), u = e.is(c);
|
|
23
|
-
if (l || u) {
|
|
24
|
-
const [a, f] = F(t), C = i.is(c), T = e.is(s ? c : i), x = e.is(s ? i : c);
|
|
25
|
-
let d, y = 0;
|
|
26
|
-
C ? (y = a > f ? f : a, d = a > f ? a : f) : T ? (y = s ? f : a, d = void 0) : x && (y = 0, d = s ? a : f), e.__text = e.__text.slice(y, d);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return e;
|
|
30
|
-
}
|
|
31
|
-
function W(t) {
|
|
32
|
-
const e = t.getStyle(), n = S(e);
|
|
33
|
-
p.set(e, n);
|
|
34
|
-
}
|
|
35
|
-
function D(t, e) {
|
|
36
|
-
const n = t.getFormatType(), o = t.getIndent();
|
|
37
|
-
n !== e.getFormatType() && e.setFormat(n), o !== e.getIndent() && e.setIndent(o);
|
|
38
|
-
}
|
|
39
|
-
function Z(t, e, n = D) {
|
|
40
|
-
if (t === null) return;
|
|
41
|
-
const o = t.getStartEndPoints(), r = /* @__PURE__ */ new Map();
|
|
42
|
-
let s = null;
|
|
43
|
-
if (o) {
|
|
44
|
-
const [i, c] = o;
|
|
45
|
-
s = k(), s.anchor.set(i.key, i.offset, i.type), s.focus.set(c.key, c.offset, c.type);
|
|
46
|
-
const l = m(i.getNode(), $), u = m(c.getNode(), $);
|
|
47
|
-
g(l) && r.set(l.getKey(), l), g(u) && r.set(u.getKey(), u);
|
|
48
|
-
}
|
|
49
|
-
for (const i of t.getNodes()) if (g(i) && $(i)) r.set(i.getKey(), i);
|
|
50
|
-
else if (o === null) {
|
|
51
|
-
const c = m(i, $);
|
|
52
|
-
g(c) && r.set(c.getKey(), c);
|
|
53
|
-
}
|
|
54
|
-
for (const [i, c] of r) {
|
|
55
|
-
const l = e();
|
|
56
|
-
n(c, l), c.replace(l, !0), s && (i === s.anchor.key && s.anchor.set(l.getKey(), s.anchor.offset, s.anchor.type), i === s.focus.key && s.focus.set(l.getKey(), s.focus.offset, s.focus.type));
|
|
57
|
-
}
|
|
58
|
-
s && t.is(P()) && v(s);
|
|
59
|
-
}
|
|
60
|
-
function N(t) {
|
|
61
|
-
const e = t.anchor.getNode(), n = h(e) ? e : e.getParentOrThrow(), o = _().getElementByKey(n.getKey());
|
|
62
|
-
if (o === null) return !1;
|
|
63
|
-
const r = o.ownerDocument.defaultView;
|
|
64
|
-
return r === null ? !1 : r.getComputedStyle(o).writingMode === "vertical-rl";
|
|
65
|
-
}
|
|
66
|
-
function j(t, e) {
|
|
67
|
-
const n = N(t) ? !e : e, o = w(t.focus, n ? "previous" : "next");
|
|
68
|
-
if (K(o)) return !1;
|
|
69
|
-
for (const r of E(o)) {
|
|
70
|
-
if (I(r)) return !r.origin.isInline();
|
|
71
|
-
if (!g(r.origin)) {
|
|
72
|
-
if (O(r.origin)) return !0;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return !1;
|
|
77
|
-
}
|
|
78
|
-
function R(t, e, n, o) {
|
|
79
|
-
t.modify(e ? "extend" : "move", n, o);
|
|
80
|
-
}
|
|
81
|
-
function b(t) {
|
|
82
|
-
const e = t.anchor.getNode();
|
|
83
|
-
return (h(e) ? e : e.getParentOrThrow()).getDirection() === "rtl";
|
|
84
|
-
}
|
|
85
|
-
function q(t, e, n) {
|
|
86
|
-
const o = b(t);
|
|
87
|
-
let r;
|
|
88
|
-
r = N(t) || o ? !n : n, R(t, e, r, "character");
|
|
89
|
-
}
|
|
90
|
-
function m(t, e) {
|
|
91
|
-
let n = t;
|
|
92
|
-
for (; n !== null && n.getParent() !== null && !e(n); ) n = n.getParentOrThrow();
|
|
93
|
-
return e(n) ? n : null;
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
W as $addNodeStyle,
|
|
97
|
-
J as $cloneWithProperties,
|
|
98
|
-
D as $copyBlockFormatIndent,
|
|
99
|
-
b as $isParentElementRTL,
|
|
100
|
-
R as $moveCaretSelection,
|
|
101
|
-
q as $moveCharacter,
|
|
102
|
-
Q as $selectAll,
|
|
103
|
-
Z as $setBlocksType,
|
|
104
|
-
j as $shouldOverrideDefaultCharacterSelection,
|
|
105
|
-
L as $sliceSelectedTextNodeContent,
|
|
106
|
-
A as getStyleObjectFromCSS
|
|
107
|
-
};
|