@atlaskit/adf-schema 37.1.35 → 37.1.36

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
+ ## 37.1.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 3faf4f8: Reverse compatability for doc, blockRootOnly and block in full JSON Schema
8
+
3
9
  ## 37.1.35
4
10
 
5
11
  ### Patch Changes
@@ -6,4 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.blockRootOnlyGroup = void 0;
7
7
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
8
8
  var _multiBodiedExtension = require("../nodes/multiBodiedExtension");
9
- var blockRootOnlyGroup = exports.blockRootOnlyGroup = (0, _adfSchemaGenerator.adfNodeGroup)('blockRootOnly', [_multiBodiedExtension.multiBodiedExtension]);
9
+ var blockRootOnlyGroup = exports.blockRootOnlyGroup = (0, _adfSchemaGenerator.adfNodeGroup)('blockRootOnly', [_multiBodiedExtension.multiBodiedExtension], {
10
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
11
+ // We should introduce this to the JSON Schema since it is in PM Spec
12
+ ignore: ['json-schema']
13
+ });
@@ -123,7 +123,9 @@ var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaS
123
123
  }
124
124
  }).variant('width_type', {
125
125
  content: [(0, _adfSchemaGenerator.$range)(1, 1, (0, _adfSchemaGenerator.$or)(_media.media, _unsupportedBlock.unsupportedBlock))],
126
- ignore: [],
126
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
127
+ // We should introduce this to the JSON Schema since it is in PM Spec
128
+ ignore: ['json-schema'],
127
129
  marks: [],
128
130
  DANGEROUS_MANUAL_OVERRIDE: {
129
131
  'pm-spec': {
@@ -1,3 +1,7 @@
1
1
  import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
2
2
  import { multiBodiedExtension } from '../nodes/multiBodiedExtension';
3
- export const blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension]);
3
+ export const blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension], {
4
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
5
+ // We should introduce this to the JSON Schema since it is in PM Spec
6
+ ignore: ['json-schema']
7
+ });
@@ -117,7 +117,9 @@ export const mediaSingle = adfNode('mediaSingle').define({
117
117
  }
118
118
  }).variant('width_type', {
119
119
  content: [$range(1, 1, $or(media, unsupportedBlock))],
120
- ignore: [],
120
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
121
+ // We should introduce this to the JSON Schema since it is in PM Spec
122
+ ignore: ['json-schema'],
121
123
  marks: [],
122
124
  DANGEROUS_MANUAL_OVERRIDE: {
123
125
  'pm-spec': {
@@ -1,3 +1,7 @@
1
1
  import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
2
2
  import { multiBodiedExtension } from '../nodes/multiBodiedExtension';
3
- export var blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension]);
3
+ export var blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension], {
4
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
5
+ // We should introduce this to the JSON Schema since it is in PM Spec
6
+ ignore: ['json-schema']
7
+ });
@@ -117,7 +117,9 @@ export var mediaSingle = adfNode('mediaSingle').define({
117
117
  }
118
118
  }).variant('width_type', {
119
119
  content: [$range(1, 1, $or(media, unsupportedBlock))],
120
- ignore: [],
120
+ // @DSLCompatibilityException - Generated JSON Schema does not have this.
121
+ // We should introduce this to the JSON Schema since it is in PM Spec
122
+ ignore: ['json-schema'],
121
123
  marks: [],
122
124
  DANGEROUS_MANUAL_OVERRIDE: {
123
125
  'pm-spec': {
@@ -97,7 +97,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
97
97
  };
98
98
  } & {
99
99
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec[];
100
- ignore: any[];
100
+ ignore: "json-schema"[];
101
101
  marks: any[];
102
102
  DANGEROUS_MANUAL_OVERRIDE: {
103
103
  'pm-spec': {
@@ -68,7 +68,7 @@ export declare const mediaSingle: import("@atlaskit/adf-schema-generator/dist/ty
68
68
  };
69
69
  } & {
70
70
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec[];
71
- ignore: any[];
71
+ ignore: "json-schema"[];
72
72
  marks: any[];
73
73
  DANGEROUS_MANUAL_OVERRIDE: {
74
74
  'pm-spec': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "37.1.35",
3
+ "version": "37.1.36",
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/"
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@atlassian/adf-schema-json": "^1.16.0",
50
- "@atlaskit/adf-schema-generator": "^1.25.6",
50
+ "@atlaskit/adf-schema-generator": "^1.25.7",
51
51
  "@atlaskit/adf-utils": "^19.2.2",
52
52
  "@atlaskit/codemod-utils": "^4.2.4",
53
53
  "@atlaskit/json-schema-generator": "^3.3.9",
@@ -48,10 +48,7 @@ test('ADF DSL to JSON Schema backwards compatibility for full schema', () => {
48
48
  function transformFullFixtureForKnownFailures(json) {
49
49
  const definitions = json.definitions;
50
50
 
51
- delete definitions.doc_node;
52
- delete definitions.blockRootOnly_node;
53
51
  delete definitions.extensionFrame_node;
54
- delete definitions.block_content;
55
52
  delete definitions.non_nestable_block_content;
56
53
  delete definitions.table_row_node;
57
54
  delete definitions.table_cell_content;