@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
@@ -0,0 +1,95 @@
1
+ // new palette for platform_editor_lovability_text_bg_color experiment
2
+ export const panelBackgroundPaletteNew = [{
3
+ label: 'White',
4
+ value: '#FFFFFF'
5
+ }, {
6
+ label: 'Subtle blue',
7
+ value: '#DEEBFF'
8
+ }, {
9
+ label: 'Subtle teal',
10
+ value: '#E6FCFF'
11
+ }, {
12
+ label: 'Subtle green',
13
+ value: '#E3FCEF'
14
+ }, {
15
+ label: 'Subtle lime',
16
+ value: '#EFFFD6'
17
+ }, {
18
+ label: 'Subtle yellow',
19
+ value: '#FFFAE6'
20
+ }, {
21
+ label: 'Subtle orange',
22
+ value: '#FFF5DB'
23
+ }, {
24
+ label: 'Subtle red',
25
+ value: '#FFEBE6'
26
+ }, {
27
+ label: 'Subtle magenta',
28
+ value: '#FFECF8'
29
+ }, {
30
+ label: 'Subtle purple',
31
+ value: '#EAE6FF'
32
+ }, {
33
+ label: 'Gray',
34
+ value: '#F4F5F7'
35
+ }, {
36
+ label: 'Blue',
37
+ value: '#B3D4FF'
38
+ }, {
39
+ label: 'Teal',
40
+ value: '#B3F5FF'
41
+ }, {
42
+ label: 'Green',
43
+ value: '#ABF5D1'
44
+ }, {
45
+ label: 'Lime',
46
+ value: '#D3F1A7'
47
+ }, {
48
+ label: 'Yellow',
49
+ value: '#FFF0B3'
50
+ }, {
51
+ label: 'Orange',
52
+ value: '#FCE4A6'
53
+ }, {
54
+ label: 'Red',
55
+ value: '#FFBDAD'
56
+ }, {
57
+ label: 'Magenta',
58
+ value: '#FDD0EC'
59
+ }, {
60
+ label: 'Purple',
61
+ value: '#C0B6F2'
62
+ }, {
63
+ label: 'Bold gray',
64
+ value: '#B7B9BE'
65
+ }, {
66
+ label: 'Bold blue',
67
+ value: '#ADCBFB'
68
+ }, {
69
+ label: 'Bold teal',
70
+ value: '#B1E4F7'
71
+ }, {
72
+ label: 'Bold green',
73
+ value: '#97EDC9'
74
+ }, {
75
+ label: 'Bold lime',
76
+ value: '#BDE97C'
77
+ }, {
78
+ label: 'Bold yellow',
79
+ value: '#EFDD4E'
80
+ }, {
81
+ label: 'Bold orange',
82
+ value: '#FBD779'
83
+ }, {
84
+ label: 'Bold red',
85
+ value: '#FFB8B2'
86
+ }, {
87
+ label: 'Bold magenta',
88
+ value: '#FCB6E1'
89
+ }, {
90
+ label: 'Bold purple',
91
+ value: '#E3BDFA'
92
+ }].map(color => ({
93
+ ...color,
94
+ border: "var(--ds-border, #0B120E24)"
95
+ }));
@@ -10,8 +10,10 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
10
10
  export { getHighlightColorInNonActiveTheme } from './ColorPalette/getHighlightColorInNonActiveTheme';
11
11
  export { getTextColorInNonActiveTheme } from './ColorPalette/getTextColorInNonActiveTheme';
12
12
  export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
13
+ export { default as cellBackgroundColorPaletteNew } from './ColorPalette/Palettes/cellBackgroundColorPaletteNew';
13
14
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
14
15
  export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
16
+ export { panelBackgroundPaletteNew } from './ColorPalette/Palettes/panelBackgroundPaletteNew';
15
17
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
16
18
  export { textColorPaletteNew } from './ColorPalette/Palettes/textColorPaletteNew';
17
19
  export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
@@ -448,6 +448,7 @@ export var 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";
@@ -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.44.3";
23
+ var packageVersion = "116.46.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -14,7 +14,13 @@ export var BodiedSyncBlockSharedCssClassName = {
14
14
  prefix: bodiedPrefix,
15
15
  renderer: "".concat(bodiedPrefix, "__renderer"),
16
16
  content: "".concat(bodiedPrefix, "__content"),
17
- selectionInside: "".concat(bodiedPrefix, "__selection_inside")
17
+ selectionInside: "".concat(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: "".concat(bodiedPrefix, "__empty")
18
24
  };
19
25
 
20
26
  // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
@@ -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.44.3";
24
+ var packageVersion = "116.46.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var 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
+ var cellBackgroundColorPaletteNew = [];
10
+ tableBackgroundColorPaletteNew.forEach(function (label, color) {
11
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
12
+ var key = label.toLowerCase().replace(' ', '-');
13
+ var message = getColorMessage(paletteMessages, key);
14
+ cellBackgroundColorPaletteNew.push({
15
+ value: color,
16
+ label: label,
17
+ border: tableBackgroundBorderColor,
18
+ message: message
19
+ });
20
+ });
21
+ export default cellBackgroundColorPaletteNew;
@@ -60,6 +60,11 @@ export var 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 var 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 @@ var _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',
@@ -0,0 +1,99 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ 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; }
3
+ 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) { _defineProperty(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; }
4
+ // new palette for platform_editor_lovability_text_bg_color experiment
5
+ export var panelBackgroundPaletteNew = [{
6
+ label: 'White',
7
+ value: '#FFFFFF'
8
+ }, {
9
+ label: 'Subtle blue',
10
+ value: '#DEEBFF'
11
+ }, {
12
+ label: 'Subtle teal',
13
+ value: '#E6FCFF'
14
+ }, {
15
+ label: 'Subtle green',
16
+ value: '#E3FCEF'
17
+ }, {
18
+ label: 'Subtle lime',
19
+ value: '#EFFFD6'
20
+ }, {
21
+ label: 'Subtle yellow',
22
+ value: '#FFFAE6'
23
+ }, {
24
+ label: 'Subtle orange',
25
+ value: '#FFF5DB'
26
+ }, {
27
+ label: 'Subtle red',
28
+ value: '#FFEBE6'
29
+ }, {
30
+ label: 'Subtle magenta',
31
+ value: '#FFECF8'
32
+ }, {
33
+ label: 'Subtle purple',
34
+ value: '#EAE6FF'
35
+ }, {
36
+ label: 'Gray',
37
+ value: '#F4F5F7'
38
+ }, {
39
+ label: 'Blue',
40
+ value: '#B3D4FF'
41
+ }, {
42
+ label: 'Teal',
43
+ value: '#B3F5FF'
44
+ }, {
45
+ label: 'Green',
46
+ value: '#ABF5D1'
47
+ }, {
48
+ label: 'Lime',
49
+ value: '#D3F1A7'
50
+ }, {
51
+ label: 'Yellow',
52
+ value: '#FFF0B3'
53
+ }, {
54
+ label: 'Orange',
55
+ value: '#FCE4A6'
56
+ }, {
57
+ label: 'Red',
58
+ value: '#FFBDAD'
59
+ }, {
60
+ label: 'Magenta',
61
+ value: '#FDD0EC'
62
+ }, {
63
+ label: 'Purple',
64
+ value: '#C0B6F2'
65
+ }, {
66
+ label: 'Bold gray',
67
+ value: '#B7B9BE'
68
+ }, {
69
+ label: 'Bold blue',
70
+ value: '#ADCBFB'
71
+ }, {
72
+ label: 'Bold teal',
73
+ value: '#B1E4F7'
74
+ }, {
75
+ label: 'Bold green',
76
+ value: '#97EDC9'
77
+ }, {
78
+ label: 'Bold lime',
79
+ value: '#BDE97C'
80
+ }, {
81
+ label: 'Bold yellow',
82
+ value: '#EFDD4E'
83
+ }, {
84
+ label: 'Bold orange',
85
+ value: '#FBD779'
86
+ }, {
87
+ label: 'Bold red',
88
+ value: '#FFB8B2'
89
+ }, {
90
+ label: 'Bold magenta',
91
+ value: '#FCB6E1'
92
+ }, {
93
+ label: 'Bold purple',
94
+ value: '#E3BDFA'
95
+ }].map(function (color) {
96
+ return _objectSpread(_objectSpread({}, color), {}, {
97
+ border: "var(--ds-border, #0B120E24)"
98
+ });
99
+ });
@@ -10,8 +10,10 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
10
10
  export { getHighlightColorInNonActiveTheme } from './ColorPalette/getHighlightColorInNonActiveTheme';
11
11
  export { getTextColorInNonActiveTheme } from './ColorPalette/getTextColorInNonActiveTheme';
12
12
  export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
13
+ export { default as cellBackgroundColorPaletteNew } from './ColorPalette/Palettes/cellBackgroundColorPaletteNew';
13
14
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
14
15
  export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
16
+ export { panelBackgroundPaletteNew } from './ColorPalette/Palettes/panelBackgroundPaletteNew';
15
17
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
16
18
  export { textColorPaletteNew } from './ColorPalette/Palettes/textColorPaletteNew';
17
19
  export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
@@ -16,6 +16,12 @@ type ConversationErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUG
16
16
  reason: AiSuggestionsConversationErrorReason;
17
17
  statusCode?: number;
18
18
  }>;
19
+ type RegenerateSuggestionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_REGENERATION_ERROR, {
20
+ currentNodeCount: number;
21
+ errorCode?: string;
22
+ staleSuggestionCount: number;
23
+ statusCode?: number;
24
+ }>;
19
25
  type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
20
26
  entryPoint: AiSuggestionsEntryPoint;
21
27
  }, undefined>;
@@ -48,5 +54,5 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
48
54
  suggestionCardCharacterCount: number;
49
55
  suggestionType: string;
50
56
  }, undefined>;
51
- export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP;
57
+ export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | RegenerateSuggestionsErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP;
52
58
  export {};
@@ -422,6 +422,7 @@ export declare enum ACTION_SUBJECT_ID {
422
422
  CODEBLOCK_COPY = "codeBlockCopy",
423
423
  CODEBLOCK_WRAP = "codeBlockWrap",
424
424
  CONVERSATION_ERROR = "conversationError",
425
+ SUGGESTIONS_REGENERATION_ERROR = "suggestionsRegenerationError",
425
426
  COPY_BUTTON = "copyButton",
426
427
  COPY_LINK_TO_ANCHOR = "copyLinkToAnchor",
427
428
  COPY_BLOCK = "copyBlock",
@@ -1,14 +1,15 @@
1
1
  export declare const SyncBlockSharedCssClassName: {
2
- prefix: string;
3
- renderer: string;
4
2
  error: string;
5
3
  loading: string;
4
+ prefix: string;
5
+ renderer: string;
6
6
  };
7
7
  export declare const SyncBlockRendererDataAttributeName = "data-sync-block-renderer";
8
8
  export declare const BodiedSyncBlockSharedCssClassName: {
9
+ content: string;
10
+ empty: string;
9
11
  prefix: string;
10
12
  renderer: string;
11
- content: string;
12
13
  selectionInside: string;
13
14
  };
14
15
  export declare const SyncBlockLabelSharedCssClassName: {
@@ -19,8 +20,8 @@ export declare const viewModeClassName = "view-mode";
19
20
  export declare const creationLoadingClassName = "creation-loading";
20
21
  export declare const draggingClassName = "user-is-dragging";
21
22
  export declare const SyncBlockStateCssClassName: {
22
- disabledClassName: string;
23
- viewModeClassName: string;
24
23
  creationLoadingClassName: string;
24
+ disabledClassName: string;
25
25
  draggingClassName: string;
26
+ viewModeClassName: string;
26
27
  };
@@ -251,6 +251,7 @@ export type FloatingToolbarListPicker<T extends Object> = FloatingToolbarSelectB
251
251
  selectType: 'list';
252
252
  };
253
253
  export type FloatingToolbarColorPicker<T extends Object> = FloatingToolbarSelectBase<T, PaletteColor> & {
254
+ cols?: number;
254
255
  selectType: 'color';
255
256
  };
256
257
  export type FloatingToolbarEmojiPicker<T extends Object> = FloatingToolbarSelectBase<T, EmojiId> & {
@@ -0,0 +1,8 @@
1
+ import type { PaletteColor } from './type';
2
+ /**
3
+ * Expanded 10-column (30-entry) UI palette that adds lime, orange, and magenta columns
4
+ * and updates the bold row to use `subtler.hovered` design tokens.
5
+ * This is a superset of the default {@link cellBackgroundColorPalette}.
6
+ */
7
+ declare const cellBackgroundColorPaletteNew: Array<PaletteColor>;
8
+ export default cellBackgroundColorPaletteNew;