@atlaskit/editor-plugin-insert-block 12.0.15 → 13.0.0
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,39 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 12.0.16
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [`fd3ef8de291ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd3ef8de291ba) -
|
|
34
|
+
Cleanup feature gate `platform_editor_nov_a11y_fixes`
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
|
|
3
37
|
## 12.0.15
|
|
4
38
|
|
|
5
39
|
### 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": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,56 +16,48 @@
|
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
18
18
|
"types": "dist/types/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.5 <4.9": {
|
|
21
|
-
"*": [
|
|
22
|
-
"dist/types-ts4.5/*",
|
|
23
|
-
"dist/types-ts4.5/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
19
|
"sideEffects": [
|
|
28
20
|
"*.compiled.css"
|
|
29
21
|
],
|
|
30
22
|
"atlaskit:src": "src/index.ts",
|
|
31
23
|
"dependencies": {
|
|
32
|
-
"@atlaskit/browser-apis": "^0.0
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-block-type": "^
|
|
35
|
-
"@atlaskit/editor-plugin-code-block": "^
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
37
|
-
"@atlaskit/editor-plugin-date": "^
|
|
38
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
39
|
-
"@atlaskit/editor-plugin-expand": "^
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
41
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
42
|
-
"@atlaskit/editor-plugin-hyperlink": "^
|
|
43
|
-
"@atlaskit/editor-plugin-image-upload": "^
|
|
44
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
45
|
-
"@atlaskit/editor-plugin-media": "^
|
|
46
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
47
|
-
"@atlaskit/editor-plugin-mentions": "^
|
|
48
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
49
|
-
"@atlaskit/editor-plugin-panel": "^
|
|
50
|
-
"@atlaskit/editor-plugin-placeholder-text": "^
|
|
51
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
53
|
-
"@atlaskit/editor-plugin-rule": "^
|
|
54
|
-
"@atlaskit/editor-plugin-status": "^
|
|
55
|
-
"@atlaskit/editor-plugin-table": "^
|
|
56
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
57
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
58
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
59
|
-
"@atlaskit/editor-prosemirror": "^
|
|
60
|
-
"@atlaskit/editor-shared-styles": "^
|
|
61
|
-
"@atlaskit/editor-toolbar": "^
|
|
62
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
63
|
-
"@atlaskit/emoji": "^
|
|
64
|
-
"@atlaskit/icon": "^
|
|
65
|
-
"@atlaskit/icon-lab": "^
|
|
66
|
-
"@atlaskit/platform-feature-flags": "^
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
-
"@atlaskit/tokens": "^
|
|
24
|
+
"@atlaskit/browser-apis": "^1.0.0",
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-block-type": "^16.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-code-block": "^14.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^12.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-date": "^14.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-emoji": "^13.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-expand": "^13.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "^15.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-feature-flags": "^11.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-hyperlink": "^14.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-image-upload": "^12.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-layout": "^13.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-media": "^14.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-media-insert": "^25.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-mentions": "^14.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-metrics": "^13.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-panel": "^14.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-placeholder-text": "^13.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^13.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-quick-insert": "^12.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-rule": "^12.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-status": "^13.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-table": "^24.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^15.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-toolbar": "^9.0.0",
|
|
50
|
+
"@atlaskit/editor-plugin-type-ahead": "^12.0.0",
|
|
51
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
52
|
+
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
53
|
+
"@atlaskit/editor-toolbar": "^2.0.0",
|
|
54
|
+
"@atlaskit/editor-toolbar-model": "^1.0.0",
|
|
55
|
+
"@atlaskit/emoji": "^71.0.0",
|
|
56
|
+
"@atlaskit/icon": "^36.0.0",
|
|
57
|
+
"@atlaskit/icon-lab": "^7.0.0",
|
|
58
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
60
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
69
61
|
"@babel/runtime": "^7.0.0",
|
|
70
62
|
"@emotion/react": "^11.7.1",
|
|
71
63
|
"bind-event-listener": "^3.0.0",
|
|
@@ -74,7 +66,7 @@
|
|
|
74
66
|
"react-virtualized": "^9.22.6"
|
|
75
67
|
},
|
|
76
68
|
"peerDependencies": {
|
|
77
|
-
"@atlaskit/editor-common": "^
|
|
69
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
78
70
|
"react": "^18.2.0",
|
|
79
71
|
"react-dom": "^18.2.0",
|
|
80
72
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -129,9 +121,6 @@
|
|
|
129
121
|
"platform_editor_ease_of_use_metrics": {
|
|
130
122
|
"type": "boolean"
|
|
131
123
|
},
|
|
132
|
-
"platform_editor_nov_a11y_fixes": {
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
124
|
"platform_editor_experience_tracking_toolbar_button": {
|
|
136
125
|
"type": "boolean"
|
|
137
126
|
}
|