-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: π export MARKS and EMPTY_DOCUMENT as ESM friendly (#462)
Co-authored-by: Kudakwashe Mupeni <[email protected]> Co-authored-by: Yves Rijckaert <[email protected]>
- Loading branch information
1 parent
01408ed
commit 7ea8ab3
Showing
4 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
export { BLOCKS } from './blocks'; | ||
export { INLINES } from './inlines'; | ||
export { default as MARKS } from './marks'; | ||
export { MARKS } from './marks'; | ||
|
||
export * from './schemaConstraints'; | ||
|
||
export * from './types'; | ||
export * from './nodeTypes'; | ||
|
||
export { default as EMPTY_DOCUMENT } from './emptyDocument'; | ||
export { EMPTY_DOCUMENT } from './emptyDocument'; | ||
|
||
import * as helpers from './helpers'; | ||
export { helpers }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* Map of all Contentful marks. | ||
*/ | ||
enum MARKS { | ||
export enum MARKS { | ||
BOLD = 'bold', | ||
ITALIC = 'italic', | ||
UNDERLINE = 'underline', | ||
CODE = 'code', | ||
SUPERSCRIPT = 'superscript', | ||
SUBSCRIPT = 'subscript', | ||
} | ||
|
||
export default MARKS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters