lexical 0.31.3-nightly.20250602.0 → 0.31.3-nightly.20250603.0
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/Lexical.dev.js +1 -1
- package/Lexical.dev.mjs +1 -1
- package/Lexical.js.flow +25 -3
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/index.d.ts +1 -2
- package/package.json +1 -1
package/Lexical.dev.js
CHANGED
|
@@ -10456,7 +10456,7 @@ class LexicalEditor {
|
|
|
10456
10456
|
};
|
|
10457
10457
|
}
|
|
10458
10458
|
}
|
|
10459
|
-
LexicalEditor.version = "0.31.3-nightly.
|
|
10459
|
+
LexicalEditor.version = "0.31.3-nightly.20250603.0+dev.cjs";
|
|
10460
10460
|
|
|
10461
10461
|
let keyCounter = 1;
|
|
10462
10462
|
function resetRandomKey() {
|
package/Lexical.dev.mjs
CHANGED
|
@@ -10454,7 +10454,7 @@ class LexicalEditor {
|
|
|
10454
10454
|
};
|
|
10455
10455
|
}
|
|
10456
10456
|
}
|
|
10457
|
-
LexicalEditor.version = "0.31.3-nightly.
|
|
10457
|
+
LexicalEditor.version = "0.31.3-nightly.20250603.0+dev.esm";
|
|
10458
10458
|
|
|
10459
10459
|
let keyCounter = 1;
|
|
10460
10460
|
function resetRandomKey() {
|
package/Lexical.js.flow
CHANGED
|
@@ -185,7 +185,7 @@ declare export class LexicalEditor {
|
|
|
185
185
|
_dirtyLeaves: Set<NodeKey>;
|
|
186
186
|
_dirtyElements: Map<NodeKey, IntentionallyMarkedAsDirtyElement>;
|
|
187
187
|
_normalizedNodes: Set<NodeKey>;
|
|
188
|
-
_updateTags: Set<
|
|
188
|
+
_updateTags: Set<UpdateTag>;
|
|
189
189
|
_observer: null | MutationObserver;
|
|
190
190
|
_key: string;
|
|
191
191
|
_editable: boolean;
|
|
@@ -900,8 +900,8 @@ declare export function $isParagraphNode(
|
|
|
900
900
|
* LexicalUtils
|
|
901
901
|
*/
|
|
902
902
|
export type EventHandler = (event: Event, editor: LexicalEditor) => void;
|
|
903
|
-
declare export function $hasUpdateTag(tag:
|
|
904
|
-
declare export function $addUpdateTag(tag:
|
|
903
|
+
declare export function $hasUpdateTag(tag: UpdateTag): boolean;
|
|
904
|
+
declare export function $addUpdateTag(tag: UpdateTag): void;
|
|
905
905
|
declare export function $onUpdate(updateFn: () => void): void;
|
|
906
906
|
declare export function getNearestEditorFromDOMNode(
|
|
907
907
|
node: Node | null,
|
|
@@ -1259,3 +1259,25 @@ declare export function $splitAtPointCaretNext(
|
|
|
1259
1259
|
pointCaret: PointCaret<'next'>,
|
|
1260
1260
|
options?: SplitAtPointCaretNextOptions,
|
|
1261
1261
|
): null | NodeCaret<'next'>;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* LexicalUpdateTags
|
|
1265
|
+
*/
|
|
1266
|
+
declare export var COLLABORATION_TAG: 'collaboration';
|
|
1267
|
+
declare export var HISTORIC_TAG: 'historic';
|
|
1268
|
+
declare export var HISTORY_MERGE_TAG: 'history-merge';
|
|
1269
|
+
declare export var HISTORY_PUSH_TAG: 'history-push';
|
|
1270
|
+
declare export var PASTE_TAG: 'paste';
|
|
1271
|
+
declare export var SKIP_COLLAB_TAG: 'skip-collab';
|
|
1272
|
+
declare export var SKIP_DOM_SELECTION_TAG: 'skip-dom-selection';
|
|
1273
|
+
declare export var SKIP_SCROLL_INTO_VIEW_TAG: 'skip-scroll-into-view';
|
|
1274
|
+
export type UpdateTag =
|
|
1275
|
+
typeof COLLABORATION_TAG
|
|
1276
|
+
| typeof HISTORIC_TAG
|
|
1277
|
+
| typeof HISTORY_MERGE_TAG
|
|
1278
|
+
| typeof HISTORY_PUSH_TAG
|
|
1279
|
+
| typeof PASTE_TAG
|
|
1280
|
+
| typeof SKIP_COLLAB_TAG
|
|
1281
|
+
| typeof SKIP_DOM_SELECTION_TAG
|
|
1282
|
+
| typeof SKIP_SCROLL_INTO_VIEW_TAG
|
|
1283
|
+
| string;
|