@atlaskit/editor-json-transformer 8.7.3 → 8.7.6

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,58 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 8.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`01c4d8fb95a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01c4d8fb95a) - ED-13895 update editor json transformer to emotion
8
+ - Updated dependencies
9
+
10
+ ## 8.7.5
11
+
12
+ ### Patch Changes
13
+
14
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
15
+
16
+ ## 8.7.4
17
+
18
+ ### Patch Changes
19
+
20
+ - [`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
21
+
22
+ @atlaskit/adf-schema/schema-bitbucket for:
23
+
24
+ - bitbucketSchema
25
+
26
+ @atlaskit/adf-schema/schema-confluence for:
27
+
28
+ - confluenceSchema
29
+ - confluenceSchemaWithMediaSingle
30
+
31
+ @atlaskit/adf-schema/schema-jira for:
32
+
33
+ - default as createJIRASchema
34
+ - isSchemaWithLists
35
+ - isSchemaWithMentions
36
+ - isSchemaWithEmojis
37
+ - isSchemaWithLinks
38
+ - isSchemaWithAdvancedTextFormattingMarks
39
+ - isSchemaWithCodeBlock
40
+ - isSchemaWithBlockQuotes
41
+ - isSchemaWithMedia
42
+ - isSchemaWithSubSupMark
43
+ - isSchemaWithTextColor
44
+ - isSchemaWithTables
45
+
46
+ @atlaskit/adf-schema/schema-default for:
47
+
48
+ - defaultSchema
49
+ - getSchemaBasedOnStage
50
+ - defaultSchemaConfig
51
+
52
+ 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.
53
+
54
+ - Updated dependencies
55
+
3
56
  ## 8.7.3
4
57
 
5
58
  ### 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.6",
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.6",
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.6",
4
4
  "sideEffects": false
5
5
  }
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/markOverrideRules.js",
4
4
  "module": "../dist/esm/markOverrideRules.js",
5
5
  "module:es2019": "../dist/es2019/markOverrideRules.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/markOverrideRules.d.ts"
7
8
  }
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.6",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,8 +29,8 @@
29
29
  "./types": "./src/types.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^22.0.0",
33
- "@atlaskit/adf-utils": "^16.0.0",
32
+ "@atlaskit/adf-schema": "^23.1.0",
33
+ "@atlaskit/adf-utils": "^17.0.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "lodash": "^4.17.21",
36
36
  "prosemirror-model": "1.14.3"
@@ -38,27 +38,29 @@
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": "^68.0.0",
42
42
  "@atlaskit/editor-confluence-transformer": "^8.1.0",
43
- "@atlaskit/editor-core": "^155.0.0",
43
+ "@atlaskit/editor-core": "^167.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",
50
+ "@emotion/react": "^11.7.1",
50
51
  "@types/prosemirror-model": "^1.11.0",
51
52
  "prosemirror-view": "1.23.2",
52
53
  "react": "^16.8.0",
53
54
  "styled-components": "^3.2.6",
54
- "typescript": "3.9.6"
55
+ "typescript": "4.2.4"
55
56
  },
56
57
  "techstack": {
57
58
  "@atlassian/frontend": {
58
59
  "import-structure": "atlassian-conventions"
59
60
  },
60
61
  "@repo/internal": {
61
- "deprecation": "no-deprecated-imports"
62
+ "deprecation": "no-deprecated-imports",
63
+ "theming": "tokens"
62
64
  }
63
65
  },
64
66
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/sanitize.js",
4
4
  "module": "../dist/esm/sanitize.js",
5
5
  "module:es2019": "../dist/es2019/sanitize.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/sanitize.d.ts"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/types.d.ts"
7
8
  }