@atlaskit/editor-core 193.28.0 → 193.28.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 +9 -0
- package/afm-jira/tsconfig.json +85 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -5
- package/dist/cjs/ui/ToolbarFeedback/index.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +2 -5
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +2 -5
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.28.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#114683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114683)
|
|
8
|
+
[`ff0815316ab38`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff0815316ab38) -
|
|
9
|
+
Removes usage of custom theme button in places where its API is not being used and the default
|
|
10
|
+
button is able to be used instead. This should give a slight performance (runtime) improvement.
|
|
11
|
+
|
|
3
12
|
## 193.28.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-core/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/stories/*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../activity-provider/afm-jira/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../editor-plugins/afm-jira/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-shared-styles/afm-jira/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../../elements/emoji/afm-jira/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../../media/media-card/afm-jira/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../../elements/mention/afm-jira/tsconfig.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "../../../elements/task-decision/afm-jira/tsconfig.json"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../../../linking-platform/link-provider/afm-jira/tsconfig.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "../../../media/media-core/afm-jira/tsconfig.json"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -134,7 +134,7 @@ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PUR
|
|
|
134
134
|
browserInfo: attributes.browserInfo,
|
|
135
135
|
error: attributes.error.toString(),
|
|
136
136
|
errorInfo: {
|
|
137
|
-
componentStack: attributes.errorInfo.componentStack
|
|
137
|
+
componentStack: attributes.errorInfo.componentStack || undefined
|
|
138
138
|
},
|
|
139
139
|
errorId: attributes.errorId,
|
|
140
140
|
browserExtensions: (_attributes$browserEx = attributes.browserExtensions) === null || _attributes$browserEx === void 0 ? void 0 : _attributes$browserEx.toString(),
|
|
@@ -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"));
|
|
21
22
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
22
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
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)(_button.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)(_button.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)(_button.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)(_button.default, {
|
|
444
444
|
appearance: "subtle",
|
|
445
445
|
onClick: handleCancel,
|
|
446
446
|
isDisabled: disabled
|
|
@@ -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"));
|
|
22
23
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
23
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
24
24
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
25
25
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
26
26
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -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)(_button.default, {
|
|
197
197
|
appearance: "primary",
|
|
198
198
|
onClick: this.openFeedbackPopup
|
|
199
|
-
}, "Give feedback"), (0, _react2.jsx)(
|
|
199
|
+
}, "Give feedback"), (0, _react2.jsx)(_button.default, {
|
|
200
200
|
appearance: "default",
|
|
201
201
|
onClick: this.openLearnMorePage
|
|
202
202
|
}, "Learn more")))))) : null;
|
|
@@ -85,7 +85,7 @@ export class ErrorBoundaryWithEditorView extends React.Component {
|
|
|
85
85
|
browserInfo: attributes.browserInfo,
|
|
86
86
|
error: attributes.error.toString(),
|
|
87
87
|
errorInfo: {
|
|
88
|
-
componentStack: attributes.errorInfo.componentStack
|
|
88
|
+
componentStack: attributes.errorInfo.componentStack || undefined
|
|
89
89
|
},
|
|
90
90
|
errorId: attributes.errorId,
|
|
91
91
|
browserExtensions: (_attributes$browserEx = attributes.browserExtensions) === null || _attributes$browserEx === void 0 ? void 0 : _attributes$browserEx.toString(),
|
|
@@ -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';
|
|
9
10
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
10
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
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';
|
|
@@ -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';
|
|
10
11
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
11
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
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 { analyticsEventKey } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.28.
|
|
2
|
+
export const version = "193.28.4";
|
|
@@ -127,7 +127,7 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
|
|
|
127
127
|
browserInfo: attributes.browserInfo,
|
|
128
128
|
error: attributes.error.toString(),
|
|
129
129
|
errorInfo: {
|
|
130
|
-
componentStack: attributes.errorInfo.componentStack
|
|
130
|
+
componentStack: attributes.errorInfo.componentStack || undefined
|
|
131
131
|
},
|
|
132
132
|
errorId: attributes.errorId,
|
|
133
133
|
browserExtensions: (_attributes$browserEx = attributes.browserExtensions) === null || _attributes$browserEx === void 0 ? void 0 : _attributes$browserEx.toString(),
|
|
@@ -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';
|
|
18
19
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
19
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
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';
|
|
@@ -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';
|
|
22
23
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
23
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
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 { analyticsEventKey } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.28.
|
|
2
|
+
export var version = "193.28.4";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ErrorInfo } from 'react';
|
|
2
2
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
@@ -17,9 +17,6 @@ export type ErrorBoundaryProps = {
|
|
|
17
17
|
export type ErrorBoundaryState = {
|
|
18
18
|
error?: Error;
|
|
19
19
|
};
|
|
20
|
-
type AnalyticsErrorBoundaryErrorInfo = {
|
|
21
|
-
componentStack: string;
|
|
22
|
-
};
|
|
23
20
|
export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
24
21
|
featureFlags: FeatureFlags;
|
|
25
22
|
browserExtensions?: UserBrowserExtensionResults;
|
|
@@ -36,7 +33,7 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
|
|
|
36
33
|
private getProductName;
|
|
37
34
|
private fireAnalyticsEvent;
|
|
38
35
|
private getExperienceMetadata;
|
|
39
|
-
componentDidCatch(error: Error, errorInfo:
|
|
36
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
40
37
|
componentDidMount(): Promise<void>;
|
|
41
38
|
render(): JSX.Element;
|
|
42
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ErrorInfo } from 'react';
|
|
2
2
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
@@ -17,9 +17,6 @@ export type ErrorBoundaryProps = {
|
|
|
17
17
|
export type ErrorBoundaryState = {
|
|
18
18
|
error?: Error;
|
|
19
19
|
};
|
|
20
|
-
type AnalyticsErrorBoundaryErrorInfo = {
|
|
21
|
-
componentStack: string;
|
|
22
|
-
};
|
|
23
20
|
export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
24
21
|
featureFlags: FeatureFlags;
|
|
25
22
|
browserExtensions?: UserBrowserExtensionResults;
|
|
@@ -36,7 +33,7 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
|
|
|
36
33
|
private getProductName;
|
|
37
34
|
private fireAnalyticsEvent;
|
|
38
35
|
private getExperienceMetadata;
|
|
39
|
-
componentDidCatch(error: Error, errorInfo:
|
|
36
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
40
37
|
componentDidMount(): Promise<void>;
|
|
41
38
|
render(): JSX.Element;
|
|
42
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.28.
|
|
3
|
+
"version": "193.28.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
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": "^82.
|
|
48
|
+
"@atlaskit/editor-common": "^82.14.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.14.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^3.3.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@af/editor-examples-helpers": "0.0.
|
|
84
|
+
"@af/editor-examples-helpers": "0.0.8",
|
|
85
85
|
"@af/editor-libra": "*",
|
|
86
86
|
"@af/visual-regression": "*",
|
|
87
87
|
"@atlaskit/adf-utils": "^19.3.0",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
102
|
-
"@atlaskit/primitives": "^8.
|
|
103
|
-
"@atlaskit/renderer": "^109.
|
|
104
|
-
"@atlaskit/smart-card": "^27.
|
|
102
|
+
"@atlaskit/primitives": "^8.2.0",
|
|
103
|
+
"@atlaskit/renderer": "^109.36.0",
|
|
104
|
+
"@atlaskit/smart-card": "^27.7.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.4.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.2.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|