@atlaskit/editor-json-transformer 8.7.3 → 8.7.4

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,45 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 8.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b29ce16dad8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b29ce16dad8) - [ED-14606] Move bitbucket schema, confluence schema, jira schema, and default schema from @atlaskit/adf-schema to their own entry points. These new entry points are as follows
8
+
9
+ @atlaskit/adf-schema/schema-bitbucket for:
10
+
11
+ - bitbucketSchema
12
+
13
+ @atlaskit/adf-schema/schema-confluence for:
14
+
15
+ - confluenceSchema
16
+ - confluenceSchemaWithMediaSingle
17
+
18
+ @atlaskit/adf-schema/schema-jira for:
19
+
20
+ - default as createJIRASchema
21
+ - isSchemaWithLists
22
+ - isSchemaWithMentions
23
+ - isSchemaWithEmojis
24
+ - isSchemaWithLinks
25
+ - isSchemaWithAdvancedTextFormattingMarks
26
+ - isSchemaWithCodeBlock
27
+ - isSchemaWithBlockQuotes
28
+ - isSchemaWithMedia
29
+ - isSchemaWithSubSupMark
30
+ - isSchemaWithTextColor
31
+ - isSchemaWithTables
32
+
33
+ @atlaskit/adf-schema/schema-default for:
34
+
35
+ - defaultSchema
36
+ - getSchemaBasedOnStage
37
+ - defaultSchemaConfig
38
+
39
+ This change also includes codemods in @atlaskit/adf-schema to update these entry points. It also introduces a new util function "changeImportEntryPoint" to @atlaskit/codemod-utils to handle this scenario.
40
+
41
+ - Updated dependencies
42
+
3
43
  ## 8.7.3
4
44
 
5
45
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -19,6 +19,8 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
19
19
 
20
20
  var _adfSchema = require("@atlaskit/adf-schema");
21
21
 
22
+ var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
23
+
22
24
  var _markOverrideRules = require("./markOverrideRules");
23
25
 
24
26
  var _sanitizeNode = require("./sanitize/sanitize-node");
@@ -220,7 +222,7 @@ var JSONTransformer = /*#__PURE__*/function () {
220
222
  }, {
221
223
  key: "internalParse",
222
224
  value: function internalParse(content) {
223
- var doc = _adfSchema.defaultSchema.nodeFromJSON(content);
225
+ var doc = _schemaDefault.defaultSchema.nodeFromJSON(content);
224
226
 
225
227
  doc.check();
226
228
  return doc;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.7.3",
3
+ "version": "8.7.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,6 @@
1
1
  import isEqual from 'lodash/isEqual';
2
- import { codeBlockToJSON, dataConsumerToJSON, defaultSchema, expandToJSON, fragmentToJSON, linkToJSON, mediaSingleToJSON, mediaToJSON, mentionToJSON, tableToJSON, toJSONTableCell, toJSONTableHeader } from '@atlaskit/adf-schema';
2
+ import { codeBlockToJSON, dataConsumerToJSON, expandToJSON, fragmentToJSON, linkToJSON, mediaSingleToJSON, mediaToJSON, mentionToJSON, tableToJSON, toJSONTableCell, toJSONTableHeader } from '@atlaskit/adf-schema';
3
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
3
4
  import { markOverrideRuleFor } from './markOverrideRules';
4
5
  import { sanitizeNode } from './sanitize/sanitize-node';
5
6
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.7.3",
3
+ "version": "8.7.4",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/index.js CHANGED
@@ -8,7 +8,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
8
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
9
 
10
10
  import isEqual from 'lodash/isEqual';
11
- import { codeBlockToJSON, dataConsumerToJSON, defaultSchema, expandToJSON, fragmentToJSON, linkToJSON, mediaSingleToJSON, mediaToJSON, mentionToJSON, tableToJSON, toJSONTableCell, toJSONTableHeader } from '@atlaskit/adf-schema';
11
+ import { codeBlockToJSON, dataConsumerToJSON, expandToJSON, fragmentToJSON, linkToJSON, mediaSingleToJSON, mediaToJSON, mentionToJSON, tableToJSON, toJSONTableCell, toJSONTableHeader } from '@atlaskit/adf-schema';
12
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
12
13
  import { markOverrideRuleFor } from './markOverrideRules';
13
14
  import { sanitizeNode } from './sanitize/sanitize-node';
14
15
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.7.3",
3
+ "version": "8.7.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.7.3",
3
+ "version": "8.7.4",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "./types": "./src/types.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^22.0.0",
32
+ "@atlaskit/adf-schema": "^23.0.0",
33
33
  "@atlaskit/adf-utils": "^16.0.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "lodash": "^4.17.21",
@@ -38,12 +38,12 @@
38
38
  "devDependencies": {
39
39
  "@atlaskit/docs": "*",
40
40
  "@atlaskit/editor-bitbucket-transformer": "^7.2.0",
41
- "@atlaskit/editor-common": "^64.0.0",
41
+ "@atlaskit/editor-common": "^66.0.0",
42
42
  "@atlaskit/editor-confluence-transformer": "^8.1.0",
43
- "@atlaskit/editor-core": "^155.0.0",
43
+ "@atlaskit/editor-core": "^164.0.0",
44
44
  "@atlaskit/editor-jira-transformer": "^8.1.0",
45
45
  "@atlaskit/editor-markdown-transformer": "^4.1.0",
46
- "@atlaskit/editor-test-helpers": "^16.1.0",
46
+ "@atlaskit/editor-test-helpers": "^17.0.0",
47
47
  "@atlaskit/editor-wikimarkup-transformer": "^11.0.0",
48
48
  "@atlaskit/util-data-test": "^17.2.0",
49
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -51,14 +51,15 @@
51
51
  "prosemirror-view": "1.23.2",
52
52
  "react": "^16.8.0",
53
53
  "styled-components": "^3.2.6",
54
- "typescript": "3.9.6"
54
+ "typescript": "3.9.10"
55
55
  },
56
56
  "techstack": {
57
57
  "@atlassian/frontend": {
58
58
  "import-structure": "atlassian-conventions"
59
59
  },
60
60
  "@repo/internal": {
61
- "deprecation": "no-deprecated-imports"
61
+ "deprecation": "no-deprecated-imports",
62
+ "theming": "tokens"
62
63
  }
63
64
  },
64
65
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"