@atlaskit/editor-core 215.16.0 → 215.17.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 +19 -0
- package/dist/cjs/composable-editor/editor-internal.js +11 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +11 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +11 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e389ee54c1f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e389ee54c1f1) -
|
|
8
|
+
Update gates to roll out minor updates faster
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 215.17.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`fdef841890edf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdef841890edf) -
|
|
16
|
+
Add gate for vc fixes
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 215.16.0
|
|
4
23
|
|
|
5
24
|
### 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,
|
|
@@ -228,7 +228,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
228
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
229
229
|
(0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc') && _smartCardStyles.smartCardDiffStyles,
|
|
230
230
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
231
|
-
(0, _platformFeatureFlags.fg)('
|
|
231
|
+
(0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && _smartCardStyles.showDiffDeletedNodeStyles,
|
|
232
232
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
233
233
|
_mediaStyles.mediaStyles, (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') &&
|
|
234
234
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -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,
|
|
@@ -224,7 +224,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
224
224
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
225
225
|
fg('platform_editor_ai_generic_prep_for_aifc') && smartCardDiffStyles,
|
|
226
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
227
|
-
fg('
|
|
227
|
+
fg('platform_editor_ai_generic_prep_for_aifc_2') && showDiffDeletedNodeStyles,
|
|
228
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
229
229
|
mediaStyles, expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') &&
|
|
230
230
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.17.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,
|
|
@@ -220,7 +220,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
220
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
221
221
|
fg('platform_editor_ai_generic_prep_for_aifc') && smartCardDiffStyles,
|
|
222
222
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
223
|
-
fg('
|
|
223
|
+
fg('platform_editor_ai_generic_prep_for_aifc_2') && showDiffDeletedNodeStyles,
|
|
224
224
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
225
225
|
mediaStyles, expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') &&
|
|
226
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.17.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.17.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/css": "^0.17.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
50
50
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
51
|
-
"@atlaskit/editor-plugin-quick-insert": "^6.
|
|
51
|
+
"@atlaskit/editor-plugin-quick-insert": "^6.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
53
53
|
"@atlaskit/editor-plugins": "^11.1.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -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",
|
|
@@ -159,6 +159,9 @@
|
|
|
159
159
|
"type": "boolean",
|
|
160
160
|
"referenceOnly": true
|
|
161
161
|
},
|
|
162
|
+
"platform_editor_ai_generic_prep_for_aifc_2": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
162
165
|
"editor_inline_comments_on_inline_nodes": {
|
|
163
166
|
"type": "boolean",
|
|
164
167
|
"referenceOnly": "true"
|
|
@@ -381,9 +384,6 @@
|
|
|
381
384
|
"platform_editor_nov_a11y_fixes": {
|
|
382
385
|
"type": "boolean"
|
|
383
386
|
},
|
|
384
|
-
"platform_editor_ai_aifc_patch_beta_2": {
|
|
385
|
-
"type": "boolean"
|
|
386
|
-
},
|
|
387
387
|
"platform_editor_table_width_refactor": {
|
|
388
388
|
"type": "boolean",
|
|
389
389
|
"referenceOnly": true
|