@lexical/html 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/LexicalHtml.dev.js
CHANGED
|
@@ -10,7 +10,13 @@ var selection = require('@lexical/selection');
|
|
|
10
10
|
var utils = require('@lexical/utils');
|
|
11
11
|
var lexical = require('lexical');
|
|
12
12
|
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
14
20
|
|
|
15
21
|
/**
|
|
16
22
|
* How you parse your html string to get a document is left up to you. In the browser you can use the native
|
|
@@ -8,7 +8,13 @@ import { $cloneWithProperties, $sliceSelectedTextNodeContent } from '@lexical/se
|
|
|
8
8
|
import { isHTMLElement } from '@lexical/utils';
|
|
9
9
|
import { $getRoot, $isElementNode, $isTextNode } from 'lexical';
|
|
10
10
|
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
12
18
|
|
|
13
19
|
/**
|
|
14
20
|
* How you parse your html string to get a document is left up to you. In the browser you can use the native
|
|
@@ -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 './LexicalHtml.dev.
|
|
8
|
-
import * as modProd from './LexicalHtml.prod.
|
|
7
|
+
import * as modDev from './LexicalHtml.dev.mjs';
|
|
8
|
+
import * as modProd from './LexicalHtml.prod.mjs';
|
|
9
9
|
const mod = process.env.NODE_ENV === 'development' ? modDev : modProd;
|
|
10
10
|
export const $generateHtmlFromNodes = mod.$generateHtmlFromNodes;
|
|
11
11
|
export const $generateNodesFromDOM = mod.$generateNodesFromDOM;
|
|
@@ -0,0 +1,9 @@
|
|
|
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('./LexicalHtml.dev.mjs') : import('./LexicalHtml.prod.mjs'));
|
|
8
|
+
export const $generateHtmlFromNodes = mod.$generateHtmlFromNodes;
|
|
9
|
+
export const $generateNodesFromDOM = mod.$generateNodesFromDOM;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,20 +8,36 @@
|
|
|
8
8
|
"html"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.14.
|
|
11
|
+
"version": "0.14.4",
|
|
12
12
|
"main": "LexicalHtml.js",
|
|
13
|
-
"
|
|
14
|
-
"lexical": "0.14.2"
|
|
15
|
-
},
|
|
13
|
+
"types": "index.d.ts",
|
|
16
14
|
"repository": {
|
|
17
15
|
"type": "git",
|
|
18
16
|
"url": "https://github.com/facebook/lexical",
|
|
19
17
|
"directory": "packages/lexical-html"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
|
-
"@lexical/selection": "0.14.
|
|
23
|
-
"@lexical/utils": "0.14.
|
|
20
|
+
"@lexical/selection": "0.14.4",
|
|
21
|
+
"@lexical/utils": "0.14.4",
|
|
22
|
+
"lexical": "0.14.4"
|
|
24
23
|
},
|
|
25
|
-
"module": "LexicalHtml.
|
|
26
|
-
"sideEffects": false
|
|
24
|
+
"module": "LexicalHtml.mjs",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./index.d.ts",
|
|
30
|
+
"development": "./LexicalHtml.dev.mjs",
|
|
31
|
+
"production": "./LexicalHtml.prod.mjs",
|
|
32
|
+
"node": "./LexicalHtml.node.mjs",
|
|
33
|
+
"default": "./LexicalHtml.mjs"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./index.d.ts",
|
|
37
|
+
"development": "./LexicalHtml.dev.js",
|
|
38
|
+
"production": "./LexicalHtml.prod.js",
|
|
39
|
+
"default": "./LexicalHtml.js"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
27
43
|
}
|
|
File without changes
|