@atlaskit/editor-plugin-table 20.0.0 → 22.0.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.
- package/CHANGELOG.md +59 -0
- package/dist/cjs/nodeviews/TableComponent.js +2 -2
- package/dist/cjs/nodeviews/TableResizer.js +2 -2
- package/dist/cjs/pm-plugins/keymap.js +12 -12
- package/dist/cjs/pm-plugins/main.js +3 -3
- package/dist/cjs/pm-plugins/utils/decoration.js +2 -2
- package/dist/cjs/pm-plugins/view-mode-sort/index.js +2 -2
- package/dist/cjs/tablePlugin.js +40 -45
- package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
- package/dist/cjs/ui/ContentComponent.js +0 -1
- package/dist/cjs/ui/DragHandle/index.js +2 -2
- package/dist/cjs/ui/FloatingContextualButton/index.js +2 -2
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +2 -2
- package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +2 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +2 -2
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +3 -3
- package/dist/cjs/ui/FloatingInsertButton/index.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +3 -3
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/cjs/ui/TableFullWidthLabel/index.js +2 -2
- package/dist/cjs/ui/global-styles.js +1 -2
- package/dist/cjs/ui/toolbar.js +5 -11
- package/dist/es2019/nodeviews/TableComponent.js +1 -1
- package/dist/es2019/nodeviews/TableResizer.js +1 -1
- package/dist/es2019/pm-plugins/keymap.js +2 -2
- package/dist/es2019/pm-plugins/main.js +3 -3
- package/dist/es2019/pm-plugins/utils/decoration.js +1 -1
- package/dist/es2019/pm-plugins/view-mode-sort/index.js +1 -1
- package/dist/es2019/tablePlugin.js +4 -10
- package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/es2019/ui/ContentComponent.js +0 -1
- package/dist/es2019/ui/DragHandle/index.js +1 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +1 -1
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +1 -1
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/es2019/ui/FloatingInsertButton/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/es2019/ui/TableFullWidthLabel/index.js +1 -1
- package/dist/es2019/ui/global-styles.js +1 -2
- package/dist/es2019/ui/toolbar.js +4 -10
- package/dist/esm/nodeviews/TableComponent.js +1 -1
- package/dist/esm/nodeviews/TableResizer.js +1 -1
- package/dist/esm/pm-plugins/keymap.js +12 -12
- package/dist/esm/pm-plugins/main.js +3 -3
- package/dist/esm/pm-plugins/utils/decoration.js +1 -1
- package/dist/esm/pm-plugins/view-mode-sort/index.js +1 -1
- package/dist/esm/tablePlugin.js +40 -45
- package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/esm/ui/ContentComponent.js +0 -1
- package/dist/esm/ui/DragHandle/index.js +1 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +1 -1
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +1 -1
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/esm/ui/FloatingInsertButton/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/esm/ui/TableFullWidthLabel/index.js +1 -1
- package/dist/esm/ui/global-styles.js +1 -2
- package/dist/esm/ui/toolbar.js +5 -11
- package/dist/types/nodeviews/TableComponent.d.ts +2 -2
- package/dist/types/pm-plugins/commands/column-resize.d.ts +1 -1
- package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
- package/dist/types/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
- package/dist/types/pm-plugins/commands/selection.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +2 -2
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/table-selection-keymap.d.ts +1 -1
- package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
- package/dist/types/pm-plugins/utils/table.d.ts +1 -1
- package/dist/types/tablePluginType.d.ts +0 -6
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/DragHandle/index.d.ts +2 -2
- package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
- package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
- package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
- package/dist/types/ui/FloatingInsertButton/index.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types/ui/global-styles.d.ts +1 -2
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +1 -1
- package/dist/types-ts4.5/tablePluginType.d.ts +0 -6
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/global-styles.d.ts +1 -2
- package/package.json +20 -17
- package/report.api.md +1 -1
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -66,7 +66,6 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
66
66
|
};
|
|
67
67
|
var options = _objectSpread(_objectSpread({}, config), {}, {
|
|
68
68
|
tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
|
|
69
|
-
dragAndDropEnabled: (config === null || config === void 0 ? void 0 : config.dragAndDropEnabled) || fg('platform_editor_enable_table_dnd'),
|
|
70
69
|
isTableScalingEnabled: (config === null || config === void 0 ? void 0 : config.isTableScalingEnabled) || fg('platform_editor_enable_table_scaling')
|
|
71
70
|
});
|
|
72
71
|
var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
|
|
@@ -283,11 +282,10 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
283
282
|
wasFullWidthEnabled = _ref3.wasFullWidthEnabled,
|
|
284
283
|
tableOptions = _ref3.tableOptions,
|
|
285
284
|
getEditorFeatureFlags = _ref3.getEditorFeatureFlags,
|
|
286
|
-
dragAndDropEnabled = _ref3.dragAndDropEnabled,
|
|
287
285
|
isTableScalingEnabled = _ref3.isTableScalingEnabled,
|
|
288
286
|
isCommentEditor = _ref3.isCommentEditor,
|
|
289
287
|
isChromelessEditor = _ref3.isChromelessEditor;
|
|
290
|
-
return createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig(tableOptions), defaultGetEditorContainerWidth, getEditorFeatureFlags || defaultGetEditorFeatureFlags, getIntl, fullWidthEnabled, wasFullWidthEnabled,
|
|
288
|
+
return createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig(tableOptions), defaultGetEditorContainerWidth, getEditorFeatureFlags || defaultGetEditorFeatureFlags, getIntl, fullWidthEnabled, wasFullWidthEnabled, editorAnalyticsAPI, api, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, options === null || options === void 0 ? void 0 : options.allowFixedColumnWidthOption);
|
|
291
289
|
}
|
|
292
290
|
}, {
|
|
293
291
|
name: 'tablePMColResizing',
|
|
@@ -319,7 +317,6 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
319
317
|
var getIntl = _ref6.getIntl,
|
|
320
318
|
nodeViewPortalProviderAPI = _ref6.nodeViewPortalProviderAPI;
|
|
321
319
|
var _ref7 = options || {},
|
|
322
|
-
dragAndDropEnabled = _ref7.dragAndDropEnabled,
|
|
323
320
|
_ref7$isTableScalingE = _ref7.isTableScalingEnabled,
|
|
324
321
|
isTableScalingEnabled = _ref7$isTableScalingE === void 0 ? false : _ref7$isTableScalingE,
|
|
325
322
|
_ref7$fullWidthEnable = _ref7.fullWidthEnabled,
|
|
@@ -329,7 +326,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
329
326
|
_ref7$isChromelessEdi = _ref7.isChromelessEditor,
|
|
330
327
|
isChromelessEditor = _ref7$isChromelessEdi === void 0 ? false : _ref7$isChromelessEdi,
|
|
331
328
|
tableOptions = _ref7.tableOptions;
|
|
332
|
-
return keymapPlugin(defaultGetEditorContainerWidth, api, nodeViewPortalProviderAPI, editorAnalyticsAPI,
|
|
329
|
+
return keymapPlugin(defaultGetEditorContainerWidth, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isTableScalingEnabled, tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.allowTableAlignment, fullWidthEnabled, api, getIntl, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.allowTableResizing);
|
|
333
330
|
}
|
|
334
331
|
}, {
|
|
335
332
|
name: 'tableSelectionKeymap',
|
|
@@ -340,12 +337,10 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
340
337
|
}, {
|
|
341
338
|
name: 'tableEditing',
|
|
342
339
|
plugin: function plugin() {
|
|
343
|
-
var _ref9 = options || {},
|
|
344
|
-
dragAndDropEnabled = _ref9.dragAndDropEnabled;
|
|
345
340
|
return tableEditing({
|
|
346
|
-
reportFixedTable: function reportFixedTable(
|
|
347
|
-
var tr =
|
|
348
|
-
reason =
|
|
341
|
+
reportFixedTable: function reportFixedTable(_ref9) {
|
|
342
|
+
var tr = _ref9.tr,
|
|
343
|
+
reason = _ref9.reason;
|
|
349
344
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
350
345
|
action: TABLE_ACTION.FIXED,
|
|
351
346
|
actionSubject: ACTION_SUBJECT.TABLE,
|
|
@@ -356,71 +351,71 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
356
351
|
eventType: EVENT_TYPE.TRACK
|
|
357
352
|
})(tr);
|
|
358
353
|
},
|
|
359
|
-
dragAndDropEnabled:
|
|
354
|
+
dragAndDropEnabled: true
|
|
360
355
|
});
|
|
361
356
|
}
|
|
362
357
|
}, {
|
|
363
358
|
name: 'tableStickyHeaders',
|
|
364
|
-
plugin: function plugin(
|
|
365
|
-
var dispatch =
|
|
359
|
+
plugin: function plugin(_ref0) {
|
|
360
|
+
var dispatch = _ref0.dispatch;
|
|
366
361
|
return options && options.tableOptions.stickyHeaders ? createStickyHeadersPlugin(dispatch, function () {
|
|
367
362
|
return [];
|
|
368
363
|
}) : undefined;
|
|
369
364
|
}
|
|
370
365
|
}, {
|
|
371
366
|
name: 'tableDragAndDrop',
|
|
372
|
-
plugin: function plugin(
|
|
373
|
-
var dispatch =
|
|
374
|
-
return
|
|
367
|
+
plugin: function plugin(_ref1) {
|
|
368
|
+
var dispatch = _ref1.dispatch;
|
|
369
|
+
return createDragAndDropPlugin(dispatch, editorAnalyticsAPI, options === null || options === void 0 ? void 0 : options.isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, options.isCommentEditor, api);
|
|
375
370
|
}
|
|
376
371
|
}, {
|
|
377
372
|
name: 'tableViewModeSort',
|
|
378
|
-
plugin: function plugin(
|
|
379
|
-
var nodeViewPortalProviderAPI =
|
|
373
|
+
plugin: function plugin(_ref10) {
|
|
374
|
+
var nodeViewPortalProviderAPI = _ref10.nodeViewPortalProviderAPI;
|
|
380
375
|
return api !== null && api !== void 0 && api.editorViewMode ? createViewModeSortPlugin(api, nodeViewPortalProviderAPI) : undefined;
|
|
381
376
|
}
|
|
382
377
|
}, {
|
|
383
378
|
name: 'tableLocalId',
|
|
384
|
-
plugin: function plugin(
|
|
385
|
-
var dispatch =
|
|
379
|
+
plugin: function plugin(_ref11) {
|
|
380
|
+
var dispatch = _ref11.dispatch;
|
|
386
381
|
return !fg('platform_editor_adf_with_localid') ? createTableLocalIdPlugin(dispatch) : undefined;
|
|
387
382
|
}
|
|
388
383
|
}, {
|
|
389
384
|
name: 'tableWidth',
|
|
390
|
-
plugin: function plugin(
|
|
385
|
+
plugin: function plugin(_ref12) {
|
|
391
386
|
var _options$fullWidthEna, _options$maxWidthEnab, _options$isTableScali, _options$tableOptions3, _options$isCommentEdi;
|
|
392
|
-
var dispatchAnalyticsEvent =
|
|
393
|
-
dispatch =
|
|
387
|
+
var dispatchAnalyticsEvent = _ref12.dispatchAnalyticsEvent,
|
|
388
|
+
dispatch = _ref12.dispatch;
|
|
394
389
|
return options !== null && options !== void 0 && options.tableOptions.allowTableResizing ? createTableWidthPlugin(dispatch, dispatchAnalyticsEvent, (_options$fullWidthEna = options.fullWidthEnabled) !== null && _options$fullWidthEna !== void 0 ? _options$fullWidthEna : false, (_options$maxWidthEnab = options.maxWidthEnabled) !== null && _options$maxWidthEnab !== void 0 ? _options$maxWidthEnab : false, (_options$isTableScali = options.isTableScalingEnabled) !== null && _options$isTableScali !== void 0 ? _options$isTableScali : false, (_options$tableOptions3 = options.tableOptions.allowTableResizing) !== null && _options$tableOptions3 !== void 0 ? _options$tableOptions3 : false, (_options$isCommentEdi = options.isCommentEditor) !== null && _options$isCommentEdi !== void 0 ? _options$isCommentEdi : false) : undefined;
|
|
395
390
|
}
|
|
396
391
|
}, {
|
|
397
392
|
name: 'tableWidthInCommentFix',
|
|
398
|
-
plugin: function plugin(
|
|
393
|
+
plugin: function plugin(_ref13) {
|
|
399
394
|
var _options$tableOptions4;
|
|
400
|
-
var dispatch =
|
|
395
|
+
var dispatch = _ref13.dispatch;
|
|
401
396
|
return options !== null && options !== void 0 && options.tableOptions.allowTableResizing && options !== null && options !== void 0 && options.isCommentEditor ? createTableWidthInCommentFixPlugin(dispatch, (_options$tableOptions4 = options.tableOptions.allowTableAlignment) !== null && _options$tableOptions4 !== void 0 ? _options$tableOptions4 : false) : undefined;
|
|
402
397
|
}
|
|
403
398
|
},
|
|
404
399
|
// TODO: ED-26961 - should be deprecated and eventually replaced with 'tableAnalyticsPlugin'
|
|
405
400
|
{
|
|
406
401
|
name: 'tableOverflowAnalyticsPlugin',
|
|
407
|
-
plugin: function plugin(
|
|
402
|
+
plugin: function plugin(_ref14) {
|
|
408
403
|
var _options$tableOptions5;
|
|
409
|
-
var dispatch =
|
|
410
|
-
dispatchAnalyticsEvent =
|
|
404
|
+
var dispatch = _ref14.dispatch,
|
|
405
|
+
dispatchAnalyticsEvent = _ref14.dispatchAnalyticsEvent;
|
|
411
406
|
return createTableOverflowAnalyticsPlugin(dispatch, dispatchAnalyticsEvent, (_options$tableOptions5 = options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing) !== null && _options$tableOptions5 !== void 0 ? _options$tableOptions5 : false);
|
|
412
407
|
}
|
|
413
408
|
}, {
|
|
414
409
|
name: 'tableAnalyticsPlugin',
|
|
415
|
-
plugin: function plugin(
|
|
416
|
-
var dispatch =
|
|
417
|
-
dispatchAnalyticsEvent =
|
|
410
|
+
plugin: function plugin(_ref15) {
|
|
411
|
+
var dispatch = _ref15.dispatch,
|
|
412
|
+
dispatchAnalyticsEvent = _ref15.dispatchAnalyticsEvent;
|
|
418
413
|
return createTableAnalyticsPlugin(dispatch, dispatchAnalyticsEvent);
|
|
419
414
|
}
|
|
420
415
|
}, {
|
|
421
416
|
name: 'tableGetEditorViewReferencePlugin',
|
|
422
|
-
plugin: function plugin(
|
|
423
|
-
var dispatchAnalyticsEvent =
|
|
417
|
+
plugin: function plugin(_ref16) {
|
|
418
|
+
var dispatchAnalyticsEvent = _ref16.dispatchAnalyticsEvent;
|
|
424
419
|
return new SafePlugin({
|
|
425
420
|
view: function view(editorView) {
|
|
426
421
|
editorViewRef.current = editorView;
|
|
@@ -474,8 +469,8 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
474
469
|
}
|
|
475
470
|
}, {
|
|
476
471
|
name: 'tableSizeSelectorPlugin',
|
|
477
|
-
plugin: function plugin(
|
|
478
|
-
var dispatch =
|
|
472
|
+
plugin: function plugin(_ref17) {
|
|
473
|
+
var dispatch = _ref17.dispatch;
|
|
479
474
|
return isTableSelectorEnabled ? createSizeSelectorPlugin(dispatch) : undefined;
|
|
480
475
|
}
|
|
481
476
|
}, {
|
|
@@ -506,12 +501,12 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
506
501
|
}
|
|
507
502
|
return plugins;
|
|
508
503
|
},
|
|
509
|
-
contentComponent: function contentComponent(
|
|
510
|
-
var editorView =
|
|
511
|
-
popupsMountPoint =
|
|
512
|
-
popupsBoundariesElement =
|
|
513
|
-
popupsScrollableElement =
|
|
514
|
-
dispatchAnalyticsEvent =
|
|
504
|
+
contentComponent: function contentComponent(_ref18) {
|
|
505
|
+
var editorView = _ref18.editorView,
|
|
506
|
+
popupsMountPoint = _ref18.popupsMountPoint,
|
|
507
|
+
popupsBoundariesElement = _ref18.popupsBoundariesElement,
|
|
508
|
+
popupsScrollableElement = _ref18.popupsScrollableElement,
|
|
509
|
+
dispatchAnalyticsEvent = _ref18.dispatchAnalyticsEvent;
|
|
515
510
|
return /*#__PURE__*/React.createElement(ContentComponent, {
|
|
516
511
|
api: api,
|
|
517
512
|
editorView: editorView,
|
|
@@ -526,8 +521,8 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
526
521
|
});
|
|
527
522
|
},
|
|
528
523
|
pluginsOptions: {
|
|
529
|
-
quickInsert: function quickInsert(
|
|
530
|
-
var formatMessage =
|
|
524
|
+
quickInsert: function quickInsert(_ref19) {
|
|
525
|
+
var formatMessage = _ref19.formatMessage;
|
|
531
526
|
return [{
|
|
532
527
|
id: 'table',
|
|
533
528
|
title: formatMessage(messages.table),
|
|
@@ -597,8 +592,8 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
597
592
|
return editorViewRef.current;
|
|
598
593
|
}, options, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent)(pluginConfig(options === null || options === void 0 ? void 0 : options.tableOptions))
|
|
599
594
|
},
|
|
600
|
-
usePluginHook: function usePluginHook(
|
|
601
|
-
var editorView =
|
|
595
|
+
usePluginHook: function usePluginHook(_ref20) {
|
|
596
|
+
var editorView = _ref20.editorView;
|
|
602
597
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['editorViewMode'], function (states) {
|
|
603
598
|
var _states$editorViewMod;
|
|
604
599
|
return {
|
|
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
import { startColumnResizing, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -211,7 +211,6 @@ export var ContentComponent = function ContentComponent(_ref3) {
|
|
|
211
211
|
fallbackComponent: null
|
|
212
212
|
}, /*#__PURE__*/React.createElement(GlobalStylesWrapper, {
|
|
213
213
|
featureFlags: api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState(),
|
|
214
|
-
isDragAndDropEnabledOption: options === null || options === void 0 ? void 0 : options.dragAndDropEnabled,
|
|
215
214
|
api: api
|
|
216
215
|
}), /*#__PURE__*/React.createElement(ContentComponentInternal, {
|
|
217
216
|
api: api,
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import ReactDOM from 'react-dom';
|
|
8
|
-
import { injectIntl } from 'react-intl
|
|
8
|
+
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React, { useEffect } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import { injectIntl } from 'react-intl
|
|
8
|
+
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
|
|
11
11
|
import { focusToContextMenuTrigger } from '@atlaskit/editor-common/keymaps';
|
|
@@ -17,7 +17,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
19
|
import { jsx } from '@emotion/react';
|
|
20
|
-
import { injectIntl } from 'react-intl
|
|
20
|
+
import { injectIntl } from 'react-intl';
|
|
21
21
|
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
22
22
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
23
23
|
import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { TableCssClassName as ClassName } from '../../types';
|
|
5
5
|
var DeleteButton = function DeleteButton(_ref) {
|
|
@@ -10,7 +10,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
|
-
import { injectIntl } from 'react-intl
|
|
13
|
+
import { injectIntl } from 'react-intl';
|
|
14
14
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
16
|
import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
|
-
import { injectIntl } from 'react-intl
|
|
6
|
+
import { injectIntl } from 'react-intl';
|
|
7
7
|
import { addColumnAfter, addRowAfter, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
8
8
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { injectIntl } from 'react-intl
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
@@ -8,7 +8,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React, { Component } from 'react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
|
-
import { injectIntl } from 'react-intl
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
12
12
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
14
14
|
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import { injectIntl } from 'react-intl
|
|
3
|
+
import { injectIntl } from 'react-intl';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React, { Component } from 'react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
@@ -8,7 +8,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
8
8
|
import { tableStyles } from './common-styles';
|
|
9
9
|
export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
10
10
|
var featureFlags = _ref.featureFlags,
|
|
11
|
-
isDragAndDropEnabledOption = _ref.isDragAndDropEnabledOption,
|
|
12
11
|
api = _ref.api;
|
|
13
12
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['editorViewMode'], function (states) {
|
|
14
13
|
var _states$editorViewMod;
|
|
@@ -21,7 +20,7 @@ export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
|
21
20
|
return jsx(Global, {
|
|
22
21
|
styles: tableStyles({
|
|
23
22
|
featureFlags: featureFlags,
|
|
24
|
-
isDragAndDropEnabled:
|
|
23
|
+
isDragAndDropEnabled: !isLivePageViewMode
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
26
|
};
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -412,17 +412,11 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
|
|
|
412
412
|
var areAnyNewToolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
413
413
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
414
414
|
var _api$editorViewMode;
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
isDragMenuOpen = _getDragDropPluginSta2 === void 0 ? false : _getDragDropPluginSta2,
|
|
421
|
-
_getDragDropPluginSta3 = _getDragDropPluginSta.isDragging,
|
|
422
|
-
isDragging = _getDragDropPluginSta3 === void 0 ? false : _getDragDropPluginSta3;
|
|
423
|
-
isDragHandleMenuOpened = isDragMenuOpen;
|
|
424
|
-
isTableRowOrColumnDragged = isDragging;
|
|
425
|
-
}
|
|
415
|
+
var _getDragDropPluginSta = getDragDropPluginState(state),
|
|
416
|
+
_getDragDropPluginSta2 = _getDragDropPluginSta.isDragMenuOpen,
|
|
417
|
+
isDragHandleMenuOpened = _getDragDropPluginSta2 === void 0 ? false : _getDragDropPluginSta2,
|
|
418
|
+
_getDragDropPluginSta3 = _getDragDropPluginSta.isDragging,
|
|
419
|
+
isTableRowOrColumnDragged = _getDragDropPluginSta3 === void 0 ? false : _getDragDropPluginSta3;
|
|
426
420
|
var isTableOrColumnResizing = !!(resizeState !== null && resizeState !== void 0 && resizeState.dragging || tableWidthState !== null && tableWidthState !== void 0 && tableWidthState.resizing);
|
|
427
421
|
var isTableMenuOpened = pluginState.isContextualMenuOpen || isDragHandleMenuOpened;
|
|
428
422
|
var isTableState = isTableRowOrColumnDragged || isTableOrColumnResizing || isTableMenuOpened;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
4
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -42,7 +42,7 @@ interface ComponentProps {
|
|
|
42
42
|
tableActive: boolean;
|
|
43
43
|
view: EditorView;
|
|
44
44
|
}
|
|
45
|
-
declare const _default: React.FC<import("react-intl
|
|
45
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<ComponentProps>> & {
|
|
46
46
|
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
47
47
|
};
|
|
48
48
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
4
4
|
import type { CHANGE_ALIGNMENT_REASON, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
4
4
|
import type tablePlugin from '../../tablePlugin';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { DecorationTransformer } from './types';
|
|
4
4
|
export declare const buildColumnResizingDecorations: (rowEndIndex: number, columnEndIndex: number, includeTooltip: boolean, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => DecorationTransformer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import { INPUT_METHOD, TABLE_STATUS } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
|
|
7
|
-
export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null,
|
|
7
|
+
export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthEnabled?: boolean, pluginInjectionApi?: PluginInjectionAPIWithA11y, getIntl?: () => IntlShape, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean): SafePlugin;
|
|
8
8
|
export default keymapPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { PluginConfig, PluginInjectionAPI } from '../types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean,
|
|
8
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<import("../types").TablePluginState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import type { PluginInjectionAPI } from '../types';
|
|
4
4
|
export declare function tableSelectionKeymapPlugin(pluginInjectionApi?: PluginInjectionAPI, getIntl?: () => IntlShape): SafePlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
export declare const getMergedCellsPositions: (tr: Transaction) => number[];
|
|
@@ -23,12 +23,6 @@ export interface TablePluginOptions {
|
|
|
23
23
|
* Note: This feature requires ADF schema changes to be supported.
|
|
24
24
|
*/
|
|
25
25
|
allowFixedColumnWidthOption?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
28
|
-
* Deprecating this prop to enable drag and drop in tables by default.
|
|
29
|
-
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
30
|
-
**/
|
|
31
|
-
dragAndDropEnabled?: boolean;
|
|
32
26
|
fullWidthEnabled?: boolean;
|
|
33
27
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
34
28
|
isChromelessEditor?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
4
4
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MouseEventHandler, FocusEventHandler } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
|
|
6
6
|
import type { CellHoverMeta, TableDirection } from '../../types';
|
|
@@ -23,7 +23,7 @@ type DragHandleProps = {
|
|
|
23
23
|
tableLocalId: string;
|
|
24
24
|
toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
25
25
|
};
|
|
26
|
-
export declare const DragHandle: React.FC<import("react-intl
|
|
26
|
+
export declare const DragHandle: React.FC<import("react-intl").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
|
|
27
27
|
WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -64,7 +64,7 @@ export declare class ContextualMenu extends Component<Props & WrappedComponentPr
|
|
|
64
64
|
private closeSubmenu;
|
|
65
65
|
private setColor;
|
|
66
66
|
}
|
|
67
|
-
declare const _default: React.FC<import("react-intl
|
|
67
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
68
68
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
69
69
|
};
|
|
70
70
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { MessageDescriptor, WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
|
|
4
4
|
interface ButtonProps {
|
|
5
5
|
onClick?: (event: SyntheticEvent) => void;
|
|
6
6
|
onMouseEnter?: (event: SyntheticEvent) => void;
|
|
@@ -8,7 +8,7 @@ interface ButtonProps {
|
|
|
8
8
|
removeLabel: MessageDescriptor;
|
|
9
9
|
style?: object;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.FC<import("react-intl
|
|
11
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { ExtractInjectionAPI, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
@@ -35,7 +35,7 @@ type DragMenuProps = {
|
|
|
35
35
|
target?: Element;
|
|
36
36
|
targetCellPosition?: number;
|
|
37
37
|
};
|
|
38
|
-
declare const _default: React.FC<import("react-intl
|
|
38
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
40
40
|
};
|
|
41
41
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import type { TableDirection } from '../../types';
|
|
5
5
|
interface ButtonProps {
|
|
6
6
|
hasStickyHeaders: boolean;
|
|
@@ -9,10 +9,10 @@ interface ButtonProps {
|
|
|
9
9
|
tableRef: HTMLElement;
|
|
10
10
|
type: TableDirection;
|
|
11
11
|
}
|
|
12
|
-
export declare const DragAndDropInsertButton: React.FC<import("react-intl
|
|
12
|
+
export declare const DragAndDropInsertButton: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
declare const _default: React.FC<import("react-intl
|
|
15
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|