@atlaskit/editor-plugin-extension 9.2.11 → 9.2.13
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 +14 -0
- package/dist/cjs/pm-plugins/toolbar.js +3 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +2 -2
- package/dist/cjs/ui/SaveIndicator/SaveIndicator.js +3 -3
- package/dist/es2019/pm-plugins/toolbar.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -1
- package/dist/es2019/ui/SaveIndicator/SaveIndicator.js +2 -2
- package/dist/esm/pm-plugins/toolbar.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -1
- package/dist/esm/ui/SaveIndicator/SaveIndicator.js +2 -2
- package/dist/types/ui/ConfigPanel/DescriptionSummary.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/DescriptionSummary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
- package/example-utils/config-panel/ConfigPanelWithProviders.tsx +1 -1
- package/example-utils/config-panel/ExtensionNodePicker.tsx +1 -1
- package/example-utils/config-panel/FieldTypePicker.tsx +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 9.2.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
8
|
+
Icon entrypoint migration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.2.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.2.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,8 +17,8 @@ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
|
17
17
|
var _contentWidthNarrow = _interopRequireDefault(require("@atlaskit/icon/core/content-width-narrow"));
|
|
18
18
|
var _contentWidthWide = _interopRequireDefault(require("@atlaskit/icon/core/content-width-wide"));
|
|
19
19
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
20
|
+
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
20
21
|
var _expandHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/expand-horizontal"));
|
|
21
|
-
var _editEditorEdit = _interopRequireDefault(require("@atlaskit/icon/core/migration/edit--editor-edit"));
|
|
22
22
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
23
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
24
|
var _actions = require("../editor-actions/actions");
|
|
@@ -192,8 +192,8 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
|
|
|
192
192
|
var editButtonItems = [{
|
|
193
193
|
id: 'editor.extension.edit',
|
|
194
194
|
type: 'button',
|
|
195
|
-
icon:
|
|
196
|
-
iconFallback:
|
|
195
|
+
icon: _edit.default,
|
|
196
|
+
iconFallback: _edit.default,
|
|
197
197
|
testId: 'extension-toolbar-edit-button',
|
|
198
198
|
// Taking the latest `updateExtension` from plugin state to avoid race condition @see ED-8501
|
|
199
199
|
onClick: function onClick(state, dispatch, view) {
|
|
@@ -21,7 +21,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
21
21
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
22
22
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
23
23
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
24
|
-
var
|
|
24
|
+
var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
|
|
25
25
|
var _primitives = require("@atlaskit/primitives");
|
|
26
26
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
27
27
|
var _select = _interopRequireDefault(require("@atlaskit/select"));
|
|
@@ -204,7 +204,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
204
204
|
testId: "add-more",
|
|
205
205
|
appearance: "subtle",
|
|
206
206
|
iconBefore: function iconBefore(iconProps) {
|
|
207
|
-
return (0, _react2.jsx)(
|
|
207
|
+
return (0, _react2.jsx)(_add.default
|
|
208
208
|
// Ignored via go/ees005
|
|
209
209
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
210
210
|
, (0, _extends2.default)({}, iconProps, {
|
|
@@ -10,7 +10,7 @@ var _react = require("react");
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
13
|
-
var
|
|
13
|
+
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
16
|
/**
|
|
@@ -38,7 +38,7 @@ var saveIndicatorContentStyles = (0, _react2.css)({
|
|
|
38
38
|
background: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
39
39
|
/* E300 */
|
|
40
40
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)", ")"),
|
|
41
|
-
borderRadius:
|
|
41
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)"
|
|
42
42
|
});
|
|
43
43
|
var saveIndicatorTextStyles = (0, _primitives.xcss)({
|
|
44
44
|
paddingLeft: 'space.075'
|
|
@@ -77,7 +77,7 @@ var SaveIndicator = exports.SaveIndicator = function SaveIndicator(_ref) {
|
|
|
77
77
|
}, (0, _react2.jsx)("div", {
|
|
78
78
|
css: saveIndicatorContentStyles,
|
|
79
79
|
"data-testid": "save-indicator-content"
|
|
80
|
-
}, (0, _react2.jsx)(
|
|
80
|
+
}, (0, _react2.jsx)(_statusSuccess.default, {
|
|
81
81
|
label: "Saving",
|
|
82
82
|
color: "var(--ds-icon-success, ".concat(_colors.G300, ")"),
|
|
83
83
|
LEGACY_size: "small",
|
|
@@ -9,8 +9,8 @@ import { findParentNodeOfType, hasParentNodeOfType } from '@atlaskit/editor-pros
|
|
|
9
9
|
import ContentWidthNarrowIcon from '@atlaskit/icon/core/content-width-narrow';
|
|
10
10
|
import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
11
11
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
12
|
+
import EditIcon from '@atlaskit/icon/core/edit';
|
|
12
13
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
13
|
-
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
16
|
import { editExtension } from '../editor-actions/actions';
|
|
@@ -12,7 +12,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
12
12
|
import Button from '@atlaskit/button/new';
|
|
13
13
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
14
14
|
import Heading from '@atlaskit/heading';
|
|
15
|
-
import AddCircleIcon from '@atlaskit/icon/core/
|
|
15
|
+
import AddCircleIcon from '@atlaskit/icon/core/add';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
17
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
18
18
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -8,7 +8,7 @@ import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
11
|
-
import CheckCircleIcon from '@atlaskit/icon/core/
|
|
11
|
+
import CheckCircleIcon from '@atlaskit/icon/core/status-success';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
13
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
14
14
|
import { G300, N0 } from '@atlaskit/theme/colors';
|
|
@@ -28,7 +28,7 @@ const saveIndicatorContentStyles = css({
|
|
|
28
28
|
background: `var(--ds-surface-overlay, ${N0})`,
|
|
29
29
|
/* E300 */
|
|
30
30
|
boxShadow: `var(--ds-shadow-overlay, ${`0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)`})`,
|
|
31
|
-
borderRadius:
|
|
31
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)"
|
|
32
32
|
});
|
|
33
33
|
const saveIndicatorTextStyles = xcss({
|
|
34
34
|
paddingLeft: 'space.075'
|
|
@@ -10,8 +10,8 @@ import { findParentNodeOfType, hasParentNodeOfType } from '@atlaskit/editor-pros
|
|
|
10
10
|
import ContentWidthNarrowIcon from '@atlaskit/icon/core/content-width-narrow';
|
|
11
11
|
import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
12
12
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
13
|
+
import EditIcon from '@atlaskit/icon/core/edit';
|
|
13
14
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
14
|
-
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
17
|
import { editExtension } from '../editor-actions/actions';
|
|
@@ -23,7 +23,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
23
23
|
import Button from '@atlaskit/button/new';
|
|
24
24
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
25
25
|
import Heading from '@atlaskit/heading';
|
|
26
|
-
import AddCircleIcon from '@atlaskit/icon/core/
|
|
26
|
+
import AddCircleIcon from '@atlaskit/icon/core/add';
|
|
27
27
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
28
28
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
29
29
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -9,7 +9,7 @@ import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
12
|
-
import CheckCircleIcon from '@atlaskit/icon/core/
|
|
12
|
+
import CheckCircleIcon from '@atlaskit/icon/core/status-success';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { G300, N0 } from '@atlaskit/theme/colors';
|
|
@@ -29,7 +29,7 @@ var saveIndicatorContentStyles = css({
|
|
|
29
29
|
background: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
30
30
|
/* E300 */
|
|
31
31
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)", ")"),
|
|
32
|
-
borderRadius:
|
|
32
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)"
|
|
33
33
|
});
|
|
34
34
|
var saveIndicatorTextStyles = xcss({
|
|
35
35
|
paddingLeft: 'space.075'
|
|
@@ -3,5 +3,5 @@ import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
|
|
|
3
3
|
type DescriptionSummaryProps = {
|
|
4
4
|
extensionManifest: ExtensionManifest;
|
|
5
5
|
};
|
|
6
|
-
export declare function DescriptionSummary({ extensionManifest }: DescriptionSummaryProps): React.JSX.Element;
|
|
6
|
+
export declare function DescriptionSummary({ extensionManifest, }: DescriptionSummaryProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export default function ({ errorMessage }: {
|
|
3
|
+
export default function ({ errorMessage, }: {
|
|
4
4
|
errorMessage: string;
|
|
5
5
|
field: FieldDefinition;
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -3,5 +3,5 @@ import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
|
|
|
3
3
|
type DescriptionSummaryProps = {
|
|
4
4
|
extensionManifest: ExtensionManifest;
|
|
5
5
|
};
|
|
6
|
-
export declare function DescriptionSummary({ extensionManifest }: DescriptionSummaryProps): React.JSX.Element;
|
|
6
|
+
export declare function DescriptionSummary({ extensionManifest, }: DescriptionSummaryProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export default function ({ errorMessage }: {
|
|
3
|
+
export default function ({ errorMessage, }: {
|
|
4
4
|
errorMessage: string;
|
|
5
5
|
field: FieldDefinition;
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -25,7 +25,7 @@ export default function ConfigPanelWithProviders({
|
|
|
25
25
|
nodeKey: string;
|
|
26
26
|
onChange?: (parameters: Parameters) => void;
|
|
27
27
|
parameters: Parameters;
|
|
28
|
-
}) {
|
|
28
|
+
}): React.JSX.Element {
|
|
29
29
|
function _onChange(data: Parameters) {
|
|
30
30
|
if (onChange) {
|
|
31
31
|
onChange(data);
|
|
@@ -36,7 +36,7 @@ export default function ExtensionNodePicker({
|
|
|
36
36
|
onSelect: (nodeParams: CallbackParams) => void;
|
|
37
37
|
selectedExtension?: string;
|
|
38
38
|
selectedNode?: string;
|
|
39
|
-
}) {
|
|
39
|
+
}): React.JSX.Element {
|
|
40
40
|
const [hasSelection, setHasSelection] = useState<boolean>(false);
|
|
41
41
|
|
|
42
42
|
// AFP-2511 TODO: Fix automatic suppressions below
|
|
@@ -14,7 +14,7 @@ export default function ExtensionNodePicker({
|
|
|
14
14
|
fields: FieldDefinition[];
|
|
15
15
|
onSelect: (field: FieldDefinition) => void;
|
|
16
16
|
selectedField?: string;
|
|
17
|
-
}) {
|
|
17
|
+
}): React.JSX.Element {
|
|
18
18
|
const [hasSelection, setHasSelection] = useState<boolean>(false);
|
|
19
19
|
|
|
20
20
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.13",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
24
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
25
25
|
"@atlaskit/adf-utils": "^19.26.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
27
|
-
"@atlaskit/avatar": "^25.
|
|
28
|
-
"@atlaskit/button": "^23.
|
|
29
|
-
"@atlaskit/checkbox": "^17.
|
|
30
|
-
"@atlaskit/datetime-picker": "^17.
|
|
27
|
+
"@atlaskit/avatar": "^25.6.0",
|
|
28
|
+
"@atlaskit/button": "^23.7.0",
|
|
29
|
+
"@atlaskit/checkbox": "^17.2.0",
|
|
30
|
+
"@atlaskit/datetime-picker": "^17.2.0",
|
|
31
31
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
33
33
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
40
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
40
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
42
42
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
43
43
|
"@atlaskit/empty-state": "^10.1.0",
|
|
44
|
-
"@atlaskit/form": "^
|
|
44
|
+
"@atlaskit/form": "^15.0.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
|
-
"@atlaskit/icon": "^29.
|
|
46
|
+
"@atlaskit/icon": "^29.1.0",
|
|
47
47
|
"@atlaskit/link": "^3.2.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^16.4.0",
|
|
50
50
|
"@atlaskit/radio": "^8.3.0",
|
|
51
|
-
"@atlaskit/section-message": "^8.
|
|
52
|
-
"@atlaskit/select": "^21.
|
|
51
|
+
"@atlaskit/section-message": "^8.10.0",
|
|
52
|
+
"@atlaskit/select": "^21.5.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^8.5.0",
|
|
54
54
|
"@atlaskit/spinner": "^19.0.0",
|
|
55
|
-
"@atlaskit/tabs": "^18.
|
|
56
|
-
"@atlaskit/textarea": "^8.
|
|
57
|
-
"@atlaskit/textfield": "^8.
|
|
55
|
+
"@atlaskit/tabs": "^18.3.0",
|
|
56
|
+
"@atlaskit/textarea": "^8.2.0",
|
|
57
|
+
"@atlaskit/textfield": "^8.2.0",
|
|
58
58
|
"@atlaskit/theme": "^21.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
60
|
-
"@atlaskit/toggle": "^15.
|
|
61
|
-
"@atlaskit/tokens": "^8.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
60
|
+
"@atlaskit/toggle": "^15.2.0",
|
|
61
|
+
"@atlaskit/tokens": "^8.5.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.11.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^110.
|
|
73
|
+
"@atlaskit/editor-common": "^110.44.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
76
76
|
},
|