@atlaskit/editor-plugin-media 0.11.4 → 0.11.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,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 0.11.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#67908](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67908) [`68ecca634a3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/68ecca634a3a) - [ux] Unify order of alt and link floating bar positions for mediaInline and mediaSingle
|
|
8
|
+
|
|
3
9
|
## 0.11.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -205,12 +205,6 @@ var getMediaInlineImageToolbar = exports.getMediaInlineImageToolbar = function g
|
|
|
205
205
|
}, {
|
|
206
206
|
type: 'separator'
|
|
207
207
|
});
|
|
208
|
-
if (options.allowAltTextOnImages) {
|
|
209
|
-
var _pluginInjectionApi$a4;
|
|
210
|
-
inlineImageItems.push((0, _altText.altTextButton)(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions), {
|
|
211
|
-
type: 'separator'
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
208
|
inlineImageItems.push({
|
|
215
209
|
type: 'custom',
|
|
216
210
|
fallback: [],
|
|
@@ -225,10 +219,10 @@ var getMediaInlineImageToolbar = exports.getMediaInlineImageToolbar = function g
|
|
|
225
219
|
};
|
|
226
220
|
var openLink = function openLink() {
|
|
227
221
|
if (editorView) {
|
|
228
|
-
var _pluginInjectionApi$
|
|
222
|
+
var _pluginInjectionApi$a4;
|
|
229
223
|
var tr = editorView.state.tr,
|
|
230
224
|
dispatch = editorView.dispatch;
|
|
231
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
225
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 || _pluginInjectionApi$a4.actions.attachAnalyticsEvent({
|
|
232
226
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
233
227
|
action: _analytics.ACTION.VISITED,
|
|
234
228
|
actionSubject: _analytics.ACTION_SUBJECT.MEDIA,
|
|
@@ -251,7 +245,14 @@ var getMediaInlineImageToolbar = exports.getMediaInlineImageToolbar = function g
|
|
|
251
245
|
}
|
|
252
246
|
return null;
|
|
253
247
|
}
|
|
254
|
-
}
|
|
248
|
+
});
|
|
249
|
+
if (options.allowAltTextOnImages) {
|
|
250
|
+
var _pluginInjectionApi$a5;
|
|
251
|
+
inlineImageItems.push((0, _altText.altTextButton)(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions), {
|
|
252
|
+
type: 'separator'
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
inlineImageItems.push({
|
|
255
256
|
type: 'copy-button',
|
|
256
257
|
items: [{
|
|
257
258
|
state: state,
|
|
@@ -193,12 +193,6 @@ export const getMediaInlineImageToolbar = (state, intl, mediaPluginState, hoverD
|
|
|
193
193
|
}, {
|
|
194
194
|
type: 'separator'
|
|
195
195
|
});
|
|
196
|
-
if (options.allowAltTextOnImages) {
|
|
197
|
-
var _pluginInjectionApi$a4;
|
|
198
|
-
inlineImageItems.push(altTextButton(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions), {
|
|
199
|
-
type: 'separator'
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
196
|
inlineImageItems.push({
|
|
203
197
|
type: 'custom',
|
|
204
198
|
fallback: [],
|
|
@@ -215,14 +209,14 @@ export const getMediaInlineImageToolbar = (state, intl, mediaPluginState, hoverD
|
|
|
215
209
|
};
|
|
216
210
|
const openLink = () => {
|
|
217
211
|
if (editorView) {
|
|
218
|
-
var _pluginInjectionApi$
|
|
212
|
+
var _pluginInjectionApi$a4;
|
|
219
213
|
const {
|
|
220
214
|
state: {
|
|
221
215
|
tr
|
|
222
216
|
},
|
|
223
217
|
dispatch
|
|
224
218
|
} = editorView;
|
|
225
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$
|
|
219
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions.attachAnalyticsEvent({
|
|
226
220
|
eventType: EVENT_TYPE.TRACK,
|
|
227
221
|
action: ACTION.VISITED,
|
|
228
222
|
actionSubject: ACTION_SUBJECT.MEDIA,
|
|
@@ -245,7 +239,14 @@ export const getMediaInlineImageToolbar = (state, intl, mediaPluginState, hoverD
|
|
|
245
239
|
}
|
|
246
240
|
return null;
|
|
247
241
|
}
|
|
248
|
-
}
|
|
242
|
+
});
|
|
243
|
+
if (options.allowAltTextOnImages) {
|
|
244
|
+
var _pluginInjectionApi$a5;
|
|
245
|
+
inlineImageItems.push(altTextButton(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions), {
|
|
246
|
+
type: 'separator'
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
inlineImageItems.push({
|
|
249
250
|
type: 'copy-button',
|
|
250
251
|
items: [{
|
|
251
252
|
state,
|
|
@@ -195,12 +195,6 @@ export var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(stat
|
|
|
195
195
|
}, {
|
|
196
196
|
type: 'separator'
|
|
197
197
|
});
|
|
198
|
-
if (options.allowAltTextOnImages) {
|
|
199
|
-
var _pluginInjectionApi$a4;
|
|
200
|
-
inlineImageItems.push(altTextButton(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions), {
|
|
201
|
-
type: 'separator'
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
198
|
inlineImageItems.push({
|
|
205
199
|
type: 'custom',
|
|
206
200
|
fallback: [],
|
|
@@ -215,10 +209,10 @@ export var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(stat
|
|
|
215
209
|
};
|
|
216
210
|
var openLink = function openLink() {
|
|
217
211
|
if (editorView) {
|
|
218
|
-
var _pluginInjectionApi$
|
|
212
|
+
var _pluginInjectionApi$a4;
|
|
219
213
|
var tr = editorView.state.tr,
|
|
220
214
|
dispatch = editorView.dispatch;
|
|
221
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
215
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 || _pluginInjectionApi$a4.actions.attachAnalyticsEvent({
|
|
222
216
|
eventType: EVENT_TYPE.TRACK,
|
|
223
217
|
action: ACTION.VISITED,
|
|
224
218
|
actionSubject: ACTION_SUBJECT.MEDIA,
|
|
@@ -241,7 +235,14 @@ export var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(stat
|
|
|
241
235
|
}
|
|
242
236
|
return null;
|
|
243
237
|
}
|
|
244
|
-
}
|
|
238
|
+
});
|
|
239
|
+
if (options.allowAltTextOnImages) {
|
|
240
|
+
var _pluginInjectionApi$a5;
|
|
241
|
+
inlineImageItems.push(altTextButton(intl, state, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions), {
|
|
242
|
+
type: 'separator'
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
inlineImageItems.push({
|
|
245
246
|
type: 'copy-button',
|
|
246
247
|
items: [{
|
|
247
248
|
state: state,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
39
39
|
"@atlaskit/button": "^17.2.0",
|
|
40
|
-
"@atlaskit/editor-common": "^76.
|
|
40
|
+
"@atlaskit/editor-common": "^76.41.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.5.2",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
43
43
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|