@atlaskit/editor-core 214.1.3 → 214.1.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 +16 -0
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +4 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +4 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -1
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +4 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +7 -1
- package/dist/types/presets/universal.d.ts +7 -1
- package/dist/types/presets/useUniversalPreset.d.ts +7 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +8 -1
- package/dist/types-ts4.5/presets/universal.d.ts +8 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +8 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 214.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a3fe38f9b65b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3fe38f9b65b1) -
|
|
8
|
+
[ux] [EDITOR-1686] hidden cursor while ai is streaming text
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 214.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`1de31390178ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1de31390178ab) -
|
|
16
|
+
[ux] [ED-29189] fix padding css for comment toolbar
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 214.1.3
|
|
4
20
|
|
|
5
21
|
### 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: {
|
|
@@ -16,5 +16,9 @@ var cursorStyles = exports.cursorStyles = (0, _react.css)({
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
17
17
|
'.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor': {
|
|
18
18
|
display: 'none'
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
21
|
+
'.ProseMirror:has(.ProseMirror-hide-cursor)': {
|
|
22
|
+
caretColor: 'transparent'
|
|
19
23
|
}
|
|
20
24
|
});
|
|
@@ -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: {
|
|
@@ -10,5 +10,9 @@ export const cursorStyles = css({
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
11
11
|
'.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor': {
|
|
12
12
|
display: 'none'
|
|
13
|
+
},
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
15
|
+
'.ProseMirror:has(.ProseMirror-hide-cursor)': {
|
|
16
|
+
caretColor: 'transparent'
|
|
13
17
|
}
|
|
14
18
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "214.1.
|
|
2
|
+
export const version = "214.1.4";
|
|
@@ -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: {
|
|
@@ -10,5 +10,9 @@ export var cursorStyles = css({
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
11
11
|
'.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor': {
|
|
12
12
|
display: 'none'
|
|
13
|
+
},
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
15
|
+
'.ProseMirror:has(.ProseMirror-hide-cursor)': {
|
|
16
|
+
caretColor: 'transparent'
|
|
13
17
|
}
|
|
14
18
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "214.1.
|
|
2
|
+
export var version = "214.1.4";
|
|
@@ -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;
|
|
@@ -310,6 +313,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
310
313
|
};
|
|
311
314
|
commands: {
|
|
312
315
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
316
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
313
317
|
};
|
|
314
318
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
315
319
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -392,6 +396,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
392
396
|
commands: {
|
|
393
397
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
394
398
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
399
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
395
400
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
396
401
|
};
|
|
397
402
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -415,6 +420,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
415
420
|
commands: {
|
|
416
421
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
417
422
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
423
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
418
424
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
419
425
|
};
|
|
420
426
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -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;
|
|
@@ -371,6 +374,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
371
374
|
};
|
|
372
375
|
commands: {
|
|
373
376
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
377
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
374
378
|
};
|
|
375
379
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
376
380
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -453,6 +457,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
453
457
|
commands: {
|
|
454
458
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
455
459
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
460
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
456
461
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
457
462
|
};
|
|
458
463
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -476,6 +481,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
476
481
|
commands: {
|
|
477
482
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
478
483
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
484
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
479
485
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
480
486
|
};
|
|
481
487
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -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;
|
|
@@ -310,6 +313,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
310
313
|
};
|
|
311
314
|
commands: {
|
|
312
315
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
316
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
313
317
|
};
|
|
314
318
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
315
319
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -392,6 +396,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
392
396
|
commands: {
|
|
393
397
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
394
398
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
399
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
395
400
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
396
401
|
};
|
|
397
402
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -415,6 +420,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
415
420
|
commands: {
|
|
416
421
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
417
422
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
423
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
418
424
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
419
425
|
};
|
|
420
426
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
|
|
@@ -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,
|
|
@@ -448,6 +452,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
448
452
|
};
|
|
449
453
|
commands: {
|
|
450
454
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
455
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
451
456
|
};
|
|
452
457
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
453
458
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -557,6 +562,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
557
562
|
commands: {
|
|
558
563
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
559
564
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
565
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
560
566
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
561
567
|
};
|
|
562
568
|
dependencies: [
|
|
@@ -592,6 +598,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
592
598
|
commands: {
|
|
593
599
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
594
600
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
601
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
595
602
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
596
603
|
};
|
|
597
604
|
dependencies: [
|
|
@@ -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,
|
|
@@ -509,6 +513,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
509
513
|
};
|
|
510
514
|
commands: {
|
|
511
515
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
516
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
512
517
|
};
|
|
513
518
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
514
519
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -618,6 +623,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
618
623
|
commands: {
|
|
619
624
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
620
625
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
626
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
621
627
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
622
628
|
};
|
|
623
629
|
dependencies: [
|
|
@@ -653,6 +659,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
653
659
|
commands: {
|
|
654
660
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
655
661
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
662
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
656
663
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
657
664
|
};
|
|
658
665
|
dependencies: [
|
|
@@ -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,
|
|
@@ -448,6 +452,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
448
452
|
};
|
|
449
453
|
commands: {
|
|
450
454
|
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
455
|
+
setPalette: (isPaletteOpen: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
451
456
|
};
|
|
452
457
|
dependencies: import("@atlaskit/editor-plugins/text-color").Dependencies;
|
|
453
458
|
pluginConfiguration: import("@atlaskit/editor-plugins/text-color").TextColorPluginOptions | undefined;
|
|
@@ -557,6 +562,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
557
562
|
commands: {
|
|
558
563
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
559
564
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
565
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
560
566
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
561
567
|
};
|
|
562
568
|
dependencies: [
|
|
@@ -592,6 +598,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
592
598
|
commands: {
|
|
593
599
|
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
594
600
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
601
|
+
hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
595
602
|
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
596
603
|
};
|
|
597
604
|
dependencies: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "214.1.
|
|
3
|
+
"version": "214.1.5",
|
|
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",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@atlaskit/editor-plugin-list": "^8.0.0",
|
|
100
100
|
"@atlaskit/editor-plugin-paste": "^7.0.0",
|
|
101
101
|
"@atlaskit/link-provider": "^4.0.0",
|
|
102
|
-
"@atlaskit/logo": "^19.
|
|
102
|
+
"@atlaskit/logo": "^19.9.0",
|
|
103
103
|
"@atlaskit/media-core": "^37.0.0",
|
|
104
104
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
105
105
|
"@atlaskit/media-test-helpers": "^39.0.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",
|