diff --git a/package.json b/package.json index 66ef13621..3fbad8df7 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ ], "scripts": { "start": "yarn --cwd ./docs start", - "build": "rollup -c --scope @tiptap/html", + "build": "yarn clean:packages && rollup -c --scope @tiptap/extension-blockquote", + "build:single": "yarn clean:packages && rollup -c --scope @tiptap/extension-underline", "build:docs": "yarn --cwd ./docs build", "build:packages": "yarn clean:packages && lerna exec -- microbundle --compress", "clean:packages": "rm -rf ./packages/*/dist", @@ -22,6 +23,7 @@ "reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install" }, "devDependencies": { + "@atomico/rollup-plugin-sizes": "^1.1.4", "@babel/core": "^7.11.6", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", "@babel/plugin-proposal-optional-chaining": "^7.11.0", diff --git a/packages/core/package.json b/packages/core/package.json index d85943668..4ce3cfa14 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/core", "version": "2.0.0", "source": "index.ts", - "main": "dist/tiptap-core.js", - "umd:main": "dist/tiptap-core.umd.js", - "module": "dist/tiptap-core.mjs", - "unpkg": "dist/tiptap-core.js", - "jsdelivr": "dist/tiptap-core.js", + "main": "dist/tiptap-core.cjs.js", + "umd": "dist/tiptap-core.umd.js", + "module": "dist/tiptap-core.esm.js", + "unpkg": "dist/tiptap-core.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index eb192f403..852aaf221 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -267,6 +267,8 @@ export class Editor extends EventEmitter { }), }) + console.log({ plugins: this.extensionManager.plugins }) + // `editor.view` is not yet available at this time. // Therefore we will add all plugins and node views directly afterwards. const newState = this.state.reconfigure({ diff --git a/packages/core/src/extensions/focusEvents.ts b/packages/core/src/extensions/focusEvents.ts index 46cf848fc..ab58347e9 100644 --- a/packages/core/src/extensions/focusEvents.ts +++ b/packages/core/src/extensions/focusEvents.ts @@ -1,4 +1,4 @@ -import { Plugin } from 'prosemirror-state' +import { Plugin, PluginKey } from 'prosemirror-state' import { createExtension } from '../Extension' export const FocusEvents = createExtension({ @@ -7,6 +7,7 @@ export const FocusEvents = createExtension({ return [ new Plugin({ + key: new PluginKey('focusEvents'), props: { attributes: { tabindex: '0', diff --git a/packages/core/src/pasteRules/markPasteRule.ts b/packages/core/src/pasteRules/markPasteRule.ts index 0dc63d992..74bdbe98c 100644 --- a/packages/core/src/pasteRules/markPasteRule.ts +++ b/packages/core/src/pasteRules/markPasteRule.ts @@ -1,4 +1,4 @@ -import { Plugin } from 'prosemirror-state' +import { Plugin, PluginKey } from 'prosemirror-state' import { Slice, Fragment, MarkType } from 'prosemirror-model' export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) => any): Plugin { @@ -51,6 +51,7 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) } return new Plugin({ + key: new PluginKey('markPasteRule'), props: { transformPasted: slice => { return new Slice(handler(slice.content), slice.openStart, slice.openEnd) diff --git a/packages/extension-blockquote/package.json b/packages/extension-blockquote/package.json index 12654f78a..66ffb56cb 100644 --- a/packages/extension-blockquote/package.json +++ b/packages/extension-blockquote/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-blockquote", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-blockquote.js", - "umd:main": "dist/tiptap-extension-blockquote.umd.js", - "module": "dist/tiptap-extension-blockquote.mjs", - "unpkg": "dist/tiptap-extension-blockquote.js", - "jsdelivr": "dist/tiptap-extension-blockquote.js", + "main": "dist/tiptap-extension-blockquote.cjs.js", + "umd": "dist/tiptap-extension-blockquote.umd.js", + "module": "dist/tiptap-extension-blockquote.esm.js", + "unpkg": "dist/tiptap-extension-blockquote.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bold/package.json b/packages/extension-bold/package.json index 0c7fda4dc..83e7a7d8f 100644 --- a/packages/extension-bold/package.json +++ b/packages/extension-bold/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-bold", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-bold.js", - "umd:main": "dist/tiptap-extension-bold.umd.js", - "module": "dist/tiptap-extension-bold.mjs", - "unpkg": "dist/tiptap-extension-bold.js", - "jsdelivr": "dist/tiptap-extension-bold.js", + "main": "dist/tiptap-extension-bold.cjs.js", + "umd": "dist/tiptap-extension-bold.umd.js", + "module": "dist/tiptap-extension-bold.esm.js", + "unpkg": "dist/tiptap-extension-bold.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bullet-list/package.json b/packages/extension-bullet-list/package.json index 06306cd92..4d5f1ce7b 100644 --- a/packages/extension-bullet-list/package.json +++ b/packages/extension-bullet-list/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-bullet-list", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-bullet-list.js", - "umd:main": "dist/tiptap-extension-bullet-list.umd.js", - "module": "dist/tiptap-extension-bullet-list.mjs", - "unpkg": "dist/tiptap-extension-bullet-list.js", - "jsdelivr": "dist/tiptap-extension-bullet-list.js", + "main": "dist/tiptap-extension-bullet-list.cjs.js", + "umd": "dist/tiptap-extension-bullet-list.umd.js", + "module": "dist/tiptap-extension-bullet-list.esm.js", + "unpkg": "dist/tiptap-extension-bullet-list.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code-block/package.json b/packages/extension-code-block/package.json index a2ee3a26c..b514ab01d 100644 --- a/packages/extension-code-block/package.json +++ b/packages/extension-code-block/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-code-block", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-code-block.js", - "umd:main": "dist/tiptap-extension-code-block.umd.js", - "module": "dist/tiptap-extension-code-block.mjs", - "unpkg": "dist/tiptap-extension-code-block.js", - "jsdelivr": "dist/tiptap-extension-code-block.js", + "main": "dist/tiptap-extension-code-block.cjs.js", + "umd": "dist/tiptap-extension-code-block.umd.js", + "module": "dist/tiptap-extension-code-block.esm.js", + "unpkg": "dist/tiptap-extension-code-block.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code/package.json b/packages/extension-code/package.json index 8c6f023fe..0cd4c7aea 100644 --- a/packages/extension-code/package.json +++ b/packages/extension-code/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-code", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-code.js", - "umd:main": "dist/tiptap-extension-code.umd.js", - "module": "dist/tiptap-extension-code.mjs", - "unpkg": "dist/tiptap-extension-code.js", - "jsdelivr": "dist/tiptap-extension-code.js", + "main": "dist/tiptap-extension-code.cjs.js", + "umd": "dist/tiptap-extension-code.umd.js", + "module": "dist/tiptap-extension-code.esm.js", + "unpkg": "dist/tiptap-extension-code.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration-cursor/package.json b/packages/extension-collaboration-cursor/package.json index a4410c04a..d26cdc5cf 100644 --- a/packages/extension-collaboration-cursor/package.json +++ b/packages/extension-collaboration-cursor/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-collaboration-cursor", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-collaboration-cursor.js", - "umd:main": "dist/tiptap-extension-collaboration-cursor.umd.js", - "module": "dist/tiptap-extension-collaboration-cursor.mjs", - "unpkg": "dist/tiptap-extension-collaboration-cursor.js", - "jsdelivr": "dist/tiptap-extension-collaboration-cursor.js", + "main": "dist/tiptap-extension-collaboration-cursor.cjs.js", + "umd": "dist/tiptap-extension-collaboration-cursor.umd.js", + "module": "dist/tiptap-extension-collaboration-cursor.esm.js", + "unpkg": "dist/tiptap-extension-collaboration-cursor.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration/package.json b/packages/extension-collaboration/package.json index ebb475d06..f0d6ca325 100644 --- a/packages/extension-collaboration/package.json +++ b/packages/extension-collaboration/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-collaboration", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-collaboration.js", - "umd:main": "dist/tiptap-extension-collaboration.umd.js", - "module": "dist/tiptap-extension-collaboration.mjs", - "unpkg": "dist/tiptap-extension-collaboration.js", - "jsdelivr": "dist/tiptap-extension-collaboration.js", + "main": "dist/tiptap-extension-collaboration.cjs.js", + "umd": "dist/tiptap-extension-collaboration.umd.js", + "module": "dist/tiptap-extension-collaboration.esm.js", + "unpkg": "dist/tiptap-extension-collaboration.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-document/package.json b/packages/extension-document/package.json index 37a26ac4c..f0e4d2ad6 100644 --- a/packages/extension-document/package.json +++ b/packages/extension-document/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-document", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-document.js", - "umd:main": "dist/tiptap-extension-document.umd.js", - "module": "dist/tiptap-extension-document.mjs", - "unpkg": "dist/tiptap-extension-document.js", - "jsdelivr": "dist/tiptap-extension-document.js", + "main": "dist/tiptap-extension-document.cjs.js", + "umd": "dist/tiptap-extension-document.umd.js", + "module": "dist/tiptap-extension-document.esm.js", + "unpkg": "dist/tiptap-extension-document.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-dropcursor/package.json b/packages/extension-dropcursor/package.json index 28e10cda2..9181f223b 100644 --- a/packages/extension-dropcursor/package.json +++ b/packages/extension-dropcursor/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-dropcursor", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-dropcursor.js", - "umd:main": "dist/tiptap-extension-dropcursor.umd.js", - "module": "dist/tiptap-extension-dropcursor.mjs", - "unpkg": "dist/tiptap-extension-dropcursor.js", - "jsdelivr": "dist/tiptap-extension-dropcursor.js", + "main": "dist/tiptap-extension-dropcursor.cjs.js", + "umd": "dist/tiptap-extension-dropcursor.umd.js", + "module": "dist/tiptap-extension-dropcursor.esm.js", + "unpkg": "dist/tiptap-extension-dropcursor.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-focus/index.ts b/packages/extension-focus/index.ts index 770700181..a1a18329b 100644 --- a/packages/extension-focus/index.ts +++ b/packages/extension-focus/index.ts @@ -1,5 +1,5 @@ import { createExtension } from '@tiptap/core' -import { Plugin } from 'prosemirror-state' +import { Plugin, PluginKey } from 'prosemirror-state' import { DecorationSet, Decoration } from 'prosemirror-view' export interface FocusOptions { @@ -16,6 +16,7 @@ const FocusClasses = createExtension({ addProseMirrorPlugins() { return [ new Plugin({ + key: new PluginKey('focus'), props: { decorations: ({ doc, selection }) => { const { isEditable, isFocused } = this.editor diff --git a/packages/extension-focus/package.json b/packages/extension-focus/package.json index c89aee171..3747875d7 100644 --- a/packages/extension-focus/package.json +++ b/packages/extension-focus/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-focus", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-focus.js", - "umd:main": "dist/tiptap-extension-focus.umd.js", - "module": "dist/tiptap-extension-focus.mjs", - "unpkg": "dist/tiptap-extension-focus.js", - "jsdelivr": "dist/tiptap-extension-focus.js", + "main": "dist/tiptap-extension-focus.cjs.js", + "umd": "dist/tiptap-extension-focus.umd.js", + "module": "dist/tiptap-extension-focus.esm.js", + "unpkg": "dist/tiptap-extension-focus.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-font-family/package.json b/packages/extension-font-family/package.json index 15899816f..6a56dd13f 100644 --- a/packages/extension-font-family/package.json +++ b/packages/extension-font-family/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-font-family", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-font-family.js", - "umd:main": "dist/tiptap-extension-font-family.umd.js", - "module": "dist/tiptap-extension-font-family.mjs", - "unpkg": "dist/tiptap-extension-font-family.js", - "jsdelivr": "dist/tiptap-extension-font-family.js", + "main": "dist/tiptap-extension-font-family.cjs.js", + "umd": "dist/tiptap-extension-font-family.umd.js", + "module": "dist/tiptap-extension-font-family.esm.js", + "unpkg": "dist/tiptap-extension-font-family.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-gapcursor/package.json b/packages/extension-gapcursor/package.json index 7ea582056..3fcfcf6b8 100644 --- a/packages/extension-gapcursor/package.json +++ b/packages/extension-gapcursor/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-gapcursor", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-gapcursor.js", - "umd:main": "dist/tiptap-extension-gapcursor.umd.js", - "module": "dist/tiptap-extension-gapcursor.mjs", - "unpkg": "dist/tiptap-extension-gapcursor.js", - "jsdelivr": "dist/tiptap-extension-gapcursor.js", + "main": "dist/tiptap-extension-gapcursor.cjs.js", + "umd": "dist/tiptap-extension-gapcursor.umd.js", + "module": "dist/tiptap-extension-gapcursor.esm.js", + "unpkg": "dist/tiptap-extension-gapcursor.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-hard-break/package.json b/packages/extension-hard-break/package.json index 0976cc7ae..b2c6e210c 100644 --- a/packages/extension-hard-break/package.json +++ b/packages/extension-hard-break/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-hard-break", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-hard-break.js", - "umd:main": "dist/tiptap-extension-hard-break.umd.js", - "module": "dist/tiptap-extension-hard-break.mjs", - "unpkg": "dist/tiptap-extension-hard-break.js", - "jsdelivr": "dist/tiptap-extension-hard-break.js", + "main": "dist/tiptap-extension-hard-break.cjs.js", + "umd": "dist/tiptap-extension-hard-break.umd.js", + "module": "dist/tiptap-extension-hard-break.esm.js", + "unpkg": "dist/tiptap-extension-hard-break.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-heading/package.json b/packages/extension-heading/package.json index da2f1ad48..632a6c05c 100644 --- a/packages/extension-heading/package.json +++ b/packages/extension-heading/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-heading", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-heading.js", - "umd:main": "dist/tiptap-extension-heading.umd.js", - "module": "dist/tiptap-extension-heading.mjs", - "unpkg": "dist/tiptap-extension-heading.js", - "jsdelivr": "dist/tiptap-extension-heading.js", + "main": "dist/tiptap-extension-heading.cjs.js", + "umd": "dist/tiptap-extension-heading.umd.js", + "module": "dist/tiptap-extension-heading.esm.js", + "unpkg": "dist/tiptap-extension-heading.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-highlight/package.json b/packages/extension-highlight/package.json index ecfc44b06..0683ccbbf 100644 --- a/packages/extension-highlight/package.json +++ b/packages/extension-highlight/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-highlight", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-highlight.js", - "umd:main": "dist/tiptap-extension-highlight.umd.js", - "module": "dist/tiptap-extension-highlight.mjs", - "unpkg": "dist/tiptap-extension-highlight.js", - "jsdelivr": "dist/tiptap-extension-highlight.js", + "main": "dist/tiptap-extension-highlight.cjs.js", + "umd": "dist/tiptap-extension-highlight.umd.js", + "module": "dist/tiptap-extension-highlight.esm.js", + "unpkg": "dist/tiptap-extension-highlight.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-history/package.json b/packages/extension-history/package.json index 38e0714f5..fad9ea4ed 100644 --- a/packages/extension-history/package.json +++ b/packages/extension-history/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-history", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-history.js", - "umd:main": "dist/tiptap-extension-history.umd.js", - "module": "dist/tiptap-extension-history.mjs", - "unpkg": "dist/tiptap-extension-history.js", - "jsdelivr": "dist/tiptap-extension-history.js", + "main": "dist/tiptap-extension-history.cjs.js", + "umd": "dist/tiptap-extension-history.umd.js", + "module": "dist/tiptap-extension-history.esm.js", + "unpkg": "dist/tiptap-extension-history.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-horizontal-rule/package.json b/packages/extension-horizontal-rule/package.json index ac41c60fb..06b41562e 100644 --- a/packages/extension-horizontal-rule/package.json +++ b/packages/extension-horizontal-rule/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-horizontal-rule", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-horizontal-rule.js", - "umd:main": "dist/tiptap-extension-horizontal-rule.umd.js", - "module": "dist/tiptap-extension-horizontal-rule.mjs", - "unpkg": "dist/tiptap-extension-horizontal-rule.js", - "jsdelivr": "dist/tiptap-extension-horizontal-rule.js", + "main": "dist/tiptap-extension-horizontal-rule.cjs.js", + "umd": "dist/tiptap-extension-horizontal-rule.umd.js", + "module": "dist/tiptap-extension-horizontal-rule.esm.js", + "unpkg": "dist/tiptap-extension-horizontal-rule.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-image/package.json b/packages/extension-image/package.json index 5b017870d..fd7f25745 100644 --- a/packages/extension-image/package.json +++ b/packages/extension-image/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-image", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-image.js", - "umd:main": "dist/tiptap-extension-image.umd.js", - "module": "dist/tiptap-extension-image.mjs", - "unpkg": "dist/tiptap-extension-image.js", - "jsdelivr": "dist/tiptap-extension-image.js", + "main": "dist/tiptap-extension-image.cjs.js", + "umd": "dist/tiptap-extension-image.umd.js", + "module": "dist/tiptap-extension-image.esm.js", + "unpkg": "dist/tiptap-extension-image.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-italic/package.json b/packages/extension-italic/package.json index 0cf490003..3368a6d85 100644 --- a/packages/extension-italic/package.json +++ b/packages/extension-italic/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-italic", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-italic.js", - "umd:main": "dist/tiptap-extension-italic.umd.js", - "module": "dist/tiptap-extension-italic.mjs", - "unpkg": "dist/tiptap-extension-italic.js", - "jsdelivr": "dist/tiptap-extension-italic.js", + "main": "dist/tiptap-extension-italic.cjs.js", + "umd": "dist/tiptap-extension-italic.umd.js", + "module": "dist/tiptap-extension-italic.esm.js", + "unpkg": "dist/tiptap-extension-italic.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-link/package.json b/packages/extension-link/package.json index 05cfae733..a930d636b 100644 --- a/packages/extension-link/package.json +++ b/packages/extension-link/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-link", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-link.js", - "umd:main": "dist/tiptap-extension-link.umd.js", - "module": "dist/tiptap-extension-link.mjs", - "unpkg": "dist/tiptap-extension-link.js", - "jsdelivr": "dist/tiptap-extension-link.js", + "main": "dist/tiptap-extension-link.cjs.js", + "umd": "dist/tiptap-extension-link.umd.js", + "module": "dist/tiptap-extension-link.esm.js", + "unpkg": "dist/tiptap-extension-link.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-list-item/package.json b/packages/extension-list-item/package.json index cce27f43c..8843c5271 100644 --- a/packages/extension-list-item/package.json +++ b/packages/extension-list-item/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-list-item", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-list-item.js", - "umd:main": "dist/tiptap-extension-list-item.umd.js", - "module": "dist/tiptap-extension-list-item.mjs", - "unpkg": "dist/tiptap-extension-list-item.js", - "jsdelivr": "dist/tiptap-extension-list-item.js", + "main": "dist/tiptap-extension-list-item.cjs.js", + "umd": "dist/tiptap-extension-list-item.umd.js", + "module": "dist/tiptap-extension-list-item.esm.js", + "unpkg": "dist/tiptap-extension-list-item.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-ordered-list/package.json b/packages/extension-ordered-list/package.json index 31ebb7a8d..99b81bc01 100644 --- a/packages/extension-ordered-list/package.json +++ b/packages/extension-ordered-list/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-ordered-list", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-ordered-list.js", - "umd:main": "dist/tiptap-extension-ordered-list.umd.js", - "module": "dist/tiptap-extension-ordered-list.mjs", - "unpkg": "dist/tiptap-extension-ordered-list.js", - "jsdelivr": "dist/tiptap-extension-ordered-list.js", + "main": "dist/tiptap-extension-ordered-list.cjs.js", + "umd": "dist/tiptap-extension-ordered-list.umd.js", + "module": "dist/tiptap-extension-ordered-list.esm.js", + "unpkg": "dist/tiptap-extension-ordered-list.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-paragraph/package.json b/packages/extension-paragraph/package.json index ee0a6d8be..726bf64fc 100644 --- a/packages/extension-paragraph/package.json +++ b/packages/extension-paragraph/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-paragraph", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-paragraph.js", - "umd:main": "dist/tiptap-extension-paragraph.umd.js", - "module": "dist/tiptap-extension-paragraph.mjs", - "unpkg": "dist/tiptap-extension-paragraph.js", - "jsdelivr": "dist/tiptap-extension-paragraph.js", + "main": "dist/tiptap-extension-paragraph.cjs.js", + "umd": "dist/tiptap-extension-paragraph.umd.js", + "module": "dist/tiptap-extension-paragraph.esm.js", + "unpkg": "dist/tiptap-extension-paragraph.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-strike/package.json b/packages/extension-strike/package.json index c5a37e186..5ec401f5f 100644 --- a/packages/extension-strike/package.json +++ b/packages/extension-strike/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-strike", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-strike.js", - "umd:main": "dist/tiptap-extension-strike.umd.js", - "module": "dist/tiptap-extension-strike.mjs", - "unpkg": "dist/tiptap-extension-strike.js", - "jsdelivr": "dist/tiptap-extension-strike.js", + "main": "dist/tiptap-extension-strike.cjs.js", + "umd": "dist/tiptap-extension-strike.umd.js", + "module": "dist/tiptap-extension-strike.esm.js", + "unpkg": "dist/tiptap-extension-strike.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-item/package.json b/packages/extension-task-item/package.json index cb3e4b38b..60b017406 100644 --- a/packages/extension-task-item/package.json +++ b/packages/extension-task-item/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-task-item", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-task-item.js", - "umd:main": "dist/tiptap-extension-task-item.umd.js", - "module": "dist/tiptap-extension-task-item.mjs", - "unpkg": "dist/tiptap-extension-task-item.js", - "jsdelivr": "dist/tiptap-extension-task-item.js", + "main": "dist/tiptap-extension-task-item.cjs.js", + "umd": "dist/tiptap-extension-task-item.umd.js", + "module": "dist/tiptap-extension-task-item.esm.js", + "unpkg": "dist/tiptap-extension-task-item.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-list/package.json b/packages/extension-task-list/package.json index 50add09ad..111cb2642 100644 --- a/packages/extension-task-list/package.json +++ b/packages/extension-task-list/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-task-list", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-task-list.js", - "umd:main": "dist/tiptap-extension-task-list.umd.js", - "module": "dist/tiptap-extension-task-list.mjs", - "unpkg": "dist/tiptap-extension-task-list.js", - "jsdelivr": "dist/tiptap-extension-task-list.js", + "main": "dist/tiptap-extension-task-list.cjs.js", + "umd": "dist/tiptap-extension-task-list.umd.js", + "module": "dist/tiptap-extension-task-list.esm.js", + "unpkg": "dist/tiptap-extension-task-list.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-align/package.json b/packages/extension-text-align/package.json index 2914b5c4a..93c79b400 100644 --- a/packages/extension-text-align/package.json +++ b/packages/extension-text-align/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-text-align", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-text-align.js", - "umd:main": "dist/tiptap-extension-text-align.umd.js", - "module": "dist/tiptap-extension-text-align.mjs", - "unpkg": "dist/tiptap-extension-text-align.js", - "jsdelivr": "dist/tiptap-extension-text-align.js", + "main": "dist/tiptap-extension-text-align.cjs.js", + "umd": "dist/tiptap-extension-text-align.umd.js", + "module": "dist/tiptap-extension-text-align.esm.js", + "unpkg": "dist/tiptap-extension-text-align.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-style/package.json b/packages/extension-text-style/package.json index 4e4d5187f..0be6b3609 100644 --- a/packages/extension-text-style/package.json +++ b/packages/extension-text-style/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-text-style", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-text-style.js", - "umd:main": "dist/tiptap-extension-text-style.umd.js", - "module": "dist/tiptap-extension-text-style.mjs", - "unpkg": "dist/tiptap-extension-text-style.js", - "jsdelivr": "dist/tiptap-extension-text-style.js", + "main": "dist/tiptap-extension-text-style.cjs.js", + "umd": "dist/tiptap-extension-text-style.umd.js", + "module": "dist/tiptap-extension-text-style.esm.js", + "unpkg": "dist/tiptap-extension-text-style.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text/package.json b/packages/extension-text/package.json index 469eafb00..ad2bd0dd8 100644 --- a/packages/extension-text/package.json +++ b/packages/extension-text/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-text", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-text.js", - "umd:main": "dist/tiptap-extension-text.umd.js", - "module": "dist/tiptap-extension-text.mjs", - "unpkg": "dist/tiptap-extension-text.js", - "jsdelivr": "dist/tiptap-extension-text.js", + "main": "dist/tiptap-extension-text.cjs.js", + "umd": "dist/tiptap-extension-text.umd.js", + "module": "dist/tiptap-extension-text.esm.js", + "unpkg": "dist/tiptap-extension-text.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-typography/package.json b/packages/extension-typography/package.json index 7998d7f27..03f462854 100644 --- a/packages/extension-typography/package.json +++ b/packages/extension-typography/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-typography", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-typography.js", - "umd:main": "dist/tiptap-extension-typography.umd.js", - "module": "dist/tiptap-extension-typography.mjs", - "unpkg": "dist/tiptap-extension-typography.js", - "jsdelivr": "dist/tiptap-extension-typography.js", + "main": "dist/tiptap-extension-typography.cjs.js", + "umd": "dist/tiptap-extension-typography.umd.js", + "module": "dist/tiptap-extension-typography.esm.js", + "unpkg": "dist/tiptap-extension-typography.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-underline/package.json b/packages/extension-underline/package.json index a95d93077..f9bfb6cbc 100644 --- a/packages/extension-underline/package.json +++ b/packages/extension-underline/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/extension-underline", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-extension-underline.js", - "umd:main": "dist/tiptap-extension-underline.umd.js", - "module": "dist/tiptap-extension-underline.mjs", - "unpkg": "dist/tiptap-extension-underline.js", - "jsdelivr": "dist/tiptap-extension-underline.js", + "main": "dist/tiptap-extension-underline.cjs.js", + "umd": "dist/tiptap-extension-underline.umd.js", + "module": "dist/tiptap-extension-underline.esm.js", + "unpkg": "dist/tiptap-extension-underline.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/html/package.json b/packages/html/package.json index e8455d14d..6b259cb3c 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/html", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-html.js", - "umd:main": "dist/tiptap-html.umd.js", - "module": "dist/tiptap-html.mjs", - "unpkg": "dist/tiptap-html.js", - "jsdelivr": "dist/tiptap-html.js", + "main": "dist/tiptap-html.cjs.js", + "umd": "dist/tiptap-html.umd.js", + "module": "dist/tiptap-html.esm.js", + "unpkg": "dist/tiptap-html.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/starter-kit/package.json b/packages/starter-kit/package.json index 4c8501b86..c8685af2a 100644 --- a/packages/starter-kit/package.json +++ b/packages/starter-kit/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/starter-kit", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-starter-kit.js", - "umd:main": "dist/tiptap-starter-kit.umd.js", - "module": "dist/tiptap-starter-kit.mjs", - "unpkg": "dist/tiptap-starter-kit.js", - "jsdelivr": "dist/tiptap-starter-kit.js", + "main": "dist/tiptap-starter-kit.cjs.js", + "umd": "dist/tiptap-starter-kit.umd.js", + "module": "dist/tiptap-starter-kit.esm.js", + "unpkg": "dist/tiptap-starter-kit.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/vue-starter-kit/package.json b/packages/vue-starter-kit/package.json index 4ec5a9f71..33d285e6e 100644 --- a/packages/vue-starter-kit/package.json +++ b/packages/vue-starter-kit/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/vue-starter-kit", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-vue-starter-kit.js", - "umd:main": "dist/tiptap-vue-starter-kit.umd.js", - "module": "dist/tiptap-vue-starter-kit.mjs", - "unpkg": "dist/tiptap-vue-starter-kit.js", - "jsdelivr": "dist/tiptap-vue-starter-kit.js", + "main": "dist/tiptap-vue-starter-kit.cjs.js", + "umd": "dist/tiptap-vue-starter-kit.umd.js", + "module": "dist/tiptap-vue-starter-kit.esm.js", + "unpkg": "dist/tiptap-vue-starter-kit.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/vue/package.json b/packages/vue/package.json index 9b75481d3..d37a2f09a 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -2,11 +2,11 @@ "name": "@tiptap/vue", "version": "1.0.0", "source": "index.ts", - "main": "dist/tiptap-vue.js", - "umd:main": "dist/tiptap-vue.umd.js", - "module": "dist/tiptap-vue.mjs", - "unpkg": "dist/tiptap-vue.js", - "jsdelivr": "dist/tiptap-vue.js", + "main": "dist/tiptap-vue.cjs.js", + "umd": "dist/tiptap-vue.umd.js", + "module": "dist/tiptap-vue.esm.js", + "unpkg": "dist/tiptap-vue.bundle.umd.min.js", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/rollup.config.js b/rollup.config.js index 5cffa9fa3..0d6c5c502 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -8,16 +8,20 @@ import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import babel from '@rollup/plugin-babel' import { terser } from 'rollup-plugin-terser' +import sizes from '@atomico/rollup-plugin-sizes' async function getSortedPackages(scope, ignore) { const packages = await getPackages(__dirname) const filtered = filterPackages(packages, scope, ignore, false) - return batchPackages(filtered).reduce((arr, batch) => arr.concat(batch), []) + return batchPackages(filtered) + .filter(item => item.name !== '@tiptap/docs') + .reduce((arr, batch) => arr.concat(batch), []) } -async function main(commandLineArgs) { +async function build(commandLineArgs) { const config = [] + // Support --scope and --ignore globs if passed in via commandline const { scope, ignore } = minimist(process.argv.slice(2)) const packages = await getSortedPackages(scope, ignore) @@ -27,20 +31,53 @@ async function main(commandLineArgs) { delete commandLineArgs.ignore packages.forEach(pkg => { - /* Absolute path to package directory */ const basePath = path.relative(__dirname, pkg.location) - /* Absolute path to input file */ const input = path.join(basePath, 'index.ts') - /* "main" field from package.json file. */ - const { main } = pkg.toJSON() - /* Push build config for this package. */ + const { + name, + main, + umd, + module, + unpkg, + } = pkg.toJSON() + + const plugins = [ + resolve(), + commonjs(), + typescript({ + tsconfigOverride: { + compilerOptions: { + declaration: true, + }, + }, + }), + babel({ + babelHelpers: 'bundled', + }), + sizes(), + ] config.push({ input, output: [ { + name, + file: path.join(basePath, umd), + format: 'umd', + sourcemap: true, + }, + { + name, file: path.join(basePath, main), format: 'cjs', + sourcemap: true, + exports: 'auto', + }, + { + name, + file: path.join(basePath, module), + format: 'es', + sourcemap: true, }, ], external: [ @@ -48,19 +85,27 @@ async function main(commandLineArgs) { ...Object.keys(pkg.devDependencies || {}), ...Object.keys(pkg.peerDependencies || {}), ], - plugins: [ - resolve(), - commonjs(), - typescript(), - babel({ - babelHelpers: 'bundled', - }), - terser(), - ], + plugins, }) + + // config.push({ + // input, + // output: [ + // { + // name, + // file: path.join(basePath, unpkg), + // format: 'umd', + // sourcemap: true, + // }, + // ], + // plugins: [ + // ...plugins, + // terser(), + // ], + // }) }) return config } -export default main +export default build diff --git a/yarn.lock b/yarn.lock index 752a93957..61e98fe60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,15 @@ # yarn lockfile v1 +"@atomico/rollup-plugin-sizes@^1.1.4": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@atomico/rollup-plugin-sizes/-/rollup-plugin-sizes-1.1.4.tgz#e47447168008399b73d0e3cf5aa26c8cacdd1467" + integrity sha512-ilxLw9hT+kWXIx8mYoAFLA2eIVfLrsnabPCaGo5Mkrj8qxhEkZvFddcnH2HTp/hDKFEIJRpZVpXecsPp3FOdRw== + dependencies: + brotli-size "^4.0.0" + gzip-size "^5.1.1" + simple-string-table "^1.0.0" + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.5.5": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" @@ -2402,9 +2411,9 @@ integrity sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug== "@types/react@^16.8.12": - version "16.9.55" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.55.tgz#47078587f5bfe028a23b6b46c7b94ac0d436acff" - integrity sha512-6KLe6lkILeRwyyy7yG9rULKJ0sXplUsl98MGoCfpteXf9sPWFWWMknDcsvubcpaTdBuxtsLF6HDUwdApZL/xIg== + version "16.9.56" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.56.tgz#ea25847b53c5bec064933095fc366b1462e2adf0" + integrity sha512-gIkl4J44G/qxbuC6r2Xh+D3CGZpJ+NdWTItAPmZbR5mUS+JQ8Zvzpl0ea5qT/ZT3ZNTUcDKUVqV3xBE8wv/DyQ== dependencies: "@types/prop-types" "*" csstype "^3.0.2" @@ -3625,7 +3634,7 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" -browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.8.5: +browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.14.6: version "4.14.6" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.6.tgz#97702a9c212e0c6b6afefad913d3a1538e348457" integrity sha512-zeFYcUo85ENhc/zxHbiIp0LGzzTrE2Pv2JhxvS7kpUb9Q9D38kUX6Bie7pGutJ/5iF5rOxE7CepAuWD56xJ33A== @@ -4376,7 +4385,7 @@ configstore@^5.0.1: write-file-atomic "^3.0.0" xdg-basedir "^4.0.0" -confusing-browser-globals@^1.0.9: +confusing-browser-globals@^1.0.10: version "1.0.10" resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59" integrity sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA== @@ -4548,17 +4557,17 @@ copy-descriptor@^0.1.0: integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= core-js-compat@^3.6.2, core-js-compat@^3.6.5: - version "3.6.5" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c" - integrity sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng== + version "3.7.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.7.0.tgz#8479c5d3d672d83f1f5ab94cf353e57113e065ed" + integrity sha512-V8yBI3+ZLDVomoWICO6kq/CD28Y4r1M7CWeO4AGpMdMfseu8bkSubBmUPySMGKRTS+su4XQ07zUkAsiu9FCWTg== dependencies: - browserslist "^4.8.5" + browserslist "^4.14.6" semver "7.0.0" core-js@^3.6.4, core-js@^3.6.5: - version "3.6.5" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a" - integrity sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA== + version "3.7.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.7.0.tgz#b0a761a02488577afbf97179e4681bf49568520f" + integrity sha512-NwS7fI5M5B85EwpWuIwJN4i/fbisQUwLwiSNUWeXlkAZ0sbBjLEvLvFLf1uzAUV66PcEPt4xCGCmOZSxVf3xzA== core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -4764,7 +4773,7 @@ css-what@2.1: resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2" integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== -css-what@^3.2.1: +css-what@^3.2.1, css-what@^3.4.2: version "3.4.2" resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4" integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== @@ -5457,9 +5466,9 @@ ee-first@1.1.1: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.3.585: - version "1.3.589" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.589.tgz#bd26183ed8697dde6ac19acbc16a3bf33b1f8220" - integrity sha512-rQItBTFnol20HaaLm26UgSUduX7iGerwW7pEYX17MB1tI6LzFajiLV7iZ7LVcUcsN/7HrZUoCLrBauChy/IqEg== + version "1.3.591" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.591.tgz#a18892bf1acb93f7b6e4da402705d564bc235017" + integrity sha512-ol/0WzjL4NS4Kqy9VD6xXQON91xIihDT36sYCew/G/bnd1v0/4D+kahp26JauQhgFUjrdva3kRSo7URcUmQ+qw== elegant-spinner@^1.0.1: version "1.0.1" @@ -5677,12 +5686,12 @@ escape-string-regexp@^4.0.0: integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== eslint-config-airbnb-base@^14.2.0: - version "14.2.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.0.tgz#fe89c24b3f9dc8008c9c0d0d88c28f95ed65e9c4" - integrity sha512-Snswd5oC6nJaevs3nZoLSTvGJBvzTfnBqOIArkf3cbyTyq9UD79wOk8s+RiL6bhca0p/eRO6veczhf6A/7Jy8Q== + version "14.2.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz#8a2eb38455dc5a312550193b319cdaeef042cd1e" + integrity sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA== dependencies: - confusing-browser-globals "^1.0.9" - object.assign "^4.1.0" + confusing-browser-globals "^1.0.10" + object.assign "^4.1.2" object.entries "^1.1.2" eslint-import-resolver-node@^0.3.4: @@ -5778,9 +5787,9 @@ eslint-visitor-keys@^2.0.0: integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== eslint@^7.12.1: - version "7.12.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.12.1.tgz#bd9a81fa67a6cfd51656cdb88812ce49ccec5801" - integrity sha512-HlMTEdr/LicJfN08LB3nM1rRYliDXOmfoO4vj39xN6BLpFzF00hbwBoqHk8UcJ2M/3nlARZWy/mslvGEuZFvsg== + version "7.13.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.13.0.tgz#7f180126c0dcdef327bfb54b211d7802decc08da" + integrity sha512-uCORMuOO8tUzJmsdRtrvcGq5qposf7Rw0LwkTJkoDbOycVQtQjmnhZSuLQnozLE4TmAzlMVV45eCHmQ1OpDKUQ== dependencies: "@babel/code-frame" "^7.0.0" "@eslint/eslintrc" "^0.2.1" @@ -7368,6 +7377,14 @@ hosted-git-info@^3.0.6: dependencies: lru-cache "^6.0.0" +hostic-dom@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/hostic-dom/-/hostic-dom-0.8.5.tgz#500de796842454a745ce160d9cb0483c82643e28" + integrity sha512-0H5DTaE2/u3pSM5bPf7CaS9SunFASc0zlmw1R6hk0i6ozalRl0ePnAhm4YUYRG6pDbg0BYqCbjgwuFWOc3SskA== + dependencies: + css-what "^3.4.2" + he "^1.2.0" + hsl-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/hsl-regex/-/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e" @@ -9771,9 +9788,9 @@ node-libs-browser@^2.2.1: vm-browserify "^1.0.1" node-releases@^1.1.65: - version "1.1.65" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.65.tgz#52d9579176bd60f23eba05c4438583f341944b81" - integrity sha512-YpzJOe2WFIW0V4ZkJQd/DGR/zdVwc/pI4Nl1CZrBO19FdRcSTmsuhdttw9rsTzzJLrNcSloLiBbEYx1C4f6gpA== + version "1.1.66" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.66.tgz#609bd0dc069381015cd982300bae51ab4f1b1814" + integrity sha512-JHEQ1iWPGK+38VLB2H9ef2otU4l8s3yAMt9Xf934r6+ojCYDMHPMqvCc9TnzfeFSP1QEOeU6YZEd3+De0LTCgg== node-sass@^5.0.0: version "5.0.0" @@ -10017,7 +10034,7 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.1.0, object.assign@^4.1.1: +object.assign@^4.1.0, object.assign@^4.1.1, object.assign@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== @@ -12636,6 +12653,11 @@ simple-peer@^9.7.2: randombytes "^2.1.0" readable-stream "^3.6.0" +simple-string-table@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-string-table/-/simple-string-table-1.0.0.tgz#301ce3175260240e7db7f4b734b0a8125b98997e" + integrity sha512-iflPccjsYtTN+Rqj35v/G+i9A04g2HgOPkPp/B5evznUD4VZ4egi/qcFwrUHgGZwJMZz+Aq5elow4Qqsodfflw== + simple-swizzle@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" @@ -13325,14 +13347,14 @@ tapable@^1.0.0, tapable@^1.1.3: integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== tar-fs@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.0.tgz#d1cdd121ab465ee0eb9ccde2d35049d3f3daf0d5" - integrity sha512-9uW5iDvrIMCVpvasdFHW0wJPez0K4JnMZtsuIeDI7HyMGJNxmDZDOCQROr7lXyS+iL/QMpj07qcjGYTSdRFXUg== + version "2.1.1" + resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.1.tgz#489a15ab85f1f0befabb370b7de4f9eb5cbe8784" + integrity sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng== dependencies: chownr "^1.1.1" mkdirp-classic "^0.5.2" pump "^3.0.0" - tar-stream "^2.0.0" + tar-stream "^2.1.4" tar-stream@^1.5.2: version "1.6.2" @@ -13347,7 +13369,7 @@ tar-stream@^1.5.2: to-buffer "^1.1.1" xtend "^4.0.0" -tar-stream@^2.0.0: +tar-stream@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.1.4.tgz#c4fb1a11eb0da29b893a5b25476397ba2d053bfa" integrity sha512-o3pS2zlG4gxr67GmFYBLlq+dM8gyRGUOvsrHclSkvtVtQbjV0s/+ZE8OpICbaj8clrX3tjeHngYGP7rweaBnuw== @@ -13679,9 +13701,9 @@ trough@^1.0.0: glob "^7.1.2" ts-loader@^8.0.7: - version "8.0.9" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.9.tgz#890fc25f49a99124268f4e738ed22d00f666dc37" - integrity sha512-rQd+iIfz5z4HSVzhhRFP4M2OQ0QmihilWWauYvvowBfnRvr4DW+gqA2om70xp/07EQj1qBkLMWobnXsgmWMbmg== + version "8.0.10" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.10.tgz#4af4afb8d26847290cd010df93a4c172df92278f" + integrity sha512-5fVbbZldz6LQi6RQ0v1P7lZ98CZGlQyM8b4xGZXw3G/XUqL8GIH+Ib6H01nImPhkHZ9+PVXZgTb+v3fRsaIHlg== dependencies: chalk "^2.3.0" enhanced-resolve "^4.0.0" @@ -14403,9 +14425,9 @@ vue-prism-editor@^1.2.2: integrity sha512-Lq2VgVygTx3Whn/tC8gD4m1ajA4lzSyCTqPLZA1Dq/ErbBaZA93FWRblwCoDR7AD2nXhGWuiTzb5ih3guzB7DA== vue-router@^3.1.3: - version "3.4.8" - resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.4.8.tgz#2c06261d35d8075893470352d42d70b6287b8194" - integrity sha512-3BsR84AqarcmweXjItxw3jwQsiYNssYg090yi4rlzTnCJxmHtkyCvhNz9Z7qRSOkmiV485KkUCReTp5AjNY4wg== + version "3.4.9" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.4.9.tgz#c016f42030ae2932f14e4748b39a1d9a0e250e66" + integrity sha512-CGAKWN44RqXW06oC+u4mPgHLQQi2t6vLD/JbGRDAXm0YpMv0bgpKuU5bBd7AvMgfTz9kXVRIWKHqRwGEb8xFkA== vue-server-renderer@^2.6.10: version "2.6.12"