@atlaskit/adf-schema 19.3.1 → 19.3.2

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.
@@ -9,8 +9,6 @@ var _panel = require("./nodes/panel");
9
9
 
10
10
  var _layoutSection = require("./nodes/layout-section");
11
11
 
12
- var _dataConsumer = require("./marks/data-consumer");
13
-
14
12
  var _createSchema = require("./create-schema");
15
13
 
16
14
  var _nodes = require("./nodes");
@@ -18,8 +16,8 @@ var _nodes = require("./nodes");
18
16
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
19
17
  var defaultSchemaConfig = {
20
18
  nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
21
- marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery' // https://product-fabric.atlassian.net/browse/ED-10214,
22
- ]
19
+ marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery', // https://product-fabric.atlassian.net/browse/ED-10214,
20
+ 'dataConsumer']
23
21
  };
24
22
  return defaultSchemaConfig;
25
23
  };
@@ -37,9 +35,7 @@ var getSchemaBasedOnStage = function getSchemaBasedOnStage() {
37
35
  mediaSingle: _nodes.mediaSingleWithCaption,
38
36
  layoutSection: _layoutSection.layoutSectionWithSingleColumn
39
37
  };
40
- defaultSchemaConfig.customMarkSpecs = {
41
- dataConsumer: _dataConsumer.dataConsumer
42
- };
38
+ defaultSchemaConfig.customMarkSpecs = {};
43
39
  defaultSchemaConfig.nodes.push('caption');
44
40
  defaultSchemaConfig.nodes.push('mediaInline');
45
41
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "19.3.1",
3
+ "version": "19.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,14 +1,13 @@
1
1
  import { customPanel } from './nodes/panel';
2
2
  import { layoutSectionWithSingleColumn } from './nodes/layout-section';
3
- import { dataConsumer } from './marks/data-consumer';
4
3
  import { allowCustomPanel, createSchema } from './create-schema';
5
4
  import { mediaSingleWithCaption } from './nodes';
6
5
 
7
6
  const getDefaultSchemaConfig = () => {
8
7
  let defaultSchemaConfig = {
9
8
  nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
10
- marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery' // https://product-fabric.atlassian.net/browse/ED-10214,
11
- ]
9
+ marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery', // https://product-fabric.atlassian.net/browse/ED-10214,
10
+ 'dataConsumer']
12
11
  };
13
12
  return defaultSchemaConfig;
14
13
  };
@@ -23,9 +22,7 @@ export const getSchemaBasedOnStage = (stage = 'final') => {
23
22
  mediaSingle: mediaSingleWithCaption,
24
23
  layoutSection: layoutSectionWithSingleColumn
25
24
  };
26
- defaultSchemaConfig.customMarkSpecs = {
27
- dataConsumer: dataConsumer
28
- };
25
+ defaultSchemaConfig.customMarkSpecs = {};
29
26
  defaultSchemaConfig.nodes.push('caption');
30
27
  defaultSchemaConfig.nodes.push('mediaInline');
31
28
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "19.3.1",
3
+ "version": "19.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,14 +1,13 @@
1
1
  import { customPanel } from './nodes/panel';
2
2
  import { layoutSectionWithSingleColumn } from './nodes/layout-section';
3
- import { dataConsumer } from './marks/data-consumer';
4
3
  import { allowCustomPanel, createSchema } from './create-schema';
5
4
  import { mediaSingleWithCaption } from './nodes';
6
5
 
7
6
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
8
7
  var defaultSchemaConfig = {
9
8
  nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
10
- marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery' // https://product-fabric.atlassian.net/browse/ED-10214,
11
- ]
9
+ marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery', // https://product-fabric.atlassian.net/browse/ED-10214,
10
+ 'dataConsumer']
12
11
  };
13
12
  return defaultSchemaConfig;
14
13
  };
@@ -24,9 +23,7 @@ export var getSchemaBasedOnStage = function getSchemaBasedOnStage() {
24
23
  mediaSingle: mediaSingleWithCaption,
25
24
  layoutSection: layoutSectionWithSingleColumn
26
25
  };
27
- defaultSchemaConfig.customMarkSpecs = {
28
- dataConsumer: dataConsumer
29
- };
26
+ defaultSchemaConfig.customMarkSpecs = {};
30
27
  defaultSchemaConfig.nodes.push('caption');
31
28
  defaultSchemaConfig.nodes.push('mediaInline');
32
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "19.3.1",
3
+ "version": "19.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { SchemaConfig } from './create-schema';
2
2
  declare type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'unsupportedBlock' | 'unsupportedInline';
3
- declare type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery';
3
+ declare type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer';
4
4
  export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
5
5
  export declare const getSchemaBasedOnStage: (stage?: string) => import("prosemirror-model").Schema<DefaultSchemaNodes, DefaultSchemaMarks>;
6
6
  export declare const defaultSchema: import("prosemirror-model").Schema<DefaultSchemaNodes, DefaultSchemaMarks>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "19.3.1",
3
+ "version": "19.3.2",
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/"