@atlaskit/editor-common 121.5.2 → 122.1.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 +24 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +23 -8
- package/dist/cjs/messages/rule.js +69 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-suggestions.js +23 -8
- package/dist/es2019/messages/rule.js +63 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-suggestions.js +23 -8
- package/dist/esm/messages/rule.js +63 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +20 -5
- package/dist/types/analytics/types/node-events.d.ts +10 -1
- package/dist/types/messages/rule.d.ts +62 -0
- package/messages/rule/package.json +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 122.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`27b897435a350`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/27b897435a350) -
|
|
8
|
+
[ux] [EDITOR-8345] This change adds a menu to the feature-gated floating toolbar with options to
|
|
9
|
+
toggle Divider weights and styles, behind platform_editor_lovability_dividers.
|
|
10
|
+
|
|
11
|
+
## 122.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [`96583be0e52a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96583be0e52a0) -
|
|
16
|
+
[ux] Restyle the AI suggestion card's details section, add tooltips to its icon buttons, and show
|
|
17
|
+
a stack of the logos of the apps a suggestion drew on. The Restricted lozenge is now limited to
|
|
18
|
+
suggestions with sources, and all of a suggestion's sources are listed rather than just the first.
|
|
19
|
+
New `cardPreviousSuggestionButtonLabel`, `cardNextSuggestionButtonLabel`, `cardSourceAppsLabel`
|
|
20
|
+
and `teamworkGraphLabel` messages replace the misnamed navigation chevron labels and the stale
|
|
21
|
+
`sourceLabel`.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 121.5.2
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -118,13 +118,23 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
118
118
|
},
|
|
119
119
|
cardCloseButtonLabel: {
|
|
120
120
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
121
|
-
defaultMessage: 'Close',
|
|
122
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
121
|
+
defaultMessage: 'Close suggestion',
|
|
122
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
123
123
|
},
|
|
124
124
|
cardShowSidebarButtonLabel: {
|
|
125
125
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
126
|
-
defaultMessage: 'Show
|
|
127
|
-
description: 'Label for the
|
|
126
|
+
defaultMessage: 'Show all suggestions',
|
|
127
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
128
|
+
},
|
|
129
|
+
cardPreviousSuggestionButtonLabel: {
|
|
130
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
131
|
+
defaultMessage: 'Previous suggestion',
|
|
132
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
133
|
+
},
|
|
134
|
+
cardNextSuggestionButtonLabel: {
|
|
135
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
136
|
+
defaultMessage: 'Next suggestion',
|
|
137
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
128
138
|
},
|
|
129
139
|
cardExpandButtonLabel: {
|
|
130
140
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -176,6 +186,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
176
186
|
defaultMessage: 'Details',
|
|
177
187
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
178
188
|
},
|
|
189
|
+
cardSourceAppsLabel: {
|
|
190
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
191
|
+
defaultMessage: 'Source apps',
|
|
192
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
193
|
+
},
|
|
179
194
|
cardSourcesButtonLabel: {
|
|
180
195
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
181
196
|
defaultMessage: 'Sources',
|
|
@@ -228,8 +243,8 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
228
243
|
},
|
|
229
244
|
cardMoreOptionsButtonLabel: {
|
|
230
245
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
231
|
-
defaultMessage: 'More
|
|
232
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
246
|
+
defaultMessage: 'More actions',
|
|
247
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
233
248
|
},
|
|
234
249
|
cardGoodSuggestionLabel: {
|
|
235
250
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -371,8 +386,8 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
371
386
|
defaultMessage: 'There’s too much content to process.',
|
|
372
387
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
373
388
|
},
|
|
374
|
-
|
|
375
|
-
id: 'fabric.editor.ai.suggestions.
|
|
389
|
+
teamworkGraphLabel: {
|
|
390
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
376
391
|
defaultMessage: 'Teamwork Graph',
|
|
377
392
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
378
393
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ruleMessages = void 0;
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var ruleMessages = exports.ruleMessages = (0, _reactIntl.defineMessages)({
|
|
9
|
+
dividerOptions: {
|
|
10
|
+
id: 'fabric.editor.rule.dividerOptions',
|
|
11
|
+
defaultMessage: 'Divider options',
|
|
12
|
+
description: 'Label for the floating toolbar button that opens options for a selected divider.'
|
|
13
|
+
},
|
|
14
|
+
dividerFloatingControls: {
|
|
15
|
+
id: 'fabric.editor.rule.dividerFloatingControls',
|
|
16
|
+
defaultMessage: 'Divider floating controls',
|
|
17
|
+
description: 'Accessible title for the floating toolbar shown when a divider is selected.'
|
|
18
|
+
},
|
|
19
|
+
weight: {
|
|
20
|
+
id: 'fabric.editor.rule.weight',
|
|
21
|
+
defaultMessage: 'Weight',
|
|
22
|
+
description: 'Heading for the divider weight options in the divider options menu.'
|
|
23
|
+
},
|
|
24
|
+
style: {
|
|
25
|
+
id: 'fabric.editor.rule.style',
|
|
26
|
+
defaultMessage: 'Style',
|
|
27
|
+
description: 'Heading for the divider style options in the divider options menu.'
|
|
28
|
+
},
|
|
29
|
+
smallDivider: {
|
|
30
|
+
id: 'fabric.editor.rule.smallDivider',
|
|
31
|
+
defaultMessage: 'Small divider',
|
|
32
|
+
description: 'Accessible label for the button that selects a small divider weight.'
|
|
33
|
+
},
|
|
34
|
+
mediumDivider: {
|
|
35
|
+
id: 'fabric.editor.rule.mediumDivider',
|
|
36
|
+
defaultMessage: 'Medium divider',
|
|
37
|
+
description: 'Accessible label for the button that selects a medium divider weight.'
|
|
38
|
+
},
|
|
39
|
+
largeDivider: {
|
|
40
|
+
id: 'fabric.editor.rule.largeDivider',
|
|
41
|
+
defaultMessage: 'Large divider',
|
|
42
|
+
description: 'Accessible label for the button that selects a large divider weight.'
|
|
43
|
+
},
|
|
44
|
+
solidDivider: {
|
|
45
|
+
id: 'fabric.editor.rule.solidDivider',
|
|
46
|
+
defaultMessage: 'Solid divider',
|
|
47
|
+
description: 'Accessible label for the button that selects a solid divider style.'
|
|
48
|
+
},
|
|
49
|
+
dashedDivider: {
|
|
50
|
+
id: 'fabric.editor.rule.dashedDivider',
|
|
51
|
+
defaultMessage: 'Dashed divider',
|
|
52
|
+
description: 'Accessible label for the button that selects a dashed divider style.'
|
|
53
|
+
},
|
|
54
|
+
dottedDivider: {
|
|
55
|
+
id: 'fabric.editor.rule.dottedDivider',
|
|
56
|
+
defaultMessage: 'Dotted divider',
|
|
57
|
+
description: 'Accessible label for the button that selects a dotted divider style.'
|
|
58
|
+
},
|
|
59
|
+
sketchDivider: {
|
|
60
|
+
id: 'fabric.editor.rule.sketchDivider',
|
|
61
|
+
defaultMessage: 'Sketch divider',
|
|
62
|
+
description: 'Accessible label for the button that selects a sketch divider style.'
|
|
63
|
+
},
|
|
64
|
+
fadeDivider: {
|
|
65
|
+
id: 'fabric.editor.rule.fadeDivider',
|
|
66
|
+
defaultMessage: 'Fade divider',
|
|
67
|
+
description: 'Accessible label for the button that selects a fading divider style.'
|
|
68
|
+
}
|
|
69
|
+
});
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "
|
|
30
|
+
var packageVersion = "122.0.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// 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 = "
|
|
27
|
+
var packageVersion = "122.0.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -112,13 +112,23 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
cardCloseButtonLabel: {
|
|
114
114
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
115
|
-
defaultMessage: 'Close',
|
|
116
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
115
|
+
defaultMessage: 'Close suggestion',
|
|
116
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
117
117
|
},
|
|
118
118
|
cardShowSidebarButtonLabel: {
|
|
119
119
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
120
|
-
defaultMessage: 'Show
|
|
121
|
-
description: 'Label for the
|
|
120
|
+
defaultMessage: 'Show all suggestions',
|
|
121
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
122
|
+
},
|
|
123
|
+
cardPreviousSuggestionButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Previous suggestion',
|
|
126
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
127
|
+
},
|
|
128
|
+
cardNextSuggestionButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Next suggestion',
|
|
131
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
122
132
|
},
|
|
123
133
|
cardExpandButtonLabel: {
|
|
124
134
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -170,6 +180,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
170
180
|
defaultMessage: 'Details',
|
|
171
181
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
172
182
|
},
|
|
183
|
+
cardSourceAppsLabel: {
|
|
184
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
185
|
+
defaultMessage: 'Source apps',
|
|
186
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
187
|
+
},
|
|
173
188
|
cardSourcesButtonLabel: {
|
|
174
189
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
175
190
|
defaultMessage: 'Sources',
|
|
@@ -222,8 +237,8 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
222
237
|
},
|
|
223
238
|
cardMoreOptionsButtonLabel: {
|
|
224
239
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
225
|
-
defaultMessage: 'More
|
|
226
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
240
|
+
defaultMessage: 'More actions',
|
|
241
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
227
242
|
},
|
|
228
243
|
cardGoodSuggestionLabel: {
|
|
229
244
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -365,8 +380,8 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
365
380
|
defaultMessage: 'There’s too much content to process.',
|
|
366
381
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
367
382
|
},
|
|
368
|
-
|
|
369
|
-
id: 'fabric.editor.ai.suggestions.
|
|
383
|
+
teamworkGraphLabel: {
|
|
384
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
370
385
|
defaultMessage: 'Teamwork Graph',
|
|
371
386
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
372
387
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
export const ruleMessages = defineMessages({
|
|
3
|
+
dividerOptions: {
|
|
4
|
+
id: 'fabric.editor.rule.dividerOptions',
|
|
5
|
+
defaultMessage: 'Divider options',
|
|
6
|
+
description: 'Label for the floating toolbar button that opens options for a selected divider.'
|
|
7
|
+
},
|
|
8
|
+
dividerFloatingControls: {
|
|
9
|
+
id: 'fabric.editor.rule.dividerFloatingControls',
|
|
10
|
+
defaultMessage: 'Divider floating controls',
|
|
11
|
+
description: 'Accessible title for the floating toolbar shown when a divider is selected.'
|
|
12
|
+
},
|
|
13
|
+
weight: {
|
|
14
|
+
id: 'fabric.editor.rule.weight',
|
|
15
|
+
defaultMessage: 'Weight',
|
|
16
|
+
description: 'Heading for the divider weight options in the divider options menu.'
|
|
17
|
+
},
|
|
18
|
+
style: {
|
|
19
|
+
id: 'fabric.editor.rule.style',
|
|
20
|
+
defaultMessage: 'Style',
|
|
21
|
+
description: 'Heading for the divider style options in the divider options menu.'
|
|
22
|
+
},
|
|
23
|
+
smallDivider: {
|
|
24
|
+
id: 'fabric.editor.rule.smallDivider',
|
|
25
|
+
defaultMessage: 'Small divider',
|
|
26
|
+
description: 'Accessible label for the button that selects a small divider weight.'
|
|
27
|
+
},
|
|
28
|
+
mediumDivider: {
|
|
29
|
+
id: 'fabric.editor.rule.mediumDivider',
|
|
30
|
+
defaultMessage: 'Medium divider',
|
|
31
|
+
description: 'Accessible label for the button that selects a medium divider weight.'
|
|
32
|
+
},
|
|
33
|
+
largeDivider: {
|
|
34
|
+
id: 'fabric.editor.rule.largeDivider',
|
|
35
|
+
defaultMessage: 'Large divider',
|
|
36
|
+
description: 'Accessible label for the button that selects a large divider weight.'
|
|
37
|
+
},
|
|
38
|
+
solidDivider: {
|
|
39
|
+
id: 'fabric.editor.rule.solidDivider',
|
|
40
|
+
defaultMessage: 'Solid divider',
|
|
41
|
+
description: 'Accessible label for the button that selects a solid divider style.'
|
|
42
|
+
},
|
|
43
|
+
dashedDivider: {
|
|
44
|
+
id: 'fabric.editor.rule.dashedDivider',
|
|
45
|
+
defaultMessage: 'Dashed divider',
|
|
46
|
+
description: 'Accessible label for the button that selects a dashed divider style.'
|
|
47
|
+
},
|
|
48
|
+
dottedDivider: {
|
|
49
|
+
id: 'fabric.editor.rule.dottedDivider',
|
|
50
|
+
defaultMessage: 'Dotted divider',
|
|
51
|
+
description: 'Accessible label for the button that selects a dotted divider style.'
|
|
52
|
+
},
|
|
53
|
+
sketchDivider: {
|
|
54
|
+
id: 'fabric.editor.rule.sketchDivider',
|
|
55
|
+
defaultMessage: 'Sketch divider',
|
|
56
|
+
description: 'Accessible label for the button that selects a sketch divider style.'
|
|
57
|
+
},
|
|
58
|
+
fadeDivider: {
|
|
59
|
+
id: 'fabric.editor.rule.fadeDivider',
|
|
60
|
+
defaultMessage: 'Fade divider',
|
|
61
|
+
description: 'Accessible label for the button that selects a fading divider style.'
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "
|
|
16
|
+
const packageVersion = "122.0.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "122.0.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -112,13 +112,23 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
cardCloseButtonLabel: {
|
|
114
114
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
115
|
-
defaultMessage: 'Close',
|
|
116
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
115
|
+
defaultMessage: 'Close suggestion',
|
|
116
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
117
117
|
},
|
|
118
118
|
cardShowSidebarButtonLabel: {
|
|
119
119
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
120
|
-
defaultMessage: 'Show
|
|
121
|
-
description: 'Label for the
|
|
120
|
+
defaultMessage: 'Show all suggestions',
|
|
121
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
122
|
+
},
|
|
123
|
+
cardPreviousSuggestionButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Previous suggestion',
|
|
126
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
127
|
+
},
|
|
128
|
+
cardNextSuggestionButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Next suggestion',
|
|
131
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
122
132
|
},
|
|
123
133
|
cardExpandButtonLabel: {
|
|
124
134
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -170,6 +180,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
170
180
|
defaultMessage: 'Details',
|
|
171
181
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
172
182
|
},
|
|
183
|
+
cardSourceAppsLabel: {
|
|
184
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
185
|
+
defaultMessage: 'Source apps',
|
|
186
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
187
|
+
},
|
|
173
188
|
cardSourcesButtonLabel: {
|
|
174
189
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
175
190
|
defaultMessage: 'Sources',
|
|
@@ -222,8 +237,8 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
222
237
|
},
|
|
223
238
|
cardMoreOptionsButtonLabel: {
|
|
224
239
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
225
|
-
defaultMessage: 'More
|
|
226
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
240
|
+
defaultMessage: 'More actions',
|
|
241
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
227
242
|
},
|
|
228
243
|
cardGoodSuggestionLabel: {
|
|
229
244
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -365,8 +380,8 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
365
380
|
defaultMessage: 'There’s too much content to process.',
|
|
366
381
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
367
382
|
},
|
|
368
|
-
|
|
369
|
-
id: 'fabric.editor.ai.suggestions.
|
|
383
|
+
teamworkGraphLabel: {
|
|
384
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
370
385
|
defaultMessage: 'Teamwork Graph',
|
|
371
386
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
372
387
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
export var ruleMessages = defineMessages({
|
|
3
|
+
dividerOptions: {
|
|
4
|
+
id: 'fabric.editor.rule.dividerOptions',
|
|
5
|
+
defaultMessage: 'Divider options',
|
|
6
|
+
description: 'Label for the floating toolbar button that opens options for a selected divider.'
|
|
7
|
+
},
|
|
8
|
+
dividerFloatingControls: {
|
|
9
|
+
id: 'fabric.editor.rule.dividerFloatingControls',
|
|
10
|
+
defaultMessage: 'Divider floating controls',
|
|
11
|
+
description: 'Accessible title for the floating toolbar shown when a divider is selected.'
|
|
12
|
+
},
|
|
13
|
+
weight: {
|
|
14
|
+
id: 'fabric.editor.rule.weight',
|
|
15
|
+
defaultMessage: 'Weight',
|
|
16
|
+
description: 'Heading for the divider weight options in the divider options menu.'
|
|
17
|
+
},
|
|
18
|
+
style: {
|
|
19
|
+
id: 'fabric.editor.rule.style',
|
|
20
|
+
defaultMessage: 'Style',
|
|
21
|
+
description: 'Heading for the divider style options in the divider options menu.'
|
|
22
|
+
},
|
|
23
|
+
smallDivider: {
|
|
24
|
+
id: 'fabric.editor.rule.smallDivider',
|
|
25
|
+
defaultMessage: 'Small divider',
|
|
26
|
+
description: 'Accessible label for the button that selects a small divider weight.'
|
|
27
|
+
},
|
|
28
|
+
mediumDivider: {
|
|
29
|
+
id: 'fabric.editor.rule.mediumDivider',
|
|
30
|
+
defaultMessage: 'Medium divider',
|
|
31
|
+
description: 'Accessible label for the button that selects a medium divider weight.'
|
|
32
|
+
},
|
|
33
|
+
largeDivider: {
|
|
34
|
+
id: 'fabric.editor.rule.largeDivider',
|
|
35
|
+
defaultMessage: 'Large divider',
|
|
36
|
+
description: 'Accessible label for the button that selects a large divider weight.'
|
|
37
|
+
},
|
|
38
|
+
solidDivider: {
|
|
39
|
+
id: 'fabric.editor.rule.solidDivider',
|
|
40
|
+
defaultMessage: 'Solid divider',
|
|
41
|
+
description: 'Accessible label for the button that selects a solid divider style.'
|
|
42
|
+
},
|
|
43
|
+
dashedDivider: {
|
|
44
|
+
id: 'fabric.editor.rule.dashedDivider',
|
|
45
|
+
defaultMessage: 'Dashed divider',
|
|
46
|
+
description: 'Accessible label for the button that selects a dashed divider style.'
|
|
47
|
+
},
|
|
48
|
+
dottedDivider: {
|
|
49
|
+
id: 'fabric.editor.rule.dottedDivider',
|
|
50
|
+
defaultMessage: 'Dotted divider',
|
|
51
|
+
description: 'Accessible label for the button that selects a dotted divider style.'
|
|
52
|
+
},
|
|
53
|
+
sketchDivider: {
|
|
54
|
+
id: 'fabric.editor.rule.sketchDivider',
|
|
55
|
+
defaultMessage: 'Sketch divider',
|
|
56
|
+
description: 'Accessible label for the button that selects a sketch divider style.'
|
|
57
|
+
},
|
|
58
|
+
fadeDivider: {
|
|
59
|
+
id: 'fabric.editor.rule.fadeDivider',
|
|
60
|
+
defaultMessage: 'Fade divider',
|
|
61
|
+
description: 'Accessible label for the button that selects a fading divider style.'
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
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 = "
|
|
22
|
+
var packageVersion = "122.0.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "122.0.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -74,11 +74,21 @@ export declare const aiSuggestionsMessages: {
|
|
|
74
74
|
description: string;
|
|
75
75
|
id: string;
|
|
76
76
|
};
|
|
77
|
+
cardNextSuggestionButtonLabel: {
|
|
78
|
+
defaultMessage: string;
|
|
79
|
+
description: string;
|
|
80
|
+
id: string;
|
|
81
|
+
};
|
|
77
82
|
cardOnlyShowSuggestionOptionLabel: {
|
|
78
83
|
defaultMessage: string;
|
|
79
84
|
description: string;
|
|
80
85
|
id: string;
|
|
81
86
|
};
|
|
87
|
+
cardPreviousSuggestionButtonLabel: {
|
|
88
|
+
defaultMessage: string;
|
|
89
|
+
description: string;
|
|
90
|
+
id: string;
|
|
91
|
+
};
|
|
82
92
|
cardPrivateLabel: {
|
|
83
93
|
defaultMessage: string;
|
|
84
94
|
description: string;
|
|
@@ -133,6 +143,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
133
143
|
description: string;
|
|
134
144
|
id: string;
|
|
135
145
|
};
|
|
146
|
+
cardSourceAppsLabel: {
|
|
147
|
+
defaultMessage: string;
|
|
148
|
+
description: string;
|
|
149
|
+
id: string;
|
|
150
|
+
};
|
|
136
151
|
cardSourcesButtonLabel: {
|
|
137
152
|
defaultMessage: string;
|
|
138
153
|
description: string;
|
|
@@ -213,11 +228,6 @@ export declare const aiSuggestionsMessages: {
|
|
|
213
228
|
description: string;
|
|
214
229
|
id: string;
|
|
215
230
|
};
|
|
216
|
-
sourceLabel: {
|
|
217
|
-
defaultMessage: string;
|
|
218
|
-
description: string;
|
|
219
|
-
id: string;
|
|
220
|
-
};
|
|
221
231
|
suggestEditsButtonLabel: {
|
|
222
232
|
defaultMessage: string;
|
|
223
233
|
description: string;
|
|
@@ -258,6 +268,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
258
268
|
description: string;
|
|
259
269
|
id: string;
|
|
260
270
|
};
|
|
271
|
+
teamworkGraphLabel: {
|
|
272
|
+
defaultMessage: string;
|
|
273
|
+
description: string;
|
|
274
|
+
id: string;
|
|
275
|
+
};
|
|
261
276
|
thinkingAnalyzingStructure: {
|
|
262
277
|
defaultMessage: string;
|
|
263
278
|
description: string;
|
|
@@ -102,6 +102,15 @@ type ResizedLayoutColumnAEP = TrackAEP<ACTION.DRAGGED, ACTION_SUBJECT.DOCUMENT,
|
|
|
102
102
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
103
103
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
104
104
|
}, undefined>;
|
|
105
|
+
type UpdatedDividerAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DIVIDER, undefined, {
|
|
106
|
+
inputMethod: INPUT_METHOD.FLOATING_TB;
|
|
107
|
+
previousStyle: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
108
|
+
style: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
109
|
+
} | {
|
|
110
|
+
inputMethod: INPUT_METHOD.FLOATING_TB;
|
|
111
|
+
previousWeight: number;
|
|
112
|
+
weight: number;
|
|
113
|
+
}, undefined>;
|
|
105
114
|
type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.UNSUPPORTED_BLOCK | ACTION_SUBJECT_ID.UNSUPPORTED_INLINE | ACTION_SUBJECT_ID.UNSUPPORTED_MARK, {
|
|
106
115
|
unsupportedNode: {
|
|
107
116
|
ancestry: string;
|
|
@@ -109,5 +118,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
|
|
|
109
118
|
type: string;
|
|
110
119
|
};
|
|
111
120
|
}, undefined>;
|
|
112
|
-
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | OpenedLayoutColumnMenuAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
121
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | OpenedLayoutColumnMenuAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | UpdatedDividerAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
113
122
|
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const ruleMessages: {
|
|
2
|
+
dashedDivider: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
dividerFloatingControls: {
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
dividerOptions: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
dottedDivider: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
fadeDivider: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
largeDivider: {
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
mediumDivider: {
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
sketchDivider: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
smallDivider: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
solidDivider: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
style: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
weight: {
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/messages/rule",
|
|
3
|
+
"main": "../../dist/cjs/messages/rule.js",
|
|
4
|
+
"module": "../../dist/esm/messages/rule.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/messages/rule.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/messages/rule.d.ts"
|
|
10
|
+
}
|
package/package.json
CHANGED