@atlaskit/editor-common 74.29.3 → 74.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/i18n/cs.js +19 -0
- package/dist/cjs/i18n/da.js +19 -0
- package/dist/cjs/i18n/de.js +19 -0
- package/dist/cjs/i18n/es.js +19 -0
- package/dist/cjs/i18n/fi.js +19 -0
- package/dist/cjs/i18n/fr.js +19 -0
- package/dist/cjs/i18n/hu.js +19 -0
- package/dist/cjs/i18n/it.js +19 -0
- package/dist/cjs/i18n/ja.js +19 -0
- package/dist/cjs/i18n/ko.js +19 -0
- package/dist/cjs/i18n/nb.js +19 -0
- package/dist/cjs/i18n/nl.js +19 -0
- package/dist/cjs/i18n/pl.js +19 -0
- package/dist/cjs/i18n/pt_BR.js +19 -0
- package/dist/cjs/i18n/ru.js +19 -0
- package/dist/cjs/i18n/sv.js +19 -0
- package/dist/cjs/i18n/th.js +19 -0
- package/dist/cjs/i18n/tr.js +19 -0
- package/dist/cjs/i18n/uk.js +19 -0
- package/dist/cjs/i18n/vi.js +19 -0
- package/dist/cjs/i18n/zh.js +19 -0
- package/dist/cjs/i18n/zh_TW.js +19 -0
- package/dist/cjs/lists/analytics.js +40 -0
- package/dist/cjs/lists/indentation.js +24 -0
- package/dist/cjs/lists/index.js +89 -0
- package/dist/cjs/lists/node.js +97 -0
- package/dist/cjs/lists/replace-content.js +24 -0
- package/dist/cjs/lists/selection.js +59 -0
- package/dist/cjs/mark/commands.js +201 -0
- package/dist/cjs/mark/index.js +30 -0
- package/dist/cjs/messages/full-page.js +25 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +10 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Toolbar/index.js +8 -0
- package/dist/cjs/ui/index.js +7 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +16 -2
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +219 -0
- package/dist/cjs/ui-menu/index.js +23 -4
- package/dist/cjs/utils/commands.js +110 -2
- package/dist/cjs/utils/document.js +26 -1
- package/dist/cjs/utils/index.js +51 -2
- package/dist/cjs/utils/prosemirror/autojoin.js +68 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +19 -0
- package/dist/es2019/i18n/da.js +19 -0
- package/dist/es2019/i18n/de.js +19 -0
- package/dist/es2019/i18n/es.js +19 -0
- package/dist/es2019/i18n/fi.js +19 -0
- package/dist/es2019/i18n/fr.js +19 -0
- package/dist/es2019/i18n/hu.js +19 -0
- package/dist/es2019/i18n/it.js +19 -0
- package/dist/es2019/i18n/ja.js +19 -0
- package/dist/es2019/i18n/ko.js +19 -0
- package/dist/es2019/i18n/nb.js +19 -0
- package/dist/es2019/i18n/nl.js +19 -0
- package/dist/es2019/i18n/pl.js +19 -0
- package/dist/es2019/i18n/pt_BR.js +19 -0
- package/dist/es2019/i18n/ru.js +19 -0
- package/dist/es2019/i18n/sv.js +19 -0
- package/dist/es2019/i18n/th.js +19 -0
- package/dist/es2019/i18n/tr.js +19 -0
- package/dist/es2019/i18n/uk.js +19 -0
- package/dist/es2019/i18n/vi.js +19 -0
- package/dist/es2019/i18n/zh.js +19 -0
- package/dist/es2019/i18n/zh_TW.js +19 -0
- package/dist/es2019/lists/analytics.js +36 -0
- package/dist/es2019/lists/indentation.js +18 -0
- package/dist/es2019/lists/index.js +6 -0
- package/dist/es2019/lists/node.js +97 -0
- package/dist/es2019/lists/replace-content.js +18 -0
- package/dist/es2019/lists/selection.js +53 -0
- package/dist/es2019/mark/commands.js +205 -0
- package/dist/es2019/mark/index.js +1 -0
- package/dist/es2019/messages/full-page.js +18 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +7 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Toolbar/index.js +1 -0
- package/dist/es2019/ui/index.js +2 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +16 -2
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +209 -0
- package/dist/es2019/ui-menu/index.js +5 -4
- package/dist/es2019/utils/commands.js +106 -2
- package/dist/es2019/utils/document.js +25 -1
- package/dist/es2019/utils/index.js +3 -2
- package/dist/es2019/utils/prosemirror/autojoin.js +57 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +19 -0
- package/dist/esm/i18n/da.js +19 -0
- package/dist/esm/i18n/de.js +19 -0
- package/dist/esm/i18n/es.js +19 -0
- package/dist/esm/i18n/fi.js +19 -0
- package/dist/esm/i18n/fr.js +19 -0
- package/dist/esm/i18n/hu.js +19 -0
- package/dist/esm/i18n/it.js +19 -0
- package/dist/esm/i18n/ja.js +19 -0
- package/dist/esm/i18n/ko.js +19 -0
- package/dist/esm/i18n/nb.js +19 -0
- package/dist/esm/i18n/nl.js +19 -0
- package/dist/esm/i18n/pl.js +19 -0
- package/dist/esm/i18n/pt_BR.js +19 -0
- package/dist/esm/i18n/ru.js +19 -0
- package/dist/esm/i18n/sv.js +19 -0
- package/dist/esm/i18n/th.js +19 -0
- package/dist/esm/i18n/tr.js +19 -0
- package/dist/esm/i18n/uk.js +19 -0
- package/dist/esm/i18n/vi.js +19 -0
- package/dist/esm/i18n/zh.js +19 -0
- package/dist/esm/i18n/zh_TW.js +19 -0
- package/dist/esm/lists/analytics.js +32 -0
- package/dist/esm/lists/indentation.js +17 -0
- package/dist/esm/lists/index.js +6 -0
- package/dist/esm/lists/node.js +87 -0
- package/dist/esm/lists/replace-content.js +17 -0
- package/dist/esm/lists/selection.js +50 -0
- package/dist/esm/mark/commands.js +190 -0
- package/dist/esm/mark/index.js +1 -0
- package/dist/esm/messages/full-page.js +18 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +7 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Toolbar/index.js +1 -0
- package/dist/esm/ui/index.js +2 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +15 -2
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +207 -0
- package/dist/esm/ui-menu/index.js +5 -4
- package/dist/esm/utils/commands.js +104 -2
- package/dist/esm/utils/document.js +25 -1
- package/dist/esm/utils/index.js +3 -2
- package/dist/esm/utils/prosemirror/autojoin.js +63 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +19 -0
- package/dist/types/i18n/da.d.ts +19 -0
- package/dist/types/i18n/de.d.ts +19 -0
- package/dist/types/i18n/es.d.ts +19 -0
- package/dist/types/i18n/fi.d.ts +19 -0
- package/dist/types/i18n/fr.d.ts +19 -0
- package/dist/types/i18n/hu.d.ts +19 -0
- package/dist/types/i18n/it.d.ts +19 -0
- package/dist/types/i18n/ja.d.ts +19 -0
- package/dist/types/i18n/ko.d.ts +19 -0
- package/dist/types/i18n/nb.d.ts +19 -0
- package/dist/types/i18n/nl.d.ts +19 -0
- package/dist/types/i18n/pl.d.ts +19 -0
- package/dist/types/i18n/pt_BR.d.ts +19 -0
- package/dist/types/i18n/ru.d.ts +19 -0
- package/dist/types/i18n/sv.d.ts +19 -0
- package/dist/types/i18n/th.d.ts +19 -0
- package/dist/types/i18n/tr.d.ts +19 -0
- package/dist/types/i18n/uk.d.ts +19 -0
- package/dist/types/i18n/vi.d.ts +19 -0
- package/dist/types/i18n/zh.d.ts +19 -0
- package/dist/types/i18n/zh_TW.d.ts +19 -0
- package/dist/types/lists/analytics.d.ts +4 -0
- package/dist/types/lists/indentation.d.ts +5 -0
- package/dist/types/lists/index.d.ts +6 -0
- package/dist/types/lists/node.d.ts +18 -0
- package/dist/types/lists/replace-content.d.ts +8 -0
- package/dist/types/lists/selection.d.ts +13 -0
- package/dist/types/mark/commands.d.ts +18 -0
- package/dist/types/mark/index.d.ts +1 -0
- package/dist/types/messages/full-page.d.ts +17 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/node-width/index.d.ts +1 -0
- package/dist/types/ui/Toolbar/index.d.ts +5 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui-menu/DropdownMenu/index.d.ts +2 -1
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +30 -0
- package/dist/types/ui-menu/index.d.ts +7 -6
- package/dist/types/utils/commands.d.ts +36 -2
- package/dist/types/utils/document.d.ts +4 -0
- package/dist/types/utils/index.d.ts +4 -2
- package/dist/types/utils/prosemirror/autojoin.d.ts +13 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +19 -0
- package/dist/types-ts4.5/i18n/da.d.ts +19 -0
- package/dist/types-ts4.5/i18n/de.d.ts +19 -0
- package/dist/types-ts4.5/i18n/es.d.ts +19 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +19 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +19 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +19 -0
- package/dist/types-ts4.5/i18n/it.d.ts +19 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +19 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +19 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +19 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +19 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +19 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +19 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +19 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +19 -0
- package/dist/types-ts4.5/i18n/th.d.ts +19 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +19 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +19 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +19 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +19 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +19 -0
- package/dist/types-ts4.5/lists/analytics.d.ts +4 -0
- package/dist/types-ts4.5/lists/indentation.d.ts +5 -0
- package/dist/types-ts4.5/lists/index.d.ts +6 -0
- package/dist/types-ts4.5/lists/node.d.ts +18 -0
- package/dist/types-ts4.5/lists/replace-content.d.ts +8 -0
- package/dist/types-ts4.5/lists/selection.d.ts +13 -0
- package/dist/types-ts4.5/mark/commands.d.ts +18 -0
- package/dist/types-ts4.5/mark/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/full-page.d.ts +17 -0
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/node-width/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/index.d.ts +2 -0
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +2 -1
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +30 -0
- package/dist/types-ts4.5/ui-menu/index.d.ts +7 -6
- package/dist/types-ts4.5/utils/commands.d.ts +42 -2
- package/dist/types-ts4.5/utils/document.d.ts +4 -0
- package/dist/types-ts4.5/utils/index.d.ts +4 -2
- package/dist/types-ts4.5/utils/prosemirror/autojoin.d.ts +13 -0
- package/lists/package.json +15 -0
- package/mark/package.json +15 -0
- package/package.json +6 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { default as DropdownMenu } from '
|
|
2
|
-
export { default as ToolbarButton, TOOLBAR_BUTTON } from '
|
|
3
|
-
export { ArrowKeyNavigationProvider } from '
|
|
4
|
-
export {
|
|
1
|
+
export { default as DropdownMenu, DropdownMenuWithKeyboardNavigation } from './DropdownMenu';
|
|
2
|
+
export { default as ToolbarButton, TOOLBAR_BUTTON } from './ToolbarButton';
|
|
3
|
+
export { ArrowKeyNavigationProvider } from './ArrowKeyNavigationProvider';
|
|
4
|
+
export { ToolbarArrowKeyNavigationProvider, KeyDownHandlerContext } from './ToolbarArrowKeyNavigationProvider';
|
|
5
|
+
export { ArrowKeyNavigationType } from './ArrowKeyNavigationProvider/types';
|
|
5
6
|
export { ColorPaletteArrowKeyNavigationProvider } from './ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider';
|
|
6
7
|
export { default as Dropdown } from './Dropdown';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { GapCursorSelection } from '../selection';
|
|
4
|
+
import { isEmptyParagraph } from './editor-core-utils';
|
|
5
|
+
var filter = function filter(predicates, cmd) {
|
|
2
6
|
return function (state, dispatch, view) {
|
|
3
7
|
if (!Array.isArray(predicates)) {
|
|
4
8
|
predicates = [predicates];
|
|
@@ -10,4 +14,102 @@ export var filter = function filter(predicates, cmd) {
|
|
|
10
14
|
}
|
|
11
15
|
return cmd(state, dispatch, view) || false;
|
|
12
16
|
};
|
|
13
|
-
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Walk forwards from a position until we encounter the (inside) start of
|
|
21
|
+
* the next node, or reach the end of the document.
|
|
22
|
+
*
|
|
23
|
+
* @param $startPos Position to start walking from.
|
|
24
|
+
*/
|
|
25
|
+
export var walkNextNode = function walkNextNode($startPos) {
|
|
26
|
+
var $pos = $startPos;
|
|
27
|
+
|
|
28
|
+
// invariant 1: don't walk past the end of the document
|
|
29
|
+
// invariant 2: we are at the beginning or
|
|
30
|
+
// we haven't walked to the start of *any* node
|
|
31
|
+
// parentOffset includes textOffset.
|
|
32
|
+
while ($pos.pos < $pos.doc.nodeSize - 2 && ($pos.pos === $startPos.pos || $pos.parentOffset > 0)) {
|
|
33
|
+
$pos = $pos.doc.resolve($pos.pos + 1);
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
$pos: $pos,
|
|
37
|
+
foundNode: $pos.pos < $pos.doc.nodeSize - 2
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Walk backwards from a position until we encounter the (inside) end of
|
|
43
|
+
* the previous node, or reach the start of the document.
|
|
44
|
+
*
|
|
45
|
+
* @param $startPos Position to start walking from.
|
|
46
|
+
*/
|
|
47
|
+
export var walkPrevNode = function walkPrevNode($startPos) {
|
|
48
|
+
var $pos = $startPos;
|
|
49
|
+
while ($pos.pos > 0 && ($pos.pos === $startPos.pos || $pos.parentOffset < $pos.parent.nodeSize - 2)) {
|
|
50
|
+
$pos = $pos.doc.resolve($pos.pos - 1);
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
$pos: $pos,
|
|
54
|
+
foundNode: $pos.pos > 0
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* If the selection is empty, is inside a paragraph node and `canNextNodeMoveUp` is true then delete current paragraph
|
|
60
|
+
* and move the node below it up. The selection will be retained, to be placed in the moved node.
|
|
61
|
+
*
|
|
62
|
+
* @param canNextNodeMoveUp check if node directly after the selection is able to be brought up to selection
|
|
63
|
+
* @returns PM Command
|
|
64
|
+
*/
|
|
65
|
+
export var deleteEmptyParagraphAndMoveBlockUp = function deleteEmptyParagraphAndMoveBlockUp(canNextNodeMoveUp) {
|
|
66
|
+
return function (state, dispatch, view) {
|
|
67
|
+
var _state$selection = state.selection,
|
|
68
|
+
_state$selection$$fro = _state$selection.$from,
|
|
69
|
+
pos = _state$selection$$fro.pos,
|
|
70
|
+
parent = _state$selection$$fro.parent,
|
|
71
|
+
$head = _state$selection.$head,
|
|
72
|
+
empty = _state$selection.empty,
|
|
73
|
+
tr = state.tr,
|
|
74
|
+
doc = state.doc;
|
|
75
|
+
var _walkNextNode = walkNextNode($head),
|
|
76
|
+
$pos = _walkNextNode.$pos;
|
|
77
|
+
var nextPMNode = doc.nodeAt($pos.pos - 1);
|
|
78
|
+
if (empty && nextPMNode && canNextNodeMoveUp(nextPMNode) && isEmptyParagraph(parent) && view !== null && view !== void 0 && view.endOfTextblock('right')) {
|
|
79
|
+
tr.deleteRange(pos - 1, pos + 1);
|
|
80
|
+
if (dispatch) {
|
|
81
|
+
dispatch(tr);
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export var insertContentDeleteRange = function insertContentDeleteRange(tr, getSelectionResolvedPos, insertions, deletions) {
|
|
89
|
+
insertions.forEach(function (contentInsert) {
|
|
90
|
+
var _contentInsert = _slicedToArray(contentInsert, 2),
|
|
91
|
+
content = _contentInsert[0],
|
|
92
|
+
pos = _contentInsert[1];
|
|
93
|
+
tr.insert(tr.mapping.map(pos), content);
|
|
94
|
+
});
|
|
95
|
+
deletions.forEach(function (deleteRange) {
|
|
96
|
+
var _deleteRange = _slicedToArray(deleteRange, 2),
|
|
97
|
+
firstPos = _deleteRange[0],
|
|
98
|
+
lastPos = _deleteRange[1];
|
|
99
|
+
tr.delete(tr.mapping.map(firstPos), tr.mapping.map(lastPos));
|
|
100
|
+
});
|
|
101
|
+
tr.setSelection(new TextSelection(getSelectionResolvedPos(tr)));
|
|
102
|
+
};
|
|
103
|
+
export var isEmptySelectionAtStart = function isEmptySelectionAtStart(state) {
|
|
104
|
+
var _state$selection2 = state.selection,
|
|
105
|
+
empty = _state$selection2.empty,
|
|
106
|
+
$from = _state$selection2.$from;
|
|
107
|
+
return empty && ($from.parentOffset === 0 || state.selection instanceof GapCursorSelection);
|
|
108
|
+
};
|
|
109
|
+
export var isEmptySelectionAtEnd = function isEmptySelectionAtEnd(state) {
|
|
110
|
+
var _state$selection3 = state.selection,
|
|
111
|
+
empty = _state$selection3.empty,
|
|
112
|
+
$from = _state$selection3.$from;
|
|
113
|
+
return empty && ($from.end() === $from.pos || state.selection instanceof GapCursorSelection);
|
|
114
|
+
};
|
|
115
|
+
export { filter as filterCommand };
|
|
@@ -243,4 +243,28 @@ var maySanitizePrivateContent = function maySanitizePrivateContent(entity, provi
|
|
|
243
243
|
return sanitizeNodeForPrivacy(entity, providerFactory);
|
|
244
244
|
}
|
|
245
245
|
return entity;
|
|
246
|
-
};
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Returns false if node contains only empty inline nodes and hardBreaks.
|
|
250
|
+
*/
|
|
251
|
+
export function hasVisibleContent(node) {
|
|
252
|
+
var isInlineNodeHasVisibleContent = function isInlineNodeHasVisibleContent(inlineNode) {
|
|
253
|
+
return inlineNode.isText ? !!inlineNode.textContent.trim() : inlineNode.type.name !== 'hardBreak';
|
|
254
|
+
};
|
|
255
|
+
if (node.isInline) {
|
|
256
|
+
return isInlineNodeHasVisibleContent(node);
|
|
257
|
+
} else if (node.isBlock && (node.isLeaf || node.isAtom)) {
|
|
258
|
+
return true;
|
|
259
|
+
} else if (!node.childCount) {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
for (var _index = 0; _index < node.childCount; _index++) {
|
|
263
|
+
var child = node.child(_index);
|
|
264
|
+
var invisibleNodeTypes = ['paragraph', 'text', 'hardBreak'];
|
|
265
|
+
if (!invisibleNodeTypes.includes(child.type.name) || hasVisibleContent(child)) {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return false;
|
|
270
|
+
}
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export { validateADFEntity, validationErrorHandler } from './validate-using-spec
|
|
|
33
33
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
34
34
|
export { useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
|
|
35
35
|
export { isOutdatedBrowser } from './outdated-browsers';
|
|
36
|
+
export { autoJoinTr } from './prosemirror/autojoin';
|
|
36
37
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
|
|
37
38
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
|
|
38
39
|
export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange } from './hyperlink';
|
|
@@ -40,11 +41,11 @@ export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLink
|
|
|
40
41
|
// prosemirror-history does not export its plugin key
|
|
41
42
|
export var pmHistoryPluginKey = 'history$';
|
|
42
43
|
export { gridTypeForLayout } from './grid';
|
|
43
|
-
export { nodesBetweenChanged, getStepRange, isEmptyDocument, processRawValue, hasDocAsParent, bracketTyped } from './document';
|
|
44
|
+
export { nodesBetweenChanged, getStepRange, isEmptyDocument, processRawValue, hasDocAsParent, bracketTyped, hasVisibleContent } from './document';
|
|
44
45
|
export { floatingLayouts, isRichMediaInsideOfBlockNode, calculateSnapPoints, alignAttributes } from './rich-media-utils';
|
|
45
46
|
export { sanitizeNodeForPrivacy } from './filter/privacy-filter';
|
|
46
47
|
export { canRenderDatasource } from './datasource';
|
|
47
|
-
export {
|
|
48
|
+
export { filterCommand, walkPrevNode, walkNextNode, isEmptySelectionAtStart, isEmptySelectionAtEnd, insertContentDeleteRange, deleteEmptyParagraphAndMoveBlockUp } from './commands';
|
|
48
49
|
export function shallowEqual() {
|
|
49
50
|
var obj1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
50
51
|
var obj2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { canJoin } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether two adjacent nodes can be joined. If so, the document
|
|
5
|
+
* will be updated to join those nodes. If not, the original transaction
|
|
6
|
+
* remains untouched.
|
|
7
|
+
*
|
|
8
|
+
* Nodes are considered joinable if the `isJoinable` predicate returns true or,
|
|
9
|
+
* if an array of strings was passed, if their node type name is in that array.
|
|
10
|
+
*
|
|
11
|
+
* Adapted from https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L597-L610
|
|
12
|
+
*/
|
|
13
|
+
export function autoJoinTr(tr, isJoinable) {
|
|
14
|
+
if (Array.isArray(isJoinable)) {
|
|
15
|
+
var types = isJoinable;
|
|
16
|
+
isJoinable = function isJoinable(node) {
|
|
17
|
+
return types.indexOf(node.type.name) > -1;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
var ranges = [];
|
|
21
|
+
for (var i = 0; i < tr.mapping.maps.length; i++) {
|
|
22
|
+
var map = tr.mapping.maps[i];
|
|
23
|
+
for (var j = 0; j < ranges.length; j++) {
|
|
24
|
+
ranges[j] = map.map(ranges[j]);
|
|
25
|
+
}
|
|
26
|
+
map.forEach(function (_s, _e, from, to) {
|
|
27
|
+
return ranges.push(from, to);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Figure out which joinable points exist inside those ranges,
|
|
32
|
+
// by checking all node boundaries in their parent nodes.
|
|
33
|
+
var joinable = [];
|
|
34
|
+
for (var _i = 0; _i < ranges.length; _i += 2) {
|
|
35
|
+
var from = ranges[_i];
|
|
36
|
+
var to = ranges[_i + 1];
|
|
37
|
+
var $from = tr.doc.resolve(from);
|
|
38
|
+
var depth = $from.sharedDepth(to);
|
|
39
|
+
var parent = $from.node(depth);
|
|
40
|
+
for (var index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {
|
|
41
|
+
var _after = parent.maybeChild(index);
|
|
42
|
+
if (!_after) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
if (index && joinable.indexOf(pos) === -1) {
|
|
46
|
+
var _before = parent.child(index - 1);
|
|
47
|
+
if (_before.type === _after.type && isJoinable(_before, _after)) {
|
|
48
|
+
joinable.push(pos);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
pos += _after.nodeSize;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Join the joinable points
|
|
55
|
+
joinable.sort(function (a, b) {
|
|
56
|
+
return a - b;
|
|
57
|
+
});
|
|
58
|
+
for (var _i2 = joinable.length - 1; _i2 >= 0; _i2--) {
|
|
59
|
+
if (canJoin(tr.doc, joinable[_i2])) {
|
|
60
|
+
tr.join(joinable[_i2]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
package/dist/esm/version.json
CHANGED
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.blockDescription': string;
|
|
16
16
|
'fabric.editor.blockTitle': string;
|
|
17
17
|
'fabric.editor.blockquote': string;
|
|
18
|
+
'fabric.editor.bug': string;
|
|
18
19
|
'fabric.editor.cancelButton': string;
|
|
19
20
|
'fabric.editor.captionPlaceholder': string;
|
|
20
21
|
'fabric.editor.cardFloatingControls': string;
|
|
22
|
+
'fabric.editor.clearLink': string;
|
|
23
|
+
'fabric.editor.clearLinkText': string;
|
|
21
24
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
22
25
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
23
26
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
@@ -32,11 +35,13 @@ declare const _default: {
|
|
|
32
35
|
'fabric.editor.date.description': string;
|
|
33
36
|
'fabric.editor.decision': string;
|
|
34
37
|
'fabric.editor.decision.description': string;
|
|
38
|
+
'fabric.editor.defaultAltText': string;
|
|
35
39
|
'fabric.editor.displayBlock': string;
|
|
36
40
|
'fabric.editor.displayEmbed': string;
|
|
37
41
|
'fabric.editor.displayInline': string;
|
|
38
42
|
'fabric.editor.displayLink': string;
|
|
39
43
|
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
44
|
+
'fabric.editor.displayText': string;
|
|
40
45
|
'fabric.editor.ecombedDescription': string;
|
|
41
46
|
'fabric.editor.edit.datasource': string;
|
|
42
47
|
'fabric.editor.editLink': string;
|
|
@@ -45,6 +50,7 @@ declare const _default: {
|
|
|
45
50
|
'fabric.editor.emoji': string;
|
|
46
51
|
'fabric.editor.emoji.description': string;
|
|
47
52
|
'fabric.editor.emptyLink': string;
|
|
53
|
+
'fabric.editor.epic': string;
|
|
48
54
|
'fabric.editor.expand': string;
|
|
49
55
|
'fabric.editor.expand.description': string;
|
|
50
56
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -52,12 +58,22 @@ declare const _default: {
|
|
|
52
58
|
'fabric.editor.expandPlaceholder': string;
|
|
53
59
|
'fabric.editor.feedbackDialog': string;
|
|
54
60
|
'fabric.editor.feedbackDialog.description': string;
|
|
61
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
62
|
+
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
63
|
+
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
64
|
+
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
65
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
66
|
+
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
55
67
|
'fabric.editor.help': string;
|
|
56
68
|
'fabric.editor.help.description': string;
|
|
57
69
|
'fabric.editor.horizontalRule': string;
|
|
58
70
|
'fabric.editor.horizontalRule.description': string;
|
|
71
|
+
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
72
|
+
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
73
|
+
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
59
74
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
60
75
|
'fabric.editor.image': string;
|
|
76
|
+
'fabric.editor.improvement': string;
|
|
61
77
|
'fabric.editor.inlineDescription': string;
|
|
62
78
|
'fabric.editor.inlineTitle': string;
|
|
63
79
|
'fabric.editor.insertMenu': string;
|
|
@@ -83,8 +99,11 @@ declare const _default: {
|
|
|
83
99
|
'fabric.editor.settingsLinks': string;
|
|
84
100
|
'fabric.editor.status': string;
|
|
85
101
|
'fabric.editor.status.description': string;
|
|
102
|
+
'fabric.editor.story': string;
|
|
103
|
+
'fabric.editor.subTask': string;
|
|
86
104
|
'fabric.editor.table': string;
|
|
87
105
|
'fabric.editor.table.description': string;
|
|
106
|
+
'fabric.editor.task': string;
|
|
88
107
|
'fabric.editor.time.ago': string;
|
|
89
108
|
'fabric.editor.time.updated': string;
|
|
90
109
|
'fabric.editor.time.viewed': string;
|