@lexical/markdown 0.14.1 → 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 './LexicalMarkdown.dev.esm.js';
8
- import * as modProd from './LexicalMarkdown.prod.esm.js';
7
+ import * as modDev from './LexicalMarkdown.dev.mjs';
8
+ import * as modProd from './LexicalMarkdown.prod.mjs';
9
9
  const mod = process.env.NODE_ENV === 'development' ? modDev : modProd;
10
10
  export const $convertFromMarkdownString = mod.$convertFromMarkdownString;
11
11
  export const $convertToMarkdownString = mod.$convertToMarkdownString;
@@ -0,0 +1,30 @@
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('./LexicalMarkdown.dev.mjs') : import('./LexicalMarkdown.prod.mjs'));
8
+ export const $convertFromMarkdownString = mod.$convertFromMarkdownString;
9
+ export const $convertToMarkdownString = mod.$convertToMarkdownString;
10
+ export const BOLD_ITALIC_STAR = mod.BOLD_ITALIC_STAR;
11
+ export const BOLD_ITALIC_UNDERSCORE = mod.BOLD_ITALIC_UNDERSCORE;
12
+ export const BOLD_STAR = mod.BOLD_STAR;
13
+ export const BOLD_UNDERSCORE = mod.BOLD_UNDERSCORE;
14
+ export const CHECK_LIST = mod.CHECK_LIST;
15
+ export const CODE = mod.CODE;
16
+ export const ELEMENT_TRANSFORMERS = mod.ELEMENT_TRANSFORMERS;
17
+ export const HEADING = mod.HEADING;
18
+ export const HIGHLIGHT = mod.HIGHLIGHT;
19
+ export const INLINE_CODE = mod.INLINE_CODE;
20
+ export const ITALIC_STAR = mod.ITALIC_STAR;
21
+ export const ITALIC_UNDERSCORE = mod.ITALIC_UNDERSCORE;
22
+ export const LINK = mod.LINK;
23
+ export const ORDERED_LIST = mod.ORDERED_LIST;
24
+ export const QUOTE = mod.QUOTE;
25
+ export const STRIKETHROUGH = mod.STRIKETHROUGH;
26
+ export const TEXT_FORMAT_TRANSFORMERS = mod.TEXT_FORMAT_TRANSFORMERS;
27
+ export const TEXT_MATCH_TRANSFORMERS = mod.TEXT_MATCH_TRANSFORMERS;
28
+ export const TRANSFORMERS = mod.TRANSFORMERS;
29
+ export const UNORDERED_LIST = mod.UNORDERED_LIST;
30
+ export const registerMarkdownShortcuts = mod.registerMarkdownShortcuts;
package/package.json CHANGED
@@ -8,24 +8,36 @@
8
8
  "markdown"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.14.1",
11
+ "version": "0.14.3",
12
12
  "main": "LexicalMarkdown.js",
13
- "peerDependencies": {
14
- "lexical": "0.14.1"
15
- },
13
+ "types": "index.d.ts",
16
14
  "dependencies": {
17
- "@lexical/utils": "0.14.1",
18
- "@lexical/code": "0.14.1",
19
- "@lexical/text": "0.14.1",
20
- "@lexical/rich-text": "0.14.1",
21
- "@lexical/list": "0.14.1",
22
- "@lexical/link": "0.14.1"
15
+ "@lexical/code": "0.14.3",
16
+ "@lexical/link": "0.14.3",
17
+ "@lexical/list": "0.14.3",
18
+ "@lexical/rich-text": "0.14.3",
19
+ "@lexical/text": "0.14.3",
20
+ "@lexical/utils": "0.14.3",
21
+ "lexical": "0.14.3"
23
22
  },
24
23
  "repository": {
25
24
  "type": "git",
26
25
  "url": "https://github.com/facebook/lexical",
27
26
  "directory": "packages/lexical-markdown"
28
27
  },
29
- "module": "LexicalMarkdown.esm.js",
30
- "sideEffects": false
28
+ "module": "LexicalMarkdown.mjs",
29
+ "sideEffects": false,
30
+ "exports": {
31
+ ".": {
32
+ "import": {
33
+ "types": "./index.d.ts",
34
+ "node": "./LexicalMarkdown.node.mjs",
35
+ "default": "./LexicalMarkdown.mjs"
36
+ },
37
+ "require": {
38
+ "types": "./index.d.ts",
39
+ "default": "./LexicalMarkdown.js"
40
+ }
41
+ }
42
+ }
31
43
  }