@atlaskit/editor-plugin-media-insert 23.1.0 → 23.3.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 +23 -0
- package/dist/cjs/entry-points/media-insert-plugin-type.js +1 -0
- package/dist/cjs/entry-points/media-insert-plugin.js +12 -0
- package/dist/cjs/ui/MediaInsertPicker.js +19 -19
- package/dist/es2019/entry-points/media-insert-plugin-type.js +0 -0
- package/dist/es2019/entry-points/media-insert-plugin.js +2 -0
- package/dist/es2019/ui/MediaInsertPicker.js +18 -18
- package/dist/esm/entry-points/media-insert-plugin-type.js +0 -0
- package/dist/esm/entry-points/media-insert-plugin.js +2 -0
- package/dist/esm/ui/MediaInsertPicker.js +19 -19
- package/dist/types/entry-points/media-insert-plugin-type.d.ts +1 -0
- package/dist/types/entry-points/media-insert-plugin.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/media-insert-plugin-type.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/media-insert-plugin.d.ts +1 -0
- package/media-insert-plugin/package.json +17 -0
- package/media-insert-plugin-type/package.json +17 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 23.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a94a013546f69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a94a013546f69) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 23.2.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`09301dc1b0c55`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/09301dc1b0c55) -
|
|
19
|
+
[ux] Switches the order of the image generation tab in the media insert picker to the first
|
|
20
|
+
position and renames the tab to Create. All changes behind an experiment.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 23.1.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "mediaInsertPlugin", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _mediaInsertPlugin.mediaInsertPlugin;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _mediaInsertPlugin = require("../mediaInsertPlugin");
|
|
@@ -142,11 +142,27 @@ var MediaInsertPicker = exports.MediaInsertPicker = function MediaInsertPicker(_
|
|
|
142
142
|
id: "media-insert-tab-navigation"
|
|
143
143
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
144
144
|
paddingBlockEnd: "space.150"
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement(_tabs.TabList, null,
|
|
145
|
+
}, /*#__PURE__*/_react.default.createElement(_tabs.TabList, null, registeredTabs.map(function (tab) {
|
|
146
146
|
return /*#__PURE__*/_react.default.createElement(_tabs.Tab, {
|
|
147
147
|
key: tab.key
|
|
148
148
|
}, tab.label);
|
|
149
|
-
})
|
|
149
|
+
}), !isOnlyExternalLinks && /*#__PURE__*/_react.default.createElement(_tabs.Tab, null, intl.formatMessage(_messages.mediaInsertMessages.fileTabTitle)), /*#__PURE__*/_react.default.createElement(_tabs.Tab, null, intl.formatMessage(_messages.mediaInsertMessages.linkTabTitle)))), registeredTabs.map(function (_ref3) {
|
|
150
|
+
var key = _ref3.key,
|
|
151
|
+
TabComponent = _ref3.component;
|
|
152
|
+
return /*#__PURE__*/_react.default.createElement(CustomTabPanel, {
|
|
153
|
+
key: key
|
|
154
|
+
}, /*#__PURE__*/_react.default.createElement(TabComponent
|
|
155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
|
+
, {
|
|
157
|
+
closeMediaInsertPicker: function closeMediaInsertPicker() {
|
|
158
|
+
_closeMediaInsertPicker();
|
|
159
|
+
focusEditor();
|
|
160
|
+
},
|
|
161
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
162
|
+
insertMediaSingle: insertMediaSingle,
|
|
163
|
+
mediaProvider: mediaProvider
|
|
164
|
+
}));
|
|
165
|
+
}), !isOnlyExternalLinks && /*#__PURE__*/_react.default.createElement(CustomTabPanel, null, /*#__PURE__*/_react.default.createElement(_LocalMedia.LocalMedia, {
|
|
150
166
|
ref: autofocusRef,
|
|
151
167
|
mediaProvider: mediaProvider
|
|
152
168
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -171,22 +187,6 @@ var MediaInsertPicker = exports.MediaInsertPicker = function MediaInsertPicker(_
|
|
|
171
187
|
isOnlyExternalLinks: isOnlyExternalLinks,
|
|
172
188
|
customizedUrlValidation: customizedUrlValidation,
|
|
173
189
|
customizedHelperMessage: customizedHelperMessage
|
|
174
|
-
}))
|
|
175
|
-
var key = _ref3.key,
|
|
176
|
-
TabComponent = _ref3.component;
|
|
177
|
-
return /*#__PURE__*/_react.default.createElement(CustomTabPanel, {
|
|
178
|
-
key: key
|
|
179
|
-
}, /*#__PURE__*/_react.default.createElement(TabComponent
|
|
180
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
181
|
-
, {
|
|
182
|
-
closeMediaInsertPicker: function closeMediaInsertPicker() {
|
|
183
|
-
_closeMediaInsertPicker();
|
|
184
|
-
focusEditor();
|
|
185
|
-
},
|
|
186
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
187
|
-
insertMediaSingle: insertMediaSingle,
|
|
188
|
-
mediaProvider: mediaProvider
|
|
189
|
-
}));
|
|
190
|
-
})));
|
|
190
|
+
}))));
|
|
191
191
|
}));
|
|
192
192
|
};
|
|
File without changes
|
|
@@ -133,9 +133,24 @@ export const MediaInsertPicker = ({
|
|
|
133
133
|
id: "media-insert-tab-navigation"
|
|
134
134
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
135
135
|
paddingBlockEnd: "space.150"
|
|
136
|
-
}, /*#__PURE__*/React.createElement(TabList, null,
|
|
136
|
+
}, /*#__PURE__*/React.createElement(TabList, null, registeredTabs.map(tab => /*#__PURE__*/React.createElement(Tab, {
|
|
137
137
|
key: tab.key
|
|
138
|
-
}, tab.label))
|
|
138
|
+
}, tab.label)), !isOnlyExternalLinks && /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.fileTabTitle)), /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.linkTabTitle)))), registeredTabs.map(({
|
|
139
|
+
key,
|
|
140
|
+
component: TabComponent
|
|
141
|
+
}) => /*#__PURE__*/React.createElement(CustomTabPanel, {
|
|
142
|
+
key: key
|
|
143
|
+
}, /*#__PURE__*/React.createElement(TabComponent
|
|
144
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
145
|
+
, {
|
|
146
|
+
closeMediaInsertPicker: () => {
|
|
147
|
+
closeMediaInsertPicker();
|
|
148
|
+
focusEditor();
|
|
149
|
+
},
|
|
150
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
151
|
+
insertMediaSingle: insertMediaSingle,
|
|
152
|
+
mediaProvider: mediaProvider
|
|
153
|
+
}))), !isOnlyExternalLinks && /*#__PURE__*/React.createElement(CustomTabPanel, null, /*#__PURE__*/React.createElement(LocalMedia, {
|
|
139
154
|
ref: autofocusRef,
|
|
140
155
|
mediaProvider: mediaProvider
|
|
141
156
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -160,20 +175,5 @@ export const MediaInsertPicker = ({
|
|
|
160
175
|
isOnlyExternalLinks: isOnlyExternalLinks,
|
|
161
176
|
customizedUrlValidation: customizedUrlValidation,
|
|
162
177
|
customizedHelperMessage: customizedHelperMessage
|
|
163
|
-
}))
|
|
164
|
-
key,
|
|
165
|
-
component: TabComponent
|
|
166
|
-
}) => /*#__PURE__*/React.createElement(CustomTabPanel, {
|
|
167
|
-
key: key
|
|
168
|
-
}, /*#__PURE__*/React.createElement(TabComponent
|
|
169
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
170
|
-
, {
|
|
171
|
-
closeMediaInsertPicker: () => {
|
|
172
|
-
closeMediaInsertPicker();
|
|
173
|
-
focusEditor();
|
|
174
|
-
},
|
|
175
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
176
|
-
insertMediaSingle: insertMediaSingle,
|
|
177
|
-
mediaProvider: mediaProvider
|
|
178
|
-
})))))));
|
|
178
|
+
}))))));
|
|
179
179
|
};
|
|
File without changes
|
|
@@ -133,11 +133,27 @@ export var MediaInsertPicker = function MediaInsertPicker(_ref2) {
|
|
|
133
133
|
id: "media-insert-tab-navigation"
|
|
134
134
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
135
135
|
paddingBlockEnd: "space.150"
|
|
136
|
-
}, /*#__PURE__*/React.createElement(TabList, null,
|
|
136
|
+
}, /*#__PURE__*/React.createElement(TabList, null, registeredTabs.map(function (tab) {
|
|
137
137
|
return /*#__PURE__*/React.createElement(Tab, {
|
|
138
138
|
key: tab.key
|
|
139
139
|
}, tab.label);
|
|
140
|
-
})
|
|
140
|
+
}), !isOnlyExternalLinks && /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.fileTabTitle)), /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.linkTabTitle)))), registeredTabs.map(function (_ref3) {
|
|
141
|
+
var key = _ref3.key,
|
|
142
|
+
TabComponent = _ref3.component;
|
|
143
|
+
return /*#__PURE__*/React.createElement(CustomTabPanel, {
|
|
144
|
+
key: key
|
|
145
|
+
}, /*#__PURE__*/React.createElement(TabComponent
|
|
146
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
147
|
+
, {
|
|
148
|
+
closeMediaInsertPicker: function closeMediaInsertPicker() {
|
|
149
|
+
_closeMediaInsertPicker();
|
|
150
|
+
focusEditor();
|
|
151
|
+
},
|
|
152
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
153
|
+
insertMediaSingle: insertMediaSingle,
|
|
154
|
+
mediaProvider: mediaProvider
|
|
155
|
+
}));
|
|
156
|
+
}), !isOnlyExternalLinks && /*#__PURE__*/React.createElement(CustomTabPanel, null, /*#__PURE__*/React.createElement(LocalMedia, {
|
|
141
157
|
ref: autofocusRef,
|
|
142
158
|
mediaProvider: mediaProvider
|
|
143
159
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -162,22 +178,6 @@ export var MediaInsertPicker = function MediaInsertPicker(_ref2) {
|
|
|
162
178
|
isOnlyExternalLinks: isOnlyExternalLinks,
|
|
163
179
|
customizedUrlValidation: customizedUrlValidation,
|
|
164
180
|
customizedHelperMessage: customizedHelperMessage
|
|
165
|
-
}))
|
|
166
|
-
var key = _ref3.key,
|
|
167
|
-
TabComponent = _ref3.component;
|
|
168
|
-
return /*#__PURE__*/React.createElement(CustomTabPanel, {
|
|
169
|
-
key: key
|
|
170
|
-
}, /*#__PURE__*/React.createElement(TabComponent
|
|
171
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
172
|
-
, {
|
|
173
|
-
closeMediaInsertPicker: function closeMediaInsertPicker() {
|
|
174
|
-
_closeMediaInsertPicker();
|
|
175
|
-
focusEditor();
|
|
176
|
-
},
|
|
177
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
178
|
-
insertMediaSingle: insertMediaSingle,
|
|
179
|
-
mediaProvider: mediaProvider
|
|
180
|
-
}));
|
|
181
|
-
})));
|
|
181
|
+
}))));
|
|
182
182
|
}));
|
|
183
183
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { MediaInsertPlugin, MediaInsertPluginState, MediaInsertPluginDependencies, MediaInsertPluginCommands, MediaInsertPluginConfig, MediaInsertPluginActions, MediaInsertTabProps, RegisterInsertTab, } from '../mediaInsertPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mediaInsertPlugin } from '../mediaInsertPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { MediaInsertPlugin, MediaInsertPluginState, MediaInsertPluginDependencies, MediaInsertPluginCommands, MediaInsertPluginConfig, MediaInsertPluginActions, MediaInsertTabProps, RegisterInsertTab, } from '../mediaInsertPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mediaInsertPlugin } from '../mediaInsertPlugin';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-media-insert/media-insert-plugin",
|
|
3
|
+
"main": "../dist/cjs/entry-points/media-insert-plugin.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/media-insert-plugin.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/media-insert-plugin.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/media-insert-plugin.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/media-insert-plugin.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-media-insert/media-insert-plugin-type",
|
|
3
|
+
"main": "../dist/cjs/entry-points/media-insert-plugin-type.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/media-insert-plugin-type.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/media-insert-plugin-type.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/media-insert-plugin-type.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/media-insert-plugin-type.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.3.0",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^52.
|
|
24
|
+
"@atlaskit/adf-schema": "^52.11.0",
|
|
25
25
|
"@atlaskit/button": "^23.11.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-media": "^12.
|
|
27
|
+
"@atlaskit/editor-plugin-media": "^12.6.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
29
29
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
30
30
|
"@atlaskit/form": "^15.5.0",
|
|
31
|
-
"@atlaskit/icon": "^34.
|
|
31
|
+
"@atlaskit/icon": "^34.5.0",
|
|
32
32
|
"@atlaskit/media-card": "^80.4.0",
|
|
33
|
-
"@atlaskit/media-client": "^36.
|
|
33
|
+
"@atlaskit/media-client": "^36.2.0",
|
|
34
34
|
"@atlaskit/media-client-react": "^5.1.0",
|
|
35
35
|
"@atlaskit/media-picker": "^71.2.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@babel/runtime": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@atlaskit/editor-common": "^114.
|
|
44
|
+
"@atlaskit/editor-common": "^114.30.0",
|
|
45
45
|
"@atlaskit/tokens": "^13.0.0",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0",
|