@atlaskit/editor-core 187.41.4 → 187.41.5
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 +10 -0
- package/dist/cjs/create-editor/feature-flags-from-props.js +2 -3
- package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -2
- package/dist/cjs/plugins/date/nodeviews/date.js +6 -1
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +4 -16
- package/dist/cjs/plugins/media/toolbar/index.js +0 -1
- package/dist/cjs/plugins/media/ui/ImageBorder/index.js +1 -3
- package/dist/cjs/plugins/paste/handlers.js +2 -1
- package/dist/cjs/plugins/text-color/index.js +2 -6
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -5
- package/dist/cjs/ui/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +1 -11
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/feature-flags-from-props.js +2 -3
- package/dist/es2019/plugins/collab-edit/ui/styles.js +2 -2
- package/dist/es2019/plugins/date/nodeviews/date.js +6 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +0 -13
- package/dist/es2019/plugins/media/toolbar/index.js +0 -1
- package/dist/es2019/plugins/media/ui/ImageBorder/index.js +1 -3
- package/dist/es2019/plugins/paste/handlers.js +2 -1
- package/dist/es2019/plugins/text-color/index.js +2 -6
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -7
- package/dist/es2019/ui/ColorPickerButton/index.js +2 -3
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +1 -11
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/feature-flags-from-props.js +2 -3
- package/dist/esm/plugins/collab-edit/ui/styles.js +2 -2
- package/dist/esm/plugins/date/nodeviews/date.js +6 -1
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +4 -16
- package/dist/esm/plugins/media/toolbar/index.js +0 -1
- package/dist/esm/plugins/media/ui/ImageBorder/index.js +1 -3
- package/dist/esm/plugins/paste/handlers.js +2 -1
- package/dist/esm/plugins/text-color/index.js +2 -6
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -5
- package/dist/esm/ui/ColorPickerButton/index.js +3 -4
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +1 -11
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/media/ui/ImageBorder/index.d.ts +3 -4
- package/dist/types/plugins/text-color/index.d.ts +1 -2
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +0 -2
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -2
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +2 -2
- package/dist/types-ts4.5/plugins/media/ui/ImageBorder/index.d.ts +3 -4
- package/dist/types-ts4.5/plugins/text-color/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 187.41.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1e26db8ffd0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e26db8ffd0) - ED-18264: Clean up useSomewhatSemanticTextColorNames - default behaviour will be same as when FF was on.
|
|
8
|
+
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
9
|
+
- [`69857bbbff0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69857bbbff0) - [ED-20004] Capture errors in getPos due to prosemirror-view bump
|
|
10
|
+
- [`ba95f6c1fd5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba95f6c1fd5) - handleMarkdown no longer throws RangeError when 'from' argument exceeds document length, resolving bug where pasting a Jira issue datasource node at the end of a document would result in the legacy Jira issue macro being rendered instead
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 187.41.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -32,7 +32,7 @@ function getSpellCheck(featureFlags) {
|
|
|
32
32
|
* which is used by both current and archv3 editors.
|
|
33
33
|
*/
|
|
34
34
|
function createFeatureFlagsFromProps(props) {
|
|
35
|
-
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27
|
|
35
|
+
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
|
|
36
36
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
|
|
37
37
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
38
38
|
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
@@ -63,8 +63,7 @@ function createFeatureFlagsFromProps(props) {
|
|
|
63
63
|
// Including fallback to props.featureFlags so that mobile feature flags
|
|
64
64
|
// are included (they are not kebab cased)
|
|
65
65
|
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags25 = props.featureFlags) === null || _props$featureFlags25 === void 0 ? void 0 : _props$featureFlags25.restartNumberedLists) === true,
|
|
66
|
-
useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27.useSomewhatSemanticTextColorNames) : false)),
|
|
67
66
|
lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
|
|
68
|
-
preventPopupOverflow: Boolean(typeof ((_props$
|
|
67
|
+
preventPopupOverflow: Boolean(typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27['prevent-popup-overflow']) : false)
|
|
69
68
|
});
|
|
70
69
|
}
|
|
@@ -10,9 +10,9 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
var inviteTeamWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: 50%;\n min-width: ", ";\n margin-left:
|
|
13
|
+
var inviteTeamWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: 50%;\n min-width: ", ";\n margin-left: ", ";\n"])), "var(--ds-background-neutral, ".concat(_colors.N20, ")"), "var(--ds-space-400, 32px)", "var(--ds-space-negative-050, -4px)");
|
|
14
14
|
exports.inviteTeamWrapper = inviteTeamWrapper;
|
|
15
|
-
var avatarContainer = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: ", ";\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding:
|
|
15
|
+
var avatarContainer = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: ", ";\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding: ", ";\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-025, 2px)");
|
|
16
16
|
exports.avatarContainer = avatarContainer;
|
|
17
17
|
var badge = function badge(color) {
|
|
18
18
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), _editorSharedStyles.akEditorSmallZIndex, color, "var(--ds-text-inverse, #fff)", (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-border-inverse, #fff)");
|
|
@@ -19,7 +19,12 @@ function DateNodeView(props) {
|
|
|
19
19
|
selection = _props$view$state.selection,
|
|
20
20
|
getPos = props.getPos;
|
|
21
21
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
22
|
-
var pos
|
|
22
|
+
var pos;
|
|
23
|
+
try {
|
|
24
|
+
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
25
|
+
} catch (e) {
|
|
26
|
+
pos = undefined;
|
|
27
|
+
}
|
|
23
28
|
|
|
24
29
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
25
30
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -62,10 +62,6 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
62
62
|
featureFlags = _ref.featureFlags,
|
|
63
63
|
api = _ref.api;
|
|
64
64
|
var emojiAndColourPickerMountPoint = scrollable ? popupsMountPoint || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.fabric-editor-popup-scroll-parent')) || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.ak-editor-content-area')) || undefined : popupsMountPoint;
|
|
65
|
-
var _ref2 = featureFlags || {
|
|
66
|
-
useSomewhatSemanticTextColorNames: false
|
|
67
|
-
},
|
|
68
|
-
useSomewhatSemanticTextColorNames = _ref2.useSomewhatSemanticTextColorNames;
|
|
69
65
|
return (0, _react2.jsx)(_buttonGroup.default, null, items.filter(function (item) {
|
|
70
66
|
return !item.hidden;
|
|
71
67
|
}).map(function (item, idx) {
|
|
@@ -201,14 +197,6 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
201
197
|
,
|
|
202
198
|
hexToPaletteColor: _editorPalette.hexToEditorBackgroundPaletteColor,
|
|
203
199
|
paletteColorTooltipMessages: _ColorPalette.backgroundPaletteTooltipMessages
|
|
204
|
-
// We did not want to create new FF or update
|
|
205
|
-
// useSomewhatSemanticTextColorNames name
|
|
206
|
-
// because it is temporary and require extra work.
|
|
207
|
-
// So even though it says text color names,
|
|
208
|
-
// we are going to use for all color pickers
|
|
209
|
-
// such as text, background and table charts.
|
|
210
|
-
,
|
|
211
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
212
200
|
});
|
|
213
201
|
}
|
|
214
202
|
if (item.selectType === 'emoji') {
|
|
@@ -230,8 +218,8 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
230
218
|
if (!editorView || !extensionsProvider) {
|
|
231
219
|
return null;
|
|
232
220
|
}
|
|
233
|
-
var
|
|
234
|
-
extendFloatingToolbar =
|
|
221
|
+
var _ref2 = featureFlags || {},
|
|
222
|
+
extendFloatingToolbar = _ref2.extendFloatingToolbar;
|
|
235
223
|
if (!extendFloatingToolbar) {
|
|
236
224
|
return null;
|
|
237
225
|
}
|
|
@@ -377,8 +365,8 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
377
365
|
// this prevents https://product-fabric.atlassian.net/browse/ED-10207
|
|
378
366
|
(0, _createClass2.default)(Toolbar, [{
|
|
379
367
|
key: "resetStyling",
|
|
380
|
-
value: function resetStyling(
|
|
381
|
-
var table =
|
|
368
|
+
value: function resetStyling(_ref3) {
|
|
369
|
+
var table = _ref3.table;
|
|
382
370
|
if (this.props.editorView) {
|
|
383
371
|
var _this$props$api;
|
|
384
372
|
var _this$props$editorVie2 = this.props.editorView,
|
|
@@ -229,7 +229,6 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
229
229
|
var _pluginInjectionApi$a2;
|
|
230
230
|
(0, _commands.setBorderMark)(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(attrs)(state, dispatch);
|
|
231
231
|
},
|
|
232
|
-
showSomewhatSemanticTooltips: getEditorFeatureFlags === null || getEditorFeatureFlags === void 0 ? void 0 : getEditorFeatureFlags().useSomewhatSemanticTextColorNames,
|
|
233
232
|
borderMark: borderMark,
|
|
234
233
|
intl: intl
|
|
235
234
|
});
|
|
@@ -24,7 +24,6 @@ var _messages = require("./messages");
|
|
|
24
24
|
var ImageBorder = function ImageBorder(_ref) {
|
|
25
25
|
var formatMessage = _ref.intl.formatMessage,
|
|
26
26
|
toggleBorder = _ref.toggleBorder,
|
|
27
|
-
showSomewhatSemanticTooltips = _ref.showSomewhatSemanticTooltips,
|
|
28
27
|
borderMark = _ref.borderMark,
|
|
29
28
|
setBorder = _ref.setBorder;
|
|
30
29
|
var popupTarget = (0, _react2.useRef)(null);
|
|
@@ -85,8 +84,7 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
85
84
|
paletteOptions: {
|
|
86
85
|
palette: _uiColor.borderColorPalette,
|
|
87
86
|
paletteColorTooltipMessages: _uiColor.borderPaletteTooltipMessages,
|
|
88
|
-
hexToPaletteColor: _editorPalette.hexToEditorBorderPaletteColor
|
|
89
|
-
showSomewhatSemanticTooltips: showSomewhatSemanticTooltips
|
|
87
|
+
hexToPaletteColor: _editorPalette.hexToEditorBorderPaletteColor
|
|
90
88
|
}
|
|
91
89
|
})))
|
|
92
90
|
}, {
|
|
@@ -645,7 +645,8 @@ function handleMarkdown(markdownSlice, queueCardsFromChangedTr, from, to) {
|
|
|
645
645
|
} else {
|
|
646
646
|
tr.replaceSelection(markdownSlice);
|
|
647
647
|
}
|
|
648
|
-
tr.
|
|
648
|
+
var textPosition = tr.doc.resolve(Math.min(pastesFrom + markdownSlice.size, tr.doc.content.size));
|
|
649
|
+
tr.setSelection(_state.TextSelection.near(textPosition, -1));
|
|
649
650
|
queueCardsFromChangedTr === null || queueCardsFromChangedTr === void 0 ? void 0 : queueCardsFromChangedTr(state, tr, _analytics.INPUT_METHOD.CLIPBOARD);
|
|
650
651
|
if (dispatch) {
|
|
651
652
|
dispatch(tr.scrollIntoView());
|
|
@@ -23,10 +23,7 @@ var pluginConfig = function pluginConfig(textColorConfig) {
|
|
|
23
23
|
return textColorConfig;
|
|
24
24
|
};
|
|
25
25
|
var textColorPlugin = function textColorPlugin(_ref) {
|
|
26
|
-
var
|
|
27
|
-
var textColorConfig = _ref.config,
|
|
28
|
-
api = _ref.api;
|
|
29
|
-
var featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
26
|
+
var textColorConfig = _ref.config;
|
|
30
27
|
return {
|
|
31
28
|
name: 'textColor',
|
|
32
29
|
marks: function marks() {
|
|
@@ -66,8 +63,7 @@ var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
66
63
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
67
64
|
popupsScrollableElement: popupsScrollableElement,
|
|
68
65
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
69
|
-
disabled: disabled
|
|
70
|
-
featureFlags: featureFlags
|
|
66
|
+
disabled: disabled
|
|
71
67
|
});
|
|
72
68
|
}
|
|
73
69
|
});
|
|
@@ -168,11 +168,9 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
168
168
|
isReducedSpacing = _this$props.isReducedSpacing,
|
|
169
169
|
pluginState = _this$props.pluginState,
|
|
170
170
|
formatMessage = _this$props.intl.formatMessage,
|
|
171
|
-
disabled = _this$props.disabled
|
|
172
|
-
featureFlags = _this$props.featureFlags;
|
|
171
|
+
disabled = _this$props.disabled;
|
|
173
172
|
var labelTextColor = formatMessage(messages.textColor);
|
|
174
173
|
var palette = pluginState.palette;
|
|
175
|
-
var useSomewhatSemanticTextColorNames = featureFlags.useSomewhatSemanticTextColorNames;
|
|
176
174
|
var fitWidth;
|
|
177
175
|
if (document.body.clientWidth <= 740) {
|
|
178
176
|
// This was originally hard-coded, but moved here to a const
|
|
@@ -239,8 +237,7 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
239
237
|
paletteOptions: {
|
|
240
238
|
palette: palette,
|
|
241
239
|
hexToPaletteColor: _editorPalette.hexToEditorTextPaletteColor,
|
|
242
|
-
paletteColorTooltipMessages: _ColorPalette.textPaletteTooltipMessages
|
|
243
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
240
|
+
paletteColorTooltipMessages: _ColorPalette.textPaletteTooltipMessages
|
|
244
241
|
}
|
|
245
242
|
}))), (0, _react2.jsx)("span", {
|
|
246
243
|
css: _styles2.separatorStyles
|
|
@@ -27,16 +27,16 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
27
27
|
/** @jsx jsx */
|
|
28
28
|
// helps adjusts position of popup
|
|
29
29
|
var colorPickerButtonWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
|
|
30
|
-
var colorPickerExpandContainer = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0px
|
|
30
|
+
var colorPickerExpandContainer = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0px ", ";\n"])), "var(--ds-space-negative-050, -4px)");
|
|
31
31
|
|
|
32
32
|
// Control the size of color picker buttons and preview
|
|
33
33
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
34
34
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
35
35
|
var colorPickerWrapper = function colorPickerWrapper(theme) {
|
|
36
|
-
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding:
|
|
36
|
+
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding: ", " 0px;\n"])), (0, _constants.borderRadius)(), (0, _components.themed)({
|
|
37
37
|
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
38
38
|
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
39
|
-
})(theme), _colors.N60A, _colors.N60A);
|
|
39
|
+
})(theme), _colors.N60A, _colors.N60A, "var(--ds-space-100, 8px)");
|
|
40
40
|
};
|
|
41
41
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
42
42
|
|
|
@@ -160,7 +160,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
160
160
|
paletteOptions: {
|
|
161
161
|
palette: props.colorPalette,
|
|
162
162
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
163
|
-
showSomewhatSemanticTooltips: props.showSomewhatSemanticTooltips,
|
|
164
163
|
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
165
164
|
}
|
|
166
165
|
}))));
|
|
@@ -348,25 +348,15 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
348
348
|
onFieldChange(name, currentColor !== colorValue);
|
|
349
349
|
};
|
|
350
350
|
var _ref = featureFlags !== null && featureFlags !== void 0 ? featureFlags : {
|
|
351
|
-
useSomewhatSemanticTextColorNames: false,
|
|
352
351
|
expandedChartColors: false
|
|
353
352
|
},
|
|
354
|
-
useSomewhatSemanticTextColorNames = _ref.useSomewhatSemanticTextColorNames,
|
|
355
353
|
expandedChartColors = _ref.expandedChartColors;
|
|
356
354
|
return expandedChartColors ? (0, _react.jsx)(_ColorPickerButton.default, {
|
|
357
355
|
title: title,
|
|
358
356
|
currentColor: currentColor,
|
|
359
357
|
onChange: onColorChange,
|
|
360
358
|
colorPalette: extendedColorPalette,
|
|
361
|
-
paletteColorTooltipMessages: _ColorPalette.chartsColorPaletteTooltipMessages
|
|
362
|
-
// We did not want to create new FF or update
|
|
363
|
-
// useSomewhatSemanticTextColorNames name
|
|
364
|
-
// because it is temporary and require extra work.
|
|
365
|
-
// So even though it says text color names,
|
|
366
|
-
// we are going to use for all color pickers
|
|
367
|
-
// such as text, background and table charts.
|
|
368
|
-
,
|
|
369
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames,
|
|
359
|
+
paletteColorTooltipMessages: _ColorPalette.chartsColorPaletteTooltipMessages,
|
|
370
360
|
cols: EXPANDED_COLOR_PICKER_COLUMNS,
|
|
371
361
|
alignX: "right",
|
|
372
362
|
placement: "ConfigPanel",
|
|
@@ -27,7 +27,7 @@ exports.expandControl = expandControl;
|
|
|
27
27
|
var chevronContainer = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", ";\n height: ", ";\n }\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
28
28
|
var labelContainer = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
|
|
29
29
|
var expandContentContainer = function expandContentContainer(isHidden) {
|
|
30
|
-
return (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: ", ";\n margin-top:
|
|
30
|
+
return (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: ", ";\n margin-top: ", ";\n"])), isHidden ? 'none' : 'block', "var(--ds-space-negative-100, -8px)");
|
|
31
31
|
};
|
|
32
32
|
function Expand(_ref) {
|
|
33
33
|
var field = _ref.field,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "187.41.
|
|
9
|
+
var version = "187.41.5";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
@@ -21,7 +21,7 @@ function getSpellCheck(featureFlags) {
|
|
|
21
21
|
* which is used by both current and archv3 editors.
|
|
22
22
|
*/
|
|
23
23
|
export function createFeatureFlagsFromProps(props) {
|
|
24
|
-
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27
|
|
24
|
+
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
|
|
25
25
|
const normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
26
26
|
return {
|
|
27
27
|
...normalizedFeatureFlags,
|
|
@@ -53,8 +53,7 @@ export function createFeatureFlagsFromProps(props) {
|
|
|
53
53
|
// Including fallback to props.featureFlags so that mobile feature flags
|
|
54
54
|
// are included (they are not kebab cased)
|
|
55
55
|
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags25 = props.featureFlags) === null || _props$featureFlags25 === void 0 ? void 0 : _props$featureFlags25.restartNumberedLists) === true,
|
|
56
|
-
useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27.useSomewhatSemanticTextColorNames) : false)),
|
|
57
56
|
lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
|
|
58
|
-
preventPopupOverflow: Boolean(typeof ((_props$
|
|
57
|
+
preventPopupOverflow: Boolean(typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27['prevent-popup-overflow']) : false)
|
|
59
58
|
};
|
|
60
59
|
}
|
|
@@ -5,7 +5,7 @@ export const inviteTeamWrapper = css`
|
|
|
5
5
|
background: ${`var(--ds-background-neutral, ${N20})`};
|
|
6
6
|
border-radius: 50%;
|
|
7
7
|
min-width: ${"var(--ds-space-400, 32px)"};
|
|
8
|
-
margin-left:
|
|
8
|
+
margin-left: ${"var(--ds-space-negative-050, -4px)"};
|
|
9
9
|
`;
|
|
10
10
|
export const avatarContainer = css`
|
|
11
11
|
margin-right: ${"var(--ds-space-100, 8px)"};
|
|
@@ -23,7 +23,7 @@ export const avatarContainer = css`
|
|
|
23
23
|
border-radius: 50%;
|
|
24
24
|
height: 32px;
|
|
25
25
|
width: 32px;
|
|
26
|
-
padding: 2px;
|
|
26
|
+
padding: ${"var(--ds-space-025, 2px)"};
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
export const badge = color => css`
|
|
@@ -21,7 +21,12 @@ export function DateNodeView(props) {
|
|
|
21
21
|
getPos
|
|
22
22
|
} = props;
|
|
23
23
|
const intl = useIntl();
|
|
24
|
-
|
|
24
|
+
let pos;
|
|
25
|
+
try {
|
|
26
|
+
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
27
|
+
} catch (e) {
|
|
28
|
+
pos = undefined;
|
|
29
|
+
}
|
|
25
30
|
|
|
26
31
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
27
32
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -43,11 +43,6 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
43
43
|
api
|
|
44
44
|
}) => {
|
|
45
45
|
const emojiAndColourPickerMountPoint = scrollable ? popupsMountPoint || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.fabric-editor-popup-scroll-parent')) || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.ak-editor-content-area')) || undefined : popupsMountPoint;
|
|
46
|
-
const {
|
|
47
|
-
useSomewhatSemanticTextColorNames
|
|
48
|
-
} = featureFlags || {
|
|
49
|
-
useSomewhatSemanticTextColorNames: false
|
|
50
|
-
};
|
|
51
46
|
return jsx(ButtonGroup, null, items.filter(item => !item.hidden).map((item, idx) => {
|
|
52
47
|
var _api$contextPanel, _api$extension;
|
|
53
48
|
switch (item.type) {
|
|
@@ -167,14 +162,6 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
167
162
|
,
|
|
168
163
|
hexToPaletteColor: hexToEditorBackgroundPaletteColor,
|
|
169
164
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages
|
|
170
|
-
// We did not want to create new FF or update
|
|
171
|
-
// useSomewhatSemanticTextColorNames name
|
|
172
|
-
// because it is temporary and require extra work.
|
|
173
|
-
// So even though it says text color names,
|
|
174
|
-
// we are going to use for all color pickers
|
|
175
|
-
// such as text, background and table charts.
|
|
176
|
-
,
|
|
177
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
178
165
|
});
|
|
179
166
|
}
|
|
180
167
|
if (item.selectType === 'emoji') {
|
|
@@ -229,7 +229,6 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
229
229
|
var _pluginInjectionApi$a2;
|
|
230
230
|
setBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(attrs)(state, dispatch);
|
|
231
231
|
},
|
|
232
|
-
showSomewhatSemanticTooltips: getEditorFeatureFlags === null || getEditorFeatureFlags === void 0 ? void 0 : getEditorFeatureFlags().useSomewhatSemanticTextColorNames,
|
|
233
232
|
borderMark: borderMark,
|
|
234
233
|
intl: intl
|
|
235
234
|
});
|
|
@@ -18,7 +18,6 @@ const ImageBorder = ({
|
|
|
18
18
|
formatMessage
|
|
19
19
|
},
|
|
20
20
|
toggleBorder,
|
|
21
|
-
showSomewhatSemanticTooltips,
|
|
22
21
|
borderMark,
|
|
23
22
|
setBorder
|
|
24
23
|
}) => {
|
|
@@ -71,8 +70,7 @@ const ImageBorder = ({
|
|
|
71
70
|
paletteOptions: {
|
|
72
71
|
palette: borderColorPalette,
|
|
73
72
|
paletteColorTooltipMessages: borderPaletteTooltipMessages,
|
|
74
|
-
hexToPaletteColor: hexToEditorBorderPaletteColor
|
|
75
|
-
showSomewhatSemanticTooltips
|
|
73
|
+
hexToPaletteColor: hexToEditorBorderPaletteColor
|
|
76
74
|
}
|
|
77
75
|
})))
|
|
78
76
|
}, {
|
|
@@ -635,7 +635,8 @@ export function handleMarkdown(markdownSlice, queueCardsFromChangedTr, from, to)
|
|
|
635
635
|
} else {
|
|
636
636
|
tr.replaceSelection(markdownSlice);
|
|
637
637
|
}
|
|
638
|
-
tr.
|
|
638
|
+
const textPosition = tr.doc.resolve(Math.min(pastesFrom + markdownSlice.size, tr.doc.content.size));
|
|
639
|
+
tr.setSelection(TextSelection.near(textPosition, -1));
|
|
639
640
|
queueCardsFromChangedTr === null || queueCardsFromChangedTr === void 0 ? void 0 : queueCardsFromChangedTr(state, tr, INPUT_METHOD.CLIPBOARD);
|
|
640
641
|
if (dispatch) {
|
|
641
642
|
dispatch(tr.scrollIntoView());
|
|
@@ -10,11 +10,8 @@ const pluginConfig = textColorConfig => {
|
|
|
10
10
|
return textColorConfig;
|
|
11
11
|
};
|
|
12
12
|
const textColorPlugin = ({
|
|
13
|
-
config: textColorConfig
|
|
14
|
-
api
|
|
13
|
+
config: textColorConfig
|
|
15
14
|
}) => {
|
|
16
|
-
var _api$featureFlags;
|
|
17
|
-
const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
18
15
|
return {
|
|
19
16
|
name: 'textColor',
|
|
20
17
|
marks() {
|
|
@@ -54,8 +51,7 @@ const textColorPlugin = ({
|
|
|
54
51
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
55
52
|
popupsScrollableElement: popupsScrollableElement,
|
|
56
53
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
57
|
-
disabled: disabled
|
|
58
|
-
featureFlags: featureFlags
|
|
54
|
+
disabled: disabled
|
|
59
55
|
})
|
|
60
56
|
});
|
|
61
57
|
}
|
|
@@ -143,14 +143,10 @@ export class ToolbarTextColor extends React.Component {
|
|
|
143
143
|
intl: {
|
|
144
144
|
formatMessage
|
|
145
145
|
},
|
|
146
|
-
disabled
|
|
147
|
-
featureFlags
|
|
146
|
+
disabled
|
|
148
147
|
} = this.props;
|
|
149
148
|
const labelTextColor = formatMessage(messages.textColor);
|
|
150
149
|
const palette = pluginState.palette;
|
|
151
|
-
const {
|
|
152
|
-
useSomewhatSemanticTextColorNames
|
|
153
|
-
} = featureFlags;
|
|
154
150
|
let fitWidth;
|
|
155
151
|
if (document.body.clientWidth <= 740) {
|
|
156
152
|
// This was originally hard-coded, but moved here to a const
|
|
@@ -216,8 +212,7 @@ export class ToolbarTextColor extends React.Component {
|
|
|
216
212
|
paletteOptions: {
|
|
217
213
|
palette,
|
|
218
214
|
hexToPaletteColor: hexToEditorTextPaletteColor,
|
|
219
|
-
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
220
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
215
|
+
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
221
216
|
}
|
|
222
217
|
}))), jsx("span", {
|
|
223
218
|
css: separatorStyles
|
|
@@ -21,7 +21,7 @@ const colorPickerButtonWrapper = css`
|
|
|
21
21
|
position: relative;
|
|
22
22
|
`;
|
|
23
23
|
const colorPickerExpandContainer = css`
|
|
24
|
-
margin: 0px -4px;
|
|
24
|
+
margin: 0px ${"var(--ds-space-negative-050, -4px)"};
|
|
25
25
|
`;
|
|
26
26
|
|
|
27
27
|
// Control the size of color picker buttons and preview
|
|
@@ -34,7 +34,7 @@ const colorPickerWrapper = theme => css`
|
|
|
34
34
|
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
35
35
|
})(theme)};
|
|
36
36
|
box-shadow: 0 4px 8px -2px ${N60A}, 0 0 1px ${N60A};
|
|
37
|
-
padding: 8px 0px;
|
|
37
|
+
padding: ${"var(--ds-space-100, 8px)"} 0px;
|
|
38
38
|
`;
|
|
39
39
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
40
40
|
|
|
@@ -148,7 +148,6 @@ const ColorPickerButton = props => {
|
|
|
148
148
|
paletteOptions: {
|
|
149
149
|
palette: props.colorPalette,
|
|
150
150
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
151
|
-
showSomewhatSemanticTooltips: props.showSomewhatSemanticTooltips,
|
|
152
151
|
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
153
152
|
}
|
|
154
153
|
}))));
|
|
@@ -342,10 +342,8 @@ const ColorPicker = props => {
|
|
|
342
342
|
onFieldChange(name, currentColor !== colorValue);
|
|
343
343
|
};
|
|
344
344
|
const {
|
|
345
|
-
useSomewhatSemanticTextColorNames,
|
|
346
345
|
expandedChartColors
|
|
347
346
|
} = featureFlags !== null && featureFlags !== void 0 ? featureFlags : {
|
|
348
|
-
useSomewhatSemanticTextColorNames: false,
|
|
349
347
|
expandedChartColors: false
|
|
350
348
|
};
|
|
351
349
|
return expandedChartColors ? jsx(ColorPickerButton, {
|
|
@@ -353,15 +351,7 @@ const ColorPicker = props => {
|
|
|
353
351
|
currentColor: currentColor,
|
|
354
352
|
onChange: onColorChange,
|
|
355
353
|
colorPalette: extendedColorPalette,
|
|
356
|
-
paletteColorTooltipMessages: chartsColorPaletteTooltipMessages
|
|
357
|
-
// We did not want to create new FF or update
|
|
358
|
-
// useSomewhatSemanticTextColorNames name
|
|
359
|
-
// because it is temporary and require extra work.
|
|
360
|
-
// So even though it says text color names,
|
|
361
|
-
// we are going to use for all color pickers
|
|
362
|
-
// such as text, background and table charts.
|
|
363
|
-
,
|
|
364
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames,
|
|
354
|
+
paletteColorTooltipMessages: chartsColorPaletteTooltipMessages,
|
|
365
355
|
cols: EXPANDED_COLOR_PICKER_COLUMNS,
|
|
366
356
|
alignX: "right",
|
|
367
357
|
placement: "ConfigPanel",
|
|
@@ -33,7 +33,7 @@ const labelContainer = css`
|
|
|
33
33
|
`;
|
|
34
34
|
const expandContentContainer = isHidden => css`
|
|
35
35
|
display: ${isHidden ? 'none' : 'block'};
|
|
36
|
-
margin-top:
|
|
36
|
+
margin-top: ${"var(--ds-space-negative-100, -8px)"};
|
|
37
37
|
`;
|
|
38
38
|
function Expand({
|
|
39
39
|
field,
|
|
@@ -25,7 +25,7 @@ function getSpellCheck(featureFlags) {
|
|
|
25
25
|
* which is used by both current and archv3 editors.
|
|
26
26
|
*/
|
|
27
27
|
export function createFeatureFlagsFromProps(props) {
|
|
28
|
-
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27
|
|
28
|
+
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
|
|
29
29
|
var normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
30
30
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
31
31
|
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
@@ -56,8 +56,7 @@ export function createFeatureFlagsFromProps(props) {
|
|
|
56
56
|
// Including fallback to props.featureFlags so that mobile feature flags
|
|
57
57
|
// are included (they are not kebab cased)
|
|
58
58
|
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags25 = props.featureFlags) === null || _props$featureFlags25 === void 0 ? void 0 : _props$featureFlags25.restartNumberedLists) === true,
|
|
59
|
-
useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27.useSomewhatSemanticTextColorNames) : false)),
|
|
60
59
|
lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
|
|
61
|
-
preventPopupOverflow: Boolean(typeof ((_props$
|
|
60
|
+
preventPopupOverflow: Boolean(typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27['prevent-popup-overflow']) : false)
|
|
62
61
|
});
|
|
63
62
|
}
|
|
@@ -3,8 +3,8 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { N20 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { akEditorSmallZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", ";\n margin-left:
|
|
7
|
-
export var avatarContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: ", ";\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding:
|
|
6
|
+
export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", ";\n margin-left: ", ";\n"])), "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-space-400, 32px)", "var(--ds-space-negative-050, -4px)");
|
|
7
|
+
export var avatarContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: ", ";\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding: ", ";\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-025, 2px)");
|
|
8
8
|
export var badge = function badge(color) {
|
|
9
9
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), akEditorSmallZIndex, color, "var(--ds-text-inverse, #fff)", relativeFontSizeToBase16(9), "var(--ds-border-inverse, #fff)");
|
|
10
10
|
};
|
|
@@ -12,7 +12,12 @@ export function DateNodeView(props) {
|
|
|
12
12
|
selection = _props$view$state.selection,
|
|
13
13
|
getPos = props.getPos;
|
|
14
14
|
var intl = useIntl();
|
|
15
|
-
var pos
|
|
15
|
+
var pos;
|
|
16
|
+
try {
|
|
17
|
+
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
pos = undefined;
|
|
20
|
+
}
|
|
16
21
|
|
|
17
22
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
18
23
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -52,10 +52,6 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
52
52
|
featureFlags = _ref.featureFlags,
|
|
53
53
|
api = _ref.api;
|
|
54
54
|
var emojiAndColourPickerMountPoint = scrollable ? popupsMountPoint || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.fabric-editor-popup-scroll-parent')) || (editorView === null || editorView === void 0 ? void 0 : editorView.dom.closest('.ak-editor-content-area')) || undefined : popupsMountPoint;
|
|
55
|
-
var _ref2 = featureFlags || {
|
|
56
|
-
useSomewhatSemanticTextColorNames: false
|
|
57
|
-
},
|
|
58
|
-
useSomewhatSemanticTextColorNames = _ref2.useSomewhatSemanticTextColorNames;
|
|
59
55
|
return jsx(ButtonGroup, null, items.filter(function (item) {
|
|
60
56
|
return !item.hidden;
|
|
61
57
|
}).map(function (item, idx) {
|
|
@@ -191,14 +187,6 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
191
187
|
,
|
|
192
188
|
hexToPaletteColor: hexToEditorBackgroundPaletteColor,
|
|
193
189
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages
|
|
194
|
-
// We did not want to create new FF or update
|
|
195
|
-
// useSomewhatSemanticTextColorNames name
|
|
196
|
-
// because it is temporary and require extra work.
|
|
197
|
-
// So even though it says text color names,
|
|
198
|
-
// we are going to use for all color pickers
|
|
199
|
-
// such as text, background and table charts.
|
|
200
|
-
,
|
|
201
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
202
190
|
});
|
|
203
191
|
}
|
|
204
192
|
if (item.selectType === 'emoji') {
|
|
@@ -220,8 +208,8 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
220
208
|
if (!editorView || !extensionsProvider) {
|
|
221
209
|
return null;
|
|
222
210
|
}
|
|
223
|
-
var
|
|
224
|
-
extendFloatingToolbar =
|
|
211
|
+
var _ref2 = featureFlags || {},
|
|
212
|
+
extendFloatingToolbar = _ref2.extendFloatingToolbar;
|
|
225
213
|
if (!extendFloatingToolbar) {
|
|
226
214
|
return null;
|
|
227
215
|
}
|
|
@@ -365,8 +353,8 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
365
353
|
// this prevents https://product-fabric.atlassian.net/browse/ED-10207
|
|
366
354
|
_createClass(Toolbar, [{
|
|
367
355
|
key: "resetStyling",
|
|
368
|
-
value: function resetStyling(
|
|
369
|
-
var table =
|
|
356
|
+
value: function resetStyling(_ref3) {
|
|
357
|
+
var table = _ref3.table;
|
|
370
358
|
if (this.props.editorView) {
|
|
371
359
|
var _this$props$api;
|
|
372
360
|
var _this$props$editorVie2 = this.props.editorView,
|
|
@@ -222,7 +222,6 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
222
222
|
var _pluginInjectionApi$a2;
|
|
223
223
|
setBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(attrs)(state, dispatch);
|
|
224
224
|
},
|
|
225
|
-
showSomewhatSemanticTooltips: getEditorFeatureFlags === null || getEditorFeatureFlags === void 0 ? void 0 : getEditorFeatureFlags().useSomewhatSemanticTextColorNames,
|
|
226
225
|
borderMark: borderMark,
|
|
227
226
|
intl: intl
|
|
228
227
|
});
|
|
@@ -17,7 +17,6 @@ import { messages } from './messages';
|
|
|
17
17
|
var ImageBorder = function ImageBorder(_ref) {
|
|
18
18
|
var formatMessage = _ref.intl.formatMessage,
|
|
19
19
|
toggleBorder = _ref.toggleBorder,
|
|
20
|
-
showSomewhatSemanticTooltips = _ref.showSomewhatSemanticTooltips,
|
|
21
20
|
borderMark = _ref.borderMark,
|
|
22
21
|
setBorder = _ref.setBorder;
|
|
23
22
|
var popupTarget = useRef(null);
|
|
@@ -78,8 +77,7 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
78
77
|
paletteOptions: {
|
|
79
78
|
palette: borderColorPalette,
|
|
80
79
|
paletteColorTooltipMessages: borderPaletteTooltipMessages,
|
|
81
|
-
hexToPaletteColor: hexToEditorBorderPaletteColor
|
|
82
|
-
showSomewhatSemanticTooltips: showSomewhatSemanticTooltips
|
|
80
|
+
hexToPaletteColor: hexToEditorBorderPaletteColor
|
|
83
81
|
}
|
|
84
82
|
})))
|
|
85
83
|
}, {
|
|
@@ -620,7 +620,8 @@ export function handleMarkdown(markdownSlice, queueCardsFromChangedTr, from, to)
|
|
|
620
620
|
} else {
|
|
621
621
|
tr.replaceSelection(markdownSlice);
|
|
622
622
|
}
|
|
623
|
-
tr.
|
|
623
|
+
var textPosition = tr.doc.resolve(Math.min(pastesFrom + markdownSlice.size, tr.doc.content.size));
|
|
624
|
+
tr.setSelection(TextSelection.near(textPosition, -1));
|
|
624
625
|
queueCardsFromChangedTr === null || queueCardsFromChangedTr === void 0 ? void 0 : queueCardsFromChangedTr(state, tr, INPUT_METHOD.CLIPBOARD);
|
|
625
626
|
if (dispatch) {
|
|
626
627
|
dispatch(tr.scrollIntoView());
|
|
@@ -10,10 +10,7 @@ var pluginConfig = function pluginConfig(textColorConfig) {
|
|
|
10
10
|
return textColorConfig;
|
|
11
11
|
};
|
|
12
12
|
var textColorPlugin = function textColorPlugin(_ref) {
|
|
13
|
-
var
|
|
14
|
-
var textColorConfig = _ref.config,
|
|
15
|
-
api = _ref.api;
|
|
16
|
-
var featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
13
|
+
var textColorConfig = _ref.config;
|
|
17
14
|
return {
|
|
18
15
|
name: 'textColor',
|
|
19
16
|
marks: function marks() {
|
|
@@ -53,8 +50,7 @@ var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
53
50
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
54
51
|
popupsScrollableElement: popupsScrollableElement,
|
|
55
52
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
56
|
-
disabled: disabled
|
|
57
|
-
featureFlags: featureFlags
|
|
53
|
+
disabled: disabled
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
56
|
});
|
|
@@ -158,11 +158,9 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
158
158
|
isReducedSpacing = _this$props.isReducedSpacing,
|
|
159
159
|
pluginState = _this$props.pluginState,
|
|
160
160
|
formatMessage = _this$props.intl.formatMessage,
|
|
161
|
-
disabled = _this$props.disabled
|
|
162
|
-
featureFlags = _this$props.featureFlags;
|
|
161
|
+
disabled = _this$props.disabled;
|
|
163
162
|
var labelTextColor = formatMessage(messages.textColor);
|
|
164
163
|
var palette = pluginState.palette;
|
|
165
|
-
var useSomewhatSemanticTextColorNames = featureFlags.useSomewhatSemanticTextColorNames;
|
|
166
164
|
var fitWidth;
|
|
167
165
|
if (document.body.clientWidth <= 740) {
|
|
168
166
|
// This was originally hard-coded, but moved here to a const
|
|
@@ -229,8 +227,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
229
227
|
paletteOptions: {
|
|
230
228
|
palette: palette,
|
|
231
229
|
hexToPaletteColor: hexToEditorTextPaletteColor,
|
|
232
|
-
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
233
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames
|
|
230
|
+
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
234
231
|
}
|
|
235
232
|
}))), jsx("span", {
|
|
236
233
|
css: separatorStyles
|
|
@@ -21,16 +21,16 @@ import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
21
21
|
|
|
22
22
|
// helps adjusts position of popup
|
|
23
23
|
var colorPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
24
|
-
var colorPickerExpandContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0px
|
|
24
|
+
var colorPickerExpandContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0px ", ";\n"])), "var(--ds-space-negative-050, -4px)");
|
|
25
25
|
|
|
26
26
|
// Control the size of color picker buttons and preview
|
|
27
27
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
28
28
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
29
29
|
var colorPickerWrapper = function colorPickerWrapper(theme) {
|
|
30
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding:
|
|
30
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding: ", " 0px;\n"])), borderRadius(), themed({
|
|
31
31
|
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
32
32
|
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
33
|
-
})(theme), N60A, N60A);
|
|
33
|
+
})(theme), N60A, N60A, "var(--ds-space-100, 8px)");
|
|
34
34
|
};
|
|
35
35
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
36
36
|
|
|
@@ -154,7 +154,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
154
154
|
paletteOptions: {
|
|
155
155
|
palette: props.colorPalette,
|
|
156
156
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
157
|
-
showSomewhatSemanticTooltips: props.showSomewhatSemanticTooltips,
|
|
158
157
|
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
159
158
|
}
|
|
160
159
|
}))));
|
|
@@ -338,25 +338,15 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
338
338
|
onFieldChange(name, currentColor !== colorValue);
|
|
339
339
|
};
|
|
340
340
|
var _ref = featureFlags !== null && featureFlags !== void 0 ? featureFlags : {
|
|
341
|
-
useSomewhatSemanticTextColorNames: false,
|
|
342
341
|
expandedChartColors: false
|
|
343
342
|
},
|
|
344
|
-
useSomewhatSemanticTextColorNames = _ref.useSomewhatSemanticTextColorNames,
|
|
345
343
|
expandedChartColors = _ref.expandedChartColors;
|
|
346
344
|
return expandedChartColors ? jsx(ColorPickerButton, {
|
|
347
345
|
title: title,
|
|
348
346
|
currentColor: currentColor,
|
|
349
347
|
onChange: onColorChange,
|
|
350
348
|
colorPalette: extendedColorPalette,
|
|
351
|
-
paletteColorTooltipMessages: chartsColorPaletteTooltipMessages
|
|
352
|
-
// We did not want to create new FF or update
|
|
353
|
-
// useSomewhatSemanticTextColorNames name
|
|
354
|
-
// because it is temporary and require extra work.
|
|
355
|
-
// So even though it says text color names,
|
|
356
|
-
// we are going to use for all color pickers
|
|
357
|
-
// such as text, background and table charts.
|
|
358
|
-
,
|
|
359
|
-
showSomewhatSemanticTooltips: useSomewhatSemanticTextColorNames,
|
|
349
|
+
paletteColorTooltipMessages: chartsColorPaletteTooltipMessages,
|
|
360
350
|
cols: EXPANDED_COLOR_PICKER_COLUMNS,
|
|
361
351
|
alignX: "right",
|
|
362
352
|
placement: "ConfigPanel",
|
|
@@ -15,7 +15,7 @@ export var expandControl = css(_templateObject2 || (_templateObject2 = _taggedTe
|
|
|
15
15
|
var chevronContainer = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", ";\n height: ", ";\n }\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
16
16
|
var labelContainer = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
|
|
17
17
|
var expandContentContainer = function expandContentContainer(isHidden) {
|
|
18
|
-
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: ", ";\n margin-top:
|
|
18
|
+
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: ", ";\n margin-top: ", ";\n"])), isHidden ? 'none' : 'block', "var(--ds-space-negative-100, -8px)");
|
|
19
19
|
};
|
|
20
20
|
function Expand(_ref) {
|
|
21
21
|
var field = _ref.field,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { IntlShape } from 'react-intl-next';
|
|
4
|
-
import { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { IntlShape } from 'react-intl-next';
|
|
4
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
5
5
|
export interface ImageBorderProps {
|
|
6
6
|
intl: IntlShape;
|
|
7
7
|
toggleBorder: () => void;
|
|
8
8
|
borderMark?: BorderMarkAttributes;
|
|
9
|
-
showSomewhatSemanticTooltips?: boolean;
|
|
10
9
|
setBorder: (attrs: Partial<BorderMarkAttributes>) => void;
|
|
11
10
|
}
|
|
12
|
-
declare const ImageBorder: ({ intl: { formatMessage }, toggleBorder,
|
|
11
|
+
declare const ImageBorder: ({ intl: { formatMessage }, toggleBorder, borderMark, setBorder, }: ImageBorderProps) => jsx.JSX.Element;
|
|
13
12
|
export default ImageBorder;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
2
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
4
3
|
import { pluginKey as textColorPluginKey } from './pm-plugins/main';
|
|
5
4
|
type Config = TextColorPluginConfig | boolean;
|
|
6
5
|
declare const textColorPlugin: NextEditorPlugin<'textColor', {
|
|
7
6
|
pluginConfiguration: Config | undefined;
|
|
8
|
-
dependencies: [
|
|
7
|
+
dependencies: [];
|
|
9
8
|
}>;
|
|
10
9
|
export { textColorPluginKey };
|
|
11
10
|
export type { TextColorPluginState };
|
|
@@ -5,7 +5,6 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import type { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
7
|
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
8
|
export declare const messages: {
|
|
10
9
|
textColor: {
|
|
11
10
|
id: string;
|
|
@@ -26,7 +25,6 @@ export interface Props {
|
|
|
26
25
|
isReducedSpacing?: boolean;
|
|
27
26
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
28
27
|
disabled?: boolean;
|
|
29
|
-
featureFlags: FeatureFlags;
|
|
30
28
|
}
|
|
31
29
|
export declare class ToolbarTextColor extends React.Component<Props & WrappedComponentProps, State> {
|
|
32
30
|
state: State;
|
|
@@ -17,7 +17,6 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
17
17
|
mountPoint?: HTMLElement;
|
|
18
18
|
setDisableParentScroll?: (disable: boolean) => void;
|
|
19
19
|
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
20
|
-
showSomewhatSemanticTooltips?: boolean;
|
|
21
20
|
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
22
21
|
/**
|
|
23
22
|
* After picking the color the default behaviour is to focus the color picker button.
|
|
@@ -25,5 +24,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
25
24
|
*/
|
|
26
25
|
skipFocusButtonAfterPick?: boolean;
|
|
27
26
|
};
|
|
28
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "cols" | "analyticsContext" | "currentColor" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "
|
|
27
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "cols" | "analyticsContext" | "currentColor" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
29
28
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
export declare const expandContainer: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const expandControl: import("@emotion/react").SerializedStyles;
|
|
7
7
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { IntlShape } from 'react-intl-next';
|
|
4
|
-
import { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { IntlShape } from 'react-intl-next';
|
|
4
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
5
5
|
export interface ImageBorderProps {
|
|
6
6
|
intl: IntlShape;
|
|
7
7
|
toggleBorder: () => void;
|
|
8
8
|
borderMark?: BorderMarkAttributes;
|
|
9
|
-
showSomewhatSemanticTooltips?: boolean;
|
|
10
9
|
setBorder: (attrs: Partial<BorderMarkAttributes>) => void;
|
|
11
10
|
}
|
|
12
|
-
declare const ImageBorder: ({ intl: { formatMessage }, toggleBorder,
|
|
11
|
+
declare const ImageBorder: ({ intl: { formatMessage }, toggleBorder, borderMark, setBorder, }: ImageBorderProps) => jsx.JSX.Element;
|
|
13
12
|
export default ImageBorder;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
2
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
4
3
|
import { pluginKey as textColorPluginKey } from './pm-plugins/main';
|
|
5
4
|
type Config = TextColorPluginConfig | boolean;
|
|
6
5
|
declare const textColorPlugin: NextEditorPlugin<'textColor', {
|
|
7
6
|
pluginConfiguration: Config | undefined;
|
|
8
7
|
dependencies: [
|
|
9
|
-
FeatureFlagsPlugin
|
|
10
8
|
];
|
|
11
9
|
}>;
|
|
12
10
|
export { textColorPluginKey };
|
|
@@ -5,7 +5,6 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import type { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
7
|
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
8
|
export declare const messages: {
|
|
10
9
|
textColor: {
|
|
11
10
|
id: string;
|
|
@@ -26,7 +25,6 @@ export interface Props {
|
|
|
26
25
|
isReducedSpacing?: boolean;
|
|
27
26
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
28
27
|
disabled?: boolean;
|
|
29
|
-
featureFlags: FeatureFlags;
|
|
30
28
|
}
|
|
31
29
|
export declare class ToolbarTextColor extends React.Component<Props & WrappedComponentProps, State> {
|
|
32
30
|
state: State;
|
|
@@ -17,7 +17,6 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
17
17
|
mountPoint?: HTMLElement;
|
|
18
18
|
setDisableParentScroll?: (disable: boolean) => void;
|
|
19
19
|
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
20
|
-
showSomewhatSemanticTooltips?: boolean;
|
|
21
20
|
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
22
21
|
/**
|
|
23
22
|
* After picking the color the default behaviour is to focus the color picker button.
|
|
@@ -25,5 +24,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
25
24
|
*/
|
|
26
25
|
skipFocusButtonAfterPick?: boolean;
|
|
27
26
|
};
|
|
28
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "cols" | "analyticsContext" | "currentColor" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "
|
|
27
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "cols" | "analyticsContext" | "currentColor" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
29
28
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
export declare const expandContainer: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const expandControl: import("@emotion/react").SerializedStyles;
|
|
7
7
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.41.
|
|
3
|
+
"version": "187.41.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/editor-plugin-list": "^1.2.0",
|
|
79
79
|
"@atlaskit/editor-plugin-placeholder": "^0.1.0",
|
|
80
80
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
81
|
-
"@atlaskit/editor-plugin-table": "^2.
|
|
81
|
+
"@atlaskit/editor-plugin-table": "^2.14.0",
|
|
82
82
|
"@atlaskit/editor-plugin-text-formatting": "^0.4.0",
|
|
83
83
|
"@atlaskit/editor-plugin-type-ahead": "^0.3.0",
|
|
84
84
|
"@atlaskit/editor-plugin-unsupported-content": "^0.2.0",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@atlaskit/collab-provider": "9.12.2",
|
|
153
153
|
"@atlaskit/dropdown-menu": "^11.13.0",
|
|
154
154
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
155
|
-
"@atlaskit/editor-plugin-table": "^2.
|
|
155
|
+
"@atlaskit/editor-plugin-table": "^2.14.0",
|
|
156
156
|
"@atlaskit/flag": "^15.2.0",
|
|
157
157
|
"@atlaskit/icon-object": "^6.3.0",
|
|
158
158
|
"@atlaskit/inline-dialog": "^13.6.0",
|