laif-ds 0.1.76 → 0.1.80
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/dist/_virtual/index.js +5 -3
- package/dist/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index7.js +3 -2
- package/dist/_virtual/prism-cpp.js +3 -0
- package/dist/_virtual/prism-cpp2.js +5 -0
- package/dist/_virtual/prism-java.js +3 -0
- package/dist/_virtual/prism-java2.js +5 -0
- package/dist/_virtual/prism-python.js +3 -0
- package/dist/_virtual/prism-python2.js +5 -0
- package/dist/_virtual/prism-rust.js +3 -0
- package/dist/_virtual/prism-rust2.js +5 -0
- package/dist/_virtual/prism-typescript.js +3 -0
- package/dist/_virtual/prism-typescript2.js +5 -0
- package/dist/_virtual/prism.js +3 -0
- package/dist/_virtual/prism2.js +5 -0
- package/dist/components/editor/context/toolbar-context.js +42 -0
- package/dist/components/editor/editor-hooks/use-modal.js +30 -0
- package/dist/components/editor/editor-hooks/use-update-toolbar.js +24 -0
- package/dist/components/editor/editor-ui/content-editable.js +26 -0
- package/dist/components/editor/plugins/actions/actions-plugin.js +7 -0
- package/dist/components/editor/plugins/actions/clear-editor-plugin.js +39 -0
- package/dist/components/editor/plugins/actions/counter-character-plugin.js +53 -0
- package/dist/components/editor/plugins/toolbar/block-format/block-format-data.js +52 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-bulleted-list.js +26 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-check-list.js +26 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-heading.js +31 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-numbered-list.js +26 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-paragraph.js +23 -0
- package/dist/components/editor/plugins/toolbar/block-format/format-quote.js +24 -0
- package/dist/components/editor/plugins/toolbar/block-format-toolbar-plugin.js +56 -0
- package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +50 -0
- package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +69 -0
- package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +34 -0
- package/dist/components/editor/themes/editor-theme.js +112 -0
- package/dist/components/ui/app-editor.js +150 -0
- package/dist/components/ui/app-multiple-select-dropdown.js +2 -2
- package/dist/components/ui/button.js +25 -24
- package/dist/components/ui/calendar.js +9 -9
- package/dist/components/ui/dialog.js +43 -37
- package/dist/components/ui/sidebar.js +20 -19
- package/dist/index.d.ts +23 -1
- package/dist/index.js +48 -44
- package/dist/laif-ds.css +1 -0
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +159 -0
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +236 -0
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +46 -0
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +89 -0
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +108 -0
- package/dist/node_modules/@lexical/link/LexicalLink.prod.js +187 -0
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +729 -0
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +367 -0
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +11 -0
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +17 -0
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +45 -0
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +22 -0
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +55 -0
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +49 -0
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +15 -0
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +17 -0
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +16 -0
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +56 -0
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +21 -0
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +376 -0
- package/dist/node_modules/@lexical/selection/LexicalSelection.prod.js +107 -0
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +661 -0
- package/dist/node_modules/@lexical/text/LexicalText.prod.js +37 -0
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +102 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/lexical/Lexical.prod.js +4901 -0
- package/dist/node_modules/prismjs/components/prism-c.js +77 -0
- package/dist/node_modules/prismjs/components/prism-clike.js +32 -0
- package/dist/node_modules/prismjs/components/prism-cpp.js +93 -0
- package/dist/node_modules/prismjs/components/prism-css.js +56 -0
- package/dist/node_modules/prismjs/components/prism-java.js +122 -0
- package/dist/node_modules/prismjs/components/prism-javascript.js +138 -0
- package/dist/node_modules/prismjs/components/prism-markdown.js +301 -0
- package/dist/node_modules/prismjs/components/prism-markup.js +174 -0
- package/dist/node_modules/prismjs/components/prism-objectivec.js +11 -0
- package/dist/node_modules/prismjs/components/prism-powershell.js +56 -0
- package/dist/node_modules/prismjs/components/prism-python.js +69 -0
- package/dist/node_modules/prismjs/components/prism-rust.js +124 -0
- package/dist/node_modules/prismjs/components/prism-sql.js +34 -0
- package/dist/node_modules/prismjs/components/prism-swift.js +114 -0
- package/dist/node_modules/prismjs/components/prism-typescript.js +53 -0
- package/dist/node_modules/prismjs/prism.js +1165 -0
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +12 -1
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
};
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index2.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|