@atlaskit/editor-core 235.0.3 → 236.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/create-editor/create-plugins-list.js +1 -2
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +1 -1
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +1 -1
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Toolbar/toolbar-size.js +2 -47
- package/dist/cjs/utils/extensions.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +1 -2
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +1 -1
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +1 -1
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Toolbar/toolbar-size.js +3 -48
- package/dist/es2019/utils/extensions.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +1 -2
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +1 -1
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +1 -1
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/esm/ui/Toolbar/toolbar-size.js +3 -48
- package/dist/esm/utils/extensions.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +45 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 236.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6be0c3f7c55b3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6be0c3f7c55b3) -
|
|
8
|
+
Clean up experiment `platform_editor_slash_app_category_analytics`
|
|
9
|
+
- [`92fc57a354c33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92fc57a354c33) -
|
|
10
|
+
Clean up feature gate `platform_editor_toolbar_responsive_fixes`. The responsive toolbar behaviour
|
|
11
|
+
is now permanently enabled. Remove the obsolete `ToolbarWidths` and `ToolbarWidthsFullPage`
|
|
12
|
+
exports; consumers should use `ToolbarWidthsNext` and `ToolbarWidthsFullPageNext`. Also remove the
|
|
13
|
+
unread `BlockTypePluginOptions.isUndoRedoButtonsEnabled` option, which no longer affects toolbar
|
|
14
|
+
sizing.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 235.0.4
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`aca9d41fbef7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aca9d41fbef7d) -
|
|
22
|
+
Restore the overflow shadow on modernised comment editor toolbars after the compiled CSS cleanup.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 235.0.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -38,8 +38,7 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent
|
|
|
38
38
|
},
|
|
39
39
|
blockType: {
|
|
40
40
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
41
|
-
allowBlockType: props.allowBlockType
|
|
42
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
41
|
+
allowBlockType: props.allowBlockType
|
|
43
42
|
},
|
|
44
43
|
placeholder: {
|
|
45
44
|
placeholder: props.placeholder,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
|
-
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}.
|
|
2
|
+
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
3
3
|
._16qsglyw{box-shadow:none}
|
|
4
4
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
5
5
|
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
@@ -16,7 +16,7 @@ var fixedToolbarCompiledStyles = {
|
|
|
16
16
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
17
17
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
18
18
|
mainToolbarRadius: "_2rko12c2",
|
|
19
|
-
editorModernisationToolbar: "_2rko15b0
|
|
19
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax"
|
|
20
20
|
};
|
|
21
21
|
var FixedToolbarCompiled = exports.FixedToolbarCompiled = function FixedToolbarCompiled(props) {
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
2
|
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}
|
|
3
|
-
._v56416gf{transition:box-shadow .2s ease-in-out}.
|
|
3
|
+
._v56416gf{transition:box-shadow .2s ease-in-out}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
4
4
|
._10ytl2q5.show-keyline{box-shadow:0 2px 0 0 var(--ds-background-accent-gray-subtlest,#f0f1f2)}
|
|
5
5
|
._16qsglyw{box-shadow:none}
|
|
6
6
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
@@ -21,7 +21,7 @@ var stickyToolbarCompiledStyles = {
|
|
|
21
21
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
22
22
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
23
23
|
mainToolbarRadius: "_2rko12c2",
|
|
24
|
-
editorModernisationToolbar: "_2rko15b0
|
|
24
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax",
|
|
25
25
|
stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
|
|
26
26
|
};
|
|
27
27
|
var StickyToolbarCompiled = exports.StickyToolbarCompiled = function StickyToolbarCompiled(props) {
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.widthToToolbarSize = exports.toolbarSizeToWidth = void 0;
|
|
7
7
|
var _types = require("@atlaskit/editor-common/types");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var _isFullPage = require("../../utils/is-full-page");
|
|
10
9
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
11
10
|
var toolbarSizesFullPageNext = [{
|
|
@@ -24,28 +23,6 @@ var toolbarSizesFullPageNext = [{
|
|
|
24
23
|
width: _types.ToolbarWidthsFullPageNext.S,
|
|
25
24
|
size: _types.ToolbarSize.S
|
|
26
25
|
}];
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
29
|
-
/** @deprecated
|
|
30
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
31
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
32
|
-
*/
|
|
33
|
-
var toolbarSizesFullPage = [{
|
|
34
|
-
width: _types.ToolbarWidthsFullPage.XXL,
|
|
35
|
-
size: _types.ToolbarSize.XXL
|
|
36
|
-
}, {
|
|
37
|
-
width: _types.ToolbarWidthsFullPage.XL,
|
|
38
|
-
size: _types.ToolbarSize.XL
|
|
39
|
-
}, {
|
|
40
|
-
width: _types.ToolbarWidthsFullPage.L,
|
|
41
|
-
size: _types.ToolbarSize.L
|
|
42
|
-
}, {
|
|
43
|
-
width: _types.ToolbarWidthsFullPage.M,
|
|
44
|
-
size: _types.ToolbarSize.M
|
|
45
|
-
}, {
|
|
46
|
-
width: _types.ToolbarWidthsFullPage.S,
|
|
47
|
-
size: _types.ToolbarSize.S
|
|
48
|
-
}];
|
|
49
26
|
var toolbarSizesNext = [{
|
|
50
27
|
width: _types.ToolbarWidthsNext.XXL,
|
|
51
28
|
size: _types.ToolbarSize.XXL
|
|
@@ -62,37 +39,15 @@ var toolbarSizesNext = [{
|
|
|
62
39
|
width: _types.ToolbarWidthsNext.S,
|
|
63
40
|
size: _types.ToolbarSize.S
|
|
64
41
|
}];
|
|
65
|
-
|
|
66
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
67
|
-
/** @deprecated
|
|
68
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
69
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
70
|
-
*/
|
|
71
|
-
var toolbarSizes = [{
|
|
72
|
-
width: _types.ToolbarWidths.XXL,
|
|
73
|
-
size: _types.ToolbarSize.XXL
|
|
74
|
-
}, {
|
|
75
|
-
width: _types.ToolbarWidths.XL,
|
|
76
|
-
size: _types.ToolbarSize.XL
|
|
77
|
-
}, {
|
|
78
|
-
width: _types.ToolbarWidths.L,
|
|
79
|
-
size: _types.ToolbarSize.L
|
|
80
|
-
}, {
|
|
81
|
-
width: _types.ToolbarWidths.M,
|
|
82
|
-
size: _types.ToolbarSize.M
|
|
83
|
-
}, {
|
|
84
|
-
width: _types.ToolbarWidths.S,
|
|
85
|
-
size: _types.ToolbarSize.S
|
|
86
|
-
}];
|
|
87
42
|
var toolbarSizesForAppearance = function toolbarSizesForAppearance(appearance) {
|
|
88
|
-
return (0, _isFullPage.isFullPage)(appearance) ?
|
|
43
|
+
return (0, _isFullPage.isFullPage)(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
89
44
|
};
|
|
90
45
|
var toolbarSizeToWidth = exports.toolbarSizeToWidth = function toolbarSizeToWidth(toolbarSize, appearance) {
|
|
91
46
|
return (toolbarSizesForAppearance(appearance).find(function (_ref) {
|
|
92
47
|
var size = _ref.size;
|
|
93
48
|
return toolbarSize === size;
|
|
94
49
|
}) || {
|
|
95
|
-
width: _types.
|
|
50
|
+
width: _types.ToolbarWidthsNext.S
|
|
96
51
|
}).width;
|
|
97
52
|
};
|
|
98
53
|
|
|
@@ -140,7 +140,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
140
140
|
return Promise.resolve([]);
|
|
141
141
|
}
|
|
142
142
|
var quickInsertItems = (0, _extensions.getQuickInsertItemsFromModule)(extensions, function (item) {
|
|
143
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
143
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
|
|
144
144
|
app: item.app
|
|
145
145
|
} : {}), {}, {
|
|
146
146
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "235.0.
|
|
9
|
+
var version = exports.version = "235.0.4";
|
|
@@ -28,8 +28,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
28
28
|
},
|
|
29
29
|
blockType: {
|
|
30
30
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
31
|
-
allowBlockType: props.allowBlockType
|
|
32
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
31
|
+
allowBlockType: props.allowBlockType
|
|
33
32
|
},
|
|
34
33
|
placeholder: {
|
|
35
34
|
placeholder: props.placeholder,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
|
-
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}.
|
|
2
|
+
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
3
3
|
._16qsglyw{box-shadow:none}
|
|
4
4
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
5
5
|
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
@@ -9,7 +9,7 @@ const fixedToolbarCompiledStyles = {
|
|
|
9
9
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
10
10
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
11
11
|
mainToolbarRadius: "_2rko12c2",
|
|
12
|
-
editorModernisationToolbar: "_2rko15b0
|
|
12
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax"
|
|
13
13
|
};
|
|
14
14
|
export const FixedToolbarCompiled = props => /*#__PURE__*/React.createElement("div", {
|
|
15
15
|
"data-testid": "ak-editor-main-toolbar",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
2
|
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}
|
|
3
|
-
._v56416gf{transition:box-shadow .2s ease-in-out}.
|
|
3
|
+
._v56416gf{transition:box-shadow .2s ease-in-out}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
4
4
|
._10ytl2q5.show-keyline{box-shadow:0 2px 0 0 var(--ds-background-accent-gray-subtlest,#f0f1f2)}
|
|
5
5
|
._16qsglyw{box-shadow:none}
|
|
6
6
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
@@ -11,7 +11,7 @@ const stickyToolbarCompiledStyles = {
|
|
|
11
11
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
12
12
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
13
13
|
mainToolbarRadius: "_2rko12c2",
|
|
14
|
-
editorModernisationToolbar: "_2rko15b0
|
|
14
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax",
|
|
15
15
|
stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
|
|
16
16
|
};
|
|
17
17
|
export const StickyToolbarCompiled = props => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
1
|
+
import { ToolbarSize, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from '@atlaskit/editor-common/types';
|
|
3
2
|
import { isFullPage } from '../../utils/is-full-page';
|
|
4
3
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
5
4
|
const toolbarSizesFullPageNext = [{
|
|
@@ -18,28 +17,6 @@ const toolbarSizesFullPageNext = [{
|
|
|
18
17
|
width: ToolbarWidthsFullPageNext.S,
|
|
19
18
|
size: ToolbarSize.S
|
|
20
19
|
}];
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
23
|
-
/** @deprecated
|
|
24
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
25
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
26
|
-
*/
|
|
27
|
-
const toolbarSizesFullPage = [{
|
|
28
|
-
width: ToolbarWidthsFullPage.XXL,
|
|
29
|
-
size: ToolbarSize.XXL
|
|
30
|
-
}, {
|
|
31
|
-
width: ToolbarWidthsFullPage.XL,
|
|
32
|
-
size: ToolbarSize.XL
|
|
33
|
-
}, {
|
|
34
|
-
width: ToolbarWidthsFullPage.L,
|
|
35
|
-
size: ToolbarSize.L
|
|
36
|
-
}, {
|
|
37
|
-
width: ToolbarWidthsFullPage.M,
|
|
38
|
-
size: ToolbarSize.M
|
|
39
|
-
}, {
|
|
40
|
-
width: ToolbarWidthsFullPage.S,
|
|
41
|
-
size: ToolbarSize.S
|
|
42
|
-
}];
|
|
43
20
|
const toolbarSizesNext = [{
|
|
44
21
|
width: ToolbarWidthsNext.XXL,
|
|
45
22
|
size: ToolbarSize.XXL
|
|
@@ -56,34 +33,12 @@ const toolbarSizesNext = [{
|
|
|
56
33
|
width: ToolbarWidthsNext.S,
|
|
57
34
|
size: ToolbarSize.S
|
|
58
35
|
}];
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
61
|
-
/** @deprecated
|
|
62
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
63
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
64
|
-
*/
|
|
65
|
-
const toolbarSizes = [{
|
|
66
|
-
width: ToolbarWidths.XXL,
|
|
67
|
-
size: ToolbarSize.XXL
|
|
68
|
-
}, {
|
|
69
|
-
width: ToolbarWidths.XL,
|
|
70
|
-
size: ToolbarSize.XL
|
|
71
|
-
}, {
|
|
72
|
-
width: ToolbarWidths.L,
|
|
73
|
-
size: ToolbarSize.L
|
|
74
|
-
}, {
|
|
75
|
-
width: ToolbarWidths.M,
|
|
76
|
-
size: ToolbarSize.M
|
|
77
|
-
}, {
|
|
78
|
-
width: ToolbarWidths.S,
|
|
79
|
-
size: ToolbarSize.S
|
|
80
|
-
}];
|
|
81
|
-
const toolbarSizesForAppearance = appearance => isFullPage(appearance) ? fg('platform_editor_toolbar_responsive_fixes') ? toolbarSizesFullPageNext : toolbarSizesFullPage : fg('platform_editor_toolbar_responsive_fixes') ? toolbarSizesNext : toolbarSizes;
|
|
36
|
+
const toolbarSizesForAppearance = appearance => isFullPage(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
82
37
|
export const toolbarSizeToWidth = (toolbarSize, appearance) => {
|
|
83
38
|
return (toolbarSizesForAppearance(appearance).find(({
|
|
84
39
|
size
|
|
85
40
|
}) => toolbarSize === size) || {
|
|
86
|
-
width:
|
|
41
|
+
width: ToolbarWidthsNext.S
|
|
87
42
|
}).width;
|
|
88
43
|
};
|
|
89
44
|
|
|
@@ -104,7 +104,7 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
|
|
|
104
104
|
}
|
|
105
105
|
const quickInsertItems = getQuickInsertItemsFromModule(extensions, item => {
|
|
106
106
|
return {
|
|
107
|
-
...(
|
|
107
|
+
...(item.app ? {
|
|
108
108
|
app: item.app
|
|
109
109
|
} : {}),
|
|
110
110
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -30,8 +30,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
30
30
|
},
|
|
31
31
|
blockType: {
|
|
32
32
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
33
|
-
allowBlockType: props.allowBlockType
|
|
34
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
33
|
+
allowBlockType: props.allowBlockType
|
|
35
34
|
},
|
|
36
35
|
placeholder: {
|
|
37
36
|
placeholder: props.placeholder,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
|
-
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}.
|
|
2
|
+
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
3
3
|
._16qsglyw{box-shadow:none}
|
|
4
4
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
5
5
|
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
@@ -9,7 +9,7 @@ var fixedToolbarCompiledStyles = {
|
|
|
9
9
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
10
10
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
11
11
|
mainToolbarRadius: "_2rko12c2",
|
|
12
|
-
editorModernisationToolbar: "_2rko15b0
|
|
12
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax"
|
|
13
13
|
};
|
|
14
14
|
export var FixedToolbarCompiled = function FixedToolbarCompiled(props) {
|
|
15
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
|
|
2
2
|
._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}
|
|
3
|
-
._v56416gf{transition:box-shadow .2s ease-in-out}.
|
|
3
|
+
._v56416gf{transition:box-shadow .2s ease-in-out}._10yt1nax.show-keyline{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
|
|
4
4
|
._10ytl2q5.show-keyline{box-shadow:0 2px 0 0 var(--ds-background-accent-gray-subtlest,#f0f1f2)}
|
|
5
5
|
._16qsglyw{box-shadow:none}
|
|
6
6
|
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
@@ -12,7 +12,7 @@ var stickyToolbarCompiledStyles = {
|
|
|
12
12
|
mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
|
|
13
13
|
mainToolbarWrapperVisualRefresh: "_3pwj1osq",
|
|
14
14
|
mainToolbarRadius: "_2rko12c2",
|
|
15
|
-
editorModernisationToolbar: "_2rko15b0
|
|
15
|
+
editorModernisationToolbar: "_2rko15b0 _10yt1nax",
|
|
16
16
|
stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
|
|
17
17
|
};
|
|
18
18
|
export var StickyToolbarCompiled = function StickyToolbarCompiled(props) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
1
|
+
import { ToolbarSize, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from '@atlaskit/editor-common/types';
|
|
3
2
|
import { isFullPage } from '../../utils/is-full-page';
|
|
4
3
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
5
4
|
var toolbarSizesFullPageNext = [{
|
|
@@ -18,28 +17,6 @@ var toolbarSizesFullPageNext = [{
|
|
|
18
17
|
width: ToolbarWidthsFullPageNext.S,
|
|
19
18
|
size: ToolbarSize.S
|
|
20
19
|
}];
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
23
|
-
/** @deprecated
|
|
24
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
25
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
26
|
-
*/
|
|
27
|
-
var toolbarSizesFullPage = [{
|
|
28
|
-
width: ToolbarWidthsFullPage.XXL,
|
|
29
|
-
size: ToolbarSize.XXL
|
|
30
|
-
}, {
|
|
31
|
-
width: ToolbarWidthsFullPage.XL,
|
|
32
|
-
size: ToolbarSize.XL
|
|
33
|
-
}, {
|
|
34
|
-
width: ToolbarWidthsFullPage.L,
|
|
35
|
-
size: ToolbarSize.L
|
|
36
|
-
}, {
|
|
37
|
-
width: ToolbarWidthsFullPage.M,
|
|
38
|
-
size: ToolbarSize.M
|
|
39
|
-
}, {
|
|
40
|
-
width: ToolbarWidthsFullPage.S,
|
|
41
|
-
size: ToolbarSize.S
|
|
42
|
-
}];
|
|
43
20
|
var toolbarSizesNext = [{
|
|
44
21
|
width: ToolbarWidthsNext.XXL,
|
|
45
22
|
size: ToolbarSize.XXL
|
|
@@ -56,37 +33,15 @@ var toolbarSizesNext = [{
|
|
|
56
33
|
width: ToolbarWidthsNext.S,
|
|
57
34
|
size: ToolbarSize.S
|
|
58
35
|
}];
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
61
|
-
/** @deprecated
|
|
62
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
63
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
64
|
-
*/
|
|
65
|
-
var toolbarSizes = [{
|
|
66
|
-
width: ToolbarWidths.XXL,
|
|
67
|
-
size: ToolbarSize.XXL
|
|
68
|
-
}, {
|
|
69
|
-
width: ToolbarWidths.XL,
|
|
70
|
-
size: ToolbarSize.XL
|
|
71
|
-
}, {
|
|
72
|
-
width: ToolbarWidths.L,
|
|
73
|
-
size: ToolbarSize.L
|
|
74
|
-
}, {
|
|
75
|
-
width: ToolbarWidths.M,
|
|
76
|
-
size: ToolbarSize.M
|
|
77
|
-
}, {
|
|
78
|
-
width: ToolbarWidths.S,
|
|
79
|
-
size: ToolbarSize.S
|
|
80
|
-
}];
|
|
81
36
|
var toolbarSizesForAppearance = function toolbarSizesForAppearance(appearance) {
|
|
82
|
-
return isFullPage(appearance) ?
|
|
37
|
+
return isFullPage(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
83
38
|
};
|
|
84
39
|
export var toolbarSizeToWidth = function toolbarSizeToWidth(toolbarSize, appearance) {
|
|
85
40
|
return (toolbarSizesForAppearance(appearance).find(function (_ref) {
|
|
86
41
|
var size = _ref.size;
|
|
87
42
|
return toolbarSize === size;
|
|
88
43
|
}) || {
|
|
89
|
-
width:
|
|
44
|
+
width: ToolbarWidthsNext.S
|
|
90
45
|
}).width;
|
|
91
46
|
};
|
|
92
47
|
|
|
@@ -135,7 +135,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
135
135
|
return Promise.resolve([]);
|
|
136
136
|
}
|
|
137
137
|
var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
|
|
138
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
138
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
|
|
139
139
|
app: item.app
|
|
140
140
|
} : {}), {}, {
|
|
141
141
|
// Add module key so typeahead/quick-insert can identify items
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "236.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@atlaskit/button": "^25.4.0",
|
|
51
51
|
"@atlaskit/css": "^1.1.0",
|
|
52
52
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
53
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
54
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
55
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
56
|
-
"@atlaskit/editor-plugin-selection-extension": "^
|
|
57
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
53
|
+
"@atlaskit/editor-plugin-block-menu": "^25.0.0",
|
|
54
|
+
"@atlaskit/editor-plugin-connectivity": "^26.0.0",
|
|
55
|
+
"@atlaskit/editor-plugin-quick-insert": "^26.0.0",
|
|
56
|
+
"@atlaskit/editor-plugin-selection-extension": "^29.0.0",
|
|
57
|
+
"@atlaskit/editor-plugin-user-preferences": "^24.0.0",
|
|
58
58
|
"@atlaskit/editor-plugins": "^16.2.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
61
|
-
"@atlaskit/editor-ssr-renderer": "^
|
|
61
|
+
"@atlaskit/editor-ssr-renderer": "^21.0.0",
|
|
62
62
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
63
63
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
64
64
|
"@atlaskit/emoji": "^72.5.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.12.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
81
|
-
"@atlaskit/tokens": "^20.
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^227.0.0",
|
|
81
|
+
"@atlaskit/tokens": "^20.4.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.4.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
84
84
|
"@babel/runtime": "^7.0.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^
|
|
99
|
+
"@atlaskit/editor-common": "^130.0.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -112,39 +112,39 @@
|
|
|
112
112
|
"@atlaskit/analytics-gas-types": "^6.2.0",
|
|
113
113
|
"@atlaskit/analytics-listeners": "^11.4.0",
|
|
114
114
|
"@atlaskit/code": "^20.0.0",
|
|
115
|
-
"@atlaskit/collab-provider": "^
|
|
115
|
+
"@atlaskit/collab-provider": "^35.0.0",
|
|
116
116
|
"@atlaskit/docs": "^12.3.0",
|
|
117
117
|
"@atlaskit/drawer": "^14.3.0",
|
|
118
|
-
"@atlaskit/editor-plugin-alignment": "^
|
|
119
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
120
|
-
"@atlaskit/editor-plugin-base": "^
|
|
121
|
-
"@atlaskit/editor-plugin-card": "^
|
|
122
|
-
"@atlaskit/editor-plugin-code-block-advanced": "^
|
|
123
|
-
"@atlaskit/editor-plugin-collab-edit": "^
|
|
124
|
-
"@atlaskit/editor-plugin-content-insertion": "^
|
|
125
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
126
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
127
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
128
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
129
|
-
"@atlaskit/editor-plugin-highlight": "^
|
|
130
|
-
"@atlaskit/editor-plugin-insert-block": "^
|
|
131
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
132
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
133
|
-
"@atlaskit/editor-plugin-list": "^
|
|
134
|
-
"@atlaskit/editor-plugin-media": "^
|
|
135
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
136
|
-
"@atlaskit/editor-plugin-selection-marker": "^
|
|
137
|
-
"@atlaskit/editor-plugin-show-diff": "^
|
|
138
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
139
|
-
"@atlaskit/editor-plugin-table": "^
|
|
140
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
141
|
-
"@atlaskit/editor-plugin-text-color": "^
|
|
142
|
-
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^
|
|
143
|
-
"@atlaskit/editor-plugin-track-changes": "^
|
|
144
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
145
|
-
"@atlaskit/editor-synced-block-renderer": "^
|
|
118
|
+
"@atlaskit/editor-plugin-alignment": "^27.0.0",
|
|
119
|
+
"@atlaskit/editor-plugin-annotation": "^26.0.0",
|
|
120
|
+
"@atlaskit/editor-plugin-base": "^27.0.0",
|
|
121
|
+
"@atlaskit/editor-plugin-card": "^32.0.0",
|
|
122
|
+
"@atlaskit/editor-plugin-code-block-advanced": "^26.0.0",
|
|
123
|
+
"@atlaskit/editor-plugin-collab-edit": "^27.0.0",
|
|
124
|
+
"@atlaskit/editor-plugin-content-insertion": "^26.0.0",
|
|
125
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^28.0.0",
|
|
126
|
+
"@atlaskit/editor-plugin-extension": "^29.0.0",
|
|
127
|
+
"@atlaskit/editor-plugin-grid": "^26.0.0",
|
|
128
|
+
"@atlaskit/editor-plugin-guideline": "^26.0.0",
|
|
129
|
+
"@atlaskit/editor-plugin-highlight": "^26.0.0",
|
|
130
|
+
"@atlaskit/editor-plugin-insert-block": "^27.0.0",
|
|
131
|
+
"@atlaskit/editor-plugin-layout": "^27.0.0",
|
|
132
|
+
"@atlaskit/editor-plugin-limited-mode": "^23.0.0",
|
|
133
|
+
"@atlaskit/editor-plugin-list": "^28.0.0",
|
|
134
|
+
"@atlaskit/editor-plugin-media": "^28.0.0",
|
|
135
|
+
"@atlaskit/editor-plugin-paste": "^27.0.0",
|
|
136
|
+
"@atlaskit/editor-plugin-selection-marker": "^26.0.0",
|
|
137
|
+
"@atlaskit/editor-plugin-show-diff": "^24.0.0",
|
|
138
|
+
"@atlaskit/editor-plugin-synced-block": "^24.0.0",
|
|
139
|
+
"@atlaskit/editor-plugin-table": "^38.0.0",
|
|
140
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^29.0.0",
|
|
141
|
+
"@atlaskit/editor-plugin-text-color": "^26.0.0",
|
|
142
|
+
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^27.0.0",
|
|
143
|
+
"@atlaskit/editor-plugin-track-changes": "^25.0.0",
|
|
144
|
+
"@atlaskit/editor-synced-block-provider": "^22.0.0",
|
|
145
|
+
"@atlaskit/editor-synced-block-renderer": "^24.0.0",
|
|
146
146
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
147
|
-
"@atlaskit/form": "^18.
|
|
147
|
+
"@atlaskit/form": "^18.2.0",
|
|
148
148
|
"@atlaskit/link-provider": "^6.0.0",
|
|
149
149
|
"@atlaskit/linking-common": "^13.0.0",
|
|
150
150
|
"@atlaskit/logo": "^23.3.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@atlaskit/portal": "^7.0.0",
|
|
160
160
|
"@atlaskit/profilecard": "^27.1.0",
|
|
161
161
|
"@atlaskit/radio": "^10.2.0",
|
|
162
|
-
"@atlaskit/renderer": "^
|
|
162
|
+
"@atlaskit/renderer": "^149.0.0",
|
|
163
163
|
"@atlaskit/section-message": "^10.2.0",
|
|
164
164
|
"@atlaskit/spinner": "^20.4.0",
|
|
165
165
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
@@ -170,14 +170,14 @@
|
|
|
170
170
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
171
171
|
"@atlassian/a11y-playwright-testing": "^0.13.0",
|
|
172
172
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
173
|
-
"@atlassian/editor-rovo-bridge": "^
|
|
173
|
+
"@atlassian/editor-rovo-bridge": "^25.0.0",
|
|
174
174
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
175
175
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
176
|
-
"@atlassian/search-client": "^3.
|
|
177
|
-
"@atlassian/search-provider": "^
|
|
176
|
+
"@atlassian/search-client": "^3.8.0",
|
|
177
|
+
"@atlassian/search-provider": "^27.0.0",
|
|
178
178
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
179
179
|
"@atlassian/testing-library": "^0.11.0",
|
|
180
|
-
"@atlassian/user-profile-card": "^1.
|
|
180
|
+
"@atlassian/user-profile-card": "^1.44.0",
|
|
181
181
|
"@emotion/jest": "^11.8.0",
|
|
182
182
|
"@testing-library/react": "^16.3.0",
|
|
183
183
|
"@types/diff": "^5.0.2",
|
|
@@ -216,9 +216,6 @@
|
|
|
216
216
|
"type": "boolean",
|
|
217
217
|
"referenceOnly": true
|
|
218
218
|
},
|
|
219
|
-
"platform_editor_toolbar_responsive_fixes": {
|
|
220
|
-
"type": "boolean"
|
|
221
|
-
},
|
|
222
219
|
"platform-component-visual-refresh": {
|
|
223
220
|
"type": "boolean",
|
|
224
221
|
"referenceOnly": true
|