@atlaskit/editor-common 76.34.0 → 76.36.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 +53 -1
- package/dist/cjs/collab/index.js +27 -2
- package/dist/cjs/core-utils/document-logger.js +171 -0
- package/dist/cjs/core-utils/index.js +8 -1
- package/dist/cjs/extensibility/Extension/Extension/index.js +151 -0
- package/dist/cjs/extensibility/Extension/Extension/styles.js +17 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +50 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +12 -0
- package/dist/cjs/extensibility/Extension/Lozenge.js +95 -0
- package/dist/cjs/extensibility/Extension/styles.js +30 -0
- package/dist/cjs/extensibility/Extension.js +79 -0
- package/dist/cjs/extensibility/ExtensionComponent.js +252 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +21 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +264 -0
- package/dist/cjs/extensibility/extensionNodeView.js +91 -0
- package/dist/cjs/extensibility/index.js +42 -0
- package/dist/cjs/extensibility/types.js +5 -0
- package/dist/cjs/i18n/cs.js +5 -2
- package/dist/cjs/i18n/da.js +5 -2
- package/dist/cjs/i18n/de.js +5 -2
- package/dist/cjs/i18n/en.js +7 -1
- package/dist/cjs/i18n/en_GB.js +8 -2
- package/dist/cjs/i18n/en_ZZ.js +8 -2
- package/dist/cjs/i18n/es.js +5 -2
- package/dist/cjs/i18n/fi.js +5 -2
- package/dist/cjs/i18n/fr.js +5 -2
- package/dist/cjs/i18n/hu.js +5 -2
- package/dist/cjs/i18n/it.js +5 -2
- package/dist/cjs/i18n/ja.js +1 -2
- package/dist/cjs/i18n/ko.js +5 -2
- package/dist/cjs/i18n/nb.js +1 -2
- package/dist/cjs/i18n/nl.js +5 -2
- package/dist/cjs/i18n/pl.js +5 -2
- package/dist/cjs/i18n/pt_BR.js +5 -2
- package/dist/cjs/i18n/ru.js +5 -2
- package/dist/cjs/i18n/sv.js +5 -2
- package/dist/cjs/i18n/th.js +5 -2
- package/dist/cjs/i18n/tr.js +5 -2
- package/dist/cjs/i18n/uk.js +5 -2
- package/dist/cjs/i18n/vi.js +5 -2
- package/dist/cjs/i18n/zh.js +5 -2
- package/dist/cjs/i18n/zh_TW.js +5 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -2
- package/dist/cjs/monitoring/error.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/collab/index.js +54 -1
- package/dist/es2019/core-utils/document-logger.js +161 -0
- package/dist/es2019/core-utils/index.js +2 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +155 -0
- package/dist/es2019/extensibility/Extension/Extension/styles.js +42 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +26 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +26 -0
- package/dist/es2019/extensibility/Extension/Lozenge.js +71 -0
- package/dist/es2019/extensibility/Extension/styles.js +62 -0
- package/dist/es2019/extensibility/Extension.js +52 -0
- package/dist/es2019/extensibility/ExtensionComponent.js +204 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +13 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +283 -0
- package/dist/es2019/extensibility/extensionNodeView.js +62 -0
- package/dist/es2019/extensibility/index.js +4 -0
- package/dist/es2019/extensibility/types.js +1 -0
- package/dist/es2019/i18n/cs.js +5 -2
- package/dist/es2019/i18n/da.js +5 -2
- package/dist/es2019/i18n/de.js +5 -2
- package/dist/es2019/i18n/en.js +7 -1
- package/dist/es2019/i18n/en_GB.js +8 -2
- package/dist/es2019/i18n/en_ZZ.js +8 -2
- package/dist/es2019/i18n/es.js +5 -2
- package/dist/es2019/i18n/fi.js +5 -2
- package/dist/es2019/i18n/fr.js +5 -2
- package/dist/es2019/i18n/hu.js +5 -2
- package/dist/es2019/i18n/it.js +5 -2
- package/dist/es2019/i18n/ja.js +1 -2
- package/dist/es2019/i18n/ko.js +5 -2
- package/dist/es2019/i18n/nb.js +1 -2
- package/dist/es2019/i18n/nl.js +5 -2
- package/dist/es2019/i18n/pl.js +5 -2
- package/dist/es2019/i18n/pt_BR.js +5 -2
- package/dist/es2019/i18n/ru.js +5 -2
- package/dist/es2019/i18n/sv.js +5 -2
- package/dist/es2019/i18n/th.js +5 -2
- package/dist/es2019/i18n/tr.js +5 -2
- package/dist/es2019/i18n/uk.js +5 -2
- package/dist/es2019/i18n/vi.js +5 -2
- package/dist/es2019/i18n/zh.js +5 -2
- package/dist/es2019/i18n/zh_TW.js +5 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -4
- package/dist/es2019/monitoring/error.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/collab/index.js +23 -1
- package/dist/esm/core-utils/document-logger.js +165 -0
- package/dist/esm/core-utils/index.js +2 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +146 -0
- package/dist/esm/extensibility/Extension/Extension/styles.js +10 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +43 -0
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +5 -0
- package/dist/esm/extensibility/Extension/Lozenge.js +90 -0
- package/dist/esm/extensibility/Extension/styles.js +11 -0
- package/dist/esm/extensibility/Extension.js +69 -0
- package/dist/esm/extensibility/ExtensionComponent.js +243 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +14 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +257 -0
- package/dist/esm/extensibility/extensionNodeView.js +83 -0
- package/dist/esm/extensibility/index.js +4 -0
- package/dist/esm/extensibility/types.js +1 -0
- package/dist/esm/i18n/cs.js +5 -2
- package/dist/esm/i18n/da.js +5 -2
- package/dist/esm/i18n/de.js +5 -2
- package/dist/esm/i18n/en.js +7 -1
- package/dist/esm/i18n/en_GB.js +8 -2
- package/dist/esm/i18n/en_ZZ.js +8 -2
- package/dist/esm/i18n/es.js +5 -2
- package/dist/esm/i18n/fi.js +5 -2
- package/dist/esm/i18n/fr.js +5 -2
- package/dist/esm/i18n/hu.js +5 -2
- package/dist/esm/i18n/it.js +5 -2
- package/dist/esm/i18n/ja.js +1 -2
- package/dist/esm/i18n/ko.js +5 -2
- package/dist/esm/i18n/nb.js +1 -2
- package/dist/esm/i18n/nl.js +5 -2
- package/dist/esm/i18n/pl.js +5 -2
- package/dist/esm/i18n/pt_BR.js +5 -2
- package/dist/esm/i18n/ru.js +5 -2
- package/dist/esm/i18n/sv.js +5 -2
- package/dist/esm/i18n/th.js +5 -2
- package/dist/esm/i18n/tr.js +5 -2
- package/dist/esm/i18n/uk.js +5 -2
- package/dist/esm/i18n/vi.js +5 -2
- package/dist/esm/i18n/zh.js +5 -2
- package/dist/esm/i18n/zh_TW.js +5 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -2
- package/dist/esm/monitoring/error.js +3 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/collab/index.d.ts +7 -0
- package/dist/types/core-utils/document-logger.d.ts +6 -0
- package/dist/types/core-utils/index.d.ts +1 -0
- package/dist/types/extensibility/Extension/Extension/index.d.ts +108 -0
- package/dist/types/extensibility/Extension/Extension/styles.d.ts +5 -0
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types/extensibility/Extension/InlineExtension/styles.d.ts +1 -0
- package/dist/types/extensibility/Extension/Lozenge.d.ts +14 -0
- package/dist/types/extensibility/Extension/styles.d.ts +7 -0
- package/dist/types/extensibility/Extension.d.ts +29 -0
- package/dist/types/extensibility/ExtensionComponent.d.ts +53 -0
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +14 -0
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +26 -0
- package/dist/types/extensibility/extensionNodeView.d.ts +31 -0
- package/dist/types/extensibility/index.d.ts +4 -0
- package/dist/types/extensibility/types.d.ts +6 -0
- package/dist/types/i18n/cs.d.ts +5 -2
- package/dist/types/i18n/da.d.ts +5 -2
- package/dist/types/i18n/de.d.ts +5 -2
- package/dist/types/i18n/en.d.ts +7 -1
- package/dist/types/i18n/en_GB.d.ts +7 -1
- package/dist/types/i18n/en_ZZ.d.ts +7 -1
- package/dist/types/i18n/es.d.ts +5 -2
- package/dist/types/i18n/fi.d.ts +5 -2
- package/dist/types/i18n/fr.d.ts +5 -2
- package/dist/types/i18n/hu.d.ts +5 -2
- package/dist/types/i18n/it.d.ts +5 -2
- package/dist/types/i18n/ja.d.ts +1 -2
- package/dist/types/i18n/ko.d.ts +5 -2
- package/dist/types/i18n/nb.d.ts +1 -2
- package/dist/types/i18n/nl.d.ts +5 -2
- package/dist/types/i18n/pl.d.ts +5 -2
- package/dist/types/i18n/pt_BR.d.ts +5 -2
- package/dist/types/i18n/ru.d.ts +5 -2
- package/dist/types/i18n/sv.d.ts +5 -2
- package/dist/types/i18n/th.d.ts +5 -2
- package/dist/types/i18n/tr.d.ts +5 -2
- package/dist/types/i18n/uk.d.ts +5 -2
- package/dist/types/i18n/vi.d.ts +5 -2
- package/dist/types/i18n/zh.d.ts +5 -2
- package/dist/types/i18n/zh_TW.d.ts +5 -2
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +7 -7
- package/dist/types/types/floating-toolbar.d.ts +1 -1
- package/dist/types/types/hyperlink.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +0 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +2 -2
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types-ts4.5/collab/index.d.ts +7 -0
- package/dist/types-ts4.5/core-utils/document-logger.d.ts +6 -0
- package/dist/types-ts4.5/core-utils/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +108 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/styles.d.ts +5 -0
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/styles.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/Lozenge.d.ts +14 -0
- package/dist/types-ts4.5/extensibility/Extension/styles.d.ts +7 -0
- package/dist/types-ts4.5/extensibility/Extension.d.ts +29 -0
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +53 -0
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +14 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +26 -0
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +31 -0
- package/dist/types-ts4.5/extensibility/index.d.ts +4 -0
- package/dist/types-ts4.5/extensibility/types.d.ts +8 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +5 -2
- package/dist/types-ts4.5/i18n/da.d.ts +5 -2
- package/dist/types-ts4.5/i18n/de.d.ts +5 -2
- package/dist/types-ts4.5/i18n/en.d.ts +7 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +7 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +7 -1
- package/dist/types-ts4.5/i18n/es.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +5 -2
- package/dist/types-ts4.5/i18n/it.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +5 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +5 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +5 -2
- package/dist/types-ts4.5/i18n/th.d.ts +5 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +5 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +7 -7
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +0 -3
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +2 -2
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/extensibility/package.json +15 -0
- package/package.json +8 -7
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
|
+
var _templateObject, _templateObject2;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
/** @jsx jsx */
|
|
10
|
+
|
|
11
|
+
import React, { useState } from 'react';
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
13
|
+
import { N30, N40, N50 } from '@atlaskit/theme/colors';
|
|
14
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
15
|
+
import { createDispatch } from '../../event-dispatcher';
|
|
16
|
+
import { useSharedPluginState } from '../../hooks';
|
|
17
|
+
import { analyticsEventKey, calculateBreakoutStyles } from '../../utils';
|
|
18
|
+
import { WithPluginState } from '../../with-plugin-state';
|
|
19
|
+
var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
|
|
20
|
+
var updateActiveChild = _ref.updateActiveChild,
|
|
21
|
+
editorView = _ref.editorView,
|
|
22
|
+
getPos = _ref.getPos,
|
|
23
|
+
node = _ref.node,
|
|
24
|
+
eventDispatcher = _ref.eventDispatcher;
|
|
25
|
+
var actions = React.useMemo(function () {
|
|
26
|
+
return {
|
|
27
|
+
changeActive: function changeActive(index) {
|
|
28
|
+
var updateActiveChildResult = updateActiveChild(index);
|
|
29
|
+
if (eventDispatcher) {
|
|
30
|
+
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
31
|
+
}
|
|
32
|
+
return updateActiveChildResult;
|
|
33
|
+
},
|
|
34
|
+
addChild: function addChild() {
|
|
35
|
+
var state = editorView.state,
|
|
36
|
+
dispatch = editorView.dispatch;
|
|
37
|
+
if (node.content.childCount >= node.attrs.maxFrames) {
|
|
38
|
+
throw new Error("Cannot add more than ".concat(node.attrs.maxFrames, " frames"));
|
|
39
|
+
}
|
|
40
|
+
var p = state.schema.nodes.paragraph.createAndFill({});
|
|
41
|
+
if (!p) {
|
|
42
|
+
throw new Error('Could not create paragraph');
|
|
43
|
+
}
|
|
44
|
+
var frame = state.schema.nodes.extensionFrame.createAndFill({}, [p]);
|
|
45
|
+
var pos = getPos();
|
|
46
|
+
if (typeof pos !== 'number' || !frame) {
|
|
47
|
+
throw new Error('Could not create frame or position not valid');
|
|
48
|
+
}
|
|
49
|
+
var insertAt = Math.min((pos || 1) + node.content.size, state.doc.content.size);
|
|
50
|
+
dispatch(state.tr.insert(insertAt, frame));
|
|
51
|
+
if (eventDispatcher) {
|
|
52
|
+
sendMBEAnalyticsEvent(ACTION.ADD_CHILD, node, eventDispatcher);
|
|
53
|
+
}
|
|
54
|
+
return true;
|
|
55
|
+
},
|
|
56
|
+
getChildrenCount: function getChildrenCount() {
|
|
57
|
+
return node.content.childCount;
|
|
58
|
+
},
|
|
59
|
+
removeChild: function removeChild(index) {
|
|
60
|
+
var pos = getPos();
|
|
61
|
+
// TODO: Add child index validation here, don't trust this data
|
|
62
|
+
if (typeof pos !== 'number' || typeof index !== 'number') {
|
|
63
|
+
throw new Error('Position or index not valid');
|
|
64
|
+
}
|
|
65
|
+
var state = editorView.state,
|
|
66
|
+
dispatch = editorView.dispatch;
|
|
67
|
+
if (node.content.childCount === 1) {
|
|
68
|
+
var _tr = state.tr;
|
|
69
|
+
_tr.deleteRange(pos, pos + node.content.size);
|
|
70
|
+
dispatch(_tr);
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
var $pos = state.doc.resolve(pos);
|
|
74
|
+
var $startNodePos = state.doc.resolve($pos.start($pos.depth + 1));
|
|
75
|
+
var startFramePosition = $startNodePos.posAtIndex(index);
|
|
76
|
+
var maybeFrameNode = state.doc.nodeAt(startFramePosition);
|
|
77
|
+
if (!maybeFrameNode) {
|
|
78
|
+
throw new Error('Could not find frame node');
|
|
79
|
+
}
|
|
80
|
+
var endFramePosition = maybeFrameNode.content.size + startFramePosition;
|
|
81
|
+
var tr = state.tr;
|
|
82
|
+
tr.deleteRange(startFramePosition, endFramePosition);
|
|
83
|
+
dispatch(tr);
|
|
84
|
+
if (eventDispatcher) {
|
|
85
|
+
sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
|
|
86
|
+
}
|
|
87
|
+
return true;
|
|
88
|
+
},
|
|
89
|
+
updateParameters: function updateParameters(parameters) {
|
|
90
|
+
var state = editorView.state,
|
|
91
|
+
dispatch = editorView.dispatch;
|
|
92
|
+
var pos = getPos();
|
|
93
|
+
if (typeof pos !== 'number') {
|
|
94
|
+
throw new Error('Position not valid');
|
|
95
|
+
}
|
|
96
|
+
var tr = state.tr.setNodeMarkup(pos, undefined, _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
97
|
+
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
98
|
+
macroParams: parameters
|
|
99
|
+
})
|
|
100
|
+
}));
|
|
101
|
+
dispatch(tr);
|
|
102
|
+
if (eventDispatcher) {
|
|
103
|
+
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
},
|
|
107
|
+
getChildren: function getChildren() {
|
|
108
|
+
var _state$doc$nodeAt;
|
|
109
|
+
var state = editorView.state;
|
|
110
|
+
var pos = getPos();
|
|
111
|
+
if (typeof pos !== 'number') {
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
114
|
+
var children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
|
|
115
|
+
if (eventDispatcher) {
|
|
116
|
+
sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
|
|
117
|
+
}
|
|
118
|
+
return children ? children.toJSON() : [];
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}, [node, editorView, getPos, updateActiveChild, eventDispatcher]);
|
|
122
|
+
return actions;
|
|
123
|
+
};
|
|
124
|
+
var navigationCSS = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // make sure the user can't see a range selection inside the navigation\n // This is really important to keep the navigation working properly\n user-select: none;\n -webkit-user-modify: read-only;\n border: 1px solid ", ";\n"])), "var(--ds-border, ".concat(N40, ")"));
|
|
125
|
+
var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2) {
|
|
126
|
+
var node = _ref2.node,
|
|
127
|
+
handleContentDOMRef = _ref2.handleContentDOMRef,
|
|
128
|
+
getPos = _ref2.getPos,
|
|
129
|
+
tryExtensionHandler = _ref2.tryExtensionHandler,
|
|
130
|
+
editorView = _ref2.editorView,
|
|
131
|
+
eventDispatcher = _ref2.eventDispatcher,
|
|
132
|
+
widthState = _ref2.widthState,
|
|
133
|
+
editorAppearance = _ref2.editorAppearance;
|
|
134
|
+
var _useState = useState(0),
|
|
135
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
136
|
+
activeChildIndex = _useState2[0],
|
|
137
|
+
setActiveChildIndex = _useState2[1];
|
|
138
|
+
// Adding to avoid aliasing `this` for the callbacks
|
|
139
|
+
var updateActiveChild = React.useCallback(function (index) {
|
|
140
|
+
if (typeof index !== 'number') {
|
|
141
|
+
setActiveChildIndex(0);
|
|
142
|
+
throw new Error('Index is not valid');
|
|
143
|
+
}
|
|
144
|
+
setActiveChildIndex(index);
|
|
145
|
+
return true;
|
|
146
|
+
}, [setActiveChildIndex]);
|
|
147
|
+
var actions = useMultiBodiedExtensionActions({
|
|
148
|
+
updateActiveChild: updateActiveChild,
|
|
149
|
+
editorView: editorView,
|
|
150
|
+
getPos: getPos,
|
|
151
|
+
eventDispatcher: eventDispatcher,
|
|
152
|
+
node: node
|
|
153
|
+
});
|
|
154
|
+
var extensionHandlerResult = React.useMemo(function () {
|
|
155
|
+
return tryExtensionHandler(actions);
|
|
156
|
+
}, [tryExtensionHandler, actions]);
|
|
157
|
+
var articleRef = React.useCallback(function (node) {
|
|
158
|
+
return handleContentDOMRef(node);
|
|
159
|
+
}, [handleContentDOMRef]);
|
|
160
|
+
var containerCSS = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n min-height: 100px;\n .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'] {\n display: none;\n }\n\n .multiBodiedExtension-content-dom-wrapper\n > [data-extension-frame='true']:nth-of-type(", ") {\n border: 1px solid ", ";\n display: block;\n min-height: 100px;\n }\n "])), "var(--ds-border, ".concat(N30, ")"), activeChildIndex + 1, "var(--ds-border, ".concat(N50, ")"));
|
|
161
|
+
var shouldBreakout =
|
|
162
|
+
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
163
|
+
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
164
|
+
// Extension breakout state should not be respected when the editor appearance is full-width mode
|
|
165
|
+
editorAppearance !== 'full-width';
|
|
166
|
+
var mbeContainerStyles = {};
|
|
167
|
+
if (shouldBreakout) {
|
|
168
|
+
var _calculateBreakoutSty = calculateBreakoutStyles({
|
|
169
|
+
mode: node.attrs.layout,
|
|
170
|
+
widthStateLineLength: widthState === null || widthState === void 0 ? void 0 : widthState.lineLength,
|
|
171
|
+
widthStateWidth: widthState === null || widthState === void 0 ? void 0 : widthState.width
|
|
172
|
+
}),
|
|
173
|
+
breakoutStyles = _extends({}, (_objectDestructuringEmpty(_calculateBreakoutSty), _calculateBreakoutSty));
|
|
174
|
+
mbeContainerStyles = breakoutStyles;
|
|
175
|
+
}
|
|
176
|
+
return jsx("section", {
|
|
177
|
+
className: "multiBodiedExtension--container",
|
|
178
|
+
css: containerCSS,
|
|
179
|
+
"data-testid": "multiBodiedExtension--container",
|
|
180
|
+
"data-active-child-index": activeChildIndex,
|
|
181
|
+
style: mbeContainerStyles
|
|
182
|
+
}, jsx("nav", {
|
|
183
|
+
className: "multiBodiedExtension-navigation",
|
|
184
|
+
css: navigationCSS,
|
|
185
|
+
"data-testid": "multiBodiedExtension-navigation"
|
|
186
|
+
}, extensionHandlerResult), jsx("article", {
|
|
187
|
+
className: "multiBodiedExtension--frames",
|
|
188
|
+
"data-testid": "multiBodiedExtension--frames",
|
|
189
|
+
ref: articleRef
|
|
190
|
+
}));
|
|
191
|
+
};
|
|
192
|
+
var sendMBEAnalyticsEvent = function sendMBEAnalyticsEvent(action, node, eventDispatcher) {
|
|
193
|
+
var analyticsDispatch = createDispatch(eventDispatcher);
|
|
194
|
+
analyticsDispatch(analyticsEventKey, {
|
|
195
|
+
payload: {
|
|
196
|
+
action: action,
|
|
197
|
+
actionSubject: ACTION_SUBJECT.MULTI_BODIED_EXTENSION,
|
|
198
|
+
eventType: EVENT_TYPE.TRACK,
|
|
199
|
+
attributes: {
|
|
200
|
+
extensionType: node.attrs.extensionType,
|
|
201
|
+
extensionKey: node.attrs.extensionKey,
|
|
202
|
+
localId: node.attrs.localId,
|
|
203
|
+
maxFramesCount: node.attrs.maxFrames,
|
|
204
|
+
currentFramesCount: node.content.childCount
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithSharedState(props) {
|
|
210
|
+
var pluginInjectionApi = props.pluginInjectionApi;
|
|
211
|
+
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
|
|
212
|
+
widthState = _useSharedPluginState.widthState;
|
|
213
|
+
return jsx(MultiBodiedExtensionWithWidth, _extends({
|
|
214
|
+
widthState: widthState
|
|
215
|
+
}, props));
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
|
|
219
|
+
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
220
|
+
// TODO: ED-17836 This code is here because confluence injects
|
|
221
|
+
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
222
|
+
// which cannot access the `pluginInjectionApi`. When we move
|
|
223
|
+
// Confluence to using presets we can remove this workaround.
|
|
224
|
+
var pluginInjectionApi = props.pluginInjectionApi;
|
|
225
|
+
return pluginInjectionApi === undefined ? jsx(MultiBodiedExtensionDeprecated, props) : jsx(MultiBodiedExtensionWithSharedState, props);
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// TODO: ED-17836 This code is here because Confluence injects
|
|
229
|
+
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
230
|
+
// which cannot access the `pluginInjectionApi`. When we move
|
|
231
|
+
// Confluence to using presets we can remove this workaround.
|
|
232
|
+
// @ts-ignore
|
|
233
|
+
var widthPluginKey = {
|
|
234
|
+
key: 'widthPlugin$',
|
|
235
|
+
getState: function getState(state) {
|
|
236
|
+
return state['widthPlugin$'];
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(props) {
|
|
240
|
+
return jsx(WithPluginState, {
|
|
241
|
+
editorView: props.editorView,
|
|
242
|
+
plugins: {
|
|
243
|
+
widthState: widthPluginKey
|
|
244
|
+
},
|
|
245
|
+
render: function render(_ref3) {
|
|
246
|
+
var widthState = _ref3.widthState;
|
|
247
|
+
return jsx(MultiBodiedExtensionWithWidth, _extends({
|
|
248
|
+
widthState: widthState
|
|
249
|
+
}, props));
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* End workaround
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
export default MultiBodiedExtension;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
+
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; } }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import ReactNodeView from '../react-node-view';
|
|
10
|
+
import { Extension } from './Extension';
|
|
11
|
+
import { ExtensionNodeWrapper } from './ExtensionNodeWrapper';
|
|
12
|
+
// getInlineNodeViewProducer is a new api to use instead of ReactNodeView
|
|
13
|
+
// when creating inline node views, however, it is difficult to test the impact
|
|
14
|
+
// on selections when migrating inlineExtension to use the new api.
|
|
15
|
+
// The ReactNodeView api will be visited in the second phase of the selections
|
|
16
|
+
// project whilst investigating block nodes. We will revisit the Extension node view there too.
|
|
17
|
+
export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
18
|
+
_inherits(ExtensionNode, _ReactNodeView);
|
|
19
|
+
var _super = _createSuper(ExtensionNode);
|
|
20
|
+
function ExtensionNode() {
|
|
21
|
+
_classCallCheck(this, ExtensionNode);
|
|
22
|
+
return _super.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
_createClass(ExtensionNode, [{
|
|
25
|
+
key: "ignoreMutation",
|
|
26
|
+
value: function ignoreMutation(mutation) {
|
|
27
|
+
// Extensions can perform async operations that will change the DOM.
|
|
28
|
+
// To avoid having their tree rebuilt, we need to ignore the mutation
|
|
29
|
+
// for atom based extensions if its not a layout, we need to give
|
|
30
|
+
// children a chance to recalc
|
|
31
|
+
return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
key: "getContentDOM",
|
|
35
|
+
value: function getContentDOM() {
|
|
36
|
+
if (this.node.isInline) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
var dom = document.createElement('div');
|
|
40
|
+
dom.className = "".concat(this.node.type.name, "-content-dom-wrapper");
|
|
41
|
+
return {
|
|
42
|
+
dom: dom
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
key: "render",
|
|
47
|
+
value: function render(props, forwardRef) {
|
|
48
|
+
var _props$extensionNodeV;
|
|
49
|
+
return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
|
|
50
|
+
nodeType: this.node.type.name
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Extension, {
|
|
52
|
+
editorView: this.view,
|
|
53
|
+
node: this.node,
|
|
54
|
+
eventDispatcher: this.eventDispatcher
|
|
55
|
+
// The getPos arg is always a function when used with nodes
|
|
56
|
+
// the version of the types we use has a union with the type
|
|
57
|
+
// for marks.
|
|
58
|
+
// This has been fixed in later versions of the definitly typed
|
|
59
|
+
// types (and also in prosmirror-views inbuilt types).
|
|
60
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57384
|
|
61
|
+
,
|
|
62
|
+
getPos: this.getPos,
|
|
63
|
+
providerFactory: props.providerFactory,
|
|
64
|
+
handleContentDOMRef: forwardRef,
|
|
65
|
+
extensionHandlers: props.extensionHandlers,
|
|
66
|
+
editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
|
|
67
|
+
pluginInjectionApi: props.pluginInjectionApi
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
}]);
|
|
71
|
+
return ExtensionNode;
|
|
72
|
+
}(ReactNodeView);
|
|
73
|
+
export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
|
|
74
|
+
return function (node, view, getPos) {
|
|
75
|
+
var hasIntlContext = true;
|
|
76
|
+
return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
77
|
+
providerFactory: providerFactory,
|
|
78
|
+
extensionHandlers: extensionHandlers,
|
|
79
|
+
extensionNodeViewOptions: extensionNodeViewOptions,
|
|
80
|
+
pluginInjectionApi: pluginInjectionApi
|
|
81
|
+
}, undefined, undefined, undefined, hasIntlContext).init();
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Aktuální úkol',
|
|
11
11
|
'fabric.editor.action.description': 'Vytvořit a přiřadit aktuální úkol',
|
|
12
|
+
'fabric.editor.addColumn': 'Přidat sloupec vpravo',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Přidat obrázek, video nebo soubor',
|
|
14
|
+
'fabric.editor.addRow': 'Přidat řádek pod',
|
|
13
15
|
'fabric.editor.alignCenter': 'Zarovnat na střed',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Zarovnat na střed',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Zarovnat vlevo',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Zarovnat vlevo',
|
|
18
20
|
'fabric.editor.alignRight': 'Zarovnat vpravo',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Panel nástrojů poznámek',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Barva pozadí',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'Vložený odkaz je uvnitř uzlu {node} a jeho zobrazení nelze změnit',
|
|
21
24
|
'fabric.editor.blockDescription': 'Zobrazit další informace o odkazu, včetně souhrnu a akcí',
|
|
22
25
|
'fabric.editor.blockTitle': 'Karta',
|
|
@@ -138,7 +141,6 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Informační panel',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Zvýraznit informace v barevném panelu',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Zobrazit odkaz jako vložený text',
|
|
141
|
-
'fabric.editor.inlineOverlay': 'Změnit zobrazení',
|
|
142
144
|
'fabric.editor.inlineTitle': 'Vložený',
|
|
143
145
|
'fabric.editor.insertColumn': 'Vložit sloupec napravo',
|
|
144
146
|
'fabric.editor.insertColumnDrag': 'Vložit sloupec',
|
|
@@ -211,7 +213,8 @@ export default {
|
|
|
211
213
|
'fabric.editor.table': 'Tabulka',
|
|
212
214
|
'fabric.editor.table.description': 'Vložit tabulku',
|
|
213
215
|
'fabric.editor.tableOptions': 'Možnosti tabulky',
|
|
214
|
-
'fabric.editor.
|
|
216
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Šířka tabulky byla snížena na {newWidth,number} pixel.} few {Šířka tabulky byla snížena na {newWidth,number} pixely.} many {Šířka tabulky byla snížena na {newWidth,number} pixelu.} other {Šířka tabulky byla snížena na {newWidth,number} pixelů.}}',
|
|
217
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Šířka tabulky byla zvýšena na {newWidth,number} pixel.} few {Šířka tabulky byla zvýšena na {newWidth,number} pixely.} many {Šířka tabulky byla zvýšena na {newWidth,number} pixelu.} other {Šířka tabulky byla zvýšena na {newWidth,number} pixelů.}}',
|
|
215
218
|
'fabric.editor.tables.adjustColumn': 'Upravit sloupec',
|
|
216
219
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Odstranění uzlu {nodeName} způsobí, že všechny k němu připojené položky přestanou fungovat.',
|
|
217
220
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Odstranit',
|
package/dist/esm/i18n/da.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Handlingsgenstand',
|
|
11
11
|
'fabric.editor.action.description': 'Opret og tildel handlingsgenstande',
|
|
12
|
+
'fabric.editor.addColumn': 'Tilføj kolonne til højre',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Tilføj billede, video eller fil',
|
|
14
|
+
'fabric.editor.addRow': 'Tilføj række nedenfor',
|
|
13
15
|
'fabric.editor.alignCenter': 'Centrér',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Centrér',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Venstrejustér',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Venstrejustér',
|
|
18
20
|
'fabric.editor.alignRight': 'Højrejustér',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Værktøjslinje til annotationer',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Baggrundsfarve',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'Det indbyggede link er inden i {node}, og dets visning kan ikke ændres',
|
|
21
24
|
'fabric.editor.blockDescription': 'Vis flere oplysninger om et link, inklusive sammendrag og handlinger',
|
|
22
25
|
'fabric.editor.blockTitle': 'Kort',
|
|
@@ -138,7 +141,6 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Informationspanel',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Fremhæv information i et farvet panel',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Vis link som indbygget tekst',
|
|
141
|
-
'fabric.editor.inlineOverlay': 'Skift visning',
|
|
142
144
|
'fabric.editor.inlineTitle': 'Indbyg',
|
|
143
145
|
'fabric.editor.insertColumn': 'Indsæt kolonne til højre',
|
|
144
146
|
'fabric.editor.insertColumnDrag': 'Indsæt kolonne',
|
|
@@ -211,7 +213,8 @@ export default {
|
|
|
211
213
|
'fabric.editor.table': 'Tabel',
|
|
212
214
|
'fabric.editor.table.description': 'Indsæt en tabel',
|
|
213
215
|
'fabric.editor.tableOptions': 'Egenskaber for tabel',
|
|
214
|
-
'fabric.editor.
|
|
216
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Tabelbredde reduceret til {newWidth,number} pixel.} other {Tabelbredde reduceret til {newWidth,number} pixel.}}',
|
|
217
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Tabelbredde øget til {newWidth,number} pixel.} other {Tabelbredde øget til {newWidth,number} pixels.}}',
|
|
215
218
|
'fabric.editor.tables.adjustColumn': 'Tilpas kolonne',
|
|
216
219
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Hvis du sletter {nodeName}, brydes forbindelsen til alt, der er forbundet til den.',
|
|
217
220
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Slet',
|
package/dist/esm/i18n/de.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Aufgabe',
|
|
11
11
|
'fabric.editor.action.description': 'Aufgaben erstellen und zuweisen',
|
|
12
|
+
'fabric.editor.addColumn': 'Spalte rechts hinzufügen',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Bild, Video oder Datei hinzufügen',
|
|
14
|
+
'fabric.editor.addRow': 'Zeile unterhalb hinzufügen',
|
|
13
15
|
'fabric.editor.alignCenter': 'Mittig ausrichten',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Mittig ausrichten',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Links ausrichten',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Links ausrichten',
|
|
18
20
|
'fabric.editor.alignRight': 'Rechts ausrichten',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Symbolleiste für Anmerkungen',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Hintergrundfarbe',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'Die Ansicht des Inline-Links kann nicht geändert werden, da sich der Link innerhalb von {node} befindet.',
|
|
21
24
|
'fabric.editor.blockDescription': 'Weitere Informationen zu einem Link anzeigen, darunter eine Zusammenfassung und Aktionen',
|
|
22
25
|
'fabric.editor.blockTitle': 'Karte',
|
|
@@ -138,7 +141,6 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Info-Panel',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Informationen in einem farbigen Panel hervorheben',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Link als Inline-Text anzeigen',
|
|
141
|
-
'fabric.editor.inlineOverlay': 'Ansicht wechseln',
|
|
142
144
|
'fabric.editor.inlineTitle': 'Inline',
|
|
143
145
|
'fabric.editor.insertColumn': 'Spalte rechts einfügen',
|
|
144
146
|
'fabric.editor.insertColumnDrag': 'Spalte einfügen',
|
|
@@ -211,7 +213,8 @@ export default {
|
|
|
211
213
|
'fabric.editor.table': 'Tabelle',
|
|
212
214
|
'fabric.editor.table.description': 'Tabelle einfügen',
|
|
213
215
|
'fabric.editor.tableOptions': 'Tabellenoptionen',
|
|
214
|
-
'fabric.editor.
|
|
216
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Die Tabellenbreite wurde auf {newWidth,number} Pixel verringert.} other {Die Tabellenbreite wurde auf {newWidth,number} Pixel verringert.}}',
|
|
217
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Die Tabellenbreite wurde auf {newWidth,number} Pixel erhöht.} other {Die Tabellenbreite wurde auf {newWidth,number} Pixel erhöht.}}',
|
|
215
218
|
'fabric.editor.tables.adjustColumn': 'Spalte anpassen',
|
|
216
219
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Durch das Löschen von {nodeName} werden alle damit verbundenen Elemente unbrauchbar.',
|
|
217
220
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Löschen',
|
package/dist/esm/i18n/en.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Action item',
|
|
11
11
|
'fabric.editor.action.description': 'Create and assign action items',
|
|
12
|
+
'fabric.editor.addColumn': 'Add column right',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Add image, video, or file',
|
|
14
|
+
'fabric.editor.addRow': 'Add row below',
|
|
13
15
|
'fabric.editor.alignCenter': 'Align center',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Align center',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Align left',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Align left',
|
|
18
20
|
'fabric.editor.alignRight': 'Align right',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Annotation toolbar',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Background Color',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'The inline link is inside {node} and cannot have its view changed',
|
|
21
24
|
'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
|
|
22
25
|
'fabric.editor.blockTitle': 'Card',
|
|
@@ -211,7 +214,10 @@ export default {
|
|
|
211
214
|
'fabric.editor.table': 'Table',
|
|
212
215
|
'fabric.editor.table.description': 'Insert a table',
|
|
213
216
|
'fabric.editor.tableOptions': 'Table options',
|
|
214
|
-
'fabric.editor.
|
|
217
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': 'Table width decreased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
218
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': 'Table width increased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
219
|
+
'fabric.editor.tableSelector': 'Table size',
|
|
220
|
+
'fabric.editor.tableSelector.description': 'Add a table using popup to select a custom size',
|
|
215
221
|
'fabric.editor.tables.adjustColumn': 'Adjust column',
|
|
216
222
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
217
223
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Delete',
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Action item',
|
|
11
11
|
'fabric.editor.action.description': 'Create and assign action items',
|
|
12
|
+
'fabric.editor.addColumn': 'Add column right',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Add image, video, or file',
|
|
14
|
+
'fabric.editor.addRow': 'Add row below',
|
|
13
15
|
'fabric.editor.alignCenter': 'Align center',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Align center',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Align left',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Align left',
|
|
18
20
|
'fabric.editor.alignRight': 'Align right',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Annotation toolbar',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Background Colour',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'The inline link is inside {node} and cannot have its view changed',
|
|
21
24
|
'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
|
|
22
25
|
'fabric.editor.blockTitle': 'Card',
|
|
@@ -138,7 +141,7 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Info panel',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Highlight information in a coloured panel',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Display link as inline text',
|
|
141
|
-
'fabric.editor.inlineOverlay': '
|
|
144
|
+
'fabric.editor.inlineOverlay': 'Configure',
|
|
142
145
|
'fabric.editor.inlineTitle': 'Inline',
|
|
143
146
|
'fabric.editor.insertColumn': 'Insert column right',
|
|
144
147
|
'fabric.editor.insertColumnDrag': 'Insert column',
|
|
@@ -211,7 +214,10 @@ export default {
|
|
|
211
214
|
'fabric.editor.table': 'Table',
|
|
212
215
|
'fabric.editor.table.description': 'Insert a table',
|
|
213
216
|
'fabric.editor.tableOptions': 'Table options',
|
|
214
|
-
'fabric.editor.
|
|
217
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': 'Table width decreased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
218
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': 'Table width increased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
219
|
+
'fabric.editor.tableSelector': 'Table size',
|
|
220
|
+
'fabric.editor.tableSelector.description': 'Add a table using popup to select a custom size',
|
|
215
221
|
'fabric.editor.tables.adjustColumn': 'Adjust column',
|
|
216
222
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
217
223
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Delete',
|
package/dist/esm/i18n/en_ZZ.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Action item',
|
|
11
11
|
'fabric.editor.action.description': 'Create and assign action items',
|
|
12
|
+
'fabric.editor.addColumn': 'Add column right',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Add image, video, or file',
|
|
14
|
+
'fabric.editor.addRow': 'Add row below',
|
|
13
15
|
'fabric.editor.alignCenter': 'Align center',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Align center',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Align left',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Align left',
|
|
18
20
|
'fabric.editor.alignRight': 'Align right',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Annotation toolbar',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Background Color',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'The inline link is inside {node} and cannot have its view changed',
|
|
21
24
|
'fabric.editor.blockDescription': 'Display more information about a link, including a summary and actions',
|
|
22
25
|
'fabric.editor.blockTitle': 'Card',
|
|
@@ -138,7 +141,7 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Info panel',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Highlight information in a colored panel',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Display link as inline text',
|
|
141
|
-
'fabric.editor.inlineOverlay': '
|
|
144
|
+
'fabric.editor.inlineOverlay': 'Configure',
|
|
142
145
|
'fabric.editor.inlineTitle': 'Inline',
|
|
143
146
|
'fabric.editor.insertColumn': 'Insert column right',
|
|
144
147
|
'fabric.editor.insertColumnDrag': 'Insert column',
|
|
@@ -211,7 +214,10 @@ export default {
|
|
|
211
214
|
'fabric.editor.table': 'Table',
|
|
212
215
|
'fabric.editor.table.description': 'Insert a table',
|
|
213
216
|
'fabric.editor.tableOptions': 'Table options',
|
|
214
|
-
'fabric.editor.
|
|
217
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Table width decreased to {newWidth,number} pixel.} other {Table width decreased to {newWidth,number} pixels.}}',
|
|
218
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Table width increased to {newWidth,number} pixel.} other {Table width increased to {newWidth,number} pixels.}}',
|
|
219
|
+
'fabric.editor.tableSelector': 'Table size',
|
|
220
|
+
'fabric.editor.tableSelector.description': 'Add a table using popup to select a custom size',
|
|
215
221
|
'fabric.editor.tables.adjustColumn': 'Adjust column',
|
|
216
222
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
217
223
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Delete',
|
package/dist/esm/i18n/es.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Elemento de acción',
|
|
11
11
|
'fabric.editor.action.description': 'Crear y asignar elementos de acción',
|
|
12
|
+
'fabric.editor.addColumn': 'Añadir columna a la derecha',
|
|
12
13
|
'fabric.editor.addMediaFiles': 'Añadir imagen, vídeo o archivo',
|
|
14
|
+
'fabric.editor.addRow': 'Añadir fila abajo',
|
|
13
15
|
'fabric.editor.alignCenter': 'Centrar',
|
|
14
16
|
'fabric.editor.alignImageCenter': 'Centrar',
|
|
15
17
|
'fabric.editor.alignImageLeft': 'Alinear a la izquierda',
|
|
@@ -17,6 +19,7 @@ export default {
|
|
|
17
19
|
'fabric.editor.alignLeft': 'Alinear a la izquierda',
|
|
18
20
|
'fabric.editor.alignRight': 'Alinear a la derecha',
|
|
19
21
|
'fabric.editor.annotationToolbar': 'Barra de herramientas de anotaciones',
|
|
22
|
+
'fabric.editor.backgroundColor': 'Color de fondo',
|
|
20
23
|
'fabric.editor.blockCardUnavailable': 'El enlace insertado está dentro de {node} y no puede cambiar de vista',
|
|
21
24
|
'fabric.editor.blockDescription': 'Mostrar más información sobre un enlace, incluido un resumen y acciones',
|
|
22
25
|
'fabric.editor.blockTitle': 'Tarjeta',
|
|
@@ -138,7 +141,6 @@ export default {
|
|
|
138
141
|
'fabric.editor.infoPanel': 'Panel de información',
|
|
139
142
|
'fabric.editor.infoPanel.description': 'Destacar información en un panel de color',
|
|
140
143
|
'fabric.editor.inlineDescription': 'Mostrar enlace como texto insertado',
|
|
141
|
-
'fabric.editor.inlineOverlay': 'Cambiar vista',
|
|
142
144
|
'fabric.editor.inlineTitle': 'Insertado',
|
|
143
145
|
'fabric.editor.insertColumn': 'Insertar columna a la derecha',
|
|
144
146
|
'fabric.editor.insertColumnDrag': 'Insertar columna',
|
|
@@ -211,7 +213,8 @@ export default {
|
|
|
211
213
|
'fabric.editor.table': 'Tabla',
|
|
212
214
|
'fabric.editor.table.description': 'Insertar una tabla',
|
|
213
215
|
'fabric.editor.tableOptions': 'Opciones de tabla',
|
|
214
|
-
'fabric.editor.
|
|
216
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Ancho de la tabla reducido a {newWidth,number} píxel.} other {Ancho de la tabla reducido a {newWidth,number} píxeles.}}',
|
|
217
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Ancho de la tabla aumentado a {newWidth,number} píxel.} other {Ancho de la tabla aumentado a {newWidth,number} píxeles.}}',
|
|
215
218
|
'fabric.editor.tables.adjustColumn': 'Ajustar columna',
|
|
216
219
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Al eliminar la extensión {nodeName}, se interrumpirá todo lo que se haya conectado a ella.',
|
|
217
220
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Eliminar',
|