@atlaskit/editor-common 76.17.0 → 76.17.2
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 +13 -0
- package/dist/cjs/hooks/useSharedPluginState.js +12 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/messages/table.js +149 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/hooks/useSharedPluginState.js +10 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/messages/table.js +143 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/hooks/useSharedPluginState.js +12 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/messages/table.js +143 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/messages/table.d.ts +142 -0
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/table.d.ts +142 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42287](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42287) [`02bc2130172`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02bc2130172) - [ux] Moves intl messages from edito-plugin-table to editor-common to fix table plugin translations
|
|
8
|
+
|
|
9
|
+
## 76.17.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#42323](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42323) [`a4cb1c16536`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4cb1c16536) - Fix useSharedPluginState if the editor API changes to ensure that the state updates.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 76.17.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -119,12 +119,23 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
119
119
|
pluginStates = _useState2[0],
|
|
120
120
|
setPluginState = _useState2[1];
|
|
121
121
|
var refStates = (0, _react.useRef)({});
|
|
122
|
+
var mounted = (0, _react.useRef)(false);
|
|
122
123
|
(0, _react.useLayoutEffect)(function () {
|
|
123
124
|
var debouncedPluginStateUpdate = (0, _debounce.default)(function () {
|
|
124
125
|
setPluginState(function (currentPluginStates) {
|
|
125
126
|
return _objectSpread(_objectSpread({}, currentPluginStates), refStates.current);
|
|
126
127
|
});
|
|
127
128
|
});
|
|
129
|
+
|
|
130
|
+
// If we re-render this hook due to a change in the external
|
|
131
|
+
// plugins we need to push a state update to ensure we have
|
|
132
|
+
// the most current state.
|
|
133
|
+
if (mounted.current) {
|
|
134
|
+
refStates.current = mapValues(externalPlugins, function (value) {
|
|
135
|
+
return value === null || value === void 0 ? void 0 : value.sharedState.currentState();
|
|
136
|
+
});
|
|
137
|
+
debouncedPluginStateUpdate();
|
|
138
|
+
}
|
|
128
139
|
var unsubs = Object.entries(externalPlugins).map(function (_ref3) {
|
|
129
140
|
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
|
|
130
141
|
pluginKey = _ref4[0],
|
|
@@ -139,6 +150,7 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
139
150
|
debouncedPluginStateUpdate();
|
|
140
151
|
});
|
|
141
152
|
});
|
|
153
|
+
mounted.current = true;
|
|
142
154
|
return function () {
|
|
143
155
|
refStates.current = {};
|
|
144
156
|
unsubs.forEach(function (cb) {
|
|
@@ -82,6 +82,12 @@ Object.defineProperty(exports, "statusMessages", {
|
|
|
82
82
|
return _status.messages;
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
+
Object.defineProperty(exports, "tableMessages", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function get() {
|
|
88
|
+
return _table.messages;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
85
91
|
Object.defineProperty(exports, "toolbarInsertBlockMessages", {
|
|
86
92
|
enumerable: true,
|
|
87
93
|
get: function get() {
|
|
@@ -120,6 +126,7 @@ var _mediaAndEmbedToolbar = require("./media-and-embed-toolbar");
|
|
|
120
126
|
var _card = require("./card");
|
|
121
127
|
var _fullPage = require("./full-page");
|
|
122
128
|
var _toolbar = require("./toolbar");
|
|
129
|
+
var _table = require("./table");
|
|
123
130
|
var _list = require("./list");
|
|
124
131
|
var _undoRedo = require("./undo-redo");
|
|
125
132
|
var _status = require("./status");
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.messages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
tableOptions: {
|
|
10
|
+
id: 'fabric.editor.tableOptions',
|
|
11
|
+
defaultMessage: 'Table options',
|
|
12
|
+
description: 'Opens a menu with additional table options'
|
|
13
|
+
},
|
|
14
|
+
headerRow: {
|
|
15
|
+
id: 'fabric.editor.headerRow',
|
|
16
|
+
defaultMessage: 'Header row',
|
|
17
|
+
description: 'Marks the first table row as a header row'
|
|
18
|
+
},
|
|
19
|
+
headerColumn: {
|
|
20
|
+
id: 'fabric.editor.headerColumn',
|
|
21
|
+
defaultMessage: 'Header column',
|
|
22
|
+
description: 'Marks the first table column as a header row'
|
|
23
|
+
},
|
|
24
|
+
numberedColumn: {
|
|
25
|
+
id: 'fabric.editor.numberedColumn',
|
|
26
|
+
defaultMessage: 'Numbered column',
|
|
27
|
+
description: 'Adds an auto-numbering column to your table'
|
|
28
|
+
},
|
|
29
|
+
collapseTable: {
|
|
30
|
+
id: 'fabric.editor.collapseTable',
|
|
31
|
+
defaultMessage: 'Collapse table',
|
|
32
|
+
description: 'Wraps table in an expand'
|
|
33
|
+
},
|
|
34
|
+
resizeTable: {
|
|
35
|
+
id: 'fabric.editor.tables.resizeTable',
|
|
36
|
+
defaultMessage: 'Resize table',
|
|
37
|
+
description: 'Tooltip displayed on custom table width resize hande'
|
|
38
|
+
},
|
|
39
|
+
insertColumn: {
|
|
40
|
+
id: 'fabric.editor.insertColumn',
|
|
41
|
+
defaultMessage: 'Insert column right',
|
|
42
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
43
|
+
},
|
|
44
|
+
removeColumns: {
|
|
45
|
+
id: 'fabric.editor.removeColumns',
|
|
46
|
+
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
47
|
+
description: 'Deletes a table column.'
|
|
48
|
+
},
|
|
49
|
+
insertRow: {
|
|
50
|
+
id: 'fabric.editor.insertRow',
|
|
51
|
+
defaultMessage: 'Insert row below',
|
|
52
|
+
description: 'Inserts a new row below the selected row.'
|
|
53
|
+
},
|
|
54
|
+
removeRows: {
|
|
55
|
+
id: 'fabric.editor.removeRows',
|
|
56
|
+
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
57
|
+
description: 'Deletes a table row.'
|
|
58
|
+
},
|
|
59
|
+
cellOptions: {
|
|
60
|
+
id: 'fabric.editor.cellOptions',
|
|
61
|
+
defaultMessage: 'Cell options',
|
|
62
|
+
description: 'Opens a menu with options for the current table cell.'
|
|
63
|
+
},
|
|
64
|
+
confirmDeleteLinkedModalOKButton: {
|
|
65
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalOKButton',
|
|
66
|
+
defaultMessage: 'Delete',
|
|
67
|
+
description: 'Action button label for confirm modal when deleting a table linked to an extension.'
|
|
68
|
+
},
|
|
69
|
+
confirmDeleteLinkedModalMessage: {
|
|
70
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalMessage',
|
|
71
|
+
defaultMessage: 'Deleting {nodeName} will break anything connected to it.',
|
|
72
|
+
description: 'Message for confirm modal when deleting a table linked to an extension.'
|
|
73
|
+
},
|
|
74
|
+
confirmDeleteLinkedModalMessagePrefix: {
|
|
75
|
+
id: 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix',
|
|
76
|
+
defaultMessage: 'Deleting',
|
|
77
|
+
description: 'prefix for confirmation dialog text'
|
|
78
|
+
},
|
|
79
|
+
confirmModalCheckboxLabel: {
|
|
80
|
+
id: 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel',
|
|
81
|
+
defaultMessage: 'Also delete connected elements',
|
|
82
|
+
description: 'checkbox label text'
|
|
83
|
+
},
|
|
84
|
+
deleteElementTitle: {
|
|
85
|
+
id: 'fabric.editor.extension.deleteElementTitle',
|
|
86
|
+
defaultMessage: 'Delete element',
|
|
87
|
+
description: 'Title text for confirm modal when deleting an extension linked to a data consumer.'
|
|
88
|
+
},
|
|
89
|
+
unnamedSource: {
|
|
90
|
+
id: 'fabric.editor.extension.sourceNoTitledName',
|
|
91
|
+
defaultMessage: 'this element',
|
|
92
|
+
description: 'The current element without preset name been selected'
|
|
93
|
+
},
|
|
94
|
+
adjustColumns: {
|
|
95
|
+
id: 'fabric.editor.tables.adjustColumn',
|
|
96
|
+
defaultMessage: 'Adjust column',
|
|
97
|
+
description: 'Tooltip displayed on table column resize handle'
|
|
98
|
+
},
|
|
99
|
+
cornerControl: {
|
|
100
|
+
id: 'fabric.editor.cornerControl',
|
|
101
|
+
defaultMessage: 'Highlight table',
|
|
102
|
+
description: 'A button on the upper left corner of the table that shows up when the table is in focus. Clicking on it will select the entire table.'
|
|
103
|
+
},
|
|
104
|
+
cellBackground: {
|
|
105
|
+
id: 'fabric.editor.cellBackground',
|
|
106
|
+
defaultMessage: 'Cell background',
|
|
107
|
+
description: 'Change the background color of a table cell.'
|
|
108
|
+
},
|
|
109
|
+
mergeCells: {
|
|
110
|
+
id: 'fabric.editor.mergeCells',
|
|
111
|
+
defaultMessage: 'Merge cells',
|
|
112
|
+
description: 'Merge tables cells together.'
|
|
113
|
+
},
|
|
114
|
+
splitCell: {
|
|
115
|
+
id: 'fabric.editor.splitCell',
|
|
116
|
+
defaultMessage: 'Split cell',
|
|
117
|
+
description: 'Split a merged table cell.'
|
|
118
|
+
},
|
|
119
|
+
clearCells: {
|
|
120
|
+
id: 'fabric.editor.clearCells',
|
|
121
|
+
defaultMessage: 'Clear {0, plural, one {cell} other {cells}}',
|
|
122
|
+
description: 'Clears the contents of the selected cells (this does not delete the cells themselves).'
|
|
123
|
+
},
|
|
124
|
+
sortColumnASC: {
|
|
125
|
+
id: 'fabric.editor.sortColumnASC',
|
|
126
|
+
defaultMessage: 'Sort column A → Z',
|
|
127
|
+
description: 'Sort column in ascending order'
|
|
128
|
+
},
|
|
129
|
+
sortColumnDESC: {
|
|
130
|
+
id: 'fabric.editor.sortColumnDESC',
|
|
131
|
+
defaultMessage: 'Sort column Z → A',
|
|
132
|
+
description: 'Sort column in descending order'
|
|
133
|
+
},
|
|
134
|
+
canNotSortTable: {
|
|
135
|
+
id: 'fabric.editor.canNotSortTable',
|
|
136
|
+
defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
|
|
137
|
+
description: "Split your cells to enable this feature"
|
|
138
|
+
},
|
|
139
|
+
distributeColumns: {
|
|
140
|
+
id: 'fabric.editor.distributeColumns',
|
|
141
|
+
defaultMessage: "Distribute columns",
|
|
142
|
+
description: "Distribute widths between selected columns"
|
|
143
|
+
},
|
|
144
|
+
rowControl: {
|
|
145
|
+
id: 'fabric.editor.rowControl',
|
|
146
|
+
defaultMessage: 'Highlight row',
|
|
147
|
+
description: 'A button on the left of each row that shows up when the table is in focus. Clicking on it will select the entire row.'
|
|
148
|
+
}
|
|
149
|
+
});
|
|
@@ -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.17.
|
|
19
|
+
var packageVersion = "76.17.2";
|
|
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
|
|
@@ -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.17.
|
|
27
|
+
var packageVersion = "76.17.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -98,6 +98,7 @@ export function useSharedPluginState(injectionApi, plugins) {
|
|
|
98
98
|
function useSharedPluginStateInternal(externalPlugins) {
|
|
99
99
|
const [pluginStates, setPluginState] = useState(mapValues(externalPlugins, value => value === null || value === void 0 ? void 0 : value.sharedState.currentState()));
|
|
100
100
|
const refStates = useRef({});
|
|
101
|
+
const mounted = useRef(false);
|
|
101
102
|
useLayoutEffect(() => {
|
|
102
103
|
const debouncedPluginStateUpdate = debounce(() => {
|
|
103
104
|
setPluginState(currentPluginStates => ({
|
|
@@ -105,6 +106,14 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
105
106
|
...refStates.current
|
|
106
107
|
}));
|
|
107
108
|
});
|
|
109
|
+
|
|
110
|
+
// If we re-render this hook due to a change in the external
|
|
111
|
+
// plugins we need to push a state update to ensure we have
|
|
112
|
+
// the most current state.
|
|
113
|
+
if (mounted.current) {
|
|
114
|
+
refStates.current = mapValues(externalPlugins, value => value === null || value === void 0 ? void 0 : value.sharedState.currentState());
|
|
115
|
+
debouncedPluginStateUpdate();
|
|
116
|
+
}
|
|
108
117
|
const unsubs = Object.entries(externalPlugins).map(([pluginKey, externalPlugin]) => {
|
|
109
118
|
return externalPlugin === null || externalPlugin === void 0 ? void 0 : externalPlugin.sharedState.onChange(({
|
|
110
119
|
nextSharedState,
|
|
@@ -117,6 +126,7 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
117
126
|
debouncedPluginStateUpdate();
|
|
118
127
|
});
|
|
119
128
|
});
|
|
129
|
+
mounted.current = true;
|
|
120
130
|
return () => {
|
|
121
131
|
refStates.current = {};
|
|
122
132
|
unsubs.forEach(cb => cb === null || cb === void 0 ? void 0 : cb());
|
|
@@ -12,6 +12,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
12
12
|
export { messages as cardMessages } from './card';
|
|
13
13
|
export { messages as fullPageMessages } from './full-page';
|
|
14
14
|
export { toolbarMessages } from './toolbar';
|
|
15
|
+
export { messages as tableMessages } from './table';
|
|
15
16
|
export { messages as listMessages } from './list';
|
|
16
17
|
export { messages as undoRedoMessages } from './undo-redo';
|
|
17
18
|
export { messages as statusMessages } from './status';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export const messages = defineMessages({
|
|
3
|
+
tableOptions: {
|
|
4
|
+
id: 'fabric.editor.tableOptions',
|
|
5
|
+
defaultMessage: 'Table options',
|
|
6
|
+
description: 'Opens a menu with additional table options'
|
|
7
|
+
},
|
|
8
|
+
headerRow: {
|
|
9
|
+
id: 'fabric.editor.headerRow',
|
|
10
|
+
defaultMessage: 'Header row',
|
|
11
|
+
description: 'Marks the first table row as a header row'
|
|
12
|
+
},
|
|
13
|
+
headerColumn: {
|
|
14
|
+
id: 'fabric.editor.headerColumn',
|
|
15
|
+
defaultMessage: 'Header column',
|
|
16
|
+
description: 'Marks the first table column as a header row'
|
|
17
|
+
},
|
|
18
|
+
numberedColumn: {
|
|
19
|
+
id: 'fabric.editor.numberedColumn',
|
|
20
|
+
defaultMessage: 'Numbered column',
|
|
21
|
+
description: 'Adds an auto-numbering column to your table'
|
|
22
|
+
},
|
|
23
|
+
collapseTable: {
|
|
24
|
+
id: 'fabric.editor.collapseTable',
|
|
25
|
+
defaultMessage: 'Collapse table',
|
|
26
|
+
description: 'Wraps table in an expand'
|
|
27
|
+
},
|
|
28
|
+
resizeTable: {
|
|
29
|
+
id: 'fabric.editor.tables.resizeTable',
|
|
30
|
+
defaultMessage: 'Resize table',
|
|
31
|
+
description: 'Tooltip displayed on custom table width resize hande'
|
|
32
|
+
},
|
|
33
|
+
insertColumn: {
|
|
34
|
+
id: 'fabric.editor.insertColumn',
|
|
35
|
+
defaultMessage: 'Insert column right',
|
|
36
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
37
|
+
},
|
|
38
|
+
removeColumns: {
|
|
39
|
+
id: 'fabric.editor.removeColumns',
|
|
40
|
+
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
41
|
+
description: 'Deletes a table column.'
|
|
42
|
+
},
|
|
43
|
+
insertRow: {
|
|
44
|
+
id: 'fabric.editor.insertRow',
|
|
45
|
+
defaultMessage: 'Insert row below',
|
|
46
|
+
description: 'Inserts a new row below the selected row.'
|
|
47
|
+
},
|
|
48
|
+
removeRows: {
|
|
49
|
+
id: 'fabric.editor.removeRows',
|
|
50
|
+
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
51
|
+
description: 'Deletes a table row.'
|
|
52
|
+
},
|
|
53
|
+
cellOptions: {
|
|
54
|
+
id: 'fabric.editor.cellOptions',
|
|
55
|
+
defaultMessage: 'Cell options',
|
|
56
|
+
description: 'Opens a menu with options for the current table cell.'
|
|
57
|
+
},
|
|
58
|
+
confirmDeleteLinkedModalOKButton: {
|
|
59
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalOKButton',
|
|
60
|
+
defaultMessage: 'Delete',
|
|
61
|
+
description: 'Action button label for confirm modal when deleting a table linked to an extension.'
|
|
62
|
+
},
|
|
63
|
+
confirmDeleteLinkedModalMessage: {
|
|
64
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalMessage',
|
|
65
|
+
defaultMessage: 'Deleting {nodeName} will break anything connected to it.',
|
|
66
|
+
description: 'Message for confirm modal when deleting a table linked to an extension.'
|
|
67
|
+
},
|
|
68
|
+
confirmDeleteLinkedModalMessagePrefix: {
|
|
69
|
+
id: 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix',
|
|
70
|
+
defaultMessage: 'Deleting',
|
|
71
|
+
description: 'prefix for confirmation dialog text'
|
|
72
|
+
},
|
|
73
|
+
confirmModalCheckboxLabel: {
|
|
74
|
+
id: 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel',
|
|
75
|
+
defaultMessage: 'Also delete connected elements',
|
|
76
|
+
description: 'checkbox label text'
|
|
77
|
+
},
|
|
78
|
+
deleteElementTitle: {
|
|
79
|
+
id: 'fabric.editor.extension.deleteElementTitle',
|
|
80
|
+
defaultMessage: 'Delete element',
|
|
81
|
+
description: 'Title text for confirm modal when deleting an extension linked to a data consumer.'
|
|
82
|
+
},
|
|
83
|
+
unnamedSource: {
|
|
84
|
+
id: 'fabric.editor.extension.sourceNoTitledName',
|
|
85
|
+
defaultMessage: 'this element',
|
|
86
|
+
description: 'The current element without preset name been selected'
|
|
87
|
+
},
|
|
88
|
+
adjustColumns: {
|
|
89
|
+
id: 'fabric.editor.tables.adjustColumn',
|
|
90
|
+
defaultMessage: 'Adjust column',
|
|
91
|
+
description: 'Tooltip displayed on table column resize handle'
|
|
92
|
+
},
|
|
93
|
+
cornerControl: {
|
|
94
|
+
id: 'fabric.editor.cornerControl',
|
|
95
|
+
defaultMessage: 'Highlight table',
|
|
96
|
+
description: 'A button on the upper left corner of the table that shows up when the table is in focus. Clicking on it will select the entire table.'
|
|
97
|
+
},
|
|
98
|
+
cellBackground: {
|
|
99
|
+
id: 'fabric.editor.cellBackground',
|
|
100
|
+
defaultMessage: 'Cell background',
|
|
101
|
+
description: 'Change the background color of a table cell.'
|
|
102
|
+
},
|
|
103
|
+
mergeCells: {
|
|
104
|
+
id: 'fabric.editor.mergeCells',
|
|
105
|
+
defaultMessage: 'Merge cells',
|
|
106
|
+
description: 'Merge tables cells together.'
|
|
107
|
+
},
|
|
108
|
+
splitCell: {
|
|
109
|
+
id: 'fabric.editor.splitCell',
|
|
110
|
+
defaultMessage: 'Split cell',
|
|
111
|
+
description: 'Split a merged table cell.'
|
|
112
|
+
},
|
|
113
|
+
clearCells: {
|
|
114
|
+
id: 'fabric.editor.clearCells',
|
|
115
|
+
defaultMessage: 'Clear {0, plural, one {cell} other {cells}}',
|
|
116
|
+
description: 'Clears the contents of the selected cells (this does not delete the cells themselves).'
|
|
117
|
+
},
|
|
118
|
+
sortColumnASC: {
|
|
119
|
+
id: 'fabric.editor.sortColumnASC',
|
|
120
|
+
defaultMessage: 'Sort column A → Z',
|
|
121
|
+
description: 'Sort column in ascending order'
|
|
122
|
+
},
|
|
123
|
+
sortColumnDESC: {
|
|
124
|
+
id: 'fabric.editor.sortColumnDESC',
|
|
125
|
+
defaultMessage: 'Sort column Z → A',
|
|
126
|
+
description: 'Sort column in descending order'
|
|
127
|
+
},
|
|
128
|
+
canNotSortTable: {
|
|
129
|
+
id: 'fabric.editor.canNotSortTable',
|
|
130
|
+
defaultMessage: `⚠️ You can't sort a table with merged cells`,
|
|
131
|
+
description: `Split your cells to enable this feature`
|
|
132
|
+
},
|
|
133
|
+
distributeColumns: {
|
|
134
|
+
id: 'fabric.editor.distributeColumns',
|
|
135
|
+
defaultMessage: `Distribute columns`,
|
|
136
|
+
description: `Distribute widths between selected columns`
|
|
137
|
+
},
|
|
138
|
+
rowControl: {
|
|
139
|
+
id: 'fabric.editor.rowControl',
|
|
140
|
+
defaultMessage: 'Highlight row',
|
|
141
|
+
description: 'A button on the left of each row that shows up when the table is in focus. Clicking on it will select the entire row.'
|
|
142
|
+
}
|
|
143
|
+
});
|
|
@@ -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.17.
|
|
3
|
+
const packageVersion = "76.17.2";
|
|
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
|
|
@@ -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.17.
|
|
12
|
+
const packageVersion = "76.17.2";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -112,12 +112,23 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
112
112
|
pluginStates = _useState2[0],
|
|
113
113
|
setPluginState = _useState2[1];
|
|
114
114
|
var refStates = useRef({});
|
|
115
|
+
var mounted = useRef(false);
|
|
115
116
|
useLayoutEffect(function () {
|
|
116
117
|
var debouncedPluginStateUpdate = debounce(function () {
|
|
117
118
|
setPluginState(function (currentPluginStates) {
|
|
118
119
|
return _objectSpread(_objectSpread({}, currentPluginStates), refStates.current);
|
|
119
120
|
});
|
|
120
121
|
});
|
|
122
|
+
|
|
123
|
+
// If we re-render this hook due to a change in the external
|
|
124
|
+
// plugins we need to push a state update to ensure we have
|
|
125
|
+
// the most current state.
|
|
126
|
+
if (mounted.current) {
|
|
127
|
+
refStates.current = mapValues(externalPlugins, function (value) {
|
|
128
|
+
return value === null || value === void 0 ? void 0 : value.sharedState.currentState();
|
|
129
|
+
});
|
|
130
|
+
debouncedPluginStateUpdate();
|
|
131
|
+
}
|
|
121
132
|
var unsubs = Object.entries(externalPlugins).map(function (_ref3) {
|
|
122
133
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
123
134
|
pluginKey = _ref4[0],
|
|
@@ -132,6 +143,7 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
132
143
|
debouncedPluginStateUpdate();
|
|
133
144
|
});
|
|
134
145
|
});
|
|
146
|
+
mounted.current = true;
|
|
135
147
|
return function () {
|
|
136
148
|
refStates.current = {};
|
|
137
149
|
unsubs.forEach(function (cb) {
|
|
@@ -12,6 +12,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
12
12
|
export { messages as cardMessages } from './card';
|
|
13
13
|
export { messages as fullPageMessages } from './full-page';
|
|
14
14
|
export { toolbarMessages } from './toolbar';
|
|
15
|
+
export { messages as tableMessages } from './table';
|
|
15
16
|
export { messages as listMessages } from './list';
|
|
16
17
|
export { messages as undoRedoMessages } from './undo-redo';
|
|
17
18
|
export { messages as statusMessages } from './status';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var messages = defineMessages({
|
|
3
|
+
tableOptions: {
|
|
4
|
+
id: 'fabric.editor.tableOptions',
|
|
5
|
+
defaultMessage: 'Table options',
|
|
6
|
+
description: 'Opens a menu with additional table options'
|
|
7
|
+
},
|
|
8
|
+
headerRow: {
|
|
9
|
+
id: 'fabric.editor.headerRow',
|
|
10
|
+
defaultMessage: 'Header row',
|
|
11
|
+
description: 'Marks the first table row as a header row'
|
|
12
|
+
},
|
|
13
|
+
headerColumn: {
|
|
14
|
+
id: 'fabric.editor.headerColumn',
|
|
15
|
+
defaultMessage: 'Header column',
|
|
16
|
+
description: 'Marks the first table column as a header row'
|
|
17
|
+
},
|
|
18
|
+
numberedColumn: {
|
|
19
|
+
id: 'fabric.editor.numberedColumn',
|
|
20
|
+
defaultMessage: 'Numbered column',
|
|
21
|
+
description: 'Adds an auto-numbering column to your table'
|
|
22
|
+
},
|
|
23
|
+
collapseTable: {
|
|
24
|
+
id: 'fabric.editor.collapseTable',
|
|
25
|
+
defaultMessage: 'Collapse table',
|
|
26
|
+
description: 'Wraps table in an expand'
|
|
27
|
+
},
|
|
28
|
+
resizeTable: {
|
|
29
|
+
id: 'fabric.editor.tables.resizeTable',
|
|
30
|
+
defaultMessage: 'Resize table',
|
|
31
|
+
description: 'Tooltip displayed on custom table width resize hande'
|
|
32
|
+
},
|
|
33
|
+
insertColumn: {
|
|
34
|
+
id: 'fabric.editor.insertColumn',
|
|
35
|
+
defaultMessage: 'Insert column right',
|
|
36
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
37
|
+
},
|
|
38
|
+
removeColumns: {
|
|
39
|
+
id: 'fabric.editor.removeColumns',
|
|
40
|
+
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
41
|
+
description: 'Deletes a table column.'
|
|
42
|
+
},
|
|
43
|
+
insertRow: {
|
|
44
|
+
id: 'fabric.editor.insertRow',
|
|
45
|
+
defaultMessage: 'Insert row below',
|
|
46
|
+
description: 'Inserts a new row below the selected row.'
|
|
47
|
+
},
|
|
48
|
+
removeRows: {
|
|
49
|
+
id: 'fabric.editor.removeRows',
|
|
50
|
+
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
51
|
+
description: 'Deletes a table row.'
|
|
52
|
+
},
|
|
53
|
+
cellOptions: {
|
|
54
|
+
id: 'fabric.editor.cellOptions',
|
|
55
|
+
defaultMessage: 'Cell options',
|
|
56
|
+
description: 'Opens a menu with options for the current table cell.'
|
|
57
|
+
},
|
|
58
|
+
confirmDeleteLinkedModalOKButton: {
|
|
59
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalOKButton',
|
|
60
|
+
defaultMessage: 'Delete',
|
|
61
|
+
description: 'Action button label for confirm modal when deleting a table linked to an extension.'
|
|
62
|
+
},
|
|
63
|
+
confirmDeleteLinkedModalMessage: {
|
|
64
|
+
id: 'fabric.editor.tables.confirmDeleteLinkedModalMessage',
|
|
65
|
+
defaultMessage: 'Deleting {nodeName} will break anything connected to it.',
|
|
66
|
+
description: 'Message for confirm modal when deleting a table linked to an extension.'
|
|
67
|
+
},
|
|
68
|
+
confirmDeleteLinkedModalMessagePrefix: {
|
|
69
|
+
id: 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix',
|
|
70
|
+
defaultMessage: 'Deleting',
|
|
71
|
+
description: 'prefix for confirmation dialog text'
|
|
72
|
+
},
|
|
73
|
+
confirmModalCheckboxLabel: {
|
|
74
|
+
id: 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel',
|
|
75
|
+
defaultMessage: 'Also delete connected elements',
|
|
76
|
+
description: 'checkbox label text'
|
|
77
|
+
},
|
|
78
|
+
deleteElementTitle: {
|
|
79
|
+
id: 'fabric.editor.extension.deleteElementTitle',
|
|
80
|
+
defaultMessage: 'Delete element',
|
|
81
|
+
description: 'Title text for confirm modal when deleting an extension linked to a data consumer.'
|
|
82
|
+
},
|
|
83
|
+
unnamedSource: {
|
|
84
|
+
id: 'fabric.editor.extension.sourceNoTitledName',
|
|
85
|
+
defaultMessage: 'this element',
|
|
86
|
+
description: 'The current element without preset name been selected'
|
|
87
|
+
},
|
|
88
|
+
adjustColumns: {
|
|
89
|
+
id: 'fabric.editor.tables.adjustColumn',
|
|
90
|
+
defaultMessage: 'Adjust column',
|
|
91
|
+
description: 'Tooltip displayed on table column resize handle'
|
|
92
|
+
},
|
|
93
|
+
cornerControl: {
|
|
94
|
+
id: 'fabric.editor.cornerControl',
|
|
95
|
+
defaultMessage: 'Highlight table',
|
|
96
|
+
description: 'A button on the upper left corner of the table that shows up when the table is in focus. Clicking on it will select the entire table.'
|
|
97
|
+
},
|
|
98
|
+
cellBackground: {
|
|
99
|
+
id: 'fabric.editor.cellBackground',
|
|
100
|
+
defaultMessage: 'Cell background',
|
|
101
|
+
description: 'Change the background color of a table cell.'
|
|
102
|
+
},
|
|
103
|
+
mergeCells: {
|
|
104
|
+
id: 'fabric.editor.mergeCells',
|
|
105
|
+
defaultMessage: 'Merge cells',
|
|
106
|
+
description: 'Merge tables cells together.'
|
|
107
|
+
},
|
|
108
|
+
splitCell: {
|
|
109
|
+
id: 'fabric.editor.splitCell',
|
|
110
|
+
defaultMessage: 'Split cell',
|
|
111
|
+
description: 'Split a merged table cell.'
|
|
112
|
+
},
|
|
113
|
+
clearCells: {
|
|
114
|
+
id: 'fabric.editor.clearCells',
|
|
115
|
+
defaultMessage: 'Clear {0, plural, one {cell} other {cells}}',
|
|
116
|
+
description: 'Clears the contents of the selected cells (this does not delete the cells themselves).'
|
|
117
|
+
},
|
|
118
|
+
sortColumnASC: {
|
|
119
|
+
id: 'fabric.editor.sortColumnASC',
|
|
120
|
+
defaultMessage: 'Sort column A → Z',
|
|
121
|
+
description: 'Sort column in ascending order'
|
|
122
|
+
},
|
|
123
|
+
sortColumnDESC: {
|
|
124
|
+
id: 'fabric.editor.sortColumnDESC',
|
|
125
|
+
defaultMessage: 'Sort column Z → A',
|
|
126
|
+
description: 'Sort column in descending order'
|
|
127
|
+
},
|
|
128
|
+
canNotSortTable: {
|
|
129
|
+
id: 'fabric.editor.canNotSortTable',
|
|
130
|
+
defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
|
|
131
|
+
description: "Split your cells to enable this feature"
|
|
132
|
+
},
|
|
133
|
+
distributeColumns: {
|
|
134
|
+
id: 'fabric.editor.distributeColumns',
|
|
135
|
+
defaultMessage: "Distribute columns",
|
|
136
|
+
description: "Distribute widths between selected columns"
|
|
137
|
+
},
|
|
138
|
+
rowControl: {
|
|
139
|
+
id: 'fabric.editor.rowControl',
|
|
140
|
+
defaultMessage: 'Highlight row',
|
|
141
|
+
description: 'A button on the left of each row that shows up when the table is in focus. Clicking on it will select the entire row.'
|
|
142
|
+
}
|
|
143
|
+
});
|
|
@@ -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.17.
|
|
9
|
+
var packageVersion = "76.17.2";
|
|
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
|
|
@@ -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.17.
|
|
22
|
+
var packageVersion = "76.17.2";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -11,6 +11,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
11
11
|
export { messages as cardMessages } from './card';
|
|
12
12
|
export { messages as fullPageMessages } from './full-page';
|
|
13
13
|
export { toolbarMessages } from './toolbar';
|
|
14
|
+
export { messages as tableMessages } from './table';
|
|
14
15
|
export { messages as listMessages } from './list';
|
|
15
16
|
export { messages as undoRedoMessages } from './undo-redo';
|
|
16
17
|
export { messages as statusMessages } from './status';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
tableOptions: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
headerRow: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
headerColumn: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
numberedColumn: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
collapseTable: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
resizeTable: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
insertColumn: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
removeColumns: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
insertRow: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
removeRows: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
cellOptions: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
confirmDeleteLinkedModalOKButton: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
confirmDeleteLinkedModalMessage: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
confirmDeleteLinkedModalMessagePrefix: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
confirmModalCheckboxLabel: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
deleteElementTitle: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
unnamedSource: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
adjustColumns: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
cornerControl: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
cellBackground: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
mergeCells: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
splitCell: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
clearCells: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
sortColumnASC: {
|
|
118
|
+
id: string;
|
|
119
|
+
defaultMessage: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
sortColumnDESC: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
canNotSortTable: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
distributeColumns: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
rowControl: {
|
|
138
|
+
id: string;
|
|
139
|
+
defaultMessage: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
@@ -11,6 +11,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
11
11
|
export { messages as cardMessages } from './card';
|
|
12
12
|
export { messages as fullPageMessages } from './full-page';
|
|
13
13
|
export { toolbarMessages } from './toolbar';
|
|
14
|
+
export { messages as tableMessages } from './table';
|
|
14
15
|
export { messages as listMessages } from './list';
|
|
15
16
|
export { messages as undoRedoMessages } from './undo-redo';
|
|
16
17
|
export { messages as statusMessages } from './status';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
tableOptions: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
headerRow: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
headerColumn: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
numberedColumn: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
collapseTable: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
resizeTable: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
insertColumn: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
removeColumns: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
insertRow: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
removeRows: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
cellOptions: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
confirmDeleteLinkedModalOKButton: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
confirmDeleteLinkedModalMessage: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
confirmDeleteLinkedModalMessagePrefix: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
confirmModalCheckboxLabel: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
deleteElementTitle: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
unnamedSource: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
adjustColumns: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
cornerControl: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
cellBackground: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
mergeCells: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
splitCell: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
clearCells: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
sortColumnASC: {
|
|
118
|
+
id: string;
|
|
119
|
+
defaultMessage: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
sortColumnDESC: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
canNotSortTable: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
distributeColumns: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
rowControl: {
|
|
138
|
+
id: string;
|
|
139
|
+
defaultMessage: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.17.
|
|
3
|
+
"version": "76.17.2",
|
|
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/"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
93
93
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
94
94
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
95
|
-
"@atlaskit/button": "^16.
|
|
95
|
+
"@atlaskit/button": "^16.12.0",
|
|
96
96
|
"@atlaskit/code": "^14.6.0",
|
|
97
97
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
98
98
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|