@atlaskit/editor-plugin-media-insert 35.0.0 → 36.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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 36.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 35.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c1111df7c2aef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1111df7c2aef) -
|
|
14
|
+
Add light and dark hover previews for selected slash-command media, Whiteboard, and Profile
|
|
15
|
+
Picture items when `platform_editor_slash_command` is enabled.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 35.0.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -15,6 +15,10 @@ var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
|
15
15
|
var _useQuickInsertContext = require("@atlaskit/editor-common/quick-insert/use-quick-insert-context");
|
|
16
16
|
var _image = _interopRequireDefault(require("@atlaskit/icon/core/image"));
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
|
+
var previewImageUrls = {
|
|
19
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/044ejisv22dxt27c8cn80db4x2oj13s3.png',
|
|
20
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/563locbd706ado411n6gc2sh7tccqg4k.png'
|
|
21
|
+
};
|
|
18
22
|
var MediaInsertQuickInsertMenuItem = exports.MediaInsertQuickInsertMenuItem = function MediaInsertQuickInsertMenuItem(_ref) {
|
|
19
23
|
var api = _ref.api,
|
|
20
24
|
config = _ref.config;
|
|
@@ -53,6 +57,7 @@ var MediaInsertQuickInsertMenuItem = exports.MediaInsertQuickInsertMenuItem = fu
|
|
|
53
57
|
}),
|
|
54
58
|
isDisabled: isOffline,
|
|
55
59
|
onSelect: onSelect,
|
|
60
|
+
previewImageUrls: previewImageUrls,
|
|
56
61
|
title: formatMessage(_messages.toolbarInsertBlockMessages.mediaFiles)
|
|
57
62
|
});
|
|
58
63
|
};
|
|
@@ -6,6 +6,10 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
6
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
7
7
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
8
8
|
import ImageIcon from '@atlaskit/icon/core/image';
|
|
9
|
+
const previewImageUrls = {
|
|
10
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/044ejisv22dxt27c8cn80db4x2oj13s3.png',
|
|
11
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/563locbd706ado411n6gc2sh7tccqg4k.png'
|
|
12
|
+
};
|
|
9
13
|
export const MediaInsertQuickInsertMenuItem = ({
|
|
10
14
|
api,
|
|
11
15
|
config
|
|
@@ -48,6 +52,7 @@ export const MediaInsertQuickInsertMenuItem = ({
|
|
|
48
52
|
}),
|
|
49
53
|
isDisabled: isOffline,
|
|
50
54
|
onSelect: onSelect,
|
|
55
|
+
previewImageUrls: previewImageUrls,
|
|
51
56
|
title: formatMessage(messages.mediaFiles)
|
|
52
57
|
});
|
|
53
58
|
};
|
|
@@ -6,6 +6,10 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
6
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
7
7
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
8
8
|
import ImageIcon from '@atlaskit/icon/core/image';
|
|
9
|
+
var previewImageUrls = {
|
|
10
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/044ejisv22dxt27c8cn80db4x2oj13s3.png',
|
|
11
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/563locbd706ado411n6gc2sh7tccqg4k.png'
|
|
12
|
+
};
|
|
9
13
|
export var MediaInsertQuickInsertMenuItem = function MediaInsertQuickInsertMenuItem(_ref) {
|
|
10
14
|
var api = _ref.api,
|
|
11
15
|
config = _ref.config;
|
|
@@ -44,6 +48,7 @@ export var MediaInsertQuickInsertMenuItem = function MediaInsertQuickInsertMenuI
|
|
|
44
48
|
}),
|
|
45
49
|
isDisabled: isOffline,
|
|
46
50
|
onSelect: onSelect,
|
|
51
|
+
previewImageUrls: previewImageUrls,
|
|
47
52
|
title: formatMessage(messages.mediaFiles)
|
|
48
53
|
});
|
|
49
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.0",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.5.0",
|
|
25
25
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
26
26
|
"@atlaskit/button": "^25.3.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
28
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
29
|
-
"@atlaskit/editor-plugin-media": "^
|
|
30
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
31
|
-
"@atlaskit/editor-prosemirror": "^
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^19.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^19.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-media": "^21.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^13.0.0",
|
|
31
|
+
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
33
33
|
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
34
34
|
"@atlaskit/form": "^17.2.0",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^
|
|
49
|
+
"@atlaskit/editor-common": "^123.0.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
51
|
-
"@atlaskit/tokens": "^18.
|
|
51
|
+
"@atlaskit/tokens": "^18.2.0",
|
|
52
52
|
"react": "^18.2.0 || ^19.2.0",
|
|
53
53
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
54
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|