@remirror/extension-doc
Advanced tools
Comparing version 1.0.0-next.12 to 1.0.0-next.13
# @remirror/extension-doc | ||
## 1.0.0-next.13 | ||
> 2020-07-29 | ||
### Patch Changes | ||
- 38941404: Switch from static properties to using the `@extensionDecorator` and `@presetDecorator` | ||
instead. | ||
- Updated dependencies [d877adb3] | ||
- Updated dependencies [cc5c1c1c] | ||
- Updated dependencies [e45706e5] | ||
- Updated dependencies [f3155b5f] | ||
- Updated dependencies [4571a447] | ||
- Updated dependencies [92342ab0] | ||
- @remirror/core@1.0.0-next.13 | ||
## 1.0.0-next.12 | ||
@@ -4,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ApplySchemaAttributes, DefaultExtensionOptions, ExtensionPriority, NodeExtension, Static } from '@remirror/core'; | ||
import { ApplySchemaAttributes, NodeExtension, Static } from '@remirror/core'; | ||
export interface DocOptions { | ||
@@ -48,5 +48,2 @@ /** | ||
export declare class DocExtension extends NodeExtension<DocOptions> { | ||
static readonly defaultOptions: DefaultExtensionOptions<DocOptions>; | ||
static readonly defaultPriority = ExtensionPriority.Medium; | ||
static readonly disableExtraAttributes = true; | ||
get name(): "doc"; | ||
@@ -53,0 +50,0 @@ createNodeSpec(_: ApplySchemaAttributes): { |
@@ -5,18 +5,13 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var core = require('@remirror/core'); | ||
/** | ||
* This is the default parent node. It is required in the Prosemirror Schema and | ||
* a representation of the `doc` is required as the top level node in all | ||
* editors. | ||
* | ||
* Extra attributes are disallowed for the doc extension. | ||
* | ||
* @required | ||
* @core | ||
*/ | ||
class DocExtension extends core.NodeExtension { | ||
var _dec, _class; | ||
var DocExtension = (_dec = /*#__PURE__*/core.extensionDecorator({ | ||
defaultOptions: { | ||
content: 'block+' | ||
}, | ||
defaultPriority: core.ExtensionPriority.Medium, | ||
staticKeys: ['content'], | ||
disableExtraAttributes: true | ||
}), /*#__PURE__*/_dec(_class = class DocExtension extends core.NodeExtension { | ||
get name() { | ||
@@ -32,12 +27,4 @@ return 'doc'; | ||
} | ||
}) || _class); | ||
_defineProperty(DocExtension, "defaultOptions", { | ||
content: 'block+' | ||
}); | ||
_defineProperty(DocExtension, "defaultPriority", core.ExtensionPriority.Medium); | ||
_defineProperty(DocExtension, "disableExtraAttributes", true); | ||
exports.DocExtension = DocExtension; |
"use strict"; | ||
function _interopDefault(ex) { | ||
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -11,5 +7,10 @@ value: !0 | ||
var _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), core = require("@remirror/core"); | ||
class DocExtension extends core.NodeExtension { | ||
var _dec, _class, core = require("@remirror/core"), DocExtension = (_dec = core.extensionDecorator({ | ||
defaultOptions: { | ||
content: "block+" | ||
}, | ||
defaultPriority: core.ExtensionPriority.Medium, | ||
staticKeys: [ "content" ], | ||
disableExtraAttributes: !0 | ||
}))(_class = class extends core.NodeExtension { | ||
get name() { | ||
@@ -23,7 +24,4 @@ return "doc"; | ||
} | ||
} | ||
}) || _class; | ||
_defineProperty(DocExtension, "defaultOptions", { | ||
content: "block+" | ||
}), _defineProperty(DocExtension, "defaultPriority", core.ExtensionPriority.Medium), | ||
_defineProperty(DocExtension, "disableExtraAttributes", !0), exports.DocExtension = DocExtension; | ||
exports.DocExtension = DocExtension; |
@@ -1,15 +0,12 @@ | ||
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; | ||
import { NodeExtension, ExtensionPriority } from '@remirror/core'; | ||
import { extensionDecorator, ExtensionPriority, NodeExtension } from '@remirror/core'; | ||
/** | ||
* This is the default parent node. It is required in the Prosemirror Schema and | ||
* a representation of the `doc` is required as the top level node in all | ||
* editors. | ||
* | ||
* Extra attributes are disallowed for the doc extension. | ||
* | ||
* @required | ||
* @core | ||
*/ | ||
class DocExtension extends NodeExtension { | ||
var _dec, _class; | ||
var DocExtension = (_dec = /*#__PURE__*/extensionDecorator({ | ||
defaultOptions: { | ||
content: 'block+' | ||
}, | ||
defaultPriority: ExtensionPriority.Medium, | ||
staticKeys: ['content'], | ||
disableExtraAttributes: true | ||
}), /*#__PURE__*/_dec(_class = class DocExtension extends NodeExtension { | ||
get name() { | ||
@@ -25,12 +22,4 @@ return 'doc'; | ||
} | ||
}) || _class); | ||
_defineProperty(DocExtension, "defaultOptions", { | ||
content: 'block+' | ||
}); | ||
_defineProperty(DocExtension, "defaultPriority", ExtensionPriority.Medium); | ||
_defineProperty(DocExtension, "disableExtraAttributes", true); | ||
export { DocExtension }; |
{ | ||
"name": "@remirror/extension-doc", | ||
"version": "1.0.0-next.12", | ||
"version": "1.0.0-next.13", | ||
"description": "The root of your text-editor. One doc to rule them all.", | ||
@@ -29,7 +29,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"@remirror/core": "1.0.0-next.12", | ||
"@remirror/core": "1.0.0-next.13", | ||
"@remirror/pm": "1.0.0-next.4" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/core": "^1.0.0-next.12", | ||
"@remirror/core": "^1.0.0-next.13", | ||
"@remirror/pm": "^1.0.0-next.4" | ||
@@ -36,0 +36,0 @@ }, |
10092
124