@atlaskit/editor-plugin-date 4.0.0 → 4.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-date
2
2
 
3
+ ## 4.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
+ ## 4.0.1
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
  ## 4.0.0
4
31
 
5
32
  ### Major Changes
@@ -10,8 +10,8 @@ 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 _utils = require("@atlaskit/editor-common/utils");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _colors = require("@atlaskit/theme/colors");
14
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
15
  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; }
16
16
  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; }
17
17
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -24,7 +24,7 @@ var intl;
24
24
  * @returns
25
25
  */
26
26
  var dateNodeSpec = exports.dateNodeSpec = function dateNodeSpec() {
27
- if (isSSR || !(0, _platformFeatureFlags.fg)('platform_editor_lego__inline_node_virtualization')) {
27
+ if (isSSR || (0, _experiments.editorExperiment)("platform_editor_inline_node_virtualization", "off")) {
28
28
  return _adfSchema.date;
29
29
  }
30
30
  return _objectSpread(_objectSpread({}, _adfSchema.date), {}, {
@@ -2,8 +2,8 @@ import { createIntl } from 'react-intl-next';
2
2
  import { date } from '@atlaskit/adf-schema';
3
3
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
4
4
  import { timestampToString } from '@atlaskit/editor-common/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { N30A, N800 } from '@atlaskit/theme/colors';
6
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
7
  const isSSR = Boolean(process.env.REACT_SSR);
8
8
  let intl;
9
9
 
@@ -14,7 +14,7 @@ let intl;
14
14
  * @returns
15
15
  */
16
16
  export const dateNodeSpec = () => {
17
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
17
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
18
18
  return date;
19
19
  }
20
20
  return {
@@ -5,8 +5,8 @@ import { createIntl } from 'react-intl-next';
5
5
  import { date } from '@atlaskit/adf-schema';
6
6
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
7
7
  import { timestampToString } from '@atlaskit/editor-common/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { N30A, N800 } from '@atlaskit/theme/colors';
9
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
  var isSSR = Boolean(process.env.REACT_SSR);
11
11
  var intl;
12
12
 
@@ -17,7 +17,7 @@ var intl;
17
17
  * @returns
18
18
  */
19
19
  export var dateNodeSpec = function dateNodeSpec() {
20
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
20
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
21
21
  return date;
22
22
  }
23
23
  return _objectSpread(_objectSpread({}, date), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,24 +33,24 @@
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/calendar": "^17.1.0",
38
38
  "@atlaskit/css": "^0.10.0",
39
39
  "@atlaskit/date": "^2.0.0",
40
- "@atlaskit/editor-common": "^100.2.0",
41
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
42
- "@atlaskit/editor-plugin-annotation": "2.0.2",
40
+ "@atlaskit/editor-common": "^100.5.0",
41
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
42
+ "@atlaskit/editor-plugin-annotation": "2.1.0",
43
43
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
- "@atlaskit/editor-shared-styles": "^3.3.0",
46
+ "@atlaskit/editor-shared-styles": "^3.4.0",
47
47
  "@atlaskit/form": "^12.0.0",
48
48
  "@atlaskit/icon": "^24.1.0",
49
49
  "@atlaskit/locale": "^3.0.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/textfield": "8.0.0",
52
52
  "@atlaskit/theme": "^17.0.0",
53
- "@atlaskit/tokens": "^4.2.0",
53
+ "@atlaskit/tokens": "^4.3.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "date-fns": "^2.17.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -58,15 +58,15 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@atlaskit/editor-plugin-composition": "^1.3.0",
61
- "@atlaskit/editor-plugin-content-insertion": "^2.0.0",
61
+ "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
62
62
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
63
63
  "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
64
64
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
65
65
  "@atlaskit/editor-plugin-quick-insert": "^2.0.0",
66
66
  "@atlaskit/editor-plugin-selection": "^2.0.0",
67
- "@atlaskit/editor-plugin-table": "^10.1.0",
68
- "@atlaskit/editor-plugin-tasks-and-decisions": "^4.0.0",
69
- "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
67
+ "@atlaskit/editor-plugin-table": "^10.3.0",
68
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^4.1.0",
69
+ "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
70
70
  "@atlaskit/editor-plugin-width": "^3.0.0",
71
71
  "@testing-library/react": "^13.4.0"
72
72
  },
@@ -115,9 +115,6 @@
115
115
  },
116
116
  "platform_inline_node_as_valid_annotation_selection": {
117
117
  "type": "boolean"
118
- },
119
- "platform_editor_lego__inline_node_virtualization": {
120
- "type": "boolean"
121
118
  }
122
119
  }
123
120
  }