@atlaskit/editor-common 72.7.3 → 72.8.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 (41) hide show
  1. package/.eslintrc.js +13 -0
  2. package/CHANGELOG.md +38 -0
  3. package/dist/cjs/card/index.js +20 -1
  4. package/dist/cjs/card/utils.js +54 -0
  5. package/dist/cjs/keymaps/index.js +5 -1
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/cjs/ui/MediaSingle/styled.js +4 -4
  8. package/dist/cjs/ui-color/ColorPalette/Palettes/index.js +6 -0
  9. package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +199 -1
  10. package/dist/cjs/ui-color/index.js +6 -0
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/card/index.js +1 -1
  13. package/dist/es2019/card/utils.js +47 -0
  14. package/dist/es2019/index.js +1 -1
  15. package/dist/es2019/keymaps/index.js +2 -0
  16. package/dist/es2019/ui/DropList/index.js +1 -1
  17. package/dist/es2019/ui/MediaSingle/styled.js +3 -0
  18. package/dist/es2019/ui-color/ColorPalette/Palettes/index.js +1 -1
  19. package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +198 -0
  20. package/dist/es2019/ui-color/index.js +1 -1
  21. package/dist/es2019/version.json +1 -1
  22. package/dist/esm/card/index.js +1 -1
  23. package/dist/esm/card/utils.js +45 -0
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/keymaps/index.js +2 -0
  26. package/dist/esm/ui/DropList/index.js +1 -1
  27. package/dist/esm/ui/MediaSingle/styled.js +4 -4
  28. package/dist/esm/ui-color/ColorPalette/Palettes/index.js +1 -1
  29. package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +196 -0
  30. package/dist/esm/ui-color/index.js +1 -1
  31. package/dist/esm/version.json +1 -1
  32. package/dist/types/analytics/types/smart-links.d.ts +1 -1
  33. package/dist/types/card/cardOptions.d.ts +2 -0
  34. package/dist/types/card/index.d.ts +1 -0
  35. package/dist/types/card/utils.d.ts +18 -0
  36. package/dist/types/keymaps/index.d.ts +2 -0
  37. package/dist/types/types/feature-flags.d.ts +7 -0
  38. package/dist/types/ui-color/ColorPalette/Palettes/index.d.ts +1 -1
  39. package/dist/types/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.d.ts +548 -0
  40. package/dist/types/ui-color/index.d.ts +1 -1
  41. package/package.json +7 -7
@@ -250,6 +250,204 @@ export const backgroundPaletteTooltipMessages = {
250
250
  light: lightBackgroundPaletteTooltipMessages,
251
251
  dark: darkBackgroundPaletteTooltipMessages
252
252
  };
253
+ export const lightChartsColorPaletteTooltipMessages = defineMessages({
254
+ // Blue color
255
+ '#7AB2FF': {
256
+ id: 'fabric.theme.subtle-blue',
257
+ defaultMessage: 'Subtle blue',
258
+ description: 'Name of a color'
259
+ },
260
+ '#247FFF': {
261
+ id: 'fabric.theme.blue',
262
+ defaultMessage: 'Blue',
263
+ description: 'Name of a color'
264
+ },
265
+ '#0055CC': {
266
+ id: 'fabric.theme.bold-blue',
267
+ defaultMessage: 'Bold blue',
268
+ description: 'Name of a color'
269
+ },
270
+ '#003884': {
271
+ id: 'fabric.theme.bolder-blue',
272
+ defaultMessage: 'Bolder blue',
273
+ description: 'Name of a color'
274
+ },
275
+ // Teal color
276
+ '#60C6D2': {
277
+ id: 'fabric.theme.subtle-teal',
278
+ defaultMessage: 'Subtle teal',
279
+ description: 'Name of a color'
280
+ },
281
+ '#1D9AAA': {
282
+ id: 'fabric.theme.teal',
283
+ defaultMessage: 'Teal',
284
+ description: 'Name of a color'
285
+ },
286
+ '#1D7F8C': {
287
+ id: 'fabric.theme.bold-teal',
288
+ defaultMessage: 'Bold teal',
289
+ description: 'Name of a color'
290
+ },
291
+ '#206B74': {
292
+ id: 'fabric.theme.bolder-teal',
293
+ defaultMessage: 'Bolder teal',
294
+ description: 'Name of a color'
295
+ },
296
+ // Green color
297
+ '#6BE1B0': {
298
+ id: 'fabric.theme.subtle-green',
299
+ defaultMessage: 'Subtle green',
300
+ description: 'Name of a color'
301
+ },
302
+ '#23A971': {
303
+ id: 'fabric.theme.green',
304
+ defaultMessage: 'Green',
305
+ description: 'Name of a color'
306
+ },
307
+ '#177D52': {
308
+ id: 'fabric.theme.bold-green',
309
+ defaultMessage: 'Bold green',
310
+ description: 'Name of a color'
311
+ },
312
+ '#055C3F': {
313
+ id: 'fabric.theme.bolder-green',
314
+ defaultMessage: 'Bolder green',
315
+ description: 'Name of a color'
316
+ },
317
+ // Yellow color
318
+ '#FFDB57': {
319
+ id: 'fabric.theme.subtle-yellow',
320
+ defaultMessage: 'Subtle yellow',
321
+ description: 'Name of a color'
322
+ },
323
+ '#FFBE33': {
324
+ id: 'fabric.theme.yellow',
325
+ defaultMessage: 'Yellow',
326
+ description: 'Name of a color'
327
+ },
328
+ '#FF9D00': {
329
+ id: 'fabric.theme.bold-yellow',
330
+ defaultMessage: 'Bold yellow',
331
+ description: 'Name of a color'
332
+ },
333
+ '#946104': {
334
+ id: 'fabric.theme.bolder-yellow',
335
+ defaultMessage: 'Bolder yellow',
336
+ description: 'Name of a color'
337
+ },
338
+ // Red color
339
+ '#FF8F73': {
340
+ id: 'fabric.theme.subtle-red',
341
+ defaultMessage: 'Subtle red',
342
+ description: 'Name of a color'
343
+ },
344
+ '#FC552C': {
345
+ id: 'fabric.theme.red',
346
+ defaultMessage: 'Red',
347
+ description: 'Name of a color.'
348
+ },
349
+ '#D32D03': {
350
+ id: 'fabric.theme.bold-red',
351
+ defaultMessage: 'Bold red',
352
+ description: 'Name of a color'
353
+ },
354
+ '#A32000': {
355
+ id: 'fabric.theme.bolder-red',
356
+ defaultMessage: 'Bolder red',
357
+ description: 'Name of a color'
358
+ },
359
+ // Orange color
360
+ '#FAA53D': {
361
+ id: 'fabric.theme.subtle-orange',
362
+ defaultMessage: 'Subtle orange',
363
+ description: 'Name of a color'
364
+ },
365
+ '#D97008': {
366
+ id: 'fabric.theme.orange',
367
+ defaultMessage: 'Orange',
368
+ description: 'Name of a color.'
369
+ },
370
+ '#B65C02': {
371
+ id: 'fabric.theme.bold-orange',
372
+ defaultMessage: 'Bold orange',
373
+ description: 'Name of a color'
374
+ },
375
+ '#974F0C': {
376
+ id: 'fabric.theme.bolder-orange',
377
+ defaultMessage: 'Bolder orange',
378
+ description: 'Name of a color'
379
+ },
380
+ // Magenta color
381
+ '#E774BB': {
382
+ id: 'fabric.theme.subtle-magenta',
383
+ defaultMessage: 'Subtle magenta',
384
+ description: 'Name of a color'
385
+ },
386
+ '#DA62AC': {
387
+ id: 'fabric.theme.magenta',
388
+ defaultMessage: 'Magenta',
389
+ description: 'Name of a color'
390
+ },
391
+ '#CD519D': {
392
+ id: 'fabric.theme.bold-magenta',
393
+ defaultMessage: 'Bold magenta',
394
+ description: 'Name of a color'
395
+ },
396
+ '#943D73': {
397
+ id: 'fabric.theme.bolder-magenta',
398
+ defaultMessage: 'Bolder magenta',
399
+ description: 'Name of a color'
400
+ },
401
+ // Purple color
402
+ '#B5A7FB': {
403
+ id: 'fabric.theme.subtle-purple',
404
+ defaultMessage: 'Subtle purple',
405
+ description: 'Name of a color'
406
+ },
407
+ '#8B77EE': {
408
+ id: 'fabric.theme.purple',
409
+ defaultMessage: 'Purple',
410
+ description: 'Name of a color'
411
+ },
412
+ '#5A43D0': {
413
+ id: 'fabric.theme.bold-purple',
414
+ defaultMessage: 'Bold purple',
415
+ description: 'Name of a color'
416
+ },
417
+ '#44368B': {
418
+ id: 'fabric.theme.bolder-purple',
419
+ defaultMessage: 'Bolder purple',
420
+ description: 'Name of a color'
421
+ },
422
+ // Gray color
423
+ '#8993A5': {
424
+ id: 'fabric.theme.subtle-gray',
425
+ defaultMessage: 'Subtle gray',
426
+ description: 'Name of a color'
427
+ },
428
+ '#8590A2': {
429
+ id: 'fabric.theme.gray',
430
+ defaultMessage: 'Gray',
431
+ description: 'Name of a color'
432
+ },
433
+ '#758195': {
434
+ id: 'fabric.theme.bold-gray',
435
+ defaultMessage: 'Bold gray',
436
+ description: 'Name of a color'
437
+ },
438
+ '#44546F': {
439
+ id: 'fabric.theme.bolder-gray',
440
+ defaultMessage: 'Bolder gray',
441
+ description: 'Name of a color'
442
+ }
443
+ });
444
+ const darkChartsColorPaletteTooltipMessages = {
445
+ ...lightChartsColorPaletteTooltipMessages
446
+ };
447
+ export const chartsColorPaletteTooltipMessages = {
448
+ light: lightChartsColorPaletteTooltipMessages,
449
+ dark: darkChartsColorPaletteTooltipMessages
450
+ };
253
451
  const lightBorderPaletteTooltipMessages = defineMessages({
254
452
  '#091E4224': {
255
453
  id: 'fabric.theme.subtle-gray',
@@ -6,6 +6,6 @@ export { default as colorPaletteMessages } from './ColorPalette/Palettes/palette
6
6
  export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
7
7
  export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
8
8
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
9
- export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
9
+ export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
10
10
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
11
11
  export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "72.7.3",
3
+ "version": "72.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1 @@
1
- export {};
1
+ export { addLinkMetadata, getLinkMetadataFromTransaction, commandWithMetadata } from './utils';
@@ -0,0 +1,45 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ import { LinkMetaStep } from '@atlaskit/adf-schema/steps';
5
+
6
+ /**
7
+ * Records metadata about the user action and input method relating to a transaction
8
+ * as a custom LinkStepMetadata prosemirror step so that it is preserved in
9
+ * the history for undo/redo
10
+ */
11
+ export function addLinkMetadata(initialSelection, tr, metadata) {
12
+ var storedMarks = tr.storedMarks;
13
+ var pos = tr.mapping.map(initialSelection.$from.pos);
14
+ tr.step(new LinkMetaStep(pos, metadata));
15
+
16
+ // When you add a new step all the storedMarks are removed it
17
+ if (storedMarks) {
18
+ tr.setStoredMarks(storedMarks);
19
+ }
20
+ return tr;
21
+ }
22
+ export function getLinkMetadataFromTransaction(tr) {
23
+ return tr.steps.reduce(function (metadata, step) {
24
+ if (!(step instanceof LinkMetaStep)) {
25
+ return metadata;
26
+ }
27
+ return _objectSpread(_objectSpread({}, metadata), step.getMetadata());
28
+ }, {});
29
+ }
30
+ /**
31
+ * Adds metadata to the transaction created from a command
32
+ * The metadata describes the user intent and input method
33
+ * for executing the command
34
+ */
35
+ export var commandWithMetadata = function commandWithMetadata(command, metadata) {
36
+ return function (state, dispatch, view) {
37
+ if (!dispatch) {
38
+ return command(state, dispatch, view);
39
+ }
40
+ return command(state, function (tr) {
41
+ addLinkMetadata(state.selection, tr, metadata);
42
+ dispatch(tr);
43
+ }, view);
44
+ };
45
+ };
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // DO NOT EMPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS
1
+ // DO NOT EMPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS.
2
2
  export {};
@@ -7,6 +7,8 @@ import { css, jsx } from '@emotion/react';
7
7
  import { N400 } from '@atlaskit/theme/colors';
8
8
  import { browser } from '../utils';
9
9
  export var addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
10
+ export var navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
11
+ export var navToFloatingToolbar = makeKeyMapWithCommon('Navigate to floating toolbar', 'Alt-F10');
10
12
  export var toggleBold = makeKeyMapWithCommon('Bold', 'Mod-b');
11
13
  export var toggleItalic = makeKeyMapWithCommon('Italic', 'Mod-i');
12
14
  export var toggleUnderline = makeKeyMapWithCommon('Underline', 'Mod-u');
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
18
18
  import { borderRadius, gridSize } from '@atlaskit/theme/constants';
19
19
  import Layer from '../Layer';
20
20
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "72.7.3";
21
+ var packageVersion = "72.8.0";
22
22
  var halfFocusRing = 1;
23
23
  var dropOffset = "0, ".concat(gridSize(), "px");
24
24
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  var _excluded = ["children"];
4
- var _templateObject, _templateObject2, _templateObject3;
4
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
5
5
  /** @jsx jsx */
6
6
  import React from 'react';
7
7
  import { css, jsx } from '@emotion/react';
@@ -109,16 +109,16 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
109
109
  layout = _ref.layout,
110
110
  pctWidth = _ref.pctWidth,
111
111
  width = _ref.width;
112
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] & {\n max-width: 100%;\n }\n\n width: ", ";\n max-width: ", ";\n float: ", ";\n margin: ", ";\n ", ";\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n"])), pctWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized), calcMaxWidth(layout, containerWidth), float(layout), calcMargin(layout), isImageAligned(layout));
112
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] & {\n max-width: 100%;\n }\n\n width: ", ";\n ", "\n max-width: ", ";\n float: ", ";\n margin: ", ";\n ", ";\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n"])), pctWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized), layout === 'full-width' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), calcMaxWidth(layout, containerWidth), float(layout), calcMargin(layout), isImageAligned(layout));
113
113
  };
114
114
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
115
115
  var hasFallbackContainer = _ref2.hasFallbackContainer,
116
116
  paddingBottom = _ref2.paddingBottom,
117
117
  height = _ref2.height;
118
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), hasFallbackContainer ? "\n &::after {\n content: '';\n display: block;\n ".concat(height ? "height: ".concat(height, "px;") : paddingBottom ? "padding-bottom: ".concat(paddingBottom, ";") : '', "\n\n /* Fixes extra padding problem in Firefox */\n font-size: 0;\n line-height: 0;\n }\n ") : '');
118
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), hasFallbackContainer ? "\n &::after {\n content: '';\n display: block;\n ".concat(height ? "height: ".concat(height, "px;") : paddingBottom ? "padding-bottom: ".concat(paddingBottom, ";") : '', "\n\n /* Fixes extra padding problem in Firefox */\n font-size: 0;\n line-height: 0;\n }\n ") : '');
119
119
  };
120
120
  export var mediaWrapperStyle = function mediaWrapperStyle(props) {
121
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n\n ", "\n\n /* Editor */\n & > figure {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n & > div {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n &[data-node-type='embedCard'] > div {\n width: 100%;\n }\n\n /* Renderer */\n [data-node-type='media'] {\n position: static !important;\n\n > div {\n position: absolute;\n height: 100%;\n }\n }\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
121
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n\n ", "\n\n /* Editor */\n & > figure {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n & > div {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n &[data-node-type='embedCard'] > div {\n width: 100%;\n }\n\n /* Renderer */\n [data-node-type='media'] {\n position: static !important;\n\n > div {\n position: absolute;\n height: 100%;\n }\n }\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
122
122
  };
123
123
  export var MediaWrapper = function MediaWrapper(_ref3) {
124
124
  var children = _ref3.children,
@@ -1,2 +1,2 @@
1
1
  export { DEFAULT_BORDER_COLOR } from './common';
2
- export { textPaletteTooltipMessages, backgroundPaletteTooltipMessages, borderPaletteTooltipMessages } from './paletteMessagesTokenModeNames';
2
+ export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './paletteMessagesTokenModeNames';
@@ -247,6 +247,202 @@ export var backgroundPaletteTooltipMessages = {
247
247
  light: lightBackgroundPaletteTooltipMessages,
248
248
  dark: darkBackgroundPaletteTooltipMessages
249
249
  };
250
+ export var lightChartsColorPaletteTooltipMessages = defineMessages({
251
+ // Blue color
252
+ '#7AB2FF': {
253
+ id: 'fabric.theme.subtle-blue',
254
+ defaultMessage: 'Subtle blue',
255
+ description: 'Name of a color'
256
+ },
257
+ '#247FFF': {
258
+ id: 'fabric.theme.blue',
259
+ defaultMessage: 'Blue',
260
+ description: 'Name of a color'
261
+ },
262
+ '#0055CC': {
263
+ id: 'fabric.theme.bold-blue',
264
+ defaultMessage: 'Bold blue',
265
+ description: 'Name of a color'
266
+ },
267
+ '#003884': {
268
+ id: 'fabric.theme.bolder-blue',
269
+ defaultMessage: 'Bolder blue',
270
+ description: 'Name of a color'
271
+ },
272
+ // Teal color
273
+ '#60C6D2': {
274
+ id: 'fabric.theme.subtle-teal',
275
+ defaultMessage: 'Subtle teal',
276
+ description: 'Name of a color'
277
+ },
278
+ '#1D9AAA': {
279
+ id: 'fabric.theme.teal',
280
+ defaultMessage: 'Teal',
281
+ description: 'Name of a color'
282
+ },
283
+ '#1D7F8C': {
284
+ id: 'fabric.theme.bold-teal',
285
+ defaultMessage: 'Bold teal',
286
+ description: 'Name of a color'
287
+ },
288
+ '#206B74': {
289
+ id: 'fabric.theme.bolder-teal',
290
+ defaultMessage: 'Bolder teal',
291
+ description: 'Name of a color'
292
+ },
293
+ // Green color
294
+ '#6BE1B0': {
295
+ id: 'fabric.theme.subtle-green',
296
+ defaultMessage: 'Subtle green',
297
+ description: 'Name of a color'
298
+ },
299
+ '#23A971': {
300
+ id: 'fabric.theme.green',
301
+ defaultMessage: 'Green',
302
+ description: 'Name of a color'
303
+ },
304
+ '#177D52': {
305
+ id: 'fabric.theme.bold-green',
306
+ defaultMessage: 'Bold green',
307
+ description: 'Name of a color'
308
+ },
309
+ '#055C3F': {
310
+ id: 'fabric.theme.bolder-green',
311
+ defaultMessage: 'Bolder green',
312
+ description: 'Name of a color'
313
+ },
314
+ // Yellow color
315
+ '#FFDB57': {
316
+ id: 'fabric.theme.subtle-yellow',
317
+ defaultMessage: 'Subtle yellow',
318
+ description: 'Name of a color'
319
+ },
320
+ '#FFBE33': {
321
+ id: 'fabric.theme.yellow',
322
+ defaultMessage: 'Yellow',
323
+ description: 'Name of a color'
324
+ },
325
+ '#FF9D00': {
326
+ id: 'fabric.theme.bold-yellow',
327
+ defaultMessage: 'Bold yellow',
328
+ description: 'Name of a color'
329
+ },
330
+ '#946104': {
331
+ id: 'fabric.theme.bolder-yellow',
332
+ defaultMessage: 'Bolder yellow',
333
+ description: 'Name of a color'
334
+ },
335
+ // Red color
336
+ '#FF8F73': {
337
+ id: 'fabric.theme.subtle-red',
338
+ defaultMessage: 'Subtle red',
339
+ description: 'Name of a color'
340
+ },
341
+ '#FC552C': {
342
+ id: 'fabric.theme.red',
343
+ defaultMessage: 'Red',
344
+ description: 'Name of a color.'
345
+ },
346
+ '#D32D03': {
347
+ id: 'fabric.theme.bold-red',
348
+ defaultMessage: 'Bold red',
349
+ description: 'Name of a color'
350
+ },
351
+ '#A32000': {
352
+ id: 'fabric.theme.bolder-red',
353
+ defaultMessage: 'Bolder red',
354
+ description: 'Name of a color'
355
+ },
356
+ // Orange color
357
+ '#FAA53D': {
358
+ id: 'fabric.theme.subtle-orange',
359
+ defaultMessage: 'Subtle orange',
360
+ description: 'Name of a color'
361
+ },
362
+ '#D97008': {
363
+ id: 'fabric.theme.orange',
364
+ defaultMessage: 'Orange',
365
+ description: 'Name of a color.'
366
+ },
367
+ '#B65C02': {
368
+ id: 'fabric.theme.bold-orange',
369
+ defaultMessage: 'Bold orange',
370
+ description: 'Name of a color'
371
+ },
372
+ '#974F0C': {
373
+ id: 'fabric.theme.bolder-orange',
374
+ defaultMessage: 'Bolder orange',
375
+ description: 'Name of a color'
376
+ },
377
+ // Magenta color
378
+ '#E774BB': {
379
+ id: 'fabric.theme.subtle-magenta',
380
+ defaultMessage: 'Subtle magenta',
381
+ description: 'Name of a color'
382
+ },
383
+ '#DA62AC': {
384
+ id: 'fabric.theme.magenta',
385
+ defaultMessage: 'Magenta',
386
+ description: 'Name of a color'
387
+ },
388
+ '#CD519D': {
389
+ id: 'fabric.theme.bold-magenta',
390
+ defaultMessage: 'Bold magenta',
391
+ description: 'Name of a color'
392
+ },
393
+ '#943D73': {
394
+ id: 'fabric.theme.bolder-magenta',
395
+ defaultMessage: 'Bolder magenta',
396
+ description: 'Name of a color'
397
+ },
398
+ // Purple color
399
+ '#B5A7FB': {
400
+ id: 'fabric.theme.subtle-purple',
401
+ defaultMessage: 'Subtle purple',
402
+ description: 'Name of a color'
403
+ },
404
+ '#8B77EE': {
405
+ id: 'fabric.theme.purple',
406
+ defaultMessage: 'Purple',
407
+ description: 'Name of a color'
408
+ },
409
+ '#5A43D0': {
410
+ id: 'fabric.theme.bold-purple',
411
+ defaultMessage: 'Bold purple',
412
+ description: 'Name of a color'
413
+ },
414
+ '#44368B': {
415
+ id: 'fabric.theme.bolder-purple',
416
+ defaultMessage: 'Bolder purple',
417
+ description: 'Name of a color'
418
+ },
419
+ // Gray color
420
+ '#8993A5': {
421
+ id: 'fabric.theme.subtle-gray',
422
+ defaultMessage: 'Subtle gray',
423
+ description: 'Name of a color'
424
+ },
425
+ '#8590A2': {
426
+ id: 'fabric.theme.gray',
427
+ defaultMessage: 'Gray',
428
+ description: 'Name of a color'
429
+ },
430
+ '#758195': {
431
+ id: 'fabric.theme.bold-gray',
432
+ defaultMessage: 'Bold gray',
433
+ description: 'Name of a color'
434
+ },
435
+ '#44546F': {
436
+ id: 'fabric.theme.bolder-gray',
437
+ defaultMessage: 'Bolder gray',
438
+ description: 'Name of a color'
439
+ }
440
+ });
441
+ var darkChartsColorPaletteTooltipMessages = _objectSpread({}, lightChartsColorPaletteTooltipMessages);
442
+ export var chartsColorPaletteTooltipMessages = {
443
+ light: lightChartsColorPaletteTooltipMessages,
444
+ dark: darkChartsColorPaletteTooltipMessages
445
+ };
250
446
  var lightBorderPaletteTooltipMessages = defineMessages({
251
447
  '#091E4224': {
252
448
  id: 'fabric.theme.subtle-gray',
@@ -6,6 +6,6 @@ export { default as colorPaletteMessages } from './ColorPalette/Palettes/palette
6
6
  export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
7
7
  export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
8
8
  export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
9
- export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
9
+ export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
10
10
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
11
11
  export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "72.7.3",
3
+ "version": "72.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -5,7 +5,7 @@ export declare const SmartLinkNodeContexts: {
5
5
  [P in SmartLinkNodeContext]: P;
6
6
  };
7
7
  export declare type InsertSmartLinkAEP = InsertAEP<ACTION_SUBJECT_ID.SMART_LINK, {
8
- inputMethod: INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING;
8
+ inputMethod: INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
9
9
  nodeType: 'inlineCard' | 'blockCard' | 'embedCard';
10
10
  nodeContext: SmartLinkNodeContext;
11
11
  fromCurrentDomain: boolean;
@@ -7,4 +7,6 @@ export interface CardOptions {
7
7
  allowResizing?: boolean;
8
8
  showServerActions?: boolean;
9
9
  useAlternativePreloader?: boolean;
10
+ allowAlignment?: boolean;
11
+ allowWrapping?: boolean;
10
12
  }
@@ -1 +1,2 @@
1
1
  export type { CardOptions } from './cardOptions';
2
+ export { addLinkMetadata, getLinkMetadataFromTransaction, commandWithMetadata, } from './utils';
@@ -0,0 +1,18 @@
1
+ import { EditorState, ReadonlyTransaction, Selection, Transaction } from 'prosemirror-state';
2
+ import { EditorView } from 'prosemirror-view';
3
+ import { LinkStepMetadata } from '@atlaskit/adf-schema/steps';
4
+ /**
5
+ * Records metadata about the user action and input method relating to a transaction
6
+ * as a custom LinkStepMetadata prosemirror step so that it is preserved in
7
+ * the history for undo/redo
8
+ */
9
+ export declare function addLinkMetadata(initialSelection: Selection, tr: Transaction, metadata: LinkStepMetadata): Transaction<any>;
10
+ export declare function getLinkMetadataFromTransaction(tr: Transaction | ReadonlyTransaction): LinkStepMetadata;
11
+ export declare type CommandDispatch = (tr: Transaction) => void;
12
+ export declare type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
13
+ /**
14
+ * Adds metadata to the transaction created from a command
15
+ * The metadata describes the user intent and input method
16
+ * for executing the command
17
+ */
18
+ export declare const commandWithMetadata: (command: Command, metadata: LinkStepMetadata) => Command;
@@ -3,6 +3,8 @@ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { Command } from '../types/command';
5
5
  export declare const addAltText: Keymap;
6
+ export declare const navToEditorToolbar: Keymap;
7
+ export declare const navToFloatingToolbar: Keymap;
6
8
  export declare const toggleBold: Keymap;
7
9
  export declare const toggleItalic: Keymap;
8
10
  export declare const toggleUnderline: Keymap;
@@ -319,6 +319,13 @@ export declare type FeatureFlags = {
319
319
  * @default false
320
320
  */
321
321
  lpLinkPickerFocusTrap?: boolean;
322
+ /**
323
+ * @description
324
+ * Enables linking platform event tracking using @atlaskit/link-analytics
325
+ *
326
+ * @default false
327
+ */
328
+ lpAnalyticsEventsNext?: boolean;
322
329
  /**
323
330
  * @description
324
331
  * Show link settings button in the Floating toolbar
@@ -1,3 +1,3 @@
1
1
  export type { PaletteColor } from './type';
2
2
  export { DEFAULT_BORDER_COLOR } from './common';
3
- export { textPaletteTooltipMessages, backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, } from './paletteMessagesTokenModeNames';
3
+ export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './paletteMessagesTokenModeNames';