@atlaskit/editor-core 193.8.7 → 193.8.10
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 +7 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +9 -1
- package/dist/types/presets/universal.d.ts +9 -1
- package/dist/types/presets/useUniversalPreset.d.ts +9 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +10 -0
- package/dist/types-ts4.5/presets/universal.d.ts +10 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +10 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.8.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83266](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83266) [`2ccef5c67079`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2ccef5c67079) - fix editor comment disabled state regression issue
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 193.8.7
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -293,7 +293,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
293
293
|
var wrapperElementRef = (0, _react.useMemo)(function () {
|
|
294
294
|
return innerRef || /*#__PURE__*/_react.default.createRef();
|
|
295
295
|
}, [innerRef]);
|
|
296
|
-
var _useState = (0, _react.useState)(
|
|
296
|
+
var _useState = (0, _react.useState)(false),
|
|
297
297
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
298
298
|
saveButtonDisabled = _useState2[0],
|
|
299
299
|
setSaveButtonDisabled = _useState2[1];
|
|
@@ -268,7 +268,7 @@ const EditorNext = props => {
|
|
|
268
268
|
|
|
269
269
|
// Wrapper container for toolbar and content area
|
|
270
270
|
const wrapperElementRef = useMemo(() => innerRef || /*#__PURE__*/React.createRef(), [innerRef]);
|
|
271
|
-
const [saveButtonDisabled, setSaveButtonDisabled] = useState(
|
|
271
|
+
const [saveButtonDisabled, setSaveButtonDisabled] = useState(false);
|
|
272
272
|
useEffect(() => {
|
|
273
273
|
if (mediaState) {
|
|
274
274
|
mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.8.
|
|
2
|
+
export const version = "193.8.10";
|
|
@@ -284,7 +284,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
284
284
|
var wrapperElementRef = useMemo(function () {
|
|
285
285
|
return innerRef || /*#__PURE__*/React.createRef();
|
|
286
286
|
}, [innerRef]);
|
|
287
|
-
var _useState = useState(
|
|
287
|
+
var _useState = useState(false),
|
|
288
288
|
_useState2 = _slicedToArray(_useState, 2),
|
|
289
289
|
saveButtonDisabled = _useState2[0],
|
|
290
290
|
setSaveButtonDisabled = _useState2[1];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.8.
|
|
2
|
+
export var version = "193.8.10";
|
|
@@ -1931,7 +1931,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1931
1931
|
commands: {
|
|
1932
1932
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1933
1933
|
};
|
|
1934
|
-
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1934
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
1935
|
+
dependencies: [];
|
|
1936
|
+
actions: {
|
|
1937
|
+
ariaNotify: (message: string) => void;
|
|
1938
|
+
};
|
|
1939
|
+
sharedState: {
|
|
1940
|
+
message: string;
|
|
1941
|
+
};
|
|
1942
|
+
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1935
1943
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1936
1944
|
sharedState: {
|
|
1937
1945
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -1948,7 +1948,15 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1948
1948
|
commands: {
|
|
1949
1949
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1950
1950
|
};
|
|
1951
|
-
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1951
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
1952
|
+
dependencies: [];
|
|
1953
|
+
actions: {
|
|
1954
|
+
ariaNotify: (message: string) => void;
|
|
1955
|
+
};
|
|
1956
|
+
sharedState: {
|
|
1957
|
+
message: string;
|
|
1958
|
+
};
|
|
1959
|
+
}, undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1952
1960
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1953
1961
|
sharedState: {
|
|
1954
1962
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
@@ -1934,7 +1934,15 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1934
1934
|
commands: {
|
|
1935
1935
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1936
1936
|
};
|
|
1937
|
-
dependencies: [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"
|
|
1937
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"accessibilityUtils", {
|
|
1938
|
+
dependencies: [];
|
|
1939
|
+
actions: {
|
|
1940
|
+
ariaNotify: (message: string) => void;
|
|
1941
|
+
};
|
|
1942
|
+
sharedState: {
|
|
1943
|
+
message: string;
|
|
1944
|
+
};
|
|
1945
|
+
}, undefined>>, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
1938
1946
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1939
1947
|
sharedState: {
|
|
1940
1948
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -2424,6 +2424,16 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2424
2424
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2425
2425
|
};
|
|
2426
2426
|
dependencies: [
|
|
2427
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
2428
|
+
dependencies: [
|
|
2429
|
+
];
|
|
2430
|
+
actions: {
|
|
2431
|
+
ariaNotify: (message: string) => void;
|
|
2432
|
+
};
|
|
2433
|
+
sharedState: {
|
|
2434
|
+
message: string;
|
|
2435
|
+
};
|
|
2436
|
+
}, undefined>>,
|
|
2427
2437
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2428
2438
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2429
2439
|
sharedState: {
|
|
@@ -2441,6 +2441,16 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2441
2441
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2442
2442
|
};
|
|
2443
2443
|
dependencies: [
|
|
2444
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
2445
|
+
dependencies: [
|
|
2446
|
+
];
|
|
2447
|
+
actions: {
|
|
2448
|
+
ariaNotify: (message: string) => void;
|
|
2449
|
+
};
|
|
2450
|
+
sharedState: {
|
|
2451
|
+
message: string;
|
|
2452
|
+
};
|
|
2453
|
+
}, undefined>>,
|
|
2444
2454
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2445
2455
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2446
2456
|
sharedState: {
|
|
@@ -2427,6 +2427,16 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2427
2427
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2428
2428
|
};
|
|
2429
2429
|
dependencies: [
|
|
2430
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"accessibilityUtils", {
|
|
2431
|
+
dependencies: [
|
|
2432
|
+
];
|
|
2433
|
+
actions: {
|
|
2434
|
+
ariaNotify: (message: string) => void;
|
|
2435
|
+
};
|
|
2436
|
+
sharedState: {
|
|
2437
|
+
message: string;
|
|
2438
|
+
};
|
|
2439
|
+
}, undefined>>,
|
|
2430
2440
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2431
2441
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2432
2442
|
sharedState: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.8.
|
|
3
|
+
"version": "193.8.10",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^17.
|
|
47
|
+
"@atlaskit/button": "^17.10.0",
|
|
48
48
|
"@atlaskit/editor-common": "^78.23.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^2.0.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@atlaskit/checkbox": "^13.1.0",
|
|
90
90
|
"@atlaskit/collab-provider": "9.25.15",
|
|
91
91
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
92
|
-
"@atlaskit/editor-plugin-annotation": "1.5.
|
|
92
|
+
"@atlaskit/editor-plugin-annotation": "1.5.6",
|
|
93
93
|
"@atlaskit/editor-plugin-card": "^1.4.0",
|
|
94
94
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
|
|
95
95
|
"@atlaskit/editor-plugin-list": "^3.1.5",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
105
105
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
106
106
|
"@atlaskit/primitives": "^5.5.0",
|
|
107
|
-
"@atlaskit/renderer": "^109.
|
|
108
|
-
"@atlaskit/select": "^17.
|
|
109
|
-
"@atlaskit/smart-card": "^26.
|
|
107
|
+
"@atlaskit/renderer": "^109.15.0",
|
|
108
|
+
"@atlaskit/select": "^17.5.0",
|
|
109
|
+
"@atlaskit/smart-card": "^26.52.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
111
111
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
112
112
|
"@atlaskit/visual-regression": "*",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
115
115
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
116
116
|
"@atlassian/link-picker-plugins": "^24.0.0",
|
|
117
|
-
"@atlassian/search-provider": "2.4.
|
|
117
|
+
"@atlassian/search-provider": "2.4.47",
|
|
118
118
|
"@atlassian/ufo": "^0.2.0",
|
|
119
119
|
"@emotion/jest": "^11.8.0",
|
|
120
120
|
"@storybook/addon-knobs": "^5.3.18",
|