@atlaskit/editor-common 107.5.0 → 107.6.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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#178534](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178534)
8
+ [`98988961ed925`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98988961ed925) -
9
+ EDITOR-944: Add AI message for Ask Rovo... for the AI text input looking button in the floating
10
+ toolbar.
11
+
3
12
  ## 107.5.0
4
13
 
5
14
  ### Minor Changes
@@ -38,6 +38,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
38
38
  defaultMessage: 'Ask AI',
39
39
  description: 'Title for an option to use Atlassian Intellgience'
40
40
  },
41
+ askRovoInputButtonLabel: {
42
+ id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
43
+ defaultMessage: 'Ask Rovo...',
44
+ description: 'Label for the input button prompting user to type a query to Rovo.'
45
+ },
41
46
  askAIToolbarIconTooltip: {
42
47
  id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
43
48
  defaultMessage: 'Open Atlassian Intelligence',
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.4.2";
19
+ var packageVersion = "107.5.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "107.4.2";
26
+ var packageVersion = "107.5.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -32,6 +32,11 @@ export const aiMessages = defineMessages({
32
32
  defaultMessage: 'Ask AI',
33
33
  description: 'Title for an option to use Atlassian Intellgience'
34
34
  },
35
+ askRovoInputButtonLabel: {
36
+ id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
37
+ defaultMessage: 'Ask Rovo...',
38
+ description: 'Label for the input button prompting user to type a query to Rovo.'
39
+ },
35
40
  askAIToolbarIconTooltip: {
36
41
  id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
37
42
  defaultMessage: 'Open Atlassian Intelligence',
@@ -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 = "107.4.2";
4
+ const packageVersion = "107.5.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 = "107.4.2";
16
+ const packageVersion = "107.5.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -32,6 +32,11 @@ export var aiMessages = defineMessages({
32
32
  defaultMessage: 'Ask AI',
33
33
  description: 'Title for an option to use Atlassian Intellgience'
34
34
  },
35
+ askRovoInputButtonLabel: {
36
+ id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
37
+ defaultMessage: 'Ask Rovo...',
38
+ description: 'Label for the input button prompting user to type a query to Rovo.'
39
+ },
35
40
  askAIToolbarIconTooltip: {
36
41
  id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
37
42
  defaultMessage: 'Open Atlassian Intelligence',
@@ -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 = "107.4.2";
10
+ var packageVersion = "107.5.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 = "107.4.2";
23
+ var packageVersion = "107.5.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -29,6 +29,11 @@ export declare const aiMessages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ askRovoInputButtonLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  askAIToolbarIconTooltip: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
2
  import type { OperationalAEP } from './utils';
3
3
  type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
4
  componentStack: string;
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT, type INPUT_METHOD, type ACTION_SUBJECT_ID } from './enums';
2
2
  import { type TrackAEP } from './utils';
3
3
  type AlignmentUpdatedAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.ALIGNMENT, ACTION_SUBJECT_ID, {
4
4
  alignmentType?: 'start' | 'end' | 'center';
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT } from './enums';
2
2
  import type { OperationalAEP } from './utils';
3
3
  export type NcsSessionStepMetrics = {
4
4
  ncsSessionId?: string;
@@ -1,4 +1,4 @@
1
- import { Mark, MarkType, Node } from '@atlaskit/editor-prosemirror/model';
1
+ import { Mark, type MarkType, type Node } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, SelectionRange } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Determine if a mark of a specific type exists anywhere in the selection.
@@ -1,5 +1,5 @@
1
1
  import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
4
4
  export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
5
5
  export declare const isSelectionTableNestedInTable: (state: EditorState) => boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
2
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SafePluginSpec } from '@atlaskit/editor-prosemirror/state';
5
5
  /**
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { ButtonProps } from '@atlaskit/button/types';
7
7
  import type { PositionType } from '@atlaskit/tooltip';
8
- import { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
8
+ import { type TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
9
9
  import { type Keymap } from '../../keymaps';
10
10
  import type { MenuItem } from '../DropdownMenu/types';
11
11
  export type Props = {
@@ -29,6 +29,11 @@ export declare const aiMessages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ askRovoInputButtonLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  askAIToolbarIconTooltip: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
2
  import type { OperationalAEP } from './utils';
3
3
  type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
4
  componentStack: string;
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT, type INPUT_METHOD, type ACTION_SUBJECT_ID } from './enums';
2
2
  import { type TrackAEP } from './utils';
3
3
  type AlignmentUpdatedAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.ALIGNMENT, ACTION_SUBJECT_ID, {
4
4
  alignmentType?: 'start' | 'end' | 'center';
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT } from './enums';
1
+ import { type ACTION, type ACTION_SUBJECT } from './enums';
2
2
  import type { OperationalAEP } from './utils';
3
3
  export type NcsSessionStepMetrics = {
4
4
  ncsSessionId?: string;
@@ -1,4 +1,4 @@
1
- import { Mark, MarkType, Node } from '@atlaskit/editor-prosemirror/model';
1
+ import { Mark, type MarkType, type Node } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, SelectionRange } from '@atlaskit/editor-prosemirror/state';
3
3
  /**
4
4
  * Determine if a mark of a specific type exists anywhere in the selection.
@@ -1,5 +1,5 @@
1
1
  import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import { EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
4
4
  export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
5
5
  export declare const isSelectionTableNestedInTable: (state: EditorState) => boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
2
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SafePluginSpec } from '@atlaskit/editor-prosemirror/state';
5
5
  /**
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { ButtonProps } from '@atlaskit/button/types';
7
7
  import type { PositionType } from '@atlaskit/tooltip';
8
- import { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
8
+ import { type TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
9
9
  import { type Keymap } from '../../keymaps';
10
10
  import type { MenuItem } from '../DropdownMenu/types';
11
11
  export type Props = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.5.0",
3
+ "version": "107.6.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/"