@lexical/markdown 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.
@@ -989,7 +989,13 @@ const LINK = {
989
989
  type: 'text-match'
990
990
  };
991
991
 
992
- /** @module @lexical/markdown */
992
+ /**
993
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
994
+ *
995
+ * This source code is licensed under the MIT license found in the
996
+ * LICENSE file in the root directory of this source tree.
997
+ *
998
+ */
993
999
  const ELEMENT_TRANSFORMERS = [HEADING, QUOTE, CODE, UNORDERED_LIST, ORDERED_LIST];
994
1000
 
995
1001
  // Order of text format transformers matters:
@@ -987,7 +987,13 @@ const LINK = {
987
987
  type: 'text-match'
988
988
  };
989
989
 
990
- /** @module @lexical/markdown */
990
+ /**
991
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
992
+ *
993
+ * This source code is licensed under the MIT license found in the
994
+ * LICENSE file in the root directory of this source tree.
995
+ *
996
+ */
991
997
  const ELEMENT_TRANSFORMERS = [HEADING, QUOTE, CODE, UNORDERED_LIST, ORDERED_LIST];
992
998
 
993
999
  // Order of text format transformers matters:
@@ -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/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /** @module @lexical/markdown */
2
1
  /**
3
2
  * Copyright (c) Meta Platforms, Inc. and affiliates.
4
3
  *
package/package.json CHANGED
@@ -8,24 +8,40 @@
8
8
  "markdown"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.14.2",
11
+ "version": "0.14.4",
12
12
  "main": "LexicalMarkdown.js",
13
- "peerDependencies": {
14
- "lexical": "0.14.2"
15
- },
13
+ "types": "index.d.ts",
16
14
  "dependencies": {
17
- "@lexical/utils": "0.14.2",
18
- "@lexical/code": "0.14.2",
19
- "@lexical/text": "0.14.2",
20
- "@lexical/rich-text": "0.14.2",
21
- "@lexical/list": "0.14.2",
22
- "@lexical/link": "0.14.2"
15
+ "@lexical/code": "0.14.4",
16
+ "@lexical/link": "0.14.4",
17
+ "@lexical/list": "0.14.4",
18
+ "@lexical/rich-text": "0.14.4",
19
+ "@lexical/text": "0.14.4",
20
+ "@lexical/utils": "0.14.4",
21
+ "lexical": "0.14.4"
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
+ "development": "./LexicalMarkdown.dev.mjs",
35
+ "production": "./LexicalMarkdown.prod.mjs",
36
+ "node": "./LexicalMarkdown.node.mjs",
37
+ "default": "./LexicalMarkdown.mjs"
38
+ },
39
+ "require": {
40
+ "types": "./index.d.ts",
41
+ "development": "./LexicalMarkdown.dev.js",
42
+ "production": "./LexicalMarkdown.prod.js",
43
+ "default": "./LexicalMarkdown.js"
44
+ }
45
+ }
46
+ }
31
47
  }