@atlaskit/editor-core 213.0.0 → 213.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 +13 -0
- package/dist/cjs/ui/PluginSlot/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/PluginSlot/index.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/PluginSlot/index.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +1 -0
- package/dist/types/presets/universal.d.ts +1 -0
- package/dist/types/presets/useUniversalPreset.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1 -0
- package/dist/types-ts4.5/presets/universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 213.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
|
|
8
|
+
EDITOR-1562 bump adf-schema for afm
|
|
9
|
+
- [`14595a9c17edc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14595a9c17edc) -
|
|
10
|
+
Exclude Editor PluginSlot components from SSR rendering
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 213.0.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
|
+
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
12
13
|
var _ErrorBoundary = require("../ErrorBoundary");
|
|
13
14
|
var _mountPluginHooks = require("./mount-plugin-hooks");
|
|
14
15
|
/**
|
|
@@ -36,7 +37,7 @@ var PluginSlot = function PluginSlot(_ref) {
|
|
|
36
37
|
dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
37
38
|
wrapperElement = _ref.wrapperElement,
|
|
38
39
|
pluginHooks = _ref.pluginHooks;
|
|
39
|
-
if (!items && !pluginHooks || !editorView) {
|
|
40
|
+
if (!items && !pluginHooks || !editorView && !(0, _expVal.expVal)('platform_editor_hydratable_ui', 'isEnabled', false)) {
|
|
40
41
|
return null;
|
|
41
42
|
}
|
|
42
43
|
return (0, _react2.jsx)(_ErrorBoundary.ErrorBoundary, {
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
11
12
|
import { ErrorBoundary } from '../ErrorBoundary';
|
|
12
13
|
import { MountPluginHooks } from './mount-plugin-hooks';
|
|
13
14
|
const pluginsComponentsWrapper = css({
|
|
@@ -29,7 +30,7 @@ const PluginSlot = ({
|
|
|
29
30
|
wrapperElement,
|
|
30
31
|
pluginHooks
|
|
31
32
|
}) => {
|
|
32
|
-
if (!items && !pluginHooks || !editorView) {
|
|
33
|
+
if (!items && !pluginHooks || !editorView && !expVal('platform_editor_hydratable_ui', 'isEnabled', false)) {
|
|
33
34
|
return null;
|
|
34
35
|
}
|
|
35
36
|
return jsx(ErrorBoundary, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "213.0.0";
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
11
12
|
import { ErrorBoundary } from '../ErrorBoundary';
|
|
12
13
|
import { MountPluginHooks } from './mount-plugin-hooks';
|
|
13
14
|
var pluginsComponentsWrapper = css({
|
|
@@ -28,7 +29,7 @@ var PluginSlot = function PluginSlot(_ref) {
|
|
|
28
29
|
dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
29
30
|
wrapperElement = _ref.wrapperElement,
|
|
30
31
|
pluginHooks = _ref.pluginHooks;
|
|
31
|
-
if (!items && !pluginHooks || !editorView) {
|
|
32
|
+
if (!items && !pluginHooks || !editorView && !expVal('platform_editor_hydratable_ui', 'isEnabled', false)) {
|
|
32
33
|
return null;
|
|
33
34
|
}
|
|
34
35
|
return jsx(ErrorBoundary, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "213.0.0";
|
|
@@ -201,6 +201,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
201
201
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
202
202
|
};
|
|
203
203
|
commands: {
|
|
204
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
204
205
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
205
206
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
206
207
|
};
|
|
@@ -260,6 +260,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
260
260
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
261
261
|
};
|
|
262
262
|
commands: {
|
|
263
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
263
264
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
264
265
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
265
266
|
};
|
|
@@ -201,6 +201,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
201
201
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
202
202
|
};
|
|
203
203
|
commands: {
|
|
204
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
204
205
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
205
206
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
206
207
|
};
|
|
@@ -316,6 +316,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
316
316
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
317
317
|
};
|
|
318
318
|
commands: {
|
|
319
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
319
320
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
320
321
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
321
322
|
};
|
|
@@ -375,6 +375,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
375
375
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
376
376
|
};
|
|
377
377
|
commands: {
|
|
378
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
378
379
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
379
380
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
380
381
|
};
|
|
@@ -316,6 +316,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
316
316
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
317
317
|
};
|
|
318
318
|
commands: {
|
|
319
|
+
toggleTaskList: (targetType?: "orderedList" | "bulletList" | "paragraph") => import("@atlaskit/editor-common/types").EditorCommand;
|
|
319
320
|
updateEditPermission: (hasEditPermission: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
320
321
|
updateHasRequestedEditPermission: (hasRequestedEditPermission: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
321
322
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "213.
|
|
3
|
+
"version": "213.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
42
|
-
"@atlaskit/adf-schema": "^51.1.
|
|
42
|
+
"@atlaskit/adf-schema": "^51.1.2",
|
|
43
43
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
44
44
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
45
45
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
46
46
|
"@atlaskit/button": "^23.4.0",
|
|
47
47
|
"@atlaskit/css": "^0.14.0",
|
|
48
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
48
|
+
"@atlaskit/editor-json-transformer": "^8.29.0",
|
|
49
49
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
50
50
|
"@atlaskit/editor-plugin-quick-insert": "^5.0.0",
|
|
51
51
|
"@atlaskit/editor-plugin-user-preferences": "^3.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"uuid": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atlaskit/editor-common": "^109.
|
|
83
|
+
"@atlaskit/editor-common": "^109.5.0",
|
|
84
84
|
"@atlaskit/link-provider": "^4.0.0",
|
|
85
85
|
"@atlaskit/media-core": "^37.0.0",
|
|
86
86
|
"react": "^18.2.0",
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@af/editor-libra": "workspace:^",
|
|
92
92
|
"@af/visual-regression": "workspace:^",
|
|
93
|
-
"@atlaskit/adf-utils": "^19.
|
|
93
|
+
"@atlaskit/adf-utils": "^19.23.0",
|
|
94
94
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
95
95
|
"@atlaskit/collab-provider": "^13.0.0",
|
|
96
|
-
"@atlaskit/editor-plugin-annotation": "^5.
|
|
97
|
-
"@atlaskit/editor-plugin-card": "^10.
|
|
98
|
-
"@atlaskit/editor-plugin-list": "^7.
|
|
99
|
-
"@atlaskit/editor-plugin-paste": "^6.
|
|
96
|
+
"@atlaskit/editor-plugin-annotation": "^5.3.0",
|
|
97
|
+
"@atlaskit/editor-plugin-card": "^10.1.0",
|
|
98
|
+
"@atlaskit/editor-plugin-list": "^7.2.0",
|
|
99
|
+
"@atlaskit/editor-plugin-paste": "^6.2.0",
|
|
100
100
|
"@atlaskit/link-provider": "^4.0.0",
|
|
101
101
|
"@atlaskit/logo": "^19.7.0",
|
|
102
102
|
"@atlaskit/media-core": "^37.0.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
105
105
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
106
106
|
"@atlaskit/primitives": "^14.14.0",
|
|
107
|
-
"@atlaskit/renderer": "^123.
|
|
107
|
+
"@atlaskit/renderer": "^123.1.0",
|
|
108
108
|
"@atlaskit/section-message": "^8.7.0",
|
|
109
109
|
"@atlaskit/smart-card": "^41.0.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|