@atlaskit/editor-plugin-status 3.0.2 → 3.1.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,26 @@
1
1
  # @atlaskit/editor-plugin-status
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
14
+ [`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
15
+ 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
16
+
17
+ ### Patch Changes
18
+
19
+ - [#119706](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119706)
20
+ [`42fd258ba482e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42fd258ba482e) -
21
+ ED-26704: enables editor node virtualization experiment
22
+ - Updated dependencies
23
+
3
24
  ## 3.0.2
4
25
 
5
26
  ### 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), {}, {
@@ -164,7 +165,7 @@ var statusNodeSpec = exports.statusNodeSpec = function statusNodeSpec() {
164
165
  style: (0, _lazyNodeView.convertToInlineCss)({
165
166
  color: appearanceStyle === 'subtle' ? "var(--ds-text, #172B4D)" : '#292A2E',
166
167
  maxWidth: '100%',
167
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
168
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
168
169
  fontWeight: "var(--ds-font-weight-bold, 700)",
169
170
  overflow: 'hidden',
170
171
  textOverflow: 'ellipsis',
@@ -195,8 +196,8 @@ var statusNodeSpec = exports.statusNodeSpec = function statusNodeSpec() {
195
196
  };
196
197
  var legacyLozengeTextAttrs = {
197
198
  style: (0, _lazyNodeView.convertToInlineCss)({
198
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
199
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
199
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
200
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
200
201
  fontWeight: "var(--ds-font-weight-bold, 700)",
201
202
  overflow: 'hidden',
202
203
  textOverflow: 'ellipsis',
@@ -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 {
@@ -158,7 +159,7 @@ export const statusNodeSpec = () => {
158
159
  style: convertToInlineCss({
159
160
  color: appearanceStyle === 'subtle' ? "var(--ds-text, #172B4D)" : '#292A2E',
160
161
  maxWidth: '100%',
161
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
162
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
162
163
  fontWeight: "var(--ds-font-weight-bold, 700)",
163
164
  overflow: 'hidden',
164
165
  textOverflow: 'ellipsis',
@@ -189,8 +190,8 @@ export const statusNodeSpec = () => {
189
190
  };
190
191
  const legacyLozengeTextAttrs = {
191
192
  style: convertToInlineCss({
192
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
193
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
193
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
194
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
194
195
  fontWeight: "var(--ds-font-weight-bold, 700)",
195
196
  overflow: 'hidden',
196
197
  textOverflow: 'ellipsis',
@@ -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), {}, {
@@ -157,7 +158,7 @@ export var statusNodeSpec = function statusNodeSpec() {
157
158
  style: convertToInlineCss({
158
159
  color: appearanceStyle === 'subtle' ? "var(--ds-text, #172B4D)" : '#292A2E',
159
160
  maxWidth: '100%',
160
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
161
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
161
162
  fontWeight: "var(--ds-font-weight-bold, 700)",
162
163
  overflow: 'hidden',
163
164
  textOverflow: 'ellipsis',
@@ -188,8 +189,8 @@ export var statusNodeSpec = function statusNodeSpec() {
188
189
  };
189
190
  var legacyLozengeTextAttrs = {
190
191
  style: convertToInlineCss({
191
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
192
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
192
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
193
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
193
194
  fontWeight: "var(--ds-font-weight-bold, 700)",
194
195
  overflow: 'hidden',
195
196
  textOverflow: 'ellipsis',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-status",
3
- "version": "3.0.2",
3
+ "version": "3.1.1",
4
4
  "description": "Status plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,17 +33,17 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^47.2.1",
36
+ "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/analytics-next": "^11.0.0",
38
- "@atlaskit/editor-common": "^100.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
38
+ "@atlaskit/editor-common": "^101.0.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
42
42
  "@atlaskit/icon": "^24.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/status": "^3.0.0",
45
45
  "@atlaskit/theme": "^17.0.0",
46
- "@atlaskit/tokens": "^4.2.0",
46
+ "@atlaskit/tokens": "^4.3.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
@@ -106,9 +106,6 @@
106
106
  "platform_inline_node_as_valid_annotation_selection": {
107
107
  "type": "boolean"
108
108
  },
109
- "platform_editor_lego__inline_node_virtualization": {
110
- "type": "boolean"
111
- },
112
109
  "visual-refresh_drop_5": {
113
110
  "type": "boolean"
114
111
  }