@atlaskit/editor-core 215.16.0 → 215.17.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 +11 -0
- package/dist/cjs/composable-editor/editor-internal.js +11 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +11 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +11 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fdef841890edf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdef841890edf) -
|
|
8
|
+
Add gate for vc fixes
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 215.16.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -5,6 +5,7 @@ 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"));
|
|
8
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _react = require("react");
|
|
@@ -12,6 +13,7 @@ var _react2 = require("@emotion/react");
|
|
|
12
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
14
|
var _portal = require("@atlaskit/editor-common/portal");
|
|
14
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
17
|
var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
|
|
16
18
|
var _ReactEditorView = _interopRequireDefault(require("../create-editor/ReactEditorView"));
|
|
17
19
|
var _EditorContext = _interopRequireDefault(require("../ui/EditorContext"));
|
|
@@ -77,9 +79,16 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
77
79
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
78
80
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
79
81
|
featureFlags: featureFlags
|
|
80
|
-
}, (0, _react2.jsx)("div", {
|
|
82
|
+
}, (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
81
83
|
css: editorContainerStyles
|
|
82
|
-
|
|
84
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
85
|
+
}, (0, _expValEquals.expValEquals)('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
|
|
86
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
87
|
+
'data-ssr-placeholder': 'fallback'
|
|
88
|
+
} : {
|
|
89
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
90
|
+
'data-ssr-placeholder-replace': 'fallback'
|
|
91
|
+
} : {}), (0, _react2.jsx)(_EditorContext.default, {
|
|
83
92
|
editorActions: editorActions
|
|
84
93
|
}, (0, _react2.jsx)(_IntlProviderIfMissingWrapper.IntlProviderIfMissingWrapper, null, (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ReactEditorView.default, {
|
|
85
94
|
editorProps: overriddenEditorProps,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -9,6 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
10
|
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
10
11
|
import { usePortalProvider } from '@atlaskit/editor-common/portal';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
14
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
13
15
|
import ReactEditorViewNext from '../create-editor/ReactEditorView';
|
|
14
16
|
import EditorContext from '../ui/EditorContext';
|
|
@@ -65,9 +67,16 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
65
67
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
66
68
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
67
69
|
featureFlags: featureFlags
|
|
68
|
-
}, jsx("div", {
|
|
70
|
+
}, jsx("div", _extends({
|
|
69
71
|
css: editorContainerStyles
|
|
70
|
-
|
|
72
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
73
|
+
}, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
|
|
74
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
75
|
+
'data-ssr-placeholder': 'fallback'
|
|
76
|
+
} : {
|
|
77
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
78
|
+
'data-ssr-placeholder-replace': 'fallback'
|
|
79
|
+
} : {}), jsx(EditorContext, {
|
|
71
80
|
editorActions: editorActions
|
|
72
81
|
}, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
|
|
73
82
|
editorProps: overriddenEditorProps,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.16.0";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
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; }
|
|
@@ -13,6 +14,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
14
|
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
14
15
|
import { usePortalProvider } from '@atlaskit/editor-common/portal';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
18
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
17
19
|
import ReactEditorViewNext from '../create-editor/ReactEditorView';
|
|
18
20
|
import EditorContext from '../ui/EditorContext';
|
|
@@ -73,9 +75,16 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
73
75
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
74
76
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
75
77
|
featureFlags: featureFlags
|
|
76
|
-
}, jsx("div", {
|
|
78
|
+
}, jsx("div", _extends({
|
|
77
79
|
css: editorContainerStyles
|
|
78
|
-
|
|
80
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
81
|
+
}, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
|
|
82
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
83
|
+
'data-ssr-placeholder': 'fallback'
|
|
84
|
+
} : {
|
|
85
|
+
'data-vc-ignore-if-no-layout-shift': true,
|
|
86
|
+
'data-ssr-placeholder-replace': 'fallback'
|
|
87
|
+
} : {}), jsx(EditorContext, {
|
|
79
88
|
editorActions: editorActions
|
|
80
89
|
}, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
|
|
81
90
|
editorProps: overriddenEditorProps,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.16.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.17.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^14.6.0",
|
|
68
68
|
"@atlaskit/tokens": "^8.4.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.10.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|