@atlaskit/editor-core 149.0.2 → 150.0.3

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 (247) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/cjs/create-editor/create-plugins-list.js +2 -1
  3. package/dist/cjs/i18n/cs.js +18 -2
  4. package/dist/cjs/i18n/da.js +18 -2
  5. package/dist/cjs/i18n/de.js +18 -2
  6. package/dist/cjs/i18n/es.js +13 -2
  7. package/dist/cjs/i18n/et.js +0 -1
  8. package/dist/cjs/i18n/fi.js +13 -2
  9. package/dist/cjs/i18n/fr.js +13 -2
  10. package/dist/cjs/i18n/hu.js +14 -3
  11. package/dist/cjs/i18n/it.js +18 -2
  12. package/dist/cjs/i18n/ja.js +13 -2
  13. package/dist/cjs/i18n/ko.js +13 -2
  14. package/dist/cjs/i18n/nb.js +13 -2
  15. package/dist/cjs/i18n/nl.js +18 -2
  16. package/dist/cjs/i18n/pl.js +16 -2
  17. package/dist/cjs/i18n/pt_BR.js +14 -3
  18. package/dist/cjs/i18n/pt_PT.js +0 -1
  19. package/dist/cjs/i18n/ru.js +13 -2
  20. package/dist/cjs/i18n/sk.js +0 -1
  21. package/dist/cjs/i18n/sv.js +18 -2
  22. package/dist/cjs/i18n/th.js +18 -2
  23. package/dist/cjs/i18n/tr.js +16 -2
  24. package/dist/cjs/i18n/uk.js +18 -2
  25. package/dist/cjs/i18n/vi.js +13 -2
  26. package/dist/cjs/i18n/zh.js +18 -2
  27. package/dist/cjs/i18n/zh_TW.js +18 -2
  28. package/dist/cjs/messages.js +4 -4
  29. package/dist/cjs/plugins/analytics/types/enums.js +0 -1
  30. package/dist/cjs/plugins/analytics/types/node-events.js +1 -0
  31. package/dist/cjs/plugins/collab-edit/ui/to-avatar.js +4 -8
  32. package/dist/cjs/plugins/floating-toolbar/ui/{EditorHideEmojiIcon.js → EditorRemoveEmojiIcon.js} +2 -2
  33. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +5 -2
  34. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.test.js +14 -0
  35. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +19 -22
  36. package/dist/cjs/plugins/layout/actions.js +70 -16
  37. package/dist/cjs/plugins/layout/index.js +3 -2
  38. package/dist/cjs/plugins/layout/pm-plugins/main.js +3 -1
  39. package/dist/cjs/plugins/layout/toolbar-messages.js +5 -0
  40. package/dist/cjs/plugins/layout/toolbar.js +11 -2
  41. package/dist/cjs/plugins/list/pm-plugins/main.js +0 -38
  42. package/dist/cjs/plugins/mentions/analytics.js +2 -3
  43. package/dist/cjs/plugins/mentions/type-ahead/index.js +46 -15
  44. package/dist/cjs/plugins/panel/nodeviews/panel.js +7 -3
  45. package/dist/cjs/plugins/panel/toolbar.js +8 -6
  46. package/dist/cjs/plugins/panel/toolbar.test.js +25 -11
  47. package/dist/cjs/plugins/table/commands/insert.js +25 -10
  48. package/dist/cjs/plugins/table/commands/misc.js +3 -3
  49. package/dist/cjs/plugins/table/nodeviews/TableComponent.js +5 -4
  50. package/dist/cjs/plugins/table/nodeviews/tableCell.js +20 -6
  51. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -1
  52. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +1 -0
  53. package/dist/cjs/plugins/table/toolbar.js +4 -4
  54. package/dist/cjs/plugins/table/transforms/column-width.js +72 -12
  55. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  56. package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  57. package/dist/cjs/plugins/table/utils/table.js +17 -2
  58. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +3 -7
  59. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
  60. package/dist/cjs/ui/ColorPickerButton/index.js +5 -2
  61. package/dist/cjs/ui/ColorPickerButton/index.test.js +16 -0
  62. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +2 -4
  63. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
  64. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  65. package/dist/cjs/version-wrapper.js +1 -1
  66. package/dist/cjs/version.json +1 -1
  67. package/dist/es2019/create-editor/create-plugins-list.js +2 -1
  68. package/dist/es2019/i18n/cs.js +18 -2
  69. package/dist/es2019/i18n/da.js +18 -2
  70. package/dist/es2019/i18n/de.js +18 -2
  71. package/dist/es2019/i18n/es.js +13 -2
  72. package/dist/es2019/i18n/et.js +0 -1
  73. package/dist/es2019/i18n/fi.js +13 -2
  74. package/dist/es2019/i18n/fr.js +13 -2
  75. package/dist/es2019/i18n/hu.js +14 -3
  76. package/dist/es2019/i18n/it.js +18 -2
  77. package/dist/es2019/i18n/ja.js +13 -2
  78. package/dist/es2019/i18n/ko.js +13 -2
  79. package/dist/es2019/i18n/nb.js +13 -2
  80. package/dist/es2019/i18n/nl.js +18 -2
  81. package/dist/es2019/i18n/pl.js +16 -2
  82. package/dist/es2019/i18n/pt_BR.js +14 -3
  83. package/dist/es2019/i18n/pt_PT.js +0 -1
  84. package/dist/es2019/i18n/ru.js +13 -2
  85. package/dist/es2019/i18n/sk.js +0 -1
  86. package/dist/es2019/i18n/sv.js +18 -2
  87. package/dist/es2019/i18n/th.js +18 -2
  88. package/dist/es2019/i18n/tr.js +16 -2
  89. package/dist/es2019/i18n/uk.js +18 -2
  90. package/dist/es2019/i18n/vi.js +13 -2
  91. package/dist/es2019/i18n/zh.js +18 -2
  92. package/dist/es2019/i18n/zh_TW.js +18 -2
  93. package/dist/es2019/messages.js +4 -4
  94. package/dist/es2019/plugins/analytics/types/enums.js +0 -1
  95. package/dist/es2019/plugins/analytics/types/node-events.js +1 -0
  96. package/dist/es2019/plugins/collab-edit/ui/to-avatar.js +2 -6
  97. package/dist/es2019/plugins/floating-toolbar/ui/{EditorHideEmojiIcon.js → EditorRemoveEmojiIcon.js} +1 -1
  98. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +5 -3
  99. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.test.js +14 -0
  100. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +20 -23
  101. package/dist/es2019/plugins/layout/actions.js +64 -13
  102. package/dist/es2019/plugins/layout/index.js +3 -2
  103. package/dist/es2019/plugins/layout/pm-plugins/main.js +3 -1
  104. package/dist/es2019/plugins/layout/toolbar-messages.js +5 -0
  105. package/dist/es2019/plugins/layout/toolbar.js +10 -2
  106. package/dist/es2019/plugins/list/pm-plugins/main.js +1 -41
  107. package/dist/es2019/plugins/mentions/analytics.js +2 -3
  108. package/dist/es2019/plugins/mentions/type-ahead/index.js +30 -17
  109. package/dist/es2019/plugins/panel/nodeviews/panel.js +5 -3
  110. package/dist/es2019/plugins/panel/toolbar.js +8 -6
  111. package/dist/es2019/plugins/panel/toolbar.test.js +18 -8
  112. package/dist/es2019/plugins/table/commands/insert.js +27 -12
  113. package/dist/es2019/plugins/table/commands/misc.js +3 -3
  114. package/dist/es2019/plugins/table/nodeviews/TableComponent.js +5 -4
  115. package/dist/es2019/plugins/table/nodeviews/tableCell.js +19 -6
  116. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +1 -2
  117. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +1 -1
  118. package/dist/es2019/plugins/table/toolbar.js +4 -4
  119. package/dist/es2019/plugins/table/transforms/column-width.js +62 -11
  120. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  121. package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  122. package/dist/es2019/plugins/table/utils/table.js +7 -1
  123. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +3 -7
  124. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  125. package/dist/es2019/ui/ColorPickerButton/index.js +6 -3
  126. package/dist/es2019/ui/ColorPickerButton/index.test.js +15 -0
  127. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +3 -4
  128. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +2 -3
  129. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  130. package/dist/es2019/version-wrapper.js +1 -1
  131. package/dist/es2019/version.json +1 -1
  132. package/dist/esm/create-editor/create-plugins-list.js +2 -1
  133. package/dist/esm/i18n/cs.js +18 -2
  134. package/dist/esm/i18n/da.js +18 -2
  135. package/dist/esm/i18n/de.js +18 -2
  136. package/dist/esm/i18n/es.js +13 -2
  137. package/dist/esm/i18n/et.js +0 -1
  138. package/dist/esm/i18n/fi.js +13 -2
  139. package/dist/esm/i18n/fr.js +13 -2
  140. package/dist/esm/i18n/hu.js +14 -3
  141. package/dist/esm/i18n/it.js +18 -2
  142. package/dist/esm/i18n/ja.js +13 -2
  143. package/dist/esm/i18n/ko.js +13 -2
  144. package/dist/esm/i18n/nb.js +13 -2
  145. package/dist/esm/i18n/nl.js +18 -2
  146. package/dist/esm/i18n/pl.js +16 -2
  147. package/dist/esm/i18n/pt_BR.js +14 -3
  148. package/dist/esm/i18n/pt_PT.js +0 -1
  149. package/dist/esm/i18n/ru.js +13 -2
  150. package/dist/esm/i18n/sk.js +0 -1
  151. package/dist/esm/i18n/sv.js +18 -2
  152. package/dist/esm/i18n/th.js +18 -2
  153. package/dist/esm/i18n/tr.js +16 -2
  154. package/dist/esm/i18n/uk.js +18 -2
  155. package/dist/esm/i18n/vi.js +13 -2
  156. package/dist/esm/i18n/zh.js +18 -2
  157. package/dist/esm/i18n/zh_TW.js +18 -2
  158. package/dist/esm/messages.js +4 -4
  159. package/dist/esm/plugins/analytics/types/enums.js +0 -1
  160. package/dist/esm/plugins/analytics/types/node-events.js +1 -0
  161. package/dist/esm/plugins/collab-edit/ui/to-avatar.js +4 -8
  162. package/dist/esm/plugins/floating-toolbar/ui/{EditorHideEmojiIcon.js → EditorRemoveEmojiIcon.js} +1 -1
  163. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +6 -3
  164. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.test.js +14 -0
  165. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +20 -23
  166. package/dist/esm/plugins/layout/actions.js +66 -13
  167. package/dist/esm/plugins/layout/index.js +3 -2
  168. package/dist/esm/plugins/layout/pm-plugins/main.js +3 -1
  169. package/dist/esm/plugins/layout/toolbar-messages.js +5 -0
  170. package/dist/esm/plugins/layout/toolbar.js +10 -2
  171. package/dist/esm/plugins/list/pm-plugins/main.js +1 -37
  172. package/dist/esm/plugins/mentions/analytics.js +2 -3
  173. package/dist/esm/plugins/mentions/type-ahead/index.js +46 -15
  174. package/dist/esm/plugins/panel/nodeviews/panel.js +5 -3
  175. package/dist/esm/plugins/panel/toolbar.js +8 -6
  176. package/dist/esm/plugins/panel/toolbar.test.js +25 -11
  177. package/dist/esm/plugins/table/commands/insert.js +26 -11
  178. package/dist/esm/plugins/table/commands/misc.js +3 -3
  179. package/dist/esm/plugins/table/nodeviews/TableComponent.js +5 -4
  180. package/dist/esm/plugins/table/nodeviews/tableCell.js +21 -7
  181. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +1 -2
  182. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +1 -1
  183. package/dist/esm/plugins/table/toolbar.js +4 -4
  184. package/dist/esm/plugins/table/transforms/column-width.js +62 -10
  185. package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  186. package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  187. package/dist/esm/plugins/table/utils/table.js +9 -0
  188. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +3 -7
  189. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  190. package/dist/esm/ui/ColorPickerButton/index.js +6 -3
  191. package/dist/esm/ui/ColorPickerButton/index.test.js +15 -0
  192. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +2 -3
  193. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  194. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  195. package/dist/esm/version-wrapper.js +1 -1
  196. package/dist/esm/version.json +1 -1
  197. package/dist/types/editor.d.ts +1 -1
  198. package/dist/types/i18n/cs.d.ts +16 -0
  199. package/dist/types/i18n/da.d.ts +16 -0
  200. package/dist/types/i18n/de.d.ts +16 -0
  201. package/dist/types/i18n/es.d.ts +11 -0
  202. package/dist/types/i18n/et.d.ts +0 -1
  203. package/dist/types/i18n/fi.d.ts +11 -0
  204. package/dist/types/i18n/fr.d.ts +11 -0
  205. package/dist/types/i18n/hu.d.ts +11 -0
  206. package/dist/types/i18n/it.d.ts +16 -0
  207. package/dist/types/i18n/ja.d.ts +11 -0
  208. package/dist/types/i18n/ko.d.ts +11 -0
  209. package/dist/types/i18n/nb.d.ts +11 -0
  210. package/dist/types/i18n/nl.d.ts +16 -0
  211. package/dist/types/i18n/pl.d.ts +14 -0
  212. package/dist/types/i18n/pt_BR.d.ts +11 -0
  213. package/dist/types/i18n/pt_PT.d.ts +0 -1
  214. package/dist/types/i18n/ru.d.ts +11 -0
  215. package/dist/types/i18n/sk.d.ts +0 -1
  216. package/dist/types/i18n/sv.d.ts +16 -0
  217. package/dist/types/i18n/th.d.ts +16 -0
  218. package/dist/types/i18n/tr.d.ts +14 -0
  219. package/dist/types/i18n/uk.d.ts +16 -0
  220. package/dist/types/i18n/vi.d.ts +11 -0
  221. package/dist/types/i18n/zh.d.ts +16 -0
  222. package/dist/types/i18n/zh_TW.d.ts +16 -0
  223. package/dist/types/messages.d.ts +1 -1
  224. package/dist/types/plugins/analytics/analytics-queue.d.ts +1 -1
  225. package/dist/types/plugins/analytics/types/enums.d.ts +0 -1
  226. package/dist/types/plugins/analytics/types/general-events.d.ts +1 -1
  227. package/dist/types/plugins/analytics/types/list-events.d.ts +1 -5
  228. package/dist/types/plugins/analytics/types/node-events.d.ts +1 -0
  229. package/dist/types/plugins/collab-edit/ui/to-avatar.d.ts +1 -1
  230. package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
  231. package/dist/types/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.d.ts +1 -0
  232. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +1 -1
  233. package/dist/types/plugins/layout/actions.d.ts +1 -0
  234. package/dist/types/plugins/layout/pm-plugins/types.d.ts +1 -0
  235. package/dist/types/plugins/layout/toolbar-messages.d.ts +5 -0
  236. package/dist/types/plugins/layout/toolbar.d.ts +1 -1
  237. package/dist/types/plugins/layout/types.d.ts +2 -1
  238. package/dist/types/plugins/mentions/analytics.d.ts +1 -1
  239. package/dist/types/plugins/quick-insert/index.d.ts +1 -1
  240. package/dist/types/plugins/table/nodeviews/tableCell.d.ts +1 -1
  241. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -0
  242. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +1 -0
  243. package/dist/types/plugins/table/transforms/column-width.d.ts +10 -0
  244. package/dist/types/plugins/table/utils/table.d.ts +2 -0
  245. package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +1 -1
  246. package/package.json +22 -22
  247. package/dist/types/plugins/floating-toolbar/ui/EditorHideEmojiIcon.d.ts +0 -1
@@ -5,14 +5,24 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.updateColumnWidths = void 0;
8
+ exports.rescaleColumns = exports.updateColumnWidths = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
12
12
  var _tableMap = require("@atlaskit/editor-tables/table-map");
13
13
 
14
+ var _utils = require("../pm-plugins/table-resizing/utils");
15
+
14
16
  var _metadata = require("./metadata");
15
17
 
18
+ var _resizeState = require("../pm-plugins/table-resizing/utils/resize-state");
19
+
20
+ var _misc = require("../pm-plugins/table-resizing/utils/misc");
21
+
22
+ var _editorCommon = require("@atlaskit/editor-common");
23
+
24
+ var _scaleTable = require("../pm-plugins/table-resizing/utils/scale-table");
25
+
16
26
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
17
27
 
18
28
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -105,21 +115,71 @@ var updateColumnWidths = function updateColumnWidths(resizeState, table, start)
105
115
  }
106
116
 
107
117
  var tablePos = start - 1;
108
- var _tr = tr,
109
- selection = _tr.selection;
110
- /* Create a mapping before the table node is replaced to allow the current
111
- * selection to be mapped back to it's original position inside the table.
118
+ var selectionBookmark = tr.selection.getBookmark();
119
+ tr.replaceWith(tablePos, tablePos + table.nodeSize, table.type.createChecked(table.attrs, rows, table.marks));
120
+ /**
121
+ * We want to restore to the original selection but w/o applying the mapping. Function
122
+ * tr.replaceWith puts the selection after the inserted content. We need to manually
123
+ * set the selection back to original state. Mapping in this case doesn't quite work
124
+ * e.g. if we change the content before a selection. This is because mapping
125
+ * means moving it if the content in front of it changed. Instead we can get
126
+ * bookmark of selection.
112
127
  *
113
- * If the mapping from the new 'replaceWith' transaction is used, prosemirror
114
- * will map the selection to after the table as it thinks the original table
115
- * node has been deleted.
128
+ * @see https://github.com/ProseMirror/prosemirror/issues/645
116
129
  */
117
130
 
118
- var originalMap = Object.assign(Object.create(Object.getPrototypeOf(tr.mapping)), tr.mapping);
119
- tr.replaceWith(tablePos, tablePos + table.nodeSize, table.type.createChecked(table.attrs, rows, table.marks)); // restore selection after replacing the table
131
+ return tr.setSelection(selectionBookmark.resolve(tr.doc));
132
+ };
133
+ };
134
+ /**
135
+ * This function is called when user inserts/deletes a column in a table to rescale all columns.
136
+ * This is done manually to avoid a multi-dispatch in TableComponent. See [ED-8288].
137
+ * @param table
138
+ * @param view
139
+ * @returns Updated transaction with rescaled columns for a given table
140
+ */
141
+
142
+
143
+ exports.updateColumnWidths = updateColumnWidths;
144
+
145
+ var rescaleColumns = function rescaleColumns(table, view) {
146
+ return function (tr) {
147
+ if (!view || !(0, _utils.hasTableBeenResized)(table.node)) {
148
+ return tr;
149
+ }
150
+
151
+ var state = view.state;
152
+ var domAtPos = view.domAtPos.bind(view);
153
+ var maybeTable = domAtPos(table.start).node;
154
+ var tableRef = maybeTable.closest('table');
155
+
156
+ if (!tableRef) {
157
+ return tr;
158
+ }
159
+
160
+ var layout = (0, _resizeState.normaliseTableLayout)(tableRef === null || tableRef === void 0 ? void 0 : tableRef.dataset.layout);
161
+ var maxSize = (0, _misc.getTableMaxWidth)({
162
+ table: table.node,
163
+ tableStart: table.start,
164
+ state: state,
165
+ layout: layout,
166
+ dynamicTextSizing: true
167
+ });
168
+ var resizeState = (0, _resizeState.getResizeState)({
169
+ minWidth: _editorCommon.tableCellMinWidth,
170
+ table: table.node,
171
+ start: table.start,
172
+ tableRef: tableRef,
173
+ domAtPos: domAtPos,
174
+ maxSize: maxSize
175
+ });
176
+
177
+ if (resizeState.overflow) {
178
+ resizeState = (0, _scaleTable.scaleTableTo)(resizeState, maxSize);
179
+ }
120
180
 
121
- return tr.setSelection(selection.map(tr.doc, originalMap));
181
+ return updateColumnWidths(resizeState, table.node, table.start)(tr);
122
182
  };
123
183
  };
124
184
 
125
- exports.updateColumnWidths = updateColumnWidths;
185
+ exports.rescaleColumns = rescaleColumns;
@@ -354,7 +354,7 @@ var ContextualMenu = /*#__PURE__*/function (_Component) {
354
354
  break;
355
355
 
356
356
  case 'insert_column':
357
- (0, _commandsWithAnalytics.insertColumnWithAnalytics)(_analytics.INPUT_METHOD.CONTEXT_MENU, selectionRect.right)(state, dispatch);
357
+ (0, _commandsWithAnalytics.insertColumnWithAnalytics)(_analytics.INPUT_METHOD.CONTEXT_MENU, selectionRect.right)(state, dispatch, editorView);
358
358
 
359
359
  _this.toggleOpen();
360
360
 
@@ -228,7 +228,7 @@ var FloatingInsertButton = /*#__PURE__*/function (_React$Component) {
228
228
  event.preventDefault();
229
229
  var state = editorView.state,
230
230
  dispatch = editorView.dispatch;
231
- (0, _commandsWithAnalytics.insertColumnWithAnalytics)(_analytics.INPUT_METHOD.BUTTON, insertColumnButtonIndex)(state, dispatch);
231
+ (0, _commandsWithAnalytics.insertColumnWithAnalytics)(_analytics.INPUT_METHOD.BUTTON, insertColumnButtonIndex)(state, dispatch, editorView);
232
232
  }
233
233
  }
234
234
  }]);
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
- exports.getMergedCellsPositions = void 0;
8
+ exports.colsToRect = exports.getMergedCellsPositions = void 0;
9
+
10
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
7
11
 
8
12
  var _tableMap = require("@atlaskit/editor-tables/table-map");
9
13
 
@@ -30,4 +34,15 @@ var getMergedCellsPositions = function getMergedCellsPositions(tr) {
30
34
  return mergedCells;
31
35
  };
32
36
 
33
- exports.getMergedCellsPositions = getMergedCellsPositions;
37
+ exports.getMergedCellsPositions = getMergedCellsPositions;
38
+
39
+ var colsToRect = function colsToRect(cols, noOfRows) {
40
+ return {
41
+ left: Math.min.apply(Math, (0, _toConsumableArray2.default)(cols)),
42
+ right: Math.max.apply(Math, (0, _toConsumableArray2.default)(cols)) + 1,
43
+ top: 0,
44
+ bottom: noOfRows
45
+ };
46
+ };
47
+
48
+ exports.colsToRect = colsToRect;
@@ -175,12 +175,6 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
175
175
  isOpen = _this$state.isOpen,
176
176
  isShowingMoreColors = _this$state.isShowingMoreColors;
177
177
 
178
- if (e.defaultPrevented) {
179
- // This should be handled by stopping propogation, but as an additional safety net
180
- // we ignore handled events for the purpose of hiding the popup.
181
- return;
182
- }
183
-
184
178
  if (isOpen === true) {
185
179
  _this.dispatchAnalyticsEvent(_this.buildAnalyticsPalette(_analytics.ACTION.CLOSED, {
186
180
  isShowingMoreColors: isShowingMoreColors,
@@ -266,13 +260,15 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
266
260
  label: ""
267
261
  })))
268
262
  })
263
+ }, /*#__PURE__*/_react.default.createElement("div", {
264
+ "data-testid": "text-color-palette"
269
265
  }, /*#__PURE__*/_react.default.createElement(_ColorPalette.default, {
270
266
  palette: palette,
271
267
  onClick: function onClick(color) {
272
268
  return _this2.changeTextColor(color, pluginState.disabled);
273
269
  },
274
270
  selectedColor: pluginState.color
275
- }), showMoreColorsToggle && /*#__PURE__*/_react.default.createElement(_styles2.ShowMoreWrapper, null, /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
271
+ })), showMoreColorsToggle && /*#__PURE__*/_react.default.createElement(_styles2.ShowMoreWrapper, null, /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
276
272
  appearance: "subtle",
277
273
  onClick: this.handleShowMoreToggle,
278
274
  iconBefore: /*#__PURE__*/_react.default.createElement(_backgroundColor.default, {
@@ -23,8 +23,6 @@ var _constants = require("@atlaskit/theme/constants");
23
23
 
24
24
  var _colors = require("@atlaskit/theme/colors");
25
25
 
26
- var _math = require("@atlaskit/theme/math");
27
-
28
26
  var _analytics = require("../../analytics");
29
27
 
30
28
  var _TypeAheadList = require("./TypeAheadList");
@@ -35,7 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
35
33
 
36
34
  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; }
37
35
 
38
- var TypeAheadContent = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 1px ", ", 0 4px 8px -2px ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), _colors.N0, (0, _constants.borderRadius)(), _colors.N60A, _colors.N50A, (0, _math.divide)(_constants.gridSize, 2));
36
+ var TypeAheadContent = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 1px ", ", 0 4px 8px -2px ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), _colors.N0, (0, _constants.borderRadius)(), _colors.N60A, _colors.N50A, (0, _constants.gridSize)() / 2);
39
37
 
40
38
  var Highlight = function Highlight(_ref) {
41
39
  var state = _ref.state,
@@ -57,6 +57,8 @@ var ColorPickerButton = function ColorPickerButton(props) {
57
57
  setIsPopupOpen(!isPopupOpen);
58
58
  };
59
59
 
60
+ var ColorPaletteWithListeners = (0, _editorCommon.withOuterListeners)(_ColorPalette.default);
61
+
60
62
  var onColorSelected = function onColorSelected(color, label) {
61
63
  setIsPopupOpen(false);
62
64
 
@@ -95,11 +97,12 @@ var ColorPickerButton = function ColorPickerButton(props) {
95
97
  fitWidth: 350,
96
98
  offset: [0, 10],
97
99
  alignX: props.alignX
98
- }, /*#__PURE__*/_react.default.createElement(ColorPickerWrapper, null, /*#__PURE__*/_react.default.createElement(_ColorPalette.default, {
100
+ }, /*#__PURE__*/_react.default.createElement(ColorPickerWrapper, null, /*#__PURE__*/_react.default.createElement(ColorPaletteWithListeners, {
99
101
  palette: props.colorPalette,
100
102
  cols: props.cols,
101
103
  selectedColor: props.currentColor || null,
102
- onClick: onColorSelected
104
+ onClick: onColorSelected,
105
+ handleClickOutside: togglePopup
103
106
  })));
104
107
  };
105
108
 
@@ -24,6 +24,8 @@ var _types = require("../../plugins/analytics/types");
24
24
 
25
25
  var _consts = require("../../plugins/analytics/consts");
26
26
 
27
+ var _testUtils = require("react-dom/test-utils");
28
+
27
29
  // AFP-2532 TODO: Fix automatic suppressions below
28
30
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
29
31
  describe('color-picker-button', function () {
@@ -64,6 +66,20 @@ describe('color-picker-button', function () {
64
66
  expect(wrapper.find('ColorPalette')).toHaveLength(1);
65
67
  expect(wrapper.find('Color')).toHaveLength(21);
66
68
  });
69
+ it('should close ColorPalette popup after clicking outside', function () {
70
+ var wrapper = getWrapper(); // show the popup
71
+
72
+ wrapper.find('button').simulate('click'); // make sure the popup and picker are shown
73
+
74
+ expect(wrapper.find('Popup')).toHaveLength(1);
75
+ var colorPalette = wrapper.find('InjectIntl(ColorPalette)').instance();
76
+ (0, _testUtils.act)(function () {
77
+ colorPalette.props.handleClickOutside();
78
+ });
79
+ wrapper.update(); // make sure popup is hidden
80
+
81
+ expect(wrapper.find('Popup')).toHaveLength(0);
82
+ });
67
83
  it('should hide popup and call onChange after selecting a color', function () {
68
84
  var wrapper = getWrapper();
69
85
  selectColor(wrapper, 'Mintie'); // ensure popup is hidden
@@ -31,8 +31,6 @@ var _constants = require("@atlaskit/theme/constants");
31
31
 
32
32
  var _messages = require("../messages");
33
33
 
34
- var _math = require("@atlaskit/theme/math");
35
-
36
34
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
37
35
 
38
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -43,11 +41,11 @@ var ExpandContainer = _styledComponents.default.div(_templateObject || (_templat
43
41
 
44
42
  exports.ExpandContainer = ExpandContainer;
45
43
 
46
- var ExpandControl = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: ", "px;\n justify-content: center;\n padding-right: ", "px;\n"])), (0, _math.multiply)(_constants.gridSize, 6), (0, _constants.gridSize)());
44
+ var ExpandControl = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: ", "px;\n justify-content: center;\n padding-right: ", "px;\n"])), (0, _constants.gridSize)() * 6, (0, _constants.gridSize)());
47
45
 
48
46
  exports.ExpandControl = ExpandControl;
49
47
 
50
- var ChevronContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", "px;\n height: ", "px;\n }\n"])), (0, _math.multiply)(_constants.gridSize, 3), (0, _math.multiply)(_constants.gridSize, 3));
48
+ var ChevronContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", "px;\n height: ", "px;\n }\n"])), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3);
51
49
 
52
50
  var LabelContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
53
51
 
@@ -49,8 +49,6 @@ var _utils = require("../utils");
49
49
 
50
50
  var _constants = require("@atlaskit/theme/constants");
51
51
 
52
- var _math = require("@atlaskit/theme/math");
53
-
54
52
  var _colors = require("@atlaskit/theme/colors");
55
53
 
56
54
  var _templateObject, _templateObject2;
@@ -63,7 +61,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
63
61
 
64
62
  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; } }
65
63
 
66
- var ActionsWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), _colors.N40A, (0, _math.multiply)(_constants.gridSize, 2), (0, _math.multiply)(_constants.gridSize, 2));
64
+ var ActionsWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), _colors.N40A, (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 2);
67
65
 
68
66
  var populateFromParameters = function populateFromParameters(parameters, fields) {
69
67
  if (Object.keys(parameters).length) {
@@ -19,8 +19,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
19
19
 
20
20
  var _constants = require("@atlaskit/theme/constants");
21
21
 
22
- var _math = require("@atlaskit/theme/math");
23
-
24
22
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
25
23
 
26
24
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -36,7 +34,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
36
34
  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; }
37
35
 
38
36
  var RemovableFieldWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin-bottom: ", "px;\n"])), function (props) {
39
- return props.hasMarginBottom ? (0, _math.multiply)(_constants.gridSize, 2) : 0;
37
+ return props.hasMarginBottom ? (0, _constants.gridSize)() * 2 : 0;
40
38
  });
41
39
 
42
40
  var RemoveButtonWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])), colors.N80, colors.R300);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.nextMajorVersion = exports.version = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "149.0.2";
9
+ var version = "150.0.3";
10
10
  exports.version = version;
11
11
 
12
12
  var nextMajorVersion = function nextMajorVersion() {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "149.0.2",
3
+ "version": "150.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -307,7 +307,8 @@ export default function createPluginsList(props, prevProps, createAnalyticsEvent
307
307
 
308
308
  if (props.allowLayouts) {
309
309
  preset.add([layoutPlugin, { ...(typeof props.allowLayouts === 'boolean' ? {} : props.allowLayouts),
310
- useLongPressSelection: false
310
+ useLongPressSelection: false,
311
+ UNSAFE_allowSingleColumnLayout: props.allowLayouts.UNSAFE_allowSingleColumnLayout
311
312
  }]);
312
313
  }
313
314
 
@@ -26,6 +26,7 @@ export default {
26
26
  'fabric.editor.blockquote.description': 'Vložit citaci',
27
27
  'fabric.editor.blockquote2': 'Citace',
28
28
  'fabric.editor.bold': 'Tučné',
29
+ 'fabric.editor.bug': 'Chyba',
29
30
  'fabric.editor.canNotSortTable': '⚠️ Tabulku se sloučenými buňkami nelze seřadit',
30
31
  'fabric.editor.cancelButton': 'Zrušit',
31
32
  'fabric.editor.captionPlaceholder': 'Přidejte popisek',
@@ -43,6 +44,7 @@ export default {
43
44
  'fabric.editor.code': 'Kód',
44
45
  'fabric.editor.codeblock': 'Fragment kódu',
45
46
  'fabric.editor.codeblock.description': 'Zobrazit kód se zvýrazněním syntaxe',
47
+ 'fabric.editor.collapseTable': 'Sbalit tabulku',
46
48
  'fabric.editor.columns': 'Rozvržení',
47
49
  'fabric.editor.columns.description': 'Uspořádejte svou stránku pomocí oddílů',
48
50
  'fabric.editor.configFailedToLoad': 'Nepodařilo se načíst',
@@ -71,6 +73,7 @@ export default {
71
73
  'fabric.editor.decision': 'Rozhodnutí',
72
74
  'fabric.editor.decision.description': 'Zaznamenávejte rozhodnutí, aby se snadněji sledovala',
73
75
  'fabric.editor.decisionPlaceholder': 'Přidat rozhodnutí...',
76
+ 'fabric.editor.defaultAltText': 'Položka seznamu',
74
77
  'fabric.editor.displayBlock': 'Zobrazit jako kartu',
75
78
  'fabric.editor.displayEmbed': 'Zobrazit jako vložený objekt',
76
79
  'fabric.editor.displayInline': 'Zobrazit v řádku',
@@ -80,8 +83,11 @@ export default {
80
83
  'fabric.editor.distributeColumns': 'Rozložení sloupců',
81
84
  'fabric.editor.edit': 'Upravit',
82
85
  'fabric.editor.editAltText': 'Upravit alternativní text',
86
+ 'fabric.editor.editDateText': 'Upravit datum',
83
87
  'fabric.editor.editLink': 'Upravit odkaz',
84
88
  'fabric.editor.editMode.inviteToEditButton.title': 'Pozvat k úpravám',
89
+ 'fabric.editor.editStatusColor': 'Upravit barvu stavu',
90
+ 'fabric.editor.editStatusText': 'Upravit stav',
85
91
  'fabric.editor.editorHelp': 'Nápověda editoru.',
86
92
  'fabric.editor.elementBrowser.help': 'Nápověda',
87
93
  'fabric.editor.elementbrowser.categorylist.category-admin': 'Administrace',
@@ -102,6 +108,7 @@ export default {
102
108
  'fabric.editor.emoji': 'Emoji',
103
109
  'fabric.editor.emoji.description': 'Používejte emoji k vyjádření nápadů 🎉 a emocí 😄',
104
110
  'fabric.editor.emptyLink': 'Zadejte odkaz.',
111
+ 'fabric.editor.epic': 'Epic',
105
112
  'fabric.editor.error': 'Chyba',
106
113
  'fabric.editor.errorPanel': 'Panel chyb',
107
114
  'fabric.editor.errorPanel.description': 'Chyby zobrazit v barevném panelu',
@@ -116,6 +123,9 @@ export default {
116
123
  'fabric.editor.findNext': 'Najít další',
117
124
  'fabric.editor.findPrevious': 'Najít předchozí',
118
125
  'fabric.editor.findReplaceToolbarButton': 'Najít a nahradit',
126
+ 'fabric.editor.floatingToolbar.confirmModalCancel': 'Zrušit',
127
+ 'fabric.editor.floatingToolbar.confirmModalHeading': 'Jste si jistí?',
128
+ 'fabric.editor.floatingToolbar.confirmModalOK': 'OK',
119
129
  'fabric.editor.headerColumn': 'Sloupec záhlaví',
120
130
  'fabric.editor.headerRow': 'Řádek záhlaví',
121
131
  'fabric.editor.heading1': 'Nadpis 1',
@@ -137,8 +147,9 @@ export default {
137
147
  'fabric.editor.horizontalRule.description': 'Rozdělit obsah horizontální čárou',
138
148
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Níže se objeví návrhy na základě vámi napsaného textu v poli',
139
149
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {nebyly nalezeny žádné výsledky} one {{count,number} nalezený výsledek} few {{count,number} nalezené výsledky} many {{count,number} nalezeného výsledku} other {{count,number} nalezených výsledků}}',
140
- 'fabric.editor.hyperlinkToolbarPlaceholder': 'Vložit nedávno zobrazený odkaz nebo vyhledávání',
150
+ 'fabric.editor.hyperlinkToolbarPlaceholder': 'Vložit nebo vyhledat odkaz',
141
151
  'fabric.editor.image': 'Obrázek',
152
+ 'fabric.editor.improvement': 'Vylepšení',
142
153
  'fabric.editor.info': 'Informace',
143
154
  'fabric.editor.infoPanel': 'Informační panel',
144
155
  'fabric.editor.infoPanel.description': 'Zvýraznit informace v barevném panelu',
@@ -176,7 +187,7 @@ export default {
176
187
  'fabric.editor.orderedList.description': 'Vytvořit seřazený seznam',
177
188
  'fabric.editor.other': 'Jiné...',
178
189
  'fabric.editor.panel.backgroundColor': 'Barva pozadí',
179
- 'fabric.editor.panel.emoji': 'Přidat ikonu',
190
+ 'fabric.editor.panel.emoji': 'Přidat emoji',
180
191
  'fabric.editor.pastePlainText': 'Vložit prostý text',
181
192
  'fabric.editor.placeholderAltText': 'Popište tento obrázek alternativním textem',
182
193
  'fabric.editor.placeholderText': 'Text placeholderu',
@@ -201,7 +212,9 @@ export default {
201
212
  'fabric.editor.status': 'Stav',
202
213
  'fabric.editor.status.description': 'Přidat vlastní štítek stavu',
203
214
  'fabric.editor.statusPlaceholder': 'Nastavit stav',
215
+ 'fabric.editor.story': 'Story',
204
216
  'fabric.editor.strike': 'Přeškrtnutí',
217
+ 'fabric.editor.subTask': 'Podúkol',
205
218
  'fabric.editor.subscript': 'Dolní index',
206
219
  'fabric.editor.success': 'Úspěch',
207
220
  'fabric.editor.successPanel': 'Panel úspěchů',
@@ -211,6 +224,9 @@ export default {
211
224
  'fabric.editor.table': 'Tabulka',
212
225
  'fabric.editor.table.description': 'Vložit tabulku',
213
226
  'fabric.editor.tableOptions': 'Možnosti tabulky',
227
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Odstraněním této tabulky se odstraní i všechna data obsažená v připojených grafech.',
228
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Odstranit tabulku a data',
229
+ 'fabric.editor.task': 'Úkol',
214
230
  'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
215
231
  'fabric.editor.textColor': 'Barva textu',
216
232
  'fabric.editor.textColor.lessColors': 'Méně barev',
@@ -26,6 +26,7 @@ export default {
26
26
  'fabric.editor.blockquote.description': 'Indsæt citat',
27
27
  'fabric.editor.blockquote2': 'Citat',
28
28
  'fabric.editor.bold': 'Fed',
29
+ 'fabric.editor.bug': 'Fejl',
29
30
  'fabric.editor.canNotSortTable': '⚠️ En tabel med flettede celler kan ikke sorteres',
30
31
  'fabric.editor.cancelButton': 'Annullér',
31
32
  'fabric.editor.captionPlaceholder': 'Tilføj en billedtekst',
@@ -43,6 +44,7 @@ export default {
43
44
  'fabric.editor.code': 'Kode',
44
45
  'fabric.editor.codeblock': 'Kodestump',
45
46
  'fabric.editor.codeblock.description': 'Vis kode med syntaksfremhævning',
47
+ 'fabric.editor.collapseTable': 'Luk tabel',
46
48
  'fabric.editor.columns': 'Layout',
47
49
  'fabric.editor.columns.description': 'Opdel din side i afsnit',
48
50
  'fabric.editor.configFailedToLoad': 'Kunne ikke indlæses',
@@ -71,6 +73,7 @@ export default {
71
73
  'fabric.editor.decision': 'Beslutning',
72
74
  'fabric.editor.decision.description': 'Registrér beslutninger, så de er lette at finde igen',
73
75
  'fabric.editor.decisionPlaceholder': 'Tilføj en beslutning ...',
76
+ 'fabric.editor.defaultAltText': 'Listeelement',
74
77
  'fabric.editor.displayBlock': 'Vis som kort',
75
78
  'fabric.editor.displayEmbed': 'Vis som indlejret',
76
79
  'fabric.editor.displayInline': 'Vis indbygget',
@@ -80,8 +83,11 @@ export default {
80
83
  'fabric.editor.distributeColumns': 'Fordel kolonner',
81
84
  'fabric.editor.edit': 'Redigér',
82
85
  'fabric.editor.editAltText': 'Rediger alternativ tekst',
86
+ 'fabric.editor.editDateText': 'Rediger dato',
83
87
  'fabric.editor.editLink': 'Redigér link',
84
88
  'fabric.editor.editMode.inviteToEditButton.title': 'Invitér til at redigere',
89
+ 'fabric.editor.editStatusColor': 'Rediger statusfarve',
90
+ 'fabric.editor.editStatusText': 'Rediger status',
85
91
  'fabric.editor.editorHelp': 'Hjælp til redigering',
86
92
  'fabric.editor.elementBrowser.help': 'Hjælp',
87
93
  'fabric.editor.elementbrowser.categorylist.category-admin': 'Administration',
@@ -102,6 +108,7 @@ export default {
102
108
  'fabric.editor.emoji': 'Emoji',
103
109
  'fabric.editor.emoji.description': 'Brug humørikoner for at udtrykke idéer 🎉 og følelser 😄',
104
110
  'fabric.editor.emptyLink': 'Indtast et link.',
111
+ 'fabric.editor.epic': 'Epic',
105
112
  'fabric.editor.error': 'Fejl',
106
113
  'fabric.editor.errorPanel': 'Fejlpanel',
107
114
  'fabric.editor.errorPanel.description': 'Vis fejl i et farvel panel',
@@ -116,6 +123,9 @@ export default {
116
123
  'fabric.editor.findNext': 'Find næste',
117
124
  'fabric.editor.findPrevious': 'Find forrige',
118
125
  'fabric.editor.findReplaceToolbarButton': 'Find og erstat',
126
+ 'fabric.editor.floatingToolbar.confirmModalCancel': 'Annuller',
127
+ 'fabric.editor.floatingToolbar.confirmModalHeading': 'Er du sikker?',
128
+ 'fabric.editor.floatingToolbar.confirmModalOK': 'OK',
119
129
  'fabric.editor.headerColumn': 'Overskriftskolonne',
120
130
  'fabric.editor.headerRow': 'Overskriftsrække',
121
131
  'fabric.editor.heading1': 'Overskrift 1',
@@ -137,8 +147,9 @@ export default {
137
147
  'fabric.editor.horizontalRule.description': 'Adskil indhold med en vandret linje',
138
148
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Der vises forslag nedenfor, når du skriver i feltet',
139
149
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {ingen resultater fundet} one {Der blev fundet {count,number} resultat} other {Der blev fundet {count,number} resultater}}',
140
- 'fabric.editor.hyperlinkToolbarPlaceholder': 'Indsæt link, eller søg efter senest viste',
150
+ 'fabric.editor.hyperlinkToolbarPlaceholder': 'Indsæt eller søg efter link',
141
151
  'fabric.editor.image': 'Billeder',
152
+ 'fabric.editor.improvement': 'Forbedring',
142
153
  'fabric.editor.info': 'Info',
143
154
  'fabric.editor.infoPanel': 'Informationspanel',
144
155
  'fabric.editor.infoPanel.description': 'Fremhæv information i et farvet panel',
@@ -176,7 +187,7 @@ export default {
176
187
  'fabric.editor.orderedList.description': 'Opret en sorteret liste',
177
188
  'fabric.editor.other': 'Andre ...',
178
189
  'fabric.editor.panel.backgroundColor': 'Baggrundsfarve',
179
- 'fabric.editor.panel.emoji': 'Tilføj ikon',
190
+ 'fabric.editor.panel.emoji': 'Tilføj emoji',
180
191
  'fabric.editor.pastePlainText': 'Indsæt almindelig tekst',
181
192
  'fabric.editor.placeholderAltText': 'Beskriv billedet med alternativ tekst',
182
193
  'fabric.editor.placeholderText': 'Midlertidig text',
@@ -201,7 +212,9 @@ export default {
201
212
  'fabric.editor.status': 'Status',
202
213
  'fabric.editor.status.description': 'Tilføj en brugerdefineret statusetiket',
203
214
  'fabric.editor.statusPlaceholder': 'Angiv en status',
215
+ 'fabric.editor.story': 'Historie',
204
216
  'fabric.editor.strike': 'Gennemstreget',
217
+ 'fabric.editor.subTask': 'Underopgave',
205
218
  'fabric.editor.subscript': 'Sænket skrift',
206
219
  'fabric.editor.success': 'Succes',
207
220
  'fabric.editor.successPanel': 'Succespanel',
@@ -211,6 +224,9 @@ export default {
211
224
  'fabric.editor.table': 'Tabel',
212
225
  'fabric.editor.table.description': 'Indsæt en tabel',
213
226
  'fabric.editor.tableOptions': 'Egenskaber for tabel',
227
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Hvis du fjerner denne tabel, fjerner du også alle de data, der er i eventuelle tilknyttede diagrammer.',
228
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Fjern tabel og data',
229
+ 'fabric.editor.task': 'Opgave',
214
230
  'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
215
231
  'fabric.editor.textColor': 'Tekstfarve',
216
232
  'fabric.editor.textColor.lessColors': 'Færre farver',
@@ -26,6 +26,7 @@ export default {
26
26
  'fabric.editor.blockquote.description': 'Zitat einfügen',
27
27
  'fabric.editor.blockquote2': 'Zitieren',
28
28
  'fabric.editor.bold': 'Fett',
29
+ 'fabric.editor.bug': 'Bug',
29
30
  'fabric.editor.canNotSortTable': '⚠️ Tabellen mit zusammengeführten Zellen können nicht sortiert werden.',
30
31
  'fabric.editor.cancelButton': 'Abbrechen',
31
32
  'fabric.editor.captionPlaceholder': 'Eine Bildunterschrift hinzufügen',
@@ -43,6 +44,7 @@ export default {
43
44
  'fabric.editor.code': 'Code',
44
45
  'fabric.editor.codeblock': 'Code-Auszug',
45
46
  'fabric.editor.codeblock.description': 'Code mit Syntaxhervorhebungen anzeigen',
47
+ 'fabric.editor.collapseTable': 'Tabelle reduzieren',
46
48
  'fabric.editor.columns': 'Layouts',
47
49
  'fabric.editor.columns.description': 'Seite mithilfe von Abschnitten strukturieren',
48
50
  'fabric.editor.configFailedToLoad': 'Fehler beim Laden',
@@ -71,6 +73,7 @@ export default {
71
73
  'fabric.editor.decision': 'Entscheidung',
72
74
  'fabric.editor.decision.description': 'Entscheidungen erfassen, um sie leicht zu verfolgen',
73
75
  'fabric.editor.decisionPlaceholder': 'Entscheidung hinzufügen …',
76
+ 'fabric.editor.defaultAltText': 'Listenelement',
74
77
  'fabric.editor.displayBlock': 'Karte anzeigen',
75
78
  'fabric.editor.displayEmbed': 'Einbettung anzeigen',
76
79
  'fabric.editor.displayInline': 'Inline anzeigen',
@@ -80,8 +83,11 @@ export default {
80
83
  'fabric.editor.distributeColumns': 'Spalten verteilen',
81
84
  'fabric.editor.edit': 'Bearbeiten',
82
85
  'fabric.editor.editAltText': 'Alternativtext bearbeiten',
86
+ 'fabric.editor.editDateText': 'Datum bearbeiten',
83
87
  'fabric.editor.editLink': 'Link bearbeiten',
84
88
  'fabric.editor.editMode.inviteToEditButton.title': 'Zum Bearbeiten einladen',
89
+ 'fabric.editor.editStatusColor': 'Statusfarbe bearbeiten',
90
+ 'fabric.editor.editStatusText': 'Status bearbeiten',
85
91
  'fabric.editor.editorHelp': 'Editorhilfe',
86
92
  'fabric.editor.elementBrowser.help': 'Hilfe',
87
93
  'fabric.editor.elementbrowser.categorylist.category-admin': 'Administration',
@@ -102,6 +108,7 @@ export default {
102
108
  'fabric.editor.emoji': 'Emoji',
103
109
  'fabric.editor.emoji.description': 'Verwenden Sie Emojis, um Ideen 🎉 und Emotionen 😄 auszudrücken.',
104
110
  'fabric.editor.emptyLink': 'Bitte geben Sie einen Link ein.',
111
+ 'fabric.editor.epic': 'Epic',
105
112
  'fabric.editor.error': 'Fehler',
106
113
  'fabric.editor.errorPanel': 'Fehler-Panel',
107
114
  'fabric.editor.errorPanel.description': 'Fehler in einem farbigen Panel hervorheben',
@@ -116,6 +123,9 @@ export default {
116
123
  'fabric.editor.findNext': 'Nächstes suchen',
117
124
  'fabric.editor.findPrevious': 'Vorheriges suchen',
118
125
  'fabric.editor.findReplaceToolbarButton': 'Suchen und ersetzen',
126
+ 'fabric.editor.floatingToolbar.confirmModalCancel': 'Abbrechen',
127
+ 'fabric.editor.floatingToolbar.confirmModalHeading': 'Sind Sie sicher?',
128
+ 'fabric.editor.floatingToolbar.confirmModalOK': 'OK',
119
129
  'fabric.editor.headerColumn': 'Kopfzeilen-Spalte',
120
130
  'fabric.editor.headerRow': 'Kopfzeile',
121
131
  'fabric.editor.heading1': 'Überschrift 1',
@@ -137,8 +147,9 @@ export default {
137
147
  'fabric.editor.horizontalRule.description': 'Inhalte mithilfe einer horizontalen Linie unterteilen',
138
148
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Während Ihrer Eingabe in das Feld werden Vorschläge angezeigt',
139
149
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {Keine Ergebnisse gefunden} one {{count,number} Ergebnis gefunden} other {{count,number} Ergebnisse gefunden}}',
140
- 'fabric.editor.hyperlinkToolbarPlaceholder': 'Link einfügen oder kürzlich angesehene suchen',
150
+ 'fabric.editor.hyperlinkToolbarPlaceholder': 'Link einfügen oder suchen',
141
151
  'fabric.editor.image': 'Bild',
152
+ 'fabric.editor.improvement': 'Verbesserung',
142
153
  'fabric.editor.info': 'Info',
143
154
  'fabric.editor.infoPanel': 'Info-Panel',
144
155
  'fabric.editor.infoPanel.description': 'Informationen in einem farbigen Panel hervorheben',
@@ -176,7 +187,7 @@ export default {
176
187
  'fabric.editor.orderedList.description': 'Sortierte Liste erstellen',
177
188
  'fabric.editor.other': 'Sonstige …',
178
189
  'fabric.editor.panel.backgroundColor': 'Hintergrundfarbe',
179
- 'fabric.editor.panel.emoji': 'Symbol hinzufügen',
190
+ 'fabric.editor.panel.emoji': 'Emoji hinzufügen',
180
191
  'fabric.editor.pastePlainText': 'Einfachen Text einfügen',
181
192
  'fabric.editor.placeholderAltText': 'Dieses Bild mit Alternativtext beschreiben',
182
193
  'fabric.editor.placeholderText': 'Platzhaltertext',
@@ -201,7 +212,9 @@ export default {
201
212
  'fabric.editor.status': 'Status',
202
213
  'fabric.editor.status.description': 'Benutzerdefiniertes Status-Label hinzufügen',
203
214
  'fabric.editor.statusPlaceholder': 'Status festlegen',
215
+ 'fabric.editor.story': 'Story',
204
216
  'fabric.editor.strike': 'Durchgestrichen',
217
+ 'fabric.editor.subTask': 'Sub-Task',
205
218
  'fabric.editor.subscript': 'Tiefgestellt',
206
219
  'fabric.editor.success': 'Erfolgreich',
207
220
  'fabric.editor.successPanel': 'Erfolgs-Panel',
@@ -211,6 +224,9 @@ export default {
211
224
  'fabric.editor.table': 'Tabelle',
212
225
  'fabric.editor.table.description': 'Tabelle einfügen',
213
226
  'fabric.editor.tableOptions': 'Tabellenoptionen',
227
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Durch das Entfernen dieser Tabelle werden auch alle Daten entfernt, die in verbundenen Diagrammen enthalten sind.',
228
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Tabelle und Daten entfernen',
229
+ 'fabric.editor.task': 'Task',
214
230
  'fabric.editor.taskPlaceholder': 'Geben Sie Ihre Aktion ein und weisen Sie sie mithilfe von „@” jemandem zu.',
215
231
  'fabric.editor.textColor': 'Textfarbe',
216
232
  'fabric.editor.textColor.lessColors': 'Weniger Farben',