@atlaskit/editor-common 103.5.0 → 103.7.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 +21 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +11 -11
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/messages/breakout.js +19 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +9 -4
- package/dist/cjs/resizer/Resizer.js +17 -2
- package/dist/cjs/resizer/ResizerBreakoutModeLabel.js +48 -0
- package/dist/cjs/resizer/index.js +8 -1
- package/dist/cjs/styles/index.js +12 -0
- package/dist/cjs/styles/shared/table.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +11 -12
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/messages/breakout.js +13 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +9 -4
- package/dist/es2019/resizer/Resizer.js +16 -1
- package/dist/es2019/resizer/ResizerBreakoutModeLabel.js +43 -0
- package/dist/es2019/resizer/index.js +2 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/table.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +11 -11
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/messages/breakout.js +13 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +9 -4
- package/dist/esm/resizer/Resizer.js +17 -2
- package/dist/esm/resizer/ResizerBreakoutModeLabel.js +41 -0
- package/dist/esm/resizer/index.js +2 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/table.js +2 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/general-events.d.ts +2 -1
- package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +1 -1
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/messages/breakout.d.ts +12 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/resizer/BreakoutResizer.d.ts +14 -12
- package/dist/types/resizer/Resizer.d.ts +5 -0
- package/dist/types/resizer/ResizerBreakoutModeLabel.d.ts +7 -0
- package/dist/types/resizer/index.d.ts +1 -0
- package/dist/types/resizer/useBreakoutGuidelines.d.ts +2 -2
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/table.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +2 -1
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/i18n/da.d.ts +1 -0
- package/dist/types-ts4.5/i18n/de.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
- package/dist/types-ts4.5/i18n/th.d.ts +1 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
- package/dist/types-ts4.5/messages/breakout.d.ts +12 -0
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +14 -12
- package/dist/types-ts4.5/resizer/Resizer.d.ts +5 -0
- package/dist/types-ts4.5/resizer/ResizerBreakoutModeLabel.d.ts +7 -0
- package/dist/types-ts4.5/resizer/index.d.ts +1 -0
- package/dist/types-ts4.5/resizer/useBreakoutGuidelines.d.ts +2 -2
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/table.d.ts +2 -0
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137973](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137973)
|
|
8
|
+
[`5cc195689bfb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cc195689bfb2) -
|
|
9
|
+
ED-27400 add resize layout to single column layout
|
|
10
|
+
|
|
11
|
+
## 103.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#134613](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134613)
|
|
16
|
+
[`be20cc186939b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be20cc186939b) -
|
|
17
|
+
ED-26247 Remove feature flag platform_media_extended_resize_experience and replace it with a new
|
|
18
|
+
media prop which defaults to false allowPixelResizing
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 103.5.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -433,6 +433,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
433
433
|
ACTION_SUBJECT_ID["PICKER_MEDIA"] = "mediaPicker";
|
|
434
434
|
ACTION_SUBJECT_ID["PICKER_COLOR"] = "colorPicker";
|
|
435
435
|
ACTION_SUBJECT_ID["PICKER_EMOJI"] = "emojiPicker";
|
|
436
|
+
ACTION_SUBJECT_ID["DOCKED_PRIMARY_TOOLBAR"] = "dockedPrimaryToolbar";
|
|
436
437
|
ACTION_SUBJECT_ID["PLACEHOLDER_TEXT"] = "placeholderText";
|
|
437
438
|
ACTION_SUBJECT_ID["POST_QUERY_SEARCH_RESULTS"] = "postQuerySearchResults";
|
|
438
439
|
ACTION_SUBJECT_ID["PRE_QUERY_SEARCH_RESULTS"] = "preQuerySearchResults";
|
|
@@ -24,7 +24,6 @@ var _alignImageLeft2 = _interopRequireDefault(require("@atlaskit/icon/glyph/edit
|
|
|
24
24
|
var _alignImageRight2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-right"));
|
|
25
25
|
var _mediaWrapLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/media-wrap-left"));
|
|
26
26
|
var _mediaWrapRight = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/media-wrap-right"));
|
|
27
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
28
27
|
var _analytics = require("../../analytics");
|
|
29
28
|
var _coreUtils = require("../../core-utils");
|
|
30
29
|
var _messages = _interopRequireWildcard(require("../../messages"));
|
|
@@ -119,7 +118,7 @@ var getNodeWidth = function getNodeWidth(node, schema) {
|
|
|
119
118
|
}
|
|
120
119
|
return node.firstChild && node.firstChild.attrs.width || node.attrs.width;
|
|
121
120
|
};
|
|
122
|
-
var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, analyticsApi) {
|
|
121
|
+
var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing) {
|
|
123
122
|
return function (state, dispatch) {
|
|
124
123
|
var _ref = state.selection,
|
|
125
124
|
node = _ref.node;
|
|
@@ -133,7 +132,7 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
|
|
|
133
132
|
return false;
|
|
134
133
|
}
|
|
135
134
|
var nodeWidth = getNodeWidth(node, state.schema);
|
|
136
|
-
var newAttrs =
|
|
135
|
+
var newAttrs = allowPixelResizing ? // with extended experience, change alignment does not change media single width
|
|
137
136
|
_objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
138
137
|
layout: layout
|
|
139
138
|
}) : (0, _utils2.alignAttributes)(layout, node.attrs, undefined, nodeWidth, widthPluginState.lineLength);
|
|
@@ -165,13 +164,13 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
|
|
|
165
164
|
return true;
|
|
166
165
|
};
|
|
167
166
|
};
|
|
168
|
-
var getToolbarLayout = function getToolbarLayout(layout) {
|
|
169
|
-
if (_utils2.nonWrappedLayouts.includes(layout) &&
|
|
167
|
+
var getToolbarLayout = function getToolbarLayout(layout, allowPixelResizing) {
|
|
168
|
+
if (_utils2.nonWrappedLayouts.includes(layout) && allowPixelResizing) {
|
|
170
169
|
return 'center';
|
|
171
170
|
}
|
|
172
171
|
return layout;
|
|
173
172
|
};
|
|
174
|
-
var mapIconsToToolbarItem = function mapIconsToToolbarItem(icons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) {
|
|
173
|
+
var mapIconsToToolbarItem = function mapIconsToToolbarItem(icons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) {
|
|
175
174
|
return icons.map(function (toolbarItem) {
|
|
176
175
|
var id = toolbarItem.id,
|
|
177
176
|
value = toolbarItem.value;
|
|
@@ -180,8 +179,8 @@ var mapIconsToToolbarItem = function mapIconsToToolbarItem(icons, layout, intl,
|
|
|
180
179
|
type: 'button',
|
|
181
180
|
icon: toolbarItem.icon,
|
|
182
181
|
title: intl.formatMessage(layoutToMessages[value]),
|
|
183
|
-
selected: getToolbarLayout(layout) === value,
|
|
184
|
-
onClick: makeAlign(value, nodeType, widthPluginDependencyApi, analyticsApi)
|
|
182
|
+
selected: getToolbarLayout(layout, allowPixelResizing) === value,
|
|
183
|
+
onClick: makeAlign(value, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing)
|
|
185
184
|
}, isChangingLayoutDisabled && {
|
|
186
185
|
disabled: value !== 'center'
|
|
187
186
|
});
|
|
@@ -195,14 +194,15 @@ var buildLayoutButtons = function buildLayoutButtons(state, intl, nodeType, widt
|
|
|
195
194
|
var allowWrapping = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : true;
|
|
196
195
|
var allowAlignment = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : true;
|
|
197
196
|
var isChangingLayoutDisabled = arguments.length > 9 ? arguments[9] : undefined;
|
|
197
|
+
var allowPixelResizing = arguments.length > 10 ? arguments[10] : undefined;
|
|
198
198
|
var selection = state.selection;
|
|
199
199
|
if (!(selection instanceof _state.NodeSelection) || !selection.node || !nodeType || shouldHideLayoutToolbar(selection, state.schema, allowResizingInTables)) {
|
|
200
200
|
return [];
|
|
201
201
|
}
|
|
202
202
|
var layout = selection.node.attrs.layout;
|
|
203
|
-
var alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) : [];
|
|
204
|
-
var wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) : [];
|
|
205
|
-
var breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi) : [];
|
|
203
|
+
var alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) : [];
|
|
204
|
+
var wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) : [];
|
|
205
|
+
var breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing) : [];
|
|
206
206
|
var items = [].concat((0, _toConsumableArray2.default)(alignmentToolbarItems), (0, _toConsumableArray2.default)(getSeparatorBetweenAlignmentAndWrapping(allowAlignment, allowWrapping)), (0, _toConsumableArray2.default)(wrappingToolbarItems), (0, _toConsumableArray2.default)(getSeparatorBeforeBreakoutItems(allowAlignment, allowWrapping, allowResizing)), (0, _toConsumableArray2.default)(breakOutToolbarItems));
|
|
207
207
|
return items;
|
|
208
208
|
};
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -334,6 +334,7 @@ var _default = exports.default = {
|
|
|
334
334
|
'fabric.editor.datasourceTitle': 'Rediger søgning',
|
|
335
335
|
'fabric.editor.date': 'Dato',
|
|
336
336
|
'fabric.editor.date.description': 'Tilføj en dato med en kalender',
|
|
337
|
+
'fabric.editor.datePickerOpenedAlert': 'Pop op-vinduet til datoredigering er åbnet. Tryk på Tabulatorknappen for at få adgang til pop op-vinduet',
|
|
337
338
|
'fabric.editor.decision': 'Beslutning',
|
|
338
339
|
'fabric.editor.decision.description': 'Registrér beslutninger, så de er lette at finde igen',
|
|
339
340
|
'fabric.editor.decisionPlaceholder': 'Tilføj en beslutning ...',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -712,6 +712,7 @@ var _default = exports.default = {
|
|
|
712
712
|
'fabric.editor.toolbarLabel': 'Editor',
|
|
713
713
|
'fabric.editor.toolbarMediaTitle': 'Bild, Video oder Datei hinzufügen',
|
|
714
714
|
'fabric.editor.toolbarPositionFixedAtTop': 'Oben fixiert',
|
|
715
|
+
'fabric.editor.toolbarPositionInline': 'Auf gleicher Höhe wie der Text',
|
|
715
716
|
'fabric.editor.tooltip.blockPanel': 'ein Panel',
|
|
716
717
|
'fabric.editor.tooltip.bulletList': 'eine Liste',
|
|
717
718
|
'fabric.editor.tooltip.decisionList': 'eine Entscheidungsliste',
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -333,6 +333,7 @@ var _default = exports.default = {
|
|
|
333
333
|
'fabric.editor.datasourceTitle': 'Keresési lekérdezés szerkesztése',
|
|
334
334
|
'fabric.editor.date': 'Dátum',
|
|
335
335
|
'fabric.editor.date.description': 'Dátum hozzáadása naptár használatával',
|
|
336
|
+
'fabric.editor.datePickerOpenedAlert': 'Megnyílt a dátumszerkesztő előugró ablak, amelyet a Tab billentyűvel érhetsz el',
|
|
336
337
|
'fabric.editor.decision': 'Döntés',
|
|
337
338
|
'fabric.editor.decision.description': 'Döntések rögzítése az egyszerű nyomon követés érdekében',
|
|
338
339
|
'fabric.editor.decisionPlaceholder': 'Döntés hozzáadása...',
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -335,6 +335,7 @@ var _default = exports.default = {
|
|
|
335
335
|
'fabric.editor.datasourceTitle': '検索クエリを編集',
|
|
336
336
|
'fabric.editor.date': '日付',
|
|
337
337
|
'fabric.editor.date.description': 'カレンダーを使用して日付を追加',
|
|
338
|
+
'fabric.editor.datePickerOpenedAlert': '日付エディターのポップアップが開きました。Tab キーを押してポップアップにアクセスしてください',
|
|
338
339
|
'fabric.editor.decision': '決定事項',
|
|
339
340
|
'fabric.editor.decision.description': '決定事項をキャプチャして簡単に追跡',
|
|
340
341
|
'fabric.editor.decisionPlaceholder': '決定事項を追加…',
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -335,6 +335,7 @@ var _default = exports.default = {
|
|
|
335
335
|
'fabric.editor.datasourceTitle': '검색 쿼리 편집',
|
|
336
336
|
'fabric.editor.date': '날짜',
|
|
337
337
|
'fabric.editor.date.description': '캘린더로 날짜 추가',
|
|
338
|
+
'fabric.editor.datePickerOpenedAlert': '날짜 편집기 팝업이 열렸습니다. Tab 키를 눌러 팝업에 액세스하세요',
|
|
338
339
|
'fabric.editor.decision': '결정',
|
|
339
340
|
'fabric.editor.decision.description': '결정을 추적하기 쉽도록 캡처',
|
|
340
341
|
'fabric.editor.decisionPlaceholder': '결정 추가...',
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -334,6 +334,7 @@ var _default = exports.default = {
|
|
|
334
334
|
'fabric.editor.datasourceTitle': 'Rediger søkespørring',
|
|
335
335
|
'fabric.editor.date': 'Dato',
|
|
336
336
|
'fabric.editor.date.description': 'Legg til en dato med en kalender',
|
|
337
|
+
'fabric.editor.datePickerOpenedAlert': 'Pop-up for å redigere dato er åpnet, trykk på Tab for å gå til pop-up-vinduet',
|
|
337
338
|
'fabric.editor.decision': 'Beslutning',
|
|
338
339
|
'fabric.editor.decision.description': 'Registrer beslutninger slik at det er lett å spore dem',
|
|
339
340
|
'fabric.editor.decisionPlaceholder': 'Legg til en beslutning …',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -333,6 +333,7 @@ var _default = exports.default = {
|
|
|
333
333
|
'fabric.editor.datasourceTitle': 'Editar consulta de pesquisa',
|
|
334
334
|
'fabric.editor.date': 'Data',
|
|
335
335
|
'fabric.editor.date.description': 'Adicionar data usando um calendário',
|
|
336
|
+
'fabric.editor.datePickerOpenedAlert': 'O pop-up do editor de data foi aberto, pressione Tab para acessar',
|
|
336
337
|
'fabric.editor.decision': 'Decisão',
|
|
337
338
|
'fabric.editor.decision.description': 'Registre decisões para facilitar o acompanhamento',
|
|
338
339
|
'fabric.editor.decisionPlaceholder': 'Adicionar uma decisão...',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -335,6 +335,7 @@ var _default = exports.default = {
|
|
|
335
335
|
'fabric.editor.datasourceTitle': 'Изменить поисковый запрос',
|
|
336
336
|
'fabric.editor.date': 'Дата',
|
|
337
337
|
'fabric.editor.date.description': 'Добавление даты из календаря',
|
|
338
|
+
'fabric.editor.datePickerOpenedAlert': 'Открылось всплывающее окно реактора даты. Для перехода к всплывающему окну нажмите клавишу табуляции',
|
|
338
339
|
'fabric.editor.decision': 'Решение',
|
|
339
340
|
'fabric.editor.decision.description': 'Записывайте решения для удобного отслеживания',
|
|
340
341
|
'fabric.editor.decisionPlaceholder': 'Добавить решение…',
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -320,6 +320,7 @@ var _default = exports.default = {
|
|
|
320
320
|
'fabric.editor.datasourceTitle': 'แก้ไขคำถามการค้นหา',
|
|
321
321
|
'fabric.editor.date': 'วันที่',
|
|
322
322
|
'fabric.editor.date.description': 'เพิ่มวันที่โดยใช้ปฏิทิน',
|
|
323
|
+
'fabric.editor.datePickerOpenedAlert': 'เปิดป๊อบอัพแก้ไขวันที่ แล้วกดที่ "แท็บ" เพื่อเข้าถึงป๊อบอัพ',
|
|
323
324
|
'fabric.editor.decision': 'การตัดสินใจ',
|
|
324
325
|
'fabric.editor.decision.description': 'สร้างกรอบการตัดสินใจเพื่อให้คุณติดตามได้ง่าย',
|
|
325
326
|
'fabric.editor.decisionPlaceholder': 'เพิ่มการตัดสินใจ…',
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -320,6 +320,7 @@ var _default = exports.default = {
|
|
|
320
320
|
'fabric.editor.datasourceTitle': 'Редагувати пошуковий запит',
|
|
321
321
|
'fabric.editor.date': 'Дата',
|
|
322
322
|
'fabric.editor.date.description': 'Вставити дату через календар',
|
|
323
|
+
'fabric.editor.datePickerOpenedAlert': 'Відкрито спливне вікно редактора дат. Натисніть Tab, щоб викликати його.',
|
|
323
324
|
'fabric.editor.decision': 'Рішення',
|
|
324
325
|
'fabric.editor.decision.description': 'Зафіксувати рішення, щоб його було легко знайти',
|
|
325
326
|
'fabric.editor.decisionPlaceholder': 'Додати рішення...',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -320,6 +320,7 @@ var _default = exports.default = {
|
|
|
320
320
|
'fabric.editor.datasourceTitle': 'Sửa truy vấn tìm kiếm',
|
|
321
321
|
'fabric.editor.date': 'Ngày',
|
|
322
322
|
'fabric.editor.date.description': 'Thêm ngày bằng cách sử dụng lịch',
|
|
323
|
+
'fabric.editor.datePickerOpenedAlert': 'Cửa sổ bật lên của trình chỉnh sửa ngày đã mở, hãy nhấn Tab để truy cập cửa sổ bật lên',
|
|
323
324
|
'fabric.editor.decision': 'Quyết định',
|
|
324
325
|
'fabric.editor.decision.description': 'Thu thập các quyết định để dễ dàng theo dõi',
|
|
325
326
|
'fabric.editor.decisionPlaceholder': 'Thêm quyết định…',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -335,6 +335,7 @@ var _default = exports.default = {
|
|
|
335
335
|
'fabric.editor.datasourceTitle': '编辑搜索查询',
|
|
336
336
|
'fabric.editor.date': '日期',
|
|
337
337
|
'fabric.editor.date.description': '使用日历添加日期',
|
|
338
|
+
'fabric.editor.datePickerOpenedAlert': '日期编辑器弹出窗口已打开,按 Tab 键可访问弹出窗口',
|
|
338
339
|
'fabric.editor.decision': '决定',
|
|
339
340
|
'fabric.editor.decision.description': '捕获决策,以便轻松跟踪',
|
|
340
341
|
'fabric.editor.decisionPlaceholder': '添加决定...',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -335,6 +335,7 @@ var _default = exports.default = {
|
|
|
335
335
|
'fabric.editor.datasourceTitle': '編輯搜尋查詢',
|
|
336
336
|
'fabric.editor.date': '日期',
|
|
337
337
|
'fabric.editor.date.description': '使用日曆新增日期',
|
|
338
|
+
'fabric.editor.datePickerOpenedAlert': '日期編輯器快顯視窗已開啟,按 Tab 即可前往快顯視窗',
|
|
338
339
|
'fabric.editor.decision': '決定',
|
|
339
340
|
'fabric.editor.decision.description': '擷取決定以便追蹤',
|
|
340
341
|
'fabric.editor.decisionPlaceholder': '新增決定…',
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.messages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
fullWidthLabel: {
|
|
10
|
+
id: 'fabric.editor.breakoutFullWidthLabel',
|
|
11
|
+
defaultMessage: 'Full-width',
|
|
12
|
+
description: 'Resize current element to full-width mode'
|
|
13
|
+
},
|
|
14
|
+
wideWidthLabel: {
|
|
15
|
+
id: 'fabric.editor.breakoutWideWidthLabel',
|
|
16
|
+
defaultMessage: 'Wide',
|
|
17
|
+
description: 'Resize current element to wide mode'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "blockTypeMessages", {
|
|
|
33
33
|
return _blockType.messages;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "breakoutMessages", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _breakout.messages;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
36
42
|
Object.defineProperty(exports, "cardMessages", {
|
|
37
43
|
enumerable: true,
|
|
38
44
|
get: function get() {
|
|
@@ -217,6 +223,7 @@ Object.defineProperty(exports, "unsupportedContentMessages", {
|
|
|
217
223
|
var _reactIntlNext = require("react-intl-next");
|
|
218
224
|
var _alignment = require("./alignment");
|
|
219
225
|
var _annotation = require("./annotation");
|
|
226
|
+
var _breakout = require("./breakout");
|
|
220
227
|
var _blockType = require("./block-type");
|
|
221
228
|
var _codeBidiWarning = require("./codeBidiWarning");
|
|
222
229
|
var _link = require("./link");
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "103.
|
|
20
|
+
var packageVersion = "103.7.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -16,6 +16,7 @@ var _analytics = require("../analytics");
|
|
|
16
16
|
var _styles = require("../styles");
|
|
17
17
|
var _browser = require("../utils/browser");
|
|
18
18
|
var _Resizer = _interopRequireDefault(require("./Resizer"));
|
|
19
|
+
var _ResizerBreakoutModeLabel = require("./ResizerBreakoutModeLabel");
|
|
19
20
|
var _useBreakoutGuidelines = require("./useBreakoutGuidelines");
|
|
20
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -75,7 +76,6 @@ var defaultStyles = {
|
|
|
75
76
|
display: 'grid'
|
|
76
77
|
};
|
|
77
78
|
var RESIZE_STEP_VALUE = 10;
|
|
78
|
-
|
|
79
79
|
/**
|
|
80
80
|
* BreakoutResizer is a common component used to resize nodes that support the 'Breakout' mark, so it requires
|
|
81
81
|
* correct ADF support.
|
|
@@ -92,7 +92,8 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
92
92
|
parentRef = _ref.parentRef,
|
|
93
93
|
displayGuidelines = _ref.displayGuidelines,
|
|
94
94
|
editorAnalyticsApi = _ref.editorAnalyticsApi,
|
|
95
|
-
displayGapCursor = _ref.displayGapCursor
|
|
95
|
+
displayGapCursor = _ref.displayGapCursor,
|
|
96
|
+
onResizeStart = _ref.onResizeStart;
|
|
96
97
|
var _useState = (0, _react.useState)({
|
|
97
98
|
minWidth: undefined,
|
|
98
99
|
maxWidth: undefined,
|
|
@@ -135,6 +136,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
135
136
|
return $from.pos >= startPos && endPos >= $to.pos;
|
|
136
137
|
}, [editorView.state.doc, editorView.state.selection, getPos]);
|
|
137
138
|
var handleResizeStart = (0, _react.useCallback)(function () {
|
|
139
|
+
onResizeStart === null || onResizeStart === void 0 || onResizeStart();
|
|
138
140
|
var newMinWidth;
|
|
139
141
|
var newMaxWidth;
|
|
140
142
|
var widthState = getEditorWidth();
|
|
@@ -151,7 +153,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
151
153
|
maxWidth: newMaxWidth
|
|
152
154
|
});
|
|
153
155
|
dispatch(state.tr.setMeta('is-resizer-resizing', true));
|
|
154
|
-
}, [getEditorWidth, editorView, displayGapCursor]);
|
|
156
|
+
}, [onResizeStart, getEditorWidth, editorView, displayGapCursor]);
|
|
155
157
|
var handleResize = (0, _react.useCallback)(function (originalState, delta) {
|
|
156
158
|
if ((0, _experiments.editorExperiment)('single_column_layouts', true)) {
|
|
157
159
|
var newWidth = originalState.width + delta.width;
|
|
@@ -325,6 +327,9 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
325
327
|
handleSize: "clamped",
|
|
326
328
|
handleHighlight: "full-height",
|
|
327
329
|
handlePositioning: "adjacent",
|
|
328
|
-
handleAlignmentMethod: "sticky"
|
|
330
|
+
handleAlignmentMethod: "sticky",
|
|
331
|
+
labelComponent: currentLayout && (0, _experiments.editorExperiment)('single_column_layouts', true) && ['full-width', 'wide'].includes(currentLayout || '') && /*#__PURE__*/_react.default.createElement(_ResizerBreakoutModeLabel.ResizerBreakoutModeLabel, {
|
|
332
|
+
layout: currentLayout
|
|
333
|
+
})
|
|
329
334
|
});
|
|
330
335
|
};
|
|
@@ -13,13 +13,25 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
15
15
|
var _reResizable = require("re-resizable");
|
|
16
|
+
var _primitives = require("@atlaskit/primitives");
|
|
17
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
18
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
17
19
|
var _resizer = require("../styles/shared/resizer");
|
|
18
|
-
var _excluded = ["width", "children", "handleClassName", "className", "handleResize", "handleResizeStart", "handleResizeStop", "handleSize", "handleAlignmentMethod", "handlePositioning", "appearance", "handleStyles", "resizeRatio", "snap", "snapGap", "isHandleVisible", "handleHighlight", "handleTooltipContent", "needExtendedResizeZone", "childrenDOMRef"];
|
|
20
|
+
var _excluded = ["width", "children", "handleClassName", "className", "handleResize", "handleResizeStart", "handleResizeStop", "handleSize", "handleAlignmentMethod", "handlePositioning", "appearance", "handleStyles", "resizeRatio", "snap", "snapGap", "isHandleVisible", "handleHighlight", "handleTooltipContent", "needExtendedResizeZone", "childrenDOMRef", "labelComponent"];
|
|
19
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
23
|
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; }
|
|
22
24
|
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) { (0, _defineProperty2.default)(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; }
|
|
25
|
+
var resizerLabelStyles = (0, _primitives.xcss)({
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
bottom: "var(--ds-space-negative-400, -32px)",
|
|
28
|
+
width: '100%',
|
|
29
|
+
overflow: 'visible',
|
|
30
|
+
display: 'flex',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
height: "var(--ds-space-0, 0px)"
|
|
34
|
+
});
|
|
23
35
|
var SUPPORTED_HANDLES = ['left', 'right'];
|
|
24
36
|
var inheritedCSS = {
|
|
25
37
|
position: 'inherit',
|
|
@@ -71,6 +83,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
71
83
|
_props$needExtendedRe = props.needExtendedResizeZone,
|
|
72
84
|
needExtendedResizeZone = _props$needExtendedRe === void 0 ? true : _props$needExtendedRe,
|
|
73
85
|
childrenDOMRef = props.childrenDOMRef,
|
|
86
|
+
labelComponent = props.labelComponent,
|
|
74
87
|
otherProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
75
88
|
var onResizeStart = (0, _react.useCallback)(function (event) {
|
|
76
89
|
// prevent creating a drag event on Firefox
|
|
@@ -209,6 +222,8 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
209
222
|
ref: function ref(_ref) {
|
|
210
223
|
return childrenDOMRef && childrenDOMRef(_ref);
|
|
211
224
|
}
|
|
212
|
-
}, children))
|
|
225
|
+
}, children), labelComponent && (0, _experiments.editorExperiment)('single_column_layouts', true) && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
226
|
+
xcss: resizerLabelStyles
|
|
227
|
+
}, labelComponent));
|
|
213
228
|
};
|
|
214
229
|
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(ResizerNext);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ResizerBreakoutModeLabel = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
|
+
var _messages = require("../messages");
|
|
12
|
+
var fullWidthLabelWrapperStyles = (0, _primitives.xcss)({
|
|
13
|
+
height: "var(--ds-space-400, 32px)",
|
|
14
|
+
display: 'flex',
|
|
15
|
+
backgroundColor: 'elevation.surface.overlay',
|
|
16
|
+
borderRadius: 'border.radius',
|
|
17
|
+
boxShadow: 'elevation.shadow.overlay',
|
|
18
|
+
boxSizing: 'border-box',
|
|
19
|
+
alignItems: 'center'
|
|
20
|
+
});
|
|
21
|
+
var fullWidthLabelStyles = (0, _primitives.xcss)({
|
|
22
|
+
marginLeft: 'space.100',
|
|
23
|
+
marginRight: 'space.100',
|
|
24
|
+
paddingLeft: 'space.075',
|
|
25
|
+
paddingRight: 'space.075',
|
|
26
|
+
paddingTop: 'space.050',
|
|
27
|
+
paddingBottom: 'space.050'
|
|
28
|
+
});
|
|
29
|
+
var ResizerBreakoutModeLabel = exports.ResizerBreakoutModeLabel = function ResizerBreakoutModeLabel(_ref) {
|
|
30
|
+
var breaktoutLayout = _ref.layout;
|
|
31
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
32
|
+
formatMessage = _useIntl.formatMessage;
|
|
33
|
+
var message = _react.default.useMemo(function () {
|
|
34
|
+
switch (breaktoutLayout) {
|
|
35
|
+
case 'full-width':
|
|
36
|
+
return formatMessage(_messages.breakoutMessages.fullWidthLabel);
|
|
37
|
+
case 'wide':
|
|
38
|
+
return formatMessage(_messages.breakoutMessages.wideWidthLabel);
|
|
39
|
+
default:
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}, [breaktoutLayout, formatMessage]);
|
|
43
|
+
return message && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
44
|
+
xcss: fullWidthLabelWrapperStyles
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
46
|
+
xcss: fullWidthLabelStyles
|
|
47
|
+
}, message));
|
|
48
|
+
};
|
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "BreakoutResizer", {
|
|
|
10
10
|
return _BreakoutResizer.BreakoutResizer;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "ResizerBreakoutModeLabel", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _ResizerBreakoutModeLabel.ResizerBreakoutModeLabel;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "ResizerNext", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
get: function get() {
|
|
@@ -30,4 +36,5 @@ Object.defineProperty(exports, "useBreakoutGuidelines", {
|
|
|
30
36
|
});
|
|
31
37
|
var _Resizer = _interopRequireDefault(require("./Resizer"));
|
|
32
38
|
var _BreakoutResizer = require("./BreakoutResizer");
|
|
33
|
-
var _useBreakoutGuidelines = require("./useBreakoutGuidelines");
|
|
39
|
+
var _useBreakoutGuidelines = require("./useBreakoutGuidelines");
|
|
40
|
+
var _ResizerBreakoutModeLabel = require("./ResizerBreakoutModeLabel");
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -399,6 +399,12 @@ Object.defineProperty(exports, "tableCellPadding", {
|
|
|
399
399
|
return _table.tableCellPadding;
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
|
+
Object.defineProperty(exports, "tableControlsSpacing", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
get: function get() {
|
|
405
|
+
return _table.tableControlsSpacing;
|
|
406
|
+
}
|
|
407
|
+
});
|
|
402
408
|
Object.defineProperty(exports, "tableMarginBottom", {
|
|
403
409
|
enumerable: true,
|
|
404
410
|
get: function get() {
|
|
@@ -429,6 +435,12 @@ Object.defineProperty(exports, "tableNewColumnMinWidth", {
|
|
|
429
435
|
return _table.tableNewColumnMinWidth;
|
|
430
436
|
}
|
|
431
437
|
});
|
|
438
|
+
Object.defineProperty(exports, "tablePadding", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function get() {
|
|
441
|
+
return _table.tablePadding;
|
|
442
|
+
}
|
|
443
|
+
});
|
|
432
444
|
Object.defineProperty(exports, "tableResizeHandleWidth", {
|
|
433
445
|
enumerable: true,
|
|
434
446
|
get: function get() {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tableSharedStyle = exports.tableResizeHandleWidth = exports.tableNewColumnMinWidth = exports.tableMarginTopWithControl = exports.tableMarginTop = exports.tableMarginSides = exports.tableMarginBottom = exports.tableCellPadding = exports.tableCellMinWidth = exports.tableCellBorderWidth = exports.calcTableWidth = exports.TableSharedCssClassName = void 0;
|
|
7
|
+
exports.tableSharedStyle = exports.tableResizeHandleWidth = exports.tablePadding = exports.tableNewColumnMinWidth = exports.tableMarginTopWithControl = exports.tableMarginTop = exports.tableMarginSides = exports.tableMarginBottom = exports.tableControlsSpacing = exports.tableCellPadding = exports.tableCellMinWidth = exports.tableCellBorderWidth = exports.calcTableWidth = exports.TableSharedCssClassName = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
@@ -23,6 +23,8 @@ var tableNewColumnMinWidth = exports.tableNewColumnMinWidth = 140;
|
|
|
23
23
|
var tableCellBorderWidth = exports.tableCellBorderWidth = 1;
|
|
24
24
|
var tableCellPadding = exports.tableCellPadding = 8;
|
|
25
25
|
var tableResizeHandleWidth = exports.tableResizeHandleWidth = 6;
|
|
26
|
+
var tablePadding = exports.tablePadding = 8;
|
|
27
|
+
var tableControlsSpacing = exports.tableControlsSpacing = tableMarginTop + tablePadding - tableCellBorderWidth;
|
|
26
28
|
var TableSharedCssClassName = exports.TableSharedCssClassName = {
|
|
27
29
|
TABLE_CONTAINER: "".concat(_adfSchema.tablePrefixSelector, "-container"),
|
|
28
30
|
TABLE_NODE_WRAPPER: "".concat(_adfSchema.tablePrefixSelector, "-wrapper"),
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "103.
|
|
26
|
+
var packageVersion = "103.7.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -427,6 +427,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
427
427
|
ACTION_SUBJECT_ID["PICKER_MEDIA"] = "mediaPicker";
|
|
428
428
|
ACTION_SUBJECT_ID["PICKER_COLOR"] = "colorPicker";
|
|
429
429
|
ACTION_SUBJECT_ID["PICKER_EMOJI"] = "emojiPicker";
|
|
430
|
+
ACTION_SUBJECT_ID["DOCKED_PRIMARY_TOOLBAR"] = "dockedPrimaryToolbar";
|
|
430
431
|
ACTION_SUBJECT_ID["PLACEHOLDER_TEXT"] = "placeholderText";
|
|
431
432
|
ACTION_SUBJECT_ID["POST_QUERY_SEARCH_RESULTS"] = "postQuerySearchResults";
|
|
432
433
|
ACTION_SUBJECT_ID["PRE_QUERY_SEARCH_RESULTS"] = "preQuerySearchResults";
|
|
@@ -14,7 +14,6 @@ import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
|
|
|
14
14
|
import EditorAlignImageRight from '@atlaskit/icon/glyph/editor/align-image-right';
|
|
15
15
|
import WrapLeftIcon from '@atlaskit/icon/glyph/editor/media-wrap-left';
|
|
16
16
|
import WrapRightIcon from '@atlaskit/icon/glyph/editor/media-wrap-right';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
19
18
|
import { insideTable } from '../../core-utils';
|
|
20
19
|
import commonMessages, { mediaAndEmbedToolbarMessages as toolbarMessages } from '../../messages';
|
|
@@ -98,7 +97,7 @@ const getNodeWidth = (node, schema) => {
|
|
|
98
97
|
}
|
|
99
98
|
return node.firstChild && node.firstChild.attrs.width || node.attrs.width;
|
|
100
99
|
};
|
|
101
|
-
const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi) => {
|
|
100
|
+
const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing) => {
|
|
102
101
|
return (state, dispatch) => {
|
|
103
102
|
const {
|
|
104
103
|
node
|
|
@@ -117,7 +116,7 @@ const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi) =>
|
|
|
117
116
|
return false;
|
|
118
117
|
}
|
|
119
118
|
const nodeWidth = getNodeWidth(node, state.schema);
|
|
120
|
-
const newAttrs =
|
|
119
|
+
const newAttrs = allowPixelResizing ?
|
|
121
120
|
// with extended experience, change alignment does not change media single width
|
|
122
121
|
{
|
|
123
122
|
...node.attrs,
|
|
@@ -161,13 +160,13 @@ const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi) =>
|
|
|
161
160
|
return true;
|
|
162
161
|
};
|
|
163
162
|
};
|
|
164
|
-
const getToolbarLayout = layout => {
|
|
165
|
-
if (nonWrappedLayouts.includes(layout) &&
|
|
163
|
+
const getToolbarLayout = (layout, allowPixelResizing) => {
|
|
164
|
+
if (nonWrappedLayouts.includes(layout) && allowPixelResizing) {
|
|
166
165
|
return 'center';
|
|
167
166
|
}
|
|
168
167
|
return layout;
|
|
169
168
|
};
|
|
170
|
-
const mapIconsToToolbarItem = (icons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) => icons.map(toolbarItem => {
|
|
169
|
+
const mapIconsToToolbarItem = (icons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) => icons.map(toolbarItem => {
|
|
171
170
|
const {
|
|
172
171
|
id,
|
|
173
172
|
value
|
|
@@ -177,8 +176,8 @@ const mapIconsToToolbarItem = (icons, layout, intl, nodeType, widthPluginDepende
|
|
|
177
176
|
type: 'button',
|
|
178
177
|
icon: toolbarItem.icon,
|
|
179
178
|
title: intl.formatMessage(layoutToMessages[value]),
|
|
180
|
-
selected: getToolbarLayout(layout) === value,
|
|
181
|
-
onClick: makeAlign(value, nodeType, widthPluginDependencyApi, analyticsApi),
|
|
179
|
+
selected: getToolbarLayout(layout, allowPixelResizing) === value,
|
|
180
|
+
onClick: makeAlign(value, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing),
|
|
182
181
|
...(isChangingLayoutDisabled && {
|
|
183
182
|
disabled: value !== 'center'
|
|
184
183
|
})
|
|
@@ -189,7 +188,7 @@ const shouldHideLayoutToolbar = (selection, {
|
|
|
189
188
|
}, allowResizingInTables) => {
|
|
190
189
|
return hasParentNodeOfType([nodes.bodiedExtension, nodes.extensionFrame, nodes.listItem, nodes.expand, nodes.nestedExpand, ...(allowResizingInTables ? [] : [nodes.table])].filter(Boolean))(selection);
|
|
191
190
|
};
|
|
192
|
-
const buildLayoutButtons = (state, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowResizing, allowResizingInTables, allowWrapping = true, allowAlignment = true, isChangingLayoutDisabled) => {
|
|
191
|
+
const buildLayoutButtons = (state, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowResizing, allowResizingInTables, allowWrapping = true, allowAlignment = true, isChangingLayoutDisabled, allowPixelResizing) => {
|
|
193
192
|
const {
|
|
194
193
|
selection
|
|
195
194
|
} = state;
|
|
@@ -199,9 +198,9 @@ const buildLayoutButtons = (state, intl, nodeType, widthPluginDependencyApi, ana
|
|
|
199
198
|
const {
|
|
200
199
|
layout
|
|
201
200
|
} = selection.node.attrs;
|
|
202
|
-
const alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) : [];
|
|
203
|
-
const wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled) : [];
|
|
204
|
-
const breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi) : [];
|
|
201
|
+
const alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) : [];
|
|
202
|
+
const wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, isChangingLayoutDisabled, allowPixelResizing) : [];
|
|
203
|
+
const breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowPixelResizing) : [];
|
|
205
204
|
const items = [...alignmentToolbarItems, ...getSeparatorBetweenAlignmentAndWrapping(allowAlignment, allowWrapping), ...wrappingToolbarItems, ...getSeparatorBeforeBreakoutItems(allowAlignment, allowWrapping, allowResizing), ...breakOutToolbarItems];
|
|
206
205
|
return items;
|
|
207
206
|
};
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -328,6 +328,7 @@ export default {
|
|
|
328
328
|
'fabric.editor.datasourceTitle': 'Rediger søgning',
|
|
329
329
|
'fabric.editor.date': 'Dato',
|
|
330
330
|
'fabric.editor.date.description': 'Tilføj en dato med en kalender',
|
|
331
|
+
'fabric.editor.datePickerOpenedAlert': 'Pop op-vinduet til datoredigering er åbnet. Tryk på Tabulatorknappen for at få adgang til pop op-vinduet',
|
|
331
332
|
'fabric.editor.decision': 'Beslutning',
|
|
332
333
|
'fabric.editor.decision.description': 'Registrér beslutninger, så de er lette at finde igen',
|
|
333
334
|
'fabric.editor.decisionPlaceholder': 'Tilføj en beslutning ...',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -706,6 +706,7 @@ export default {
|
|
|
706
706
|
'fabric.editor.toolbarLabel': 'Editor',
|
|
707
707
|
'fabric.editor.toolbarMediaTitle': 'Bild, Video oder Datei hinzufügen',
|
|
708
708
|
'fabric.editor.toolbarPositionFixedAtTop': 'Oben fixiert',
|
|
709
|
+
'fabric.editor.toolbarPositionInline': 'Auf gleicher Höhe wie der Text',
|
|
709
710
|
'fabric.editor.tooltip.blockPanel': 'ein Panel',
|
|
710
711
|
'fabric.editor.tooltip.bulletList': 'eine Liste',
|
|
711
712
|
'fabric.editor.tooltip.decisionList': 'eine Entscheidungsliste',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -327,6 +327,7 @@ export default {
|
|
|
327
327
|
'fabric.editor.datasourceTitle': 'Keresési lekérdezés szerkesztése',
|
|
328
328
|
'fabric.editor.date': 'Dátum',
|
|
329
329
|
'fabric.editor.date.description': 'Dátum hozzáadása naptár használatával',
|
|
330
|
+
'fabric.editor.datePickerOpenedAlert': 'Megnyílt a dátumszerkesztő előugró ablak, amelyet a Tab billentyűvel érhetsz el',
|
|
330
331
|
'fabric.editor.decision': 'Döntés',
|
|
331
332
|
'fabric.editor.decision.description': 'Döntések rögzítése az egyszerű nyomon követés érdekében',
|
|
332
333
|
'fabric.editor.decisionPlaceholder': 'Döntés hozzáadása...',
|