@atlaskit/editor-common 114.20.1 → 114.21.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 +14 -0
- package/dist/cjs/ai-messages/ai-config-items.js +11 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-config-items.js +11 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-config-items.js +11 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-config-items.d.ts +10 -0
- package/dist/types-ts4.5/ai-messages/ai-config-items.d.ts +10 -0
- package/package.json +2 -2
- package/afm-jira/tsconfig.json +0 -192
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ba2fcee7745c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba2fcee7745c4) -
|
|
8
|
+
[ux] Added a new configurable empty state hero config item for the jira editor-plugin-ai, which
|
|
9
|
+
renders a 'Suggest a comment' AI hero button when the editor is empty. When the editor has
|
|
10
|
+
content, it switches back to the default hero button. The changes are for the
|
|
11
|
+
jira-smart-replies-v2 experiment.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 114.20.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -396,6 +396,17 @@ var aiConfigItemMessages = exports.aiConfigItemMessages = (0, _reactIntl.defineM
|
|
|
396
396
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
397
397
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
398
398
|
},
|
|
399
|
+
// Suggest a comment messages
|
|
400
|
+
suggestCommentTitle: {
|
|
401
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
402
|
+
defaultMessage: 'Suggest a comment',
|
|
403
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
404
|
+
},
|
|
405
|
+
suggestCommentDescription: {
|
|
406
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
407
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
408
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
409
|
+
},
|
|
399
410
|
// Suggest title messages
|
|
400
411
|
suggestTitleTitle: {
|
|
401
412
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "114.20.
|
|
22
|
+
var packageVersion = "114.20.1";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.20.
|
|
27
|
+
var packageVersion = "114.20.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -390,6 +390,17 @@ export const aiConfigItemMessages = defineMessages({
|
|
|
390
390
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
391
391
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
392
392
|
},
|
|
393
|
+
// Suggest a comment messages
|
|
394
|
+
suggestCommentTitle: {
|
|
395
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
396
|
+
defaultMessage: 'Suggest a comment',
|
|
397
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
398
|
+
},
|
|
399
|
+
suggestCommentDescription: {
|
|
400
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
401
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
402
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
403
|
+
},
|
|
393
404
|
// Suggest title messages
|
|
394
405
|
suggestTitleTitle: {
|
|
395
406
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.20.
|
|
7
|
+
const packageVersion = "114.20.1";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.20.
|
|
17
|
+
const packageVersion = "114.20.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -390,6 +390,17 @@ export var aiConfigItemMessages = defineMessages({
|
|
|
390
390
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
391
391
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
392
392
|
},
|
|
393
|
+
// Suggest a comment messages
|
|
394
|
+
suggestCommentTitle: {
|
|
395
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
396
|
+
defaultMessage: 'Suggest a comment',
|
|
397
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
398
|
+
},
|
|
399
|
+
suggestCommentDescription: {
|
|
400
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
401
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
402
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
403
|
+
},
|
|
393
404
|
// Suggest title messages
|
|
394
405
|
suggestTitleTitle: {
|
|
395
406
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.20.
|
|
13
|
+
var packageVersion = "114.20.1";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.20.
|
|
24
|
+
var packageVersion = "114.20.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -389,6 +389,16 @@ export declare const aiConfigItemMessages: {
|
|
|
389
389
|
description: string;
|
|
390
390
|
id: string;
|
|
391
391
|
};
|
|
392
|
+
suggestCommentDescription: {
|
|
393
|
+
defaultMessage: string;
|
|
394
|
+
description: string;
|
|
395
|
+
id: string;
|
|
396
|
+
};
|
|
397
|
+
suggestCommentTitle: {
|
|
398
|
+
defaultMessage: string;
|
|
399
|
+
description: string;
|
|
400
|
+
id: string;
|
|
401
|
+
};
|
|
392
402
|
suggestTitleDescription: {
|
|
393
403
|
defaultMessage: string;
|
|
394
404
|
description: string;
|
|
@@ -389,6 +389,16 @@ export declare const aiConfigItemMessages: {
|
|
|
389
389
|
description: string;
|
|
390
390
|
id: string;
|
|
391
391
|
};
|
|
392
|
+
suggestCommentDescription: {
|
|
393
|
+
defaultMessage: string;
|
|
394
|
+
description: string;
|
|
395
|
+
id: string;
|
|
396
|
+
};
|
|
397
|
+
suggestCommentTitle: {
|
|
398
|
+
defaultMessage: string;
|
|
399
|
+
description: string;
|
|
400
|
+
id: string;
|
|
401
|
+
};
|
|
392
402
|
suggestTitleDescription: {
|
|
393
403
|
defaultMessage: string;
|
|
394
404
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.21.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/"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.0.0",
|
|
88
88
|
"@atlaskit/textfield": "^8.3.0",
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^77.
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^77.1.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^22.0.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.1.0",
|
package/afm-jira/tsconfig.json
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-common/app",
|
|
6
|
-
"rootDir": "../",
|
|
7
|
-
"composite": true,
|
|
8
|
-
"noCheck": true
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"../src/**/*.ts",
|
|
12
|
-
"../src/**/*.tsx"
|
|
13
|
-
],
|
|
14
|
-
"exclude": [
|
|
15
|
-
"../src/**/__tests__/*",
|
|
16
|
-
"../src/**/*.test.*",
|
|
17
|
-
"../src/**/test.*",
|
|
18
|
-
"../src/**/examples.*",
|
|
19
|
-
"../src/**/examples/*",
|
|
20
|
-
"../src/**/examples/**/*",
|
|
21
|
-
"../src/**/*.stories.*",
|
|
22
|
-
"../src/**/stories/*",
|
|
23
|
-
"../src/**/stories/**/*"
|
|
24
|
-
],
|
|
25
|
-
"references": [
|
|
26
|
-
{
|
|
27
|
-
"path": "../../activity-provider/afm-jira/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../adf-schema/afm-jira/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../adf-utils/afm-jira/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../../uip/atlassian-context/afm-jira/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../../helpers/browser-apis/afm-jira/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../../monorepo-tooling/codemod-utils/afm-jira/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../../design-system/css/afm-jira/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../custom-steps/afm-jira/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../design-system/dropdown-menu/afm-jira/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../editor-palette/afm-jira/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../editor-shared-styles/afm-jira/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../editor-tables/afm-jira/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../editor-toolbar/afm-jira/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../editor-toolbar-model/afm-jira/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../elements/emoji/afm-jira/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../design-system/icon-object/afm-jira/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../design-system/link/afm-jira/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../linking-platform/link-datasource/afm-jira/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../linking-platform/link-picker/afm-jira/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../media/media-card/afm-jira/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../media/media-client/afm-jira/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../media/media-client-react/afm-jira/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../../media/media-common/afm-jira/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../media/media-file-preview/afm-jira/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../../media/media-picker/afm-jira/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../media/media-ui/afm-jira/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../../media/media-viewer/afm-jira/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../elements/mention/afm-jira/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../../design-system/menu/afm-jira/tsconfig.json"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"path": "../../../design-system/onboarding/afm-jira/tsconfig.json"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"path": "../../../platform/feature-flags-react/afm-jira/tsconfig.json"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"path": "../../../design-system/popper/afm-jira/tsconfig.json"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"path": "../../prosemirror-history/afm-jira/tsconfig.json"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"path": "../../../design-system/section-message/afm-jira/tsconfig.json"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"path": "../../../linking-platform/smart-card/afm-jira/tsconfig.json"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"path": "../../../smart-experiences/smart-user-picker/afm-jira/tsconfig.json"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"path": "../../../elements/task-decision/afm-jira/tsconfig.json"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"path": "../../../design-system/textfield/afm-jira/tsconfig.json"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"path": "../../tmp-editor-statsig/afm-jira/tsconfig.json"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"path": "../../../media/media-core/afm-jira/tsconfig.json"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|