@atlaskit/editor-core 193.27.19 → 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 CHANGED
@@ -1,5 +1,26 @@
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
+
12
+ ## 193.28.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
17
+ [`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
18
+ Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 193.27.19
4
25
 
5
26
  ### Patch 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)(_customThemeButton.default, {
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)(_customThemeButton.default, {
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)(_customThemeButton.default, {
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)(_customThemeButton.default, {
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)(_customThemeButton.default, {
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)(_customThemeButton.default, {
199
+ }, "Give feedback"), (0, _react2.jsx)(_button.default, {
200
200
  appearance: "default",
201
201
  onClick: this.openLearnMorePage
202
202
  }, "Learn more")))))) : null;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "193.27.19";
8
+ var version = exports.version = "193.28.4";
@@ -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.27.19";
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.27.19";
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: AnalyticsErrorBoundaryErrorInfo): void;
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: AnalyticsErrorBoundaryErrorInfo): void;
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.27.19",
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/"
@@ -40,13 +40,13 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/activity-provider": "^2.4.0",
43
- "@atlaskit/adf-schema": "^36.10.7",
43
+ "@atlaskit/adf-schema": "^37.0.0",
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": "^82.11.0",
49
- "@atlaskit/editor-json-transformer": "^8.13.0",
48
+ "@atlaskit/editor-common": "^82.14.0",
49
+ "@atlaskit/editor-json-transformer": "^8.14.0",
50
50
  "@atlaskit/editor-plugins": "^3.3.0",
51
51
  "@atlaskit/editor-prosemirror": "4.0.1",
52
52
  "@atlaskit/editor-shared-styles": "^2.12.0",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/spinner": "^16.2.0",
59
59
  "@atlaskit/task-decision": "^17.10.0",
60
60
  "@atlaskit/theme": "^12.11.0",
61
- "@atlaskit/tokens": "^1.52.0",
61
+ "@atlaskit/tokens": "^1.53.0",
62
62
  "@atlaskit/tooltip": "^18.5.0",
63
63
  "@atlaskit/width-detector": "^4.2.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -81,17 +81,17 @@
81
81
  "react-intl-next": "npm:react-intl@^5.18.1"
82
82
  },
83
83
  "devDependencies": {
84
- "@af/editor-examples-helpers": "0.0.6",
84
+ "@af/editor-examples-helpers": "0.0.8",
85
85
  "@af/editor-libra": "*",
86
86
  "@af/visual-regression": "*",
87
- "@atlaskit/adf-utils": "^19.2.0",
87
+ "@atlaskit/adf-utils": "^19.3.0",
88
88
  "@atlaskit/analytics-listeners": "^8.10.0",
89
- "@atlaskit/collab-provider": "9.29.3",
90
- "@atlaskit/editor-plugin-annotation": "1.11.0",
91
- "@atlaskit/editor-plugin-card": "^2.0.0",
89
+ "@atlaskit/collab-provider": "9.30.0",
90
+ "@atlaskit/editor-plugin-annotation": "1.12.0",
91
+ "@atlaskit/editor-plugin-card": "^2.1.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
93
- "@atlaskit/editor-plugin-list": "^3.3.0",
94
- "@atlaskit/editor-plugin-paste": "^1.2.0",
93
+ "@atlaskit/editor-plugin-list": "^3.4.0",
94
+ "@atlaskit/editor-plugin-paste": "^1.3.0",
95
95
  "@atlaskit/editor-test-helpers": "*",
96
96
  "@atlaskit/link-provider": "^1.11.0",
97
97
  "@atlaskit/logo": "^14.1.0",
@@ -99,15 +99,15 @@
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.0.0",
103
- "@atlaskit/renderer": "^109.33.0",
104
- "@atlaskit/smart-card": "^27.6.0",
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",
108
108
  "@atlaskit/visual-regression": "*",
109
- "@atlassian/adf-schema-json": "^1.14.0",
110
- "@atlassian/search-provider": "2.4.84",
109
+ "@atlassian/adf-schema-json": "^1.16.0",
110
+ "@atlassian/search-provider": "2.4.85",
111
111
  "@emotion/jest": "^11.8.0",
112
112
  "@storybook/addon-knobs": "^5.3.18",
113
113
  "@testing-library/react": "^12.1.5",
@@ -308,10 +308,6 @@
308
308
  "type": "boolean",
309
309
  "referenceOnly": true
310
310
  },
311
- "platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
312
- "type": "boolean",
313
- "referenceOnly": true
314
- },
315
311
  "platform.editor.live-view.no-editor-selection-in-view-mode": {
316
312
  "type": "boolean"
317
313
  },