@lexical/rich-text 0.14.2 → 0.14.3

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.
@@ -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 './LexicalRichText.dev.esm.js';
8
- import * as modProd from './LexicalRichText.prod.esm.js';
7
+ import * as modDev from './LexicalRichText.dev.mjs';
8
+ import * as modProd from './LexicalRichText.prod.mjs';
9
9
  const mod = process.env.NODE_ENV === 'development' ? modDev : modProd;
10
10
  export const $createHeadingNode = mod.$createHeadingNode;
11
11
  export const $createQuoteNode = mod.$createQuoteNode;
@@ -0,0 +1,16 @@
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('./LexicalRichText.dev.mjs') : import('./LexicalRichText.prod.mjs'));
8
+ export const $createHeadingNode = mod.$createHeadingNode;
9
+ export const $createQuoteNode = mod.$createQuoteNode;
10
+ export const $isHeadingNode = mod.$isHeadingNode;
11
+ export const $isQuoteNode = mod.$isQuoteNode;
12
+ export const DRAG_DROP_PASTE = mod.DRAG_DROP_PASTE;
13
+ export const HeadingNode = mod.HeadingNode;
14
+ export const QuoteNode = mod.QuoteNode;
15
+ export const eventFiles = mod.eventFiles;
16
+ export const registerRichText = mod.registerRichText;
package/package.json CHANGED
@@ -7,19 +7,33 @@
7
7
  "rich-text"
8
8
  ],
9
9
  "license": "MIT",
10
- "version": "0.14.2",
10
+ "version": "0.14.3",
11
11
  "main": "LexicalRichText.js",
12
- "peerDependencies": {
13
- "lexical": "0.14.2",
14
- "@lexical/selection": "0.14.2",
15
- "@lexical/clipboard": "0.14.2",
16
- "@lexical/utils": "0.14.2"
17
- },
12
+ "types": "index.d.ts",
18
13
  "repository": {
19
14
  "type": "git",
20
15
  "url": "https://github.com/facebook/lexical",
21
16
  "directory": "packages/lexical-rich-text"
22
17
  },
23
- "module": "LexicalRichText.esm.js",
24
- "sideEffects": false
18
+ "module": "LexicalRichText.mjs",
19
+ "sideEffects": false,
20
+ "exports": {
21
+ ".": {
22
+ "import": {
23
+ "types": "./index.d.ts",
24
+ "node": "./LexicalRichText.node.mjs",
25
+ "default": "./LexicalRichText.mjs"
26
+ },
27
+ "require": {
28
+ "types": "./index.d.ts",
29
+ "default": "./LexicalRichText.js"
30
+ }
31
+ }
32
+ },
33
+ "dependencies": {
34
+ "@lexical/clipboard": "0.14.3",
35
+ "@lexical/selection": "0.14.3",
36
+ "@lexical/utils": "0.14.3",
37
+ "lexical": "0.14.3"
38
+ }
25
39
  }