@atlaskit/editor-common 76.26.1 → 76.26.2
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/card/index.js +25 -0
- package/dist/cjs/card/ui/assets/index.js +33 -0
- package/dist/cjs/messages/media-and-embed-toolbar.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/card/index.js +2 -1
- package/dist/es2019/card/ui/assets/index.js +5 -0
- package/dist/es2019/messages/media-and-embed-toolbar.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/card/index.js +2 -1
- package/dist/esm/card/ui/assets/index.js +5 -0
- package/dist/esm/messages/media-and-embed-toolbar.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/insert-events.d.ts +1 -1
- package/dist/types/card/index.d.ts +1 -0
- package/dist/types/card/ui/assets/index.d.ts +4 -0
- package/dist/types/messages/media-and-embed-toolbar.d.ts +10 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -1
- package/dist/types-ts4.5/card/index.d.ts +1 -0
- package/dist/types-ts4.5/card/ui/assets/index.d.ts +4 -0
- package/dist/types-ts4.5/messages/media-and-embed-toolbar.d.ts +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.26.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59086](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59086) [`8b5cbc397cfd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b5cbc397cfd) - [ux] add convert media inline image to media single floating toolbar item
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 76.26.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/card/index.js
CHANGED
|
@@ -5,6 +5,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
|
|
8
|
+
Object.defineProperty(exports, "IconCard", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _assets.IconCard;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "IconEmbed", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _assets.IconEmbed;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "IconInline", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _assets.IconInline;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "IconUrl", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _assets.IconUrl;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
8
32
|
Object.defineProperty(exports, "LinkToolbarButtonGroup", {
|
|
9
33
|
enumerable: true,
|
|
10
34
|
get: function get() {
|
|
@@ -63,6 +87,7 @@ var _utils = require("./utils");
|
|
|
63
87
|
var _MediaAndEmbedsToolbar = _interopRequireWildcard(require("./MediaAndEmbedsToolbar"));
|
|
64
88
|
var _LinkToolbarButtonGroup = require("./LinkToolbarButtonGroup");
|
|
65
89
|
var _linkToolbarButtonGroupOptions = require("./link-toolbar-button-group-options");
|
|
90
|
+
var _assets = require("./ui/assets");
|
|
66
91
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
67
92
|
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; }
|
|
68
93
|
var DATASOURCE_INNER_CONTAINER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "IconCard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _card.IconCard;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "IconEmbed", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _embed.IconEmbed;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "IconInline", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _inline.IconInline;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "IconUrl", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _url.IconUrl;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _inline = require("./inline");
|
|
31
|
+
var _embed = require("./embed");
|
|
32
|
+
var _card = require("./card");
|
|
33
|
+
var _url = require("./url");
|
|
@@ -15,5 +15,15 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
|
|
|
15
15
|
id: 'fabric.editor.wrapRight',
|
|
16
16
|
defaultMessage: 'Wrap right',
|
|
17
17
|
description: 'Aligns your image to the right and wraps text around it.'
|
|
18
|
+
},
|
|
19
|
+
changeToMediaSingle: {
|
|
20
|
+
id: 'fabric.editor.media_change_mediasingle',
|
|
21
|
+
defaultMessage: 'Original size',
|
|
22
|
+
description: 'In the context of a media inline image, it allows the user to convert it to media single'
|
|
23
|
+
},
|
|
24
|
+
changeToMediaInlineImage: {
|
|
25
|
+
id: 'fabric.editor.media_change_mediainline',
|
|
26
|
+
defaultMessage: 'Inline',
|
|
27
|
+
description: 'In the context of media single contains media node, it allows the user to convert media single to media inline image'
|
|
18
28
|
}
|
|
19
29
|
});
|
|
@@ -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.26.
|
|
19
|
+
var packageVersion = "76.26.2";
|
|
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.26.
|
|
27
|
+
var packageVersion = "76.26.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -2,4 +2,5 @@ export { addLinkMetadata, getLinkMetadataFromTransaction, commandWithMetadata }
|
|
|
2
2
|
export { default as buildLayoutButtons, alignmentIcons, wrappingIcons, layoutToMessages } from './MediaAndEmbedsToolbar';
|
|
3
3
|
export { LinkToolbarButtonGroup } from './LinkToolbarButtonGroup';
|
|
4
4
|
export { getButtonGroupOption } from './link-toolbar-button-group-options';
|
|
5
|
-
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
5
|
+
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
6
|
+
export { IconInline, IconEmbed, IconCard, IconUrl } from './ui/assets';
|
|
@@ -9,5 +9,15 @@ export const toolbarMessages = defineMessages({
|
|
|
9
9
|
id: 'fabric.editor.wrapRight',
|
|
10
10
|
defaultMessage: 'Wrap right',
|
|
11
11
|
description: 'Aligns your image to the right and wraps text around it.'
|
|
12
|
+
},
|
|
13
|
+
changeToMediaSingle: {
|
|
14
|
+
id: 'fabric.editor.media_change_mediasingle',
|
|
15
|
+
defaultMessage: 'Original size',
|
|
16
|
+
description: 'In the context of a media inline image, it allows the user to convert it to media single'
|
|
17
|
+
},
|
|
18
|
+
changeToMediaInlineImage: {
|
|
19
|
+
id: 'fabric.editor.media_change_mediainline',
|
|
20
|
+
defaultMessage: 'Inline',
|
|
21
|
+
description: 'In the context of media single contains media node, it allows the user to convert media single to media inline image'
|
|
12
22
|
}
|
|
13
23
|
});
|
|
@@ -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.26.
|
|
3
|
+
const packageVersion = "76.26.2";
|
|
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.26.
|
|
12
|
+
const packageVersion = "76.26.2";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
package/dist/esm/card/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export { addLinkMetadata, getLinkMetadataFromTransaction, commandWithMetadata }
|
|
|
2
2
|
export { default as buildLayoutButtons, alignmentIcons, wrappingIcons, layoutToMessages } from './MediaAndEmbedsToolbar';
|
|
3
3
|
export { LinkToolbarButtonGroup } from './LinkToolbarButtonGroup';
|
|
4
4
|
export { getButtonGroupOption } from './link-toolbar-button-group-options';
|
|
5
|
-
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
5
|
+
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
6
|
+
export { IconInline, IconEmbed, IconCard, IconUrl } from './ui/assets';
|
|
@@ -9,5 +9,15 @@ export var toolbarMessages = defineMessages({
|
|
|
9
9
|
id: 'fabric.editor.wrapRight',
|
|
10
10
|
defaultMessage: 'Wrap right',
|
|
11
11
|
description: 'Aligns your image to the right and wraps text around it.'
|
|
12
|
+
},
|
|
13
|
+
changeToMediaSingle: {
|
|
14
|
+
id: 'fabric.editor.media_change_mediasingle',
|
|
15
|
+
defaultMessage: 'Original size',
|
|
16
|
+
description: 'In the context of a media inline image, it allows the user to convert it to media single'
|
|
17
|
+
},
|
|
18
|
+
changeToMediaInlineImage: {
|
|
19
|
+
id: 'fabric.editor.media_change_mediainline',
|
|
20
|
+
defaultMessage: 'Inline',
|
|
21
|
+
description: 'In the context of media single contains media node, it allows the user to convert media single to media inline image'
|
|
12
22
|
}
|
|
13
23
|
});
|
|
@@ -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.26.
|
|
9
|
+
var packageVersion = "76.26.2";
|
|
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.26.
|
|
22
|
+
var packageVersion = "76.26.2";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -110,7 +110,7 @@ type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
|
|
|
110
110
|
type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
|
|
111
111
|
nodeType: string;
|
|
112
112
|
inputMethod: INPUT_METHOD.EXTENSION_API;
|
|
113
|
-
hasReferentiality:
|
|
113
|
+
hasReferentiality: boolean;
|
|
114
114
|
nodeTypesReferenced?: string[];
|
|
115
115
|
layout?: ExtensionLayout;
|
|
116
116
|
extensionType?: string;
|
|
@@ -6,3 +6,4 @@ export type { OptionConfig, CardPluginActions, QueueCardsFromTransactionAction,
|
|
|
6
6
|
export { LinkToolbarButtonGroup } from './LinkToolbarButtonGroup';
|
|
7
7
|
export { getButtonGroupOption } from './link-toolbar-button-group-options';
|
|
8
8
|
export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
|
|
9
|
+
export { IconInline, IconEmbed, IconCard, IconUrl } from './ui/assets';
|
|
@@ -9,4 +9,14 @@ export declare const toolbarMessages: {
|
|
|
9
9
|
defaultMessage: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
+
changeToMediaSingle: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
changeToMediaInlineImage: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
};
|
|
@@ -110,7 +110,7 @@ type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
|
|
|
110
110
|
type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
|
|
111
111
|
nodeType: string;
|
|
112
112
|
inputMethod: INPUT_METHOD.EXTENSION_API;
|
|
113
|
-
hasReferentiality:
|
|
113
|
+
hasReferentiality: boolean;
|
|
114
114
|
nodeTypesReferenced?: string[];
|
|
115
115
|
layout?: ExtensionLayout;
|
|
116
116
|
extensionType?: string;
|
|
@@ -6,3 +6,4 @@ export type { OptionConfig, CardPluginActions, QueueCardsFromTransactionAction,
|
|
|
6
6
|
export { LinkToolbarButtonGroup } from './LinkToolbarButtonGroup';
|
|
7
7
|
export { getButtonGroupOption } from './link-toolbar-button-group-options';
|
|
8
8
|
export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
|
|
9
|
+
export { IconInline, IconEmbed, IconCard, IconUrl } from './ui/assets';
|
|
@@ -9,4 +9,14 @@ export declare const toolbarMessages: {
|
|
|
9
9
|
defaultMessage: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
+
changeToMediaSingle: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
changeToMediaInlineImage: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.26.
|
|
3
|
+
"version": "76.26.2",
|
|
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/"
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
118
118
|
"@atlaskit/profilecard": "^19.7.0",
|
|
119
119
|
"@atlaskit/smart-card": "^26.43.0",
|
|
120
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
120
|
+
"@atlaskit/smart-user-picker": "^6.4.0",
|
|
121
121
|
"@atlaskit/spinner": "^16.0.0",
|
|
122
122
|
"@atlaskit/task-decision": "^17.9.0",
|
|
123
123
|
"@atlaskit/textfield": "^6.0.0",
|