@atlaskit/editor-core 187.41.4 → 187.41.7
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 +16 -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/nodeviews/mediaSingle.js +3 -1
- 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/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +17 -0
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +4 -2
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styles.js +18 -0
- 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/nodeviews/mediaSingle.js +3 -1
- 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/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +9 -0
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +4 -2
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/styles.js +14 -0
- 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/nodeviews/mediaSingle.js +3 -1
- 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/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +9 -0
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +4 -2
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/styles.js +7 -0
- 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/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.d.ts +3 -0
- package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +3 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/styles.d.ts +1 -0
- 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/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.d.ts +3 -0
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/styles.d.ts +1 -0
- 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 +4 -4
|
@@ -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,
|
|
@@ -398,7 +398,9 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
398
398
|
ref: this.captionPlaceHolderRef,
|
|
399
399
|
onClick: this.clickPlaceholder
|
|
400
400
|
}));
|
|
401
|
-
return canResize ? getBooleanFF('platform.editor.media.extended-resize-experience') ? jsx(ResizableMediaSingleNext,
|
|
401
|
+
return canResize ? getBooleanFF('platform.editor.media.extended-resize-experience') ? jsx(ResizableMediaSingleNext, _extends({}, resizableMediaSingleProps, {
|
|
402
|
+
showLegacyNotification: widthType !== 'pixel'
|
|
403
|
+
}), MediaChildren) : jsx(ResizableMediaSingle, _extends({}, resizableMediaSingleProps, {
|
|
402
404
|
lineLength: contentWidthForLegacyExperience
|
|
403
405
|
}), MediaChildren) : jsx(MediaSingle, mediaSingleProps, MediaChildren);
|
|
404
406
|
}
|
|
@@ -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
|
}, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { resizableMediaMigrationNotificationStyle } from './styles';
|
|
4
|
+
export var ResizableMediaMigrationNotification = function ResizableMediaMigrationNotification() {
|
|
5
|
+
return jsx("div", {
|
|
6
|
+
"data-testid": "resizable-media-migration-notification",
|
|
7
|
+
css: [resizableMediaMigrationNotificationStyle]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
@@ -28,6 +28,7 @@ import memoizeOne from 'memoize-one';
|
|
|
28
28
|
import { getMediaResizeAnalyticsEvent } from '../../utils/analytics';
|
|
29
29
|
import throttle from 'lodash/throttle';
|
|
30
30
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
31
|
+
import { ResizableMediaMigrationNotification } from './ResizableMediaMigrationNotification';
|
|
31
32
|
export var resizerNextTestId = 'mediaSingle.resizerNext.testid';
|
|
32
33
|
var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
|
|
33
34
|
_inherits(ResizableMediaSingleNext, _React$Component);
|
|
@@ -495,7 +496,8 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
|
|
|
495
496
|
fullWidthMode = _this$props8.fullWidthMode,
|
|
496
497
|
selected = _this$props8.selected,
|
|
497
498
|
children = _this$props8.children,
|
|
498
|
-
lineLength = _this$props8.lineLength
|
|
499
|
+
lineLength = _this$props8.lineLength,
|
|
500
|
+
showLegacyNotification = _this$props8.showLegacyNotification;
|
|
499
501
|
var _this$state = this.state,
|
|
500
502
|
isResizing = _this$state.isResizing,
|
|
501
503
|
size = _this$state.size,
|
|
@@ -547,7 +549,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
|
|
|
547
549
|
isHandleVisible: selected,
|
|
548
550
|
handlePositioning: isNestedNode ? 'adjacent' : undefined,
|
|
549
551
|
handleHighlight: "full-height"
|
|
550
|
-
}, children));
|
|
552
|
+
}, children, showLegacyNotification && jsx(ResizableMediaMigrationNotification, null)));
|
|
551
553
|
}
|
|
552
554
|
}]);
|
|
553
555
|
return ResizableMediaSingleNext;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
var NOTIFICATION_SIZE = 8;
|
|
6
|
+
var SPACE_FROM_EDGE = "var(--ds-space-100, 8px)";
|
|
7
|
+
export var resizableMediaMigrationNotificationStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: ", ";\n right: calc(", " + ", ");\n background-color: ", ";\n border-radius: ", ";\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), SPACE_FROM_EDGE, "var(--ds-space-150, 12px)", SPACE_FROM_EDGE, "var(--ds-background-warning-bold, ".concat(colors.Y300, ")"), "var(--ds-border-radius-circle, 50%)", NOTIFICATION_SIZE, NOTIFICATION_SIZE);
|
|
@@ -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;
|
|
@@ -15,8 +15,10 @@ type State = {
|
|
|
15
15
|
relativeGuides: RelativeGuides;
|
|
16
16
|
guidelines: GuidelineConfig[];
|
|
17
17
|
};
|
|
18
|
-
type ResizableMediaSingleNextProps = Props;
|
|
19
18
|
export declare const resizerNextTestId = "mediaSingle.resizerNext.testid";
|
|
19
|
+
type ResizableMediaSingleNextProps = Props & {
|
|
20
|
+
showLegacyNotification?: boolean;
|
|
21
|
+
};
|
|
20
22
|
declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSingleNextProps, State> {
|
|
21
23
|
private lastSnappedGuidelineKeys;
|
|
22
24
|
constructor(props: ResizableMediaSingleNextProps);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resizableMediaMigrationNotificationStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -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;
|
package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ type State = {
|
|
|
15
15
|
relativeGuides: RelativeGuides;
|
|
16
16
|
guidelines: GuidelineConfig[];
|
|
17
17
|
};
|
|
18
|
-
type ResizableMediaSingleNextProps = Props;
|
|
19
18
|
export declare const resizerNextTestId = "mediaSingle.resizerNext.testid";
|
|
19
|
+
type ResizableMediaSingleNextProps = Props & {
|
|
20
|
+
showLegacyNotification?: boolean;
|
|
21
|
+
};
|
|
20
22
|
declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSingleNextProps, State> {
|
|
21
23
|
private lastSnappedGuidelineKeys;
|
|
22
24
|
constructor(props: ResizableMediaSingleNextProps);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resizableMediaMigrationNotificationStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -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<{
|