@atlaskit/adf-schema 33.2.0 → 33.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 33.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e545688: ED-20068: Updated ADF schema and PM schema for MBE
8
+
3
9
  ## 33.2.0
4
10
 
5
11
  ### Minor Changes
@@ -9,7 +9,7 @@ exports.doc = void 0;
9
9
  */
10
10
 
11
11
  var doc = {
12
- content: '(block|layoutSection)+',
12
+ content: '(block|layoutSection|blockRootOnly)+',
13
13
  marks: 'alignment breakout dataConsumer fragment indentation unsupportedMark unsupportedNodeAttribute'
14
14
  };
15
15
  exports.doc = doc;
@@ -18,7 +18,8 @@ var extensionFrame = {
18
18
  type: 'extensionFrame',
19
19
  content: '(panel | paragraph | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
20
20
  isolating: true,
21
- marks: 'alignment indentation dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
21
+ definingAsContext: false,
22
+ definingForContent: true,
22
23
  selectable: true,
23
24
  attrs: {},
24
25
  parseDOM: [{
@@ -48,10 +49,10 @@ exports.extensionFrame = extensionFrame;
48
49
  var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNodeSpec() {
49
50
  var nodeSpec = {
50
51
  inline: false,
51
- group: 'block',
52
- marks: 'dataConsumer fragment',
52
+ group: 'blockRootOnly',
53
53
  content: 'extensionFrame+',
54
- defining: true,
54
+ block: true,
55
+ definingAsContext: true,
55
56
  selectable: true,
56
57
  attrs: {
57
58
  extensionKey: {
@@ -60,6 +61,9 @@ var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNode
60
61
  extensionType: {
61
62
  default: ''
62
63
  },
64
+ maxFrames: {
65
+ default: 5
66
+ },
63
67
  parameters: {
64
68
  default: null
65
69
  },
@@ -3,6 +3,6 @@
3
3
  */
4
4
 
5
5
  export const doc = {
6
- content: '(block|layoutSection)+',
6
+ content: '(block|layoutSection|blockRootOnly)+',
7
7
  marks: 'alignment breakout dataConsumer fragment indentation unsupportedMark unsupportedNodeAttribute'
8
8
  };
@@ -13,7 +13,8 @@ export const extensionFrame = {
13
13
  type: 'extensionFrame',
14
14
  content: '(panel | paragraph | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
15
15
  isolating: true,
16
- marks: 'alignment indentation dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
16
+ definingAsContext: false,
17
+ definingForContent: true,
17
18
  selectable: true,
18
19
  attrs: {},
19
20
  parseDOM: [{
@@ -43,10 +44,10 @@ export const extensionFrame = {
43
44
  const createMultiBodiedExtensionNodeSpec = () => {
44
45
  const nodeSpec = {
45
46
  inline: false,
46
- group: 'block',
47
- marks: 'dataConsumer fragment',
47
+ group: 'blockRootOnly',
48
48
  content: 'extensionFrame+',
49
- defining: true,
49
+ block: true,
50
+ definingAsContext: true,
50
51
  selectable: true,
51
52
  attrs: {
52
53
  extensionKey: {
@@ -55,6 +56,9 @@ const createMultiBodiedExtensionNodeSpec = () => {
55
56
  extensionType: {
56
57
  default: ''
57
58
  },
59
+ maxFrames: {
60
+ default: 5
61
+ },
58
62
  parameters: {
59
63
  default: null
60
64
  },
@@ -3,6 +3,6 @@
3
3
  */
4
4
 
5
5
  export var doc = {
6
- content: '(block|layoutSection)+',
6
+ content: '(block|layoutSection|blockRootOnly)+',
7
7
  marks: 'alignment breakout dataConsumer fragment indentation unsupportedMark unsupportedNodeAttribute'
8
8
  };
@@ -13,7 +13,8 @@ export var extensionFrame = {
13
13
  type: 'extensionFrame',
14
14
  content: '(panel | paragraph | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
15
15
  isolating: true,
16
- marks: 'alignment indentation dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
16
+ definingAsContext: false,
17
+ definingForContent: true,
17
18
  selectable: true,
18
19
  attrs: {},
19
20
  parseDOM: [{
@@ -43,10 +44,10 @@ export var extensionFrame = {
43
44
  var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNodeSpec() {
44
45
  var nodeSpec = {
45
46
  inline: false,
46
- group: 'block',
47
- marks: 'dataConsumer fragment',
47
+ group: 'blockRootOnly',
48
48
  content: 'extensionFrame+',
49
- defining: true,
49
+ block: true,
50
+ definingAsContext: true,
50
51
  selectable: true,
51
52
  attrs: {
52
53
  extensionKey: {
@@ -55,6 +56,9 @@ var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNode
55
56
  extensionType: {
56
57
  default: ''
57
58
  },
59
+ maxFrames: {
60
+ default: 5
61
+ },
58
62
  parameters: {
59
63
  default: null
60
64
  },
@@ -2852,6 +2852,10 @@
2852
2852
  "attrs": {
2853
2853
  "type": "object",
2854
2854
  "properties": {
2855
+ "maxFrames": {
2856
+ "type": "number",
2857
+ "default": 5
2858
+ },
2855
2859
  "extensionKey": {
2856
2860
  "type": "string",
2857
2861
  "minLength": 1
@@ -2876,11 +2880,11 @@
2876
2880
  "minLength": 1
2877
2881
  }
2878
2882
  },
2883
+ "additionalProperties": false,
2879
2884
  "required": [
2880
2885
  "extensionKey",
2881
2886
  "extensionType"
2882
- ],
2883
- "additionalProperties": false
2887
+ ]
2884
2888
  },
2885
2889
  "marks": {
2886
2890
  "type": "array"
@@ -1,5 +1,5 @@
1
1
  import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
- import { ExtensionAttributes } from './types/extensions';
2
+ import { MultiBodiedExtensionAttributes } from './types/extensions';
3
3
  import { BodiedExtensionDefinition as BodiedExtension } from './bodied-extension';
4
4
  import { PanelDefinition as Panel } from './panel';
5
5
  import { ParagraphDefinition as Paragraph } from './paragraph';
@@ -40,7 +40,7 @@ export declare const extensionFrame: NodeSpec;
40
40
  */
41
41
  export interface MultiBodiedExtensionDefinition {
42
42
  type: 'multiBodiedExtension';
43
- attrs: ExtensionAttributes;
43
+ attrs: MultiBodiedExtensionAttributes;
44
44
  marks?: Array<any>;
45
45
  /**
46
46
  * @minLength 1
@@ -32,3 +32,9 @@ export interface InlineExtensionAttributes {
32
32
  */
33
33
  localId?: string;
34
34
  }
35
+ export interface MultiBodiedExtensionAttributes extends ExtensionAttributes {
36
+ /**
37
+ * @default 5
38
+ */
39
+ maxFrames?: number;
40
+ }
@@ -2852,6 +2852,10 @@
2852
2852
  "attrs": {
2853
2853
  "type": "object",
2854
2854
  "properties": {
2855
+ "maxFrames": {
2856
+ "type": "number",
2857
+ "default": 5
2858
+ },
2855
2859
  "extensionKey": {
2856
2860
  "type": "string",
2857
2861
  "minLength": 1
@@ -2876,11 +2880,11 @@
2876
2880
  "minLength": 1
2877
2881
  }
2878
2882
  },
2883
+ "additionalProperties": false,
2879
2884
  "required": [
2880
2885
  "extensionKey",
2881
2886
  "extensionType"
2882
- ],
2883
- "additionalProperties": false
2887
+ ]
2884
2888
  },
2885
2889
  "marks": {
2886
2890
  "type": "array"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "33.2.0",
3
+ "version": "33.2.1",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"