@atlaskit/editor-common 120.15.0 → 120.16.1
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 +23 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +10 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/messages/snippets.js +34 -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 +10 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/messages/snippets.js +28 -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 +10 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/messages/snippets.js +28 -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 +10 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/messages/snippets.d.ts +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 120.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 120.16.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7271896e1f276`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7271896e1f276) -
|
|
14
|
+
Add a restricted-source lozenge to AI suggestion cards.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 120.15.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 120.15.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -151,6 +151,16 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
151
151
|
defaultMessage: 'Visible only to you',
|
|
152
152
|
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
153
153
|
},
|
|
154
|
+
cardRestrictedLabel: {
|
|
155
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedLabel.non-final',
|
|
156
|
+
defaultMessage: 'Restricted',
|
|
157
|
+
description: 'Label for the restricted suggestion lozenge'
|
|
158
|
+
},
|
|
159
|
+
cardRestrictedTooltipLabel: {
|
|
160
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedTooltip.non-final',
|
|
161
|
+
defaultMessage: 'Only editors with access to the source can see this suggestion',
|
|
162
|
+
description: 'Tooltip for the restricted suggestion lozenge'
|
|
163
|
+
},
|
|
154
164
|
cardDetailsButtonLabel: {
|
|
155
165
|
id: 'fabric.editor.ai.suggestions.card.detailsButtonLabel.non-final',
|
|
156
166
|
defaultMessage: 'Details',
|
|
@@ -262,6 +262,12 @@ Object.defineProperty(exports, "tasksAndDecisionsMessages", {
|
|
|
262
262
|
return _tasksAndDecsisions.tasksAndDecisionsMessages;
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
|
+
Object.defineProperty(exports, "templateGalleryMessages", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function get() {
|
|
268
|
+
return _snippets.templateGalleryMessages;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
265
271
|
Object.defineProperty(exports, "textColorMessages", {
|
|
266
272
|
enumerable: true,
|
|
267
273
|
get: function get() {
|
|
@@ -304,6 +310,7 @@ var _annotation = require("./annotation");
|
|
|
304
310
|
var _breakout = require("./breakout");
|
|
305
311
|
var _blockMenu = require("./block-menu");
|
|
306
312
|
var _blockType = require("./block-type");
|
|
313
|
+
var _snippets = require("./snippets");
|
|
307
314
|
var _codeBidiWarning = require("./codeBidiWarning");
|
|
308
315
|
var _colorAccessibility = require("./color-accessibility");
|
|
309
316
|
var _colorPickerButton = require("./color-picker-button");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.templateGalleryMessages = void 0;
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var templateGalleryMessages = exports.templateGalleryMessages = (0, _reactIntl.defineMessages)({
|
|
9
|
+
blockTemplates: {
|
|
10
|
+
id: 'editor-plugin-snippets.snippetsPlugin.blockTemplates',
|
|
11
|
+
defaultMessage: 'Block templates',
|
|
12
|
+
description: 'Label for the block templates submenu in the block menu'
|
|
13
|
+
},
|
|
14
|
+
browseTemplates: {
|
|
15
|
+
id: 'editor-plugin-snippets.snippetsPlugin.browseTemplates',
|
|
16
|
+
defaultMessage: 'Browse all templates',
|
|
17
|
+
description: 'Label for the action that opens the block template gallery'
|
|
18
|
+
},
|
|
19
|
+
newLozenge: {
|
|
20
|
+
id: 'editor-plugin-snippets.snippetsPlugin.newLozenge',
|
|
21
|
+
defaultMessage: 'New',
|
|
22
|
+
description: 'Lozenge label for the block templates menu item'
|
|
23
|
+
},
|
|
24
|
+
templateGalleryDescription: {
|
|
25
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryDescription',
|
|
26
|
+
defaultMessage: 'Create, discover, & insert block templates',
|
|
27
|
+
description: 'Description for the block template gallery quick insert item'
|
|
28
|
+
},
|
|
29
|
+
templateGalleryTitle: {
|
|
30
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
|
|
31
|
+
defaultMessage: 'Block Template Gallery',
|
|
32
|
+
description: 'Title for the block template gallery quick insert item'
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -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 = "120.
|
|
30
|
+
var packageVersion = "120.16.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 = "120.
|
|
27
|
+
var packageVersion = "120.16.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -145,6 +145,16 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
145
145
|
defaultMessage: 'Visible only to you',
|
|
146
146
|
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
147
147
|
},
|
|
148
|
+
cardRestrictedLabel: {
|
|
149
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedLabel.non-final',
|
|
150
|
+
defaultMessage: 'Restricted',
|
|
151
|
+
description: 'Label for the restricted suggestion lozenge'
|
|
152
|
+
},
|
|
153
|
+
cardRestrictedTooltipLabel: {
|
|
154
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedTooltip.non-final',
|
|
155
|
+
defaultMessage: 'Only editors with access to the source can see this suggestion',
|
|
156
|
+
description: 'Tooltip for the restricted suggestion lozenge'
|
|
157
|
+
},
|
|
148
158
|
cardDetailsButtonLabel: {
|
|
149
159
|
id: 'fabric.editor.ai.suggestions.card.detailsButtonLabel.non-final',
|
|
150
160
|
defaultMessage: 'Details',
|
|
@@ -7,6 +7,7 @@ export { annotationMessages } from './annotation';
|
|
|
7
7
|
export { messages as breakoutMessages } from './breakout';
|
|
8
8
|
export { messages as blockMenuMessages } from './block-menu';
|
|
9
9
|
export { messages as blockTypeMessages } from './block-type';
|
|
10
|
+
export { templateGalleryMessages } from './snippets';
|
|
10
11
|
export { codeBidiWarningMessages } from './codeBidiWarning';
|
|
11
12
|
export { colorAccessibilityMessages } from './color-accessibility';
|
|
12
13
|
export { colorPickerButtonMessages } from './color-picker-button';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
export const templateGalleryMessages = defineMessages({
|
|
3
|
+
blockTemplates: {
|
|
4
|
+
id: 'editor-plugin-snippets.snippetsPlugin.blockTemplates',
|
|
5
|
+
defaultMessage: 'Block templates',
|
|
6
|
+
description: 'Label for the block templates submenu in the block menu'
|
|
7
|
+
},
|
|
8
|
+
browseTemplates: {
|
|
9
|
+
id: 'editor-plugin-snippets.snippetsPlugin.browseTemplates',
|
|
10
|
+
defaultMessage: 'Browse all templates',
|
|
11
|
+
description: 'Label for the action that opens the block template gallery'
|
|
12
|
+
},
|
|
13
|
+
newLozenge: {
|
|
14
|
+
id: 'editor-plugin-snippets.snippetsPlugin.newLozenge',
|
|
15
|
+
defaultMessage: 'New',
|
|
16
|
+
description: 'Lozenge label for the block templates menu item'
|
|
17
|
+
},
|
|
18
|
+
templateGalleryDescription: {
|
|
19
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryDescription',
|
|
20
|
+
defaultMessage: 'Create, discover, & insert block templates',
|
|
21
|
+
description: 'Description for the block template gallery quick insert item'
|
|
22
|
+
},
|
|
23
|
+
templateGalleryTitle: {
|
|
24
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
|
|
25
|
+
defaultMessage: 'Block Template Gallery',
|
|
26
|
+
description: 'Title for the block template gallery quick insert item'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
@@ -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 = "120.
|
|
16
|
+
const packageVersion = "120.16.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 = "120.
|
|
17
|
+
const packageVersion = "120.16.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -145,6 +145,16 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
145
145
|
defaultMessage: 'Visible only to you',
|
|
146
146
|
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
147
147
|
},
|
|
148
|
+
cardRestrictedLabel: {
|
|
149
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedLabel.non-final',
|
|
150
|
+
defaultMessage: 'Restricted',
|
|
151
|
+
description: 'Label for the restricted suggestion lozenge'
|
|
152
|
+
},
|
|
153
|
+
cardRestrictedTooltipLabel: {
|
|
154
|
+
id: 'fabric.editor.ai.suggestions.card.restrictedTooltip.non-final',
|
|
155
|
+
defaultMessage: 'Only editors with access to the source can see this suggestion',
|
|
156
|
+
description: 'Tooltip for the restricted suggestion lozenge'
|
|
157
|
+
},
|
|
148
158
|
cardDetailsButtonLabel: {
|
|
149
159
|
id: 'fabric.editor.ai.suggestions.card.detailsButtonLabel.non-final',
|
|
150
160
|
defaultMessage: 'Details',
|
|
@@ -7,6 +7,7 @@ export { annotationMessages } from './annotation';
|
|
|
7
7
|
export { messages as breakoutMessages } from './breakout';
|
|
8
8
|
export { messages as blockMenuMessages } from './block-menu';
|
|
9
9
|
export { messages as blockTypeMessages } from './block-type';
|
|
10
|
+
export { templateGalleryMessages } from './snippets';
|
|
10
11
|
export { codeBidiWarningMessages } from './codeBidiWarning';
|
|
11
12
|
export { colorAccessibilityMessages } from './color-accessibility';
|
|
12
13
|
export { colorPickerButtonMessages } from './color-picker-button';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
export var templateGalleryMessages = defineMessages({
|
|
3
|
+
blockTemplates: {
|
|
4
|
+
id: 'editor-plugin-snippets.snippetsPlugin.blockTemplates',
|
|
5
|
+
defaultMessage: 'Block templates',
|
|
6
|
+
description: 'Label for the block templates submenu in the block menu'
|
|
7
|
+
},
|
|
8
|
+
browseTemplates: {
|
|
9
|
+
id: 'editor-plugin-snippets.snippetsPlugin.browseTemplates',
|
|
10
|
+
defaultMessage: 'Browse all templates',
|
|
11
|
+
description: 'Label for the action that opens the block template gallery'
|
|
12
|
+
},
|
|
13
|
+
newLozenge: {
|
|
14
|
+
id: 'editor-plugin-snippets.snippetsPlugin.newLozenge',
|
|
15
|
+
defaultMessage: 'New',
|
|
16
|
+
description: 'Lozenge label for the block templates menu item'
|
|
17
|
+
},
|
|
18
|
+
templateGalleryDescription: {
|
|
19
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryDescription',
|
|
20
|
+
defaultMessage: 'Create, discover, & insert block templates',
|
|
21
|
+
description: 'Description for the block template gallery quick insert item'
|
|
22
|
+
},
|
|
23
|
+
templateGalleryTitle: {
|
|
24
|
+
id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
|
|
25
|
+
defaultMessage: 'Block Template Gallery',
|
|
26
|
+
description: 'Title for the block template gallery quick insert item'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
@@ -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 = "120.
|
|
22
|
+
var packageVersion = "120.16.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 = "120.
|
|
24
|
+
var packageVersion = "120.16.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -89,6 +89,16 @@ export declare const aiSuggestionsMessages: {
|
|
|
89
89
|
description: string;
|
|
90
90
|
id: string;
|
|
91
91
|
};
|
|
92
|
+
cardRestrictedLabel: {
|
|
93
|
+
defaultMessage: string;
|
|
94
|
+
description: string;
|
|
95
|
+
id: string;
|
|
96
|
+
};
|
|
97
|
+
cardRestrictedTooltipLabel: {
|
|
98
|
+
defaultMessage: string;
|
|
99
|
+
description: string;
|
|
100
|
+
id: string;
|
|
101
|
+
};
|
|
92
102
|
/**
|
|
93
103
|
* @private
|
|
94
104
|
* @deprecated The suggestion card no longer displays a Rovo text label.
|
|
@@ -3,6 +3,7 @@ export { annotationMessages } from './annotation';
|
|
|
3
3
|
export { messages as breakoutMessages } from './breakout';
|
|
4
4
|
export { messages as blockMenuMessages } from './block-menu';
|
|
5
5
|
export { messages as blockTypeMessages } from './block-type';
|
|
6
|
+
export { templateGalleryMessages } from './snippets';
|
|
6
7
|
export { codeBidiWarningMessages } from './codeBidiWarning';
|
|
7
8
|
export { colorAccessibilityMessages } from './color-accessibility';
|
|
8
9
|
export { colorPickerButtonMessages } from './color-picker-button';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.
|
|
3
|
+
"version": "120.16.1",
|
|
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/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
52
52
|
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
53
|
-
"@atlaskit/emoji": "^72.
|
|
53
|
+
"@atlaskit/emoji": "^72.3.0",
|
|
54
54
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
55
55
|
"@atlaskit/icon": "^37.6.0",
|
|
56
56
|
"@atlaskit/link": "^5.1.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.9.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^176.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.11.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|