@atlaskit/editor-core 242.0.8 → 242.0.9
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 +9 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 242.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`51b55d41ca6c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51b55d41ca6c1) -
|
|
8
|
+
Clean up experiment `platform_editor_viewmode_aria_readonly_a11y`; the editor now always sets
|
|
9
|
+
`aria-readonly="true"` in view mode.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 242.0.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -923,7 +923,7 @@ function ReactEditorView(props) {
|
|
|
923
923
|
};
|
|
924
924
|
var doc = (0, _profileSSROperation.profileSSROperation)("".concat(SSR_TRACE_SEGMENT_NAME, "/buildDoc"), doBuildDoc, onSSRMeasure);
|
|
925
925
|
var isViewMode = ((_pluginInjectionAPI$c6 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c6 === void 0 || (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c6.editorViewMode) === null || _pluginInjectionAPI$c6 === void 0 || (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c6.sharedState.currentState()) === null || _pluginInjectionAPI$c6 === void 0 ? void 0 : _pluginInjectionAPI$c6.mode) === 'view';
|
|
926
|
-
var ariaReadonly = isViewMode
|
|
926
|
+
var ariaReadonly = isViewMode ? 'true' : undefined;
|
|
927
927
|
|
|
928
928
|
// When the optimistic toolbar needs initial state, create SSR-safe PM plugins and EditorState
|
|
929
929
|
// HERE in ssrDeps — before any children render — so that FullPageToolbarNext can read correct
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "242.0.
|
|
9
|
+
var version = exports.version = "242.0.8";
|
|
@@ -865,7 +865,7 @@ export function ReactEditorView(props) {
|
|
|
865
865
|
const doBuildDoc = () => buildDoc(schema);
|
|
866
866
|
const doc = profileSSROperation(`${SSR_TRACE_SEGMENT_NAME}/buildDoc`, doBuildDoc, onSSRMeasure);
|
|
867
867
|
const isViewMode = ((_pluginInjectionAPI$c0 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c0 === void 0 ? void 0 : (_pluginInjectionAPI$c1 = _pluginInjectionAPI$c0.editorViewMode) === null || _pluginInjectionAPI$c1 === void 0 ? void 0 : (_pluginInjectionAPI$c10 = _pluginInjectionAPI$c1.sharedState.currentState()) === null || _pluginInjectionAPI$c10 === void 0 ? void 0 : _pluginInjectionAPI$c10.mode) === 'view';
|
|
868
|
-
const ariaReadonly = isViewMode
|
|
868
|
+
const ariaReadonly = isViewMode ? 'true' : undefined;
|
|
869
869
|
|
|
870
870
|
// When the optimistic toolbar needs initial state, create SSR-safe PM plugins and EditorState
|
|
871
871
|
// HERE in ssrDeps — before any children render — so that FullPageToolbarNext can read correct
|
|
@@ -914,7 +914,7 @@ export function ReactEditorView(props) {
|
|
|
914
914
|
};
|
|
915
915
|
var doc = profileSSROperation("".concat(SSR_TRACE_SEGMENT_NAME, "/buildDoc"), doBuildDoc, onSSRMeasure);
|
|
916
916
|
var isViewMode = ((_pluginInjectionAPI$c6 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c6 === void 0 || (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c6.editorViewMode) === null || _pluginInjectionAPI$c6 === void 0 || (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c6.sharedState.currentState()) === null || _pluginInjectionAPI$c6 === void 0 ? void 0 : _pluginInjectionAPI$c6.mode) === 'view';
|
|
917
|
-
var ariaReadonly = isViewMode
|
|
917
|
+
var ariaReadonly = isViewMode ? 'true' : undefined;
|
|
918
918
|
|
|
919
919
|
// When the optimistic toolbar needs initial state, create SSR-safe PM plugins and EditorState
|
|
920
920
|
// HERE in ssrDeps — before any children render — so that FullPageToolbarNext can read correct
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "242.0.
|
|
3
|
+
"version": "242.0.9",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^8.3.0",
|
|
77
77
|
"@atlaskit/task-decision": "^21.14.0",
|
|
78
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
78
|
+
"@atlaskit/tmp-editor-statsig": "^252.0.0",
|
|
79
79
|
"@atlaskit/tokens": "^20.9.0",
|
|
80
80
|
"@atlaskit/tooltip": "^24.4.0",
|
|
81
81
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"uuid": "^11.1.1"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@atlaskit/editor-common": "^134.
|
|
94
|
+
"@atlaskit/editor-common": "^134.5.0",
|
|
95
95
|
"@atlaskit/link-provider": "^6.0.0",
|
|
96
96
|
"@atlaskit/media-core": "^39.0.0",
|
|
97
97
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"@atlaskit/collab-provider": "^39.1.0",
|
|
112
112
|
"@atlaskit/docs": "^12.3.0",
|
|
113
113
|
"@atlaskit/drawer": "^14.3.0",
|
|
114
|
+
"@atlaskit/editor-common": "^134.5.0",
|
|
114
115
|
"@atlaskit/editor-plugin-alignment": "^31.1.0",
|
|
115
116
|
"@atlaskit/editor-plugin-annotation": "^30.0.0",
|
|
116
117
|
"@atlaskit/editor-plugin-base": "^31.0.0",
|