@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,137 +1,41 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
|
|
4
5
|
import React, { useState } from 'react';
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { createDispatch } from '../../event-dispatcher';
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
9
9
|
import { useSharedPluginState } from '../../hooks';
|
|
10
|
-
import {
|
|
10
|
+
import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
|
|
11
11
|
import { WithPluginState } from '../../with-plugin-state';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
throw new Error('Could not create paragraph');
|
|
39
|
-
}
|
|
40
|
-
const frame = state.schema.nodes.extensionFrame.createAndFill({}, [p]);
|
|
41
|
-
const pos = getPos();
|
|
42
|
-
if (typeof pos !== 'number' || !frame) {
|
|
43
|
-
throw new Error('Could not create frame or position not valid');
|
|
44
|
-
}
|
|
45
|
-
const insertAt = Math.min((pos || 1) + node.content.size, state.doc.content.size);
|
|
46
|
-
dispatch(state.tr.insert(insertAt, frame));
|
|
47
|
-
if (eventDispatcher) {
|
|
48
|
-
sendMBEAnalyticsEvent(ACTION.ADD_CHILD, node, eventDispatcher);
|
|
49
|
-
}
|
|
50
|
-
return true;
|
|
51
|
-
},
|
|
52
|
-
getChildrenCount() {
|
|
53
|
-
return node.content.childCount;
|
|
54
|
-
},
|
|
55
|
-
removeChild(index) {
|
|
56
|
-
const pos = getPos();
|
|
57
|
-
// TODO: Add child index validation here, don't trust this data
|
|
58
|
-
if (typeof pos !== 'number' || typeof index !== 'number') {
|
|
59
|
-
throw new Error('Position or index not valid');
|
|
60
|
-
}
|
|
61
|
-
const {
|
|
62
|
-
state,
|
|
63
|
-
dispatch
|
|
64
|
-
} = editorView;
|
|
65
|
-
if (node.content.childCount === 1) {
|
|
66
|
-
const tr = state.tr;
|
|
67
|
-
tr.deleteRange(pos, pos + node.content.size);
|
|
68
|
-
dispatch(tr);
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
const $pos = state.doc.resolve(pos);
|
|
72
|
-
const $startNodePos = state.doc.resolve($pos.start($pos.depth + 1));
|
|
73
|
-
const startFramePosition = $startNodePos.posAtIndex(index);
|
|
74
|
-
const maybeFrameNode = state.doc.nodeAt(startFramePosition);
|
|
75
|
-
if (!maybeFrameNode) {
|
|
76
|
-
throw new Error('Could not find frame node');
|
|
77
|
-
}
|
|
78
|
-
const endFramePosition = maybeFrameNode.content.size + startFramePosition;
|
|
79
|
-
const tr = state.tr;
|
|
80
|
-
tr.deleteRange(startFramePosition, endFramePosition);
|
|
81
|
-
dispatch(tr);
|
|
82
|
-
if (eventDispatcher) {
|
|
83
|
-
sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
|
|
84
|
-
}
|
|
85
|
-
return true;
|
|
86
|
-
},
|
|
87
|
-
updateParameters(parameters) {
|
|
88
|
-
const {
|
|
89
|
-
state,
|
|
90
|
-
dispatch
|
|
91
|
-
} = editorView;
|
|
92
|
-
const pos = getPos();
|
|
93
|
-
if (typeof pos !== 'number') {
|
|
94
|
-
throw new Error('Position not valid');
|
|
95
|
-
}
|
|
96
|
-
const tr = state.tr.setNodeMarkup(pos, undefined, {
|
|
97
|
-
...node.attrs,
|
|
98
|
-
parameters: {
|
|
99
|
-
...node.attrs.parameters,
|
|
100
|
-
macroParams: parameters
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
dispatch(tr);
|
|
104
|
-
if (eventDispatcher) {
|
|
105
|
-
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
106
|
-
}
|
|
107
|
-
return true;
|
|
108
|
-
},
|
|
109
|
-
getChildren() {
|
|
110
|
-
var _state$doc$nodeAt;
|
|
111
|
-
const {
|
|
112
|
-
state
|
|
113
|
-
} = editorView;
|
|
114
|
-
const pos = getPos();
|
|
115
|
-
if (typeof pos !== 'number') {
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
const children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
|
|
119
|
-
if (eventDispatcher) {
|
|
120
|
-
sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
|
|
121
|
-
}
|
|
122
|
-
return children ? children.toJSON() : [];
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}, [node, editorView, getPos, updateActiveChild, eventDispatcher]);
|
|
126
|
-
return actions;
|
|
12
|
+
import { useMultiBodiedExtensionActions } from './action-api';
|
|
13
|
+
import { extensionFrameContentCSS, mbeExtensionContainerCSS, mbeExtensionWrapperCSS, mbeNavigationCSS } from './styles';
|
|
14
|
+
// Similar to the one in platform/packages/editor/editor-common/src/extensibility/Extension/Lozenge.tsx
|
|
15
|
+
const getWrapperTitleContent = (imageData, title) => {
|
|
16
|
+
if (imageData) {
|
|
17
|
+
const {
|
|
18
|
+
url,
|
|
19
|
+
...rest
|
|
20
|
+
} = imageData;
|
|
21
|
+
return jsx("div", {
|
|
22
|
+
className: "extension-title"
|
|
23
|
+
}, jsx("img", _extends({
|
|
24
|
+
css: css`
|
|
25
|
+
max-height: 24px;
|
|
26
|
+
max-width: 24px;
|
|
27
|
+
`,
|
|
28
|
+
src: url
|
|
29
|
+
}, rest, {
|
|
30
|
+
alt: title
|
|
31
|
+
})), title);
|
|
32
|
+
}
|
|
33
|
+
return jsx("div", {
|
|
34
|
+
className: "extension-title"
|
|
35
|
+
}, jsx(EditorFileIcon, {
|
|
36
|
+
label: title
|
|
37
|
+
}), title);
|
|
127
38
|
};
|
|
128
|
-
const navigationCSS = css`
|
|
129
|
-
// make sure the user can't see a range selection inside the navigation
|
|
130
|
-
// This is really important to keep the navigation working properly
|
|
131
|
-
user-select: none;
|
|
132
|
-
-webkit-user-modify: read-only;
|
|
133
|
-
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
134
|
-
`;
|
|
135
39
|
const MultiBodiedExtensionWithWidth = ({
|
|
136
40
|
node,
|
|
137
41
|
handleContentDOMRef,
|
|
@@ -142,6 +46,15 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
142
46
|
widthState,
|
|
143
47
|
editorAppearance
|
|
144
48
|
}) => {
|
|
49
|
+
const {
|
|
50
|
+
parameters,
|
|
51
|
+
extensionKey
|
|
52
|
+
} = node.attrs;
|
|
53
|
+
const title = parameters && parameters.extensionTitle || parameters && parameters.macroMetadata && parameters.macroMetadata.title || extensionKey || node.type.name;
|
|
54
|
+
const imageData = getExtensionLozengeData({
|
|
55
|
+
node,
|
|
56
|
+
type: 'image'
|
|
57
|
+
});
|
|
145
58
|
const [activeChildIndex, setActiveChildIndex] = useState(0);
|
|
146
59
|
// Adding to avoid aliasing `this` for the callbacks
|
|
147
60
|
const updateActiveChild = React.useCallback(index => {
|
|
@@ -165,18 +78,11 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
165
78
|
const articleRef = React.useCallback(node => {
|
|
166
79
|
return handleContentDOMRef(node);
|
|
167
80
|
}, [handleContentDOMRef]);
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
min-height: 100px;
|
|
171
|
-
.multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'] {
|
|
172
|
-
display: none;
|
|
173
|
-
}
|
|
174
|
-
|
|
81
|
+
const containerCssExtended = css`
|
|
82
|
+
${mbeExtensionContainerCSS};
|
|
175
83
|
.multiBodiedExtension-content-dom-wrapper
|
|
176
84
|
> [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) {
|
|
177
|
-
|
|
178
|
-
display: block;
|
|
179
|
-
min-height: 100px;
|
|
85
|
+
${extensionFrameContentCSS}
|
|
180
86
|
}
|
|
181
87
|
`;
|
|
182
88
|
const shouldBreakout =
|
|
@@ -184,7 +90,7 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
184
90
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
185
91
|
// Extension breakout state should not be respected when the editor appearance is full-width mode
|
|
186
92
|
editorAppearance !== 'full-width';
|
|
187
|
-
let
|
|
93
|
+
let mbeWrapperStyles = {};
|
|
188
94
|
if (shouldBreakout) {
|
|
189
95
|
const {
|
|
190
96
|
...breakoutStyles
|
|
@@ -193,40 +99,28 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
193
99
|
widthStateLineLength: widthState === null || widthState === void 0 ? void 0 : widthState.lineLength,
|
|
194
100
|
widthStateWidth: widthState === null || widthState === void 0 ? void 0 : widthState.width
|
|
195
101
|
});
|
|
196
|
-
|
|
102
|
+
mbeWrapperStyles = breakoutStyles;
|
|
197
103
|
}
|
|
198
|
-
|
|
104
|
+
const wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block');
|
|
105
|
+
return jsx("div", {
|
|
106
|
+
className: wrapperClassNames,
|
|
107
|
+
css: mbeExtensionWrapperCSS,
|
|
108
|
+
"data-testid": "multiBodiedExtension--wrapper",
|
|
109
|
+
style: mbeWrapperStyles
|
|
110
|
+
}, getWrapperTitleContent(imageData, title), jsx("div", {
|
|
199
111
|
className: "multiBodiedExtension--container",
|
|
200
|
-
css:
|
|
112
|
+
css: containerCssExtended,
|
|
201
113
|
"data-testid": "multiBodiedExtension--container",
|
|
202
|
-
"data-active-child-index": activeChildIndex
|
|
203
|
-
style: mbeContainerStyles
|
|
114
|
+
"data-active-child-index": activeChildIndex
|
|
204
115
|
}, jsx("nav", {
|
|
205
116
|
className: "multiBodiedExtension-navigation",
|
|
206
|
-
css:
|
|
117
|
+
css: mbeNavigationCSS,
|
|
207
118
|
"data-testid": "multiBodiedExtension-navigation"
|
|
208
119
|
}, extensionHandlerResult), jsx("article", {
|
|
209
120
|
className: "multiBodiedExtension--frames",
|
|
210
121
|
"data-testid": "multiBodiedExtension--frames",
|
|
211
122
|
ref: articleRef
|
|
212
|
-
}));
|
|
213
|
-
};
|
|
214
|
-
const sendMBEAnalyticsEvent = (action, node, eventDispatcher) => {
|
|
215
|
-
const analyticsDispatch = createDispatch(eventDispatcher);
|
|
216
|
-
analyticsDispatch(analyticsEventKey, {
|
|
217
|
-
payload: {
|
|
218
|
-
action,
|
|
219
|
-
actionSubject: ACTION_SUBJECT.MULTI_BODIED_EXTENSION,
|
|
220
|
-
eventType: EVENT_TYPE.TRACK,
|
|
221
|
-
attributes: {
|
|
222
|
-
extensionType: node.attrs.extensionType,
|
|
223
|
-
extensionKey: node.attrs.extensionKey,
|
|
224
|
-
localId: node.attrs.localId,
|
|
225
|
-
maxFramesCount: node.attrs.maxFrames,
|
|
226
|
-
currentFramesCount: node.content.childCount
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
});
|
|
123
|
+
})));
|
|
230
124
|
};
|
|
231
125
|
const MultiBodiedExtensionWithSharedState = props => {
|
|
232
126
|
const {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { N30, N40 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { wrapperDefault } from '../Extension/styles';
|
|
4
|
+
|
|
5
|
+
// Wrapper the extension title and extensionContainer
|
|
6
|
+
export const mbeExtensionWrapperCSS = css`
|
|
7
|
+
${wrapperDefault};
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
.extension-title {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
line-height: 16px !important;
|
|
13
|
+
margin-bottom: ${"var(--ds-space-100, 8px)"};
|
|
14
|
+
margin-left: ${"var(--ds-space-050, 4px)"} !important;
|
|
15
|
+
margin-right: ${"var(--ds-space-100, 8px)"};
|
|
16
|
+
padding-top: ${"var(--ds-space-100, 8px)"} !important;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
// Wraps the navigation bar and extensionFrames
|
|
21
|
+
export const mbeExtensionContainerCSS = css`
|
|
22
|
+
background: transpaent !important;
|
|
23
|
+
padding: {
|
|
24
|
+
bottom: ${"var(--ds-space-100, 8px)"} !important;
|
|
25
|
+
left: ${"var(--ds-space-100, 8px)"} !important;
|
|
26
|
+
right: ${"var(--ds-space-100, 8px)"} !important;
|
|
27
|
+
}
|
|
28
|
+
padding-bottom: ${"var(--ds-space-100, 8px)"};
|
|
29
|
+
position: relative;
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
33
|
+
.multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'] {
|
|
34
|
+
display: none;
|
|
35
|
+
background: ${"var(--ds-surface, white)"};
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
export const mbeNavigationCSS = css`
|
|
39
|
+
// make sure the user can't see a range selection inside the navigation
|
|
40
|
+
// This is really important to keep the navigation working properly
|
|
41
|
+
border-top-left-radius: ${"var(--ds-border-radius, 3px)"};
|
|
42
|
+
border-top-right-radius: ${"var(--ds-border-radius, 3px)"};
|
|
43
|
+
|
|
44
|
+
user-select: none;
|
|
45
|
+
-webkit-user-modify: read-only;
|
|
46
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
47
|
+
border-bottom: none;
|
|
48
|
+
background: ${"var(--ds-surface, white)"};
|
|
49
|
+
margin-left: ${"var(--ds-space-100, 8px)"};
|
|
50
|
+
margin-right: ${"var(--ds-space-100, 8px)"};
|
|
51
|
+
`;
|
|
52
|
+
export const extensionFrameContentCSS = css`
|
|
53
|
+
padding: ${"var(--ds-space-100, 8px)"} !important;
|
|
54
|
+
border: 1px solid ${`var(--ds-border, ${N30})`};
|
|
55
|
+
display: block;
|
|
56
|
+
min-height: 100px;
|
|
57
|
+
background: ${"var(--ds-surface, white)"};
|
|
58
|
+
border-bottom-left-radius: ${"var(--ds-border-radius, 3px)"};
|
|
59
|
+
border-bottom-right-radius: ${"var(--ds-border-radius, 3px)"};
|
|
60
|
+
|
|
61
|
+
margin-left: ${"var(--ds-space-100, 8px)"};
|
|
62
|
+
margin-right: ${"var(--ds-space-100, 8px)"};
|
|
63
|
+
cursor: initial;
|
|
64
|
+
|
|
65
|
+
.pm-table-container {
|
|
66
|
+
margin-left: ${"var(--ds-space-100, 8px)"} !important;
|
|
67
|
+
padding-right: ${"var(--ds-space-200, 16px)"} !important;
|
|
68
|
+
}
|
|
69
|
+
.pm-table-with-controls {
|
|
70
|
+
margin-left: ${"var(--ds-space-150, 12px)"} !important;
|
|
71
|
+
padding-right: ${"var(--ds-space-150, 12px)"} !important;
|
|
72
|
+
}
|
|
73
|
+
.bodiedExtensionView-content-wrap {
|
|
74
|
+
margin-top: ${"var(--ds-space-150, 12px)"} !important;
|
|
75
|
+
}
|
|
76
|
+
// Extension wrap have an additional margin on all four borders, so we need to adjust the spacing
|
|
77
|
+
// compared to the bodiedExtensionView-content-wrap
|
|
78
|
+
.extensionView-content-wrap {
|
|
79
|
+
margin-top: ${"var(--ds-space-100, 8px)"} !important;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
@@ -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 const sendMBEAnalyticsEvent = (action, node, eventDispatcher) => {
|
|
5
|
+
const analyticsDispatch = createDispatch(eventDispatcher);
|
|
6
|
+
analyticsDispatch(analyticsEventKey, {
|
|
7
|
+
payload: {
|
|
8
|
+
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/es2019/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/es2019/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/es2019/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/es2019/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
|
};
|