@atlaskit/editor-plugin-extension 1.14.5 → 1.14.7

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,22 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 1.14.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139034](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139034)
8
+ [`517cdc0f7ea1a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/517cdc0f7ea1a) -
9
+ Used experiment for lazy node view
10
+
11
+ ## 1.14.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [#138118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138118)
16
+ [`5e4d9eb1aefe4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4d9eb1aefe4) -
17
+ NOISSUE: Upgrades editor React peer dependencies to v18
18
+ - Updated dependencies
19
+
3
20
  ## 1.14.5
4
21
 
5
22
  ### Patch Changes
@@ -8,14 +8,14 @@ exports.lazyExtensionNodeView = lazyExtensionNodeView;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _extensibility = require("@atlaskit/editor-common/extensibility");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  function lazyExtensionNodeView(nodeName) {
15
15
  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
16
16
  params[_key - 1] = arguments[_key];
17
17
  }
18
- if (!(0, _platformFeatureFlags.fg)('platform_editor_lazy-node-views')) {
18
+ if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
19
19
  return _extensibility.ExtensionNodeView.apply(void 0, params);
20
20
  }
21
21
  return (0, _lazyNodeView.withLazyLoading)({
@@ -8,8 +8,8 @@ exports.bodiedExtensionSpecWithFixedToDOM = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _colors = require("@atlaskit/theme/colors");
12
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
15
  var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
@@ -18,7 +18,7 @@ var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
18
18
 
19
19
  // @nodeSpecException:toDOM patch
20
20
  var bodiedExtensionSpecWithFixedToDOM = exports.bodiedExtensionSpecWithFixedToDOM = function bodiedExtensionSpecWithFixedToDOM() {
21
- if (!(0, _platformFeatureFlags.fg)('platform_editor_lazy-node-views')) {
21
+ if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
22
22
  return _adfSchema.bodiedExtension;
23
23
  }
24
24
  return _objectSpread(_objectSpread({}, _adfSchema.bodiedExtension), {}, {
@@ -1,8 +1,8 @@
1
1
  import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
2
2
  import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
4
  export function lazyExtensionNodeView(nodeName, ...params) {
5
- if (!fg('platform_editor_lazy-node-views')) {
5
+ if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
6
6
  return ExtensionNodeView(...params);
7
7
  }
8
8
  return withLazyLoading({
@@ -1,14 +1,14 @@
1
1
  import { bodiedExtension } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { N30 } from '@atlaskit/theme/colors';
4
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
5
  const capitalizeFirstLetter = str => {
6
6
  return str.charAt(0).toUpperCase() + str.slice(1);
7
7
  };
8
8
 
9
9
  // @nodeSpecException:toDOM patch
10
10
  export const bodiedExtensionSpecWithFixedToDOM = () => {
11
- if (!fg('platform_editor_lazy-node-views')) {
11
+ if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
12
12
  return bodiedExtension;
13
13
  }
14
14
  return {
@@ -1,11 +1,11 @@
1
1
  import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
2
2
  import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
4
  export function lazyExtensionNodeView(nodeName) {
5
5
  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6
6
  params[_key - 1] = arguments[_key];
7
7
  }
8
- if (!fg('platform_editor_lazy-node-views')) {
8
+ if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
9
9
  return ExtensionNodeView.apply(void 0, params);
10
10
  }
11
11
  return withLazyLoading({
@@ -3,15 +3,15 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { bodiedExtension } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { N30 } from '@atlaskit/theme/colors';
7
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
8
  var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
9
9
  return str.charAt(0).toUpperCase() + str.slice(1);
10
10
  };
11
11
 
12
12
  // @nodeSpecException:toDOM patch
13
13
  export var bodiedExtensionSpecWithFixedToDOM = function bodiedExtensionSpecWithFixedToDOM() {
14
- if (!fg('platform_editor_lazy-node-views')) {
14
+ if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
15
15
  return bodiedExtension;
16
16
  }
17
17
  return _objectSpread(_objectSpread({}, bodiedExtension), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "1.14.5",
3
+ "version": "1.14.7",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,7 +10,7 @@
10
10
  "atlassian": {
11
11
  "team": "Editor: Core Experiences",
12
12
  "singleton": true,
13
- "runReact18": false
13
+ "runReact18": true
14
14
  },
15
15
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
16
  "main": "dist/cjs/index.js",
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/button": "^20.1.0",
31
31
  "@atlaskit/checkbox": "^14.0.0",
32
32
  "@atlaskit/datetime-picker": "^14.0.0",
33
- "@atlaskit/editor-common": "^88.9.0",
33
+ "@atlaskit/editor-common": "^88.13.0",
34
34
  "@atlaskit/editor-json-transformer": "^8.18.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
@@ -43,19 +43,20 @@
43
43
  "@atlaskit/editor-tables": "^2.8.0",
44
44
  "@atlaskit/empty-state": "^7.11.0",
45
45
  "@atlaskit/form": "^10.5.0",
46
- "@atlaskit/icon": "^22.15.0",
46
+ "@atlaskit/icon": "^22.16.0",
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/primitives": "^12.1.0",
49
49
  "@atlaskit/radio": "^6.5.0",
50
50
  "@atlaskit/section-message": "^6.6.0",
51
- "@atlaskit/select": "^17.15.0",
51
+ "@atlaskit/select": "^17.16.0",
52
52
  "@atlaskit/smart-user-picker": "^6.10.0",
53
53
  "@atlaskit/spinner": "^16.3.0",
54
54
  "@atlaskit/tabs": "^16.4.0",
55
55
  "@atlaskit/textarea": "^5.6.0",
56
56
  "@atlaskit/textfield": "^6.5.0",
57
57
  "@atlaskit/theme": "^13.0.0",
58
- "@atlaskit/toggle": "^13.3.0",
58
+ "@atlaskit/tmp-editor-statsig": "^2.1.8",
59
+ "@atlaskit/toggle": "^13.4.0",
59
60
  "@atlaskit/tokens": "^1.59.0",
60
61
  "@atlaskit/tooltip": "^18.7.0",
61
62
  "@babel/runtime": "^7.0.0",
@@ -67,7 +68,7 @@
67
68
  "react-loadable": "^5.1.0"
68
69
  },
69
70
  "peerDependencies": {
70
- "react": "^16.8.0",
71
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
71
72
  "react-intl-next": "npm:react-intl@^5.18.1"
72
73
  },
73
74
  "devDependencies": {
@@ -113,9 +114,6 @@
113
114
  "platform-feature-flags": {
114
115
  "platform.editor.multi-bodied-extension_0rygg": {
115
116
  "type": "boolean"
116
- },
117
- "platform_editor_lazy-node-views": {
118
- "type": "boolean"
119
117
  }
120
118
  }
121
119
  }