mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
wip: add some hierarchy tests
This commit is contained in:
parent
daa5dc0fb1
commit
c40ce34eec
@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Editor, EditorContent, VueNodeViewRenderer } from '@tiptap/vue-2'
|
import { Editor, EditorContent, VueNodeViewRenderer, Extension } from '@tiptap/vue-2'
|
||||||
import Document from '@tiptap/extension-document'
|
import Document from '@tiptap/extension-document'
|
||||||
import Paragraph from '@tiptap/extension-paragraph'
|
import Paragraph from '@tiptap/extension-paragraph'
|
||||||
import Text from '@tiptap/extension-text'
|
import Text from '@tiptap/extension-text'
|
||||||
@ -41,13 +41,48 @@ export default {
|
|||||||
Document,
|
Document,
|
||||||
Paragraph,
|
Paragraph,
|
||||||
Text,
|
Text,
|
||||||
CodeBlockLowlight
|
|
||||||
.extend({
|
Extension
|
||||||
addNodeView() {
|
.create({
|
||||||
return VueNodeViewRenderer(CodeBlockComponent)
|
defaultOptions: {
|
||||||
|
foo: 'foo0',
|
||||||
|
},
|
||||||
|
addProseMirrorPlugins() {
|
||||||
|
console.log(0, this.options)
|
||||||
|
return []
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.configure({ lowlight }),
|
.extend({
|
||||||
|
// defaultOptions: {
|
||||||
|
// foo: 'foo1',
|
||||||
|
// },
|
||||||
|
addProseMirrorPlugins() {
|
||||||
|
console.log(1, this.options)
|
||||||
|
// console.log(1, this.parentConfig.addProseMirrorPlugins)
|
||||||
|
return this.parentConfig.addProseMirrorPlugins?.() || []
|
||||||
|
// return []
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.extend({
|
||||||
|
// defaultOptions: {
|
||||||
|
// foo: 'foo2',
|
||||||
|
// },
|
||||||
|
})
|
||||||
|
// .extend({
|
||||||
|
// addProseMirrorPlugins() {
|
||||||
|
// console.log(2, this.parentConfig.addProseMirrorPlugins)
|
||||||
|
// // return this.parentConfig.addProseMirrorPlugins?.() || []
|
||||||
|
// return []
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
|
||||||
|
// CodeBlockLowlight
|
||||||
|
// .extend({
|
||||||
|
// addNodeView() {
|
||||||
|
// return VueNodeViewRenderer(CodeBlockComponent)
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
// // .configure({ lowlight }),
|
||||||
],
|
],
|
||||||
content: `
|
content: `
|
||||||
<p>
|
<p>
|
||||||
|
@ -26,10 +26,10 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@atomico/rollup-plugin-sizes": "^1.1.4",
|
"@atomico/rollup-plugin-sizes": "^1.1.4",
|
||||||
"@babel/core": "^7.13.14",
|
"@babel/core": "^7.13.15",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.0",
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.0",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
||||||
"@babel/preset-env": "^7.13.12",
|
"@babel/preset-env": "^7.13.15",
|
||||||
"@babel/preset-react": "^7.13.13",
|
"@babel/preset-react": "^7.13.13",
|
||||||
"@lerna/batch-packages": "^3.16.0",
|
"@lerna/batch-packages": "^3.16.0",
|
||||||
"@lerna/filter-packages": "^3.18.0",
|
"@lerna/filter-packages": "^3.18.0",
|
||||||
@ -54,7 +54,7 @@
|
|||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"rollup-plugin-typescript2": "^0.30.0",
|
"rollup-plugin-typescript2": "^0.30.0",
|
||||||
"rollup-plugin-vue": "5",
|
"rollup-plugin-vue": "5",
|
||||||
"typescript": "^4.2.2",
|
"typescript": "^4.2.4",
|
||||||
"vue": "^2.6.12"
|
"vue": "^2.6.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,7 +205,8 @@ export class Extension<Options = any> {
|
|||||||
defaultOptions: {},
|
defaultOptions: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
parentConfig: Partial<ExtensionConfig> = {}
|
// parentConfig: Partial<ExtensionConfig> = {}
|
||||||
|
parent: any
|
||||||
|
|
||||||
options!: Options
|
options!: Options
|
||||||
|
|
||||||
@ -234,13 +235,18 @@ export class Extension<Options = any> {
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
extend<ExtendedOptions = Options>(extendedConfig: Partial<ExtensionConfig<ExtendedOptions>>) {
|
extend<ExtendedOptions = Options>(extendedConfig: Partial<ExtensionConfig<ExtendedOptions>> = {}) {
|
||||||
const extension = new Extension<ExtendedOptions>({
|
const extension = new Extension<ExtendedOptions>({
|
||||||
...this.config,
|
// ...this.config,
|
||||||
...extendedConfig,
|
...extendedConfig,
|
||||||
} as ExtensionConfig<ExtendedOptions>)
|
} as ExtensionConfig<ExtendedOptions>)
|
||||||
|
|
||||||
extension.parentConfig = this.config
|
// extension.parentConfig = this.config
|
||||||
|
extension.parent = this
|
||||||
|
extension.options = {
|
||||||
|
...(this.config.defaultOptions ?? {}),
|
||||||
|
...(extendedConfig.defaultOptions ?? {}),
|
||||||
|
}
|
||||||
|
|
||||||
return extension
|
return extension
|
||||||
}
|
}
|
||||||
|
@ -146,12 +146,40 @@ export default class ExtensionManager {
|
|||||||
plugins.push(...pasteRulePlugins)
|
plugins.push(...pasteRulePlugins)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extension.config.addProseMirrorPlugins) {
|
// console.log('has pm', extension.config.addProseMirrorPlugins, extension)
|
||||||
const proseMirrorPlugins = extension.config.addProseMirrorPlugins.bind(context)()
|
|
||||||
|
|
||||||
plugins.push(...proseMirrorPlugins)
|
const getItem = (rootext: any, ext: any, field: string): any => {
|
||||||
|
const realctx = createExtensionContext(ext, {
|
||||||
|
options: rootext.options,
|
||||||
|
// options: getItem(ext, 'defaultOptions'),
|
||||||
|
editor: this.editor,
|
||||||
|
type: getSchemaTypeByName(ext.config.name, this.schema),
|
||||||
|
})
|
||||||
|
|
||||||
|
if (ext.config[field]) {
|
||||||
|
if (typeof ext.config[field] === 'function') {
|
||||||
|
return ext.config[field].bind(realctx)()
|
||||||
|
}
|
||||||
|
|
||||||
|
return ext.config[field]
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ext.parent) {
|
||||||
|
return getItem(rootext, ext.parent, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// console.log('get PM', getItem(extension, 'addProseMirrorPlugins', context))
|
||||||
|
const realPMP = getItem(extension, extension, 'addProseMirrorPlugins')
|
||||||
|
|
||||||
|
// if (extension.config.addProseMirrorPlugins) {
|
||||||
|
// const proseMirrorPlugins = extension.config.addProseMirrorPlugins.bind(context)()
|
||||||
|
|
||||||
|
// plugins.push(...proseMirrorPlugins)
|
||||||
|
// }
|
||||||
|
|
||||||
return plugins
|
return plugins
|
||||||
})
|
})
|
||||||
.flat()
|
.flat()
|
||||||
|
@ -299,7 +299,8 @@ export class Mark<Options = any> {
|
|||||||
defaultOptions: {},
|
defaultOptions: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
parentConfig: Partial<MarkConfig> = {}
|
// parentConfig: Partial<MarkConfig> = {}
|
||||||
|
parent: any
|
||||||
|
|
||||||
options!: Options
|
options!: Options
|
||||||
|
|
||||||
@ -334,7 +335,9 @@ export class Mark<Options = any> {
|
|||||||
...extendedConfig,
|
...extendedConfig,
|
||||||
} as MarkConfig<ExtendedOptions>)
|
} as MarkConfig<ExtendedOptions>)
|
||||||
|
|
||||||
extension.parentConfig = this.config
|
extension.parent = this
|
||||||
|
|
||||||
|
// extension.parentConfig = this.config
|
||||||
|
|
||||||
return extension
|
return extension
|
||||||
}
|
}
|
||||||
|
@ -373,7 +373,8 @@ export class Node<Options = any> {
|
|||||||
defaultOptions: {},
|
defaultOptions: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
parentConfig: Partial<NodeConfig> = {}
|
// parentConfig: Partial<NodeConfig> = {}
|
||||||
|
parent: any
|
||||||
|
|
||||||
options!: Options
|
options!: Options
|
||||||
|
|
||||||
@ -408,7 +409,8 @@ export class Node<Options = any> {
|
|||||||
...extendedConfig,
|
...extendedConfig,
|
||||||
} as NodeConfig<ExtendedOptions>)
|
} as NodeConfig<ExtendedOptions>)
|
||||||
|
|
||||||
extension.parentConfig = this.config
|
extension.parent = this
|
||||||
|
// extension.parentConfig = this.config
|
||||||
|
|
||||||
return extension
|
return extension
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,93 @@
|
|||||||
import { AnyExtension, AnyObject } from '../types'
|
import { AnyExtension, AnyObject } from '../types'
|
||||||
|
|
||||||
|
// export default function createExtensionContext<T>(
|
||||||
|
// extension: AnyExtension,
|
||||||
|
// data: T,
|
||||||
|
// ): T & { parentConfig: AnyObject } {
|
||||||
|
// const context: any = {
|
||||||
|
// ...data,
|
||||||
|
// // get parentConfig() {
|
||||||
|
// // return Object.fromEntries(Object.entries(extension.parentConfig).map(([key, value]) => {
|
||||||
|
// // if (typeof value !== 'function') {
|
||||||
|
// // return [key, value]
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// // console.log('call', key)
|
||||||
|
|
||||||
|
// // return [key, value.bind(context)]
|
||||||
|
// // }))
|
||||||
|
// // },
|
||||||
|
|
||||||
|
// parentConfig: Object.fromEntries(Object.entries(extension.parent.config).map(([key, value]) => {
|
||||||
|
// if (typeof value !== 'function') {
|
||||||
|
// return [key, value]
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // console.log('call', key)
|
||||||
|
|
||||||
|
// return [key, value.bind(data)]
|
||||||
|
// })),
|
||||||
|
|
||||||
|
// // get parentConfig() {
|
||||||
|
// // console.log('parent', extension.parent)
|
||||||
|
// // console.log('parent parent', extension.parent?.parent)
|
||||||
|
|
||||||
|
// // return Object.fromEntries(Object.entries(extension.parent.config).map(([key, value]) => {
|
||||||
|
// // if (typeof value !== 'function') {
|
||||||
|
// // return [key, value]
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// // // console.log('call', key)
|
||||||
|
|
||||||
|
// // return [key, value.bind(context)]
|
||||||
|
// // }))
|
||||||
|
// // },
|
||||||
|
|
||||||
|
// // parentConfig: null,
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return context
|
||||||
|
// }
|
||||||
|
|
||||||
|
// export default function createExtensionContext<T>(
|
||||||
|
// extension: AnyExtension,
|
||||||
|
// data: T,
|
||||||
|
// // @ts-ignore
|
||||||
|
// ): T & { parentConfig: AnyObject } {
|
||||||
|
// const context: any = data
|
||||||
|
|
||||||
|
// if (!extension.parent) {
|
||||||
|
// context.parentConfig = {}
|
||||||
|
|
||||||
|
// return context
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // const bla = {
|
||||||
|
// // ...(extension.parent.parent ? extension.parent.parent.config : {}),
|
||||||
|
// // ...extension.parent.config,
|
||||||
|
// // }
|
||||||
|
|
||||||
|
// context.parentConfig = Object.fromEntries(Object.entries(extension.parent.config).map(([key, value]) => {
|
||||||
|
// if (typeof value !== 'function') {
|
||||||
|
// return [key, value]
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // console.log('call', key)
|
||||||
|
|
||||||
|
// return [key, value.bind(createExtensionContext(extension.parent, data))]
|
||||||
|
// }))
|
||||||
|
|
||||||
|
// return context
|
||||||
|
// }
|
||||||
|
|
||||||
export default function createExtensionContext<T>(
|
export default function createExtensionContext<T>(
|
||||||
extension: AnyExtension,
|
extension: AnyExtension,
|
||||||
data: T,
|
data: T,
|
||||||
): T & { parentConfig: AnyObject } {
|
): T & { parentConfig: AnyObject } {
|
||||||
const context = {
|
const context: any = {
|
||||||
...data,
|
...data,
|
||||||
get parentConfig() {
|
get parentConfig() {
|
||||||
return Object.fromEntries(Object.entries(extension.parentConfig).map(([key, value]) => {
|
return Object.fromEntries(Object.entries(extension.parent.config).map(([key, value]) => {
|
||||||
if (typeof value !== 'function') {
|
if (typeof value !== 'function') {
|
||||||
return [key, value]
|
return [key, value]
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
|||||||
|
|
||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
return [
|
return [
|
||||||
...this.parentConfig.addProseMirrorPlugins?.() || [],
|
// ...this.parentConfig.addProseMirrorPlugins?.() || [],
|
||||||
LowlightPlugin({
|
LowlightPlugin({
|
||||||
name: 'codeBlock',
|
name: 'codeBlock',
|
||||||
lowlight: this.options.lowlight,
|
lowlight: this.options.lowlight,
|
||||||
|
192
yarn.lock
192
yarn.lock
@ -30,7 +30,12 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.12.tgz#a8a5ccac19c200f9dd49624cac6e19d7be1236a1"
|
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.12.tgz#a8a5ccac19c200f9dd49624cac6e19d7be1236a1"
|
||||||
integrity sha512-3eJJ841uKxeV8dcN/2yGEUy+RfgQspPEgQat85umsE1rotuquQ2AbIub4S6j7c50a2d+4myc+zSlnXeIHrOnhQ==
|
integrity sha512-3eJJ841uKxeV8dcN/2yGEUy+RfgQspPEgQat85umsE1rotuquQ2AbIub4S6j7c50a2d+4myc+zSlnXeIHrOnhQ==
|
||||||
|
|
||||||
"@babel/core@^7.0.0", "@babel/core@^7.11.0", "@babel/core@^7.13.14":
|
"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.15.tgz#7e8eea42d0b64fda2b375b22d06c605222e848f4"
|
||||||
|
integrity sha512-ltnibHKR1VnrU4ymHyQ/CXtNXI6yZC0oJThyW78Hft8XndANwi+9H+UIklBDraIjFEJzw8wmcM427oDd9KS5wA==
|
||||||
|
|
||||||
|
"@babel/core@^7.0.0", "@babel/core@^7.11.0":
|
||||||
version "7.13.14"
|
version "7.13.14"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.14.tgz#8e46ebbaca460a63497c797e574038ab04ae6d06"
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.14.tgz#8e46ebbaca460a63497c797e574038ab04ae6d06"
|
||||||
integrity sha512-wZso/vyF4ki0l0znlgM4inxbdrUvCb+cVz8grxDq+6C9k6qbqoIJteQOKicaKjCipU3ISV+XedCqpL2RJJVehA==
|
integrity sha512-wZso/vyF4ki0l0znlgM4inxbdrUvCb+cVz8grxDq+6C9k6qbqoIJteQOKicaKjCipU3ISV+XedCqpL2RJJVehA==
|
||||||
@ -51,6 +56,27 @@
|
|||||||
semver "^6.3.0"
|
semver "^6.3.0"
|
||||||
source-map "^0.5.0"
|
source-map "^0.5.0"
|
||||||
|
|
||||||
|
"@babel/core@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.15.tgz#a6d40917df027487b54312202a06812c4f7792d0"
|
||||||
|
integrity sha512-6GXmNYeNjS2Uz+uls5jalOemgIhnTMeaXo+yBUA72kC2uX/8VW6XyhVIo2L8/q0goKQA3EVKx0KOQpVKSeWadQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.12.13"
|
||||||
|
"@babel/generator" "^7.13.9"
|
||||||
|
"@babel/helper-compilation-targets" "^7.13.13"
|
||||||
|
"@babel/helper-module-transforms" "^7.13.14"
|
||||||
|
"@babel/helpers" "^7.13.10"
|
||||||
|
"@babel/parser" "^7.13.15"
|
||||||
|
"@babel/template" "^7.12.13"
|
||||||
|
"@babel/traverse" "^7.13.15"
|
||||||
|
"@babel/types" "^7.13.14"
|
||||||
|
convert-source-map "^1.7.0"
|
||||||
|
debug "^4.1.0"
|
||||||
|
gensync "^1.0.0-beta.2"
|
||||||
|
json5 "^2.1.2"
|
||||||
|
semver "^6.3.0"
|
||||||
|
source-map "^0.5.0"
|
||||||
|
|
||||||
"@babel/generator@^7.13.9":
|
"@babel/generator@^7.13.9":
|
||||||
version "7.13.9"
|
version "7.13.9"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.9.tgz#3a7aa96f9efb8e2be42d38d80e2ceb4c64d8de39"
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.9.tgz#3a7aa96f9efb8e2be42d38d80e2ceb4c64d8de39"
|
||||||
@ -118,6 +144,20 @@
|
|||||||
resolve "^1.14.2"
|
resolve "^1.14.2"
|
||||||
semver "^6.1.2"
|
semver "^6.1.2"
|
||||||
|
|
||||||
|
"@babel/helper-define-polyfill-provider@^0.2.0":
|
||||||
|
version "0.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.0.tgz#a640051772045fedaaecc6f0c6c69f02bdd34bf1"
|
||||||
|
integrity sha512-JT8tHuFjKBo8NnaUbblz7mIu1nnvUDiHVjXXkulZULyidvo/7P6TY7+YqpV37IfF+KUFxmlK04elKtGKXaiVgw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-compilation-targets" "^7.13.0"
|
||||||
|
"@babel/helper-module-imports" "^7.12.13"
|
||||||
|
"@babel/helper-plugin-utils" "^7.13.0"
|
||||||
|
"@babel/traverse" "^7.13.0"
|
||||||
|
debug "^4.1.1"
|
||||||
|
lodash.debounce "^4.0.8"
|
||||||
|
resolve "^1.14.2"
|
||||||
|
semver "^6.1.2"
|
||||||
|
|
||||||
"@babel/helper-explode-assignable-expression@^7.12.13":
|
"@babel/helper-explode-assignable-expression@^7.12.13":
|
||||||
version "7.13.0"
|
version "7.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.13.0.tgz#17b5c59ff473d9f956f40ef570cf3a76ca12657f"
|
resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.13.0.tgz#17b5c59ff473d9f956f40ef570cf3a76ca12657f"
|
||||||
@ -272,6 +312,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df"
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df"
|
||||||
integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw==
|
integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw==
|
||||||
|
|
||||||
|
"@babel/parser@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.15.tgz#8e66775fb523599acb6a289e12929fa5ab0954d8"
|
||||||
|
integrity sha512-b9COtcAlVEQljy/9fbcMHpG+UIW9ReF+gpaxDHTlZd0c6/UU9ng8zdySAW9sRTzpvcdCHn6bUcbuYUgGzLAWVQ==
|
||||||
|
|
||||||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.13.12":
|
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.13.12":
|
||||||
version "7.13.12"
|
version "7.13.12"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.13.12.tgz#a3484d84d0b549f3fc916b99ee4783f26fabad2a"
|
resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.13.12.tgz#a3484d84d0b549f3fc916b99ee4783f26fabad2a"
|
||||||
@ -281,6 +326,15 @@
|
|||||||
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
|
||||||
"@babel/plugin-proposal-optional-chaining" "^7.13.12"
|
"@babel/plugin-proposal-optional-chaining" "^7.13.12"
|
||||||
|
|
||||||
|
"@babel/plugin-proposal-async-generator-functions@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.15.tgz#80e549df273a3b3050431b148c892491df1bcc5b"
|
||||||
|
integrity sha512-VapibkWzFeoa6ubXy/NgV5U2U4MVnUlvnx6wo1XhlsaTrLYWE0UFpDQsVrmn22q5CzeloqJ8gEMHSKxuee6ZdA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-plugin-utils" "^7.13.0"
|
||||||
|
"@babel/helper-remap-async-to-generator" "^7.13.0"
|
||||||
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
||||||
|
|
||||||
"@babel/plugin-proposal-async-generator-functions@^7.13.8":
|
"@babel/plugin-proposal-async-generator-functions@^7.13.8":
|
||||||
version "7.13.8"
|
version "7.13.8"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.8.tgz#87aacb574b3bc4b5603f6fe41458d72a5a2ec4b1"
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.8.tgz#87aacb574b3bc4b5603f6fe41458d72a5a2ec4b1"
|
||||||
@ -720,6 +774,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
regenerator-transform "^0.14.2"
|
regenerator-transform "^0.14.2"
|
||||||
|
|
||||||
|
"@babel/plugin-transform-regenerator@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.13.15.tgz#e5eb28945bf8b6563e7f818945f966a8d2997f39"
|
||||||
|
integrity sha512-Bk9cOLSz8DiurcMETZ8E2YtIVJbFCPGW28DJWUakmyVWtQSm6Wsf0p4B4BfEr/eL2Nkhe/CICiUiMOCi1TPhuQ==
|
||||||
|
dependencies:
|
||||||
|
regenerator-transform "^0.14.2"
|
||||||
|
|
||||||
"@babel/plugin-transform-reserved-words@^7.12.13":
|
"@babel/plugin-transform-reserved-words@^7.12.13":
|
||||||
version "7.12.13"
|
version "7.12.13"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.13.tgz#7d9988d4f06e0fe697ea1d9803188aa18b472695"
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.13.tgz#7d9988d4f06e0fe697ea1d9803188aa18b472695"
|
||||||
@ -865,6 +926,81 @@
|
|||||||
core-js-compat "^3.9.0"
|
core-js-compat "^3.9.0"
|
||||||
semver "^6.3.0"
|
semver "^6.3.0"
|
||||||
|
|
||||||
|
"@babel/preset-env@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.13.15.tgz#c8a6eb584f96ecba183d3d414a83553a599f478f"
|
||||||
|
integrity sha512-D4JAPMXcxk69PKe81jRJ21/fP/uYdcTZ3hJDF5QX2HSI9bBxxYw/dumdR6dGumhjxlprHPE4XWoPaqzZUVy2MA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/compat-data" "^7.13.15"
|
||||||
|
"@babel/helper-compilation-targets" "^7.13.13"
|
||||||
|
"@babel/helper-plugin-utils" "^7.13.0"
|
||||||
|
"@babel/helper-validator-option" "^7.12.17"
|
||||||
|
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.13.12"
|
||||||
|
"@babel/plugin-proposal-async-generator-functions" "^7.13.15"
|
||||||
|
"@babel/plugin-proposal-class-properties" "^7.13.0"
|
||||||
|
"@babel/plugin-proposal-dynamic-import" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-export-namespace-from" "^7.12.13"
|
||||||
|
"@babel/plugin-proposal-json-strings" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-logical-assignment-operators" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-numeric-separator" "^7.12.13"
|
||||||
|
"@babel/plugin-proposal-object-rest-spread" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-optional-catch-binding" "^7.13.8"
|
||||||
|
"@babel/plugin-proposal-optional-chaining" "^7.13.12"
|
||||||
|
"@babel/plugin-proposal-private-methods" "^7.13.0"
|
||||||
|
"@babel/plugin-proposal-unicode-property-regex" "^7.12.13"
|
||||||
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
||||||
|
"@babel/plugin-syntax-class-properties" "^7.12.13"
|
||||||
|
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-json-strings" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
|
||||||
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
|
||||||
|
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
|
||||||
|
"@babel/plugin-syntax-top-level-await" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-arrow-functions" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-async-to-generator" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-block-scoped-functions" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-block-scoping" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-classes" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-computed-properties" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-destructuring" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-dotall-regex" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-duplicate-keys" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-exponentiation-operator" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-for-of" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-function-name" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-literals" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-member-expression-literals" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-modules-amd" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-modules-commonjs" "^7.13.8"
|
||||||
|
"@babel/plugin-transform-modules-systemjs" "^7.13.8"
|
||||||
|
"@babel/plugin-transform-modules-umd" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-named-capturing-groups-regex" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-new-target" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-object-super" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-parameters" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-property-literals" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-regenerator" "^7.13.15"
|
||||||
|
"@babel/plugin-transform-reserved-words" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-shorthand-properties" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-spread" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-sticky-regex" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-template-literals" "^7.13.0"
|
||||||
|
"@babel/plugin-transform-typeof-symbol" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-unicode-escapes" "^7.12.13"
|
||||||
|
"@babel/plugin-transform-unicode-regex" "^7.12.13"
|
||||||
|
"@babel/preset-modules" "^0.1.4"
|
||||||
|
"@babel/types" "^7.13.14"
|
||||||
|
babel-plugin-polyfill-corejs2 "^0.2.0"
|
||||||
|
babel-plugin-polyfill-corejs3 "^0.2.0"
|
||||||
|
babel-plugin-polyfill-regenerator "^0.2.0"
|
||||||
|
core-js-compat "^3.9.0"
|
||||||
|
semver "^6.3.0"
|
||||||
|
|
||||||
"@babel/preset-modules@^0.1.4":
|
"@babel/preset-modules@^0.1.4":
|
||||||
version "0.1.4"
|
version "0.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e"
|
resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e"
|
||||||
@ -918,6 +1054,20 @@
|
|||||||
debug "^4.1.0"
|
debug "^4.1.0"
|
||||||
globals "^11.1.0"
|
globals "^11.1.0"
|
||||||
|
|
||||||
|
"@babel/traverse@^7.13.15":
|
||||||
|
version "7.13.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.13.15.tgz#c38bf7679334ddd4028e8e1f7b3aa5019f0dada7"
|
||||||
|
integrity sha512-/mpZMNvj6bce59Qzl09fHEs8Bt8NnpEDQYleHUPZQ3wXUMvXi+HJPLars68oAbmp839fGoOkv2pSL2z9ajCIaQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.12.13"
|
||||||
|
"@babel/generator" "^7.13.9"
|
||||||
|
"@babel/helper-function-name" "^7.12.13"
|
||||||
|
"@babel/helper-split-export-declaration" "^7.12.13"
|
||||||
|
"@babel/parser" "^7.13.15"
|
||||||
|
"@babel/types" "^7.13.14"
|
||||||
|
debug "^4.1.0"
|
||||||
|
globals "^11.1.0"
|
||||||
|
|
||||||
"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.13", "@babel/types@^7.13.14", "@babel/types@^7.4.4":
|
"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.13", "@babel/types@^7.13.14", "@babel/types@^7.4.4":
|
||||||
version "7.13.14"
|
version "7.13.14"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.14.tgz#c35a4abb15c7cd45a2746d78ab328e362cbace0d"
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.14.tgz#c35a4abb15c7cd45a2746d78ab328e362cbace0d"
|
||||||
@ -3355,6 +3505,15 @@ babel-plugin-polyfill-corejs2@^0.1.4:
|
|||||||
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
||||||
semver "^6.1.1"
|
semver "^6.1.1"
|
||||||
|
|
||||||
|
babel-plugin-polyfill-corejs2@^0.2.0:
|
||||||
|
version "0.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.0.tgz#686775bf9a5aa757e10520903675e3889caeedc4"
|
||||||
|
integrity sha512-9bNwiR0dS881c5SHnzCmmGlMkJLl0OUZvxrxHo9w/iNoRuqaPjqlvBf4HrovXtQs/au5yKkpcdgfT1cC5PAZwg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/compat-data" "^7.13.11"
|
||||||
|
"@babel/helper-define-polyfill-provider" "^0.2.0"
|
||||||
|
semver "^6.1.1"
|
||||||
|
|
||||||
babel-plugin-polyfill-corejs3@^0.1.3:
|
babel-plugin-polyfill-corejs3@^0.1.3:
|
||||||
version "0.1.7"
|
version "0.1.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.7.tgz#80449d9d6f2274912e05d9e182b54816904befd0"
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.7.tgz#80449d9d6f2274912e05d9e182b54816904befd0"
|
||||||
@ -3363,6 +3522,14 @@ babel-plugin-polyfill-corejs3@^0.1.3:
|
|||||||
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
||||||
core-js-compat "^3.8.1"
|
core-js-compat "^3.8.1"
|
||||||
|
|
||||||
|
babel-plugin-polyfill-corejs3@^0.2.0:
|
||||||
|
version "0.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.0.tgz#f4b4bb7b19329827df36ff56f6e6d367026cb7a2"
|
||||||
|
integrity sha512-zZyi7p3BCUyzNxLx8KV61zTINkkV65zVkDAFNZmrTCRVhjo1jAS+YLvDJ9Jgd/w2tsAviCwFHReYfxO3Iql8Yg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-define-polyfill-provider" "^0.2.0"
|
||||||
|
core-js-compat "^3.9.1"
|
||||||
|
|
||||||
babel-plugin-polyfill-regenerator@^0.1.2:
|
babel-plugin-polyfill-regenerator@^0.1.2:
|
||||||
version "0.1.6"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.6.tgz#0fe06a026fe0faa628ccc8ba3302da0a6ce02f3f"
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.6.tgz#0fe06a026fe0faa628ccc8ba3302da0a6ce02f3f"
|
||||||
@ -3370,6 +3537,13 @@ babel-plugin-polyfill-regenerator@^0.1.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
"@babel/helper-define-polyfill-provider" "^0.1.5"
|
||||||
|
|
||||||
|
babel-plugin-polyfill-regenerator@^0.2.0:
|
||||||
|
version "0.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.0.tgz#853f5f5716f4691d98c84f8069c7636ea8da7ab8"
|
||||||
|
integrity sha512-J7vKbCuD2Xi/eEHxquHN14bXAW9CXtecwuLrOIDJtcZzTaPzV1VdEfoUf9AzcRBMolKUQKM9/GVojeh0hFiqMg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-define-polyfill-provider" "^0.2.0"
|
||||||
|
|
||||||
babel-runtime@^6.26.0:
|
babel-runtime@^6.26.0:
|
||||||
version "6.26.0"
|
version "6.26.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
|
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
|
||||||
@ -4669,6 +4843,14 @@ core-js-compat@^3.6.5, core-js-compat@^3.8.1, core-js-compat@^3.9.0:
|
|||||||
browserslist "^4.16.3"
|
browserslist "^4.16.3"
|
||||||
semver "7.0.0"
|
semver "7.0.0"
|
||||||
|
|
||||||
|
core-js-compat@^3.9.1:
|
||||||
|
version "3.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.10.1.tgz#62183a3a77ceeffcc420d907a3e6fc67d9b27f1c"
|
||||||
|
integrity sha512-ZHQTdTPkqvw2CeHiZC970NNJcnwzT6YIueDMASKt+p3WbZsLXOcoD392SkcWhkC0wBBHhlfhqGKKsNCQUozYtg==
|
||||||
|
dependencies:
|
||||||
|
browserslist "^4.16.3"
|
||||||
|
semver "7.0.0"
|
||||||
|
|
||||||
core-js@^2.4.0:
|
core-js@^2.4.0:
|
||||||
version "2.6.12"
|
version "2.6.12"
|
||||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
|
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
|
||||||
@ -14339,10 +14521,10 @@ typedarray@^0.0.6:
|
|||||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
||||||
|
|
||||||
typescript@^4.2.2:
|
typescript@^4.2.4:
|
||||||
version "4.2.3"
|
version "4.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
|
||||||
integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==
|
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
|
||||||
|
|
||||||
uglify-js@3.4.x:
|
uglify-js@3.4.x:
|
||||||
version "3.4.10"
|
version "3.4.10"
|
||||||
|
Loading…
Reference in New Issue
Block a user