@atlaskit/editor-core 189.3.3 → 189.3.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42754) [`21c26ae2798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/21c26ae2798) - stop explicitly stating the version in which deprecations will be actioned in
8
+ - [#42757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42757) [`73c66d2c6db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73c66d2c6db) - remove media securedClipboard FF
9
+ - Updated dependencies
10
+
3
11
  ## 189.3.3
4
12
 
5
13
  ### Patch Changes
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _versionWrapper = require("../version-wrapper");
8
7
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
9
8
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
9
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -12,7 +11,6 @@ var deprecationWarnings = function deprecationWarnings(className, props, depreca
12
11
  if (process.env.NODE_ENV === 'production') {
13
12
  return;
14
13
  }
15
- var nextVersion = (0, _versionWrapper.nextMajorVersion)();
16
14
  var _iterator = _createForOfIteratorHelper(deprecations),
17
15
  _step;
18
16
  try {
@@ -30,7 +28,7 @@ var deprecationWarnings = function deprecationWarnings(className, props, depreca
30
28
  if (props.hasOwnProperty(property)) {
31
29
  if (condition(props)) {
32
30
  // eslint-disable-next-line no-console
33
- console.warn("".concat(property, " property for ").concat(className, " is deprecated. ").concat(description, " [Will be ").concat(type, " in editor-core@").concat(nextVersion, "]"));
31
+ console.warn("".concat(property, " property for ").concat(className, " is deprecated. ").concat(description, " [Will be ").concat(type, " in the next major editor-core version]"));
34
32
  }
35
33
  }
36
34
  }
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = editorDeprecationWarnings;
7
- var _versionWrapper = require("../version-wrapper");
8
7
  function editorDeprecationWarnings(props) {
9
8
  if (process.env.NODE_ENV === 'production') {
10
9
  return;
11
10
  }
12
- var nextVersion = (0, _versionWrapper.nextMajorVersion)();
13
11
  var deprecatedProperties = {
14
12
  allowTasksAndDecisions: {
15
13
  message: 'To allow tasks and decisions use taskDecisionProvider – <Editor taskDecisionProvider={{ provider }} />',
@@ -30,11 +28,11 @@ function editorDeprecationWarnings(props) {
30
28
  var type = meta.type || 'enabled by default';
31
29
 
32
30
  // eslint-disable-next-line no-console
33
- console.warn("".concat(property, " property is deprecated. ").concat(meta.message || '', " [Will be ").concat(type, " in editor-core@").concat(nextVersion, "]"));
31
+ console.warn("".concat(property, " property is deprecated. ").concat(meta.message || '', " [Will be ").concat(type, " in the next major editor-core version]"));
34
32
  }
35
33
  });
36
34
  if (props.hasOwnProperty('allowTables') && typeof props.allowTables !== 'boolean' && (!props.allowTables || !props.allowTables.advanced)) {
37
35
  // eslint-disable-next-line no-console
38
- console.warn("Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in editor-core@".concat(nextVersion, "]"));
36
+ console.warn("Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in the next major editor-core version]");
39
37
  }
40
38
  }
@@ -3,9 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.version = exports.nextMajorVersion = exports.name = void 0;
6
+ exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "189.3.3";
9
- var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
- return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
- };
8
+ var version = exports.version = "189.3.4";
@@ -1,9 +1,7 @@
1
- import { nextMajorVersion } from '../version-wrapper';
2
1
  const deprecationWarnings = (className, props, deprecations) => {
3
2
  if (process.env.NODE_ENV === 'production') {
4
3
  return;
5
4
  }
6
- const nextVersion = nextMajorVersion();
7
5
  for (const deprecation of deprecations) {
8
6
  const {
9
7
  property,
@@ -14,7 +12,7 @@ const deprecationWarnings = (className, props, deprecations) => {
14
12
  if (props.hasOwnProperty(property)) {
15
13
  if (condition(props)) {
16
14
  // eslint-disable-next-line no-console
17
- console.warn(`${property} property for ${className} is deprecated. ${description} [Will be ${type} in editor-core@${nextVersion}]`);
15
+ console.warn(`${property} property for ${className} is deprecated. ${description} [Will be ${type} in the next major editor-core version]`);
18
16
  }
19
17
  }
20
18
  }
@@ -1,9 +1,7 @@
1
- import { nextMajorVersion } from '../version-wrapper';
2
1
  export default function editorDeprecationWarnings(props) {
3
2
  if (process.env.NODE_ENV === 'production') {
4
3
  return;
5
4
  }
6
- const nextVersion = nextMajorVersion();
7
5
  const deprecatedProperties = {
8
6
  allowTasksAndDecisions: {
9
7
  message: 'To allow tasks and decisions use taskDecisionProvider – <Editor taskDecisionProvider={{ provider }} />',
@@ -24,11 +22,11 @@ export default function editorDeprecationWarnings(props) {
24
22
  const type = meta.type || 'enabled by default';
25
23
 
26
24
  // eslint-disable-next-line no-console
27
- console.warn(`${property} property is deprecated. ${meta.message || ''} [Will be ${type} in editor-core@${nextVersion}]`);
25
+ console.warn(`${property} property is deprecated. ${meta.message || ''} [Will be ${type} in the next major editor-core version]`);
28
26
  }
29
27
  });
30
28
  if (props.hasOwnProperty('allowTables') && typeof props.allowTables !== 'boolean' && (!props.allowTables || !props.allowTables.advanced)) {
31
29
  // eslint-disable-next-line no-console
32
- console.warn(`Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in editor-core@${nextVersion}]`);
30
+ console.warn(`Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in the next major editor-core version]`);
33
31
  }
34
32
  }
@@ -1,5 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.3.3";
3
- export const nextMajorVersion = () => {
4
- return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
- };
2
+ export const version = "189.3.4";
@@ -1,12 +1,10 @@
1
1
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2
2
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3
3
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
4
- import { nextMajorVersion } from '../version-wrapper';
5
4
  var deprecationWarnings = function deprecationWarnings(className, props, deprecations) {
6
5
  if (process.env.NODE_ENV === 'production') {
7
6
  return;
8
7
  }
9
- var nextVersion = nextMajorVersion();
10
8
  var _iterator = _createForOfIteratorHelper(deprecations),
11
9
  _step;
12
10
  try {
@@ -24,7 +22,7 @@ var deprecationWarnings = function deprecationWarnings(className, props, depreca
24
22
  if (props.hasOwnProperty(property)) {
25
23
  if (condition(props)) {
26
24
  // eslint-disable-next-line no-console
27
- console.warn("".concat(property, " property for ").concat(className, " is deprecated. ").concat(description, " [Will be ").concat(type, " in editor-core@").concat(nextVersion, "]"));
25
+ console.warn("".concat(property, " property for ").concat(className, " is deprecated. ").concat(description, " [Will be ").concat(type, " in the next major editor-core version]"));
28
26
  }
29
27
  }
30
28
  }
@@ -1,9 +1,7 @@
1
- import { nextMajorVersion } from '../version-wrapper';
2
1
  export default function editorDeprecationWarnings(props) {
3
2
  if (process.env.NODE_ENV === 'production') {
4
3
  return;
5
4
  }
6
- var nextVersion = nextMajorVersion();
7
5
  var deprecatedProperties = {
8
6
  allowTasksAndDecisions: {
9
7
  message: 'To allow tasks and decisions use taskDecisionProvider – <Editor taskDecisionProvider={{ provider }} />',
@@ -24,11 +22,11 @@ export default function editorDeprecationWarnings(props) {
24
22
  var type = meta.type || 'enabled by default';
25
23
 
26
24
  // eslint-disable-next-line no-console
27
- console.warn("".concat(property, " property is deprecated. ").concat(meta.message || '', " [Will be ").concat(type, " in editor-core@").concat(nextVersion, "]"));
25
+ console.warn("".concat(property, " property is deprecated. ").concat(meta.message || '', " [Will be ").concat(type, " in the next major editor-core version]"));
28
26
  }
29
27
  });
30
28
  if (props.hasOwnProperty('allowTables') && typeof props.allowTables !== 'boolean' && (!props.allowTables || !props.allowTables.advanced)) {
31
29
  // eslint-disable-next-line no-console
32
- console.warn("Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in editor-core@".concat(nextVersion, "]"));
30
+ console.warn("Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in the next major editor-core version]");
33
31
  }
34
32
  }
@@ -1,5 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.3.3";
3
- export var nextMajorVersion = function nextMajorVersion() {
4
- return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
- };
2
+ export var version = "189.3.4";
@@ -1,3 +1,2 @@
1
1
  export declare const name: string;
2
2
  export declare const version: string;
3
- export declare const nextMajorVersion: () => string;
@@ -1,3 +1,2 @@
1
1
  export declare const name: string;
2
2
  export declare const version: string;
3
- export declare const nextMajorVersion: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "189.3.3",
3
+ "version": "189.3.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/logo": "^13.14.0",
117
117
  "@atlaskit/media-card": "^77.2.0",
118
118
  "@atlaskit/media-client": "^25.0.0",
119
- "@atlaskit/media-common": "^9.0.0",
119
+ "@atlaskit/media-common": "^10.0.0",
120
120
  "@atlaskit/mention": "^22.1.0",
121
121
  "@atlaskit/platform-feature-flags": "^0.2.0",
122
122
  "@atlaskit/prosemirror-collab": "^0.2.0",