@atlaskit/editor-core 219.0.5 → 219.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,24 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 219.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
8
+ Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 219.0.6
15
+
16
+ ### Patch Changes
17
+
18
+ - [`01bfb2823034b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01bfb2823034b) -
19
+ Expands automatic accessibility (a11y) Playwright test coverage for Platform
20
+ - Updated dependencies
21
+
3
22
  ## 219.0.5
4
23
 
5
24
  ### Patch Changes
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.EditorInternal = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _react = require("react");
@@ -81,16 +80,9 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
81
80
  createAnalyticsEvent: createAnalyticsEvent,
82
81
  contextIdentifierProvider: props.contextIdentifierProvider,
83
82
  featureFlags: featureFlags
84
- }, (0, _react2.jsx)("div", (0, _extends2.default)({
83
+ }, (0, _react2.jsx)("div", {
85
84
  css: editorContainerStyles
86
- // eslint-disable-next-line react/jsx-props-no-spreading
87
- }, (0, _expValEquals.expValEquals)('cc_fix_hydration_ttvc', 'isEnabled', true) && !(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? process.env.REACT_SSR ? {
88
- 'data-vc-ignore-if-no-layout-shift': true,
89
- 'data-ssr-placeholder': 'fallback'
90
- } : {
91
- 'data-vc-ignore-if-no-layout-shift': true,
92
- 'data-ssr-placeholder-replace': 'fallback'
93
- } : {}), (0, _react2.jsx)(_EditorContext.default, {
85
+ }, (0, _react2.jsx)(_EditorContext.default, {
94
86
  editorActions: editorActions
95
87
  }, (0, _react2.jsx)(_IntlProviderIfMissingWrapper.IntlProviderIfMissingWrapper, null, (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ReactEditorView.default, {
96
88
  editorProps: overriddenEditorProps,
@@ -763,13 +763,13 @@ function ReactEditorView(props) {
763
763
  "aria-describedby": assistiveDescribedBy,
764
764
  "data-editor-id": editorId.current,
765
765
  "data-vc-ignore-if-no-layout-shift": true,
766
- "data-ssr-placeholder": (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
767
- "data-ssr-placeholder-replace": (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
766
+ "data-ssr-placeholder": "editor-view",
767
+ "data-ssr-placeholder-replace": "editor-view"
768
768
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
769
769
  ,
770
- dangerouslySetInnerHTML: (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? {
770
+ dangerouslySetInnerHTML: {
771
771
  __html: ''
772
- } : undefined
772
+ }
773
773
  }));
774
774
  }, [handleEditorViewRef, isPageAppearance, props.intl]);
775
775
  var previousPreset = (0, _hooks.usePreviousState)(preset);
@@ -8,11 +8,9 @@ exports.default = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = require("react");
10
10
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  /**
13
12
  * ExcludeFromHydration component delays rendering of its children until after the initial
14
- * hydration phase, based on a feature flag check. If the feature flag is disabled,
15
- * it will render children immediately after hydration.
13
+ * hydration phase. It renders the fallback during SSR/hydration and children after.
16
14
  * @param children - The content to render after hydration
17
15
  * @param fallback - Optional fallback content to render during hydration (e.g., a placeholder to prevent layout shift)
18
16
  * @returns
@@ -31,7 +29,7 @@ function ExcludeFromHydration(_ref) {
31
29
  }
32
30
  setShouldRender(true);
33
31
  }, []);
34
- if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && !shouldRender) {
32
+ if (!shouldRender) {
35
33
  return fallback !== null && fallback !== void 0 ? fallback : null;
36
34
  }
37
35
  return children;
@@ -37,7 +37,7 @@ var PluginSlot = function PluginSlot(_ref) {
37
37
  dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
38
38
  wrapperElement = _ref.wrapperElement,
39
39
  pluginHooks = _ref.pluginHooks;
40
- if (!items && !pluginHooks || !editorView && !(0, _expVal.expVal)('platform_editor_hydratable_ui', 'isEnabled', false)) {
40
+ if (!items && !pluginHooks) {
41
41
  return null;
42
42
  }
43
43
  return (0, _react2.jsx)(_ErrorBoundary.ErrorBoundary, {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "219.0.4";
8
+ var version = exports.version = "0.0.0-development";
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -68,16 +67,9 @@ export const EditorInternal = /*#__PURE__*/memo(({
68
67
  createAnalyticsEvent: createAnalyticsEvent,
69
68
  contextIdentifierProvider: props.contextIdentifierProvider,
70
69
  featureFlags: featureFlags
71
- }, jsx("div", _extends({
70
+ }, jsx("div", {
72
71
  css: editorContainerStyles
73
- // eslint-disable-next-line react/jsx-props-no-spreading
74
- }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) && !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? process.env.REACT_SSR ? {
75
- 'data-vc-ignore-if-no-layout-shift': true,
76
- 'data-ssr-placeholder': 'fallback'
77
- } : {
78
- 'data-vc-ignore-if-no-layout-shift': true,
79
- 'data-ssr-placeholder-replace': 'fallback'
80
- } : {}), jsx(EditorContext, {
72
+ }, jsx(EditorContext, {
81
73
  editorActions: editorActions
82
74
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
83
75
  editorProps: overriddenEditorProps,
@@ -715,13 +715,13 @@ export function ReactEditorView(props) {
715
715
  "aria-describedby": assistiveDescribedBy,
716
716
  "data-editor-id": editorId.current,
717
717
  "data-vc-ignore-if-no-layout-shift": true,
718
- "data-ssr-placeholder": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
719
- "data-ssr-placeholder-replace": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
718
+ "data-ssr-placeholder": "editor-view",
719
+ "data-ssr-placeholder-replace": "editor-view"
720
720
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
721
721
  ,
722
- dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
722
+ dangerouslySetInnerHTML: {
723
723
  __html: ''
724
- } : undefined
724
+ }
725
725
  }));
726
726
  }, [handleEditorViewRef, isPageAppearance, props.intl]);
727
727
  const previousPreset = usePreviousState(preset);
@@ -1,11 +1,9 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { isSSR } from '@atlaskit/editor-common/core-utils';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
 
5
4
  /**
6
5
  * ExcludeFromHydration component delays rendering of its children until after the initial
7
- * hydration phase, based on a feature flag check. If the feature flag is disabled,
8
- * it will render children immediately after hydration.
6
+ * hydration phase. It renders the fallback during SSR/hydration and children after.
9
7
  * @param children - The content to render after hydration
10
8
  * @param fallback - Optional fallback content to render during hydration (e.g., a placeholder to prevent layout shift)
11
9
  * @returns
@@ -21,7 +19,7 @@ function ExcludeFromHydration({
21
19
  }
22
20
  setShouldRender(true);
23
21
  }, []);
24
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !shouldRender) {
22
+ if (!shouldRender) {
25
23
  return fallback !== null && fallback !== void 0 ? fallback : null;
26
24
  }
27
25
  return children;
@@ -30,7 +30,7 @@ const PluginSlot = ({
30
30
  wrapperElement,
31
31
  pluginHooks
32
32
  }) => {
33
- if (!items && !pluginHooks || !editorView && !expVal('platform_editor_hydratable_ui', 'isEnabled', false)) {
33
+ if (!items && !pluginHooks) {
34
34
  return null;
35
35
  }
36
36
  return jsx(ErrorBoundary, {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "219.0.4";
2
+ export const version = "0.0.0-development";
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
3
  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; }
@@ -76,16 +75,9 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
76
75
  createAnalyticsEvent: createAnalyticsEvent,
77
76
  contextIdentifierProvider: props.contextIdentifierProvider,
78
77
  featureFlags: featureFlags
79
- }, jsx("div", _extends({
78
+ }, jsx("div", {
80
79
  css: editorContainerStyles
81
- // eslint-disable-next-line react/jsx-props-no-spreading
82
- }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) && !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? process.env.REACT_SSR ? {
83
- 'data-vc-ignore-if-no-layout-shift': true,
84
- 'data-ssr-placeholder': 'fallback'
85
- } : {
86
- 'data-vc-ignore-if-no-layout-shift': true,
87
- 'data-ssr-placeholder-replace': 'fallback'
88
- } : {}), jsx(EditorContext, {
80
+ }, jsx(EditorContext, {
89
81
  editorActions: editorActions
90
82
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
91
83
  editorProps: overriddenEditorProps,
@@ -754,13 +754,13 @@ export function ReactEditorView(props) {
754
754
  "aria-describedby": assistiveDescribedBy,
755
755
  "data-editor-id": editorId.current,
756
756
  "data-vc-ignore-if-no-layout-shift": true,
757
- "data-ssr-placeholder": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
758
- "data-ssr-placeholder-replace": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
757
+ "data-ssr-placeholder": "editor-view",
758
+ "data-ssr-placeholder-replace": "editor-view"
759
759
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
760
760
  ,
761
- dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
761
+ dangerouslySetInnerHTML: {
762
762
  __html: ''
763
- } : undefined
763
+ }
764
764
  }));
765
765
  }, [handleEditorViewRef, isPageAppearance, props.intl]);
766
766
  var previousPreset = usePreviousState(preset);
@@ -1,12 +1,10 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { useEffect, useState } from 'react';
3
3
  import { isSSR } from '@atlaskit/editor-common/core-utils';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
 
6
5
  /**
7
6
  * ExcludeFromHydration component delays rendering of its children until after the initial
8
- * hydration phase, based on a feature flag check. If the feature flag is disabled,
9
- * it will render children immediately after hydration.
7
+ * hydration phase. It renders the fallback during SSR/hydration and children after.
10
8
  * @param children - The content to render after hydration
11
9
  * @param fallback - Optional fallback content to render during hydration (e.g., a placeholder to prevent layout shift)
12
10
  * @returns
@@ -25,7 +23,7 @@ function ExcludeFromHydration(_ref) {
25
23
  }
26
24
  setShouldRender(true);
27
25
  }, []);
28
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !shouldRender) {
26
+ if (!shouldRender) {
29
27
  return fallback !== null && fallback !== void 0 ? fallback : null;
30
28
  }
31
29
  return children;
@@ -29,7 +29,7 @@ var PluginSlot = function PluginSlot(_ref) {
29
29
  dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
30
30
  wrapperElement = _ref.wrapperElement,
31
31
  pluginHooks = _ref.pluginHooks;
32
- if (!items && !pluginHooks || !editorView && !expVal('platform_editor_hydratable_ui', 'isEnabled', false)) {
32
+ if (!items && !pluginHooks) {
33
33
  return null;
34
34
  }
35
35
  return jsx(ErrorBoundary, {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "219.0.4";
2
+ export var version = "0.0.0-development";
@@ -1,8 +1,7 @@
1
1
  import type React from 'react';
2
2
  /**
3
3
  * ExcludeFromHydration component delays rendering of its children until after the initial
4
- * hydration phase, based on a feature flag check. If the feature flag is disabled,
5
- * it will render children immediately after hydration.
4
+ * hydration phase. It renders the fallback during SSR/hydration and children after.
6
5
  * @param children - The content to render after hydration
7
6
  * @param fallback - Optional fallback content to render during hydration (e.g., a placeholder to prevent layout shift)
8
7
  * @returns
@@ -1,8 +1,7 @@
1
1
  import type React from 'react';
2
2
  /**
3
3
  * ExcludeFromHydration component delays rendering of its children until after the initial
4
- * hydration phase, based on a feature flag check. If the feature flag is disabled,
5
- * it will render children immediately after hydration.
4
+ * hydration phase. It renders the fallback during SSR/hydration and children after.
6
5
  * @param children - The content to render after hydration
7
6
  * @param fallback - Optional fallback content to render during hydration (e.g., a placeholder to prevent layout shift)
8
7
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "219.0.5",
3
+ "version": "219.1.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -56,12 +56,12 @@
56
56
  "@atlaskit/editor-json-transformer": "^8.31.0",
57
57
  "@atlaskit/editor-performance-metrics": "^2.1.0",
58
58
  "@atlaskit/editor-plugin-connectivity": "^10.0.0",
59
- "@atlaskit/editor-plugin-quick-insert": "^10.0.0",
59
+ "@atlaskit/editor-plugin-quick-insert": "^10.1.0",
60
60
  "@atlaskit/editor-plugin-user-preferences": "^8.0.0",
61
61
  "@atlaskit/editor-plugins": "^13.0.0",
62
62
  "@atlaskit/editor-prosemirror": "^7.3.0",
63
63
  "@atlaskit/editor-shared-styles": "^3.10.0",
64
- "@atlaskit/editor-ssr-renderer": "^5.0.0",
64
+ "@atlaskit/editor-ssr-renderer": "^5.1.0",
65
65
  "@atlaskit/editor-toolbar": "^1.0.0",
66
66
  "@atlaskit/editor-toolbar-model": "^0.4.0",
67
67
  "@atlaskit/emoji": "^70.1.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
75
75
  "@atlaskit/react-ufo": "^5.16.0",
76
76
  "@atlaskit/task-decision": "^20.0.0",
77
- "@atlaskit/tmp-editor-statsig": "^64.0.0",
77
+ "@atlaskit/tmp-editor-statsig": "^65.0.0",
78
78
  "@atlaskit/tokens": "^13.0.0",
79
79
  "@atlaskit/tooltip": "^21.1.0",
80
80
  "@atlaskit/width-detector": "^5.1.0",
@@ -105,8 +105,8 @@
105
105
  "@atlaskit/adf-utils": "^19.27.0",
106
106
  "@atlaskit/analytics-listeners": "^10.0.0",
107
107
  "@atlaskit/collab-provider": "^18.0.0",
108
- "@atlaskit/editor-plugin-annotation": "^10.0.0",
109
- "@atlaskit/editor-plugin-card": "^16.1.0",
108
+ "@atlaskit/editor-plugin-annotation": "^10.1.0",
109
+ "@atlaskit/editor-plugin-card": "^16.2.0",
110
110
  "@atlaskit/editor-plugin-list": "^12.0.0",
111
111
  "@atlaskit/editor-plugin-paste": "^11.0.0",
112
112
  "@atlaskit/editor-test-helpers": "workspace:^",
@@ -116,15 +116,16 @@
116
116
  "@atlaskit/media-core": "^37.0.0",
117
117
  "@atlaskit/media-integration-test-helpers": "workspace:^",
118
118
  "@atlaskit/media-test-helpers": "^41.0.0",
119
- "@atlaskit/modal-dialog": "^14.16.0",
119
+ "@atlaskit/modal-dialog": "^14.17.0",
120
120
  "@atlaskit/renderer": "^130.2.0",
121
121
  "@atlaskit/section-message": "^8.12.0",
122
122
  "@atlaskit/synchrony-test-helpers": "workspace:^",
123
123
  "@atlaskit/toggle": "^15.6.0",
124
124
  "@atlaskit/util-data-test": "^18.5.0",
125
125
  "@atlassian/a11y-jest-testing": "^0.11.0",
126
+ "@atlassian/a11y-playwright-testing": "^0.9.0",
126
127
  "@atlassian/adf-schema-json": "^1.33.0",
127
- "@atlassian/editor-rovo-bridge": "^8.2.0",
128
+ "@atlassian/editor-rovo-bridge": "^8.3.0",
128
129
  "@atlassian/feature-flags-test-utils": "^1.0.0",
129
130
  "@atlassian/react-compiler-gating": "workspace:^",
130
131
  "@atlassian/search-client": "^1.1.0",