Fix #3435 - CommonJS and ESM loading confusion (#3436)

* Fix TipTap getting loaded as CommonJS when the intent is to use the ES Module version.
* `package.json` change also makes explicit exports required
* Update `core` utilities exports to include all utilities
* Update tests to use exported utilities
This commit is contained in:
tomi-bigpi 2022-11-24 09:06:42 -06:00 committed by GitHub
parent ea60900459
commit d3aeac4afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
58 changed files with 494 additions and 110 deletions

View File

@ -15,9 +15,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-core.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/core/src/index.d.ts",
"import": "./dist/tiptap-core.mjs",
"require": "./dist/tiptap-core.cjs"
}
},
"main": "dist/tiptap-core.cjs",
"umd": "dist/tiptap-core.umd.js",
"module": "dist/tiptap-core.esm.js",
"module": "dist/tiptap-core.mjs",
"types": "dist/packages/core/src/index.d.ts",
"files": [
"src",

View File

@ -1,3 +1,20 @@
export * from './callOrReturn'
export * from './createStyleTag'
export * from './deleteProps'
export * from './elementFromString'
export * from './escapeForRegEx'
export * from './findDuplicates'
export * from './fromString'
export * from './isEmptyObject'
export * from './isFunction'
export * from './isiOS'
export * from './isMacOS'
export * from './isNumber'
export * from './isPlainObject'
export * from './isRegExp'
export * from './isString'
export * from './mergeAttributes'
export * from './mergeDeep'
export * from './minMax'
export * from './objectIncludes'
export * from './removeDuplicates'

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-blockquote.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-blockquote/src/index.d.ts",
"import": "./dist/tiptap-extension-blockquote.mjs",
"require": "./dist/tiptap-extension-blockquote.cjs"
}
},
"main": "dist/tiptap-extension-blockquote.cjs",
"umd": "dist/tiptap-extension-blockquote.umd.js",
"module": "dist/tiptap-extension-blockquote.esm.js",
"module": "dist/tiptap-extension-blockquote.mjs",
"types": "dist/packages/extension-blockquote/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-bold.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-bold/src/index.d.ts",
"import": "./dist/tiptap-extension-bold.mjs",
"require": "./dist/tiptap-extension-bold.cjs"
}
},
"main": "dist/tiptap-extension-bold.cjs",
"umd": "dist/tiptap-extension-bold.umd.js",
"module": "dist/tiptap-extension-bold.esm.js",
"module": "dist/tiptap-extension-bold.mjs",
"types": "dist/packages/extension-bold/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-bubble-menu.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-bubble-menu/src/index.d.ts",
"import": "./dist/tiptap-extension-bubble-menu.mjs",
"require": "./dist/tiptap-extension-bubble-menu.cjs"
}
},
"main": "dist/tiptap-extension-bubble-menu.cjs",
"umd": "dist/tiptap-extension-bubble-menu.umd.js",
"module": "dist/tiptap-extension-bubble-menu.esm.js",
"module": "dist/tiptap-extension-bubble-menu.mjs",
"types": "dist/packages/extension-bubble-menu/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-bullet-list.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-bullet-list/src/index.d.ts",
"import": "./dist/tiptap-extension-bullet-list.mjs",
"require": "./dist/tiptap-extension-bullet-list.cjs"
}
},
"main": "dist/tiptap-extension-bullet-list.cjs",
"umd": "dist/tiptap-extension-bullet-list.umd.js",
"module": "dist/tiptap-extension-bullet-list.esm.js",
"module": "dist/tiptap-extension-bullet-list.mjs",
"types": "dist/packages/extension-bullet-list/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-character-count.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-character-count/src/index.d.ts",
"import": "./dist/tiptap-extension-character-count.mjs",
"require": "./dist/tiptap-extension-character-count.cjs"
}
},
"main": "dist/tiptap-extension-character-count.cjs",
"umd": "dist/tiptap-extension-character-count.umd.js",
"module": "dist/tiptap-extension-character-count.esm.js",
"module": "dist/tiptap-extension-character-count.mjs",
"types": "dist/packages/extension-character-count/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-code-block-lowlight.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-code-block-lowlight/src/index.d.ts",
"import": "./dist/tiptap-extension-code-block-lowlight.mjs",
"require": "./dist/tiptap-extension-code-block-lowlight.cjs"
}
},
"main": "dist/tiptap-extension-code-block-lowlight.cjs",
"umd": "dist/tiptap-extension-code-block-lowlight.umd.js",
"module": "dist/tiptap-extension-code-block-lowlight.esm.js",
"module": "dist/tiptap-extension-code-block-lowlight.mjs",
"types": "dist/packages/extension-code-block-lowlight/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-code-block.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-code-block/src/index.d.ts",
"import": "./dist/tiptap-extension-code-block.mjs",
"require": "./dist/tiptap-extension-code-block.cjs"
}
},
"main": "dist/tiptap-extension-code-block.cjs",
"umd": "dist/tiptap-extension-code-block.umd.js",
"module": "dist/tiptap-extension-code-block.esm.js",
"module": "dist/tiptap-extension-code-block.mjs",
"types": "dist/packages/extension-code-block/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-code.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-code/src/index.d.ts",
"import": "./dist/tiptap-extension-code.mjs",
"require": "./dist/tiptap-extension-code.cjs"
}
},
"main": "dist/tiptap-extension-code.cjs",
"umd": "dist/tiptap-extension-code.umd.js",
"module": "dist/tiptap-extension-code.esm.js",
"module": "dist/tiptap-extension-code.mjs",
"types": "dist/packages/extension-code/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-collaboration-cursor.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-collaboration-cursor/src/index.d.ts",
"import": "./dist/tiptap-extension-collaboration-cursor.mjs",
"require": "./dist/tiptap-extension-collaboration-cursor.cjs"
}
},
"main": "dist/tiptap-extension-collaboration-cursor.cjs",
"umd": "dist/tiptap-extension-collaboration-cursor.umd.js",
"module": "dist/tiptap-extension-collaboration-cursor.esm.js",
"module": "dist/tiptap-extension-collaboration-cursor.mjs",
"types": "dist/packages/extension-collaboration-cursor/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-collaboration.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-collaboration/src/index.d.ts",
"import": "./dist/tiptap-extension-collaboration.mjs",
"require": "./dist/tiptap-extension-collaboration.cjs"
}
},
"main": "dist/tiptap-extension-collaboration.cjs",
"umd": "dist/tiptap-extension-collaboration.umd.js",
"module": "dist/tiptap-extension-collaboration.esm.js",
"module": "dist/tiptap-extension-collaboration.mjs",
"types": "dist/packages/extension-collaboration/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-color.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-color/src/index.d.ts",
"import": "./dist/tiptap-extension-color.mjs",
"require": "./dist/tiptap-extension-color.cjs"
}
},
"main": "dist/tiptap-extension-color.cjs",
"umd": "dist/tiptap-extension-color.umd.js",
"module": "dist/tiptap-extension-color.esm.js",
"module": "dist/tiptap-extension-color.mjs",
"types": "dist/packages/extension-color/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-document.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-document/src/index.d.ts",
"import": "./dist/tiptap-extension-document.mjs",
"require": "./dist/tiptap-extension-document.cjs"
}
},
"main": "dist/tiptap-extension-document.cjs",
"umd": "dist/tiptap-extension-document.umd.js",
"module": "dist/tiptap-extension-document.esm.js",
"module": "dist/tiptap-extension-document.mjs",
"types": "dist/packages/extension-document/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-dropcursor.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-dropcursor/src/index.d.ts",
"import": "./dist/tiptap-extension-dropcursor.mjs",
"require": "./dist/tiptap-extension-dropcursor.cjs"
}
},
"main": "dist/tiptap-extension-dropcursor.cjs",
"umd": "dist/tiptap-extension-dropcursor.umd.js",
"module": "dist/tiptap-extension-dropcursor.esm.js",
"module": "dist/tiptap-extension-dropcursor.mjs",
"types": "dist/packages/extension-dropcursor/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-floating-menu.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-floating-menu/src/index.d.ts",
"import": "./dist/tiptap-extension-floating-menu.mjs",
"require": "./dist/tiptap-extension-floating-menu.cjs"
}
},
"main": "dist/tiptap-extension-floating-menu.cjs",
"umd": "dist/tiptap-extension-floating-menu.umd.js",
"module": "dist/tiptap-extension-floating-menu.esm.js",
"module": "dist/tiptap-extension-floating-menu.mjs",
"types": "dist/packages/extension-floating-menu/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-focus.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-focus/src/index.d.ts",
"import": "./dist/tiptap-extension-focus.mjs",
"require": "./dist/tiptap-extension-focus.cjs"
}
},
"main": "dist/tiptap-extension-focus.cjs",
"umd": "dist/tiptap-extension-focus.umd.js",
"module": "dist/tiptap-extension-focus.esm.js",
"module": "dist/tiptap-extension-focus.mjs",
"types": "dist/packages/extension-focus/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-font-family.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-font-family/src/index.d.ts",
"import": "./dist/tiptap-extension-font-family.mjs",
"require": "./dist/tiptap-extension-font-family.cjs"
}
},
"main": "dist/tiptap-extension-font-family.cjs",
"umd": "dist/tiptap-extension-font-family.umd.js",
"module": "dist/tiptap-extension-font-family.esm.js",
"module": "dist/tiptap-extension-font-family.mjs",
"types": "dist/packages/extension-font-family/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-gapcursor.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-gapcursor/src/index.d.ts",
"import": "./dist/tiptap-extension-gapcursor.mjs",
"require": "./dist/tiptap-extension-gapcursor.cjs"
}
},
"main": "dist/tiptap-extension-gapcursor.cjs",
"umd": "dist/tiptap-extension-gapcursor.umd.js",
"module": "dist/tiptap-extension-gapcursor.esm.js",
"module": "dist/tiptap-extension-gapcursor.mjs",
"types": "dist/packages/extension-gapcursor/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-hard-break.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-hard-break/src/index.d.ts",
"import": "./dist/tiptap-extension-hard-break.mjs",
"require": "./dist/tiptap-extension-hard-break.cjs"
}
},
"main": "dist/tiptap-extension-hard-break.cjs",
"umd": "dist/tiptap-extension-hard-break.umd.js",
"module": "dist/tiptap-extension-hard-break.esm.js",
"module": "dist/tiptap-extension-hard-break.mjs",
"types": "dist/packages/extension-hard-break/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-heading.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-heading/src/index.d.ts",
"import": "./dist/tiptap-extension-heading.mjs",
"require": "./dist/tiptap-extension-heading.cjs"
}
},
"main": "dist/tiptap-extension-heading.cjs",
"umd": "dist/tiptap-extension-heading.umd.js",
"module": "dist/tiptap-extension-heading.esm.js",
"module": "dist/tiptap-extension-heading.mjs",
"types": "dist/packages/extension-heading/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-highlight.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-highlight/src/index.d.ts",
"import": "./dist/tiptap-extension-highlight.mjs",
"require": "./dist/tiptap-extension-highlight.cjs"
}
},
"main": "dist/tiptap-extension-highlight.cjs",
"umd": "dist/tiptap-extension-highlight.umd.js",
"module": "dist/tiptap-extension-highlight.esm.js",
"module": "dist/tiptap-extension-highlight.mjs",
"types": "dist/packages/extension-highlight/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-history.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-history/src/index.d.ts",
"import": "./dist/tiptap-extension-history.mjs",
"require": "./dist/tiptap-extension-history.cjs"
}
},
"main": "dist/tiptap-extension-history.cjs",
"umd": "dist/tiptap-extension-history.umd.js",
"module": "dist/tiptap-extension-history.esm.js",
"module": "dist/tiptap-extension-history.mjs",
"types": "dist/packages/extension-history/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-horizontal-rule.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-horizontal-rule/src/index.d.ts",
"import": "./dist/tiptap-extension-horizontal-rule.mjs",
"require": "./dist/tiptap-extension-horizontal-rule.cjs"
}
},
"main": "dist/tiptap-extension-horizontal-rule.cjs",
"umd": "dist/tiptap-extension-horizontal-rule.umd.js",
"module": "dist/tiptap-extension-horizontal-rule.esm.js",
"module": "dist/tiptap-extension-horizontal-rule.mjs",
"types": "dist/packages/extension-horizontal-rule/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-image.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-image/src/index.d.ts",
"import": "./dist/tiptap-extension-image.mjs",
"require": "./dist/tiptap-extension-image.cjs"
}
},
"main": "dist/tiptap-extension-image.cjs",
"umd": "dist/tiptap-extension-image.umd.js",
"module": "dist/tiptap-extension-image.esm.js",
"module": "dist/tiptap-extension-image.mjs",
"types": "dist/packages/extension-image/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-italic.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-italic/src/index.d.ts",
"import": "./dist/tiptap-extension-italic.mjs",
"require": "./dist/tiptap-extension-italic.cjs"
}
},
"main": "dist/tiptap-extension-italic.cjs",
"umd": "dist/tiptap-extension-italic.umd.js",
"module": "dist/tiptap-extension-italic.esm.js",
"module": "dist/tiptap-extension-italic.mjs",
"types": "dist/packages/extension-italic/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-link.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-link/src/index.d.ts",
"import": "./dist/tiptap-extension-link.mjs",
"require": "./dist/tiptap-extension-link.cjs"
}
},
"main": "dist/tiptap-extension-link.cjs",
"umd": "dist/tiptap-extension-link.umd.js",
"module": "dist/tiptap-extension-link.esm.js",
"module": "dist/tiptap-extension-link.mjs",
"types": "dist/packages/extension-link/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-list-item.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-list-item/src/index.d.ts",
"import": "./dist/tiptap-extension-list-item.mjs",
"require": "./dist/tiptap-extension-list-item.cjs"
}
},
"main": "dist/tiptap-extension-list-item.cjs",
"umd": "dist/tiptap-extension-list-item.umd.js",
"module": "dist/tiptap-extension-list-item.esm.js",
"module": "dist/tiptap-extension-list-item.mjs",
"types": "dist/packages/extension-list-item/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-mention.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-mention/src/index.d.ts",
"import": "./dist/tiptap-extension-mention.mjs",
"require": "./dist/tiptap-extension-mention.cjs"
}
},
"main": "dist/tiptap-extension-mention.cjs",
"umd": "dist/tiptap-extension-mention.umd.js",
"module": "dist/tiptap-extension-mention.esm.js",
"module": "dist/tiptap-extension-mention.mjs",
"types": "dist/packages/extension-mention/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-ordered-list.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-ordered-list/src/index.d.ts",
"import": "./dist/tiptap-extension-ordered-list.mjs",
"require": "./dist/tiptap-extension-ordered-list.cjs"
}
},
"main": "dist/tiptap-extension-ordered-list.cjs",
"umd": "dist/tiptap-extension-ordered-list.umd.js",
"module": "dist/tiptap-extension-ordered-list.esm.js",
"module": "dist/tiptap-extension-ordered-list.mjs",
"types": "dist/packages/extension-ordered-list/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-paragraph.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-paragraph/src/index.d.ts",
"import": "./dist/tiptap-extension-paragraph.mjs",
"require": "./dist/tiptap-extension-paragraph.cjs"
}
},
"main": "dist/tiptap-extension-paragraph.cjs",
"umd": "dist/tiptap-extension-paragraph.umd.js",
"module": "dist/tiptap-extension-paragraph.esm.js",
"module": "dist/tiptap-extension-paragraph.mjs",
"types": "dist/packages/extension-paragraph/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-placeholder.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-placeholder/src/index.d.ts",
"import": "./dist/tiptap-extension-placeholder.mjs",
"require": "./dist/tiptap-extension-placeholder.cjs"
}
},
"main": "dist/tiptap-extension-placeholder.cjs",
"umd": "dist/tiptap-extension-placeholder.umd.js",
"module": "dist/tiptap-extension-placeholder.esm.js",
"module": "dist/tiptap-extension-placeholder.mjs",
"types": "dist/packages/extension-placeholder/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-strike.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-strike/src/index.d.ts",
"import": "./dist/tiptap-extension-strike.mjs",
"require": "./dist/tiptap-extension-strike.cjs"
}
},
"main": "dist/tiptap-extension-strike.cjs",
"umd": "dist/tiptap-extension-strike.umd.js",
"module": "dist/tiptap-extension-strike.esm.js",
"module": "dist/tiptap-extension-strike.mjs",
"types": "dist/packages/extension-strike/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-subscript.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-subscript/src/index.d.ts",
"import": "./dist/tiptap-extension-subscript.mjs",
"require": "./dist/tiptap-extension-subscript.cjs"
}
},
"main": "dist/tiptap-extension-subscript.cjs",
"umd": "dist/tiptap-extension-subscript.umd.js",
"module": "dist/tiptap-extension-subscript.esm.js",
"module": "dist/tiptap-extension-subscript.mjs",
"types": "dist/packages/extension-subscript/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-superscript.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-superscript/src/index.d.ts",
"import": "./dist/tiptap-extension-superscript.mjs",
"require": "./dist/tiptap-extension-superscript.cjs"
}
},
"main": "dist/tiptap-extension-superscript.cjs",
"umd": "dist/tiptap-extension-superscript.umd.js",
"module": "dist/tiptap-extension-superscript.esm.js",
"module": "dist/tiptap-extension-superscript.mjs",
"types": "dist/packages/extension-superscript/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-table-cell.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-table-cell/src/index.d.ts",
"import": "./dist/tiptap-extension-table-cell.mjs",
"require": "./dist/tiptap-extension-table-cell.cjs"
}
},
"main": "dist/tiptap-extension-table-cell.cjs",
"umd": "dist/tiptap-extension-table-cell.umd.js",
"module": "dist/tiptap-extension-table-cell.esm.js",
"module": "dist/tiptap-extension-table-cell.mjs",
"types": "dist/packages/extension-table-cell/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-table-header.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-table-header/src/index.d.ts",
"import": "./dist/tiptap-extension-table-header.mjs",
"require": "./dist/tiptap-extension-table-header.cjs"
}
},
"main": "dist/tiptap-extension-table-header.cjs",
"umd": "dist/tiptap-extension-table-header.umd.js",
"module": "dist/tiptap-extension-table-header.esm.js",
"module": "dist/tiptap-extension-table-header.mjs",
"types": "dist/packages/extension-table-header/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-table-row.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-table-row/src/index.d.ts",
"import": "./dist/tiptap-extension-table-row.mjs",
"require": "./dist/tiptap-extension-table-row.cjs"
}
},
"main": "dist/tiptap-extension-table-row.cjs",
"umd": "dist/tiptap-extension-table-row.umd.js",
"module": "dist/tiptap-extension-table-row.esm.js",
"module": "dist/tiptap-extension-table-row.mjs",
"types": "dist/packages/extension-table-row/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-table.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-table/src/index.d.ts",
"import": "./dist/tiptap-extension-table.mjs",
"require": "./dist/tiptap-extension-table.cjs"
}
},
"main": "dist/tiptap-extension-table.cjs",
"umd": "dist/tiptap-extension-table.umd.js",
"module": "dist/tiptap-extension-table.esm.js",
"module": "dist/tiptap-extension-table.mjs",
"types": "dist/packages/extension-table/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-task-item.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-task-item/src/index.d.ts",
"import": "./dist/tiptap-extension-task-item.mjs",
"require": "./dist/tiptap-extension-task-item.cjs"
}
},
"main": "dist/tiptap-extension-task-item.cjs",
"umd": "dist/tiptap-extension-task-item.umd.js",
"module": "dist/tiptap-extension-task-item.esm.js",
"module": "dist/tiptap-extension-task-item.mjs",
"types": "dist/packages/extension-task-item/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-task-list.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-task-list/src/index.d.ts",
"import": "./dist/tiptap-extension-task-list.mjs",
"require": "./dist/tiptap-extension-task-list.cjs"
}
},
"main": "dist/tiptap-extension-task-list.cjs",
"umd": "dist/tiptap-extension-task-list.umd.js",
"module": "dist/tiptap-extension-task-list.esm.js",
"module": "dist/tiptap-extension-task-list.mjs",
"types": "dist/packages/extension-task-list/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-text-align.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-text-align/src/index.d.ts",
"import": "./dist/tiptap-extension-text-align.mjs",
"require": "./dist/tiptap-extension-text-align.cjs"
}
},
"main": "dist/tiptap-extension-text-align.cjs",
"umd": "dist/tiptap-extension-text-align.umd.js",
"module": "dist/tiptap-extension-text-align.esm.js",
"module": "dist/tiptap-extension-text-align.mjs",
"types": "dist/packages/extension-text-align/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-text-style.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-text-style/src/index.d.ts",
"import": "./dist/tiptap-extension-text-style.mjs",
"require": "./dist/tiptap-extension-text-style.cjs"
}
},
"main": "dist/tiptap-extension-text-style.cjs",
"umd": "dist/tiptap-extension-text-style.umd.js",
"module": "dist/tiptap-extension-text-style.esm.js",
"module": "dist/tiptap-extension-text-style.mjs",
"types": "dist/packages/extension-text-style/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-text.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-text/src/index.d.ts",
"import": "./dist/tiptap-extension-text.mjs",
"require": "./dist/tiptap-extension-text.cjs"
}
},
"main": "dist/tiptap-extension-text.cjs",
"umd": "dist/tiptap-extension-text.umd.js",
"module": "dist/tiptap-extension-text.esm.js",
"module": "dist/tiptap-extension-text.mjs",
"types": "dist/packages/extension-text/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-typography.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-typography/src/index.d.ts",
"import": "./dist/tiptap-extension-typography.mjs",
"require": "./dist/tiptap-extension-typography.cjs"
}
},
"main": "dist/tiptap-extension-typography.cjs",
"umd": "dist/tiptap-extension-typography.umd.js",
"module": "dist/tiptap-extension-typography.esm.js",
"module": "dist/tiptap-extension-typography.mjs",
"types": "dist/packages/extension-typography/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-underline.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-underline/src/index.d.ts",
"import": "./dist/tiptap-extension-underline.mjs",
"require": "./dist/tiptap-extension-underline.cjs"
}
},
"main": "dist/tiptap-extension-underline.cjs",
"umd": "dist/tiptap-extension-underline.umd.js",
"module": "dist/tiptap-extension-underline.esm.js",
"module": "dist/tiptap-extension-underline.mjs",
"types": "dist/packages/extension-underline/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,17 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-extension-youtube.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/packages/extension-youtube/src/index.d.ts",
"import": "./dist/tiptap-extension-youtube.mjs",
"require": "./dist/tiptap-extension-youtube.cjs"
}
},
"main": "dist/tiptap-extension-youtube.cjs",
"umd": "dist/tiptap-extension-youtube.umd.js",
"module": "dist/tiptap-extension-youtube.esm.js",
"module": "dist/tiptap-extension-youtube.mjs",
"types": "dist/packages/extension-youtube/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-html.cjs.js",
"main": "dist/tiptap-html.cjs",
"umd": "dist/tiptap-html.umd.js",
"module": "dist/tiptap-html.esm.js",
"module": "dist/tiptap-html.mjs",
"types": "dist/packages/html/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-react.cjs.js",
"main": "dist/tiptap-react.cjs",
"umd": "dist/tiptap-react.umd.js",
"module": "dist/tiptap-react.esm.js",
"module": "dist/tiptap-react.mjs",
"types": "dist/packages/react/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-starter-kit.cjs.js",
"main": "dist/tiptap-starter-kit.cjs",
"umd": "dist/tiptap-starter-kit.umd.js",
"module": "dist/tiptap-starter-kit.esm.js",
"module": "dist/tiptap-starter-kit.mjs",
"types": "dist/packages/starter-kit/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-suggestion.cjs.js",
"main": "dist/tiptap-suggestion.cjs",
"umd": "dist/tiptap-suggestion.umd.js",
"module": "dist/tiptap-suggestion.esm.js",
"module": "dist/tiptap-suggestion.mjs",
"types": "dist/packages/suggestion/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-vue-2.cjs.js",
"main": "dist/tiptap-vue-2.cjs",
"umd": "dist/tiptap-vue-2.umd.js",
"module": "dist/tiptap-vue-2.esm.js",
"module": "dist/tiptap-vue-2.mjs",
"types": "dist/packages/vue-2/src/index.d.ts",
"files": [
"src",

View File

@ -12,9 +12,9 @@
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-vue-3.cjs.js",
"main": "dist/tiptap-vue-3.cjs",
"umd": "dist/tiptap-vue-3.umd.js",
"module": "dist/tiptap-vue-3.esm.js",
"module": "dist/tiptap-vue-3.mjs",
"types": "dist/packages/vue-3/src/index.d.ts",
"files": [
"src",

View File

@ -1,7 +1,6 @@
/// <reference types="cypress" />
import { Extension } from '@tiptap/core/src/Extension'
import { getExtensionField } from '@tiptap/core/src/helpers/getExtensionField'
import { Extension, getExtensionField } from '@tiptap/core'
describe('extend extensions', () => {
it('should define a config', () => {

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" />
import { Extension } from '@tiptap/core/src/Extension'
import { Extension } from '@tiptap/core'
describe('extension options', () => {
it('should set options', () => {

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" />
import { fromString } from '@tiptap/core/src/utilities/fromString'
import { fromString } from '@tiptap/core'
describe('fromString', () => {
it('should return a string', () => {

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" />
import { mergeAttributes } from '@tiptap/core/src/utilities/mergeAttributes'
import { mergeAttributes } from '@tiptap/core'
describe('mergeAttributes', () => {
it('should merge two objects', () => {

View File

@ -1,6 +1,6 @@
/// <reference types="cypress" />
import { mergeDeep } from '@tiptap/core/src/utilities/mergeDeep'
import { mergeDeep } from '@tiptap/core'
describe('mergeDeep', () => {
it('should merge', () => {