@atlaskit/editor-common 114.52.0 → 114.53.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.53.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9d5523b6e89fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d5523b6e89fc) -
8
+ EDITOR-7419: Add thinking components and scaffold the new actions (not wired up anywhere yet)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 114.52.0
4
15
 
5
16
  ### Minor Changes
@@ -7,7 +7,7 @@ exports.aiSuggestionsMessages = void 0;
7
7
  var _reactIntl = require("react-intl");
8
8
  var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defineMessages)({
9
9
  suggestEditsButtonLabel: {
10
- id: 'fabric.editor.ai.suggestions.suggestEdits.buttonLabel',
10
+ id: 'fabric.editor.ai.suggestions.suggestEditsButtonLabel',
11
11
  defaultMessage: 'Review',
12
12
  description: 'Label for the Suggest edits button in the editor toolbar'
13
13
  },
@@ -165,5 +165,50 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
165
165
  id: 'fabric.editor.ai.suggestions.card.scrollBackToSuggestionLabel.non-final',
166
166
  defaultMessage: 'Back to suggestion',
167
167
  description: 'Label for the scroll back to suggestion button on the AI suggestions card'
168
+ },
169
+ thinkingEscHint: {
170
+ id: 'fabric.editor.ai.suggestions.thinking.escHint.non-final',
171
+ defaultMessage: 'Esc',
172
+ description: 'Keyboard hint showing the Esc key can be used to cancel'
173
+ },
174
+ thinkingStopLabel: {
175
+ id: 'fabric.editor.ai.suggestions.thinking.stopLabel.non-final',
176
+ defaultMessage: 'Stop',
177
+ description: 'Accessible label for the stop button displayed while the AI is thinking. When clicked, it cancels the ongoing action.'
178
+ },
179
+ thinkingReviewingContent: {
180
+ id: 'fabric.editor.ai.suggestions.thinking.reviewingContent.non-final',
181
+ defaultMessage: 'Reviewing content',
182
+ description: 'Loading message shown while the AI is reviewing the content'
183
+ },
184
+ thinkingCheckingRelatedSources: {
185
+ id: 'fabric.editor.ai.suggestions.thinking.checkingRelatedSources.non-final',
186
+ defaultMessage: 'Checking related sources',
187
+ description: 'Loading message shown while the AI is checking related sources'
188
+ },
189
+ thinkingIdentifyingImprovements: {
190
+ id: 'fabric.editor.ai.suggestions.thinking.identifyingImprovements.non-final',
191
+ defaultMessage: 'Identifying improvements',
192
+ description: 'Loading message shown while the AI is identifying improvements'
193
+ },
194
+ thinkingPreparingSuggestions: {
195
+ id: 'fabric.editor.ai.suggestions.thinking.preparingSuggestions.non-final',
196
+ defaultMessage: 'Preparing suggestions',
197
+ description: 'Loading message shown while the AI is preparing suggestions'
198
+ },
199
+ thinkingCompleteReviewComplete: {
200
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
201
+ defaultMessage: 'Suggestions ready',
202
+ description: 'Text shown when the AI has finished reviewing the content'
203
+ },
204
+ thinkingCompleteViewSuggestions: {
205
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
206
+ defaultMessage: 'View',
207
+ description: 'Label for the button that opens the suggestions panel'
208
+ },
209
+ thinkingCompleteClose: {
210
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
211
+ defaultMessage: 'Close',
212
+ description: 'Accessible label for the close button on the thinking complete bar'
168
213
  }
169
214
  });
@@ -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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); 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.51.1";
22
+ var packageVersion = "114.52.0";
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.51.1";
27
+ var packageVersion = "114.52.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -43,5 +43,4 @@ function isNodeTypeValidChildOf(childTypeName, parentNode, schema) {
43
43
  return false;
44
44
  }
45
45
  return parentNode.type.validContent(_model.Fragment.from(candidate));
46
- }
47
- ;
46
+ }
@@ -1,7 +1,7 @@
1
1
  import { defineMessages } from 'react-intl';
2
2
  export const aiSuggestionsMessages = defineMessages({
3
3
  suggestEditsButtonLabel: {
4
- id: 'fabric.editor.ai.suggestions.suggestEdits.buttonLabel',
4
+ id: 'fabric.editor.ai.suggestions.suggestEditsButtonLabel',
5
5
  defaultMessage: 'Review',
6
6
  description: 'Label for the Suggest edits button in the editor toolbar'
7
7
  },
@@ -159,5 +159,50 @@ export const aiSuggestionsMessages = defineMessages({
159
159
  id: 'fabric.editor.ai.suggestions.card.scrollBackToSuggestionLabel.non-final',
160
160
  defaultMessage: 'Back to suggestion',
161
161
  description: 'Label for the scroll back to suggestion button on the AI suggestions card'
162
+ },
163
+ thinkingEscHint: {
164
+ id: 'fabric.editor.ai.suggestions.thinking.escHint.non-final',
165
+ defaultMessage: 'Esc',
166
+ description: 'Keyboard hint showing the Esc key can be used to cancel'
167
+ },
168
+ thinkingStopLabel: {
169
+ id: 'fabric.editor.ai.suggestions.thinking.stopLabel.non-final',
170
+ defaultMessage: 'Stop',
171
+ description: 'Accessible label for the stop button displayed while the AI is thinking. When clicked, it cancels the ongoing action.'
172
+ },
173
+ thinkingReviewingContent: {
174
+ id: 'fabric.editor.ai.suggestions.thinking.reviewingContent.non-final',
175
+ defaultMessage: 'Reviewing content',
176
+ description: 'Loading message shown while the AI is reviewing the content'
177
+ },
178
+ thinkingCheckingRelatedSources: {
179
+ id: 'fabric.editor.ai.suggestions.thinking.checkingRelatedSources.non-final',
180
+ defaultMessage: 'Checking related sources',
181
+ description: 'Loading message shown while the AI is checking related sources'
182
+ },
183
+ thinkingIdentifyingImprovements: {
184
+ id: 'fabric.editor.ai.suggestions.thinking.identifyingImprovements.non-final',
185
+ defaultMessage: 'Identifying improvements',
186
+ description: 'Loading message shown while the AI is identifying improvements'
187
+ },
188
+ thinkingPreparingSuggestions: {
189
+ id: 'fabric.editor.ai.suggestions.thinking.preparingSuggestions.non-final',
190
+ defaultMessage: 'Preparing suggestions',
191
+ description: 'Loading message shown while the AI is preparing suggestions'
192
+ },
193
+ thinkingCompleteReviewComplete: {
194
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
195
+ defaultMessage: 'Suggestions ready',
196
+ description: 'Text shown when the AI has finished reviewing the content'
197
+ },
198
+ thinkingCompleteViewSuggestions: {
199
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
200
+ defaultMessage: 'View',
201
+ description: 'Label for the button that opens the suggestions panel'
202
+ },
203
+ thinkingCompleteClose: {
204
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
205
+ defaultMessage: 'Close',
206
+ description: 'Accessible label for the close button on the thinking complete bar'
162
207
  }
163
208
  });
@@ -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.51.1";
7
+ const packageVersion = "114.52.0";
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.51.1";
17
+ const packageVersion = "114.52.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -35,5 +35,4 @@ export function isNodeTypeValidChildOf(childTypeName, parentNode, schema) {
35
35
  return false;
36
36
  }
37
37
  return parentNode.type.validContent(Fragment.from(candidate));
38
- }
39
- ;
38
+ }
@@ -1,7 +1,7 @@
1
1
  import { defineMessages } from 'react-intl';
2
2
  export var aiSuggestionsMessages = defineMessages({
3
3
  suggestEditsButtonLabel: {
4
- id: 'fabric.editor.ai.suggestions.suggestEdits.buttonLabel',
4
+ id: 'fabric.editor.ai.suggestions.suggestEditsButtonLabel',
5
5
  defaultMessage: 'Review',
6
6
  description: 'Label for the Suggest edits button in the editor toolbar'
7
7
  },
@@ -159,5 +159,50 @@ export var aiSuggestionsMessages = defineMessages({
159
159
  id: 'fabric.editor.ai.suggestions.card.scrollBackToSuggestionLabel.non-final',
160
160
  defaultMessage: 'Back to suggestion',
161
161
  description: 'Label for the scroll back to suggestion button on the AI suggestions card'
162
+ },
163
+ thinkingEscHint: {
164
+ id: 'fabric.editor.ai.suggestions.thinking.escHint.non-final',
165
+ defaultMessage: 'Esc',
166
+ description: 'Keyboard hint showing the Esc key can be used to cancel'
167
+ },
168
+ thinkingStopLabel: {
169
+ id: 'fabric.editor.ai.suggestions.thinking.stopLabel.non-final',
170
+ defaultMessage: 'Stop',
171
+ description: 'Accessible label for the stop button displayed while the AI is thinking. When clicked, it cancels the ongoing action.'
172
+ },
173
+ thinkingReviewingContent: {
174
+ id: 'fabric.editor.ai.suggestions.thinking.reviewingContent.non-final',
175
+ defaultMessage: 'Reviewing content',
176
+ description: 'Loading message shown while the AI is reviewing the content'
177
+ },
178
+ thinkingCheckingRelatedSources: {
179
+ id: 'fabric.editor.ai.suggestions.thinking.checkingRelatedSources.non-final',
180
+ defaultMessage: 'Checking related sources',
181
+ description: 'Loading message shown while the AI is checking related sources'
182
+ },
183
+ thinkingIdentifyingImprovements: {
184
+ id: 'fabric.editor.ai.suggestions.thinking.identifyingImprovements.non-final',
185
+ defaultMessage: 'Identifying improvements',
186
+ description: 'Loading message shown while the AI is identifying improvements'
187
+ },
188
+ thinkingPreparingSuggestions: {
189
+ id: 'fabric.editor.ai.suggestions.thinking.preparingSuggestions.non-final',
190
+ defaultMessage: 'Preparing suggestions',
191
+ description: 'Loading message shown while the AI is preparing suggestions'
192
+ },
193
+ thinkingCompleteReviewComplete: {
194
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
195
+ defaultMessage: 'Suggestions ready',
196
+ description: 'Text shown when the AI has finished reviewing the content'
197
+ },
198
+ thinkingCompleteViewSuggestions: {
199
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.viewSuggestions.non-final',
200
+ defaultMessage: 'View',
201
+ description: 'Label for the button that opens the suggestions panel'
202
+ },
203
+ thinkingCompleteClose: {
204
+ id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
205
+ defaultMessage: 'Close',
206
+ description: 'Accessible label for the close button on the thinking complete bar'
162
207
  }
163
208
  });
@@ -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.51.1";
13
+ var packageVersion = "114.52.0";
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.51.1";
24
+ var packageVersion = "114.52.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -35,5 +35,4 @@ export function isNodeTypeValidChildOf(childTypeName, parentNode, schema) {
35
35
  return false;
36
36
  }
37
37
  return parentNode.type.validContent(Fragment.from(candidate));
38
- }
39
- ;
38
+ }
@@ -149,6 +149,51 @@ export declare const aiSuggestionsMessages: {
149
149
  description: string;
150
150
  id: string;
151
151
  };
152
+ thinkingCheckingRelatedSources: {
153
+ defaultMessage: string;
154
+ description: string;
155
+ id: string;
156
+ };
157
+ thinkingCompleteClose: {
158
+ defaultMessage: string;
159
+ description: string;
160
+ id: string;
161
+ };
162
+ thinkingCompleteReviewComplete: {
163
+ defaultMessage: string;
164
+ description: string;
165
+ id: string;
166
+ };
167
+ thinkingCompleteViewSuggestions: {
168
+ defaultMessage: string;
169
+ description: string;
170
+ id: string;
171
+ };
172
+ thinkingEscHint: {
173
+ defaultMessage: string;
174
+ description: string;
175
+ id: string;
176
+ };
177
+ thinkingIdentifyingImprovements: {
178
+ defaultMessage: string;
179
+ description: string;
180
+ id: string;
181
+ };
182
+ thinkingPreparingSuggestions: {
183
+ defaultMessage: string;
184
+ description: string;
185
+ id: string;
186
+ };
187
+ thinkingReviewingContent: {
188
+ defaultMessage: string;
189
+ description: string;
190
+ id: string;
191
+ };
192
+ thinkingStopLabel: {
193
+ defaultMessage: string;
194
+ description: string;
195
+ id: string;
196
+ };
152
197
  titleLabel: {
153
198
  defaultMessage: string;
154
199
  description: string;
@@ -214,4 +214,4 @@ export { findNodePosByLocalIds } from './nodes-by-localIds';
214
214
  export { getPageElementCounts } from './page-element-counts';
215
215
  export type { PageElementCounts } from './page-element-counts';
216
216
  export { withFeatureFlaggedComponent } from './withFeatureFlaggedComponent';
217
- export { isNodeOfSameBaseType, getBaseNodeTypeName, isNodeTypeValidChildOf } from './node-type-utils';
217
+ export { isNodeOfSameBaseType, getBaseNodeTypeName, isNodeTypeValidChildOf, } from './node-type-utils';
@@ -149,6 +149,51 @@ export declare const aiSuggestionsMessages: {
149
149
  description: string;
150
150
  id: string;
151
151
  };
152
+ thinkingCheckingRelatedSources: {
153
+ defaultMessage: string;
154
+ description: string;
155
+ id: string;
156
+ };
157
+ thinkingCompleteClose: {
158
+ defaultMessage: string;
159
+ description: string;
160
+ id: string;
161
+ };
162
+ thinkingCompleteReviewComplete: {
163
+ defaultMessage: string;
164
+ description: string;
165
+ id: string;
166
+ };
167
+ thinkingCompleteViewSuggestions: {
168
+ defaultMessage: string;
169
+ description: string;
170
+ id: string;
171
+ };
172
+ thinkingEscHint: {
173
+ defaultMessage: string;
174
+ description: string;
175
+ id: string;
176
+ };
177
+ thinkingIdentifyingImprovements: {
178
+ defaultMessage: string;
179
+ description: string;
180
+ id: string;
181
+ };
182
+ thinkingPreparingSuggestions: {
183
+ defaultMessage: string;
184
+ description: string;
185
+ id: string;
186
+ };
187
+ thinkingReviewingContent: {
188
+ defaultMessage: string;
189
+ description: string;
190
+ id: string;
191
+ };
192
+ thinkingStopLabel: {
193
+ defaultMessage: string;
194
+ description: string;
195
+ id: string;
196
+ };
152
197
  titleLabel: {
153
198
  defaultMessage: string;
154
199
  description: string;
@@ -214,4 +214,4 @@ export { findNodePosByLocalIds } from './nodes-by-localIds';
214
214
  export { getPageElementCounts } from './page-element-counts';
215
215
  export type { PageElementCounts } from './page-element-counts';
216
216
  export { withFeatureFlaggedComponent } from './withFeatureFlaggedComponent';
217
- export { isNodeOfSameBaseType, getBaseNodeTypeName, isNodeTypeValidChildOf } from './node-type-utils';
217
+ export { isNodeOfSameBaseType, getBaseNodeTypeName, isNodeTypeValidChildOf, } from './node-type-utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.52.0",
3
+ "version": "114.53.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/"