@atlaskit/editor-plugin-media 8.4.3 → 8.4.5
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 8.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9f7ed79776010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f7ed79776010) -
|
|
8
|
+
[EDF-2767] Better documentation on features that cannot be rolled back - starting on attribute
|
|
9
|
+
allowPixelResizing
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.4.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`dba0cb8c22976`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dba0cb8c22976) -
|
|
17
|
+
Cleans up FG platform_editor_fix_media_card_removal
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.4.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -846,7 +846,7 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
|
|
|
846
846
|
})
|
|
847
847
|
}, hoverDecorationProps(nodeType, _editorSharedStyles.akEditorSelectedNodeClassName)), _objectSpread({
|
|
848
848
|
title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(_messages.default.delete),
|
|
849
|
-
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup
|
|
849
|
+
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup ? handleRemoveMediaGroupWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a1 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a1 === void 0 ? void 0 : _pluginInjectionApi$a1.actions) : removeWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a10 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a10 === void 0 ? void 0 : _pluginInjectionApi$a10.actions, selectedNodeType),
|
|
850
850
|
icon: /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
851
851
|
label: ""
|
|
852
852
|
})
|
|
@@ -847,7 +847,7 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
|
|
|
847
847
|
...hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)
|
|
848
848
|
}, {
|
|
849
849
|
title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.delete),
|
|
850
|
-
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup
|
|
850
|
+
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup ? handleRemoveMediaGroupWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a1 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a1 === void 0 ? void 0 : _pluginInjectionApi$a1.actions) : removeWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a10 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a10 === void 0 ? void 0 : _pluginInjectionApi$a10.actions, selectedNodeType),
|
|
851
851
|
icon: /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
852
852
|
label: ""
|
|
853
853
|
}),
|
|
@@ -837,7 +837,7 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
|
|
|
837
837
|
})
|
|
838
838
|
}, hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)), _objectSpread({
|
|
839
839
|
title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.delete),
|
|
840
|
-
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup
|
|
840
|
+
onClick: (parentMediaGroupNode === null || parentMediaGroupNode === void 0 ? void 0 : parentMediaGroupNode.node.type) === mediaGroup ? handleRemoveMediaGroupWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a1 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a1 === void 0 ? void 0 : _pluginInjectionApi$a1.actions) : removeWithAnalytics(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a10 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a10 === void 0 ? void 0 : _pluginInjectionApi$a10.actions, selectedNodeType),
|
|
841
841
|
icon: /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
842
842
|
label: ""
|
|
843
843
|
})
|
|
@@ -35,17 +35,17 @@ export interface MediaPluginOptions {
|
|
|
35
35
|
allowMediaInlineImages?: boolean;
|
|
36
36
|
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
37
37
|
allowMediaSingleEditable?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @caution
|
|
40
|
+
* This attribute is used to enable the pixel resizing experience.
|
|
41
|
+
* When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
|
|
42
|
+
* Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
|
|
43
|
+
*/
|
|
38
44
|
allowPixelResizing?: boolean;
|
|
39
45
|
allowRemoteDimensionsFetch?: boolean;
|
|
40
46
|
allowResizing?: boolean;
|
|
41
47
|
allowResizingInTables?: boolean;
|
|
42
48
|
allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
|
|
43
|
-
/**
|
|
44
|
-
* When enabled, prevents automatic focus/selection of media nodes after upload completion.
|
|
45
|
-
* The existing focus will be preserved instead of switching to the uploaded media.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
preventAutoFocusOnUpload?: boolean;
|
|
49
49
|
altTextValidator?: (value: string) => string[];
|
|
50
50
|
customDropzoneContainer?: HTMLElement;
|
|
51
51
|
customMediaPicker?: CustomMediaPicker;
|
|
@@ -77,6 +77,12 @@ export interface MediaPluginOptions {
|
|
|
77
77
|
isExternalMediaUploadDisabled?: boolean;
|
|
78
78
|
mediaShallowCopyScope?: MediaCopyScope;
|
|
79
79
|
onCommentButtonMount?: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* When enabled, prevents automatic focus/selection of media nodes after upload completion.
|
|
82
|
+
* The existing focus will be preserved instead of switching to the uploaded media.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
preventAutoFocusOnUpload?: boolean;
|
|
80
86
|
provider?: Providers['mediaProvider'];
|
|
81
87
|
syncProvider?: MediaProvider;
|
|
82
88
|
uploadErrorHandler?: (state: MediaState) => void;
|
|
@@ -146,6 +152,12 @@ export type MediaFloatingToolbarOptions = {
|
|
|
146
152
|
allowLinking?: boolean;
|
|
147
153
|
allowMediaInline?: boolean;
|
|
148
154
|
allowMediaInlineImages?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* @caution
|
|
157
|
+
* This attribute is used to enable the pixel resizing experience.
|
|
158
|
+
* When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
|
|
159
|
+
* Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
|
|
160
|
+
**/
|
|
149
161
|
allowPixelResizing?: boolean;
|
|
150
162
|
allowResizing?: boolean;
|
|
151
163
|
allowResizingInTables?: boolean;
|
|
@@ -35,17 +35,17 @@ export interface MediaPluginOptions {
|
|
|
35
35
|
allowMediaInlineImages?: boolean;
|
|
36
36
|
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
37
37
|
allowMediaSingleEditable?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @caution
|
|
40
|
+
* This attribute is used to enable the pixel resizing experience.
|
|
41
|
+
* When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
|
|
42
|
+
* Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
|
|
43
|
+
*/
|
|
38
44
|
allowPixelResizing?: boolean;
|
|
39
45
|
allowRemoteDimensionsFetch?: boolean;
|
|
40
46
|
allowResizing?: boolean;
|
|
41
47
|
allowResizingInTables?: boolean;
|
|
42
48
|
allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
|
|
43
|
-
/**
|
|
44
|
-
* When enabled, prevents automatic focus/selection of media nodes after upload completion.
|
|
45
|
-
* The existing focus will be preserved instead of switching to the uploaded media.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
preventAutoFocusOnUpload?: boolean;
|
|
49
49
|
altTextValidator?: (value: string) => string[];
|
|
50
50
|
customDropzoneContainer?: HTMLElement;
|
|
51
51
|
customMediaPicker?: CustomMediaPicker;
|
|
@@ -77,6 +77,12 @@ export interface MediaPluginOptions {
|
|
|
77
77
|
isExternalMediaUploadDisabled?: boolean;
|
|
78
78
|
mediaShallowCopyScope?: MediaCopyScope;
|
|
79
79
|
onCommentButtonMount?: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* When enabled, prevents automatic focus/selection of media nodes after upload completion.
|
|
82
|
+
* The existing focus will be preserved instead of switching to the uploaded media.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
preventAutoFocusOnUpload?: boolean;
|
|
80
86
|
provider?: Providers['mediaProvider'];
|
|
81
87
|
syncProvider?: MediaProvider;
|
|
82
88
|
uploadErrorHandler?: (state: MediaState) => void;
|
|
@@ -146,6 +152,12 @@ export type MediaFloatingToolbarOptions = {
|
|
|
146
152
|
allowLinking?: boolean;
|
|
147
153
|
allowMediaInline?: boolean;
|
|
148
154
|
allowMediaInlineImages?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* @caution
|
|
157
|
+
* This attribute is used to enable the pixel resizing experience.
|
|
158
|
+
* When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
|
|
159
|
+
* Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
|
|
160
|
+
**/
|
|
149
161
|
allowPixelResizing?: boolean;
|
|
150
162
|
allowResizing?: boolean;
|
|
151
163
|
allowResizingInTables?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.5",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
54
54
|
"@atlaskit/form": "^14.2.0",
|
|
55
55
|
"@atlaskit/icon": "^28.5.0",
|
|
56
|
-
"@atlaskit/icon-lab": "^5.
|
|
56
|
+
"@atlaskit/icon-lab": "^5.11.0",
|
|
57
57
|
"@atlaskit/media-card": "^79.6.0",
|
|
58
58
|
"@atlaskit/media-client": "^35.5.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"@atlaskit/media-ui": "^28.7.0",
|
|
64
64
|
"@atlaskit/media-viewer": "^52.4.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
|
-
"@atlaskit/primitives": "^16.
|
|
66
|
+
"@atlaskit/primitives": "^16.1.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.0.0",
|
|
68
68
|
"@atlaskit/theme": "^21.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
70
|
-
"@atlaskit/tokens": "^7.
|
|
71
|
-
"@atlaskit/tooltip": "^20.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^13.26.0",
|
|
70
|
+
"@atlaskit/tokens": "^7.1.0",
|
|
71
|
+
"@atlaskit/tooltip": "^20.7.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
74
74
|
"bind-event-listener": "^3.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^110.
|
|
81
|
+
"@atlaskit/editor-common": "^110.22.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|
|
@@ -160,9 +160,6 @@
|
|
|
160
160
|
"platform_media_video_captions": {
|
|
161
161
|
"type": "boolean"
|
|
162
162
|
},
|
|
163
|
-
"platform_editor_fix_media_card_removal": {
|
|
164
|
-
"type": "boolean"
|
|
165
|
-
},
|
|
166
163
|
"jira_kuro-jjj_disable_auto_focus_after_img_upload": {
|
|
167
164
|
"type": "boolean"
|
|
168
165
|
}
|