@atlaskit/adf-schema 52.4.2 → 52.4.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,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 52.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 52.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 52.4.2
4
16
 
5
17
  ### Patch Changes
@@ -44,6 +44,7 @@ var createMediaSpec = exports.createMediaSpec = function createMediaSpec(attribu
44
44
  if (attributes) {
45
45
  Object.keys(attributes).forEach(function (k) {
46
46
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
47
48
  var key = camelCaseToKebabCase(k).replace(/^__/, '');
48
49
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
49
50
  var value = dom.getAttribute("data-".concat(key)) || '';
@@ -13,6 +13,7 @@ function sanitizeNodes(nodes, supportedMarks) {
13
13
  nodeNames.forEach(function (nodeKey) {
14
14
  var nodeSpec = _objectSpread({}, nodes[nodeKey]);
15
15
  if (nodeSpec.marks && nodeSpec.marks !== '_') {
16
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
16
17
  nodeSpec.marks = nodeSpec.marks.split(' ').filter(function (mark) {
17
18
  return !!supportedMarks[mark];
18
19
  }).join(' ');
@@ -28,6 +28,7 @@ export const createMediaSpec = (attributes, inline = false, generateLocalId = fa
28
28
  if (attributes) {
29
29
  Object.keys(attributes).forEach(k => {
30
30
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
31
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
31
32
  const key = camelCaseToKebabCase(k).replace(/^__/u, '');
32
33
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
33
34
  const value = dom.getAttribute(`data-${key}`) || '';
@@ -5,6 +5,7 @@ export function sanitizeNodes(nodes, supportedMarks) {
5
5
  ...nodes[nodeKey]
6
6
  };
7
7
  if (nodeSpec.marks && nodeSpec.marks !== '_') {
8
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
8
9
  nodeSpec.marks = nodeSpec.marks.split(' ').filter(mark => !!supportedMarks[mark]).join(' ');
9
10
  }
10
11
  if (nodeSpec.content) {
@@ -38,6 +38,7 @@ export var createMediaSpec = function createMediaSpec(attributes) {
38
38
  if (attributes) {
39
39
  Object.keys(attributes).forEach(function (k) {
40
40
  // @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
41
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
41
42
  var key = camelCaseToKebabCase(k).replace(/^__/, '');
42
43
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
43
44
  var value = dom.getAttribute("data-".concat(key)) || '';
@@ -6,6 +6,7 @@ export function sanitizeNodes(nodes, supportedMarks) {
6
6
  nodeNames.forEach(function (nodeKey) {
7
7
  var nodeSpec = _objectSpread({}, nodes[nodeKey]);
8
8
  if (nodeSpec.marks && nodeSpec.marks !== '_') {
9
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
9
10
  nodeSpec.marks = nodeSpec.marks.split(' ').filter(function (mark) {
10
11
  return !!supportedMarks[mark];
11
12
  }).join(' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.4.2",
3
+ "version": "52.4.4",
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/"
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@atlaskit/adf-schema-generator": "^2.2.0",
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
- "@atlaskit/tmp-editor-statsig": "^42.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "css-color-names": "0.0.4",
48
48
  "linkify-it": "^3.0.3",