@atlaskit/editor-core 193.30.6 → 193.30.9
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 +21 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -5
- package/dist/cjs/ui/ContentStyles/extension.js +1 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/ContentStyles/extension.js +9 -0
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +10 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.30.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116194)
|
|
8
|
+
[`a6ac14257c10a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a6ac14257c10a) -
|
|
9
|
+
[ux] Update button interactions: non-bodied macros stay flush with macro, bodied macros show
|
|
10
|
+
config icon on hover/select, have default white background, and maintain the indentaion
|
|
11
|
+
|
|
12
|
+
## 193.30.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#114548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114548)
|
|
17
|
+
[`8b2d47bffb50e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2d47bffb50e) -
|
|
18
|
+
bump adf-schema version
|
|
19
|
+
- [#116062](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116062)
|
|
20
|
+
[`1c26d1ee6fb25`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c26d1ee6fb25) -
|
|
21
|
+
Migrated to new atlaskit Buttons.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 193.30.6
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -18,8 +18,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
20
|
var _reactIntlNext = require("react-intl-next");
|
|
21
|
-
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
22
21
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
22
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
23
23
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
24
24
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
25
25
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -236,12 +236,12 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
236
236
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
237
237
|
css: secondaryToolbarStyles,
|
|
238
238
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
239
|
-
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(
|
|
239
|
+
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_new.default, {
|
|
240
240
|
appearance: "primary",
|
|
241
241
|
onClick: _this.handleSave,
|
|
242
242
|
testId: "comment-save-button",
|
|
243
243
|
isDisabled: disabled || mediaState && !mediaState.allUploadsFinished
|
|
244
|
-
}, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(
|
|
244
|
+
}, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_new.default, {
|
|
245
245
|
appearance: "subtle",
|
|
246
246
|
onClick: _this.handleCancel,
|
|
247
247
|
isDisabled: disabled
|
|
@@ -435,12 +435,12 @@ var EditorNext = function EditorNext(props) {
|
|
|
435
435
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
436
436
|
css: secondaryToolbarStyles,
|
|
437
437
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
438
|
-
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(
|
|
438
|
+
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_new.default, {
|
|
439
439
|
appearance: "primary",
|
|
440
440
|
onClick: handleSave,
|
|
441
441
|
testId: "comment-save-button",
|
|
442
442
|
isDisabled: disabled || saveButtonDisabled
|
|
443
|
-
}, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(
|
|
443
|
+
}, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_new.default, {
|
|
444
444
|
appearance: "subtle",
|
|
445
445
|
onClick: handleCancel,
|
|
446
446
|
isDisabled: disabled
|
|
@@ -11,7 +11,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
14
|
-
var extensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t&.danger > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t&:not(.danger).", " > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n"])), "var(--ds-background-accent-red-subtler, ".concat(_colors.R50, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-text-selected, ".concat(_colors.B400, ")"));
|
|
14
|
+
var extensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t&.danger > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t&:not(.danger).", " > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t// Targets the icon for bodied macro styling in button label\n\t&.danger > span > div > .extension-label > span {\n\t\tdisplay: inline;\n\t}\n\n\t&:not(.danger).", " > span > div .extension-label > span {\n\t\tdisplay: inline;\n\t}\n"])), "var(--ds-background-accent-red-subtler, ".concat(_colors.R50, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-text-selected, ".concat(_colors.B400, ")"), _editorSharedStyles.akEditorSelectedNodeClassName);
|
|
15
15
|
var dangerOverlayStyles = (0, _react.css)({
|
|
16
16
|
opacity: 0.3,
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -19,8 +19,8 @@ var _react = require("react");
|
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
21
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
22
|
-
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
23
22
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
23
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
24
24
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
25
25
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
26
26
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
@@ -193,10 +193,10 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
193
193
|
src: EDITOR_IMAGE_URL
|
|
194
194
|
})), (0, _react2.jsx)("div", {
|
|
195
195
|
css: _styles.confirmationText
|
|
196
|
-
}, (0, _react2.jsx)("div", null, "We are rolling out a new editing experience across Atlassian products. Help us improve by providing feedback."), (0, _react2.jsx)("div", null, "You can opt-out for now by turning off the \"Atlassian Editor\" feature on the Labs page in Bitbucket settings."), (0, _react2.jsx)(_buttonGroup.default, null, (0, _react2.jsx)(
|
|
196
|
+
}, (0, _react2.jsx)("div", null, "We are rolling out a new editing experience across Atlassian products. Help us improve by providing feedback."), (0, _react2.jsx)("div", null, "You can opt-out for now by turning off the \"Atlassian Editor\" feature on the Labs page in Bitbucket settings."), (0, _react2.jsx)(_buttonGroup.default, null, (0, _react2.jsx)(_new.default, {
|
|
197
197
|
appearance: "primary",
|
|
198
198
|
onClick: this.openFeedbackPopup
|
|
199
|
-
}, "Give feedback"), (0, _react2.jsx)(
|
|
199
|
+
}, "Give feedback"), (0, _react2.jsx)(_new.default, {
|
|
200
200
|
appearance: "default",
|
|
201
201
|
onClick: this.openLearnMorePage
|
|
202
202
|
}, "Learn more")))))) : null;
|
|
@@ -6,8 +6,8 @@ import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'reac
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import Button from '@atlaskit/button';
|
|
10
9
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
10
|
+
import Button from '@atlaskit/button/new';
|
|
11
11
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
12
12
|
import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
|
|
13
13
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
@@ -17,6 +17,15 @@ const extensionLabelStyles = css`
|
|
|
17
17
|
opacity: 1;
|
|
18
18
|
box-shadow: none;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
// Targets the icon for bodied macro styling in button label
|
|
22
|
+
&.danger > span > div > .extension-label > span {
|
|
23
|
+
display: inline;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:not(.danger).${akEditorSelectedNodeClassName} > span > div .extension-label > span {
|
|
27
|
+
display: inline;
|
|
28
|
+
}
|
|
20
29
|
`;
|
|
21
30
|
const dangerOverlayStyles = css({
|
|
22
31
|
opacity: 0.3,
|
|
@@ -7,8 +7,8 @@ import { PureComponent } from 'react';
|
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import ReactDOM from 'react-dom';
|
|
10
|
-
import Button from '@atlaskit/button';
|
|
11
10
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
11
|
+
import Button from '@atlaskit/button/new';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.30.
|
|
2
|
+
export const version = "193.30.9";
|
|
@@ -15,8 +15,8 @@ import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'reac
|
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
17
|
import { injectIntl } from 'react-intl-next';
|
|
18
|
-
import Button from '@atlaskit/button';
|
|
19
18
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
19
|
+
import Button from '@atlaskit/button/new';
|
|
20
20
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
21
21
|
import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
|
|
22
22
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
@@ -5,7 +5,7 @@ import { css } from '@emotion/react';
|
|
|
5
5
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { B400, B50, R400, R50 } from '@atlaskit/theme/colors';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
8
|
-
var extensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t&.danger > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t&:not(.danger).", " > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n"])), "var(--ds-background-accent-red-subtler, ".concat(R50, ")"), "var(--ds-text-danger, ".concat(R400, ")"), akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-text-selected, ".concat(B400, ")"));
|
|
8
|
+
var extensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t&.danger > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t&:not(.danger).", " > span > div > .extension-label {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\topacity: 1;\n\t\tbox-shadow: none;\n\t}\n\n\t// Targets the icon for bodied macro styling in button label\n\t&.danger > span > div > .extension-label > span {\n\t\tdisplay: inline;\n\t}\n\n\t&:not(.danger).", " > span > div .extension-label > span {\n\t\tdisplay: inline;\n\t}\n"])), "var(--ds-background-accent-red-subtler, ".concat(R50, ")"), "var(--ds-text-danger, ".concat(R400, ")"), akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-text-selected, ".concat(B400, ")"), akEditorSelectedNodeClassName);
|
|
9
9
|
var dangerOverlayStyles = css({
|
|
10
10
|
opacity: 0.3,
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -19,8 +19,8 @@ import { PureComponent } from 'react';
|
|
|
19
19
|
import { jsx } from '@emotion/react';
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import ReactDOM from 'react-dom';
|
|
22
|
-
import Button from '@atlaskit/button';
|
|
23
22
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
23
|
+
import Button from '@atlaskit/button/new';
|
|
24
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
25
25
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
26
26
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.30.
|
|
2
|
+
export var version = "193.30.9";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.30.
|
|
3
|
+
"version": "193.30.9",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
43
|
-
"@atlaskit/adf-schema": "^
|
|
43
|
+
"@atlaskit/adf-schema": "^39.0.3",
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^18.0.0",
|
|
48
|
-
"@atlaskit/editor-common": "^83.
|
|
48
|
+
"@atlaskit/editor-common": "^83.5.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
86
|
"@atlaskit/adf-utils": "^19.4.0",
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
88
|
-
"@atlaskit/collab-provider": "9.32.
|
|
88
|
+
"@atlaskit/collab-provider": "9.32.2",
|
|
89
89
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
90
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
90
|
+
"@atlaskit/editor-plugin-annotation": "1.14.0",
|
|
91
91
|
"@atlaskit/editor-plugin-card": "^2.3.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.5.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.16.0",
|
|
110
|
-
"@atlassian/search-provider": "2.4.
|
|
110
|
+
"@atlassian/search-provider": "2.4.88",
|
|
111
111
|
"@emotion/jest": "^11.8.0",
|
|
112
112
|
"@storybook/addon-knobs": "^5.3.18",
|
|
113
113
|
"@testing-library/react": "^12.1.5",
|
|
@@ -357,6 +357,10 @@
|
|
|
357
357
|
"platform.editor.review-text-highlighting-styling": {
|
|
358
358
|
"type": "boolean",
|
|
359
359
|
"referenceOnly": "true"
|
|
360
|
+
},
|
|
361
|
+
"platform.editor.linking-preferences-url-atlassian-context": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"referenceOnly": true
|
|
360
364
|
}
|
|
361
365
|
},
|
|
362
366
|
"stricter": {
|