@atlaskit/editor-common 76.22.3 → 76.22.4
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 +7 -0
- package/dist/cjs/media-inline/MediaInlineImageCard.js +76 -0
- package/dist/cjs/media-inline/index.js +19 -0
- package/dist/cjs/media-inline/shouldShowInlineImage.js +13 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/media-inline/MediaInlineImageCard.js +63 -0
- package/dist/es2019/media-inline/index.js +2 -0
- package/dist/es2019/media-inline/shouldShowInlineImage.js +7 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/media-inline/MediaInlineImageCard.js +69 -0
- package/dist/esm/media-inline/index.js +2 -0
- package/dist/esm/media-inline/shouldShowInlineImage.js +7 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/media-inline/MediaInlineImageCard.d.ts +9 -0
- package/dist/types/media-inline/index.d.ts +2 -0
- package/dist/types/media-inline/shouldShowInlineImage.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/MediaInlineImageCard.d.ts +9 -0
- package/dist/types-ts4.5/media-inline/index.d.ts +2 -0
- package/dist/types-ts4.5/media-inline/shouldShowInlineImage.d.ts +1 -0
- package/media-inline/package.json +15 -0
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.22.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43434](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43434) [`3164f6d83de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3164f6d83de) - ED-20979 and ED-20878 scaffolding for inline image component
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 76.22.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.MediaInlineImageCard = void 0;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
/** @jsx jsx */
|
|
11
|
+
|
|
12
|
+
var MediaInlineImageCard = exports.MediaInlineImageCard = function MediaInlineImageCard(_ref) {
|
|
13
|
+
var mediaClient = _ref.mediaClient,
|
|
14
|
+
identifier = _ref.identifier;
|
|
15
|
+
var _useState = (0, _react.useState)(),
|
|
16
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
17
|
+
fileState = _useState2[0],
|
|
18
|
+
setFileState = _useState2[1];
|
|
19
|
+
var _useState3 = (0, _react.useState)(),
|
|
20
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
21
|
+
subscribeError = _useState4[0],
|
|
22
|
+
setSubscribeError = _useState4[1];
|
|
23
|
+
(0, _react.useEffect)(function () {
|
|
24
|
+
var subscription = mediaClient.file.getFileState(identifier.id, {
|
|
25
|
+
collectionName: identifier.collectionName
|
|
26
|
+
}).subscribe({
|
|
27
|
+
next: function next(fileState) {
|
|
28
|
+
setFileState(fileState);
|
|
29
|
+
setSubscribeError(undefined);
|
|
30
|
+
},
|
|
31
|
+
error: function error(e) {
|
|
32
|
+
setSubscribeError(e);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return function () {
|
|
36
|
+
subscription.unsubscribe();
|
|
37
|
+
};
|
|
38
|
+
}, [identifier.collectionName, identifier.id, mediaClient.file]);
|
|
39
|
+
if (subscribeError) {
|
|
40
|
+
// TODO:
|
|
41
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
42
|
+
// for error message and analytics
|
|
43
|
+
throw new Error("not yet implemented: MediaInlineImageCard subscribe error view");
|
|
44
|
+
}
|
|
45
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
|
|
46
|
+
// TODO:
|
|
47
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
48
|
+
// for error message and analytics
|
|
49
|
+
throw new Error("not yet implemented: MediaInlineImageCard error view");
|
|
50
|
+
}
|
|
51
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
|
|
52
|
+
// TODO:
|
|
53
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
54
|
+
// for error message and analytics
|
|
55
|
+
throw new Error("not yet implemented: MediaInlineImageCard failed-processing view");
|
|
56
|
+
}
|
|
57
|
+
// Empty file handling
|
|
58
|
+
if (fileState && !fileState.name) {
|
|
59
|
+
// TODO:
|
|
60
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
61
|
+
// for error message and analytics
|
|
62
|
+
throw new Error("not yet implemented: MediaInlineImageCard empty file name error view");
|
|
63
|
+
}
|
|
64
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
|
|
65
|
+
throw new Error("not yet implemented: MediaInlineImageCard uploading view");
|
|
66
|
+
}
|
|
67
|
+
if (!fileState) {
|
|
68
|
+
throw new Error("not yet implemented: MediaInlineImageCard loading view");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// TODO
|
|
72
|
+
// use Card from `@atlaskit/media-card` with an inline block wrapper
|
|
73
|
+
// with:
|
|
74
|
+
// selection state and `mediaOptions.allowLazyLoading`
|
|
75
|
+
throw new Error("not yet implemented: MediaInlineImageCard loading view");
|
|
76
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MediaInlineImageCard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _MediaInlineImageCard.MediaInlineImageCard;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "shouldShowInlineImage", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _shouldShowInlineImage.shouldShowInlineImage;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _MediaInlineImageCard = require("./MediaInlineImageCard");
|
|
19
|
+
var _shouldShowInlineImage = require("./shouldShowInlineImage");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.shouldShowInlineImage = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
|
+
var shouldShowInlineImage = exports.shouldShowInlineImage = function shouldShowInlineImage(mediaType) {
|
|
9
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.inline-image.base-support')) {
|
|
10
|
+
return mediaType === 'image';
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
};
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.22.
|
|
19
|
+
var packageVersion = "76.22.4";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.22.
|
|
27
|
+
var packageVersion = "76.22.4";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
export const MediaInlineImageCard = ({
|
|
5
|
+
mediaClient,
|
|
6
|
+
identifier
|
|
7
|
+
}) => {
|
|
8
|
+
const [fileState, setFileState] = useState();
|
|
9
|
+
const [subscribeError, setSubscribeError] = useState();
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
const subscription = mediaClient.file.getFileState(identifier.id, {
|
|
12
|
+
collectionName: identifier.collectionName
|
|
13
|
+
}).subscribe({
|
|
14
|
+
next: fileState => {
|
|
15
|
+
setFileState(fileState);
|
|
16
|
+
setSubscribeError(undefined);
|
|
17
|
+
},
|
|
18
|
+
error: e => {
|
|
19
|
+
setSubscribeError(e);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
subscription.unsubscribe();
|
|
24
|
+
};
|
|
25
|
+
}, [identifier.collectionName, identifier.id, mediaClient.file]);
|
|
26
|
+
if (subscribeError) {
|
|
27
|
+
// TODO:
|
|
28
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
29
|
+
// for error message and analytics
|
|
30
|
+
throw new Error(`not yet implemented: MediaInlineImageCard subscribe error view`);
|
|
31
|
+
}
|
|
32
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
|
|
33
|
+
// TODO:
|
|
34
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
35
|
+
// for error message and analytics
|
|
36
|
+
throw new Error(`not yet implemented: MediaInlineImageCard error view`);
|
|
37
|
+
}
|
|
38
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
|
|
39
|
+
// TODO:
|
|
40
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
41
|
+
// for error message and analytics
|
|
42
|
+
throw new Error(`not yet implemented: MediaInlineImageCard failed-processing view`);
|
|
43
|
+
}
|
|
44
|
+
// Empty file handling
|
|
45
|
+
if (fileState && !fileState.name) {
|
|
46
|
+
// TODO:
|
|
47
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
48
|
+
// for error message and analytics
|
|
49
|
+
throw new Error(`not yet implemented: MediaInlineImageCard empty file name error view`);
|
|
50
|
+
}
|
|
51
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
|
|
52
|
+
throw new Error(`not yet implemented: MediaInlineImageCard uploading view`);
|
|
53
|
+
}
|
|
54
|
+
if (!fileState) {
|
|
55
|
+
throw new Error(`not yet implemented: MediaInlineImageCard loading view`);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// TODO
|
|
59
|
+
// use Card from `@atlaskit/media-card` with an inline block wrapper
|
|
60
|
+
// with:
|
|
61
|
+
// selection state and `mediaOptions.allowLazyLoading`
|
|
62
|
+
throw new Error(`not yet implemented: MediaInlineImageCard loading view`);
|
|
63
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.22.
|
|
3
|
+
const packageVersion = "76.22.4";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.22.
|
|
12
|
+
const packageVersion = "76.22.4";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
export var MediaInlineImageCard = function MediaInlineImageCard(_ref) {
|
|
6
|
+
var mediaClient = _ref.mediaClient,
|
|
7
|
+
identifier = _ref.identifier;
|
|
8
|
+
var _useState = useState(),
|
|
9
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10
|
+
fileState = _useState2[0],
|
|
11
|
+
setFileState = _useState2[1];
|
|
12
|
+
var _useState3 = useState(),
|
|
13
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
14
|
+
subscribeError = _useState4[0],
|
|
15
|
+
setSubscribeError = _useState4[1];
|
|
16
|
+
useEffect(function () {
|
|
17
|
+
var subscription = mediaClient.file.getFileState(identifier.id, {
|
|
18
|
+
collectionName: identifier.collectionName
|
|
19
|
+
}).subscribe({
|
|
20
|
+
next: function next(fileState) {
|
|
21
|
+
setFileState(fileState);
|
|
22
|
+
setSubscribeError(undefined);
|
|
23
|
+
},
|
|
24
|
+
error: function error(e) {
|
|
25
|
+
setSubscribeError(e);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return function () {
|
|
29
|
+
subscription.unsubscribe();
|
|
30
|
+
};
|
|
31
|
+
}, [identifier.collectionName, identifier.id, mediaClient.file]);
|
|
32
|
+
if (subscribeError) {
|
|
33
|
+
// TODO:
|
|
34
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
35
|
+
// for error message and analytics
|
|
36
|
+
throw new Error("not yet implemented: MediaInlineImageCard subscribe error view");
|
|
37
|
+
}
|
|
38
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
|
|
39
|
+
// TODO:
|
|
40
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
41
|
+
// for error message and analytics
|
|
42
|
+
throw new Error("not yet implemented: MediaInlineImageCard error view");
|
|
43
|
+
}
|
|
44
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
|
|
45
|
+
// TODO:
|
|
46
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
47
|
+
// for error message and analytics
|
|
48
|
+
throw new Error("not yet implemented: MediaInlineImageCard failed-processing view");
|
|
49
|
+
}
|
|
50
|
+
// Empty file handling
|
|
51
|
+
if (fileState && !fileState.name) {
|
|
52
|
+
// TODO:
|
|
53
|
+
// referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
|
|
54
|
+
// for error message and analytics
|
|
55
|
+
throw new Error("not yet implemented: MediaInlineImageCard empty file name error view");
|
|
56
|
+
}
|
|
57
|
+
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
|
|
58
|
+
throw new Error("not yet implemented: MediaInlineImageCard uploading view");
|
|
59
|
+
}
|
|
60
|
+
if (!fileState) {
|
|
61
|
+
throw new Error("not yet implemented: MediaInlineImageCard loading view");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// TODO
|
|
65
|
+
// use Card from `@atlaskit/media-card` with an inline block wrapper
|
|
66
|
+
// with:
|
|
67
|
+
// selection state and `mediaOptions.allowLazyLoading`
|
|
68
|
+
throw new Error("not yet implemented: MediaInlineImageCard loading view");
|
|
69
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
export var shouldShowInlineImage = function shouldShowInlineImage(mediaType) {
|
|
3
|
+
if (getBooleanFF('platform.editor.media.inline-image.base-support')) {
|
|
4
|
+
return mediaType === 'image';
|
|
5
|
+
}
|
|
6
|
+
return false;
|
|
7
|
+
};
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.22.
|
|
9
|
+
var packageVersion = "76.22.4";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.22.
|
|
22
|
+
var packageVersion = "76.22.4";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
4
|
+
export interface MediaInlineImageCardProps {
|
|
5
|
+
identifier: FileIdentifier;
|
|
6
|
+
mediaClient: MediaClient;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldShowInlineImage: (mediaType: string) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
4
|
+
export interface MediaInlineImageCardProps {
|
|
5
|
+
identifier: FileIdentifier;
|
|
6
|
+
mediaClient: MediaClient;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldShowInlineImage: (mediaType: string) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/media-inline",
|
|
3
|
+
"main": "../dist/cjs/media-inline/index.js",
|
|
4
|
+
"module": "../dist/esm/media-inline/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/media-inline/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/media-inline/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/media-inline/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.22.
|
|
3
|
+
"version": "76.22.4",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"./selection": "./src/selection/index.ts",
|
|
67
67
|
"./preset": "./src/preset/index.ts",
|
|
68
68
|
"./hooks": "./src/hooks/index.ts",
|
|
69
|
+
"./media-inline": "./src/media-inline/index.ts",
|
|
69
70
|
"./media-single": "./src/media-single/index.ts",
|
|
70
71
|
"./monitoring": "./src/monitoring/index.ts",
|
|
71
72
|
"./paste": "./src/paste/index.ts",
|
|
@@ -119,7 +120,7 @@
|
|
|
119
120
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
120
121
|
"@atlaskit/spinner": "^16.0.0",
|
|
121
122
|
"@atlaskit/task-decision": "^17.9.0",
|
|
122
|
-
"@atlaskit/textfield": "^
|
|
123
|
+
"@atlaskit/textfield": "^6.0.0",
|
|
123
124
|
"@atlaskit/theme": "^12.6.0",
|
|
124
125
|
"@atlaskit/tokens": "^1.28.0",
|
|
125
126
|
"@atlaskit/tooltip": "^18.0.0",
|
|
@@ -203,6 +204,9 @@
|
|
|
203
204
|
"platform.editor.media.extended-resize-experience": {
|
|
204
205
|
"type": "boolean"
|
|
205
206
|
},
|
|
207
|
+
"platform.editor.media.inline-image.base-support": {
|
|
208
|
+
"type": "boolean"
|
|
209
|
+
},
|
|
206
210
|
"platform.linking-platform.datasource-assets_objects": {
|
|
207
211
|
"type": "boolean"
|
|
208
212
|
},
|