@lexical/mark 0.14.2 → 0.14.4
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/LexicalMark.dev.js
CHANGED
|
@@ -153,7 +153,13 @@ function $isMarkNode(node) {
|
|
|
153
153
|
return node instanceof MarkNode;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the MIT license found in the
|
|
160
|
+
* LICENSE file in the root directory of this source tree.
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
157
163
|
function $unwrapMarkNode(node) {
|
|
158
164
|
const children = node.getChildren();
|
|
159
165
|
let target = null;
|
|
@@ -151,7 +151,13 @@ function $isMarkNode(node) {
|
|
|
151
151
|
return node instanceof MarkNode;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the MIT license found in the
|
|
158
|
+
* LICENSE file in the root directory of this source tree.
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
155
161
|
function $unwrapMarkNode(node) {
|
|
156
162
|
const children = node.getChildren();
|
|
157
163
|
let target = null;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import * as modDev from './LexicalMark.dev.
|
|
8
|
-
import * as modProd from './LexicalMark.prod.
|
|
7
|
+
import * as modDev from './LexicalMark.dev.mjs';
|
|
8
|
+
import * as modProd from './LexicalMark.prod.mjs';
|
|
9
9
|
const mod = process.env.NODE_ENV === 'development' ? modDev : modProd;
|
|
10
10
|
export const $createMarkNode = mod.$createMarkNode;
|
|
11
11
|
export const $getMarkIDs = mod.$getMarkIDs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
const mod = await (process.env.NODE_ENV === 'development' ? import('./LexicalMark.dev.mjs') : import('./LexicalMark.prod.mjs'));
|
|
8
|
+
export const $createMarkNode = mod.$createMarkNode;
|
|
9
|
+
export const $getMarkIDs = mod.$getMarkIDs;
|
|
10
|
+
export const $isMarkNode = mod.$isMarkNode;
|
|
11
|
+
export const $unwrapMarkNode = mod.$unwrapMarkNode;
|
|
12
|
+
export const $wrapSelectionInMarkNode = mod.$wrapSelectionInMarkNode;
|
|
13
|
+
export const MarkNode = mod.MarkNode;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,19 +8,35 @@
|
|
|
8
8
|
"mark"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.14.
|
|
11
|
+
"version": "0.14.4",
|
|
12
12
|
"main": "LexicalMark.js",
|
|
13
|
-
"
|
|
14
|
-
"lexical": "0.14.2"
|
|
15
|
-
},
|
|
13
|
+
"types": "index.d.ts",
|
|
16
14
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.14.
|
|
15
|
+
"@lexical/utils": "0.14.4",
|
|
16
|
+
"lexical": "0.14.4"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
20
19
|
"type": "git",
|
|
21
20
|
"url": "https://github.com/facebook/lexical",
|
|
22
21
|
"directory": "packages/lexical-mark"
|
|
23
22
|
},
|
|
24
|
-
"module": "LexicalMark.
|
|
25
|
-
"sideEffects": false
|
|
23
|
+
"module": "LexicalMark.mjs",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./index.d.ts",
|
|
29
|
+
"development": "./LexicalMark.dev.mjs",
|
|
30
|
+
"production": "./LexicalMark.prod.mjs",
|
|
31
|
+
"node": "./LexicalMark.node.mjs",
|
|
32
|
+
"default": "./LexicalMark.mjs"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"development": "./LexicalMark.dev.js",
|
|
37
|
+
"production": "./LexicalMark.prod.js",
|
|
38
|
+
"default": "./LexicalMark.js"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
26
42
|
}
|
|
File without changes
|