@atlaskit/editor-core 214.1.3 → 214.1.4
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 +8 -0
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +4 -1
- package/dist/types/presets/universal.d.ts +4 -1
- package/dist/types/presets/useUniversalPreset.d.ts +4 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +5 -1
- package/dist/types-ts4.5/presets/universal.d.ts +5 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +5 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 214.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1de31390178ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1de31390178ab) -
|
|
8
|
+
[ux] [ED-29189] fix padding css for comment toolbar
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 214.1.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -13,6 +13,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
19
|
/**
|
|
18
20
|
* @jsxRuntime classic
|
|
@@ -45,11 +47,15 @@ var mainToolbarWrapperStyleNew = (0, _react2.css)({
|
|
|
45
47
|
paddingLeft: 0
|
|
46
48
|
}
|
|
47
49
|
});
|
|
50
|
+
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
48
51
|
|
|
49
52
|
/** keep default padding for entire toolbar */
|
|
50
53
|
var mainToolbarWithoutLeftPadding = (0, _react2.css)({
|
|
51
54
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
|
|
52
55
|
});
|
|
56
|
+
var mainToolbarWithPadding = (0, _react2.css)({
|
|
57
|
+
padding: "var(--ds-space-100, 8px)"
|
|
58
|
+
});
|
|
53
59
|
var mainToolbarTwoLineStylesNew = (0, _react2.css)({
|
|
54
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
61
|
'& > div': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
@@ -101,7 +107,7 @@ var StickyToolbar = function StickyToolbar(props) {
|
|
|
101
107
|
return (
|
|
102
108
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
103
109
|
(0, _react2.jsx)("div", {
|
|
104
|
-
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding]
|
|
110
|
+
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !isToolbarAIFCEnabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && isToolbarAIFCEnabled && mainToolbarWithPadding]
|
|
105
111
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
106
112
|
,
|
|
107
113
|
style: {
|
|
@@ -9,6 +9,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
14
|
const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
13
15
|
const akEditorMenuZIndex = 500;
|
|
14
16
|
const akEditorToolbarKeylineHeight = 2;
|
|
@@ -33,11 +35,15 @@ const mainToolbarWrapperStyleNew = css({
|
|
|
33
35
|
paddingLeft: 0
|
|
34
36
|
}
|
|
35
37
|
});
|
|
38
|
+
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
36
39
|
|
|
37
40
|
/** keep default padding for entire toolbar */
|
|
38
41
|
const mainToolbarWithoutLeftPadding = css({
|
|
39
42
|
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} 0`
|
|
40
43
|
});
|
|
44
|
+
const mainToolbarWithPadding = css({
|
|
45
|
+
padding: `${"var(--ds-space-100, 8px)"}`
|
|
46
|
+
});
|
|
41
47
|
const mainToolbarTwoLineStylesNew = css({
|
|
42
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
43
49
|
'& > div': {
|
|
@@ -95,7 +101,7 @@ const StickyToolbar = props => {
|
|
|
95
101
|
return (
|
|
96
102
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
97
103
|
jsx("div", {
|
|
98
|
-
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding]
|
|
104
|
+
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !isToolbarAIFCEnabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && isToolbarAIFCEnabled && mainToolbarWithPadding]
|
|
99
105
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
100
106
|
,
|
|
101
107
|
style: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "214.1.
|
|
2
|
+
export const version = "214.1.3";
|
|
@@ -12,6 +12,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
17
|
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
16
18
|
var akEditorMenuZIndex = 500;
|
|
17
19
|
var akEditorToolbarKeylineHeight = 2;
|
|
@@ -36,11 +38,15 @@ var mainToolbarWrapperStyleNew = css({
|
|
|
36
38
|
paddingLeft: 0
|
|
37
39
|
}
|
|
38
40
|
});
|
|
41
|
+
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
39
42
|
|
|
40
43
|
/** keep default padding for entire toolbar */
|
|
41
44
|
var mainToolbarWithoutLeftPadding = css({
|
|
42
45
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
|
|
43
46
|
});
|
|
47
|
+
var mainToolbarWithPadding = css({
|
|
48
|
+
padding: "var(--ds-space-100, 8px)"
|
|
49
|
+
});
|
|
44
50
|
var mainToolbarTwoLineStylesNew = css({
|
|
45
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
46
52
|
'& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
@@ -92,7 +98,7 @@ var StickyToolbar = function StickyToolbar(props) {
|
|
|
92
98
|
return (
|
|
93
99
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
94
100
|
jsx("div", {
|
|
95
|
-
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding]
|
|
101
|
+
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, fg('platform-visual-refresh-icons') && mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && !isToolbarAIFCEnabled && mainToolbarWithoutLeftPadding, props.isNewToolbarEnabled && isToolbarAIFCEnabled && mainToolbarWithPadding]
|
|
96
102
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
97
103
|
,
|
|
98
104
|
style: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "214.1.
|
|
2
|
+
export var version = "214.1.3";
|
|
@@ -49,7 +49,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
49
49
|
outdentDisabled: boolean;
|
|
50
50
|
} | undefined;
|
|
51
51
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
52
|
-
|
|
52
|
+
commands: {
|
|
53
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
54
|
+
};
|
|
55
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>];
|
|
53
56
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
54
57
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
55
58
|
actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
|
|
@@ -110,7 +110,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
110
110
|
outdentDisabled: boolean;
|
|
111
111
|
} | undefined;
|
|
112
112
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
113
|
-
|
|
113
|
+
commands: {
|
|
114
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
115
|
+
};
|
|
116
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>];
|
|
114
117
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
115
118
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
116
119
|
actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
|
|
@@ -49,7 +49,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
49
49
|
outdentDisabled: boolean;
|
|
50
50
|
} | undefined;
|
|
51
51
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
52
|
-
|
|
52
|
+
commands: {
|
|
53
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
54
|
+
};
|
|
55
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>];
|
|
53
56
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
54
57
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
55
58
|
actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
|
|
@@ -146,10 +146,14 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
146
146
|
} | undefined;
|
|
147
147
|
}, undefined> | undefined,
|
|
148
148
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
149
|
+
commands: {
|
|
150
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
151
|
+
};
|
|
149
152
|
dependencies: [
|
|
150
153
|
import("@atlaskit/editor-plugins/selection").SelectionPlugin,
|
|
151
154
|
import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin,
|
|
152
|
-
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin
|
|
155
|
+
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin,
|
|
156
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>
|
|
153
157
|
];
|
|
154
158
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
155
159
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
|
|
@@ -207,10 +207,14 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
207
207
|
} | undefined;
|
|
208
208
|
}, undefined> | undefined,
|
|
209
209
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
210
|
+
commands: {
|
|
211
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
212
|
+
};
|
|
210
213
|
dependencies: [
|
|
211
214
|
import("@atlaskit/editor-plugins/selection").SelectionPlugin,
|
|
212
215
|
import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin,
|
|
213
|
-
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin
|
|
216
|
+
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin,
|
|
217
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>
|
|
214
218
|
];
|
|
215
219
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
216
220
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
|
|
@@ -146,10 +146,14 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
146
146
|
} | undefined;
|
|
147
147
|
}, undefined> | undefined,
|
|
148
148
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
|
|
149
|
+
commands: {
|
|
150
|
+
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
151
|
+
};
|
|
149
152
|
dependencies: [
|
|
150
153
|
import("@atlaskit/editor-plugins/selection").SelectionPlugin,
|
|
151
154
|
import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin,
|
|
152
|
-
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin
|
|
155
|
+
import("@atlaskit/editor-plugins/decorations").DecorationsPlugin,
|
|
156
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>
|
|
153
157
|
];
|
|
154
158
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
155
159
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "214.1.
|
|
3
|
+
"version": "214.1.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/editor-plugins": "^10.6.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
56
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
56
|
+
"@atlaskit/editor-toolbar": "^0.14.0",
|
|
57
57
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
58
58
|
"@atlaskit/emoji": "^69.5.0",
|
|
59
59
|
"@atlaskit/icon": "^28.4.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/primitives": "^14.15.0",
|
|
108
108
|
"@atlaskit/renderer": "^124.1.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.7.0",
|
|
110
|
-
"@atlaskit/smart-card": "^
|
|
110
|
+
"@atlaskit/smart-card": "^43.0.0",
|
|
111
111
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
112
112
|
"@atlaskit/toggle": "^15.1.0",
|
|
113
113
|
"@atlaskit/util-data-test": "^18.3.0",
|