@atlaskit/editor-plugin-status 3.0.1 → 3.1.0

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,32 @@
1
1
  # @atlaskit/editor-plugin-status
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
8
+ [`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
9
+ ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119706](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119706)
14
+ [`42fd258ba482e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42fd258ba482e) -
15
+ ED-26704: enables editor node virtualization experiment
16
+ - Updated dependencies
17
+
18
+ ## 3.0.2
19
+
20
+ ### Patch Changes
21
+
22
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
23
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
24
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
25
+ future to avoid an accidental regression.
26
+
27
+ This is related to
28
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
29
+
3
30
  ## 3.0.1
4
31
 
5
32
  ### Patch Changes
@@ -10,6 +10,7 @@ var _reactIntlNext = require("react-intl-next");
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
14
  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
15
  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
16
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -99,7 +100,7 @@ var isAndroidChromium = typeof window !== 'undefined' && /Version\/(?:[\0-\t\x0B
99
100
  * @returns
100
101
  */
101
102
  var statusNodeSpec = exports.statusNodeSpec = function statusNodeSpec() {
102
- if (isSSR || !(0, _platformFeatureFlags.fg)('platform_editor_lego__inline_node_virtualization')) {
103
+ if (isSSR || (0, _experiments.editorExperiment)("platform_editor_inline_node_virtualization", "off")) {
103
104
  return _adfSchema.status;
104
105
  }
105
106
  return _objectSpread(_objectSpread({}, _adfSchema.status), {}, {
@@ -2,6 +2,7 @@ import { createIntl } from 'react-intl-next';
2
2
  import { status } from '@atlaskit/adf-schema';
3
3
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
6
  const isSSR = Boolean(process.env.REACT_SSR);
6
7
  let intl;
7
8
 
@@ -89,7 +90,7 @@ const isAndroidChromium = typeof window !== 'undefined' && /Version\/.* Chrome\/
89
90
  * @returns
90
91
  */
91
92
  export const statusNodeSpec = () => {
92
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
93
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
93
94
  return status;
94
95
  }
95
96
  return {
@@ -5,6 +5,7 @@ import { createIntl } from 'react-intl-next';
5
5
  import { status } from '@atlaskit/adf-schema';
6
6
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
9
  var isSSR = Boolean(process.env.REACT_SSR);
9
10
  var intl;
10
11
 
@@ -92,7 +93,7 @@ var isAndroidChromium = typeof window !== 'undefined' && /Version\/(?:[\0-\t\x0B
92
93
  * @returns
93
94
  */
94
95
  export var statusNodeSpec = function statusNodeSpec() {
95
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
96
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
96
97
  return status;
97
98
  }
98
99
  return _objectSpread(_objectSpread({}, status), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-status",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Status plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,23 +25,25 @@
25
25
  ]
26
26
  }
27
27
  },
28
- "sideEffects": false,
28
+ "sideEffects": [
29
+ "*.compiled.css"
30
+ ],
29
31
  "atlaskit:src": "src/index.ts",
30
32
  "af:exports": {
31
33
  ".": "./src/index.ts"
32
34
  },
33
35
  "dependencies": {
34
- "@atlaskit/adf-schema": "^47.2.1",
36
+ "@atlaskit/adf-schema": "^47.6.0",
35
37
  "@atlaskit/analytics-next": "^11.0.0",
36
- "@atlaskit/editor-common": "^100.2.0",
37
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
38
+ "@atlaskit/editor-common": "^100.5.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
38
40
  "@atlaskit/editor-prosemirror": "7.0.0",
39
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
40
42
  "@atlaskit/icon": "^24.1.0",
41
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
44
  "@atlaskit/status": "^3.0.0",
43
45
  "@atlaskit/theme": "^17.0.0",
44
- "@atlaskit/tokens": "^4.2.0",
46
+ "@atlaskit/tokens": "^4.3.0",
45
47
  "@babel/runtime": "^7.0.0",
46
48
  "@emotion/react": "^11.7.1"
47
49
  },
@@ -104,9 +106,6 @@
104
106
  "platform_inline_node_as_valid_annotation_selection": {
105
107
  "type": "boolean"
106
108
  },
107
- "platform_editor_lego__inline_node_virtualization": {
108
- "type": "boolean"
109
- },
110
109
  "visual-refresh_drop_5": {
111
110
  "type": "boolean"
112
111
  }