@atlaskit/editor-plugin-floating-toolbar 0.7.12 → 0.7.14
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/plugin.js +5 -2
- package/dist/cjs/ui/Toolbar.js +3 -2
- package/dist/es2019/plugin.js +4 -2
- package/dist/es2019/ui/Toolbar.js +3 -2
- package/dist/esm/plugin.js +5 -2
- package/dist/esm/ui/Toolbar.js +3 -2
- package/dist/types/ui/Toolbar.d.ts +1 -0
- package/dist/types-ts4.5/ui/Toolbar.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.7.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
8
|
+
- [#56822](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56822) [`77f4fbf44e93`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77f4fbf44e93) - ECA11Y-78: Added announce for the selected file
|
|
9
|
+
|
|
10
|
+
## 0.7.13
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763) [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) - update ADF schema
|
|
15
|
+
|
|
3
16
|
## 0.7.12
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -228,7 +228,9 @@ function ContentComponent(_ref5) {
|
|
|
228
228
|
right: 0,
|
|
229
229
|
bottom: 0
|
|
230
230
|
} : _config$absoluteOffse,
|
|
231
|
-
focusTrap = config.focusTrap
|
|
231
|
+
focusTrap = config.focusTrap,
|
|
232
|
+
_config$mediaAssistiv = config.mediaAssistiveMessage,
|
|
233
|
+
mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv;
|
|
232
234
|
var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
233
235
|
if (!targetRef || editorDisabledState && editorDisabledState.editorDisabled) {
|
|
234
236
|
return null;
|
|
@@ -298,7 +300,8 @@ function ContentComponent(_ref5) {
|
|
|
298
300
|
extensionsProvider: providers.extensionProvider,
|
|
299
301
|
scrollable: scrollable,
|
|
300
302
|
featureFlags: featureFlags,
|
|
301
|
-
api: pluginInjectionApi
|
|
303
|
+
api: pluginInjectionApi,
|
|
304
|
+
mediaAssistiveMessage: mediaAssistiveMessage
|
|
302
305
|
});
|
|
303
306
|
}
|
|
304
307
|
})), /*#__PURE__*/_react.default.createElement(_ConfirmationModal.ConfirmationModal, {
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -375,7 +375,8 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
375
375
|
className = _this$props2.className,
|
|
376
376
|
node = _this$props2.node,
|
|
377
377
|
intl = _this$props2.intl,
|
|
378
|
-
scrollable = _this$props2.scrollable
|
|
378
|
+
scrollable = _this$props2.scrollable,
|
|
379
|
+
mediaAssistiveMessage = _this$props2.mediaAssistiveMessage;
|
|
379
380
|
if (!items || !items.length) {
|
|
380
381
|
return null;
|
|
381
382
|
}
|
|
@@ -408,7 +409,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
408
409
|
"data-testid": "editor-floating-toolbar",
|
|
409
410
|
className: className
|
|
410
411
|
}, (0, _react2.jsx)(_ui.Announcer, {
|
|
411
|
-
text: intl.formatMessage(_messages.default.floatingToolbarAnnouncer),
|
|
412
|
+
text: mediaAssistiveMessage ? "".concat(mediaAssistiveMessage, ", ").concat(intl.formatMessage(_messages.default.floatingToolbarAnnouncer)) : intl.formatMessage(_messages.default.floatingToolbarAnnouncer),
|
|
412
413
|
delay: 250
|
|
413
414
|
}), (0, _react2.jsx)("div", {
|
|
414
415
|
"data-testid": "floating-toolbar-items",
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -216,7 +216,8 @@ function ContentComponent({
|
|
|
216
216
|
right: 0,
|
|
217
217
|
bottom: 0
|
|
218
218
|
},
|
|
219
|
-
focusTrap
|
|
219
|
+
focusTrap,
|
|
220
|
+
mediaAssistiveMessage = ''
|
|
220
221
|
} = config;
|
|
221
222
|
const targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
222
223
|
if (!targetRef || editorDisabledState && editorDisabledState.editorDisabled) {
|
|
@@ -284,7 +285,8 @@ function ContentComponent({
|
|
|
284
285
|
extensionsProvider: providers.extensionProvider,
|
|
285
286
|
scrollable: scrollable,
|
|
286
287
|
featureFlags: featureFlags,
|
|
287
|
-
api: pluginInjectionApi
|
|
288
|
+
api: pluginInjectionApi,
|
|
289
|
+
mediaAssistiveMessage: mediaAssistiveMessage
|
|
288
290
|
});
|
|
289
291
|
}
|
|
290
292
|
})), /*#__PURE__*/React.createElement(ConfirmationModal, {
|
|
@@ -373,7 +373,8 @@ class Toolbar extends Component {
|
|
|
373
373
|
className,
|
|
374
374
|
node,
|
|
375
375
|
intl,
|
|
376
|
-
scrollable
|
|
376
|
+
scrollable,
|
|
377
|
+
mediaAssistiveMessage
|
|
377
378
|
} = this.props;
|
|
378
379
|
if (!items || !items.length) {
|
|
379
380
|
return null;
|
|
@@ -403,7 +404,7 @@ class Toolbar extends Component {
|
|
|
403
404
|
"data-testid": "editor-floating-toolbar",
|
|
404
405
|
className: className
|
|
405
406
|
}, jsx(Announcer, {
|
|
406
|
-
text: intl.formatMessage(messages.floatingToolbarAnnouncer),
|
|
407
|
+
text: mediaAssistiveMessage ? `${mediaAssistiveMessage}, ${intl.formatMessage(messages.floatingToolbarAnnouncer)}` : intl.formatMessage(messages.floatingToolbarAnnouncer),
|
|
407
408
|
delay: 250
|
|
408
409
|
}), jsx("div", {
|
|
409
410
|
"data-testid": "floating-toolbar-items",
|
package/dist/esm/plugin.js
CHANGED
|
@@ -219,7 +219,9 @@ function ContentComponent(_ref5) {
|
|
|
219
219
|
right: 0,
|
|
220
220
|
bottom: 0
|
|
221
221
|
} : _config$absoluteOffse,
|
|
222
|
-
focusTrap = config.focusTrap
|
|
222
|
+
focusTrap = config.focusTrap,
|
|
223
|
+
_config$mediaAssistiv = config.mediaAssistiveMessage,
|
|
224
|
+
mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv;
|
|
223
225
|
var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
224
226
|
if (!targetRef || editorDisabledState && editorDisabledState.editorDisabled) {
|
|
225
227
|
return null;
|
|
@@ -289,7 +291,8 @@ function ContentComponent(_ref5) {
|
|
|
289
291
|
extensionsProvider: providers.extensionProvider,
|
|
290
292
|
scrollable: scrollable,
|
|
291
293
|
featureFlags: featureFlags,
|
|
292
|
-
api: pluginInjectionApi
|
|
294
|
+
api: pluginInjectionApi,
|
|
295
|
+
mediaAssistiveMessage: mediaAssistiveMessage
|
|
293
296
|
});
|
|
294
297
|
}
|
|
295
298
|
})), /*#__PURE__*/React.createElement(ConfirmationModal, {
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -366,7 +366,8 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
366
366
|
className = _this$props2.className,
|
|
367
367
|
node = _this$props2.node,
|
|
368
368
|
intl = _this$props2.intl,
|
|
369
|
-
scrollable = _this$props2.scrollable
|
|
369
|
+
scrollable = _this$props2.scrollable,
|
|
370
|
+
mediaAssistiveMessage = _this$props2.mediaAssistiveMessage;
|
|
370
371
|
if (!items || !items.length) {
|
|
371
372
|
return null;
|
|
372
373
|
}
|
|
@@ -399,7 +400,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
399
400
|
"data-testid": "editor-floating-toolbar",
|
|
400
401
|
className: className
|
|
401
402
|
}, jsx(Announcer, {
|
|
402
|
-
text: intl.formatMessage(messages.floatingToolbarAnnouncer),
|
|
403
|
+
text: mediaAssistiveMessage ? "".concat(mediaAssistiveMessage, ", ").concat(intl.formatMessage(messages.floatingToolbarAnnouncer)) : intl.formatMessage(messages.floatingToolbarAnnouncer),
|
|
403
404
|
delay: 250
|
|
404
405
|
}), jsx("div", {
|
|
405
406
|
"data-testid": "floating-toolbar-items",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/adf-schema": "^
|
|
26
|
+
"@atlaskit/adf-schema": "^35.0.0",
|
|
27
27
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
28
28
|
"@atlaskit/button": "^16.17.0",
|
|
29
29
|
"@atlaskit/checkbox": "^13.0.0",
|
|
30
|
-
"@atlaskit/editor-common": "^76.
|
|
30
|
+
"@atlaskit/editor-common": "^76.25.0",
|
|
31
31
|
"@atlaskit/editor-palette": "1.5.2",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^0.2.0",
|
|
33
33
|
"@atlaskit/editor-plugin-copy-button": "^1.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/emoji": "^67.6.0",
|
|
41
41
|
"@atlaskit/icon": "^22.0.0",
|
|
42
42
|
"@atlaskit/menu": "^2.1.0",
|
|
43
|
-
"@atlaskit/modal-dialog": "^12.
|
|
43
|
+
"@atlaskit/modal-dialog": "^12.10.0",
|
|
44
44
|
"@atlaskit/select": "^17.0.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
46
|
"@atlaskit/tokens": "^1.29.0",
|