@atlaskit/editor-plugin-insert-block 12.0.15 → 12.0.16
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 12.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fd3ef8de291ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd3ef8de291ba) -
|
|
8
|
+
Cleanup feature gate `platform_editor_nov_a11y_fixes`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 12.0.15
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -357,17 +357,13 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
357
357
|
onShowMediaPicker = _this$props5.onShowMediaPicker,
|
|
358
358
|
dispatchAnalyticsEvent = _this$props5.dispatchAnalyticsEvent;
|
|
359
359
|
if (onShowMediaPicker) {
|
|
360
|
-
var _this$mediaButtonRef, _this$props$popupsMou
|
|
360
|
+
var _this$mediaButtonRef, _this$props$popupsMou;
|
|
361
361
|
var ref = (_this$mediaButtonRef = _this.mediaButtonRef) === null || _this$mediaButtonRef === void 0 ? void 0 : _this$mediaButtonRef.deref();
|
|
362
|
-
var args = ref ? {
|
|
362
|
+
var args = ref !== null && ref !== void 0 && ref.parentElement ? {
|
|
363
363
|
ref: ref,
|
|
364
|
-
mountPoint: (_this$props$popupsMou = _this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref
|
|
364
|
+
mountPoint: (_this$props$popupsMou = _this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref.parentElement
|
|
365
365
|
} : undefined;
|
|
366
|
-
|
|
367
|
-
ref: ref,
|
|
368
|
-
mountPoint: (_this$props$popupsMou2 = _this.props.popupsMountPoint) !== null && _this$props$popupsMou2 !== void 0 ? _this$props$popupsMou2 : ref.parentElement
|
|
369
|
-
} : undefined;
|
|
370
|
-
onShowMediaPicker((0, _platformFeatureFlags.fg)('platform_editor_nov_a11y_fixes') ? argsWithUpdatedMountPoint : args);
|
|
366
|
+
onShowMediaPicker(args);
|
|
371
367
|
if (dispatchAnalyticsEvent) {
|
|
372
368
|
dispatchAnalyticsEvent({
|
|
373
369
|
action: _analytics.ACTION.OPENED,
|
|
@@ -376,17 +376,13 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
376
376
|
dispatchAnalyticsEvent
|
|
377
377
|
} = this.props;
|
|
378
378
|
if (onShowMediaPicker) {
|
|
379
|
-
var _this$mediaButtonRef, _this$props$popupsMou
|
|
379
|
+
var _this$mediaButtonRef, _this$props$popupsMou;
|
|
380
380
|
const ref = (_this$mediaButtonRef = this.mediaButtonRef) === null || _this$mediaButtonRef === void 0 ? void 0 : _this$mediaButtonRef.deref();
|
|
381
|
-
const args = ref ? {
|
|
381
|
+
const args = ref !== null && ref !== void 0 && ref.parentElement ? {
|
|
382
382
|
ref,
|
|
383
|
-
mountPoint: (_this$props$popupsMou = this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref
|
|
383
|
+
mountPoint: (_this$props$popupsMou = this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref.parentElement
|
|
384
384
|
} : undefined;
|
|
385
|
-
|
|
386
|
-
ref,
|
|
387
|
-
mountPoint: (_this$props$popupsMou2 = this.props.popupsMountPoint) !== null && _this$props$popupsMou2 !== void 0 ? _this$props$popupsMou2 : ref.parentElement
|
|
388
|
-
} : undefined;
|
|
389
|
-
onShowMediaPicker(fg('platform_editor_nov_a11y_fixes') ? argsWithUpdatedMountPoint : args);
|
|
385
|
+
onShowMediaPicker(args);
|
|
390
386
|
if (dispatchAnalyticsEvent) {
|
|
391
387
|
dispatchAnalyticsEvent({
|
|
392
388
|
action: ACTION.OPENED,
|
|
@@ -351,17 +351,13 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
351
351
|
onShowMediaPicker = _this$props5.onShowMediaPicker,
|
|
352
352
|
dispatchAnalyticsEvent = _this$props5.dispatchAnalyticsEvent;
|
|
353
353
|
if (onShowMediaPicker) {
|
|
354
|
-
var _this$mediaButtonRef, _this$props$popupsMou
|
|
354
|
+
var _this$mediaButtonRef, _this$props$popupsMou;
|
|
355
355
|
var ref = (_this$mediaButtonRef = _this.mediaButtonRef) === null || _this$mediaButtonRef === void 0 ? void 0 : _this$mediaButtonRef.deref();
|
|
356
|
-
var args = ref ? {
|
|
356
|
+
var args = ref !== null && ref !== void 0 && ref.parentElement ? {
|
|
357
357
|
ref: ref,
|
|
358
|
-
mountPoint: (_this$props$popupsMou = _this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref
|
|
358
|
+
mountPoint: (_this$props$popupsMou = _this.props.popupsMountPoint) !== null && _this$props$popupsMou !== void 0 ? _this$props$popupsMou : ref.parentElement
|
|
359
359
|
} : undefined;
|
|
360
|
-
|
|
361
|
-
ref: ref,
|
|
362
|
-
mountPoint: (_this$props$popupsMou2 = _this.props.popupsMountPoint) !== null && _this$props$popupsMou2 !== void 0 ? _this$props$popupsMou2 : ref.parentElement
|
|
363
|
-
} : undefined;
|
|
364
|
-
onShowMediaPicker(fg('platform_editor_nov_a11y_fixes') ? argsWithUpdatedMountPoint : args);
|
|
360
|
+
onShowMediaPicker(args);
|
|
365
361
|
if (dispatchAnalyticsEvent) {
|
|
366
362
|
dispatchAnalyticsEvent({
|
|
367
363
|
action: ACTION.OPENED,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.16",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"react-virtualized": "^9.22.6"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@atlaskit/editor-common": "^115.
|
|
77
|
+
"@atlaskit/editor-common": "^115.16.0",
|
|
78
78
|
"react": "^18.2.0",
|
|
79
79
|
"react-dom": "^18.2.0",
|
|
80
80
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
"platform_editor_ease_of_use_metrics": {
|
|
130
130
|
"type": "boolean"
|
|
131
131
|
},
|
|
132
|
-
"platform_editor_nov_a11y_fixes": {
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
132
|
"platform_editor_experience_tracking_toolbar_button": {
|
|
136
133
|
"type": "boolean"
|
|
137
134
|
}
|