@atlaskit/editor-common 103.17.0 → 103.18.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 +21 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/ai-messages/ai-config-items.js +5 -0
- package/dist/cjs/messages/status.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/index.js +2 -1
- package/dist/es2019/ai-messages/ai-config-items.js +5 -0
- package/dist/es2019/messages/status.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +2 -1
- package/dist/esm/ai-messages/ai-config-items.js +5 -0
- package/dist/esm/messages/status.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/index.js +2 -1
- package/dist/types/ai-messages/ai-config-items.d.ts +5 -0
- package/dist/types/messages/status.d.ts +5 -0
- package/dist/types-ts4.5/ai-messages/ai-config-items.d.ts +5 -0
- package/dist/types-ts4.5/messages/status.d.ts +5 -0
- package/i18n/package.json +17 -0
- package/package.json +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#146371](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146371)
|
|
8
|
+
[`9540ed4b36027`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9540ed4b36027) -
|
|
9
|
+
[A11Y-9995] Add label to Status editor popup
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 103.17.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#146650](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146650)
|
|
20
|
+
[`9074704f03590`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9074704f03590) -
|
|
21
|
+
add data attribute to media single component
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 103.17.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -58,6 +58,11 @@ var aiConfigItemMessages = exports.aiConfigItemMessages = (0, _reactIntlNext.def
|
|
|
58
58
|
defaultMessage: 'Open in Chat',
|
|
59
59
|
description: 'Tooltip and label for Open in Chat button'
|
|
60
60
|
},
|
|
61
|
+
configActionEdit: {
|
|
62
|
+
id: 'fabric.editor.ai.config.item.action.edit',
|
|
63
|
+
defaultMessage: 'Edit',
|
|
64
|
+
description: 'Edit underlying editor at the current location with AI generated content'
|
|
65
|
+
},
|
|
61
66
|
// Atlas shorten update messages
|
|
62
67
|
atlasShortenUpdatetitle: {
|
|
63
68
|
id: 'fabric.editor.ai.config.item.atlas-shorten-update.title',
|
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
8
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
statusEditorLabel: {
|
|
10
|
+
id: 'fabric.editor.statusEditorLabel',
|
|
11
|
+
defaultMessage: 'Status editor',
|
|
12
|
+
description: 'Label for the status element editor'
|
|
13
|
+
},
|
|
9
14
|
placeholder: {
|
|
10
15
|
id: 'fabric.editor.statusPlaceholder',
|
|
11
16
|
defaultMessage: 'Set a status',
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "103.
|
|
20
|
+
var packageVersion = "103.18.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "103.
|
|
26
|
+
var packageVersion = "103.18.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -12,6 +12,7 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _vcMedia = require("@atlaskit/react-ufo/vc-media");
|
|
15
16
|
var _constants = require("../../media-single/constants");
|
|
16
17
|
var _utils = require("../../media-single/utils");
|
|
17
18
|
var _richMediaUtils = require("../../utils/rich-media-utils");
|
|
@@ -124,7 +125,7 @@ function MediaSingle(_ref) {
|
|
|
124
125
|
})
|
|
125
126
|
// Ignored via go/ees005
|
|
126
127
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
127
|
-
}, dataAttributes), (0, _react2.jsx)(_styled.MediaWrapper, {
|
|
128
|
+
}, dataAttributes, (0, _platformFeatureFlags.fg)('platform_exclude_media_single_from_vc') && _vcMedia.VcMediaWrapperProps), (0, _react2.jsx)(_styled.MediaWrapper, {
|
|
128
129
|
hasFallbackContainer: hasFallbackContainer,
|
|
129
130
|
height: mediaWrapperHeight,
|
|
130
131
|
paddingBottom: paddingBottom
|
|
@@ -52,6 +52,11 @@ export const aiConfigItemMessages = defineMessages({
|
|
|
52
52
|
defaultMessage: 'Open in Chat',
|
|
53
53
|
description: 'Tooltip and label for Open in Chat button'
|
|
54
54
|
},
|
|
55
|
+
configActionEdit: {
|
|
56
|
+
id: 'fabric.editor.ai.config.item.action.edit',
|
|
57
|
+
defaultMessage: 'Edit',
|
|
58
|
+
description: 'Edit underlying editor at the current location with AI generated content'
|
|
59
|
+
},
|
|
55
60
|
// Atlas shorten update messages
|
|
56
61
|
atlasShortenUpdatetitle: {
|
|
57
62
|
id: 'fabric.editor.ai.config.item.atlas-shorten-update.title',
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl-next';
|
|
2
2
|
export const messages = defineMessages({
|
|
3
|
+
statusEditorLabel: {
|
|
4
|
+
id: 'fabric.editor.statusEditorLabel',
|
|
5
|
+
defaultMessage: 'Status editor',
|
|
6
|
+
description: 'Label for the status element editor'
|
|
7
|
+
},
|
|
3
8
|
placeholder: {
|
|
4
9
|
id: 'fabric.editor.statusPlaceholder',
|
|
5
10
|
defaultMessage: 'Set a status',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "103.
|
|
4
|
+
const packageVersion = "103.18.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "103.
|
|
16
|
+
const packageVersion = "103.18.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -10,6 +10,7 @@ import { jsx } from '@emotion/react';
|
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
13
14
|
import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
|
|
14
15
|
import { getMediaSinglePixelWidth } from '../../media-single/utils';
|
|
15
16
|
import { shouldAddDefaultWrappedWidth } from '../../utils/rich-media-utils';
|
|
@@ -109,7 +110,7 @@ export default function MediaSingle({
|
|
|
109
110
|
})
|
|
110
111
|
// Ignored via go/ees005
|
|
111
112
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
112
|
-
}, dataAttributes), jsx(MediaWrapper, {
|
|
113
|
+
}, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
|
|
113
114
|
hasFallbackContainer: hasFallbackContainer,
|
|
114
115
|
height: mediaWrapperHeight,
|
|
115
116
|
paddingBottom: paddingBottom
|
|
@@ -52,6 +52,11 @@ export var aiConfigItemMessages = defineMessages({
|
|
|
52
52
|
defaultMessage: 'Open in Chat',
|
|
53
53
|
description: 'Tooltip and label for Open in Chat button'
|
|
54
54
|
},
|
|
55
|
+
configActionEdit: {
|
|
56
|
+
id: 'fabric.editor.ai.config.item.action.edit',
|
|
57
|
+
defaultMessage: 'Edit',
|
|
58
|
+
description: 'Edit underlying editor at the current location with AI generated content'
|
|
59
|
+
},
|
|
55
60
|
// Atlas shorten update messages
|
|
56
61
|
atlasShortenUpdatetitle: {
|
|
57
62
|
id: 'fabric.editor.ai.config.item.atlas-shorten-update.title',
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl-next';
|
|
2
2
|
export var messages = defineMessages({
|
|
3
|
+
statusEditorLabel: {
|
|
4
|
+
id: 'fabric.editor.statusEditorLabel',
|
|
5
|
+
defaultMessage: 'Status editor',
|
|
6
|
+
description: 'Label for the status element editor'
|
|
7
|
+
},
|
|
3
8
|
placeholder: {
|
|
4
9
|
id: 'fabric.editor.statusPlaceholder',
|
|
5
10
|
defaultMessage: 'Set a status',
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "103.
|
|
10
|
+
var packageVersion = "103.18.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "103.
|
|
23
|
+
var packageVersion = "103.18.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -11,6 +11,7 @@ import { jsx } from '@emotion/react';
|
|
|
11
11
|
import classnames from 'classnames';
|
|
12
12
|
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
14
15
|
import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
|
|
15
16
|
import { getMediaSinglePixelWidth } from '../../media-single/utils';
|
|
16
17
|
import { shouldAddDefaultWrappedWidth } from '../../utils/rich-media-utils';
|
|
@@ -116,7 +117,7 @@ export default function MediaSingle(_ref) {
|
|
|
116
117
|
})
|
|
117
118
|
// Ignored via go/ees005
|
|
118
119
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
119
|
-
}, dataAttributes), jsx(MediaWrapper, {
|
|
120
|
+
}, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
|
|
120
121
|
hasFallbackContainer: hasFallbackContainer,
|
|
121
122
|
height: mediaWrapperHeight,
|
|
122
123
|
paddingBottom: paddingBottom
|
|
@@ -49,6 +49,11 @@ export declare const aiConfigItemMessages: {
|
|
|
49
49
|
defaultMessage: string;
|
|
50
50
|
description: string;
|
|
51
51
|
};
|
|
52
|
+
configActionEdit: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
52
57
|
atlasShortenUpdatetitle: {
|
|
53
58
|
id: string;
|
|
54
59
|
defaultMessage: string;
|
|
@@ -49,6 +49,11 @@ export declare const aiConfigItemMessages: {
|
|
|
49
49
|
defaultMessage: string;
|
|
50
50
|
description: string;
|
|
51
51
|
};
|
|
52
|
+
configActionEdit: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
52
57
|
atlasShortenUpdatetitle: {
|
|
53
58
|
id: string;
|
|
54
59
|
defaultMessage: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/i18n",
|
|
3
|
+
"main": "../dist/cjs/i18n/index.js",
|
|
4
|
+
"module": "../dist/esm/i18n/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/i18n/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/i18n/index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/i18n/index.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.18.0",
|
|
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/"
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"runReact18": true
|
|
31
31
|
},
|
|
32
32
|
"af:exports": {
|
|
33
|
+
"./i18n": "./src/i18n/index.ts",
|
|
33
34
|
"./prosemirror-dom-metadata": "./src/prosemirror-dom-metadata/index.ts",
|
|
34
35
|
"./whitespace": "./src/whitespace/index.ts",
|
|
35
36
|
"./event-dispatcher": "./src/event-dispatcher/index.ts",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
127
128
|
"@atlaskit/atlassian-context": "^0.2.0",
|
|
128
129
|
"@atlaskit/button": "^23.0.0",
|
|
129
|
-
"@atlaskit/code": "^17.
|
|
130
|
+
"@atlaskit/code": "^17.1.0",
|
|
130
131
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
131
132
|
"@atlaskit/css": "^0.10.0",
|
|
132
133
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
@@ -155,12 +156,13 @@
|
|
|
155
156
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
156
157
|
"@atlaskit/popper": "^7.0.0",
|
|
157
158
|
"@atlaskit/primitives": "^14.4.0",
|
|
158
|
-
"@atlaskit/profilecard": "^23.
|
|
159
|
+
"@atlaskit/profilecard": "^23.9.0",
|
|
160
|
+
"@atlaskit/react-ufo": "^3.8.0",
|
|
159
161
|
"@atlaskit/section-message": "^8.2.0",
|
|
160
162
|
"@atlaskit/smart-card": "^36.10.0",
|
|
161
163
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
162
164
|
"@atlaskit/spinner": "^18.0.0",
|
|
163
|
-
"@atlaskit/task-decision": "^19.
|
|
165
|
+
"@atlaskit/task-decision": "^19.2.0",
|
|
164
166
|
"@atlaskit/textfield": "^8.0.0",
|
|
165
167
|
"@atlaskit/theme": "^18.0.0",
|
|
166
168
|
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
|
@@ -354,6 +356,9 @@
|
|
|
354
356
|
},
|
|
355
357
|
"platform_editor_refactor_view_more": {
|
|
356
358
|
"type": "boolean"
|
|
359
|
+
},
|
|
360
|
+
"platform_exclude_media_single_from_vc": {
|
|
361
|
+
"type": "boolean"
|
|
357
362
|
}
|
|
358
363
|
}
|
|
359
364
|
}
|