@atlaskit/editor-plugin-extension 5.0.11 → 5.1.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 +12 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +1 -0
- package/dist/cjs/ui/ConfigPanel/DescriptionSummary.js +5 -1
- package/dist/cjs/ui/ConfigPanel/Header.js +5 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +1 -0
- package/dist/es2019/ui/ConfigPanel/DescriptionSummary.js +5 -1
- package/dist/es2019/ui/ConfigPanel/Header.js +5 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -0
- package/dist/esm/ui/ConfigPanel/DescriptionSummary.js +5 -1
- package/dist/esm/ui/ConfigPanel/Header.js +5 -1
- package/dist/types/ui/ConfigPanel/Header.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +2 -0
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#131974](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131974)
|
|
8
|
+
[`b09c9ea34848f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b09c9ea34848f) -
|
|
9
|
+
[PGXT-7297] Add support for deprecation status to extension manifest
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 5.0.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -296,6 +296,7 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
296
296
|
icon: extensionManifest.icons['48'],
|
|
297
297
|
title: extensionManifest.title,
|
|
298
298
|
description: extensionManifest.description,
|
|
299
|
+
deprecation: extensionManifest.deprecation,
|
|
299
300
|
summary: extensionManifest.summary,
|
|
300
301
|
documentationUrl: extensionManifest.documentationUrl,
|
|
301
302
|
onClose: onCancel,
|
|
@@ -8,6 +8,7 @@ exports.DescriptionSummary = DescriptionSummary;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _HelpLink = require("./HelpLink");
|
|
13
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -23,6 +24,7 @@ function DescriptionSummary(_ref) {
|
|
|
23
24
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
24
25
|
formatMessage = _useIntl.formatMessage;
|
|
25
26
|
var description = extensionManifest.description,
|
|
27
|
+
deprecation = extensionManifest.deprecation,
|
|
26
28
|
documentationUrl = extensionManifest.documentationUrl;
|
|
27
29
|
// Use a temporary allowlist of top 3 macros to test out a new "Documentation" CTA ("Need help?")
|
|
28
30
|
// This will be removed when Top 5 Modernized Macros updates are rolled out
|
|
@@ -36,7 +38,9 @@ function DescriptionSummary(_ref) {
|
|
|
36
38
|
}, description && /*#__PURE__*/_react.default.createElement(_react.Fragment, null,
|
|
37
39
|
// Ignored via go/ees005
|
|
38
40
|
// eslint-disable-next-line require-unicode-regexp
|
|
39
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
41
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && (0, _platformFeatureFlags.fg)('platform_editor_extension_deprecation_status') && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
42
|
+
paddingBlockStart: "space.150"
|
|
43
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
40
44
|
xcss: helpLinkStyles
|
|
41
45
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
42
46
|
as: "p"
|
|
@@ -12,6 +12,7 @@ var _new = require("@atlaskit/button/new");
|
|
|
12
12
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
14
|
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _primitives = require("@atlaskit/primitives");
|
|
16
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
18
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -94,6 +95,7 @@ var Header = function Header(_ref) {
|
|
|
94
95
|
title = _ref.title,
|
|
95
96
|
description = _ref.description,
|
|
96
97
|
summary = _ref.summary,
|
|
98
|
+
deprecation = _ref.deprecation,
|
|
97
99
|
documentationUrl = _ref.documentationUrl,
|
|
98
100
|
enableHelpCTA = _ref.enableHelpCTA,
|
|
99
101
|
onClose = _ref.onClose,
|
|
@@ -149,7 +151,9 @@ var Header = function Header(_ref) {
|
|
|
149
151
|
}, description && (0, _react2.jsx)(_react.Fragment, null,
|
|
150
152
|
// Ignored via go/ees005
|
|
151
153
|
// eslint-disable-next-line require-unicode-regexp
|
|
152
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
154
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && (0, _platformFeatureFlags.fg)('platform_editor_extension_deprecation_status') && (0, _react2.jsx)(_primitives.Box, {
|
|
155
|
+
paddingBlockStart: "space.150"
|
|
156
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? (0, _react2.jsx)(_primitives.Box, {
|
|
153
157
|
xcss: helpLinkStyles
|
|
154
158
|
}, (0, _react2.jsx)(_primitives.Text, {
|
|
155
159
|
as: "p"
|
|
@@ -240,6 +240,7 @@ class ConfigPanel extends React.Component {
|
|
|
240
240
|
icon: extensionManifest.icons['48'],
|
|
241
241
|
title: extensionManifest.title,
|
|
242
242
|
description: extensionManifest.description,
|
|
243
|
+
deprecation: extensionManifest.deprecation,
|
|
243
244
|
summary: extensionManifest.summary,
|
|
244
245
|
documentationUrl: extensionManifest.documentationUrl,
|
|
245
246
|
onClose: onCancel,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import { HelpLink } from './HelpLink';
|
|
6
7
|
const descriptionStyles = xcss({
|
|
@@ -17,6 +18,7 @@ export function DescriptionSummary({
|
|
|
17
18
|
} = useIntl();
|
|
18
19
|
const {
|
|
19
20
|
description,
|
|
21
|
+
deprecation,
|
|
20
22
|
documentationUrl
|
|
21
23
|
} = extensionManifest;
|
|
22
24
|
// Use a temporary allowlist of top 3 macros to test out a new "Documentation" CTA ("Need help?")
|
|
@@ -31,7 +33,9 @@ export function DescriptionSummary({
|
|
|
31
33
|
}, description && /*#__PURE__*/React.createElement(Fragment, null,
|
|
32
34
|
// Ignored via go/ees005
|
|
33
35
|
// eslint-disable-next-line require-unicode-regexp
|
|
34
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
36
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && fg('platform_editor_extension_deprecation_status') && /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
paddingBlockStart: "space.150"
|
|
38
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/React.createElement(Box, {
|
|
35
39
|
xcss: helpLinkStyles
|
|
36
40
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
37
41
|
as: "p"
|
|
@@ -11,6 +11,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
11
11
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
12
12
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
15
16
|
import { N200 } from '@atlaskit/theme/colors';
|
|
16
17
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -86,6 +87,7 @@ const Header = ({
|
|
|
86
87
|
title,
|
|
87
88
|
description,
|
|
88
89
|
summary,
|
|
90
|
+
deprecation,
|
|
89
91
|
documentationUrl,
|
|
90
92
|
enableHelpCTA,
|
|
91
93
|
onClose,
|
|
@@ -140,7 +142,9 @@ const Header = ({
|
|
|
140
142
|
}, description && jsx(Fragment, null,
|
|
141
143
|
// Ignored via go/ees005
|
|
142
144
|
// eslint-disable-next-line require-unicode-regexp
|
|
143
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
145
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && fg('platform_editor_extension_deprecation_status') && jsx(Box, {
|
|
146
|
+
paddingBlockStart: "space.150"
|
|
147
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? jsx(Box, {
|
|
144
148
|
xcss: helpLinkStyles
|
|
145
149
|
}, jsx(Text, {
|
|
146
150
|
as: "p"
|
|
@@ -286,6 +286,7 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
286
286
|
icon: extensionManifest.icons['48'],
|
|
287
287
|
title: extensionManifest.title,
|
|
288
288
|
description: extensionManifest.description,
|
|
289
|
+
deprecation: extensionManifest.deprecation,
|
|
289
290
|
summary: extensionManifest.summary,
|
|
290
291
|
documentationUrl: extensionManifest.documentationUrl,
|
|
291
292
|
onClose: onCancel,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import { HelpLink } from './HelpLink';
|
|
6
7
|
var descriptionStyles = xcss({
|
|
@@ -14,6 +15,7 @@ export function DescriptionSummary(_ref) {
|
|
|
14
15
|
var _useIntl = useIntl(),
|
|
15
16
|
formatMessage = _useIntl.formatMessage;
|
|
16
17
|
var description = extensionManifest.description,
|
|
18
|
+
deprecation = extensionManifest.deprecation,
|
|
17
19
|
documentationUrl = extensionManifest.documentationUrl;
|
|
18
20
|
// Use a temporary allowlist of top 3 macros to test out a new "Documentation" CTA ("Need help?")
|
|
19
21
|
// This will be removed when Top 5 Modernized Macros updates are rolled out
|
|
@@ -27,7 +29,9 @@ export function DescriptionSummary(_ref) {
|
|
|
27
29
|
}, description && /*#__PURE__*/React.createElement(Fragment, null,
|
|
28
30
|
// Ignored via go/ees005
|
|
29
31
|
// eslint-disable-next-line require-unicode-regexp
|
|
30
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
32
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && fg('platform_editor_extension_deprecation_status') && /*#__PURE__*/React.createElement(Box, {
|
|
33
|
+
paddingBlockStart: "space.150"
|
|
34
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/React.createElement(Box, {
|
|
31
35
|
xcss: helpLinkStyles
|
|
32
36
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
33
37
|
as: "p"
|
|
@@ -11,6 +11,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
11
11
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
12
12
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
15
16
|
import { N200 } from '@atlaskit/theme/colors';
|
|
16
17
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -86,6 +87,7 @@ var Header = function Header(_ref) {
|
|
|
86
87
|
title = _ref.title,
|
|
87
88
|
description = _ref.description,
|
|
88
89
|
summary = _ref.summary,
|
|
90
|
+
deprecation = _ref.deprecation,
|
|
89
91
|
documentationUrl = _ref.documentationUrl,
|
|
90
92
|
enableHelpCTA = _ref.enableHelpCTA,
|
|
91
93
|
onClose = _ref.onClose,
|
|
@@ -141,7 +143,9 @@ var Header = function Header(_ref) {
|
|
|
141
143
|
}, description && jsx(Fragment, null,
|
|
142
144
|
// Ignored via go/ees005
|
|
143
145
|
// eslint-disable-next-line require-unicode-regexp
|
|
144
|
-
description.replace(/([^.])$/, '$1.'), ' '),
|
|
146
|
+
description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && fg('platform_editor_extension_deprecation_status') && jsx(Box, {
|
|
147
|
+
paddingBlockStart: "space.150"
|
|
148
|
+
}, deprecation.message), documentationUrl && (enableHelpCTA ? jsx(Box, {
|
|
145
149
|
xcss: helpLinkStyles
|
|
146
150
|
}, jsx(Text, {
|
|
147
151
|
as: "p"
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { Icon } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import { type ExtensionDeprecationStatus } from '@atlaskit/editor-common/extensions';
|
|
4
5
|
type Props = {
|
|
5
6
|
title: string;
|
|
6
7
|
description?: string;
|
|
7
8
|
summary?: string;
|
|
9
|
+
deprecation?: ExtensionDeprecationStatus;
|
|
8
10
|
documentationUrl?: string;
|
|
9
11
|
enableHelpCTA?: boolean;
|
|
10
12
|
icon: Icon;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { Icon } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import { type ExtensionDeprecationStatus } from '@atlaskit/editor-common/extensions';
|
|
4
5
|
type Props = {
|
|
5
6
|
title: string;
|
|
6
7
|
description?: string;
|
|
7
8
|
summary?: string;
|
|
9
|
+
deprecation?: ExtensionDeprecationStatus;
|
|
8
10
|
documentationUrl?: string;
|
|
9
11
|
enableHelpCTA?: boolean;
|
|
10
12
|
icon: Icon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/button": "^22.0.0",
|
|
33
33
|
"@atlaskit/checkbox": "^17.0.0",
|
|
34
34
|
"@atlaskit/datetime-picker": "^16.2.0",
|
|
35
|
-
"@atlaskit/editor-common": "^102.
|
|
35
|
+
"@atlaskit/editor-common": "^102.15.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-context-identifier": "^2.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/empty-state": "^9.0.0",
|
|
47
47
|
"@atlaskit/form": "^12.0.0",
|
|
48
48
|
"@atlaskit/heading": "^5.1.0",
|
|
49
|
-
"@atlaskit/icon": "^25.
|
|
49
|
+
"@atlaskit/icon": "^25.3.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.2.0",
|
|
52
52
|
"@atlaskit/radio": "^8.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/textfield": "^8.0.0",
|
|
60
60
|
"@atlaskit/theme": "^18.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^4.5.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^4.5.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.0.0",
|
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
},
|
|
118
118
|
"platform_editor_ai_object_sidebar_injection": {
|
|
119
119
|
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"platform_editor_extension_deprecation_status": {
|
|
122
|
+
"type": "boolean"
|
|
120
123
|
}
|
|
121
124
|
},
|
|
122
125
|
"stricter": {
|