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,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { $isElementNode as a, $getRoot as u, $getChildCaret as d, makeStepwiseIterator as f, $isSiblingCaret as m } from "../../lexical/Lexical.prod.js";
|
|
3
|
-
import { isBlockDomNode as j, isHTMLAnchorElement as O, isHTMLElement as _, isInlineDomNode as k } from "../../lexical/Lexical.prod.js";
|
|
4
|
-
function g(t, ...n) {
|
|
5
|
-
const e = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
|
|
6
|
-
o.append("code", t);
|
|
7
|
-
for (const r of n) o.append("v", r);
|
|
8
|
-
throw e.search = o.toString(), Error(`Minified Lexical error #${t}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
9
|
-
}
|
|
10
|
-
const i = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, p = i && "documentMode" in document ? document.documentMode : null, h = i && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
|
|
11
|
-
!(!i || !("InputEvent" in window) || p) && "getTargetRanges" in new window.InputEvent("input");
|
|
12
|
-
function l(...t) {
|
|
13
|
-
const n = [];
|
|
14
|
-
for (const e of t) if (e && typeof e == "string") for (const [o] of e.matchAll(/\S+/g)) n.push(o);
|
|
15
|
-
return n;
|
|
16
|
-
}
|
|
17
|
-
function N(...t) {
|
|
18
|
-
return () => {
|
|
19
|
-
for (let n = t.length - 1; n >= 0; n--) t[n]();
|
|
20
|
-
t.length = 0;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
const w = i, v = h;
|
|
24
|
-
function A(t, ...n) {
|
|
25
|
-
const e = l(...n);
|
|
26
|
-
e.length > 0 && t.classList.add(...e);
|
|
27
|
-
}
|
|
28
|
-
function L(t, ...n) {
|
|
29
|
-
const e = l(...n);
|
|
30
|
-
e.length > 0 && t.classList.remove(...e);
|
|
31
|
-
}
|
|
32
|
-
function M(t) {
|
|
33
|
-
return t ? t.getAdjacentCaret() : null;
|
|
34
|
-
}
|
|
35
|
-
function S(t, n) {
|
|
36
|
-
let e = t;
|
|
37
|
-
for (; e != null; ) {
|
|
38
|
-
if (e instanceof n) return e;
|
|
39
|
-
e = e.getParent();
|
|
40
|
-
}
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
function x(t) {
|
|
44
|
-
const n = y(t, ((e) => a(e) && !e.isInline()));
|
|
45
|
-
return a(n) || g(4, t.__key), n;
|
|
46
|
-
}
|
|
47
|
-
const y = (t, n) => {
|
|
48
|
-
let e = t;
|
|
49
|
-
for (; e !== u() && e != null; ) {
|
|
50
|
-
if (n(e)) return e;
|
|
51
|
-
e = e.getParent();
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
};
|
|
55
|
-
function I(t, n) {
|
|
56
|
-
return t !== null && Object.getPrototypeOf(t).constructor.name === n.name;
|
|
57
|
-
}
|
|
58
|
-
let s = !(v || !w) && void 0;
|
|
59
|
-
function P(t) {
|
|
60
|
-
let n = 1;
|
|
61
|
-
if ((function() {
|
|
62
|
-
if (s === void 0) {
|
|
63
|
-
const e = document.createElement("div");
|
|
64
|
-
e.style.cssText = "position: absolute; opacity: 0; width: 100px; left: -1000px;", document.body.appendChild(e);
|
|
65
|
-
const o = e.getBoundingClientRect();
|
|
66
|
-
e.style.setProperty("zoom", "2"), s = e.getBoundingClientRect().width === o.width, document.body.removeChild(e);
|
|
67
|
-
}
|
|
68
|
-
return s;
|
|
69
|
-
})()) for (; t; ) n *= Number(window.getComputedStyle(t).getPropertyValue("zoom")), t = t.parentElement;
|
|
70
|
-
return n;
|
|
71
|
-
}
|
|
72
|
-
function R(t, n) {
|
|
73
|
-
const e = [], o = Array.from(t).reverse();
|
|
74
|
-
for (let r = o.pop(); r !== void 0; r = o.pop()) if (n(r)) e.push(r);
|
|
75
|
-
else if (a(r)) for (const c of C(r)) o.push(c);
|
|
76
|
-
return e;
|
|
77
|
-
}
|
|
78
|
-
function C(t) {
|
|
79
|
-
return E(d(t, "previous"));
|
|
80
|
-
}
|
|
81
|
-
function E(t) {
|
|
82
|
-
return f({ hasNext: m, initial: t.getAdjacentCaret(), map: (n) => n.origin.getLatest(), step: (n) => n.getAdjacentCaret() });
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
R as $descendantsMatching,
|
|
86
|
-
y as $findMatchingParent,
|
|
87
|
-
M as $getAdjacentCaret,
|
|
88
|
-
x as $getNearestBlockElementAncestorOrThrow,
|
|
89
|
-
S as $getNearestNodeOfType,
|
|
90
|
-
C as $lastToFirstIterator,
|
|
91
|
-
w as CAN_USE_DOM,
|
|
92
|
-
v as IS_FIREFOX,
|
|
93
|
-
A as addClassNamesToElement,
|
|
94
|
-
P as calculateZoomLevel,
|
|
95
|
-
j as isBlockDomNode,
|
|
96
|
-
O as isHTMLAnchorElement,
|
|
97
|
-
_ as isHTMLElement,
|
|
98
|
-
k as isInlineDomNode,
|
|
99
|
-
N as mergeRegister,
|
|
100
|
-
I as objectKlassEquals,
|
|
101
|
-
L as removeClassNamesFromElement
|
|
102
|
-
};
|