@atlaskit/editor-core 205.2.3 → 205.2.4
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 +12 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +8 -19
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +8 -19
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +8 -19
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +7 -1
- package/dist/types/presets/universal.d.ts +7 -1
- package/dist/types/presets/useUniversalPreset.d.ts +7 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +9 -1
- package/dist/types-ts4.5/presets/universal.d.ts +9 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +9 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 205.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
|
|
8
|
+
[`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
|
|
9
|
+
[ux] Cleaned up platform_editor_controls_patch_1 FG
|
|
10
|
+
- [#138444](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138444)
|
|
11
|
+
[`344f769b251c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/344f769b251c6) -
|
|
12
|
+
[A11Y-10275] Copied status now works for screen users"
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 205.2.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -102,26 +102,15 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
105
|
-
if ((0,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (toolbarDocking !== 'top') {
|
|
111
|
-
primaryToolbarComponents = [];
|
|
112
|
-
}
|
|
113
|
-
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
114
|
-
isEditorToolbarHidden = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
} else {
|
|
118
|
-
if (toolbarDocking === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
119
|
-
exposure: true
|
|
120
|
-
})) {
|
|
105
|
+
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
106
|
+
exposure: true
|
|
107
|
+
})) {
|
|
108
|
+
var _primaryToolbarCompon;
|
|
109
|
+
if (toolbarDocking !== 'top') {
|
|
121
110
|
primaryToolbarComponents = [];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
111
|
+
}
|
|
112
|
+
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
113
|
+
isEditorToolbarHidden = true;
|
|
125
114
|
}
|
|
126
115
|
}
|
|
127
116
|
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
@@ -86,26 +86,15 @@ export const FullPageEditor = props => {
|
|
|
86
86
|
const {
|
|
87
87
|
customPrimaryToolbarComponents
|
|
88
88
|
} = props;
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (toolbarDocking !== 'top') {
|
|
95
|
-
primaryToolbarComponents = [];
|
|
96
|
-
}
|
|
97
|
-
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
98
|
-
isEditorToolbarHidden = true;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
} else {
|
|
102
|
-
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
103
|
-
exposure: true
|
|
104
|
-
})) {
|
|
89
|
+
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
90
|
+
exposure: true
|
|
91
|
+
})) {
|
|
92
|
+
var _primaryToolbarCompon;
|
|
93
|
+
if (toolbarDocking !== 'top') {
|
|
105
94
|
primaryToolbarComponents = [];
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
}
|
|
96
|
+
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
97
|
+
isEditorToolbarHidden = true;
|
|
109
98
|
}
|
|
110
99
|
}
|
|
111
100
|
const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "205.2.
|
|
2
|
+
export const version = "205.2.4";
|
|
@@ -91,26 +91,15 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (toolbarDocking !== 'top') {
|
|
100
|
-
primaryToolbarComponents = [];
|
|
101
|
-
}
|
|
102
|
-
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
103
|
-
isEditorToolbarHidden = true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
} else {
|
|
107
|
-
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
108
|
-
exposure: true
|
|
109
|
-
})) {
|
|
94
|
+
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
95
|
+
exposure: true
|
|
96
|
+
})) {
|
|
97
|
+
var _primaryToolbarCompon;
|
|
98
|
+
if (toolbarDocking !== 'top') {
|
|
110
99
|
primaryToolbarComponents = [];
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
}
|
|
101
|
+
if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
102
|
+
isEditorToolbarHidden = true;
|
|
114
103
|
}
|
|
115
104
|
}
|
|
116
105
|
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "205.2.
|
|
2
|
+
export var version = "205.2.4";
|
|
@@ -384,7 +384,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
384
384
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
385
385
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
386
386
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
387
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
387
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
388
|
+
dependencies: [];
|
|
389
|
+
actions: {
|
|
390
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
391
|
+
};
|
|
392
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
393
|
+
}, undefined>>];
|
|
388
394
|
actions: {
|
|
389
395
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
|
390
396
|
};
|
|
@@ -436,7 +436,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
436
436
|
sharedState: FeatureFlags;
|
|
437
437
|
}, FeatureFlags>>];
|
|
438
438
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
439
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
439
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
440
|
+
dependencies: [];
|
|
441
|
+
actions: {
|
|
442
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
443
|
+
};
|
|
444
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
445
|
+
}, undefined>>];
|
|
440
446
|
actions: {
|
|
441
447
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
|
442
448
|
};
|
|
@@ -384,7 +384,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
384
384
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
385
385
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
386
386
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
387
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
387
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
388
|
+
dependencies: [];
|
|
389
|
+
actions: {
|
|
390
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
391
|
+
};
|
|
392
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
393
|
+
}, undefined>>];
|
|
388
394
|
actions: {
|
|
389
395
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
|
390
396
|
};
|
|
@@ -534,7 +534,15 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
534
534
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
535
535
|
];
|
|
536
536
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
537
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
537
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
538
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
539
|
+
dependencies: [
|
|
540
|
+
];
|
|
541
|
+
actions: {
|
|
542
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
543
|
+
};
|
|
544
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
545
|
+
}, undefined>>
|
|
538
546
|
];
|
|
539
547
|
actions: {
|
|
540
548
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
|
@@ -586,7 +586,15 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
586
586
|
}, FeatureFlags>>
|
|
587
587
|
];
|
|
588
588
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
589
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
589
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
590
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
591
|
+
dependencies: [
|
|
592
|
+
];
|
|
593
|
+
actions: {
|
|
594
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
595
|
+
};
|
|
596
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
597
|
+
}, undefined>>
|
|
590
598
|
];
|
|
591
599
|
actions: {
|
|
592
600
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
|
@@ -534,7 +534,15 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
534
534
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
535
535
|
];
|
|
536
536
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
537
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
537
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
538
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
539
|
+
dependencies: [
|
|
540
|
+
];
|
|
541
|
+
actions: {
|
|
542
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
543
|
+
};
|
|
544
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
545
|
+
}, undefined>>
|
|
538
546
|
];
|
|
539
547
|
actions: {
|
|
540
548
|
processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "205.2.
|
|
3
|
+
"version": "205.2.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -580,10 +580,6 @@
|
|
|
580
580
|
"type": "boolean",
|
|
581
581
|
"referenceOnly": true
|
|
582
582
|
},
|
|
583
|
-
"platform_editor_controls_patch_1": {
|
|
584
|
-
"type": "boolean",
|
|
585
|
-
"referenceOnly": true
|
|
586
|
-
},
|
|
587
583
|
"platform_editor_controls_patch_2": {
|
|
588
584
|
"type": "boolean",
|
|
589
585
|
"referenceOnly": true
|
|
@@ -643,6 +639,10 @@
|
|
|
643
639
|
"platform_editor_add_alignment_tracking": {
|
|
644
640
|
"type": "boolean",
|
|
645
641
|
"referenceOnly": true
|
|
642
|
+
},
|
|
643
|
+
"editor_a11y_aria_announcement_for_copied_status": {
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"referenceOnly": true
|
|
646
646
|
}
|
|
647
647
|
},
|
|
648
648
|
"stricter": {
|