slate-vue3 0.13.3 → 0.13.5
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/core.js +1 -1
- package/dist/dom.js +1 -1
- package/dist/history.js +1 -1
- package/dist/hyperscript.js +1 -1
- package/dist/index.js +1 -1
- package/dist/packages/slate/interfaces/editor.d.ts +2 -2
- package/dist/packages/slate/interfaces/transforms/general.d.ts +8 -0
- package/dist/packages/slate-dom/utils/weak-maps.d.ts +9 -8
- package/dist/{slate-dom-IFTx5FeX.js → slate-dom-DaRWnWcD.js} +2 -1
- package/dist/{slate-C-CGsGnX.js → slate-vhSVLf2R.js} +157 -124
- package/dist/{slate-vue-D6ifooP_.js → slate-vue-CRuKdDhB.js} +2 -2
- package/dist/yjs.js +3 -3
- package/package.json +11 -11
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as insertText, A as previous, At as Span, B as nodes, Bt as PointRef, C as string, Ct as getDirtyPaths, D as range, Dt as Scrubber, E as removeMark, Et as Text, F as path, Ft as Element, G as leaf, H as next, I as pathRefs, It as Range, J as isNormalizing, K as last, L as pathRef, Lt as isObject, M as point, Mt as isEditor, N as pointRefs, Nt as Operation, O as rangeRefs, Ot as Point, P as pointRef, Pt as Node, Q as isBlock, R as parent, Rt as Path, S as unhangRange, St as getFragment, T as setNormalizing, Tt as Transforms, U as marks, V as node, Vt as PathRef, W as levels, X as isEmpty, Y as isEnd, Z as isEdge, _ as collapse, _t as after, a as splitNodes, at as hasInlines, b as shouldMergeNodesRemovePrevNode, bt as shouldNormalize, c as moveNodes, ct as fragment, d as insertNodes, dt as elementReadOnly, et as insertSoftBreak, f as setSelection, ft as edges, g as deselect, gt as before, h as move, ht as deleteBackward, i as unsetNodes, it as hasPath, j as positions, jt as Editor, k as rangeRef, kt as Location, l as mergeNodes, lt as first, m as select, mt as deleteForward, n as wrapNodes, nt as insertBreak, o as setNodes, ot as hasBlocks, p as setPoint, pt as deleteFragment, q as isStart, r as unwrapNodes, rt as hasTexts, s as removeNodes, st as getVoid, t as createEditor, tt as insertNode, u as liftNodes, ut as end, v as insertFragment, vt as addMark, w as start, wt as apply, x as withoutNormalizing, xt as normalizeNode, y as deleteText, yt as above, z as normalize, zt as RangeRef } from "./slate-
|
|
1
|
+
import { $ as insertText, A as previous, At as Span, B as nodes, Bt as PointRef, C as string, Ct as getDirtyPaths, D as range, Dt as Scrubber, E as removeMark, Et as Text, F as path, Ft as Element, G as leaf, H as next, I as pathRefs, It as Range, J as isNormalizing, K as last, L as pathRef, Lt as isObject, M as point, Mt as isEditor, N as pointRefs, Nt as Operation, O as rangeRefs, Ot as Point, P as pointRef, Pt as Node, Q as isBlock, R as parent, Rt as Path, S as unhangRange, St as getFragment, T as setNormalizing, Tt as Transforms, U as marks, V as node, Vt as PathRef, W as levels, X as isEmpty, Y as isEnd, Z as isEdge, _ as collapse, _t as after, a as splitNodes, at as hasInlines, b as shouldMergeNodesRemovePrevNode, bt as shouldNormalize, c as moveNodes, ct as fragment, d as insertNodes, dt as elementReadOnly, et as insertSoftBreak, f as setSelection, ft as edges, g as deselect, gt as before, h as move, ht as deleteBackward, i as unsetNodes, it as hasPath, j as positions, jt as Editor, k as rangeRef, kt as Location, l as mergeNodes, lt as first, m as select, mt as deleteForward, n as wrapNodes, nt as insertBreak, o as setNodes, ot as hasBlocks, p as setPoint, pt as deleteFragment, q as isStart, r as unwrapNodes, rt as hasTexts, s as removeNodes, st as getVoid, t as createEditor, tt as insertNode, u as liftNodes, ut as end, v as insertFragment, vt as addMark, w as start, wt as apply, x as withoutNormalizing, xt as normalizeNode, y as deleteText, yt as above, z as normalize, zt as RangeRef } from "./slate-vhSVLf2R.js";
|
|
2
2
|
export { Editor, Element, Location, Node, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Scrubber, Span, Text, Transforms, above, addMark, after, apply, before, collapse, createEditor, deleteBackward, deleteForward, deleteFragment, deleteText, deselect, edges, elementReadOnly, end, first, fragment, getDirtyPaths, getFragment, getVoid, hasBlocks, hasInlines, hasPath, hasTexts, insertBreak, insertFragment, insertNode, insertNodes, insertSoftBreak, insertText, isBlock, isEdge, isEditor, isEmpty, isEnd, isNormalizing, isObject, isStart, last, leaf, levels, liftNodes, marks, mergeNodes, move, moveNodes, next, node, nodes, normalize, normalizeNode, parent, path, pathRef, pathRefs, point, pointRef, pointRefs, positions, previous, range, rangeRef, rangeRefs, removeMark, removeNodes, select, setNodes, setNormalizing, setPoint, setSelection, shouldMergeNodesRemovePrevNode, shouldNormalize, splitNodes, start, string, unhangRange, unsetNodes, unwrapNodes, withoutNormalizing, wrapNodes };
|
package/dist/dom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as getSlateFragmentAttribute, A as HAS_BEFORE_INPUT_SUPPORT, B as IS_SAFARI_LEGACY, C as MARK_PLACEHOLDER_SYMBOL, D as NODE_TO_PARENT, E as NODE_TO_KEY, F as IS_CHROME_LEGACY, G as containsShadowAware, H as IS_WEBKIT, I as IS_EDGE_LEGACY, J as getDefaultView, K as getActiveElement, L as IS_FIREFOX, M as IS_ANDROID_CHROME_LEGACY, N as IS_APPLE, O as Key, P as IS_CHROME, Q as getSelection, R as IS_FIREFOX_LEGACY, S as IS_READ_ONLY, T as NODE_TO_INDEX, U as IS_WECHATBROWSER, V as IS_UC_MOBILE, W as closestShadowAware, X as getEditableChildAndIndex, Y as getEditableChild, Z as getPlainText, _ as EDITOR_TO_USER_SELECTION, a as Hotkeys, at as isDOMNode, b as IS_COMPOSING, c as withDOM, ct as isPlainTextOnlyPaste, d as getChunkTreeForNode, et as hasShadowRoot, f as DOMEditor, g as EDITOR_TO_USER_MARKS, h as EDITOR_TO_ON_CHANGE, i as splitDecorationsByChild, it as isDOMElement, j as IS_ANDROID, k as CAN_USE_DOM, l as reconcileChildren, lt as isTrackedMutation, m as EDITOR_TO_KEY_TO_ELEMENT, n as isTextDecorationsEqual, nt as isBefore, o as applyStringDiff, ot as isDOMSelection, p as EDITOR_TO_ELEMENT, q as getClipboardData, r as shallowCompare, rt as isDOMComment, s as normalizeStringDiff, st as isDOMText, t as isElementDecorationsEqual, tt as isAfter, u as KEY_TO_CHUNK_TREE, ut as normalizeDOMPoint, v as EDITOR_TO_WINDOW, w as NODE_TO_ELEMENT, x as IS_FOCUSED, y as ELEMENT_TO_NODE, z as IS_IOS } from "./slate-dom-
|
|
1
|
+
import { $ as getSlateFragmentAttribute, A as HAS_BEFORE_INPUT_SUPPORT, B as IS_SAFARI_LEGACY, C as MARK_PLACEHOLDER_SYMBOL, D as NODE_TO_PARENT, E as NODE_TO_KEY, F as IS_CHROME_LEGACY, G as containsShadowAware, H as IS_WEBKIT, I as IS_EDGE_LEGACY, J as getDefaultView, K as getActiveElement, L as IS_FIREFOX, M as IS_ANDROID_CHROME_LEGACY, N as IS_APPLE, O as Key, P as IS_CHROME, Q as getSelection, R as IS_FIREFOX_LEGACY, S as IS_READ_ONLY, T as NODE_TO_INDEX, U as IS_WECHATBROWSER, V as IS_UC_MOBILE, W as closestShadowAware, X as getEditableChildAndIndex, Y as getEditableChild, Z as getPlainText, _ as EDITOR_TO_USER_SELECTION, a as Hotkeys, at as isDOMNode, b as IS_COMPOSING, c as withDOM, ct as isPlainTextOnlyPaste, d as getChunkTreeForNode, et as hasShadowRoot, f as DOMEditor, g as EDITOR_TO_USER_MARKS, h as EDITOR_TO_ON_CHANGE, i as splitDecorationsByChild, it as isDOMElement, j as IS_ANDROID, k as CAN_USE_DOM, l as reconcileChildren, lt as isTrackedMutation, m as EDITOR_TO_KEY_TO_ELEMENT, n as isTextDecorationsEqual, nt as isBefore, o as applyStringDiff, ot as isDOMSelection, p as EDITOR_TO_ELEMENT, q as getClipboardData, r as shallowCompare, rt as isDOMComment, s as normalizeStringDiff, st as isDOMText, t as isElementDecorationsEqual, tt as isAfter, u as KEY_TO_CHUNK_TREE, ut as normalizeDOMPoint, v as EDITOR_TO_WINDOW, w as NODE_TO_ELEMENT, x as IS_FOCUSED, y as ELEMENT_TO_NODE, z as IS_IOS } from "./slate-dom-DaRWnWcD.js";
|
|
2
2
|
export { CAN_USE_DOM, DOMEditor, EDITOR_TO_ELEMENT, EDITOR_TO_KEY_TO_ELEMENT, EDITOR_TO_ON_CHANGE, EDITOR_TO_USER_MARKS, EDITOR_TO_USER_SELECTION, EDITOR_TO_WINDOW, ELEMENT_TO_NODE, HAS_BEFORE_INPUT_SUPPORT, Hotkeys, IS_ANDROID, IS_ANDROID_CHROME_LEGACY, IS_APPLE, IS_CHROME, IS_CHROME_LEGACY, IS_COMPOSING, IS_EDGE_LEGACY, IS_FIREFOX, IS_FIREFOX_LEGACY, IS_FOCUSED, IS_IOS, IS_READ_ONLY, IS_SAFARI_LEGACY, IS_UC_MOBILE, IS_WEBKIT, IS_WECHATBROWSER, KEY_TO_CHUNK_TREE, Key, MARK_PLACEHOLDER_SYMBOL, NODE_TO_ELEMENT, NODE_TO_INDEX, NODE_TO_KEY, NODE_TO_PARENT, applyStringDiff, closestShadowAware, containsShadowAware, getActiveElement, getChunkTreeForNode, getClipboardData, getDefaultView, getEditableChild, getEditableChildAndIndex, getPlainText, getSelection, getSlateFragmentAttribute, hasShadowRoot, isAfter, isBefore, isDOMComment, isDOMElement, isDOMNode, isDOMSelection, isDOMText, isElementDecorationsEqual, isPlainTextOnlyPaste, isTextDecorationsEqual, isTrackedMutation, normalizeDOMPoint, normalizeStringDiff, reconcileChildren, shallowCompare, splitDecorationsByChild, withDOM };
|
package/dist/history.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as isObject, Nt as Operation, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-
|
|
1
|
+
import { Lt as isObject, Nt as Operation, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-vhSVLf2R.js";
|
|
2
2
|
import { shallowReactive } from "vue";
|
|
3
3
|
//#region packages/slate-history/history.ts
|
|
4
4
|
var History = { isHistory(value) {
|
package/dist/hyperscript.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as Text, Ft as Element, It as Range, Lt as isObject, Pt as Node, t as createEditor$1 } from "./slate-
|
|
1
|
+
import { Et as Text, Ft as Element, It as Range, Lt as isObject, Pt as Node, t as createEditor$1 } from "./slate-vhSVLf2R.js";
|
|
2
2
|
import { t as toRawWeakMap } from "./share-tools-DLjSB3JV.js";
|
|
3
3
|
//#region packages/slate-hyperscript/tokens.ts
|
|
4
4
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as isEventHandled, _ as DEFAULT_SCROLL_INTO_VIEW, a as Editable, b as isDOMEventHandled, c as useElement, d as useEditor, f as DEFAULT_CHUNK_RENDER, g as DEFAULT_PLACEHOLDER_RENDER, h as DEFAULT_LEAF_RENDER, i as useFocused, l as useElementIf, m as DEFAULT_ELEMENT_RENDER, n as useSelection, o as useComposing, p as DEFAULT_DECORATE_FN, r as useSelected, s as useReadOnly, t as useInheritRef, u as Slate, v as DEFAULT_TEXT_RENDER, x as isDOMEventTargetInput, y as handleNativeHistoryEvents } from "./slate-vue-
|
|
1
|
+
import { S as isEventHandled, _ as DEFAULT_SCROLL_INTO_VIEW, a as Editable, b as isDOMEventHandled, c as useElement, d as useEditor, f as DEFAULT_CHUNK_RENDER, g as DEFAULT_PLACEHOLDER_RENDER, h as DEFAULT_LEAF_RENDER, i as useFocused, l as useElementIf, m as DEFAULT_ELEMENT_RENDER, n as useSelection, o as useComposing, p as DEFAULT_DECORATE_FN, r as useSelected, s as useReadOnly, t as useInheritRef, u as Slate, v as DEFAULT_TEXT_RENDER, x as isDOMEventTargetInput, y as handleNativeHistoryEvents } from "./slate-vue-CRuKdDhB.js";
|
|
2
2
|
import { t as toRawWeakMap } from "./share-tools-DLjSB3JV.js";
|
|
3
3
|
export { DEFAULT_CHUNK_RENDER, DEFAULT_DECORATE_FN, DEFAULT_ELEMENT_RENDER, DEFAULT_LEAF_RENDER, DEFAULT_PLACEHOLDER_RENDER, DEFAULT_SCROLL_INTO_VIEW, DEFAULT_TEXT_RENDER, Editable, Slate, handleNativeHistoryEvents, isDOMEventHandled, isDOMEventTargetInput, isEventHandled, toRawWeakMap, useComposing, useEditor, useElement, useElementIf, useFocused, useInheritRef, useReadOnly, useSelected, useSelection };
|
|
@@ -502,5 +502,5 @@ export declare const Editor: EditorInterface;
|
|
|
502
502
|
* A helper type for narrowing matched nodes with a predicate.
|
|
503
503
|
*/
|
|
504
504
|
export type NodeMatch<T extends Node> = ((node: Node, path: Path) => node is T) | ((node: Node, path: Path) => boolean);
|
|
505
|
-
export type PropsCompare = (prop:
|
|
506
|
-
export type PropsMerge = (prop:
|
|
505
|
+
export type PropsCompare = (prop: unknown, node: unknown) => boolean;
|
|
506
|
+
export type PropsMerge = (prop: unknown, node: unknown) => object;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { Editor, Operation } from '../../index';
|
|
2
|
+
/**
|
|
3
|
+
* The set of properties that cannot be set using set_node.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NON_SETTABLE_NODE_PROPERTIES: string[];
|
|
6
|
+
/**
|
|
7
|
+
* The set of properties that cannot be set using set_selection.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NON_SETTABLE_SELECTION_PROPERTIES: string[];
|
|
2
10
|
export interface GeneralTransforms {
|
|
3
11
|
/**
|
|
4
12
|
* Transform the editor by an operation.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ancestor, Editor, Node, Operation, Point, Range, RangeRef, Text } from '../../slate/index.ts';
|
|
2
2
|
import { Key } from './key';
|
|
3
|
+
import { toRawWeakMap } from '../../share-tools/index.ts';
|
|
3
4
|
export type Action = {
|
|
4
5
|
at?: Point | Range;
|
|
5
6
|
run: () => void;
|
|
@@ -14,19 +15,19 @@ export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
|
|
|
14
15
|
* Weak maps that allow us to go between Slate nodes and DOM nodes. These
|
|
15
16
|
* are used to resolve DOM event-related logic into Slate actions.
|
|
16
17
|
*/
|
|
17
|
-
export declare const EDITOR_TO_WINDOW: WeakMap<
|
|
18
|
-
export declare const EDITOR_TO_ELEMENT: WeakMap<
|
|
18
|
+
export declare const EDITOR_TO_WINDOW: WeakMap<import('../../slate/index.ts').BaseEditor, Window>;
|
|
19
|
+
export declare const EDITOR_TO_ELEMENT: WeakMap<import('../../slate/index.ts').BaseEditor, HTMLElement>;
|
|
19
20
|
export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
|
|
20
21
|
export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
|
|
21
|
-
export declare const NODE_TO_KEY:
|
|
22
|
-
export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<
|
|
22
|
+
export declare const NODE_TO_KEY: toRawWeakMap<Node, Key>;
|
|
23
|
+
export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<import('../../slate/index.ts').BaseEditor, WeakMap<Key, HTMLElement>>;
|
|
23
24
|
/**
|
|
24
25
|
* Weak maps for storing editor-related state.
|
|
25
26
|
*/
|
|
26
|
-
export declare const IS_READ_ONLY: WeakMap<
|
|
27
|
-
export declare const IS_FOCUSED: WeakMap<
|
|
28
|
-
export declare const IS_COMPOSING: WeakMap<
|
|
29
|
-
export declare const EDITOR_TO_USER_SELECTION: WeakMap<
|
|
27
|
+
export declare const IS_READ_ONLY: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
28
|
+
export declare const IS_FOCUSED: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
29
|
+
export declare const IS_COMPOSING: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
30
|
+
export declare const EDITOR_TO_USER_SELECTION: WeakMap<import('../../slate/index.ts').BaseEditor, RangeRef | null>;
|
|
30
31
|
/**
|
|
31
32
|
* Weak map for associating the context `onChange` context with the plugin.
|
|
32
33
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as Scrubber, It as Range, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-
|
|
1
|
+
import { Dt as Scrubber, It as Range, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-vhSVLf2R.js";
|
|
2
2
|
import { t as toRawWeakMap } from "./share-tools-DLjSB3JV.js";
|
|
3
3
|
import { toRaw } from "vue";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
@@ -80,6 +80,7 @@ var hasShadowRoot = (node) => {
|
|
|
80
80
|
* `direction`.
|
|
81
81
|
*/
|
|
82
82
|
var getEditableChildAndIndex = (parent, index, direction) => {
|
|
83
|
+
if (typeof index !== "number") throw new Error("Expected index to be a number");
|
|
83
84
|
const { childNodes } = parent;
|
|
84
85
|
let child = childNodes[index];
|
|
85
86
|
let i = index;
|
|
@@ -39,7 +39,9 @@ var Path = {
|
|
|
39
39
|
const common = [];
|
|
40
40
|
for (let i = 0; i < path.length && i < another.length; i++) {
|
|
41
41
|
const av = path[i];
|
|
42
|
-
|
|
42
|
+
const bv = another[i];
|
|
43
|
+
if (typeof av !== "number" || typeof bv !== "number") throw new Error("Got non-numeric path index");
|
|
44
|
+
if (av !== bv) break;
|
|
43
45
|
common.push(av);
|
|
44
46
|
}
|
|
45
47
|
return common;
|
|
@@ -207,6 +209,18 @@ var Path = {
|
|
|
207
209
|
};
|
|
208
210
|
//#endregion
|
|
209
211
|
//#region packages/slate/interfaces/transforms/general.ts
|
|
212
|
+
/**
|
|
213
|
+
* The set of properties that cannot be set using set_node.
|
|
214
|
+
*/
|
|
215
|
+
var NON_SETTABLE_NODE_PROPERTIES = [
|
|
216
|
+
"children",
|
|
217
|
+
"text",
|
|
218
|
+
...Object.getOwnPropertyNames(Object.prototype)
|
|
219
|
+
];
|
|
220
|
+
/**
|
|
221
|
+
* The set of properties that cannot be set using set_selection.
|
|
222
|
+
*/
|
|
223
|
+
var NON_SETTABLE_SELECTION_PROPERTIES = Object.getOwnPropertyNames(Object.prototype);
|
|
210
224
|
var GeneralTransforms = { transform(editor, op) {
|
|
211
225
|
let transformSelection = false;
|
|
212
226
|
switch (op.type) {
|
|
@@ -231,11 +245,14 @@ var GeneralTransforms = { transform(editor, op) {
|
|
|
231
245
|
}
|
|
232
246
|
case "merge_node": {
|
|
233
247
|
const { path } = op;
|
|
234
|
-
const
|
|
248
|
+
const index = path[path.length - 1];
|
|
235
249
|
const prevPath = Path.previous(path);
|
|
250
|
+
const prevIndex = prevPath[prevPath.length - 1];
|
|
251
|
+
if (path.length === 0) throw new Error(`Cannot apply a "merge_node" operation at path [${path}] because the root node cannot be merged.`);
|
|
252
|
+
if (typeof index !== "number" || typeof prevIndex !== "number") throw new Error("Index must be number");
|
|
253
|
+
const node = Node.get(editor, path);
|
|
236
254
|
const prev = Node.get(editor, prevPath);
|
|
237
255
|
const parent = Node.parent(editor, path);
|
|
238
|
-
const index = path[path.length - 1];
|
|
239
256
|
if (Node.isText(node) && Node.isText(prev)) prev.text += node.text;
|
|
240
257
|
else if (!Node.isText(node) && !Node.isText(prev)) prev.children.push(...node.children);
|
|
241
258
|
else throw new Error(`Cannot apply a 'merge_node' operation at path [${path}] to nodes of different interfaces: ${Scrubber.stringify(node)} ${Scrubber.stringify(prev)}`);
|
|
@@ -306,8 +323,9 @@ var GeneralTransforms = { transform(editor, op) {
|
|
|
306
323
|
if (path.length === 0) throw new Error(`Cannot set properties on the root node!`);
|
|
307
324
|
const node = Node.get(editor, path);
|
|
308
325
|
for (const key in newProperties) {
|
|
309
|
-
if (key
|
|
310
|
-
const value = newProperties[key];
|
|
326
|
+
if (NON_SETTABLE_NODE_PROPERTIES.includes(key)) throw new Error(`Cannot set the '${key}' property of nodes!`);
|
|
327
|
+
const value = Object.hasOwn(newProperties, key) ? newProperties[key] : void 0;
|
|
328
|
+
if (key === "then" && typeof value === "function") throw new Error("Cannot set the \"then\" property of a node to a function");
|
|
311
329
|
if (value == null) delete node[key];
|
|
312
330
|
else node[key] = value;
|
|
313
331
|
}
|
|
@@ -327,7 +345,9 @@ var GeneralTransforms = { transform(editor, op) {
|
|
|
327
345
|
}
|
|
328
346
|
const selection = { ...editor.selection };
|
|
329
347
|
for (const key in newProperties) {
|
|
348
|
+
if (NON_SETTABLE_SELECTION_PROPERTIES.includes(key)) throw new Error(`Cannot set the "${key}" property of the selection!`);
|
|
330
349
|
const value = newProperties[key];
|
|
350
|
+
if (key === "then" && typeof value === "function") throw new Error("Cannot set the \"then\" property of the selection to a function");
|
|
331
351
|
if (value == null) {
|
|
332
352
|
if (key === "anchor" || key === "focus") throw new Error(`Cannot remove the '${key}' selection property`);
|
|
333
353
|
delete selection[key];
|
|
@@ -342,6 +362,7 @@ var GeneralTransforms = { transform(editor, op) {
|
|
|
342
362
|
const node = Node.get(editor, path);
|
|
343
363
|
const parent = Node.parent(editor, path);
|
|
344
364
|
const index = path[path.length - 1];
|
|
365
|
+
if (typeof index !== "number") throw new Error("Index must be number");
|
|
345
366
|
let newNode;
|
|
346
367
|
if (Node.isText(node)) {
|
|
347
368
|
const before = node.text.slice(0, position);
|
|
@@ -434,8 +455,8 @@ var isObject$1 = (value) => typeof value === "object" && value !== null;
|
|
|
434
455
|
//#region packages/slate/utils/deep-equal.ts
|
|
435
456
|
var isDeepEqual = (node, another) => {
|
|
436
457
|
for (const key in node) {
|
|
437
|
-
const a = node[key];
|
|
438
|
-
const b = another[key];
|
|
458
|
+
const a = Object.hasOwn(node, key) ? node[key] : void 0;
|
|
459
|
+
const b = Object.hasOwn(another, key) ? another[key] : void 0;
|
|
439
460
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
440
461
|
if (a.length !== b.length) return false;
|
|
441
462
|
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
@@ -603,6 +624,7 @@ var Node = {
|
|
|
603
624
|
},
|
|
604
625
|
child(root, index) {
|
|
605
626
|
if (Node.isText(root)) throw new Error(`Cannot get the child of a text node: ${Scrubber.stringify(root)}`);
|
|
627
|
+
if (typeof index !== "number") throw new Error("Expected index to be a number");
|
|
606
628
|
const c = root.children[index];
|
|
607
629
|
if (c == null) throw new Error(`Cannot get child at index \`${index}\` in node: ${Scrubber.stringify(root)}`);
|
|
608
630
|
return c;
|
|
@@ -709,6 +731,7 @@ var Node = {
|
|
|
709
731
|
let node = root;
|
|
710
732
|
for (let i = 0; i < path.length; i++) {
|
|
711
733
|
const p = path[i];
|
|
734
|
+
if (typeof p !== "number") throw new Error("Got non-numeric path index");
|
|
712
735
|
if (Node.isText(node) || !node.children[p]) return false;
|
|
713
736
|
node = node.children[p];
|
|
714
737
|
}
|
|
@@ -2650,21 +2673,21 @@ var shouldMergeNodesRemovePrevNode = (editor, [prevNode, prevPath], [curNode, cu
|
|
|
2650
2673
|
return Node.isElement(prevNode) && Editor.isEmpty(editor, prevNode) || Node.isText(prevNode) && prevNode.text === "" && prevPath[prevPath.length - 1] !== 0;
|
|
2651
2674
|
};
|
|
2652
2675
|
//#endregion
|
|
2653
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2676
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
2654
2677
|
/** Detect free variable `global` from Node.js. */
|
|
2655
2678
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
2656
2679
|
//#endregion
|
|
2657
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2680
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
2658
2681
|
/** Detect free variable `self`. */
|
|
2659
2682
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
2660
2683
|
/** Used as a reference to the global object. */
|
|
2661
2684
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
2662
2685
|
//#endregion
|
|
2663
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2686
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
2664
2687
|
/** Built-in value references. */
|
|
2665
2688
|
var Symbol = root.Symbol;
|
|
2666
2689
|
//#endregion
|
|
2667
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2690
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
2668
2691
|
/** Used for built-in method references. */
|
|
2669
2692
|
var objectProto$3 = Object.prototype;
|
|
2670
2693
|
/** Used to check objects for own properties. */
|
|
@@ -2696,7 +2719,7 @@ function getRawTag(value) {
|
|
|
2696
2719
|
return result;
|
|
2697
2720
|
}
|
|
2698
2721
|
//#endregion
|
|
2699
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2722
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
2700
2723
|
/**
|
|
2701
2724
|
* Used to resolve the
|
|
2702
2725
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
@@ -2714,7 +2737,7 @@ function objectToString(value) {
|
|
|
2714
2737
|
return nativeObjectToString.call(value);
|
|
2715
2738
|
}
|
|
2716
2739
|
//#endregion
|
|
2717
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2740
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
2718
2741
|
/** `Object#toString` result references. */
|
|
2719
2742
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
2720
2743
|
/** Built-in value references. */
|
|
@@ -2731,7 +2754,7 @@ function baseGetTag(value) {
|
|
|
2731
2754
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
2732
2755
|
}
|
|
2733
2756
|
//#endregion
|
|
2734
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2757
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
2735
2758
|
/**
|
|
2736
2759
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2737
2760
|
* and has a `typeof` result of "object".
|
|
@@ -2760,7 +2783,7 @@ function isObjectLike(value) {
|
|
|
2760
2783
|
return value != null && typeof value == "object";
|
|
2761
2784
|
}
|
|
2762
2785
|
//#endregion
|
|
2763
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2786
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
2764
2787
|
/**
|
|
2765
2788
|
* Checks if `value` is classified as an `Array` object.
|
|
2766
2789
|
*
|
|
@@ -2786,7 +2809,7 @@ function isObjectLike(value) {
|
|
|
2786
2809
|
*/
|
|
2787
2810
|
var isArray = Array.isArray;
|
|
2788
2811
|
//#endregion
|
|
2789
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2812
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
2790
2813
|
/**
|
|
2791
2814
|
* Checks if `value` is the
|
|
2792
2815
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -2817,7 +2840,7 @@ function isObject(value) {
|
|
|
2817
2840
|
return value != null && (type == "object" || type == "function");
|
|
2818
2841
|
}
|
|
2819
2842
|
//#endregion
|
|
2820
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2843
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
2821
2844
|
/** `Object#toString` result references. */
|
|
2822
2845
|
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
2823
2846
|
/**
|
|
@@ -2843,11 +2866,11 @@ function isFunction(value) {
|
|
|
2843
2866
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
2844
2867
|
}
|
|
2845
2868
|
//#endregion
|
|
2846
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2869
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
2847
2870
|
/** Used to detect overreaching core-js shims. */
|
|
2848
2871
|
var coreJsData = root["__core-js_shared__"];
|
|
2849
2872
|
//#endregion
|
|
2850
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2873
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
2851
2874
|
/** Used to detect methods masquerading as native. */
|
|
2852
2875
|
var maskSrcKey = function() {
|
|
2853
2876
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -2864,7 +2887,7 @@ function isMasked(func) {
|
|
|
2864
2887
|
return !!maskSrcKey && maskSrcKey in func;
|
|
2865
2888
|
}
|
|
2866
2889
|
//#endregion
|
|
2867
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2890
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
2868
2891
|
/** Used to resolve the decompiled source of functions. */
|
|
2869
2892
|
var funcToString$1 = Function.prototype.toString;
|
|
2870
2893
|
/**
|
|
@@ -2886,7 +2909,7 @@ function toSource(func) {
|
|
|
2886
2909
|
return "";
|
|
2887
2910
|
}
|
|
2888
2911
|
//#endregion
|
|
2889
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2912
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
2890
2913
|
/**
|
|
2891
2914
|
* Used to match `RegExp`
|
|
2892
2915
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -2915,7 +2938,7 @@ function baseIsNative(value) {
|
|
|
2915
2938
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
2916
2939
|
}
|
|
2917
2940
|
//#endregion
|
|
2918
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2941
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
2919
2942
|
/**
|
|
2920
2943
|
* Gets the value at `key` of `object`.
|
|
2921
2944
|
*
|
|
@@ -2928,7 +2951,7 @@ function getValue(object, key) {
|
|
|
2928
2951
|
return object == null ? void 0 : object[key];
|
|
2929
2952
|
}
|
|
2930
2953
|
//#endregion
|
|
2931
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2954
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
2932
2955
|
/**
|
|
2933
2956
|
* Gets the native function at `key` of `object`.
|
|
2934
2957
|
*
|
|
@@ -2942,10 +2965,10 @@ function getNative(object, key) {
|
|
|
2942
2965
|
return baseIsNative(value) ? value : void 0;
|
|
2943
2966
|
}
|
|
2944
2967
|
//#endregion
|
|
2945
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2968
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
2946
2969
|
var WeakMap$1 = getNative(root, "WeakMap");
|
|
2947
2970
|
//#endregion
|
|
2948
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2971
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
2949
2972
|
/** Built-in value references. */
|
|
2950
2973
|
var objectCreate = Object.create;
|
|
2951
2974
|
/**
|
|
@@ -2968,7 +2991,7 @@ var baseCreate = function() {
|
|
|
2968
2991
|
};
|
|
2969
2992
|
}();
|
|
2970
2993
|
//#endregion
|
|
2971
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2994
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
2972
2995
|
/**
|
|
2973
2996
|
* Copies the values of `source` to `array`.
|
|
2974
2997
|
*
|
|
@@ -2984,7 +3007,7 @@ function copyArray(source, array) {
|
|
|
2984
3007
|
return array;
|
|
2985
3008
|
}
|
|
2986
3009
|
//#endregion
|
|
2987
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3010
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
2988
3011
|
var defineProperty = function() {
|
|
2989
3012
|
try {
|
|
2990
3013
|
var func = getNative(Object, "defineProperty");
|
|
@@ -2993,7 +3016,7 @@ var defineProperty = function() {
|
|
|
2993
3016
|
} catch (e) {}
|
|
2994
3017
|
}();
|
|
2995
3018
|
//#endregion
|
|
2996
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3019
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
2997
3020
|
/**
|
|
2998
3021
|
* A specialized version of `_.forEach` for arrays without support for
|
|
2999
3022
|
* iteratee shorthands.
|
|
@@ -3009,7 +3032,7 @@ function arrayEach(array, iteratee) {
|
|
|
3009
3032
|
return array;
|
|
3010
3033
|
}
|
|
3011
3034
|
//#endregion
|
|
3012
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3035
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
3013
3036
|
/** Used as references for various `Number` constants. */
|
|
3014
3037
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
3015
3038
|
/** Used to detect unsigned integer values. */
|
|
@@ -3028,7 +3051,7 @@ function isIndex(value, length) {
|
|
|
3028
3051
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
3029
3052
|
}
|
|
3030
3053
|
//#endregion
|
|
3031
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3054
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
3032
3055
|
/**
|
|
3033
3056
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
3034
3057
|
* value checks.
|
|
@@ -3048,7 +3071,7 @@ function baseAssignValue(object, key, value) {
|
|
|
3048
3071
|
else object[key] = value;
|
|
3049
3072
|
}
|
|
3050
3073
|
//#endregion
|
|
3051
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3074
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
3052
3075
|
/**
|
|
3053
3076
|
* Performs a
|
|
3054
3077
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -3085,7 +3108,7 @@ function eq(value, other) {
|
|
|
3085
3108
|
return value === other || value !== value && other !== other;
|
|
3086
3109
|
}
|
|
3087
3110
|
//#endregion
|
|
3088
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3111
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
3089
3112
|
/** Used to check objects for own properties. */
|
|
3090
3113
|
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
3091
3114
|
/**
|
|
@@ -3103,7 +3126,7 @@ function assignValue(object, key, value) {
|
|
|
3103
3126
|
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
3104
3127
|
}
|
|
3105
3128
|
//#endregion
|
|
3106
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3129
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
3107
3130
|
/**
|
|
3108
3131
|
* Copies properties of `source` to `object`.
|
|
3109
3132
|
*
|
|
@@ -3128,7 +3151,7 @@ function copyObject(source, props, object, customizer) {
|
|
|
3128
3151
|
return object;
|
|
3129
3152
|
}
|
|
3130
3153
|
//#endregion
|
|
3131
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3154
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
3132
3155
|
/** Used as references for various `Number` constants. */
|
|
3133
3156
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
3134
3157
|
/**
|
|
@@ -3161,7 +3184,7 @@ function isLength(value) {
|
|
|
3161
3184
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
3162
3185
|
}
|
|
3163
3186
|
//#endregion
|
|
3164
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3187
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
3165
3188
|
/**
|
|
3166
3189
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
3167
3190
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -3191,7 +3214,7 @@ function isArrayLike(value) {
|
|
|
3191
3214
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
3192
3215
|
}
|
|
3193
3216
|
//#endregion
|
|
3194
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3217
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
3195
3218
|
/** Used for built-in method references. */
|
|
3196
3219
|
var objectProto$1 = Object.prototype;
|
|
3197
3220
|
/**
|
|
@@ -3206,7 +3229,7 @@ function isPrototype(value) {
|
|
|
3206
3229
|
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
3207
3230
|
}
|
|
3208
3231
|
//#endregion
|
|
3209
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3232
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
3210
3233
|
/**
|
|
3211
3234
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
3212
3235
|
* or max array length checks.
|
|
@@ -3222,7 +3245,7 @@ function baseTimes(n, iteratee) {
|
|
|
3222
3245
|
return result;
|
|
3223
3246
|
}
|
|
3224
3247
|
//#endregion
|
|
3225
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3248
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
3226
3249
|
/** `Object#toString` result references. */
|
|
3227
3250
|
var argsTag$2 = "[object Arguments]";
|
|
3228
3251
|
/**
|
|
@@ -3236,7 +3259,7 @@ function baseIsArguments(value) {
|
|
|
3236
3259
|
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
3237
3260
|
}
|
|
3238
3261
|
//#endregion
|
|
3239
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3262
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
3240
3263
|
/** Used for built-in method references. */
|
|
3241
3264
|
var objectProto = Object.prototype;
|
|
3242
3265
|
/** Used to check objects for own properties. */
|
|
@@ -3267,7 +3290,7 @@ var isArguments = baseIsArguments(function() {
|
|
|
3267
3290
|
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
3268
3291
|
};
|
|
3269
3292
|
//#endregion
|
|
3270
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3293
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
3271
3294
|
/**
|
|
3272
3295
|
* This method returns `false`.
|
|
3273
3296
|
*
|
|
@@ -3285,7 +3308,7 @@ function stubFalse() {
|
|
|
3285
3308
|
return false;
|
|
3286
3309
|
}
|
|
3287
3310
|
//#endregion
|
|
3288
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3311
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
3289
3312
|
/** Detect free variable `exports`. */
|
|
3290
3313
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
3291
3314
|
/** Detect free variable `module`. */
|
|
@@ -3311,7 +3334,7 @@ var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buf
|
|
|
3311
3334
|
*/
|
|
3312
3335
|
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
3313
3336
|
//#endregion
|
|
3314
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3337
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
3315
3338
|
/** `Object#toString` result references. */
|
|
3316
3339
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
3317
3340
|
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
@@ -3330,7 +3353,7 @@ function baseIsTypedArray(value) {
|
|
|
3330
3353
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
3331
3354
|
}
|
|
3332
3355
|
//#endregion
|
|
3333
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3356
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
3334
3357
|
/**
|
|
3335
3358
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
3336
3359
|
*
|
|
@@ -3344,7 +3367,7 @@ function baseUnary(func) {
|
|
|
3344
3367
|
};
|
|
3345
3368
|
}
|
|
3346
3369
|
//#endregion
|
|
3347
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3370
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
3348
3371
|
/** Detect free variable `exports`. */
|
|
3349
3372
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
3350
3373
|
/** Detect free variable `module`. */
|
|
@@ -3360,7 +3383,7 @@ var nodeUtil = function() {
|
|
|
3360
3383
|
} catch (e) {}
|
|
3361
3384
|
}();
|
|
3362
3385
|
//#endregion
|
|
3363
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3386
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
3364
3387
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
3365
3388
|
/**
|
|
3366
3389
|
* Checks if `value` is classified as a typed array.
|
|
@@ -3381,7 +3404,7 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
3381
3404
|
*/
|
|
3382
3405
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
3383
3406
|
//#endregion
|
|
3384
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3407
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
3385
3408
|
/** Used to check objects for own properties. */
|
|
3386
3409
|
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
3387
3410
|
/**
|
|
@@ -3398,7 +3421,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
3398
3421
|
return result;
|
|
3399
3422
|
}
|
|
3400
3423
|
//#endregion
|
|
3401
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3424
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
3402
3425
|
/**
|
|
3403
3426
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
3404
3427
|
*
|
|
@@ -3413,10 +3436,10 @@ function overArg(func, transform) {
|
|
|
3413
3436
|
};
|
|
3414
3437
|
}
|
|
3415
3438
|
//#endregion
|
|
3416
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3439
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
3417
3440
|
var nativeKeys = overArg(Object.keys, Object);
|
|
3418
3441
|
//#endregion
|
|
3419
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3442
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
3420
3443
|
/** Used to check objects for own properties. */
|
|
3421
3444
|
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
3422
3445
|
/**
|
|
@@ -3433,7 +3456,7 @@ function baseKeys(object) {
|
|
|
3433
3456
|
return result;
|
|
3434
3457
|
}
|
|
3435
3458
|
//#endregion
|
|
3436
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3459
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
3437
3460
|
/**
|
|
3438
3461
|
* Creates an array of the own enumerable property names of `object`.
|
|
3439
3462
|
*
|
|
@@ -3466,7 +3489,7 @@ function keys(object) {
|
|
|
3466
3489
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
3467
3490
|
}
|
|
3468
3491
|
//#endregion
|
|
3469
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3492
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
3470
3493
|
/**
|
|
3471
3494
|
* This function is like
|
|
3472
3495
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
@@ -3482,7 +3505,7 @@ function nativeKeysIn(object) {
|
|
|
3482
3505
|
return result;
|
|
3483
3506
|
}
|
|
3484
3507
|
//#endregion
|
|
3485
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3508
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
3486
3509
|
/** Used to check objects for own properties. */
|
|
3487
3510
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
3488
3511
|
/**
|
|
@@ -3499,7 +3522,7 @@ function baseKeysIn(object) {
|
|
|
3499
3522
|
return result;
|
|
3500
3523
|
}
|
|
3501
3524
|
//#endregion
|
|
3502
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3525
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
3503
3526
|
/**
|
|
3504
3527
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
3505
3528
|
*
|
|
@@ -3527,10 +3550,10 @@ function keysIn(object) {
|
|
|
3527
3550
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
3528
3551
|
}
|
|
3529
3552
|
//#endregion
|
|
3530
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3553
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
3531
3554
|
var nativeCreate = getNative(Object, "create");
|
|
3532
3555
|
//#endregion
|
|
3533
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3556
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
3534
3557
|
/**
|
|
3535
3558
|
* Removes all key-value entries from the hash.
|
|
3536
3559
|
*
|
|
@@ -3543,7 +3566,7 @@ function hashClear() {
|
|
|
3543
3566
|
this.size = 0;
|
|
3544
3567
|
}
|
|
3545
3568
|
//#endregion
|
|
3546
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3569
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
3547
3570
|
/**
|
|
3548
3571
|
* Removes `key` and its value from the hash.
|
|
3549
3572
|
*
|
|
@@ -3560,7 +3583,7 @@ function hashDelete(key) {
|
|
|
3560
3583
|
return result;
|
|
3561
3584
|
}
|
|
3562
3585
|
//#endregion
|
|
3563
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3586
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
3564
3587
|
/** Used to stand-in for `undefined` hash values. */
|
|
3565
3588
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
3566
3589
|
/** Used to check objects for own properties. */
|
|
@@ -3583,7 +3606,7 @@ function hashGet(key) {
|
|
|
3583
3606
|
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
3584
3607
|
}
|
|
3585
3608
|
//#endregion
|
|
3586
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3609
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
3587
3610
|
/** Used to check objects for own properties. */
|
|
3588
3611
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
3589
3612
|
/**
|
|
@@ -3600,7 +3623,7 @@ function hashHas(key) {
|
|
|
3600
3623
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
3601
3624
|
}
|
|
3602
3625
|
//#endregion
|
|
3603
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3626
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
3604
3627
|
/** Used to stand-in for `undefined` hash values. */
|
|
3605
3628
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
3606
3629
|
/**
|
|
@@ -3620,7 +3643,7 @@ function hashSet(key, value) {
|
|
|
3620
3643
|
return this;
|
|
3621
3644
|
}
|
|
3622
3645
|
//#endregion
|
|
3623
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3646
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
3624
3647
|
/**
|
|
3625
3648
|
* Creates a hash object.
|
|
3626
3649
|
*
|
|
@@ -3642,7 +3665,7 @@ Hash.prototype.get = hashGet;
|
|
|
3642
3665
|
Hash.prototype.has = hashHas;
|
|
3643
3666
|
Hash.prototype.set = hashSet;
|
|
3644
3667
|
//#endregion
|
|
3645
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3668
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
3646
3669
|
/**
|
|
3647
3670
|
* Removes all key-value entries from the list cache.
|
|
3648
3671
|
*
|
|
@@ -3655,7 +3678,7 @@ function listCacheClear() {
|
|
|
3655
3678
|
this.size = 0;
|
|
3656
3679
|
}
|
|
3657
3680
|
//#endregion
|
|
3658
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3681
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
3659
3682
|
/**
|
|
3660
3683
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
3661
3684
|
*
|
|
@@ -3670,7 +3693,7 @@ function assocIndexOf(array, key) {
|
|
|
3670
3693
|
return -1;
|
|
3671
3694
|
}
|
|
3672
3695
|
//#endregion
|
|
3673
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3696
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
3674
3697
|
/** Built-in value references. */
|
|
3675
3698
|
var splice = Array.prototype.splice;
|
|
3676
3699
|
/**
|
|
@@ -3691,7 +3714,7 @@ function listCacheDelete(key) {
|
|
|
3691
3714
|
return true;
|
|
3692
3715
|
}
|
|
3693
3716
|
//#endregion
|
|
3694
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3717
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
3695
3718
|
/**
|
|
3696
3719
|
* Gets the list cache value for `key`.
|
|
3697
3720
|
*
|
|
@@ -3706,7 +3729,7 @@ function listCacheGet(key) {
|
|
|
3706
3729
|
return index < 0 ? void 0 : data[index][1];
|
|
3707
3730
|
}
|
|
3708
3731
|
//#endregion
|
|
3709
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3732
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
3710
3733
|
/**
|
|
3711
3734
|
* Checks if a list cache value for `key` exists.
|
|
3712
3735
|
*
|
|
@@ -3720,7 +3743,7 @@ function listCacheHas(key) {
|
|
|
3720
3743
|
return assocIndexOf(this.__data__, key) > -1;
|
|
3721
3744
|
}
|
|
3722
3745
|
//#endregion
|
|
3723
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3746
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
3724
3747
|
/**
|
|
3725
3748
|
* Sets the list cache `key` to `value`.
|
|
3726
3749
|
*
|
|
@@ -3740,7 +3763,7 @@ function listCacheSet(key, value) {
|
|
|
3740
3763
|
return this;
|
|
3741
3764
|
}
|
|
3742
3765
|
//#endregion
|
|
3743
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3766
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
3744
3767
|
/**
|
|
3745
3768
|
* Creates an list cache object.
|
|
3746
3769
|
*
|
|
@@ -3762,10 +3785,10 @@ ListCache.prototype.get = listCacheGet;
|
|
|
3762
3785
|
ListCache.prototype.has = listCacheHas;
|
|
3763
3786
|
ListCache.prototype.set = listCacheSet;
|
|
3764
3787
|
//#endregion
|
|
3765
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3788
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
3766
3789
|
var Map = getNative(root, "Map");
|
|
3767
3790
|
//#endregion
|
|
3768
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3791
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
3769
3792
|
/**
|
|
3770
3793
|
* Removes all key-value entries from the map.
|
|
3771
3794
|
*
|
|
@@ -3782,7 +3805,7 @@ function mapCacheClear() {
|
|
|
3782
3805
|
};
|
|
3783
3806
|
}
|
|
3784
3807
|
//#endregion
|
|
3785
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3808
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
3786
3809
|
/**
|
|
3787
3810
|
* Checks if `value` is suitable for use as unique object key.
|
|
3788
3811
|
*
|
|
@@ -3795,7 +3818,7 @@ function isKeyable(value) {
|
|
|
3795
3818
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
3796
3819
|
}
|
|
3797
3820
|
//#endregion
|
|
3798
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3821
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
3799
3822
|
/**
|
|
3800
3823
|
* Gets the data for `map`.
|
|
3801
3824
|
*
|
|
@@ -3809,7 +3832,7 @@ function getMapData(map, key) {
|
|
|
3809
3832
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
3810
3833
|
}
|
|
3811
3834
|
//#endregion
|
|
3812
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3835
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
3813
3836
|
/**
|
|
3814
3837
|
* Removes `key` and its value from the map.
|
|
3815
3838
|
*
|
|
@@ -3825,7 +3848,7 @@ function mapCacheDelete(key) {
|
|
|
3825
3848
|
return result;
|
|
3826
3849
|
}
|
|
3827
3850
|
//#endregion
|
|
3828
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3851
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
3829
3852
|
/**
|
|
3830
3853
|
* Gets the map value for `key`.
|
|
3831
3854
|
*
|
|
@@ -3839,7 +3862,7 @@ function mapCacheGet(key) {
|
|
|
3839
3862
|
return getMapData(this, key).get(key);
|
|
3840
3863
|
}
|
|
3841
3864
|
//#endregion
|
|
3842
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3865
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
3843
3866
|
/**
|
|
3844
3867
|
* Checks if a map value for `key` exists.
|
|
3845
3868
|
*
|
|
@@ -3853,7 +3876,7 @@ function mapCacheHas(key) {
|
|
|
3853
3876
|
return getMapData(this, key).has(key);
|
|
3854
3877
|
}
|
|
3855
3878
|
//#endregion
|
|
3856
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3879
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
3857
3880
|
/**
|
|
3858
3881
|
* Sets the map `key` to `value`.
|
|
3859
3882
|
*
|
|
@@ -3871,7 +3894,7 @@ function mapCacheSet(key, value) {
|
|
|
3871
3894
|
return this;
|
|
3872
3895
|
}
|
|
3873
3896
|
//#endregion
|
|
3874
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3897
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
3875
3898
|
/**
|
|
3876
3899
|
* Creates a map cache object to store key-value pairs.
|
|
3877
3900
|
*
|
|
@@ -3893,7 +3916,7 @@ MapCache.prototype.get = mapCacheGet;
|
|
|
3893
3916
|
MapCache.prototype.has = mapCacheHas;
|
|
3894
3917
|
MapCache.prototype.set = mapCacheSet;
|
|
3895
3918
|
//#endregion
|
|
3896
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3919
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
3897
3920
|
/**
|
|
3898
3921
|
* Appends the elements of `values` to `array`.
|
|
3899
3922
|
*
|
|
@@ -3908,11 +3931,11 @@ function arrayPush(array, values) {
|
|
|
3908
3931
|
return array;
|
|
3909
3932
|
}
|
|
3910
3933
|
//#endregion
|
|
3911
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3934
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
3912
3935
|
/** Built-in value references. */
|
|
3913
3936
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
3914
3937
|
//#endregion
|
|
3915
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3938
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
3916
3939
|
/**
|
|
3917
3940
|
* Removes all key-value entries from the stack.
|
|
3918
3941
|
*
|
|
@@ -3925,7 +3948,7 @@ function stackClear() {
|
|
|
3925
3948
|
this.size = 0;
|
|
3926
3949
|
}
|
|
3927
3950
|
//#endregion
|
|
3928
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3951
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
3929
3952
|
/**
|
|
3930
3953
|
* Removes `key` and its value from the stack.
|
|
3931
3954
|
*
|
|
@@ -3941,7 +3964,7 @@ function stackDelete(key) {
|
|
|
3941
3964
|
return result;
|
|
3942
3965
|
}
|
|
3943
3966
|
//#endregion
|
|
3944
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3967
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
3945
3968
|
/**
|
|
3946
3969
|
* Gets the stack value for `key`.
|
|
3947
3970
|
*
|
|
@@ -3955,7 +3978,7 @@ function stackGet(key) {
|
|
|
3955
3978
|
return this.__data__.get(key);
|
|
3956
3979
|
}
|
|
3957
3980
|
//#endregion
|
|
3958
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3981
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
3959
3982
|
/**
|
|
3960
3983
|
* Checks if a stack value for `key` exists.
|
|
3961
3984
|
*
|
|
@@ -3969,7 +3992,7 @@ function stackHas(key) {
|
|
|
3969
3992
|
return this.__data__.has(key);
|
|
3970
3993
|
}
|
|
3971
3994
|
//#endregion
|
|
3972
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
3995
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
3973
3996
|
/** Used as the size to enable large array optimizations. */
|
|
3974
3997
|
var LARGE_ARRAY_SIZE = 200;
|
|
3975
3998
|
/**
|
|
@@ -3998,7 +4021,7 @@ function stackSet(key, value) {
|
|
|
3998
4021
|
return this;
|
|
3999
4022
|
}
|
|
4000
4023
|
//#endregion
|
|
4001
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4024
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
4002
4025
|
/**
|
|
4003
4026
|
* Creates a stack cache object to store key-value pairs.
|
|
4004
4027
|
*
|
|
@@ -4015,7 +4038,7 @@ Stack.prototype.get = stackGet;
|
|
|
4015
4038
|
Stack.prototype.has = stackHas;
|
|
4016
4039
|
Stack.prototype.set = stackSet;
|
|
4017
4040
|
//#endregion
|
|
4018
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4041
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
4019
4042
|
/**
|
|
4020
4043
|
* The base implementation of `_.assign` without support for multiple sources
|
|
4021
4044
|
* or `customizer` functions.
|
|
@@ -4029,7 +4052,7 @@ function baseAssign(object, source) {
|
|
|
4029
4052
|
return object && copyObject(source, keys(source), object);
|
|
4030
4053
|
}
|
|
4031
4054
|
//#endregion
|
|
4032
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4055
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
4033
4056
|
/**
|
|
4034
4057
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
4035
4058
|
* or `customizer` functions.
|
|
@@ -4043,7 +4066,7 @@ function baseAssignIn(object, source) {
|
|
|
4043
4066
|
return object && copyObject(source, keysIn(source), object);
|
|
4044
4067
|
}
|
|
4045
4068
|
//#endregion
|
|
4046
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4069
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
4047
4070
|
/** Detect free variable `exports`. */
|
|
4048
4071
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
4049
4072
|
/** Detect free variable `module`. */
|
|
@@ -4065,7 +4088,7 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
4065
4088
|
return result;
|
|
4066
4089
|
}
|
|
4067
4090
|
//#endregion
|
|
4068
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4091
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
4069
4092
|
/**
|
|
4070
4093
|
* A specialized version of `_.filter` for arrays without support for
|
|
4071
4094
|
* iteratee shorthands.
|
|
@@ -4084,7 +4107,7 @@ function arrayFilter(array, predicate) {
|
|
|
4084
4107
|
return result;
|
|
4085
4108
|
}
|
|
4086
4109
|
//#endregion
|
|
4087
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4110
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
4088
4111
|
/**
|
|
4089
4112
|
* This method returns a new empty array.
|
|
4090
4113
|
*
|
|
@@ -4107,7 +4130,7 @@ function stubArray() {
|
|
|
4107
4130
|
return [];
|
|
4108
4131
|
}
|
|
4109
4132
|
//#endregion
|
|
4110
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4133
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
4111
4134
|
/** Built-in value references. */
|
|
4112
4135
|
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4113
4136
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -4126,7 +4149,7 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
4126
4149
|
});
|
|
4127
4150
|
};
|
|
4128
4151
|
//#endregion
|
|
4129
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4152
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
4130
4153
|
/**
|
|
4131
4154
|
* Copies own symbols of `source` to `object`.
|
|
4132
4155
|
*
|
|
@@ -4139,7 +4162,7 @@ function copySymbols(source, object) {
|
|
|
4139
4162
|
return copyObject(source, getSymbols(source), object);
|
|
4140
4163
|
}
|
|
4141
4164
|
//#endregion
|
|
4142
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4165
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
4143
4166
|
/**
|
|
4144
4167
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
4145
4168
|
*
|
|
@@ -4156,7 +4179,7 @@ var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object)
|
|
|
4156
4179
|
return result;
|
|
4157
4180
|
};
|
|
4158
4181
|
//#endregion
|
|
4159
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4182
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
4160
4183
|
/**
|
|
4161
4184
|
* Copies own and inherited symbols of `source` to `object`.
|
|
4162
4185
|
*
|
|
@@ -4169,7 +4192,7 @@ function copySymbolsIn(source, object) {
|
|
|
4169
4192
|
return copyObject(source, getSymbolsIn(source), object);
|
|
4170
4193
|
}
|
|
4171
4194
|
//#endregion
|
|
4172
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4195
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
4173
4196
|
/**
|
|
4174
4197
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
4175
4198
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -4186,7 +4209,7 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
4186
4209
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
4187
4210
|
}
|
|
4188
4211
|
//#endregion
|
|
4189
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4212
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
4190
4213
|
/**
|
|
4191
4214
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
4192
4215
|
*
|
|
@@ -4198,7 +4221,7 @@ function getAllKeys(object) {
|
|
|
4198
4221
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
4199
4222
|
}
|
|
4200
4223
|
//#endregion
|
|
4201
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4224
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
4202
4225
|
/**
|
|
4203
4226
|
* Creates an array of own and inherited enumerable property names and
|
|
4204
4227
|
* symbols of `object`.
|
|
@@ -4211,16 +4234,16 @@ function getAllKeysIn(object) {
|
|
|
4211
4234
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
4212
4235
|
}
|
|
4213
4236
|
//#endregion
|
|
4214
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4237
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
4215
4238
|
var DataView = getNative(root, "DataView");
|
|
4216
4239
|
//#endregion
|
|
4217
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4240
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
4218
4241
|
var Promise$1 = getNative(root, "Promise");
|
|
4219
4242
|
//#endregion
|
|
4220
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4243
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
4221
4244
|
var Set$1 = getNative(root, "Set");
|
|
4222
4245
|
//#endregion
|
|
4223
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4246
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
4224
4247
|
/** `Object#toString` result references. */
|
|
4225
4248
|
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
4226
4249
|
var dataViewTag$2 = "[object DataView]";
|
|
@@ -4247,7 +4270,7 @@ if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != data
|
|
|
4247
4270
|
};
|
|
4248
4271
|
var _getTag_default = getTag;
|
|
4249
4272
|
//#endregion
|
|
4250
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4273
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
4251
4274
|
/** Used to check objects for own properties. */
|
|
4252
4275
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4253
4276
|
/**
|
|
@@ -4266,11 +4289,11 @@ function initCloneArray(array) {
|
|
|
4266
4289
|
return result;
|
|
4267
4290
|
}
|
|
4268
4291
|
//#endregion
|
|
4269
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4292
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
4270
4293
|
/** Built-in value references. */
|
|
4271
4294
|
var Uint8Array = root.Uint8Array;
|
|
4272
4295
|
//#endregion
|
|
4273
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4296
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
4274
4297
|
/**
|
|
4275
4298
|
* Creates a clone of `arrayBuffer`.
|
|
4276
4299
|
*
|
|
@@ -4284,7 +4307,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
4284
4307
|
return result;
|
|
4285
4308
|
}
|
|
4286
4309
|
//#endregion
|
|
4287
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4310
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
4288
4311
|
/**
|
|
4289
4312
|
* Creates a clone of `dataView`.
|
|
4290
4313
|
*
|
|
@@ -4298,7 +4321,7 @@ function cloneDataView(dataView, isDeep) {
|
|
|
4298
4321
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
4299
4322
|
}
|
|
4300
4323
|
//#endregion
|
|
4301
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4324
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
4302
4325
|
/** Used to match `RegExp` flags from their coerced string values. */
|
|
4303
4326
|
var reFlags = /\w*$/;
|
|
4304
4327
|
/**
|
|
@@ -4314,7 +4337,7 @@ function cloneRegExp(regexp) {
|
|
|
4314
4337
|
return result;
|
|
4315
4338
|
}
|
|
4316
4339
|
//#endregion
|
|
4317
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4340
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
4318
4341
|
/** Used to convert symbols to primitives and strings. */
|
|
4319
4342
|
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
4320
4343
|
/**
|
|
@@ -4328,7 +4351,7 @@ function cloneSymbol(symbol) {
|
|
|
4328
4351
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
4329
4352
|
}
|
|
4330
4353
|
//#endregion
|
|
4331
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4354
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
4332
4355
|
/**
|
|
4333
4356
|
* Creates a clone of `typedArray`.
|
|
4334
4357
|
*
|
|
@@ -4342,7 +4365,7 @@ function cloneTypedArray(typedArray, isDeep) {
|
|
|
4342
4365
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
4343
4366
|
}
|
|
4344
4367
|
//#endregion
|
|
4345
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4368
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
4346
4369
|
/** `Object#toString` result references. */
|
|
4347
4370
|
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
4348
4371
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
@@ -4383,7 +4406,7 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
4383
4406
|
}
|
|
4384
4407
|
}
|
|
4385
4408
|
//#endregion
|
|
4386
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4409
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
4387
4410
|
/**
|
|
4388
4411
|
* Initializes an object clone.
|
|
4389
4412
|
*
|
|
@@ -4395,7 +4418,7 @@ function initCloneObject(object) {
|
|
|
4395
4418
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
4396
4419
|
}
|
|
4397
4420
|
//#endregion
|
|
4398
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4421
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
4399
4422
|
/** `Object#toString` result references. */
|
|
4400
4423
|
var mapTag$1 = "[object Map]";
|
|
4401
4424
|
/**
|
|
@@ -4409,7 +4432,7 @@ function baseIsMap(value) {
|
|
|
4409
4432
|
return isObjectLike(value) && _getTag_default(value) == mapTag$1;
|
|
4410
4433
|
}
|
|
4411
4434
|
//#endregion
|
|
4412
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4435
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
4413
4436
|
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
4414
4437
|
/**
|
|
4415
4438
|
* Checks if `value` is classified as a `Map` object.
|
|
@@ -4430,7 +4453,7 @@ var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
|
4430
4453
|
*/
|
|
4431
4454
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
4432
4455
|
//#endregion
|
|
4433
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4456
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
4434
4457
|
/** `Object#toString` result references. */
|
|
4435
4458
|
var setTag$1 = "[object Set]";
|
|
4436
4459
|
/**
|
|
@@ -4444,7 +4467,7 @@ function baseIsSet(value) {
|
|
|
4444
4467
|
return isObjectLike(value) && _getTag_default(value) == setTag$1;
|
|
4445
4468
|
}
|
|
4446
4469
|
//#endregion
|
|
4447
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4470
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
4448
4471
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
4449
4472
|
/**
|
|
4450
4473
|
* Checks if `value` is classified as a `Set` object.
|
|
@@ -4465,7 +4488,7 @@ var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
|
4465
4488
|
*/
|
|
4466
4489
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
4467
4490
|
//#endregion
|
|
4468
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4491
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
4469
4492
|
/** Used to compose bitmasks for cloning. */
|
|
4470
4493
|
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
4471
4494
|
/** `Object#toString` result references. */
|
|
@@ -4532,7 +4555,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
4532
4555
|
return result;
|
|
4533
4556
|
}
|
|
4534
4557
|
//#endregion
|
|
4535
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
4558
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
4536
4559
|
/** Used to compose bitmasks for cloning. */
|
|
4537
4560
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
4538
4561
|
/**
|
|
@@ -4912,9 +4935,14 @@ var setSelection = (editor, props) => {
|
|
|
4912
4935
|
const oldProps = {};
|
|
4913
4936
|
const newProps = {};
|
|
4914
4937
|
if (!selection) return;
|
|
4915
|
-
for (const k in props)
|
|
4916
|
-
|
|
4917
|
-
|
|
4938
|
+
for (const k in props) {
|
|
4939
|
+
if (NON_SETTABLE_SELECTION_PROPERTIES.includes(k)) continue;
|
|
4940
|
+
const value = Object.hasOwn(selection, k) ? selection[k] : void 0;
|
|
4941
|
+
const newValue = props[k];
|
|
4942
|
+
if (compareSelectionProps(k, value, newValue)) {
|
|
4943
|
+
oldProps[k] = selection[k];
|
|
4944
|
+
newProps[k] = props[k];
|
|
4945
|
+
}
|
|
4918
4946
|
}
|
|
4919
4947
|
if (Object.keys(oldProps).length > 0) editor.apply({
|
|
4920
4948
|
type: "set_selection",
|
|
@@ -4922,6 +4950,10 @@ var setSelection = (editor, props) => {
|
|
|
4922
4950
|
newProperties: newProps
|
|
4923
4951
|
});
|
|
4924
4952
|
};
|
|
4953
|
+
function compareSelectionProps(key, value, newValue) {
|
|
4954
|
+
if ((key === "anchor" || key === "focus") && Point.isPoint(value) && Point.isPoint(newValue)) return !Point.equals(value, newValue);
|
|
4955
|
+
return value !== newValue;
|
|
4956
|
+
}
|
|
4925
4957
|
//#endregion
|
|
4926
4958
|
//#region packages/slate/transforms-node/insert-nodes.ts
|
|
4927
4959
|
var insertNodes = (editor, nodes, options = {}) => {
|
|
@@ -5268,14 +5300,15 @@ var setNodes = (editor, props, options = {}) => {
|
|
|
5268
5300
|
if (path.length === 0) continue;
|
|
5269
5301
|
let hasChanges = false;
|
|
5270
5302
|
for (const k in props) {
|
|
5271
|
-
if (k
|
|
5272
|
-
const
|
|
5273
|
-
|
|
5303
|
+
if (NON_SETTABLE_NODE_PROPERTIES.includes(k)) continue;
|
|
5304
|
+
const value = Object.hasOwn(node, k) ? node[k] : void 0;
|
|
5305
|
+
const newValue = props[k];
|
|
5306
|
+
if (compare(newValue, value)) {
|
|
5274
5307
|
hasChanges = true;
|
|
5275
|
-
if (Object.hasOwn(node, k)) properties[
|
|
5308
|
+
if (Object.hasOwn(node, k)) properties[k] = value;
|
|
5276
5309
|
if (merge) {
|
|
5277
|
-
if (
|
|
5278
|
-
} else if (
|
|
5310
|
+
if (newValue != null) newProperties[k] = merge(value, newValue);
|
|
5311
|
+
} else if (newValue != null) newProperties[k] = newValue;
|
|
5279
5312
|
}
|
|
5280
5313
|
}
|
|
5281
5314
|
if (hasChanges) editor.apply({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as HAS_BEFORE_INPUT_SUPPORT, C as MARK_PLACEHOLDER_SYMBOL, D as NODE_TO_PARENT, G as containsShadowAware, H as IS_WEBKIT, J as getDefaultView, K as getActiveElement, L as IS_FIREFOX, P as IS_CHROME, Q as getSelection, R as IS_FIREFOX_LEGACY, S as IS_READ_ONLY, T as NODE_TO_INDEX, U as IS_WECHATBROWSER, V as IS_UC_MOBILE, _ as EDITOR_TO_USER_SELECTION, a as Hotkeys, at as isDOMNode, b as IS_COMPOSING, ct as isPlainTextOnlyPaste, d as getChunkTreeForNode, f as DOMEditor, g as EDITOR_TO_USER_MARKS, h as EDITOR_TO_ON_CHANGE, it as isDOMElement, j as IS_ANDROID, k as CAN_USE_DOM, l as reconcileChildren, m as EDITOR_TO_KEY_TO_ELEMENT, o as applyStringDiff, ot as isDOMSelection, p as EDITOR_TO_ELEMENT, s as normalizeStringDiff, v as EDITOR_TO_WINDOW, w as NODE_TO_ELEMENT, x as IS_FOCUSED, y as ELEMENT_TO_NODE, z as IS_IOS } from "./slate-dom-
|
|
2
|
-
import { Dt as Scrubber, Et as Text, Ft as Element, It as Range, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-
|
|
1
|
+
import { A as HAS_BEFORE_INPUT_SUPPORT, C as MARK_PLACEHOLDER_SYMBOL, D as NODE_TO_PARENT, G as containsShadowAware, H as IS_WEBKIT, J as getDefaultView, K as getActiveElement, L as IS_FIREFOX, P as IS_CHROME, Q as getSelection, R as IS_FIREFOX_LEGACY, S as IS_READ_ONLY, T as NODE_TO_INDEX, U as IS_WECHATBROWSER, V as IS_UC_MOBILE, _ as EDITOR_TO_USER_SELECTION, a as Hotkeys, at as isDOMNode, b as IS_COMPOSING, ct as isPlainTextOnlyPaste, d as getChunkTreeForNode, f as DOMEditor, g as EDITOR_TO_USER_MARKS, h as EDITOR_TO_ON_CHANGE, it as isDOMElement, j as IS_ANDROID, k as CAN_USE_DOM, l as reconcileChildren, m as EDITOR_TO_KEY_TO_ELEMENT, o as applyStringDiff, ot as isDOMSelection, p as EDITOR_TO_ELEMENT, s as normalizeStringDiff, v as EDITOR_TO_WINDOW, w as NODE_TO_ELEMENT, x as IS_FOCUSED, y as ELEMENT_TO_NODE, z as IS_IOS } from "./slate-dom-DaRWnWcD.js";
|
|
2
|
+
import { Dt as Scrubber, Et as Text, Ft as Element, It as Range, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor } from "./slate-vhSVLf2R.js";
|
|
3
3
|
import "./share-tools-DLjSB3JV.js";
|
|
4
4
|
import { computed, defineComponent, h, inject, onMounted, onUnmounted, onUpdated, provide, reactive, ref, renderList, renderSlot, toRaw, useAttrs, watch } from "vue";
|
|
5
5
|
//#region packages/slate-vue/utils/constants.ts
|
package/dist/yjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as DOMEditor } from "./slate-dom-
|
|
2
|
-
import { d as useEditor, i as useFocused } from "./slate-vue-
|
|
3
|
-
import { It as Range, Lt as isObject, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor, kt as Location } from "./slate-
|
|
1
|
+
import { f as DOMEditor } from "./slate-dom-DaRWnWcD.js";
|
|
2
|
+
import { d as useEditor, i as useFocused } from "./slate-vue-CRuKdDhB.js";
|
|
3
|
+
import { It as Range, Lt as isObject, Pt as Node, Rt as Path, Tt as Transforms, jt as Editor, kt as Location } from "./slate-vhSVLf2R.js";
|
|
4
4
|
import { computed, onMounted, onUnmounted, onUpdated, ref, watch } from "vue";
|
|
5
5
|
import { UndoManager, XmlText, YTextEvent, compareRelativePositions, createAbsolutePositionFromRelativePosition, createRelativePositionFromJSON, createRelativePositionFromTypeIndex, decodeRelativePosition, encodeRelativePosition } from "yjs";
|
|
6
6
|
//#region packages/slate-yjs/utils/object.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slate-vue3",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"direction": "^2.0.1",
|
|
72
72
|
"is-hotkey": "^0.2.0",
|
|
73
|
-
"lodash-es": "^4.
|
|
73
|
+
"lodash-es": "^4.18.1",
|
|
74
74
|
"scroll-into-view-if-needed": "^3.1.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
@@ -80,39 +80,39 @@
|
|
|
80
80
|
"@actions/core": "^3.0.0",
|
|
81
81
|
"@eslint/js": "^10.0.1",
|
|
82
82
|
"@faker-js/faker": "^10.4.0",
|
|
83
|
-
"@liveblocks/client": "^3.
|
|
84
|
-
"@liveblocks/yjs": "^3.
|
|
85
|
-
"@playwright/test": "^1.
|
|
83
|
+
"@liveblocks/client": "^3.18.0",
|
|
84
|
+
"@liveblocks/yjs": "^3.18.0",
|
|
85
|
+
"@playwright/test": "^1.59.1",
|
|
86
86
|
"@testing-library/vue": "^8.1.0",
|
|
87
87
|
"@types/is-hotkey": "^0.1.10",
|
|
88
88
|
"@types/is-url": "^1.2.32",
|
|
89
89
|
"@types/lodash-es": "^4.17.12",
|
|
90
|
-
"@types/node": "^25.5.
|
|
90
|
+
"@types/node": "^25.5.2",
|
|
91
91
|
"@types/prismjs": "^1.26.6",
|
|
92
92
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
93
93
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
94
94
|
"babel-plugin-transform-regex": "^6.1.0",
|
|
95
|
-
"eslint": "^10.
|
|
95
|
+
"eslint": "^10.2.0",
|
|
96
96
|
"eslint-plugin-vue": "^10.8.0",
|
|
97
97
|
"globals": "^17.4.0",
|
|
98
98
|
"husky": "^9.1.7",
|
|
99
99
|
"image-extensions": "^1.1.0",
|
|
100
100
|
"is-url": "^1.2.4",
|
|
101
101
|
"jiti": "^2.6.1",
|
|
102
|
-
"jsdom": "^29.0.
|
|
102
|
+
"jsdom": "^29.0.2",
|
|
103
103
|
"lint-staged": "^16.4.0",
|
|
104
104
|
"prismjs": "^1.30.0",
|
|
105
105
|
"remark-gfm": "^4.0.1",
|
|
106
106
|
"remark-parse": "^11.0.0",
|
|
107
107
|
"remark-slate-transformer": "^0.9.0",
|
|
108
108
|
"typescript": "~6.0.2",
|
|
109
|
-
"typescript-eslint": "^8.
|
|
109
|
+
"typescript-eslint": "^8.58.1",
|
|
110
110
|
"unified": "^11.0.5",
|
|
111
|
-
"vite": "^8.0.
|
|
111
|
+
"vite": "^8.0.8",
|
|
112
112
|
"vite-plugin-babel": "^1.6.0",
|
|
113
113
|
"vite-plugin-dts": "^4.5.4",
|
|
114
114
|
"vite-plugin-eslint": "^1.8.1",
|
|
115
|
-
"vitest": "^4.1.
|
|
115
|
+
"vitest": "^4.1.4",
|
|
116
116
|
"vue-router": "^5.0.4",
|
|
117
117
|
"vue-tsc": "^3.2.6",
|
|
118
118
|
"yjs": "^13.6.30"
|