@atlaskit/editor-common 76.27.4 → 76.27.6

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 (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/analytics/types/enums.js +3 -0
  3. package/dist/cjs/i18n/es.js +2 -0
  4. package/dist/cjs/i18n/ja.js +1 -0
  5. package/dist/cjs/i18n/tr.js +2 -0
  6. package/dist/cjs/keymaps/index.js +19 -1
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/styles/shared/table.js +2 -2
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/analytics/types/enums.js +3 -0
  11. package/dist/es2019/i18n/es.js +2 -0
  12. package/dist/es2019/i18n/ja.js +1 -0
  13. package/dist/es2019/i18n/tr.js +2 -0
  14. package/dist/es2019/keymaps/index.js +16 -0
  15. package/dist/es2019/monitoring/error.js +1 -1
  16. package/dist/es2019/styles/shared/table.js +2 -2
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/analytics/types/enums.js +3 -0
  19. package/dist/esm/i18n/es.js +2 -0
  20. package/dist/esm/i18n/ja.js +1 -0
  21. package/dist/esm/i18n/tr.js +2 -0
  22. package/dist/esm/keymaps/index.js +16 -0
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/styles/shared/table.js +2 -2
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/analytics/types/enums.d.ts +4 -1
  27. package/dist/types/analytics/types/events.d.ts +1 -1
  28. package/dist/types/i18n/es.d.ts +2 -0
  29. package/dist/types/i18n/ja.d.ts +1 -0
  30. package/dist/types/i18n/tr.d.ts +2 -0
  31. package/dist/types/keymaps/index.d.ts +6 -0
  32. package/dist/types-ts4.5/analytics/types/enums.d.ts +4 -1
  33. package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
  34. package/dist/types-ts4.5/i18n/es.d.ts +2 -0
  35. package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
  36. package/dist/types-ts4.5/i18n/tr.d.ts +2 -0
  37. package/dist/types-ts4.5/keymaps/index.d.ts +6 -0
  38. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.27.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58893](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58893) [`ed82b25d516b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed82b25d516b) - [ux] [ECA11Y-110] Selecting table columns and rows via shortcuts
8
+
9
+ ## 76.27.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#61112](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61112) [`283d290a41e5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/283d290a41e5) - ED-21499: analytics event added for remove child operation in MBE
14
+ - [#62117](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62117) [`f2c6b2f4cca8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2c6b2f4cca8) - Update table header cell color token to match user cell background colour picker
15
+
3
16
  ## 76.27.4
4
17
 
5
18
  ### Patch Changes
@@ -137,6 +137,9 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
137
137
  ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
138
138
  ACTION["ADD_CHILD"] = "addChild";
139
139
  ACTION["CHANGE_ACTIVE"] = "changeActive";
140
+ ACTION["REMOVE_CHILD"] = "removeChild";
141
+ ACTION["UPDATE_PARAMETERS"] = "updateParameters";
142
+ ACTION["GET_CHILDERN"] = "getChildern";
140
143
  return ACTION;
141
144
  }({});
142
145
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -187,6 +187,8 @@ var _default = exports.default = {
187
187
  'fabric.editor.pageActionsLabel': 'Acciones de la página',
188
188
  'fabric.editor.placeholderText': 'Texto de marcador de posición',
189
189
  'fabric.editor.placeholderText.description': 'Insertar un marcador de posición de texto en la página',
190
+ 'fabric.editor.recordVideo': 'Grabar vídeo',
191
+ 'fabric.editor.recordVideo.description': 'Grabar vídeo con Loom',
190
192
  'fabric.editor.redo': 'Rehacer',
191
193
  'fabric.editor.remove': 'Eliminar',
192
194
  'fabric.editor.removeColumns': '{0, plural, one {Eliminar columna} other {Eliminar columnas}}',
@@ -217,6 +217,7 @@ var _default = exports.default = {
217
217
  'fabric.editor.table': '表',
218
218
  'fabric.editor.table.description': '表を挿入',
219
219
  'fabric.editor.tableOptions': '表のオプション',
220
+ 'fabric.editor.tableResizeScreenReaderInformation': '{newWidth, plural, other {テーブル幅が {newWidth,number} ピクセルに縮小しました。}}',
220
221
  'fabric.editor.tables.adjustColumn': '列を調整する',
221
222
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': '{nodeName} を削除すると、接続されているすべてが破棄されます。',
222
223
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '削除',
@@ -187,6 +187,8 @@ var _default = exports.default = {
187
187
  'fabric.editor.pageActionsLabel': 'Sayfa işlemleri',
188
188
  'fabric.editor.placeholderText': 'Yer tutucu metin',
189
189
  'fabric.editor.placeholderText.description': 'Sayfaya metin yer tutucusu ekle',
190
+ 'fabric.editor.recordVideo': 'Video kaydet',
191
+ 'fabric.editor.recordVideo.description': 'Loom kullanarak video kaydedin',
190
192
  'fabric.editor.redo': 'Yinele',
191
193
  'fabric.editor.remove': 'Kaldır',
192
194
  'fabric.editor.removeColumns': '{0, plural, one {Sütunu sil} other {Sütunları sil}}',
@@ -79,6 +79,7 @@ Object.defineProperty(exports, "UP", {
79
79
  }
80
80
  });
81
81
  exports.backspace = exports.altPaste = exports.alignLeft = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = void 0;
82
+ exports.bindKeymapArrayWithCommand = bindKeymapArrayWithCommand;
82
83
  exports.bindKeymapWithCommand = bindKeymapWithCommand;
83
84
  exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
84
85
  exports.find = exports.escape = exports.enter = exports.deleteKey = exports.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
@@ -96,9 +97,10 @@ Object.defineProperty(exports, "keymap", {
96
97
  return _keymap.keymap;
97
98
  }
98
99
  });
100
+ exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
99
101
  exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
100
102
  exports.makeKeymap = makeKeymap;
101
- exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
103
+ exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectRow = exports.selectColumn = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
102
104
  exports.tooltip = tooltip;
103
105
  exports.undo = void 0;
104
106
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
@@ -182,6 +184,8 @@ var altPaste = exports.altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
182
184
  var find = exports.find = makeKeyMapWithCommon('Find', 'Mod-f');
183
185
  var alignLeft = exports.alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
184
186
  var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
187
+ var selectRow = exports.selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
188
+ var selectColumn = exports.selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
185
189
  var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
186
190
  var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
187
191
  var arrowKeysMap = {
@@ -296,6 +300,13 @@ function makeKeyMapWithCommon(description, common) {
296
300
  var mac = common.replace(/Mod/i, 'Cmd');
297
301
  return makeKeymap(description, windows, mac, common);
298
302
  }
303
+ function makeKeyMapArrayWithCommon(description, shortcuts) {
304
+ var keymapArray = [];
305
+ shortcuts.forEach(function (shortcut) {
306
+ keymapArray.push(makeKeyMapWithCommon(description, shortcut));
307
+ });
308
+ return keymapArray;
309
+ }
299
310
  function combineWithOldCommand(cmd, oldCmd) {
300
311
  return function (state, dispatch, editorView) {
301
312
  return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
@@ -305,6 +316,13 @@ function bindKeymapWithCommand(shortcut, cmd, keymap) {
305
316
  var oldCmd = keymap[shortcut];
306
317
  keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
307
318
  }
319
+
320
+ // If there is a need to use the same command with several shortcuts
321
+ function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
322
+ shortcutsArray.forEach(function (shortcut) {
323
+ return bindKeymapWithCommand(shortcut.common, cmd, keymap);
324
+ });
325
+ }
308
326
  function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
309
327
  bindKeymapWithCommand(shortcut, (0, _editorCommands.editorCommandToPMCommand)(cmd), keymap);
310
328
  }
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "76.27.4";
19
+ var packageVersion = "76.27.6";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -56,8 +56,8 @@ var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle(prop
56
56
  })(props), tableCellPadding, _browser.default.gecko || _browser.default.ie || _browser.default.mac && _browser.default.chrome ? 'background-clip: padding-box;' : '', (0, _components.themed)({
57
57
  dark: _editorSharedStyles.getTableCellBackgroundDarkModeColors
58
58
  })(props), (0, _components.themed)({
59
- light: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
60
- dark: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
59
+ light: "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
60
+ dark: "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
61
61
  })(props), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, (0, _components.themed)({
62
62
  light: "var(--ds-surface-raised, rgb(235, 237, 240))",
63
63
  dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "76.27.4";
27
+ var packageVersion = "76.27.6";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -131,6 +131,9 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
131
131
  ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
132
132
  ACTION["ADD_CHILD"] = "addChild";
133
133
  ACTION["CHANGE_ACTIVE"] = "changeActive";
134
+ ACTION["REMOVE_CHILD"] = "removeChild";
135
+ ACTION["UPDATE_PARAMETERS"] = "updateParameters";
136
+ ACTION["GET_CHILDERN"] = "getChildern";
134
137
  return ACTION;
135
138
  }({});
136
139
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -181,6 +181,8 @@ export default {
181
181
  'fabric.editor.pageActionsLabel': 'Acciones de la página',
182
182
  'fabric.editor.placeholderText': 'Texto de marcador de posición',
183
183
  'fabric.editor.placeholderText.description': 'Insertar un marcador de posición de texto en la página',
184
+ 'fabric.editor.recordVideo': 'Grabar vídeo',
185
+ 'fabric.editor.recordVideo.description': 'Grabar vídeo con Loom',
184
186
  'fabric.editor.redo': 'Rehacer',
185
187
  'fabric.editor.remove': 'Eliminar',
186
188
  'fabric.editor.removeColumns': '{0, plural, one {Eliminar columna} other {Eliminar columnas}}',
@@ -211,6 +211,7 @@ export default {
211
211
  'fabric.editor.table': '表',
212
212
  'fabric.editor.table.description': '表を挿入',
213
213
  'fabric.editor.tableOptions': '表のオプション',
214
+ 'fabric.editor.tableResizeScreenReaderInformation': '{newWidth, plural, other {テーブル幅が {newWidth,number} ピクセルに縮小しました。}}',
214
215
  'fabric.editor.tables.adjustColumn': '列を調整する',
215
216
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': '{nodeName} を削除すると、接続されているすべてが破棄されます。',
216
217
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '削除',
@@ -181,6 +181,8 @@ export default {
181
181
  'fabric.editor.pageActionsLabel': 'Sayfa işlemleri',
182
182
  'fabric.editor.placeholderText': 'Yer tutucu metin',
183
183
  'fabric.editor.placeholderText.description': 'Sayfaya metin yer tutucusu ekle',
184
+ 'fabric.editor.recordVideo': 'Video kaydet',
185
+ 'fabric.editor.recordVideo.description': 'Loom kullanarak video kaydedin',
184
186
  'fabric.editor.redo': 'Yinele',
185
187
  'fabric.editor.remove': 'Kaldır',
186
188
  'fabric.editor.removeColumns': '{0, plural, one {Sütunu sil} other {Sütunları sil}}',
@@ -72,6 +72,8 @@ export const altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
72
72
  export const find = makeKeyMapWithCommon('Find', 'Mod-f');
73
73
  export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
74
74
  export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
75
+ export const selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
76
+ export const selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
75
77
  export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
76
78
  export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
77
79
  const arrowKeysMap = {
@@ -193,6 +195,13 @@ export function makeKeyMapWithCommon(description, common) {
193
195
  const mac = common.replace(/Mod/i, 'Cmd');
194
196
  return makeKeymap(description, windows, mac, common);
195
197
  }
198
+ export function makeKeyMapArrayWithCommon(description, shortcuts) {
199
+ const keymapArray = [];
200
+ shortcuts.forEach(shortcut => {
201
+ keymapArray.push(makeKeyMapWithCommon(description, shortcut));
202
+ });
203
+ return keymapArray;
204
+ }
196
205
  function combineWithOldCommand(cmd, oldCmd) {
197
206
  return (state, dispatch, editorView) => {
198
207
  return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
@@ -202,6 +211,13 @@ export function bindKeymapWithCommand(shortcut, cmd, keymap) {
202
211
  const oldCmd = keymap[shortcut];
203
212
  keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
204
213
  }
214
+
215
+ // If there is a need to use the same command with several shortcuts
216
+ export function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
217
+ shortcutsArray.forEach(shortcut => {
218
+ return bindKeymapWithCommand(shortcut.common, cmd, keymap);
219
+ });
220
+ }
205
221
  export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
206
222
  bindKeymapWithCommand(shortcut, editorCommandToPMCommand(cmd), keymap);
207
223
  }
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "76.27.4";
3
+ const packageVersion = "76.27.6";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -148,8 +148,8 @@ const tableSharedStyle = props => css`
148
148
  }
149
149
  th {
150
150
  background-color: ${themed({
151
- light: `var(--ds-background-neutral, ${akEditorTableToolbar})`,
152
- dark: `var(--ds-background-neutral, ${akEditorTableToolbarDark})`
151
+ light: `var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`,
152
+ dark: `var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbarDark})`
153
153
  })(props)};
154
154
  text-align: left;
155
155
 
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.27.4";
12
+ const packageVersion = "76.27.6";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -131,6 +131,9 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
131
131
  ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
132
132
  ACTION["ADD_CHILD"] = "addChild";
133
133
  ACTION["CHANGE_ACTIVE"] = "changeActive";
134
+ ACTION["REMOVE_CHILD"] = "removeChild";
135
+ ACTION["UPDATE_PARAMETERS"] = "updateParameters";
136
+ ACTION["GET_CHILDERN"] = "getChildern";
134
137
  return ACTION;
135
138
  }({});
136
139
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -181,6 +181,8 @@ export default {
181
181
  'fabric.editor.pageActionsLabel': 'Acciones de la página',
182
182
  'fabric.editor.placeholderText': 'Texto de marcador de posición',
183
183
  'fabric.editor.placeholderText.description': 'Insertar un marcador de posición de texto en la página',
184
+ 'fabric.editor.recordVideo': 'Grabar vídeo',
185
+ 'fabric.editor.recordVideo.description': 'Grabar vídeo con Loom',
184
186
  'fabric.editor.redo': 'Rehacer',
185
187
  'fabric.editor.remove': 'Eliminar',
186
188
  'fabric.editor.removeColumns': '{0, plural, one {Eliminar columna} other {Eliminar columnas}}',
@@ -211,6 +211,7 @@ export default {
211
211
  'fabric.editor.table': '表',
212
212
  'fabric.editor.table.description': '表を挿入',
213
213
  'fabric.editor.tableOptions': '表のオプション',
214
+ 'fabric.editor.tableResizeScreenReaderInformation': '{newWidth, plural, other {テーブル幅が {newWidth,number} ピクセルに縮小しました。}}',
214
215
  'fabric.editor.tables.adjustColumn': '列を調整する',
215
216
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': '{nodeName} を削除すると、接続されているすべてが破棄されます。',
216
217
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '削除',
@@ -181,6 +181,8 @@ export default {
181
181
  'fabric.editor.pageActionsLabel': 'Sayfa işlemleri',
182
182
  'fabric.editor.placeholderText': 'Yer tutucu metin',
183
183
  'fabric.editor.placeholderText.description': 'Sayfaya metin yer tutucusu ekle',
184
+ 'fabric.editor.recordVideo': 'Video kaydet',
185
+ 'fabric.editor.recordVideo.description': 'Loom kullanarak video kaydedin',
184
186
  'fabric.editor.redo': 'Yinele',
185
187
  'fabric.editor.remove': 'Kaldır',
186
188
  'fabric.editor.removeColumns': '{0, plural, one {Sütunu sil} other {Sütunları sil}}',
@@ -75,6 +75,8 @@ export var altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
75
75
  export var find = makeKeyMapWithCommon('Find', 'Mod-f');
76
76
  export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
77
77
  export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
78
+ export var selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
79
+ export var selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
78
80
  export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
79
81
  export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
80
82
  var arrowKeysMap = {
@@ -189,6 +191,13 @@ export function makeKeyMapWithCommon(description, common) {
189
191
  var mac = common.replace(/Mod/i, 'Cmd');
190
192
  return makeKeymap(description, windows, mac, common);
191
193
  }
194
+ export function makeKeyMapArrayWithCommon(description, shortcuts) {
195
+ var keymapArray = [];
196
+ shortcuts.forEach(function (shortcut) {
197
+ keymapArray.push(makeKeyMapWithCommon(description, shortcut));
198
+ });
199
+ return keymapArray;
200
+ }
192
201
  function combineWithOldCommand(cmd, oldCmd) {
193
202
  return function (state, dispatch, editorView) {
194
203
  return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
@@ -198,6 +207,13 @@ export function bindKeymapWithCommand(shortcut, cmd, keymap) {
198
207
  var oldCmd = keymap[shortcut];
199
208
  keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
200
209
  }
210
+
211
+ // If there is a need to use the same command with several shortcuts
212
+ export function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
213
+ shortcutsArray.forEach(function (shortcut) {
214
+ return bindKeymapWithCommand(shortcut.common, cmd, keymap);
215
+ });
216
+ }
201
217
  export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
202
218
  bindKeymapWithCommand(shortcut, editorCommandToPMCommand(cmd), keymap);
203
219
  }
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "76.27.4";
9
+ var packageVersion = "76.27.6";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -50,8 +50,8 @@ var tableSharedStyle = function tableSharedStyle(props) {
50
50
  })(props), tableCellPadding, browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', themed({
51
51
  dark: getTableCellBackgroundDarkModeColors
52
52
  })(props), themed({
53
- light: "var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")"),
54
- dark: "var(--ds-background-neutral, ".concat(akEditorTableToolbarDark, ")")
53
+ light: "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"),
54
+ dark: "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbarDark, ")")
55
55
  })(props), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, themed({
56
56
  light: "var(--ds-surface-raised, rgb(235, 237, 240))",
57
57
  dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
19
19
  import { borderRadius } from '@atlaskit/theme/constants';
20
20
  import Layer from '../Layer';
21
21
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "76.27.4";
22
+ var packageVersion = "76.27.6";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -137,7 +137,10 @@ export declare enum ACTION {
137
137
  INSERT_VIDEO = "insertVideo",
138
138
  RECORD_VIDEO_FAILED = "recordVideoFailed",
139
139
  ADD_CHILD = "addChild",
140
- CHANGE_ACTIVE = "changeActive"
140
+ CHANGE_ACTIVE = "changeActive",
141
+ REMOVE_CHILD = "removeChild",
142
+ UPDATE_PARAMETERS = "updateParameters",
143
+ GET_CHILDERN = "getChildern"
141
144
  }
142
145
  export declare enum INPUT_METHOD {
143
146
  ASCII = "ascii",
@@ -45,7 +45,7 @@ type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION
45
45
  } | {
46
46
  icon: string;
47
47
  }, undefined>;
48
- type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION.DELETED, ACTION_SUBJECT.MULTI_BODIED_EXTENSION, undefined, {
48
+ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION.DELETED | ACTION.REMOVE_CHILD | ACTION.UPDATE_PARAMETERS | ACTION.GET_CHILDERN, ACTION_SUBJECT.MULTI_BODIED_EXTENSION, undefined, {
49
49
  extensionType: string;
50
50
  extensionKey: string;
51
51
  localId: string;
@@ -179,6 +179,8 @@ declare const _default: {
179
179
  'fabric.editor.pageActionsLabel': string;
180
180
  'fabric.editor.placeholderText': string;
181
181
  'fabric.editor.placeholderText.description': string;
182
+ 'fabric.editor.recordVideo': string;
183
+ 'fabric.editor.recordVideo.description': string;
182
184
  'fabric.editor.redo': string;
183
185
  'fabric.editor.remove': string;
184
186
  'fabric.editor.removeColumns': string;
@@ -209,6 +209,7 @@ declare const _default: {
209
209
  'fabric.editor.table': string;
210
210
  'fabric.editor.table.description': string;
211
211
  'fabric.editor.tableOptions': string;
212
+ 'fabric.editor.tableResizeScreenReaderInformation': string;
212
213
  'fabric.editor.tables.adjustColumn': string;
213
214
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
214
215
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
@@ -179,6 +179,8 @@ declare const _default: {
179
179
  'fabric.editor.pageActionsLabel': string;
180
180
  'fabric.editor.placeholderText': string;
181
181
  'fabric.editor.placeholderText.description': string;
182
+ 'fabric.editor.recordVideo': string;
183
+ 'fabric.editor.recordVideo.description': string;
182
184
  'fabric.editor.redo': string;
183
185
  'fabric.editor.remove': string;
184
186
  'fabric.editor.removeColumns': string;
@@ -70,6 +70,8 @@ export declare const altPaste: Keymap;
70
70
  export declare const find: Keymap;
71
71
  export declare const alignLeft: Keymap;
72
72
  export declare const toggleTaskItemCheckbox: Keymap;
73
+ export declare const selectRow: Keymap[];
74
+ export declare const selectColumn: Keymap[];
73
75
  export declare const increaseMediaSize: Keymap;
74
76
  export declare const decreaseMediaSize: Keymap;
75
77
  export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
@@ -84,6 +86,7 @@ export declare function findShortcutByKeymap(keymap: Keymap): string | undefined
84
86
  export declare function getAriaKeyshortcuts(keymap: Keymap | string | undefined): string | undefined;
85
87
  export declare function makeKeymap(description: string, windows: string, mac: string, common?: string): Keymap;
86
88
  export declare function makeKeyMapWithCommon(description: string, common: string): Keymap;
89
+ export declare function makeKeyMapArrayWithCommon(description: string, shortcuts: string[]): Keymap[];
87
90
  export interface Keymap {
88
91
  description: string;
89
92
  windows: string;
@@ -93,6 +96,9 @@ export interface Keymap {
93
96
  export declare function bindKeymapWithCommand(shortcut: string, cmd: Command, keymap: {
94
97
  [key: string]: Command;
95
98
  }): void;
99
+ export declare function bindKeymapArrayWithCommand(shortcutsArray: Keymap[], cmd: Command, keymap: {
100
+ [key: string]: Command;
101
+ }): void;
96
102
  export declare function bindKeymapWithEditorCommand(shortcut: string, cmd: EditorCommand, keymap: {
97
103
  [key: string]: Command;
98
104
  }): void;
@@ -137,7 +137,10 @@ export declare enum ACTION {
137
137
  INSERT_VIDEO = "insertVideo",
138
138
  RECORD_VIDEO_FAILED = "recordVideoFailed",
139
139
  ADD_CHILD = "addChild",
140
- CHANGE_ACTIVE = "changeActive"
140
+ CHANGE_ACTIVE = "changeActive",
141
+ REMOVE_CHILD = "removeChild",
142
+ UPDATE_PARAMETERS = "updateParameters",
143
+ GET_CHILDERN = "getChildern"
141
144
  }
142
145
  export declare enum INPUT_METHOD {
143
146
  ASCII = "ascii",
@@ -45,7 +45,7 @@ type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION
45
45
  } | {
46
46
  icon: string;
47
47
  }, undefined>;
48
- type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION.DELETED, ACTION_SUBJECT.MULTI_BODIED_EXTENSION, undefined, {
48
+ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION.DELETED | ACTION.REMOVE_CHILD | ACTION.UPDATE_PARAMETERS | ACTION.GET_CHILDERN, ACTION_SUBJECT.MULTI_BODIED_EXTENSION, undefined, {
49
49
  extensionType: string;
50
50
  extensionKey: string;
51
51
  localId: string;
@@ -179,6 +179,8 @@ declare const _default: {
179
179
  'fabric.editor.pageActionsLabel': string;
180
180
  'fabric.editor.placeholderText': string;
181
181
  'fabric.editor.placeholderText.description': string;
182
+ 'fabric.editor.recordVideo': string;
183
+ 'fabric.editor.recordVideo.description': string;
182
184
  'fabric.editor.redo': string;
183
185
  'fabric.editor.remove': string;
184
186
  'fabric.editor.removeColumns': string;
@@ -209,6 +209,7 @@ declare const _default: {
209
209
  'fabric.editor.table': string;
210
210
  'fabric.editor.table.description': string;
211
211
  'fabric.editor.tableOptions': string;
212
+ 'fabric.editor.tableResizeScreenReaderInformation': string;
212
213
  'fabric.editor.tables.adjustColumn': string;
213
214
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
214
215
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
@@ -179,6 +179,8 @@ declare const _default: {
179
179
  'fabric.editor.pageActionsLabel': string;
180
180
  'fabric.editor.placeholderText': string;
181
181
  'fabric.editor.placeholderText.description': string;
182
+ 'fabric.editor.recordVideo': string;
183
+ 'fabric.editor.recordVideo.description': string;
182
184
  'fabric.editor.redo': string;
183
185
  'fabric.editor.remove': string;
184
186
  'fabric.editor.removeColumns': string;
@@ -70,6 +70,8 @@ export declare const altPaste: Keymap;
70
70
  export declare const find: Keymap;
71
71
  export declare const alignLeft: Keymap;
72
72
  export declare const toggleTaskItemCheckbox: Keymap;
73
+ export declare const selectRow: Keymap[];
74
+ export declare const selectColumn: Keymap[];
73
75
  export declare const increaseMediaSize: Keymap;
74
76
  export declare const decreaseMediaSize: Keymap;
75
77
  export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
@@ -84,6 +86,7 @@ export declare function findShortcutByKeymap(keymap: Keymap): string | undefined
84
86
  export declare function getAriaKeyshortcuts(keymap: Keymap | string | undefined): string | undefined;
85
87
  export declare function makeKeymap(description: string, windows: string, mac: string, common?: string): Keymap;
86
88
  export declare function makeKeyMapWithCommon(description: string, common: string): Keymap;
89
+ export declare function makeKeyMapArrayWithCommon(description: string, shortcuts: string[]): Keymap[];
87
90
  export interface Keymap {
88
91
  description: string;
89
92
  windows: string;
@@ -93,6 +96,9 @@ export interface Keymap {
93
96
  export declare function bindKeymapWithCommand(shortcut: string, cmd: Command, keymap: {
94
97
  [key: string]: Command;
95
98
  }): void;
99
+ export declare function bindKeymapArrayWithCommand(shortcutsArray: Keymap[], cmd: Command, keymap: {
100
+ [key: string]: Command;
101
+ }): void;
96
102
  export declare function bindKeymapWithEditorCommand(shortcut: string, cmd: EditorCommand, keymap: {
97
103
  [key: string]: Command;
98
104
  }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.27.4",
3
+ "version": "76.27.6",
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/"