@atlaskit/editor-common 77.0.6 → 77.1.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 +15 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +131 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +62 -150
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +19 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/utils.js +26 -0
- package/dist/cjs/i18n/cs.js +0 -3
- package/dist/cjs/i18n/da.js +24 -4
- package/dist/cjs/i18n/de.js +0 -3
- package/dist/cjs/i18n/en.js +23 -5
- package/dist/cjs/i18n/en_GB.js +24 -6
- package/dist/cjs/i18n/en_ZZ.js +24 -6
- package/dist/cjs/i18n/es.js +24 -4
- package/dist/cjs/i18n/fi.js +23 -4
- package/dist/cjs/i18n/fr.js +24 -4
- package/dist/cjs/i18n/hu.js +24 -4
- package/dist/cjs/i18n/it.js +24 -4
- package/dist/cjs/i18n/ja.js +25 -2
- package/dist/cjs/i18n/ko.js +24 -4
- package/dist/cjs/i18n/nb.js +24 -2
- package/dist/cjs/i18n/nl.js +24 -4
- package/dist/cjs/i18n/pl.js +23 -4
- package/dist/cjs/i18n/pt_BR.js +22 -4
- package/dist/cjs/i18n/ru.js +22 -4
- package/dist/cjs/i18n/sv.js +24 -4
- package/dist/cjs/i18n/th.js +24 -4
- package/dist/cjs/i18n/tr.js +22 -4
- package/dist/cjs/i18n/uk.js +25 -5
- package/dist/cjs/i18n/vi.js +24 -4
- package/dist/cjs/i18n/zh.js +23 -5
- package/dist/cjs/i18n/zh_TW.js +24 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +134 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +55 -161
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +81 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/utils.js +20 -0
- package/dist/es2019/i18n/cs.js +0 -3
- package/dist/es2019/i18n/da.js +24 -4
- package/dist/es2019/i18n/de.js +0 -3
- package/dist/es2019/i18n/en.js +23 -5
- package/dist/es2019/i18n/en_GB.js +24 -6
- package/dist/es2019/i18n/en_ZZ.js +24 -6
- package/dist/es2019/i18n/es.js +24 -4
- package/dist/es2019/i18n/fi.js +23 -4
- package/dist/es2019/i18n/fr.js +24 -4
- package/dist/es2019/i18n/hu.js +24 -4
- package/dist/es2019/i18n/it.js +24 -4
- package/dist/es2019/i18n/ja.js +25 -2
- package/dist/es2019/i18n/ko.js +24 -4
- package/dist/es2019/i18n/nb.js +24 -2
- package/dist/es2019/i18n/nl.js +24 -4
- package/dist/es2019/i18n/pl.js +23 -4
- package/dist/es2019/i18n/pt_BR.js +22 -4
- package/dist/es2019/i18n/ru.js +22 -4
- package/dist/es2019/i18n/sv.js +24 -4
- package/dist/es2019/i18n/th.js +24 -4
- package/dist/es2019/i18n/tr.js +22 -4
- package/dist/es2019/i18n/uk.js +25 -5
- package/dist/es2019/i18n/vi.js +24 -4
- package/dist/es2019/i18n/zh.js +23 -5
- package/dist/es2019/i18n/zh_TW.js +24 -4
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +124 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +61 -150
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +13 -0
- package/dist/esm/extensibility/MultiBodiedExtension/utils.js +20 -0
- package/dist/esm/i18n/cs.js +0 -3
- package/dist/esm/i18n/da.js +24 -4
- package/dist/esm/i18n/de.js +0 -3
- package/dist/esm/i18n/en.js +23 -5
- package/dist/esm/i18n/en_GB.js +24 -6
- package/dist/esm/i18n/en_ZZ.js +24 -6
- package/dist/esm/i18n/es.js +24 -4
- package/dist/esm/i18n/fi.js +23 -4
- package/dist/esm/i18n/fr.js +24 -4
- package/dist/esm/i18n/hu.js +24 -4
- package/dist/esm/i18n/it.js +24 -4
- package/dist/esm/i18n/ja.js +25 -2
- package/dist/esm/i18n/ko.js +24 -4
- package/dist/esm/i18n/nb.js +24 -2
- package/dist/esm/i18n/nl.js +24 -4
- package/dist/esm/i18n/pl.js +23 -4
- package/dist/esm/i18n/pt_BR.js +22 -4
- package/dist/esm/i18n/ru.js +22 -4
- package/dist/esm/i18n/sv.js +24 -4
- package/dist/esm/i18n/th.js +24 -4
- package/dist/esm/i18n/tr.js +22 -4
- package/dist/esm/i18n/uk.js +25 -5
- package/dist/esm/i18n/vi.js +24 -4
- package/dist/esm/i18n/zh.js +23 -5
- package/dist/esm/i18n/zh_TW.js +24 -4
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/card/cardOptions.d.ts +7 -0
- package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +13 -0
- package/dist/types/extensibility/MultiBodiedExtension/styles.d.ts +4 -0
- package/dist/types/extensibility/MultiBodiedExtension/utils.d.ts +6 -0
- package/dist/types/i18n/cs.d.ts +0 -3
- package/dist/types/i18n/da.d.ts +23 -3
- package/dist/types/i18n/de.d.ts +0 -3
- package/dist/types/i18n/en.d.ts +20 -2
- package/dist/types/i18n/en_GB.d.ts +20 -2
- package/dist/types/i18n/en_ZZ.d.ts +20 -2
- package/dist/types/i18n/es.d.ts +23 -3
- package/dist/types/i18n/fi.d.ts +22 -3
- package/dist/types/i18n/fr.d.ts +23 -3
- package/dist/types/i18n/hu.d.ts +23 -3
- package/dist/types/i18n/it.d.ts +23 -3
- package/dist/types/i18n/ja.d.ts +24 -1
- package/dist/types/i18n/ko.d.ts +23 -3
- package/dist/types/i18n/nb.d.ts +23 -1
- package/dist/types/i18n/nl.d.ts +23 -3
- package/dist/types/i18n/pl.d.ts +22 -3
- package/dist/types/i18n/pt_BR.d.ts +21 -3
- package/dist/types/i18n/ru.d.ts +21 -3
- package/dist/types/i18n/sv.d.ts +23 -3
- package/dist/types/i18n/th.d.ts +23 -3
- package/dist/types/i18n/tr.d.ts +21 -3
- package/dist/types/i18n/uk.d.ts +23 -3
- package/dist/types/i18n/vi.d.ts +23 -3
- package/dist/types/i18n/zh.d.ts +21 -3
- package/dist/types/i18n/zh_TW.d.ts +23 -3
- package/dist/types/types/next-editor-plugin.d.ts +1 -4
- package/dist/types-ts4.5/card/cardOptions.d.ts +7 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +13 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/styles.d.ts +4 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/utils.d.ts +6 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -3
- package/dist/types-ts4.5/i18n/da.d.ts +23 -3
- package/dist/types-ts4.5/i18n/de.d.ts +0 -3
- package/dist/types-ts4.5/i18n/en.d.ts +20 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -2
- package/dist/types-ts4.5/i18n/es.d.ts +23 -3
- package/dist/types-ts4.5/i18n/fi.d.ts +22 -3
- package/dist/types-ts4.5/i18n/fr.d.ts +23 -3
- package/dist/types-ts4.5/i18n/hu.d.ts +23 -3
- package/dist/types-ts4.5/i18n/it.d.ts +23 -3
- package/dist/types-ts4.5/i18n/ja.d.ts +24 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +23 -3
- package/dist/types-ts4.5/i18n/nb.d.ts +23 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +23 -3
- package/dist/types-ts4.5/i18n/pl.d.ts +22 -3
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +21 -3
- package/dist/types-ts4.5/i18n/ru.d.ts +21 -3
- package/dist/types-ts4.5/i18n/sv.d.ts +23 -3
- package/dist/types-ts4.5/i18n/th.d.ts +23 -3
- package/dist/types-ts4.5/i18n/tr.d.ts +21 -3
- package/dist/types-ts4.5/i18n/uk.d.ts +23 -3
- package/dist/types-ts4.5/i18n/vi.d.ts +23 -3
- package/dist/types-ts4.5/i18n/zh.d.ts +21 -3
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +23 -3
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +1 -4
- package/package.json +8 -8
|
@@ -1,136 +1,59 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
|
-
import
|
|
5
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
6
|
var _templateObject, _templateObject2;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
var _excluded = ["url"];
|
|
8
|
+
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
11
|
import React, { useState } from 'react';
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { createDispatch } from '../../event-dispatcher';
|
|
13
|
+
import classnames from 'classnames';
|
|
14
|
+
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
16
15
|
import { useSharedPluginState } from '../../hooks';
|
|
17
|
-
import {
|
|
16
|
+
import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
|
|
18
17
|
import { WithPluginState } from '../../with-plugin-state';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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;
|
|
18
|
+
import { useMultiBodiedExtensionActions } from './action-api';
|
|
19
|
+
import { extensionFrameContentCSS, mbeExtensionContainerCSS, mbeExtensionWrapperCSS, mbeNavigationCSS } from './styles';
|
|
20
|
+
// Similar to the one in platform/packages/editor/editor-common/src/extensibility/Extension/Lozenge.tsx
|
|
21
|
+
var getWrapperTitleContent = function getWrapperTitleContent(imageData, title) {
|
|
22
|
+
if (imageData) {
|
|
23
|
+
var url = imageData.url,
|
|
24
|
+
rest = _objectWithoutProperties(imageData, _excluded);
|
|
25
|
+
return jsx("div", {
|
|
26
|
+
className: "extension-title"
|
|
27
|
+
}, jsx("img", _extends({
|
|
28
|
+
css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-height: 24px;\n max-width: 24px;\n "]))),
|
|
29
|
+
src: url
|
|
30
|
+
}, rest, {
|
|
31
|
+
alt: title
|
|
32
|
+
})), title);
|
|
33
|
+
}
|
|
34
|
+
return jsx("div", {
|
|
35
|
+
className: "extension-title"
|
|
36
|
+
}, jsx(EditorFileIcon, {
|
|
37
|
+
label: title
|
|
38
|
+
}), title);
|
|
123
39
|
};
|
|
124
|
-
var
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
40
|
+
var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref) {
|
|
41
|
+
var node = _ref.node,
|
|
42
|
+
handleContentDOMRef = _ref.handleContentDOMRef,
|
|
43
|
+
getPos = _ref.getPos,
|
|
44
|
+
tryExtensionHandler = _ref.tryExtensionHandler,
|
|
45
|
+
editorView = _ref.editorView,
|
|
46
|
+
eventDispatcher = _ref.eventDispatcher,
|
|
47
|
+
widthState = _ref.widthState,
|
|
48
|
+
editorAppearance = _ref.editorAppearance;
|
|
49
|
+
var _node$attrs = node.attrs,
|
|
50
|
+
parameters = _node$attrs.parameters,
|
|
51
|
+
extensionKey = _node$attrs.extensionKey;
|
|
52
|
+
var title = parameters && parameters.extensionTitle || parameters && parameters.macroMetadata && parameters.macroMetadata.title || extensionKey || node.type.name;
|
|
53
|
+
var imageData = getExtensionLozengeData({
|
|
54
|
+
node: node,
|
|
55
|
+
type: 'image'
|
|
56
|
+
});
|
|
134
57
|
var _useState = useState(0),
|
|
135
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
136
59
|
activeChildIndex = _useState2[0],
|
|
@@ -157,13 +80,13 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
157
80
|
var articleRef = React.useCallback(function (node) {
|
|
158
81
|
return handleContentDOMRef(node);
|
|
159
82
|
}, [handleContentDOMRef]);
|
|
160
|
-
var
|
|
83
|
+
var containerCssExtended = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n .multiBodiedExtension-content-dom-wrapper\n > [data-extension-frame='true']:nth-of-type(", ") {\n ", "\n }\n "])), mbeExtensionContainerCSS, activeChildIndex + 1, extensionFrameContentCSS);
|
|
161
84
|
var shouldBreakout =
|
|
162
85
|
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
163
86
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
164
87
|
// Extension breakout state should not be respected when the editor appearance is full-width mode
|
|
165
88
|
editorAppearance !== 'full-width';
|
|
166
|
-
var
|
|
89
|
+
var mbeWrapperStyles = {};
|
|
167
90
|
if (shouldBreakout) {
|
|
168
91
|
var _calculateBreakoutSty = calculateBreakoutStyles({
|
|
169
92
|
mode: node.attrs.layout,
|
|
@@ -171,40 +94,28 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
171
94
|
widthStateWidth: widthState === null || widthState === void 0 ? void 0 : widthState.width
|
|
172
95
|
}),
|
|
173
96
|
breakoutStyles = _extends({}, (_objectDestructuringEmpty(_calculateBreakoutSty), _calculateBreakoutSty));
|
|
174
|
-
|
|
97
|
+
mbeWrapperStyles = breakoutStyles;
|
|
175
98
|
}
|
|
176
|
-
|
|
99
|
+
var wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block');
|
|
100
|
+
return jsx("div", {
|
|
101
|
+
className: wrapperClassNames,
|
|
102
|
+
css: mbeExtensionWrapperCSS,
|
|
103
|
+
"data-testid": "multiBodiedExtension--wrapper",
|
|
104
|
+
style: mbeWrapperStyles
|
|
105
|
+
}, getWrapperTitleContent(imageData, title), jsx("div", {
|
|
177
106
|
className: "multiBodiedExtension--container",
|
|
178
|
-
css:
|
|
107
|
+
css: containerCssExtended,
|
|
179
108
|
"data-testid": "multiBodiedExtension--container",
|
|
180
|
-
"data-active-child-index": activeChildIndex
|
|
181
|
-
style: mbeContainerStyles
|
|
109
|
+
"data-active-child-index": activeChildIndex
|
|
182
110
|
}, jsx("nav", {
|
|
183
111
|
className: "multiBodiedExtension-navigation",
|
|
184
|
-
css:
|
|
112
|
+
css: mbeNavigationCSS,
|
|
185
113
|
"data-testid": "multiBodiedExtension-navigation"
|
|
186
114
|
}, extensionHandlerResult), jsx("article", {
|
|
187
115
|
className: "multiBodiedExtension--frames",
|
|
188
116
|
"data-testid": "multiBodiedExtension--frames",
|
|
189
117
|
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
|
-
});
|
|
118
|
+
})));
|
|
208
119
|
};
|
|
209
120
|
var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithSharedState(props) {
|
|
210
121
|
var pluginInjectionApi = props.pluginInjectionApi;
|
|
@@ -242,8 +153,8 @@ var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(pro
|
|
|
242
153
|
plugins: {
|
|
243
154
|
widthState: widthPluginKey
|
|
244
155
|
},
|
|
245
|
-
render: function render(
|
|
246
|
-
var widthState =
|
|
156
|
+
render: function render(_ref2) {
|
|
157
|
+
var widthState = _ref2.widthState;
|
|
247
158
|
return jsx(MultiBodiedExtensionWithWidth, _extends({
|
|
248
159
|
widthState: widthState
|
|
249
160
|
}, props));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import { N30, N40 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { wrapperDefault } from '../Extension/styles';
|
|
6
|
+
|
|
7
|
+
// Wrapper the extension title and extensionContainer
|
|
8
|
+
export var mbeExtensionWrapperCSS = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n cursor: pointer;\n .extension-title {\n display: flex;\n align-items: center;\n line-height: 16px !important;\n margin-bottom: ", ";\n margin-left: ", " !important;\n margin-right: ", ";\n padding-top: ", " !important;\n }\n"])), wrapperDefault, "var(--ds-space-100, 8px)", "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)");
|
|
9
|
+
|
|
10
|
+
// Wraps the navigation bar and extensionFrames
|
|
11
|
+
export var mbeExtensionContainerCSS = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: transpaent !important;\n padding: {\n bottom: ", " !important;\n left: ", " !important;\n right: ", " !important;\n }\n padding-bottom: ", ";\n position: relative;\n vertical-align: middle;\n cursor: pointer;\n\n .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'] {\n display: none;\n background: ", ";\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-surface, white)");
|
|
12
|
+
export var mbeNavigationCSS = css(_templateObject3 || (_templateObject3 = _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 border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n\n user-select: none;\n -webkit-user-modify: read-only;\n border: 1px solid ", ";\n border-bottom: none;\n background: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"])), "var(--ds-border-radius, 3px)", "var(--ds-border-radius, 3px)", "var(--ds-border, ".concat(N40, ")"), "var(--ds-surface, white)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)");
|
|
13
|
+
export var extensionFrameContentCSS = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", " !important;\n border: 1px solid ", ";\n display: block;\n min-height: 100px;\n background: ", ";\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n\n margin-left: ", ";\n margin-right: ", ";\n cursor: initial;\n\n .pm-table-container {\n margin-left: ", " !important;\n padding-right: ", " !important;\n }\n .pm-table-with-controls {\n margin-left: ", " !important;\n padding-right: ", " !important;\n }\n .bodiedExtensionView-content-wrap {\n margin-top: ", " !important;\n }\n // Extension wrap have an additional margin on all four borders, so we need to adjust the spacing\n // compared to the bodiedExtensionView-content-wrap\n .extensionView-content-wrap {\n margin-top: ", " !important;\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-border, ".concat(N30, ")"), "var(--ds-surface, white)", "var(--ds-border-radius, 3px)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-space-100, 8px)");
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
2
|
+
import { createDispatch } from '../../event-dispatcher';
|
|
3
|
+
import { analyticsEventKey } from '../../utils';
|
|
4
|
+
export var sendMBEAnalyticsEvent = function sendMBEAnalyticsEvent(action, node, eventDispatcher) {
|
|
5
|
+
var analyticsDispatch = createDispatch(eventDispatcher);
|
|
6
|
+
analyticsDispatch(analyticsEventKey, {
|
|
7
|
+
payload: {
|
|
8
|
+
action: action,
|
|
9
|
+
actionSubject: ACTION_SUBJECT.MULTI_BODIED_EXTENSION,
|
|
10
|
+
eventType: EVENT_TYPE.TRACK,
|
|
11
|
+
attributes: {
|
|
12
|
+
extensionType: node.attrs.extensionType,
|
|
13
|
+
extensionKey: node.attrs.extensionKey,
|
|
14
|
+
localId: node.attrs.localId,
|
|
15
|
+
maxFramesCount: node.attrs.maxFrames,
|
|
16
|
+
currentFramesCount: node.content.childCount
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -9,9 +9,7 @@
|
|
|
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',
|
|
13
12
|
'fabric.editor.addMediaFiles': 'Přidat obrázek, video nebo soubor',
|
|
14
|
-
'fabric.editor.addRow': 'Přidat řádek pod',
|
|
15
13
|
'fabric.editor.alignCenter': 'Zarovnat na střed',
|
|
16
14
|
'fabric.editor.alignImageCenter': 'Zarovnat na střed',
|
|
17
15
|
'fabric.editor.alignImageLeft': 'Zarovnat vlevo',
|
|
@@ -161,7 +159,6 @@ export default {
|
|
|
161
159
|
'fabric.editor.mediaAddLink': 'Přidat odkaz',
|
|
162
160
|
'fabric.editor.mediaFiles': 'Obrázek, video nebo soubor',
|
|
163
161
|
'fabric.editor.mediaFiles.description': 'Přidejte na svou stránku obrázky a další soubory',
|
|
164
|
-
'fabric.editor.media_change_mediainline': 'Vložený',
|
|
165
162
|
'fabric.editor.media_change_mediasingle': 'Původní velikost',
|
|
166
163
|
'fabric.editor.mention': 'Zmínka',
|
|
167
164
|
'fabric.editor.mention.description': 'Zmiňte někoho, abyste jim zaslali oznámení',
|
package/dist/esm/i18n/da.js
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': 'Handlingsgenstand',
|
|
11
11
|
'fabric.editor.action.description': 'Opret og tildel handlingsgenstande',
|
|
12
|
-
'fabric.editor.
|
|
12
|
+
'fabric.editor.addColumnLeft': 'Tilføj kolonne til venstre',
|
|
13
|
+
'fabric.editor.addColumnRight': 'Tilføj kolonne til højre',
|
|
13
14
|
'fabric.editor.addMediaFiles': 'Tilføj billede, video eller fil',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': 'Tilføj række ovenfor',
|
|
16
|
+
'fabric.editor.addRowBelow': 'Tilføj række nedenfor',
|
|
15
17
|
'fabric.editor.alignCenter': 'Centrér',
|
|
16
18
|
'fabric.editor.alignImageCenter': 'Centrér',
|
|
17
19
|
'fabric.editor.alignImageLeft': 'Venstrejustér',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': 'Vis kode med syntaksfremhævning',
|
|
50
52
|
'fabric.editor.collapseNode': 'skjul indhold',
|
|
51
53
|
'fabric.editor.collapseTable': 'Luk tabel',
|
|
54
|
+
'fabric.editor.columnDragHandle': 'Kolonneindstillinger',
|
|
52
55
|
'fabric.editor.columns': 'Layout',
|
|
53
56
|
'fabric.editor.columns.description': 'Opdel din side i afsnit',
|
|
54
57
|
'fabric.editor.copiedToClipboard': 'Kopieret!',
|
|
@@ -86,6 +89,11 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'Ingen resultater matcher din søgning',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Prøv et andet søgeord, eller find nye apps til Atlassian-produkter.',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Gå på opdagelse på Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'Ingen resultater matcher din søgning',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'muligt forslag til indtastet tekst.',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'mulige forslag til indtastet tekst.',
|
|
95
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Indtast',
|
|
96
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Søg',
|
|
89
97
|
'fabric.editor.elementbrowser.sidebar.heading': 'Gennemse',
|
|
90
98
|
'fabric.editor.embedTitle': 'Indlejr',
|
|
91
99
|
'fabric.editor.emoji': 'Emoji',
|
|
@@ -141,6 +149,7 @@ export default {
|
|
|
141
149
|
'fabric.editor.infoPanel': 'Informationspanel',
|
|
142
150
|
'fabric.editor.infoPanel.description': 'Fremhæv information i et farvet panel',
|
|
143
151
|
'fabric.editor.inlineDescription': 'Vis link som indbygget tekst',
|
|
152
|
+
'fabric.editor.inlineOverlay': 'Konfigurer',
|
|
144
153
|
'fabric.editor.inlineTitle': 'Indbyg',
|
|
145
154
|
'fabric.editor.insertColumn': 'Indsæt kolonne til højre',
|
|
146
155
|
'fabric.editor.insertColumnDrag': 'Indsæt kolonne',
|
|
@@ -161,12 +170,15 @@ export default {
|
|
|
161
170
|
'fabric.editor.mediaAddLink': 'Tilføj link',
|
|
162
171
|
'fabric.editor.mediaFiles': 'Billede, video eller fil',
|
|
163
172
|
'fabric.editor.mediaFiles.description': 'Tilføj billeder eller andre filer til din side',
|
|
164
|
-
'fabric.editor.media_change_mediainline': 'Indbyg',
|
|
165
173
|
'fabric.editor.media_change_mediasingle': 'Original størrelse',
|
|
166
174
|
'fabric.editor.mention': 'Benævnelse',
|
|
167
175
|
'fabric.editor.mention.description': 'Omtal nogen for at sende dem en notifikation',
|
|
168
176
|
'fabric.editor.mergeCells': 'Flet celler',
|
|
169
177
|
'fabric.editor.moreFormatting': 'Mere formatering',
|
|
178
|
+
'fabric.editor.moveColumnLeft': '{0, plural, one {Flyt kolonne til venstre} other {Flyt kolonner til venstre}}',
|
|
179
|
+
'fabric.editor.moveColumnRight': '{0, plural, one {Flyt kolonne til højre} other {Flyt kolonner til højre}}',
|
|
180
|
+
'fabric.editor.moveDownDown': '{0, plural, one {Flyt række ned} other {Flyt rækker ned}}',
|
|
181
|
+
'fabric.editor.moveRowUp': '{0, plural, one {Flyt række op} other {Flyt rækker op}}',
|
|
170
182
|
'fabric.editor.navigate.toolbar.editor': 'Naviger til værktøjslinje til redigeringsprogram',
|
|
171
183
|
'fabric.editor.navigate.toolbar.floating': 'Naviger til flydende værktøjslinje',
|
|
172
184
|
'fabric.editor.normal': 'Normal tekst',
|
|
@@ -192,11 +204,14 @@ export default {
|
|
|
192
204
|
'fabric.editor.removeRows': '{0, plural, one {Slet række} other {Slet rækker}}',
|
|
193
205
|
'fabric.editor.rightSidebar': 'Højre sidebjælke',
|
|
194
206
|
'fabric.editor.rowControl': 'Fremhæv række',
|
|
207
|
+
'fabric.editor.rowDragHandle': 'Rækkeindstillinger',
|
|
195
208
|
'fabric.editor.saveButton': 'Gem',
|
|
196
209
|
'fabric.editor.settingsLinks': 'Gå til Indstillinger for links',
|
|
197
210
|
'fabric.editor.single': 'Enkelt kolonne',
|
|
198
211
|
'fabric.editor.sortColumnASC': 'Sorter kolonnen fra A → Å',
|
|
199
212
|
'fabric.editor.sortColumnDESC': 'Sorter kolonnen fra Å → A',
|
|
213
|
+
'fabric.editor.sortColumnDecreasing': 'Sortér faldende',
|
|
214
|
+
'fabric.editor.sortColumnIncreasing': 'Sortér stigende',
|
|
200
215
|
'fabric.editor.splitCell': 'Opdel celle',
|
|
201
216
|
'fabric.editor.status': 'Status',
|
|
202
217
|
'fabric.editor.status.description': 'Tilføj en brugerdefineret statusetiket',
|
|
@@ -215,6 +230,10 @@ export default {
|
|
|
215
230
|
'fabric.editor.tableOptions': 'Egenskaber for tabel',
|
|
216
231
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Tabelbredde reduceret til {newWidth,number} pixel.} other {Tabelbredde reduceret til {newWidth,number} pixel.}}',
|
|
217
232
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Tabelbredde øget til {newWidth,number} pixel.} other {Tabelbredde øget til {newWidth,number} pixels.}}',
|
|
233
|
+
'fabric.editor.tableSelector': 'Tabelstørrelse',
|
|
234
|
+
'fabric.editor.tableSelector.description': 'Tilføj en tabel ved hjælp af popup for at vælge en brugerdefineret størrelse',
|
|
235
|
+
'fabric.editor.tableSizeSelectorButton': 'Opret tabel med størrelsen',
|
|
236
|
+
'fabric.editor.tableSizeSelectorPopup': 'Vælger til tabelstørrelse',
|
|
218
237
|
'fabric.editor.tables.adjustColumn': 'Tilpas kolonne',
|
|
219
238
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Hvis du sletter {nodeName}, brydes forbindelsen til alt, der er forbundet til den.',
|
|
220
239
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Slet',
|
|
@@ -305,5 +324,6 @@ export default {
|
|
|
305
324
|
'fabric.theme.subtle-yellow': 'Svag gul',
|
|
306
325
|
'fabric.theme.teal': 'Teal',
|
|
307
326
|
'fabric.theme.white': 'Hvid',
|
|
308
|
-
'fabric.theme.yellow': 'Gul'
|
|
327
|
+
'fabric.theme.yellow': 'Gul',
|
|
328
|
+
'fabrid.editor.rowNumbers': 'Rækkenumre'
|
|
309
329
|
};
|
package/dist/esm/i18n/de.js
CHANGED
|
@@ -9,9 +9,7 @@
|
|
|
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',
|
|
13
12
|
'fabric.editor.addMediaFiles': 'Bild, Video oder Datei hinzufügen',
|
|
14
|
-
'fabric.editor.addRow': 'Zeile unterhalb hinzufügen',
|
|
15
13
|
'fabric.editor.alignCenter': 'Mittig ausrichten',
|
|
16
14
|
'fabric.editor.alignImageCenter': 'Mittig ausrichten',
|
|
17
15
|
'fabric.editor.alignImageLeft': 'Links ausrichten',
|
|
@@ -161,7 +159,6 @@ export default {
|
|
|
161
159
|
'fabric.editor.mediaAddLink': 'Link hinzufügen',
|
|
162
160
|
'fabric.editor.mediaFiles': 'Bild, Video oder Datei',
|
|
163
161
|
'fabric.editor.mediaFiles.description': 'Bilder oder andere Dateien zu Ihrer Seite hinzufügen',
|
|
164
|
-
'fabric.editor.media_change_mediainline': 'Inline',
|
|
165
162
|
'fabric.editor.media_change_mediasingle': 'Originalgröße',
|
|
166
163
|
'fabric.editor.mention': 'Erwähnen',
|
|
167
164
|
'fabric.editor.mention.description': 'Erwähnen Sie einen Benutzer, um ihm eine Benachrichtigung zu senden.',
|
package/dist/esm/i18n/en.js
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
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.
|
|
12
|
+
'fabric.editor.addColumnLeft': 'Add column left',
|
|
13
|
+
'fabric.editor.addColumnRight': 'Add column right',
|
|
13
14
|
'fabric.editor.addMediaFiles': 'Add image, video, or file',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': 'Add row above',
|
|
16
|
+
'fabric.editor.addRowBelow': 'Add row below',
|
|
15
17
|
'fabric.editor.alignCenter': 'Align center',
|
|
16
18
|
'fabric.editor.alignImageCenter': 'Align center',
|
|
17
19
|
'fabric.editor.alignImageLeft': 'Align left',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': 'Display code with syntax highlighting',
|
|
50
52
|
'fabric.editor.collapseNode': 'Collapse content',
|
|
51
53
|
'fabric.editor.collapseTable': 'Collapse table',
|
|
54
|
+
'fabric.editor.columnDragHandle': 'Column options',
|
|
52
55
|
'fabric.editor.columns': 'Layouts',
|
|
53
56
|
'fabric.editor.columns.description': 'Structure your page using sections',
|
|
54
57
|
'fabric.editor.copiedToClipboard': 'Copied!',
|
|
@@ -86,6 +89,11 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'Nothing matches your search',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Try searching with a different term or discover new apps for Atlassian products.',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Explore Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'Nothing matches your search',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'suggestion available for typed text.',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'suggestions available for typed text.',
|
|
95
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
96
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Search',
|
|
89
97
|
'fabric.editor.elementbrowser.sidebar.heading': 'Browse',
|
|
90
98
|
'fabric.editor.embedTitle': 'Embed',
|
|
91
99
|
'fabric.editor.emoji': 'Emoji',
|
|
@@ -162,12 +170,16 @@ export default {
|
|
|
162
170
|
'fabric.editor.mediaAddLink': 'Add link',
|
|
163
171
|
'fabric.editor.mediaFiles': 'Image, video, or file',
|
|
164
172
|
'fabric.editor.mediaFiles.description': 'Add images and other files to your page',
|
|
165
|
-
'fabric.editor.media_change_mediainline': 'Inline',
|
|
173
|
+
'fabric.editor.media_change_mediainline': 'Inline (caption will be removed)',
|
|
166
174
|
'fabric.editor.media_change_mediasingle': 'Original size',
|
|
167
175
|
'fabric.editor.mention': 'Mention',
|
|
168
176
|
'fabric.editor.mention.description': 'Mention someone to send them a notification',
|
|
169
177
|
'fabric.editor.mergeCells': 'Merge cells',
|
|
170
178
|
'fabric.editor.moreFormatting': 'More formatting',
|
|
179
|
+
'fabric.editor.moveColumnLeft': 'Move {0, plural, one {column} other {columns}} left',
|
|
180
|
+
'fabric.editor.moveColumnRight': 'Move {0, plural, one {column} other {columns}} right',
|
|
181
|
+
'fabric.editor.moveDownDown': 'Move {0, plural, one {row} other {rows}} down',
|
|
182
|
+
'fabric.editor.moveRowUp': 'Move {0, plural, one {row} other {rows}} up',
|
|
171
183
|
'fabric.editor.navigate.toolbar.editor': 'Navigate to editor toolbar',
|
|
172
184
|
'fabric.editor.navigate.toolbar.floating': 'Navigate to floating toolbar',
|
|
173
185
|
'fabric.editor.normal': 'Normal text',
|
|
@@ -193,11 +205,14 @@ export default {
|
|
|
193
205
|
'fabric.editor.removeRows': 'Delete {0, plural, one {row} other {rows}}',
|
|
194
206
|
'fabric.editor.rightSidebar': 'Right sidebar',
|
|
195
207
|
'fabric.editor.rowControl': 'Highlight row',
|
|
208
|
+
'fabric.editor.rowDragHandle': 'Row options',
|
|
196
209
|
'fabric.editor.saveButton': 'Save',
|
|
197
210
|
'fabric.editor.settingsLinks': 'Go to Link Preferences',
|
|
198
211
|
'fabric.editor.single': 'Single column',
|
|
199
212
|
'fabric.editor.sortColumnASC': 'Sort column A → Z',
|
|
200
213
|
'fabric.editor.sortColumnDESC': 'Sort column Z → A',
|
|
214
|
+
'fabric.editor.sortColumnDecreasing': 'Sort decreasing',
|
|
215
|
+
'fabric.editor.sortColumnIncreasing': 'Sort increasing',
|
|
201
216
|
'fabric.editor.splitCell': 'Split cell',
|
|
202
217
|
'fabric.editor.status': 'Status',
|
|
203
218
|
'fabric.editor.status.description': 'Add a custom status label',
|
|
@@ -218,6 +233,8 @@ export default {
|
|
|
218
233
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': 'Table width increased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
219
234
|
'fabric.editor.tableSelector': 'Table size',
|
|
220
235
|
'fabric.editor.tableSelector.description': 'Add a table using popup to select a custom size',
|
|
236
|
+
'fabric.editor.tableSizeSelectorButton': 'Create table of size',
|
|
237
|
+
'fabric.editor.tableSizeSelectorPopup': 'Table size selector',
|
|
221
238
|
'fabric.editor.tables.adjustColumn': 'Adjust column',
|
|
222
239
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
223
240
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Delete',
|
|
@@ -230,7 +247,7 @@ export default {
|
|
|
230
247
|
'fabric.editor.time.ago': 'ago',
|
|
231
248
|
'fabric.editor.time.updated': 'Updated',
|
|
232
249
|
'fabric.editor.time.viewed': 'Viewed',
|
|
233
|
-
'fabric.editor.toolbarLabel': 'Editor
|
|
250
|
+
'fabric.editor.toolbarLabel': 'Editor',
|
|
234
251
|
'fabric.editor.tooltip.blockPanel': 'a panel',
|
|
235
252
|
'fabric.editor.tooltip.bulletList': 'a list',
|
|
236
253
|
'fabric.editor.tooltip.decisionList': 'a decision list',
|
|
@@ -308,5 +325,6 @@ export default {
|
|
|
308
325
|
'fabric.theme.subtle-yellow': 'Subtle yellow',
|
|
309
326
|
'fabric.theme.teal': 'Teal',
|
|
310
327
|
'fabric.theme.white': 'White',
|
|
311
|
-
'fabric.theme.yellow': 'Yellow'
|
|
328
|
+
'fabric.theme.yellow': 'Yellow',
|
|
329
|
+
'fabrid.editor.rowNumbers': 'Row numbers'
|
|
312
330
|
};
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
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.
|
|
12
|
+
'fabric.editor.addColumnLeft': 'Add column left',
|
|
13
|
+
'fabric.editor.addColumnRight': 'Add column right',
|
|
13
14
|
'fabric.editor.addMediaFiles': 'Add image, video, or file',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': 'Add row above',
|
|
16
|
+
'fabric.editor.addRowBelow': 'Add row below',
|
|
15
17
|
'fabric.editor.alignCenter': 'Align center',
|
|
16
18
|
'fabric.editor.alignImageCenter': 'Align center',
|
|
17
19
|
'fabric.editor.alignImageLeft': 'Align left',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': 'Display code with syntax highlighting',
|
|
50
52
|
'fabric.editor.collapseNode': 'Collapse content',
|
|
51
53
|
'fabric.editor.collapseTable': 'Collapse table',
|
|
54
|
+
'fabric.editor.columnDragHandle': 'Column options',
|
|
52
55
|
'fabric.editor.columns': 'Layouts',
|
|
53
56
|
'fabric.editor.columns.description': 'Structure your page using sections',
|
|
54
57
|
'fabric.editor.copiedToClipboard': 'Copied!',
|
|
@@ -86,6 +89,11 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'Nothing matches your search',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Try searching with a different term or discover new apps for Atlassian products.',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Explore Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'Nothing matches your search',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'suggestion available for typed text.',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'suggestions available for typed text.',
|
|
95
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
96
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Search',
|
|
89
97
|
'fabric.editor.elementbrowser.sidebar.heading': 'Browse',
|
|
90
98
|
'fabric.editor.embedTitle': 'Embed',
|
|
91
99
|
'fabric.editor.emoji': 'Emoji',
|
|
@@ -145,7 +153,7 @@ export default {
|
|
|
145
153
|
'fabric.editor.inlineTitle': 'Inline',
|
|
146
154
|
'fabric.editor.insertColumn': 'Insert column right',
|
|
147
155
|
'fabric.editor.insertColumnDrag': 'Insert column',
|
|
148
|
-
'fabric.editor.insertMenu': 'Insert',
|
|
156
|
+
'fabric.editor.insertMenu': 'Insert elements',
|
|
149
157
|
'fabric.editor.insertRow': 'Insert row below',
|
|
150
158
|
'fabric.editor.insertRowDrag': 'Insert row',
|
|
151
159
|
'fabric.editor.invalidLink': 'Please enter a valid link.',
|
|
@@ -162,12 +170,16 @@ export default {
|
|
|
162
170
|
'fabric.editor.mediaAddLink': 'Add link',
|
|
163
171
|
'fabric.editor.mediaFiles': 'Image, video, or file',
|
|
164
172
|
'fabric.editor.mediaFiles.description': 'Add images and other files to your page',
|
|
165
|
-
'fabric.editor.media_change_mediainline': 'Inline',
|
|
173
|
+
'fabric.editor.media_change_mediainline': 'Inline (caption will be removed)',
|
|
166
174
|
'fabric.editor.media_change_mediasingle': 'Original size',
|
|
167
175
|
'fabric.editor.mention': 'Mention',
|
|
168
176
|
'fabric.editor.mention.description': 'Mention someone to send them a notification',
|
|
169
177
|
'fabric.editor.mergeCells': 'Merge cells',
|
|
170
178
|
'fabric.editor.moreFormatting': 'More formatting',
|
|
179
|
+
'fabric.editor.moveColumnLeft': 'Move {0, plural, one {column} other {columns}} left',
|
|
180
|
+
'fabric.editor.moveColumnRight': 'Move {0, plural, one {column} other {columns}} right',
|
|
181
|
+
'fabric.editor.moveDownDown': 'Move {0, plural, one {row} other {rows}} down',
|
|
182
|
+
'fabric.editor.moveRowUp': 'Move {0, plural, one {row} other {rows}} up',
|
|
171
183
|
'fabric.editor.navigate.toolbar.editor': 'Navigate to editor toolbar',
|
|
172
184
|
'fabric.editor.navigate.toolbar.floating': 'Navigate to floating toolbar',
|
|
173
185
|
'fabric.editor.normal': 'Normal text',
|
|
@@ -193,11 +205,14 @@ export default {
|
|
|
193
205
|
'fabric.editor.removeRows': 'Delete {0, plural, one {row} other {rows}}',
|
|
194
206
|
'fabric.editor.rightSidebar': 'Right sidebar',
|
|
195
207
|
'fabric.editor.rowControl': 'Highlight row',
|
|
208
|
+
'fabric.editor.rowDragHandle': 'Row options',
|
|
196
209
|
'fabric.editor.saveButton': 'Save',
|
|
197
210
|
'fabric.editor.settingsLinks': 'Go to Link Preferences',
|
|
198
211
|
'fabric.editor.single': 'Single column',
|
|
199
212
|
'fabric.editor.sortColumnASC': 'Sort column A → Z',
|
|
200
213
|
'fabric.editor.sortColumnDESC': 'Sort column Z → A',
|
|
214
|
+
'fabric.editor.sortColumnDecreasing': 'Sort decreasing',
|
|
215
|
+
'fabric.editor.sortColumnIncreasing': 'Sort increasing',
|
|
201
216
|
'fabric.editor.splitCell': 'Split cell',
|
|
202
217
|
'fabric.editor.status': 'Status',
|
|
203
218
|
'fabric.editor.status.description': 'Add a custom status label',
|
|
@@ -218,6 +233,8 @@ export default {
|
|
|
218
233
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': 'Table width increased to {newWidth, plural, one {# pixel} other {# pixels}}.',
|
|
219
234
|
'fabric.editor.tableSelector': 'Table size',
|
|
220
235
|
'fabric.editor.tableSelector.description': 'Add a table using popup to select a custom size',
|
|
236
|
+
'fabric.editor.tableSizeSelectorButton': 'Create table of size',
|
|
237
|
+
'fabric.editor.tableSizeSelectorPopup': 'Table size selector',
|
|
221
238
|
'fabric.editor.tables.adjustColumn': 'Adjust column',
|
|
222
239
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
223
240
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Delete',
|
|
@@ -230,7 +247,7 @@ export default {
|
|
|
230
247
|
'fabric.editor.time.ago': 'ago',
|
|
231
248
|
'fabric.editor.time.updated': 'Updated',
|
|
232
249
|
'fabric.editor.time.viewed': 'Viewed',
|
|
233
|
-
'fabric.editor.toolbarLabel': 'Editor
|
|
250
|
+
'fabric.editor.toolbarLabel': 'Editor',
|
|
234
251
|
'fabric.editor.tooltip.blockPanel': 'a panel',
|
|
235
252
|
'fabric.editor.tooltip.bulletList': 'a list',
|
|
236
253
|
'fabric.editor.tooltip.decisionList': 'a decision list',
|
|
@@ -308,5 +325,6 @@ export default {
|
|
|
308
325
|
'fabric.theme.subtle-yellow': 'Subtle yellow',
|
|
309
326
|
'fabric.theme.teal': 'Teal',
|
|
310
327
|
'fabric.theme.white': 'White',
|
|
311
|
-
'fabric.theme.yellow': 'Yellow'
|
|
328
|
+
'fabric.theme.yellow': 'Yellow',
|
|
329
|
+
'fabrid.editor.rowNumbers': 'Row numbers'
|
|
312
330
|
};
|