@atlaskit/editor-common 116.2.1 → 116.3.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/cjs/ai-messages/ai.js +5 -0
  3. package/dist/cjs/analytics/index.js +6 -0
  4. package/dist/cjs/analytics/types/enums.js +7 -1
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPaletteNew.js +19 -0
  8. package/dist/cjs/ui-color/ColorPalette/Palettes/lightTextPaletteTooltipMessages.js +55 -0
  9. package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPaletteNew.js +13 -0
  10. package/dist/cjs/ui-color/index.js +14 -0
  11. package/dist/es2019/ai-messages/ai.js +5 -0
  12. package/dist/es2019/analytics/index.js +1 -1
  13. package/dist/es2019/analytics/types/enums.js +8 -0
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/ui/DropList/index.js +1 -1
  16. package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPaletteNew.js +12 -0
  17. package/dist/es2019/ui-color/ColorPalette/Palettes/lightTextPaletteTooltipMessages.js +55 -0
  18. package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPaletteNew.js +7 -0
  19. package/dist/es2019/ui-color/index.js +2 -0
  20. package/dist/esm/ai-messages/ai.js +5 -0
  21. package/dist/esm/analytics/index.js +1 -1
  22. package/dist/esm/analytics/types/enums.js +8 -0
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/ui/DropList/index.js +1 -1
  25. package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPaletteNew.js +13 -0
  26. package/dist/esm/ui-color/ColorPalette/Palettes/lightTextPaletteTooltipMessages.js +55 -0
  27. package/dist/esm/ui-color/ColorPalette/Palettes/textColorPaletteNew.js +7 -0
  28. package/dist/esm/ui-color/index.js +2 -0
  29. package/dist/types/ai-messages/ai.d.ts +5 -0
  30. package/dist/types/analytics/index.d.ts +1 -1
  31. package/dist/types/analytics/types/ai-suggestions-events.d.ts +6 -1
  32. package/dist/types/analytics/types/enums.d.ts +5 -0
  33. package/dist/types/analytics/types/general-events.d.ts +7 -2
  34. package/dist/types/analytics/types/sync-block-events.d.ts +4 -1
  35. package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPaletteNew.d.ts +2 -0
  36. package/dist/types/ui-color/ColorPalette/Palettes/lightTextPaletteTooltipMessages.d.ts +85 -30
  37. package/dist/types/ui-color/ColorPalette/Palettes/textColorPaletteNew.d.ts +2 -0
  38. package/dist/types/ui-color/index.d.ts +3 -1
  39. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d034aa0575c89`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d034aa0575c89) -
8
+ Add same-document analytics for synced block edit source and always evaluate the scroll gate.
9
+ - Updated dependencies
10
+
11
+ ## 116.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`d3ccc67c63428`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d3ccc67c63428) -
16
+ add analytics to track suggestions being dismissed
17
+ - [`1498129c7eef2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1498129c7eef2) -
18
+ [EDITOR-7591] adds updated text color and highlight color palettes behind the
19
+ `platform_editor_lovability_text_bg_color` experiment
20
+ - [`5bf738fb98422`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5bf738fb98422) -
21
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
22
+ (Group 3)
23
+
24
+ ### Patch Changes
25
+
26
+ - [`39abc4f2636bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39abc4f2636bc) -
27
+ Add selected tab metadata, source context, opened tab metadata, and initial/tab-change viewed
28
+ events to media insert picker analytics.
29
+ - [`275679fbe0ea1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/275679fbe0ea1) -
30
+ Add accessible labels to two floating-toolbar buttons that axe flagged
31
+ - Updated dependencies
32
+
33
+ ## 116.2.2
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+
3
39
  ## 116.2.1
4
40
 
5
41
  ### Patch Changes
@@ -103,6 +103,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntl.defineMessages)({
103
103
  defaultMessage: 'AI',
104
104
  description: 'Title for Atlassian Intelligence button in editor selection floating toolbar'
105
105
  },
106
+ rovoToolbarDropdownChevronLabel: {
107
+ id: 'fabric.editor.ai.toolbar.rovoDropdownChevron.label',
108
+ defaultMessage: 'More Ask Rovo options',
109
+ description: 'Accessible label for the chevron button that opens a dropdown menu with additional Ask Rovo options in the editor selection floating toolbar'
110
+ },
106
111
  summarizeToolbarDropdownIconTitle: {
107
112
  id: 'fabric.editor.ai.toolbar.summarize.title',
108
113
  defaultMessage: 'Summarize',
@@ -135,6 +135,12 @@ Object.defineProperty(exports, "LIST_TEXT_SCENARIOS", {
135
135
  return _listEvents.LIST_TEXT_SCENARIOS;
136
136
  }
137
137
  });
138
+ Object.defineProperty(exports, "MEDIA_INSERT_TAB", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _enums.MEDIA_INSERT_TAB;
142
+ }
143
+ });
138
144
  Object.defineProperty(exports, "MODE", {
139
145
  enumerable: true,
140
146
  get: function get() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TRIGGER_METHOD = exports.INSERT_MEDIA_VIA = exports.INPUT_METHOD = exports.FLOATING_CONTROLS_TITLE = exports.EVENT_TYPE = exports.CONTENT_COMPONENT = exports.ACTION_SUBJECT_ID = exports.ACTION_SUBJECT = exports.ACTION = void 0;
6
+ exports.TRIGGER_METHOD = exports.MEDIA_INSERT_TAB = exports.INSERT_MEDIA_VIA = exports.INPUT_METHOD = exports.FLOATING_CONTROLS_TITLE = exports.EVENT_TYPE = exports.CONTENT_COMPONENT = exports.ACTION_SUBJECT_ID = exports.ACTION_SUBJECT = exports.ACTION = void 0;
7
7
  var EVENT_TYPE = exports.EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
8
8
  EVENT_TYPE["OPERATIONAL"] = "operational";
9
9
  EVENT_TYPE["SCREEN"] = "screen";
@@ -283,6 +283,12 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
283
283
  INPUT_METHOD["REMIX_FROM_MEDIA_INSERTS"] = "remixFromMediaInserts";
284
284
  return INPUT_METHOD;
285
285
  }({}); // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
+ var MEDIA_INSERT_TAB = exports.MEDIA_INSERT_TAB = /*#__PURE__*/function (MEDIA_INSERT_TAB) {
287
+ MEDIA_INSERT_TAB["CREATE"] = "create";
288
+ MEDIA_INSERT_TAB["LINK"] = "link";
289
+ MEDIA_INSERT_TAB["UPLOAD"] = "upload";
290
+ return MEDIA_INSERT_TAB;
291
+ }({}); // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
292
  var INSERT_MEDIA_VIA = exports.INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
287
293
  INSERT_MEDIA_VIA["LOCAL_UPLOAD"] = "localUpload";
288
294
  INSERT_MEDIA_VIA["EXTERNAL_URL"] = "externalUrl";
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.2.0";
31
+ var packageVersion = "116.3.1";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "116.2.0";
27
+ var packageVersion = "116.3.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.highlightColorPaletteNew = void 0;
7
+ var _adfSchema = require("@atlaskit/adf-schema");
8
+ var _highlightColorPalette = require("./highlightColorPalette");
9
+ var _mapPaletteColor = require("./mapPaletteColor");
10
+ var removeHighlightColor = _highlightColorPalette.highlightColorPalette.find(function (_ref) {
11
+ var value = _ref.value;
12
+ return value === _highlightColorPalette.REMOVE_HIGHLIGHT_COLOR;
13
+ });
14
+
15
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
16
+ var highlightColorPaletteNew = exports.highlightColorPaletteNew = removeHighlightColor ? [removeHighlightColor] : [];
17
+ _adfSchema.backgroundColorPaletteNew.forEach(function (label, color) {
18
+ highlightColorPaletteNew.push((0, _mapPaletteColor.mapPaletteColor)(label, color));
19
+ });
@@ -111,5 +111,60 @@ var lightTextPaletteTooltipMessages = exports.lightTextPaletteTooltipMessages =
111
111
  id: 'fabric.theme.default',
112
112
  defaultMessage: 'Default',
113
113
  description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the default color option.'
114
+ },
115
+ '#D3F1A7': {
116
+ id: 'fabric.theme.subtle-lime',
117
+ defaultMessage: 'Subtle lime',
118
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle lime color option.'
119
+ },
120
+ '#FDD0EC': {
121
+ id: 'fabric.theme.subtle-magenta',
122
+ defaultMessage: 'Subtle magenta',
123
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle magenta color option.'
124
+ },
125
+ '#6A9A23': {
126
+ id: 'fabric.theme.lime',
127
+ defaultMessage: 'Lime',
128
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the lime color option.'
129
+ },
130
+ '#CD519D': {
131
+ id: 'fabric.theme.magenta',
132
+ defaultMessage: 'Magenta',
133
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the magenta color option.'
134
+ },
135
+ '#4C6B1F': {
136
+ id: 'fabric.theme.bold-lime',
137
+ defaultMessage: 'Bold lime',
138
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold lime color option.'
139
+ },
140
+ '#943D73': {
141
+ id: 'fabric.theme.bold-magenta',
142
+ defaultMessage: 'Bold magenta',
143
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold magenta color option.'
144
+ },
145
+ '#B38600': {
146
+ id: 'fabric.theme.yellow',
147
+ defaultMessage: 'Yellow',
148
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the yellow color option.'
149
+ },
150
+ '#7F5F01': {
151
+ id: 'fabric.theme.bold-yellow',
152
+ defaultMessage: 'Bold yellow',
153
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold yellow color option.'
154
+ },
155
+ '#FCE4A6': {
156
+ id: 'fabric.theme.subtle-orange',
157
+ defaultMessage: 'Subtle orange',
158
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle orange color option.'
159
+ },
160
+ '#E06C00': {
161
+ id: 'fabric.theme.orange',
162
+ defaultMessage: 'Orange',
163
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the orange color option.'
164
+ },
165
+ '#9E4C00': {
166
+ id: 'fabric.theme.bold-orange',
167
+ defaultMessage: 'Bold orange',
168
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold orange color option.'
114
169
  }
115
170
  });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.textColorPaletteNew = void 0;
7
+ var _adfSchema = require("@atlaskit/adf-schema");
8
+ var _mapPaletteColor = require("./mapPaletteColor");
9
+ // new color palette behind platform_editor_lovability_text_bg_color
10
+ var textColorPaletteNew = exports.textColorPaletteNew = [];
11
+ _adfSchema.colorPaletteNew.forEach(function (label, color) {
12
+ textColorPaletteNew.push((0, _mapPaletteColor.mapPaletteColor)(label, color));
13
+ });
@@ -100,6 +100,12 @@ Object.defineProperty(exports, "highlightColorPalette", {
100
100
  return _highlightColorPalette.highlightColorPalette;
101
101
  }
102
102
  });
103
+ Object.defineProperty(exports, "highlightColorPaletteNew", {
104
+ enumerable: true,
105
+ get: function get() {
106
+ return _highlightColorPaletteNew.highlightColorPaletteNew;
107
+ }
108
+ });
103
109
  Object.defineProperty(exports, "panelBackgroundPalette", {
104
110
  enumerable: true,
105
111
  get: function get() {
@@ -112,6 +118,12 @@ Object.defineProperty(exports, "textColorPalette", {
112
118
  return _textColorPalette.textColorPalette;
113
119
  }
114
120
  });
121
+ Object.defineProperty(exports, "textColorPaletteNew", {
122
+ enumerable: true,
123
+ get: function get() {
124
+ return _textColorPaletteNew.textColorPaletteNew;
125
+ }
126
+ });
115
127
  Object.defineProperty(exports, "textPaletteTooltipMessages", {
116
128
  enumerable: true,
117
129
  get: function get() {
@@ -134,7 +146,9 @@ var _cellBackgroundColorPalette = _interopRequireDefault(require("./ColorPalette
134
146
  var _paletteMessages = _interopRequireDefault(require("./ColorPalette/Palettes/paletteMessages"));
135
147
  var _panelBackgroundPalette = require("./ColorPalette/Palettes/panelBackgroundPalette");
136
148
  var _textColorPalette = require("./ColorPalette/Palettes/textColorPalette");
149
+ var _textColorPaletteNew = require("./ColorPalette/Palettes/textColorPaletteNew");
137
150
  var _highlightColorPalette = require("./ColorPalette/Palettes/highlightColorPalette");
151
+ var _highlightColorPaletteNew = require("./ColorPalette/Palettes/highlightColorPaletteNew");
138
152
  var _paletteMessagesTokenModeNames = require("./ColorPalette/Palettes/paletteMessagesTokenModeNames");
139
153
  var _common = require("./ColorPalette/Palettes/common");
140
154
  var _borderColorPalette = _interopRequireDefault(require("./ColorPalette/Palettes/borderColorPalette"));
@@ -97,6 +97,11 @@ export const aiMessages = defineMessages({
97
97
  defaultMessage: 'AI',
98
98
  description: 'Title for Atlassian Intelligence button in editor selection floating toolbar'
99
99
  },
100
+ rovoToolbarDropdownChevronLabel: {
101
+ id: 'fabric.editor.ai.toolbar.rovoDropdownChevron.label',
102
+ defaultMessage: 'More Ask Rovo options',
103
+ description: 'Accessible label for the chevron button that opens a dropdown menu with additional Ask Rovo options in the editor selection floating toolbar'
104
+ },
100
105
  summarizeToolbarDropdownIconTitle: {
101
106
  id: 'fabric.editor.ai.toolbar.summarize.title',
102
107
  defaultMessage: 'Summarize',
@@ -1,7 +1,7 @@
1
1
  // Disable no-re-export rule for entry point files
2
2
  /* eslint-disable @atlaskit/editor/no-re-export */
3
3
 
4
- export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './types/enums';
4
+ export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, MEDIA_INSERT_TAB, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './types/enums';
5
5
  export { INDENT_DIRECTION, INDENT_TYPE } from './types/format-events';
6
6
  export { PUNC, SYMBOL } from './types/substitute-events';
7
7
  export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS } from './types/general-events';
@@ -282,6 +282,14 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
282
282
  return INPUT_METHOD;
283
283
  }({});
284
284
 
285
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
+ export let MEDIA_INSERT_TAB = /*#__PURE__*/function (MEDIA_INSERT_TAB) {
287
+ MEDIA_INSERT_TAB["CREATE"] = "create";
288
+ MEDIA_INSERT_TAB["LINK"] = "link";
289
+ MEDIA_INSERT_TAB["UPLOAD"] = "upload";
290
+ return MEDIA_INSERT_TAB;
291
+ }({});
292
+
285
293
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
294
  export let INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
287
295
  INSERT_MEDIA_VIA["LOCAL_UPLOAD"] = "localUpload";
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.2.0";
17
+ const packageVersion = "116.3.1";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // 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 = "116.2.0";
17
+ const packageVersion = "116.3.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -0,0 +1,12 @@
1
+ import { backgroundColorPaletteNew } from '@atlaskit/adf-schema';
2
+ import { REMOVE_HIGHLIGHT_COLOR, highlightColorPalette } from './highlightColorPalette';
3
+ import { mapPaletteColor } from './mapPaletteColor';
4
+ const removeHighlightColor = highlightColorPalette.find(({
5
+ value
6
+ }) => value === REMOVE_HIGHLIGHT_COLOR);
7
+
8
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
+ export const highlightColorPaletteNew = removeHighlightColor ? [removeHighlightColor] : [];
10
+ backgroundColorPaletteNew.forEach((label, color) => {
11
+ highlightColorPaletteNew.push(mapPaletteColor(label, color));
12
+ });
@@ -106,5 +106,60 @@ export const lightTextPaletteTooltipMessages = defineMessages({
106
106
  id: 'fabric.theme.default',
107
107
  defaultMessage: 'Default',
108
108
  description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the default color option.'
109
+ },
110
+ '#D3F1A7': {
111
+ id: 'fabric.theme.subtle-lime',
112
+ defaultMessage: 'Subtle lime',
113
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle lime color option.'
114
+ },
115
+ '#FDD0EC': {
116
+ id: 'fabric.theme.subtle-magenta',
117
+ defaultMessage: 'Subtle magenta',
118
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle magenta color option.'
119
+ },
120
+ '#6A9A23': {
121
+ id: 'fabric.theme.lime',
122
+ defaultMessage: 'Lime',
123
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the lime color option.'
124
+ },
125
+ '#CD519D': {
126
+ id: 'fabric.theme.magenta',
127
+ defaultMessage: 'Magenta',
128
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the magenta color option.'
129
+ },
130
+ '#4C6B1F': {
131
+ id: 'fabric.theme.bold-lime',
132
+ defaultMessage: 'Bold lime',
133
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold lime color option.'
134
+ },
135
+ '#943D73': {
136
+ id: 'fabric.theme.bold-magenta',
137
+ defaultMessage: 'Bold magenta',
138
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold magenta color option.'
139
+ },
140
+ '#B38600': {
141
+ id: 'fabric.theme.yellow',
142
+ defaultMessage: 'Yellow',
143
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the yellow color option.'
144
+ },
145
+ '#7F5F01': {
146
+ id: 'fabric.theme.bold-yellow',
147
+ defaultMessage: 'Bold yellow',
148
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold yellow color option.'
149
+ },
150
+ '#FCE4A6': {
151
+ id: 'fabric.theme.subtle-orange',
152
+ defaultMessage: 'Subtle orange',
153
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle orange color option.'
154
+ },
155
+ '#E06C00': {
156
+ id: 'fabric.theme.orange',
157
+ defaultMessage: 'Orange',
158
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the orange color option.'
159
+ },
160
+ '#9E4C00': {
161
+ id: 'fabric.theme.bold-orange',
162
+ defaultMessage: 'Bold orange',
163
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold orange color option.'
109
164
  }
110
165
  });
@@ -0,0 +1,7 @@
1
+ import { colorPaletteNew } from '@atlaskit/adf-schema';
2
+ import { mapPaletteColor } from './mapPaletteColor';
3
+ // new color palette behind platform_editor_lovability_text_bg_color
4
+ export const textColorPaletteNew = [];
5
+ colorPaletteNew.forEach((label, color) => {
6
+ textColorPaletteNew.push(mapPaletteColor(label, color));
7
+ });
@@ -11,7 +11,9 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
11
11
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
12
12
  export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
13
13
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
14
+ export { textColorPaletteNew } from './ColorPalette/Palettes/textColorPaletteNew';
14
15
  export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
16
+ export { highlightColorPaletteNew } from './ColorPalette/Palettes/highlightColorPaletteNew';
15
17
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
16
18
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
17
19
  export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
@@ -97,6 +97,11 @@ export var aiMessages = defineMessages({
97
97
  defaultMessage: 'AI',
98
98
  description: 'Title for Atlassian Intelligence button in editor selection floating toolbar'
99
99
  },
100
+ rovoToolbarDropdownChevronLabel: {
101
+ id: 'fabric.editor.ai.toolbar.rovoDropdownChevron.label',
102
+ defaultMessage: 'More Ask Rovo options',
103
+ description: 'Accessible label for the chevron button that opens a dropdown menu with additional Ask Rovo options in the editor selection floating toolbar'
104
+ },
100
105
  summarizeToolbarDropdownIconTitle: {
101
106
  id: 'fabric.editor.ai.toolbar.summarize.title',
102
107
  defaultMessage: 'Summarize',
@@ -1,7 +1,7 @@
1
1
  // Disable no-re-export rule for entry point files
2
2
  /* eslint-disable @atlaskit/editor/no-re-export */
3
3
 
4
- export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './types/enums';
4
+ export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, MEDIA_INSERT_TAB, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './types/enums';
5
5
  export { INDENT_DIRECTION, INDENT_TYPE } from './types/format-events';
6
6
  export { PUNC, SYMBOL } from './types/substitute-events';
7
7
  export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS } from './types/general-events';
@@ -282,6 +282,14 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
282
282
  return INPUT_METHOD;
283
283
  }({});
284
284
 
285
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
+ export var MEDIA_INSERT_TAB = /*#__PURE__*/function (MEDIA_INSERT_TAB) {
287
+ MEDIA_INSERT_TAB["CREATE"] = "create";
288
+ MEDIA_INSERT_TAB["LINK"] = "link";
289
+ MEDIA_INSERT_TAB["UPLOAD"] = "upload";
290
+ return MEDIA_INSERT_TAB;
291
+ }({});
292
+
285
293
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
286
294
  export var INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
287
295
  INSERT_MEDIA_VIA["LOCAL_UPLOAD"] = "localUpload";
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.2.0";
23
+ var packageVersion = "116.3.1";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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 = "116.2.0";
24
+ var packageVersion = "116.3.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -0,0 +1,13 @@
1
+ import { backgroundColorPaletteNew } from '@atlaskit/adf-schema';
2
+ import { REMOVE_HIGHLIGHT_COLOR, highlightColorPalette } from './highlightColorPalette';
3
+ import { mapPaletteColor } from './mapPaletteColor';
4
+ var removeHighlightColor = highlightColorPalette.find(function (_ref) {
5
+ var value = _ref.value;
6
+ return value === REMOVE_HIGHLIGHT_COLOR;
7
+ });
8
+
9
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
10
+ export var highlightColorPaletteNew = removeHighlightColor ? [removeHighlightColor] : [];
11
+ backgroundColorPaletteNew.forEach(function (label, color) {
12
+ highlightColorPaletteNew.push(mapPaletteColor(label, color));
13
+ });
@@ -106,5 +106,60 @@ export var lightTextPaletteTooltipMessages = defineMessages({
106
106
  id: 'fabric.theme.default',
107
107
  defaultMessage: 'Default',
108
108
  description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the default color option.'
109
+ },
110
+ '#D3F1A7': {
111
+ id: 'fabric.theme.subtle-lime',
112
+ defaultMessage: 'Subtle lime',
113
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle lime color option.'
114
+ },
115
+ '#FDD0EC': {
116
+ id: 'fabric.theme.subtle-magenta',
117
+ defaultMessage: 'Subtle magenta',
118
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle magenta color option.'
119
+ },
120
+ '#6A9A23': {
121
+ id: 'fabric.theme.lime',
122
+ defaultMessage: 'Lime',
123
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the lime color option.'
124
+ },
125
+ '#CD519D': {
126
+ id: 'fabric.theme.magenta',
127
+ defaultMessage: 'Magenta',
128
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the magenta color option.'
129
+ },
130
+ '#4C6B1F': {
131
+ id: 'fabric.theme.bold-lime',
132
+ defaultMessage: 'Bold lime',
133
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold lime color option.'
134
+ },
135
+ '#943D73': {
136
+ id: 'fabric.theme.bold-magenta',
137
+ defaultMessage: 'Bold magenta',
138
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold magenta color option.'
139
+ },
140
+ '#B38600': {
141
+ id: 'fabric.theme.yellow',
142
+ defaultMessage: 'Yellow',
143
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the yellow color option.'
144
+ },
145
+ '#7F5F01': {
146
+ id: 'fabric.theme.bold-yellow',
147
+ defaultMessage: 'Bold yellow',
148
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold yellow color option.'
149
+ },
150
+ '#FCE4A6': {
151
+ id: 'fabric.theme.subtle-orange',
152
+ defaultMessage: 'Subtle orange',
153
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the subtle orange color option.'
154
+ },
155
+ '#E06C00': {
156
+ id: 'fabric.theme.orange',
157
+ defaultMessage: 'Orange',
158
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the orange color option.'
159
+ },
160
+ '#9E4C00': {
161
+ id: 'fabric.theme.bold-orange',
162
+ defaultMessage: 'Bold orange',
163
+ description: 'The text is shown as a tooltip label for a color swatch in the editor text color picker when the user hovers over the bold orange color option.'
109
164
  }
110
165
  });
@@ -0,0 +1,7 @@
1
+ import { colorPaletteNew } from '@atlaskit/adf-schema';
2
+ import { mapPaletteColor } from './mapPaletteColor';
3
+ // new color palette behind platform_editor_lovability_text_bg_color
4
+ export var textColorPaletteNew = [];
5
+ colorPaletteNew.forEach(function (label, color) {
6
+ textColorPaletteNew.push(mapPaletteColor(label, color));
7
+ });
@@ -11,7 +11,9 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
11
11
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
12
12
  export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
13
13
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
14
+ export { textColorPaletteNew } from './ColorPalette/Palettes/textColorPaletteNew';
14
15
  export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
16
+ export { highlightColorPaletteNew } from './ColorPalette/Palettes/highlightColorPaletteNew';
15
17
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
16
18
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
17
19
  export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
@@ -274,6 +274,11 @@ export declare const aiMessages: {
274
274
  description: string;
275
275
  id: string;
276
276
  };
277
+ rovoToolbarDropdownChevronLabel: {
278
+ defaultMessage: string;
279
+ description: string;
280
+ id: string;
281
+ };
277
282
  summarizeToolbarDropdownIconTitle: {
278
283
  defaultMessage: string;
279
284
  description: string;
@@ -2,7 +2,7 @@ export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCal
2
2
  export type { FormatEventPayload } from './types/format-events';
3
3
  export type { SubstituteEventPayload } from './types/substitute-events';
4
4
  export type { ColorPickerAEP, GeneralEventPayload } from './types/general-events';
5
- export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, } from './types/enums';
5
+ export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, MEDIA_INSERT_TAB, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, } from './types/enums';
6
6
  export { INDENT_DIRECTION, INDENT_TYPE } from './types/format-events';
7
7
  export { PUNC, SYMBOL } from './types/substitute-events';
8
8
  export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS, } from './types/general-events';
@@ -28,6 +28,11 @@ type DiscardSuggestionAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_SUGGEST
28
28
  interactionPoint: AiSuggestionInteractionPoint;
29
29
  suggestionType: string;
30
30
  }, undefined>;
31
+ type DismissSuggestionAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
32
+ affectedBlocks: number;
33
+ interactionPoint: AiSuggestionInteractionPoint;
34
+ suggestionType: string;
35
+ }, undefined>;
31
36
  type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
32
37
  affectedBlocks: number;
33
38
  blockTypes: string[];
@@ -37,5 +42,5 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
37
42
  suggestionCardCharacterCount: number;
38
43
  suggestionType: string;
39
44
  }, undefined>;
40
- export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | ViewSuggestionAEP;
45
+ export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP;
41
46
  export {};
@@ -271,6 +271,11 @@ export declare enum INPUT_METHOD {
271
271
  REMIX = "remix",
272
272
  REMIX_FROM_MEDIA_INSERTS = "remixFromMediaInserts"
273
273
  }
274
+ export declare enum MEDIA_INSERT_TAB {
275
+ CREATE = "create",
276
+ LINK = "link",
277
+ UPLOAD = "upload"
278
+ }
274
279
  export declare enum INSERT_MEDIA_VIA {
275
280
  LOCAL_UPLOAD = "localUpload",
276
281
  EXTERNAL_URL = "externalUrl",
@@ -2,7 +2,7 @@ import type { RichMediaLayout } from '@atlaskit/adf-schema';
2
2
  import type { FeatureFlagKey } from '../../types/feature-flags';
3
3
  import type { PropsDifference, ShallowPropsDifference } from '../../utils';
4
4
  import type { SEVERITY } from '../../utils/SEVERITY';
5
- import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
5
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, MEDIA_INSERT_TAB } from './enums';
6
6
  import type { AnnotationAEP, AnnotationErrorAEP } from './inline-comment-events';
7
7
  import type { OperationalAEP, OperationalAEPWithObjectId, TrackAEP, UIAEP } from './utils';
8
8
  export declare enum PLATFORMS {
@@ -130,7 +130,12 @@ type PickerImageAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_CLOUD, {
130
130
  }>;
131
131
  type PickerMediaInsertAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_MEDIA, {
132
132
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
133
+ openedTab?: MEDIA_INSERT_TAB;
133
134
  }>;
135
+ type PickerMediaInsertTabViewedAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.PICKER, ACTION_SUBJECT_ID.PICKER_MEDIA, {
136
+ selectedTab: string;
137
+ selectedTabIndex: number;
138
+ }, undefined>;
134
139
  type PickerMediaInsertClosedAEP = PickerClosedAEP<ACTION_SUBJECT_ID.PICKER_MEDIA, {
135
140
  exitMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE;
136
141
  }>;
@@ -251,5 +256,5 @@ type ChangeToneMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR
251
256
  type TranslateMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_DROPDOWN_MENU_ITEM, ACTION_SUBJECT_ID.AI_TRANSLATE, {
252
257
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
253
258
  }>;
254
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageAutoDetectedAEP | CodeBlockLanguageSelectedAEP | CodeBlockFormatCodeSuccessAEP | CodeBlockFormatCodeFailedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CollabOrganicChangesTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | CodeBlockLineNumbersToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP | RovoMoreOptionsClickedAEP | AskRovoButtonClickedAEP | SmartLinkRovoButtonClickedAEP | SmartLinkSummarizeButtonClickedAEP | AIRemixButtonClickedAEP | ChangeToneMenuItemClickedAEP | TranslateMenuItemClickedAEP | MediaSingleWidthTransformedAEP;
259
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertTabViewedAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageAutoDetectedAEP | CodeBlockLanguageSelectedAEP | CodeBlockFormatCodeSuccessAEP | CodeBlockFormatCodeFailedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CollabOrganicChangesTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | CodeBlockLineNumbersToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP | RovoMoreOptionsClickedAEP | AskRovoButtonClickedAEP | SmartLinkRovoButtonClickedAEP | SmartLinkSummarizeButtonClickedAEP | AIRemixButtonClickedAEP | ChangeToneMenuItemClickedAEP | TranslateMenuItemClickedAEP | MediaSingleWidthTransformedAEP;
255
260
  export {};
@@ -27,6 +27,9 @@ type SyncedBlockCopySuccessAttributes = SyncedBlockSuccessAttributes & {
27
27
  type SyncedBlockCopyErrorAttributes = SyncedBlockErrorAttributes & {
28
28
  inputMethod: INPUT_METHOD;
29
29
  };
30
+ type SyncedBlockEditSourceAttributes = SyncedBlockSuccessAttributes & {
31
+ sameDocument?: boolean;
32
+ };
30
33
  export type SyncedBlockSourceURLErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockErrorAttributes>;
31
34
  export type SyncedBlockUpdateCacheErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE_CACHE, SyncedBlockErrorAttributes>;
32
35
  export type SyncedBlockUpdateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE, SyncedBlockErrorAttributes>;
@@ -42,7 +45,7 @@ export type SyncedBlockUpdateSuccessAEP = OperationalAEP<ACTION.UPDATED, ACTION_
42
45
  export type SyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
43
46
  export type ReferenceSyncedBlockCreateSuccessAEP = OperationalAEP<ACTION.INSERTED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_CREATE, SyncedBlockSuccessAttributes>;
44
47
  export type ReferenceSyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
45
- export type SyncedBlockEditSourceAEP = OperationalAEP<ACTION.SYNCED_BLOCK_EDIT_SOURCE, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockSuccessAttributes>;
48
+ export type SyncedBlockEditSourceAEP = OperationalAEP<ACTION.SYNCED_BLOCK_EDIT_SOURCE, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockEditSourceAttributes>;
46
49
  export type SyncedBlockCopyAEP = OperationalAEP<ACTION.COPIED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopySuccessAttributes>;
47
50
  export type SyncedBlockCopyErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_COPY, SyncedBlockCopyErrorAttributes>;
48
51
  export type SyncedLocationClickAEP = OperationalAEP<ACTION.CLICKED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CLICK_SYNCED_LOCATION, SyncedBlockSuccessAttributes>;
@@ -0,0 +1,2 @@
1
+ import type { PaletteColor } from './type';
2
+ export declare const highlightColorPaletteNew: Array<PaletteColor>;
@@ -1,107 +1,162 @@
1
1
  export declare const lightTextPaletteTooltipMessages: {
2
- '#FFFFFF': {
3
- id: string;
2
+ '#006644': {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- '#B3D4FF': {
8
5
  id: string;
6
+ };
7
+ '#008DA6': {
9
8
  defaultMessage: string;
10
9
  description: string;
11
- };
12
- '#B3F5FF': {
13
10
  id: string;
11
+ };
12
+ '#00B8D9': {
14
13
  defaultMessage: string;
15
14
  description: string;
16
- };
17
- '#ABF5D1': {
18
15
  id: string;
16
+ };
17
+ '#0747A6': {
19
18
  defaultMessage: string;
20
19
  description: string;
21
- };
22
- '#FFF0B3': {
23
20
  id: string;
21
+ };
22
+ '#172B4D': {
24
23
  defaultMessage: string;
25
24
  description: string;
26
- };
27
- '#FFBDAD': {
28
25
  id: string;
26
+ };
27
+ '#36B37E': {
29
28
  defaultMessage: string;
30
29
  description: string;
31
- };
32
- '#EAE6FF': {
33
30
  id: string;
31
+ };
32
+ '#403294': {
34
33
  defaultMessage: string;
35
34
  description: string;
36
- };
37
- '#97A0AF': {
38
35
  id: string;
36
+ };
37
+ '#4C6B1F': {
39
38
  defaultMessage: string;
40
39
  description: string;
40
+ id: string;
41
41
  };
42
42
  '#4C9AFF': {
43
- id: string;
44
43
  defaultMessage: string;
45
44
  description: string;
46
- };
47
- '#00B8D9': {
48
45
  id: string;
46
+ };
47
+ '#6554C0': {
49
48
  defaultMessage: string;
50
49
  description: string;
50
+ id: string;
51
51
  };
52
- '#36B37E': {
52
+ '#6A9A23': {
53
+ defaultMessage: string;
54
+ description: string;
53
55
  id: string;
56
+ };
57
+ '#7F5F01': {
54
58
  defaultMessage: string;
55
59
  description: string;
60
+ id: string;
56
61
  };
57
- '#FFC400': {
62
+ '#943D73': {
63
+ defaultMessage: string;
64
+ description: string;
58
65
  id: string;
66
+ };
67
+ '#97A0AF': {
59
68
  defaultMessage: string;
60
69
  description: string;
70
+ id: string;
61
71
  };
62
- '#FF5630': {
72
+ '#9E4C00': {
73
+ defaultMessage: string;
74
+ description: string;
63
75
  id: string;
76
+ };
77
+ '#ABF5D1': {
64
78
  defaultMessage: string;
65
79
  description: string;
80
+ id: string;
66
81
  };
67
- '#FF991F': {
82
+ '#B38600': {
83
+ defaultMessage: string;
84
+ description: string;
68
85
  id: string;
86
+ };
87
+ '#B3D4FF': {
69
88
  defaultMessage: string;
70
89
  description: string;
90
+ id: string;
71
91
  };
72
- '#6554C0': {
92
+ '#B3F5FF': {
93
+ defaultMessage: string;
94
+ description: string;
73
95
  id: string;
96
+ };
97
+ '#BF2600': {
74
98
  defaultMessage: string;
75
99
  description: string;
100
+ id: string;
76
101
  };
77
- '#0747A6': {
102
+ '#CD519D': {
103
+ defaultMessage: string;
104
+ description: string;
78
105
  id: string;
106
+ };
107
+ '#D3F1A7': {
79
108
  defaultMessage: string;
80
109
  description: string;
110
+ id: string;
81
111
  };
82
- '#008DA6': {
112
+ '#E06C00': {
113
+ defaultMessage: string;
114
+ description: string;
83
115
  id: string;
116
+ };
117
+ '#EAE6FF': {
84
118
  defaultMessage: string;
85
119
  description: string;
120
+ id: string;
86
121
  };
87
- '#006644': {
122
+ '#FCE4A6': {
123
+ defaultMessage: string;
124
+ description: string;
88
125
  id: string;
126
+ };
127
+ '#FDD0EC': {
89
128
  defaultMessage: string;
90
129
  description: string;
130
+ id: string;
91
131
  };
92
- '#BF2600': {
132
+ '#FF5630': {
133
+ defaultMessage: string;
134
+ description: string;
93
135
  id: string;
136
+ };
137
+ '#FF991F': {
94
138
  defaultMessage: string;
95
139
  description: string;
140
+ id: string;
96
141
  };
97
- '#403294': {
142
+ '#FFBDAD': {
143
+ defaultMessage: string;
144
+ description: string;
98
145
  id: string;
146
+ };
147
+ '#FFC400': {
99
148
  defaultMessage: string;
100
149
  description: string;
150
+ id: string;
101
151
  };
102
- '#172B4D': {
152
+ '#FFF0B3': {
153
+ defaultMessage: string;
154
+ description: string;
103
155
  id: string;
156
+ };
157
+ '#FFFFFF': {
104
158
  defaultMessage: string;
105
159
  description: string;
160
+ id: string;
106
161
  };
107
162
  };
@@ -0,0 +1,2 @@
1
+ import type { PaletteColor } from './type';
2
+ export declare const textColorPaletteNew: Array<PaletteColor>;
@@ -7,8 +7,10 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
7
7
  export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
8
8
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
9
9
  export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
10
- export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
10
+ export { textColorPalette, } from './ColorPalette/Palettes/textColorPalette';
11
+ export { textColorPaletteNew, } from './ColorPalette/Palettes/textColorPaletteNew';
11
12
  export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
13
+ export { highlightColorPaletteNew, } from './ColorPalette/Palettes/highlightColorPaletteNew';
12
14
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
13
15
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
14
16
  export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.2.1",
3
+ "version": "116.3.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/"
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/activity-provider": "^3.0.0",
32
- "@atlaskit/adf-schema": "^55.0.0",
32
+ "@atlaskit/adf-schema": "^55.2.0",
33
33
  "@atlaskit/adf-utils": "^20.0.0",
34
- "@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
34
+ "@atlaskit/afm-i18n-platform-editor-editor-common": "2.158.0",
35
35
  "@atlaskit/analytics-listeners": "^11.0.0",
36
36
  "@atlaskit/analytics-namespaced-context": "^8.0.0",
37
37
  "@atlaskit/analytics-next": "^12.0.0",
@@ -43,13 +43,13 @@
43
43
  "@atlaskit/custom-steps": "^1.0.0",
44
44
  "@atlaskit/dropdown-menu": "^17.0.0",
45
45
  "@atlaskit/editor-json-transformer": "^9.0.0",
46
- "@atlaskit/editor-palette": "^3.0.0",
46
+ "@atlaskit/editor-palette": "^3.1.0",
47
47
  "@atlaskit/editor-prosemirror": "^8.0.0",
48
48
  "@atlaskit/editor-shared-styles": "^4.0.0",
49
49
  "@atlaskit/editor-tables": "^3.0.0",
50
50
  "@atlaskit/editor-toolbar": "^2.0.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.0.0",
52
- "@atlaskit/emoji": "^71.1.0",
52
+ "@atlaskit/emoji": "^71.2.0",
53
53
  "@atlaskit/icon": "^36.0.0",
54
54
  "@atlaskit/link": "^4.0.0",
55
55
  "@atlaskit/link-datasource": "^6.0.0",
@@ -60,26 +60,26 @@
60
60
  "@atlaskit/media-common": "^14.0.0",
61
61
  "@atlaskit/media-file-preview": "^1.0.0",
62
62
  "@atlaskit/media-picker": "^72.0.0",
63
- "@atlaskit/media-ui": "^30.0.0",
63
+ "@atlaskit/media-ui": "^30.1.0",
64
64
  "@atlaskit/media-viewer": "^54.0.0",
65
- "@atlaskit/mention": "^27.0.0",
65
+ "@atlaskit/mention": "^27.1.0",
66
66
  "@atlaskit/menu": "^9.0.0",
67
67
  "@atlaskit/object": "^2.0.0",
68
68
  "@atlaskit/onboarding": "^15.0.0",
69
69
  "@atlaskit/platform-feature-flags": "^2.0.0",
70
70
  "@atlaskit/platform-feature-flags-react": "^1.0.0",
71
71
  "@atlaskit/primitives": "^20.0.0",
72
- "@atlaskit/profilecard": "^26.0.0",
72
+ "@atlaskit/profilecard": "^26.1.0",
73
73
  "@atlaskit/prosemirror-history": "^1.0.0",
74
74
  "@atlaskit/react-ufo": "^7.1.0",
75
75
  "@atlaskit/section-message": "^9.0.0",
76
- "@atlaskit/smart-card": "^45.0.0",
76
+ "@atlaskit/smart-card": "^45.1.0",
77
77
  "@atlaskit/smart-user-picker": "^11.0.0",
78
78
  "@atlaskit/spinner": "^20.0.0",
79
- "@atlaskit/task-decision": "^21.0.0",
79
+ "@atlaskit/task-decision": "^21.1.0",
80
80
  "@atlaskit/teams-app-config": "^2.0.0",
81
81
  "@atlaskit/textfield": "^9.0.0",
82
- "@atlaskit/tmp-editor-statsig": "^105.0.0",
82
+ "@atlaskit/tmp-editor-statsig": "^107.1.0",
83
83
  "@atlaskit/tokens": "^14.0.0",
84
84
  "@atlaskit/tooltip": "^23.0.0",
85
85
  "@atlaskit/width-detector": "^6.0.0",