@atlaskit/adf-schema 30.2.0 → 30.2.1

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,13 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 30.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fb8dcc0: Loosen eslint rules and change comments
8
+ - Updated dependencies [fb8dcc0]
9
+ - @atlaskit/editor-prosemirror@1.1.7
10
+
3
11
  ## 30.2.0
4
12
 
5
13
  ### Minor Changes
@@ -16,8 +16,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
16
16
  var namedColors = _interopRequireWildcard(require("css-color-names"));
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- // eslint-disable-line import/extensions
20
-
21
19
  /**
22
20
  * We're avoding importing these colors from @atlaskit/theme since we
23
21
  * do not want to have react as a dependency of this package.
@@ -25,9 +25,8 @@ exports.hexToEditorTextPaletteColor = hexToEditorTextPaletteColor;
25
25
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
26
26
  */
27
27
  function hexToEditorBorderPaletteColor(hexColor) {
28
- // Ts ignore used to allow use of conditional return type
28
+ // Ts ignore was used to allow use of conditional return type
29
29
  // (preferencing better type on consumption over safety in implementation)
30
- // @ts-ignore
31
30
  return editorBorderPalette[hexColor.toUpperCase()];
32
31
  }
33
32
  var editorBorderPalette = {
@@ -58,9 +57,8 @@ var editorBorderPalette = {
58
57
  */
59
58
  exports.editorBorderPalette = editorBorderPalette;
60
59
  function hexToEditorTextPaletteColor(hexColor) {
61
- // Ts ignore used to allow use of conditional return type
60
+ // Ts ignore was used to allow use of conditional return type
62
61
  // (preferencing better type on consumption over safety in implementation)
63
- // @ts-ignore
64
62
  return editorTextPalette[hexColor.toUpperCase()];
65
63
  }
66
64
  var editorTextPalette = {
@@ -123,9 +121,8 @@ var editorTextPalette = {
123
121
  */
124
122
  exports.editorTextPalette = editorTextPalette;
125
123
  function hexToEditorBackgroundPaletteRawValue(hexColor) {
126
- // Ts ignore used to allow use of conditional return type
124
+ // Ts ignore was used to allow use of conditional return type
127
125
  // (preferencing better type on consumption over safety in implementation)
128
- // @ts-ignore
129
126
  var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
130
127
  return tokenData ? tokenData.getValue(hexColor) : undefined;
131
128
  }
@@ -1,4 +1,4 @@
1
- import * as namedColors from 'css-color-names'; // eslint-disable-line import/extensions
1
+ import * as namedColors from 'css-color-names';
2
2
 
3
3
  /**
4
4
  * We're avoding importing these colors from @atlaskit/theme since we
@@ -16,9 +16,8 @@
16
16
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
17
17
  */
18
18
  export function hexToEditorBorderPaletteColor(hexColor) {
19
- // Ts ignore used to allow use of conditional return type
19
+ // Ts ignore was used to allow use of conditional return type
20
20
  // (preferencing better type on consumption over safety in implementation)
21
- // @ts-ignore
22
21
  return editorBorderPalette[hexColor.toUpperCase()];
23
22
  }
24
23
  export const editorBorderPalette = {
@@ -48,9 +47,8 @@ export const editorBorderPalette = {
48
47
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
49
48
  */
50
49
  export function hexToEditorTextPaletteColor(hexColor) {
51
- // Ts ignore used to allow use of conditional return type
50
+ // Ts ignore was used to allow use of conditional return type
52
51
  // (preferencing better type on consumption over safety in implementation)
53
- // @ts-ignore
54
52
  return editorTextPalette[hexColor.toUpperCase()];
55
53
  }
56
54
  export const editorTextPalette = {
@@ -112,9 +110,8 @@ export const editorTextPalette = {
112
110
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color.
113
111
  */
114
112
  export function hexToEditorBackgroundPaletteRawValue(hexColor) {
115
- // Ts ignore used to allow use of conditional return type
113
+ // Ts ignore was used to allow use of conditional return type
116
114
  // (preferencing better type on consumption over safety in implementation)
117
- // @ts-ignore
118
115
  const tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
119
116
  return tokenData ? tokenData.getValue(hexColor) : undefined;
120
117
  }
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import * as namedColors from 'css-color-names'; // eslint-disable-line import/extensions
2
+ import * as namedColors from 'css-color-names';
3
3
 
4
4
  /**
5
5
  * We're avoding importing these colors from @atlaskit/theme since we
@@ -16,9 +16,8 @@
16
16
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
17
17
  */
18
18
  export function hexToEditorBorderPaletteColor(hexColor) {
19
- // Ts ignore used to allow use of conditional return type
19
+ // Ts ignore was used to allow use of conditional return type
20
20
  // (preferencing better type on consumption over safety in implementation)
21
- // @ts-ignore
22
21
  return editorBorderPalette[hexColor.toUpperCase()];
23
22
  }
24
23
  export var editorBorderPalette = {
@@ -48,9 +47,8 @@ export var editorBorderPalette = {
48
47
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
49
48
  */
50
49
  export function hexToEditorTextPaletteColor(hexColor) {
51
- // Ts ignore used to allow use of conditional return type
50
+ // Ts ignore was used to allow use of conditional return type
52
51
  // (preferencing better type on consumption over safety in implementation)
53
- // @ts-ignore
54
52
  return editorTextPalette[hexColor.toUpperCase()];
55
53
  }
56
54
  export var editorTextPalette = {
@@ -112,9 +110,8 @@ export var editorTextPalette = {
112
110
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color.
113
111
  */
114
112
  export function hexToEditorBackgroundPaletteRawValue(hexColor) {
115
- // Ts ignore used to allow use of conditional return type
113
+ // Ts ignore was used to allow use of conditional return type
116
114
  // (preferencing better type on consumption over safety in implementation)
117
- // @ts-ignore
118
115
  var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
119
116
  return tokenData ? tokenData.getValue(hexColor) : undefined;
120
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "30.2.0",
3
+ "version": "30.2.1",
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/"