@atlaskit/editor-common 116.45.0 → 116.47.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cjs/analytics/types/enums.js +1 -0
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/styles/shared/sync-block.js +7 -1
  5. package/dist/cjs/ui/DropList/index.js +1 -1
  6. package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +28 -0
  7. package/dist/cjs/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +50 -0
  8. package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
  9. package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPaletteNew.js +106 -0
  10. package/dist/cjs/ui-color/index.js +14 -0
  11. package/dist/es2019/analytics/types/enums.js +1 -0
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/styles/shared/sync-block.js +7 -1
  14. package/dist/es2019/ui/DropList/index.js +1 -1
  15. package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +21 -0
  16. package/dist/es2019/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +50 -0
  17. package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
  18. package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPaletteNew.js +95 -0
  19. package/dist/es2019/ui-color/index.js +2 -0
  20. package/dist/esm/analytics/types/enums.js +1 -0
  21. package/dist/esm/monitoring/error.js +1 -1
  22. package/dist/esm/styles/shared/sync-block.js +7 -1
  23. package/dist/esm/ui/DropList/index.js +1 -1
  24. package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +21 -0
  25. package/dist/esm/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +50 -0
  26. package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +60 -0
  27. package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPaletteNew.js +99 -0
  28. package/dist/esm/ui-color/index.js +2 -0
  29. package/dist/types/analytics/types/ai-suggestions-events.d.ts +7 -1
  30. package/dist/types/analytics/types/enums.d.ts +1 -0
  31. package/dist/types/styles/shared/sync-block.d.ts +6 -5
  32. package/dist/types/types/floating-toolbar.d.ts +1 -0
  33. package/dist/types/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.d.ts +8 -0
  34. package/dist/types/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.d.ts +80 -30
  35. package/dist/types/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +60 -0
  36. package/dist/types/ui-color/ColorPalette/Palettes/panelBackgroundPaletteNew.d.ts +2 -0
  37. package/dist/types/ui-color/index.d.ts +2 -0
  38. package/package.json +8 -5
  39. package/ui-color/ColorPalette/panelBackgroundPaletteNew/package.json +10 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7a9ec6f1fa018`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7a9ec6f1fa018) -
8
+ [EDITOR-7592] Add a new panel background color palette with expanded colors behind the lovability
9
+ experiment and patch gate.
10
+
11
+ ### Patch Changes
12
+
13
+ - [`472c37e82078b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/472c37e82078b) -
14
+ [ux] Fixed the source synced block placeholder disappearing after placing the cursor inside an
15
+ empty block and then clicking away from the editor.
16
+ - Updated dependencies
17
+
18
+ ## 116.46.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [`3b0816741523c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b0816741523c) -
23
+ Add lime, orange, and magenta colors to table cell background color palette
24
+ - [`4bc9e5cd5f2d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4bc9e5cd5f2d9) -
25
+ EDITOR-7136: Check suggestion staleness right after fetching suggestions.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 116.45.0
4
32
 
5
33
  ### Minor Changes
@@ -440,6 +440,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
440
440
  ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
441
441
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
442
442
  ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
443
+ ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
443
444
  ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
444
445
  ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
445
446
  ACTION_SUBJECT_ID["COPY_BLOCK"] = "copyBlock";
@@ -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.44.3";
31
+ var packageVersion = "116.46.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -20,7 +20,13 @@ var BodiedSyncBlockSharedCssClassName = exports.BodiedSyncBlockSharedCssClassNam
20
20
  prefix: bodiedPrefix,
21
21
  renderer: "".concat(bodiedPrefix, "__renderer"),
22
22
  content: "".concat(bodiedPrefix, "__content"),
23
- selectionInside: "".concat(bodiedPrefix, "__selection_inside")
23
+ selectionInside: "".concat(bodiedPrefix, "__selection_inside"),
24
+ // Applied by the node view when the block holds nothing but a single empty paragraph.
25
+ // Emptiness is derived from the ProseMirror document rather than the rendered DOM, because
26
+ // decorations (for example the selection marker's cursor widget) and ProseMirror's own
27
+ // separator/trailing-break hack nodes are injected as children of that paragraph and make
28
+ // DOM-shape heuristics unreliable. See EDITOR-8327.
29
+ empty: "".concat(bodiedPrefix, "__empty")
24
30
  };
25
31
 
26
32
  // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
@@ -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.44.3";
27
+ var packageVersion = "116.46.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _tableNodes = require("@atlaskit/adf-schema/tableNodes");
9
+ var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
10
+ var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
11
+ /**
12
+ * Expanded 10-column (30-entry) UI palette that adds lime, orange, and magenta columns
13
+ * and updates the bold row to use `subtler.hovered` design tokens.
14
+ * This is a superset of the default {@link cellBackgroundColorPalette}.
15
+ */
16
+ var cellBackgroundColorPaletteNew = [];
17
+ _tableNodes.tableBackgroundColorPaletteNew.forEach(function (label, color) {
18
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
19
+ var key = label.toLowerCase().replace(' ', '-');
20
+ var message = (0, _getColorMessage.default)(_paletteMessages.default, key);
21
+ cellBackgroundColorPaletteNew.push({
22
+ value: color,
23
+ label: label,
24
+ border: _tableNodes.tableBackgroundBorderColor,
25
+ message: message
26
+ });
27
+ });
28
+ var _default = exports.default = cellBackgroundColorPaletteNew;
@@ -66,6 +66,11 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
66
66
  defaultMessage: 'Bold yellow',
67
67
  description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold yellow color option.'
68
68
  },
69
+ '#EFDD4E': {
70
+ id: 'fabric.theme.bold-yellow-new',
71
+ defaultMessage: 'Bold yellow',
72
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold yellow color option.'
73
+ },
69
74
  '#FFEBE6': {
70
75
  id: 'fabric.theme.subtle-red',
71
76
  defaultMessage: 'Subtle red',
@@ -110,5 +115,50 @@ var lightBackgroundPaletteTooltipMessages = exports.lightBackgroundPaletteToolti
110
115
  id: 'fabric.theme.bold-gray',
111
116
  defaultMessage: 'Bold gray',
112
117
  description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold gray color option.'
118
+ },
119
+ '#EFFFD6': {
120
+ id: 'fabric.theme.subtle-lime',
121
+ defaultMessage: 'Subtle lime',
122
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle lime color option.'
123
+ },
124
+ '#D3F1A7': {
125
+ id: 'fabric.theme.lime',
126
+ defaultMessage: 'Lime',
127
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the lime color option.'
128
+ },
129
+ '#BDE97C': {
130
+ id: 'fabric.theme.bold-lime',
131
+ defaultMessage: 'Bold lime',
132
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold lime color option.'
133
+ },
134
+ '#FFF5DB': {
135
+ id: 'fabric.theme.subtle-orange',
136
+ defaultMessage: 'Subtle orange',
137
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle orange color option.'
138
+ },
139
+ '#FCE4A6': {
140
+ id: 'fabric.theme.orange',
141
+ defaultMessage: 'Orange',
142
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the orange color option.'
143
+ },
144
+ '#FBD779': {
145
+ id: 'fabric.theme.bold-orange',
146
+ defaultMessage: 'Bold orange',
147
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold orange color option.'
148
+ },
149
+ '#FFECF8': {
150
+ id: 'fabric.theme.subtle-magenta',
151
+ defaultMessage: 'Subtle magenta',
152
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle magenta color option.'
153
+ },
154
+ '#FDD0EC': {
155
+ id: 'fabric.theme.magenta',
156
+ defaultMessage: 'Magenta',
157
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the magenta color option.'
158
+ },
159
+ '#FCB6E1': {
160
+ id: 'fabric.theme.bold-magenta',
161
+ defaultMessage: 'Bold magenta',
162
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold magenta color option.'
113
163
  }
114
164
  });
@@ -156,6 +156,66 @@ var _default_1 = (0, _reactIntl.defineMessages)({
156
156
  defaultMessage: 'Bold gray',
157
157
  description: 'Tooltip label for the bold gray color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
158
158
  },
159
+ 'subtle-lime': {
160
+ id: 'fabric.theme.subtle-lime',
161
+ defaultMessage: 'Subtle lime',
162
+ description: 'Tooltip label for the subtle lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
163
+ },
164
+ 'bold-lime': {
165
+ id: 'fabric.theme.bold-lime',
166
+ defaultMessage: 'Bold lime',
167
+ description: 'Tooltip label for the bold lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
168
+ },
169
+ 'subtle-orange': {
170
+ id: 'fabric.theme.subtle-orange',
171
+ defaultMessage: 'Subtle orange',
172
+ description: 'Tooltip label for the subtle orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
173
+ },
174
+ 'bold-orange': {
175
+ id: 'fabric.theme.bold-orange',
176
+ defaultMessage: 'Bold orange',
177
+ description: 'Tooltip label for the bold orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
178
+ },
179
+ 'subtle-magenta': {
180
+ id: 'fabric.theme.subtle-magenta',
181
+ defaultMessage: 'Subtle magenta',
182
+ description: 'Tooltip label for the subtle magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
183
+ },
184
+ 'bold-magenta': {
185
+ id: 'fabric.theme.bold-magenta',
186
+ defaultMessage: 'Bold magenta',
187
+ description: 'Tooltip label for the bold magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
188
+ },
189
+ 'bold-blue': {
190
+ id: 'fabric.theme.bold-blue',
191
+ defaultMessage: 'Bold blue',
192
+ description: 'Tooltip label for the bold blue color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
193
+ },
194
+ 'bold-teal': {
195
+ id: 'fabric.theme.bold-teal',
196
+ defaultMessage: 'Bold teal',
197
+ description: 'Tooltip label for the bold teal color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
198
+ },
199
+ 'bold-green': {
200
+ id: 'fabric.theme.bold-green',
201
+ defaultMessage: 'Bold green',
202
+ description: 'Tooltip label for the bold green color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
203
+ },
204
+ 'bold-yellow': {
205
+ id: 'fabric.theme.bold-yellow',
206
+ defaultMessage: 'Bold yellow',
207
+ description: 'Tooltip label for the bold yellow color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
208
+ },
209
+ 'bold-red': {
210
+ id: 'fabric.theme.bold-red',
211
+ defaultMessage: 'Bold red',
212
+ description: 'Tooltip label for the bold red color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
213
+ },
214
+ 'bold-purple': {
215
+ id: 'fabric.theme.bold-purple',
216
+ defaultMessage: 'Bold purple',
217
+ description: 'Tooltip label for the bold purple color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
218
+ },
159
219
  // Colors only used in highlight palette
160
220
  'no-color': {
161
221
  id: 'fabric.theme.no-color',
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.panelBackgroundPaletteNew = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ // new palette for platform_editor_lovability_text_bg_color experiment
12
+ var panelBackgroundPaletteNew = exports.panelBackgroundPaletteNew = [{
13
+ label: 'White',
14
+ value: '#FFFFFF'
15
+ }, {
16
+ label: 'Subtle blue',
17
+ value: '#DEEBFF'
18
+ }, {
19
+ label: 'Subtle teal',
20
+ value: '#E6FCFF'
21
+ }, {
22
+ label: 'Subtle green',
23
+ value: '#E3FCEF'
24
+ }, {
25
+ label: 'Subtle lime',
26
+ value: '#EFFFD6'
27
+ }, {
28
+ label: 'Subtle yellow',
29
+ value: '#FFFAE6'
30
+ }, {
31
+ label: 'Subtle orange',
32
+ value: '#FFF5DB'
33
+ }, {
34
+ label: 'Subtle red',
35
+ value: '#FFEBE6'
36
+ }, {
37
+ label: 'Subtle magenta',
38
+ value: '#FFECF8'
39
+ }, {
40
+ label: 'Subtle purple',
41
+ value: '#EAE6FF'
42
+ }, {
43
+ label: 'Gray',
44
+ value: '#F4F5F7'
45
+ }, {
46
+ label: 'Blue',
47
+ value: '#B3D4FF'
48
+ }, {
49
+ label: 'Teal',
50
+ value: '#B3F5FF'
51
+ }, {
52
+ label: 'Green',
53
+ value: '#ABF5D1'
54
+ }, {
55
+ label: 'Lime',
56
+ value: '#D3F1A7'
57
+ }, {
58
+ label: 'Yellow',
59
+ value: '#FFF0B3'
60
+ }, {
61
+ label: 'Orange',
62
+ value: '#FCE4A6'
63
+ }, {
64
+ label: 'Red',
65
+ value: '#FFBDAD'
66
+ }, {
67
+ label: 'Magenta',
68
+ value: '#FDD0EC'
69
+ }, {
70
+ label: 'Purple',
71
+ value: '#C0B6F2'
72
+ }, {
73
+ label: 'Bold gray',
74
+ value: '#B7B9BE'
75
+ }, {
76
+ label: 'Bold blue',
77
+ value: '#ADCBFB'
78
+ }, {
79
+ label: 'Bold teal',
80
+ value: '#B1E4F7'
81
+ }, {
82
+ label: 'Bold green',
83
+ value: '#97EDC9'
84
+ }, {
85
+ label: 'Bold lime',
86
+ value: '#BDE97C'
87
+ }, {
88
+ label: 'Bold yellow',
89
+ value: '#EFDD4E'
90
+ }, {
91
+ label: 'Bold orange',
92
+ value: '#FBD779'
93
+ }, {
94
+ label: 'Bold red',
95
+ value: '#FFB8B2'
96
+ }, {
97
+ label: 'Bold magenta',
98
+ value: '#FCB6E1'
99
+ }, {
100
+ label: 'Bold purple',
101
+ value: '#E3BDFA'
102
+ }].map(function (color) {
103
+ return _objectSpread(_objectSpread({}, color), {}, {
104
+ border: "var(--ds-border, #0B120E24)"
105
+ });
106
+ });
@@ -64,6 +64,12 @@ Object.defineProperty(exports, "cellBackgroundColorPalette", {
64
64
  return _cellBackgroundColorPalette.default;
65
65
  }
66
66
  });
67
+ Object.defineProperty(exports, "cellBackgroundColorPaletteNew", {
68
+ enumerable: true,
69
+ get: function get() {
70
+ return _cellBackgroundColorPaletteNew.default;
71
+ }
72
+ });
67
73
  Object.defineProperty(exports, "chartsColorPaletteTooltipMessages", {
68
74
  enumerable: true,
69
75
  get: function get() {
@@ -136,6 +142,12 @@ Object.defineProperty(exports, "panelBackgroundPalette", {
136
142
  return _panelBackgroundPalette.panelBackgroundPalette;
137
143
  }
138
144
  });
145
+ Object.defineProperty(exports, "panelBackgroundPaletteNew", {
146
+ enumerable: true,
147
+ get: function get() {
148
+ return _panelBackgroundPaletteNew.panelBackgroundPaletteNew;
149
+ }
150
+ });
139
151
  Object.defineProperty(exports, "textColorPalette", {
140
152
  enumerable: true,
141
153
  get: function get() {
@@ -169,8 +181,10 @@ var _utils = require("./ColorPalette/utils");
169
181
  var _getHighlightColorInNonActiveTheme = require("./ColorPalette/getHighlightColorInNonActiveTheme");
170
182
  var _getTextColorInNonActiveTheme = require("./ColorPalette/getTextColorInNonActiveTheme");
171
183
  var _cellBackgroundColorPalette = _interopRequireDefault(require("./ColorPalette/Palettes/cellBackgroundColorPalette"));
184
+ var _cellBackgroundColorPaletteNew = _interopRequireDefault(require("./ColorPalette/Palettes/cellBackgroundColorPaletteNew"));
172
185
  var _paletteMessages = _interopRequireDefault(require("./ColorPalette/Palettes/paletteMessages"));
173
186
  var _panelBackgroundPalette = require("./ColorPalette/Palettes/panelBackgroundPalette");
187
+ var _panelBackgroundPaletteNew = require("./ColorPalette/Palettes/panelBackgroundPaletteNew");
174
188
  var _textColorPalette = require("./ColorPalette/Palettes/textColorPalette");
175
189
  var _textColorPaletteNew = require("./ColorPalette/Palettes/textColorPaletteNew");
176
190
  var _highlightColorPalette = require("./ColorPalette/Palettes/highlightColorPalette");
@@ -448,6 +448,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
448
448
  ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
449
449
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
450
450
  ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
451
+ ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
451
452
  ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
452
453
  ACTION_SUBJECT_ID["COPY_LINK_TO_ANCHOR"] = "copyLinkToAnchor";
453
454
  ACTION_SUBJECT_ID["COPY_BLOCK"] = "copyBlock";
@@ -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.44.3";
17
+ const packageVersion = "116.46.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -14,7 +14,13 @@ export const BodiedSyncBlockSharedCssClassName = {
14
14
  prefix: bodiedPrefix,
15
15
  renderer: `${bodiedPrefix}__renderer`,
16
16
  content: `${bodiedPrefix}__content`,
17
- selectionInside: `${bodiedPrefix}__selection_inside`
17
+ selectionInside: `${bodiedPrefix}__selection_inside`,
18
+ // Applied by the node view when the block holds nothing but a single empty paragraph.
19
+ // Emptiness is derived from the ProseMirror document rather than the rendered DOM, because
20
+ // decorations (for example the selection marker's cursor widget) and ProseMirror's own
21
+ // separator/trailing-break hack nodes are injected as children of that paragraph and make
22
+ // DOM-shape heuristics unreliable. See EDITOR-8327.
23
+ empty: `${bodiedPrefix}__empty`
18
24
  };
19
25
 
20
26
  // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
@@ -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.44.3";
17
+ const packageVersion = "116.46.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -0,0 +1,21 @@
1
+ import { tableBackgroundBorderColor, tableBackgroundColorPaletteNew } from '@atlaskit/adf-schema/tableNodes';
2
+ import getColorMessage from './getColorMessage';
3
+ import paletteMessages from './paletteMessages';
4
+ /**
5
+ * Expanded 10-column (30-entry) UI palette that adds lime, orange, and magenta columns
6
+ * and updates the bold row to use `subtler.hovered` design tokens.
7
+ * This is a superset of the default {@link cellBackgroundColorPalette}.
8
+ */
9
+ const cellBackgroundColorPaletteNew = [];
10
+ tableBackgroundColorPaletteNew.forEach((label, color) => {
11
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
12
+ const key = label.toLowerCase().replace(' ', '-');
13
+ const message = getColorMessage(paletteMessages, key);
14
+ cellBackgroundColorPaletteNew.push({
15
+ value: color,
16
+ label,
17
+ border: tableBackgroundBorderColor,
18
+ message
19
+ });
20
+ });
21
+ export default cellBackgroundColorPaletteNew;
@@ -60,6 +60,11 @@ export const lightBackgroundPaletteTooltipMessages = defineMessages({
60
60
  defaultMessage: 'Bold yellow',
61
61
  description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold yellow color option.'
62
62
  },
63
+ '#EFDD4E': {
64
+ id: 'fabric.theme.bold-yellow-new',
65
+ defaultMessage: 'Bold yellow',
66
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold yellow color option.'
67
+ },
63
68
  '#FFEBE6': {
64
69
  id: 'fabric.theme.subtle-red',
65
70
  defaultMessage: 'Subtle red',
@@ -104,5 +109,50 @@ export const lightBackgroundPaletteTooltipMessages = defineMessages({
104
109
  id: 'fabric.theme.bold-gray',
105
110
  defaultMessage: 'Bold gray',
106
111
  description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold gray color option.'
112
+ },
113
+ '#EFFFD6': {
114
+ id: 'fabric.theme.subtle-lime',
115
+ defaultMessage: 'Subtle lime',
116
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle lime color option.'
117
+ },
118
+ '#D3F1A7': {
119
+ id: 'fabric.theme.lime',
120
+ defaultMessage: 'Lime',
121
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the lime color option.'
122
+ },
123
+ '#BDE97C': {
124
+ id: 'fabric.theme.bold-lime',
125
+ defaultMessage: 'Bold lime',
126
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold lime color option.'
127
+ },
128
+ '#FFF5DB': {
129
+ id: 'fabric.theme.subtle-orange',
130
+ defaultMessage: 'Subtle orange',
131
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle orange color option.'
132
+ },
133
+ '#FCE4A6': {
134
+ id: 'fabric.theme.orange',
135
+ defaultMessage: 'Orange',
136
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the orange color option.'
137
+ },
138
+ '#FBD779': {
139
+ id: 'fabric.theme.bold-orange',
140
+ defaultMessage: 'Bold orange',
141
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold orange color option.'
142
+ },
143
+ '#FFECF8': {
144
+ id: 'fabric.theme.subtle-magenta',
145
+ defaultMessage: 'Subtle magenta',
146
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle magenta color option.'
147
+ },
148
+ '#FDD0EC': {
149
+ id: 'fabric.theme.magenta',
150
+ defaultMessage: 'Magenta',
151
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the magenta color option.'
152
+ },
153
+ '#FCB6E1': {
154
+ id: 'fabric.theme.bold-magenta',
155
+ defaultMessage: 'Bold magenta',
156
+ description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold magenta color option.'
107
157
  }
108
158
  });
@@ -150,6 +150,66 @@ const _default_1 = defineMessages({
150
150
  defaultMessage: 'Bold gray',
151
151
  description: 'Tooltip label for the bold gray color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
152
152
  },
153
+ 'subtle-lime': {
154
+ id: 'fabric.theme.subtle-lime',
155
+ defaultMessage: 'Subtle lime',
156
+ description: 'Tooltip label for the subtle lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
157
+ },
158
+ 'bold-lime': {
159
+ id: 'fabric.theme.bold-lime',
160
+ defaultMessage: 'Bold lime',
161
+ description: 'Tooltip label for the bold lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
162
+ },
163
+ 'subtle-orange': {
164
+ id: 'fabric.theme.subtle-orange',
165
+ defaultMessage: 'Subtle orange',
166
+ description: 'Tooltip label for the subtle orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
167
+ },
168
+ 'bold-orange': {
169
+ id: 'fabric.theme.bold-orange',
170
+ defaultMessage: 'Bold orange',
171
+ description: 'Tooltip label for the bold orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
172
+ },
173
+ 'subtle-magenta': {
174
+ id: 'fabric.theme.subtle-magenta',
175
+ defaultMessage: 'Subtle magenta',
176
+ description: 'Tooltip label for the subtle magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
177
+ },
178
+ 'bold-magenta': {
179
+ id: 'fabric.theme.bold-magenta',
180
+ defaultMessage: 'Bold magenta',
181
+ description: 'Tooltip label for the bold magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
182
+ },
183
+ 'bold-blue': {
184
+ id: 'fabric.theme.bold-blue',
185
+ defaultMessage: 'Bold blue',
186
+ description: 'Tooltip label for the bold blue color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
187
+ },
188
+ 'bold-teal': {
189
+ id: 'fabric.theme.bold-teal',
190
+ defaultMessage: 'Bold teal',
191
+ description: 'Tooltip label for the bold teal color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
192
+ },
193
+ 'bold-green': {
194
+ id: 'fabric.theme.bold-green',
195
+ defaultMessage: 'Bold green',
196
+ description: 'Tooltip label for the bold green color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
197
+ },
198
+ 'bold-yellow': {
199
+ id: 'fabric.theme.bold-yellow',
200
+ defaultMessage: 'Bold yellow',
201
+ description: 'Tooltip label for the bold yellow color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
202
+ },
203
+ 'bold-red': {
204
+ id: 'fabric.theme.bold-red',
205
+ defaultMessage: 'Bold red',
206
+ description: 'Tooltip label for the bold red color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
207
+ },
208
+ 'bold-purple': {
209
+ id: 'fabric.theme.bold-purple',
210
+ defaultMessage: 'Bold purple',
211
+ description: 'Tooltip label for the bold purple color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
212
+ },
153
213
  // Colors only used in highlight palette
154
214
  'no-color': {
155
215
  id: 'fabric.theme.no-color',