@atlaskit/editor-plugin-extension 3.1.2 → 3.1.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 +12 -0
- package/dist/cjs/ui/ConfigPanel/transformers.js +10 -10
- package/dist/esm/ui/ConfigPanel/transformers.js +11 -10
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +4 -5
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +5 -8
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +4 -6
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Header.d.ts +8 -15
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +8 -13
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +4 -5
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +5 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +4 -6
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +8 -15
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +8 -13
- package/package.json +29 -29
package/CHANGELOG.md
CHANGED
|
@@ -45,16 +45,16 @@ function extract(value, field, options) {
|
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
47
47
|
var findDuplicateFields = exports.findDuplicateFields = function findDuplicateFields(fields) {
|
|
48
|
-
return
|
|
48
|
+
return _findDuplicateFieldsInternal(flattenFields(fields));
|
|
49
49
|
};
|
|
50
|
-
var
|
|
50
|
+
var _findDuplicateFieldsInternal = function findDuplicateFieldsInternal(fields) {
|
|
51
51
|
var allowDuplicatesMap = {};
|
|
52
52
|
return fields.find(function (field) {
|
|
53
53
|
if ((0, _extensions.isExpand)(field)) {
|
|
54
|
-
return
|
|
54
|
+
return _findDuplicateFieldsInternal(field.fields);
|
|
55
55
|
} else if ((0, _extensions.isTabGroup)(field)) {
|
|
56
56
|
return field.fields.find(function (tabField) {
|
|
57
|
-
return
|
|
57
|
+
return _findDuplicateFieldsInternal(tabField.fields);
|
|
58
58
|
});
|
|
59
59
|
} else if (allowDuplicatesMap[field.name] === undefined) {
|
|
60
60
|
allowDuplicatesMap[field.name] = !!field.allowDuplicates;
|
|
@@ -455,7 +455,7 @@ function injectDefaultValues(data, fields) {
|
|
|
455
455
|
* structure in result Parameters.
|
|
456
456
|
*/
|
|
457
457
|
var flattenFields = function flattenFields(fields) {
|
|
458
|
-
var
|
|
458
|
+
var _flattenAccumulator = function flattenAccumulator(accumulator, field) {
|
|
459
459
|
if ((0, _extensions.isTabGroup)(field)) {
|
|
460
460
|
if (field.hasGroupedValues) {
|
|
461
461
|
accumulator.push(field);
|
|
@@ -463,7 +463,7 @@ var flattenFields = function flattenFields(fields) {
|
|
|
463
463
|
var flattenedTabs = field.fields.reduce(function (tabAccumulator, tab) {
|
|
464
464
|
return tabAccumulator.concat(tab.hasGroupedValues ?
|
|
465
465
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
466
|
-
tab : tab.fields.reduce(
|
|
466
|
+
tab : tab.fields.reduce(_flattenAccumulator, []));
|
|
467
467
|
}, []);
|
|
468
468
|
accumulator.push.apply(accumulator, (0, _toConsumableArray2.default)(flattenedTabs));
|
|
469
469
|
}
|
|
@@ -471,7 +471,7 @@ var flattenFields = function flattenFields(fields) {
|
|
|
471
471
|
if (field.hasGroupedValues) {
|
|
472
472
|
accumulator.push(field);
|
|
473
473
|
} else {
|
|
474
|
-
var flattenedExpand = field.fields.reduce(
|
|
474
|
+
var flattenedExpand = field.fields.reduce(_flattenAccumulator, []);
|
|
475
475
|
accumulator.push.apply(accumulator, (0, _toConsumableArray2.default)(flattenedExpand));
|
|
476
476
|
}
|
|
477
477
|
} else {
|
|
@@ -479,9 +479,9 @@ var flattenFields = function flattenFields(fields) {
|
|
|
479
479
|
}
|
|
480
480
|
return accumulator;
|
|
481
481
|
};
|
|
482
|
-
return fields.reduce(
|
|
482
|
+
return fields.reduce(_flattenAccumulator, []);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var _deserialize = exports.deserialize = /*#__PURE__*/function () {
|
|
485
485
|
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(manifest, data, fields) {
|
|
486
486
|
var depth,
|
|
487
487
|
dataArray,
|
|
@@ -549,7 +549,7 @@ var deserialize = exports.deserialize = /*#__PURE__*/function () {
|
|
|
549
549
|
return _context8.abrupt("return", 0);
|
|
550
550
|
case 21:
|
|
551
551
|
_context8.next = 23;
|
|
552
|
-
return
|
|
552
|
+
return _deserialize(manifest, value, field.fields, depth + 1);
|
|
553
553
|
case 23:
|
|
554
554
|
value = _context8.sent;
|
|
555
555
|
case 24:
|
|
@@ -38,16 +38,16 @@ function extract(value, field, options) {
|
|
|
38
38
|
return value;
|
|
39
39
|
}
|
|
40
40
|
export var findDuplicateFields = function findDuplicateFields(fields) {
|
|
41
|
-
return
|
|
41
|
+
return _findDuplicateFieldsInternal(flattenFields(fields));
|
|
42
42
|
};
|
|
43
|
-
var
|
|
43
|
+
var _findDuplicateFieldsInternal = function findDuplicateFieldsInternal(fields) {
|
|
44
44
|
var allowDuplicatesMap = {};
|
|
45
45
|
return fields.find(function (field) {
|
|
46
46
|
if (isExpand(field)) {
|
|
47
|
-
return
|
|
47
|
+
return _findDuplicateFieldsInternal(field.fields);
|
|
48
48
|
} else if (isTabGroup(field)) {
|
|
49
49
|
return field.fields.find(function (tabField) {
|
|
50
|
-
return
|
|
50
|
+
return _findDuplicateFieldsInternal(tabField.fields);
|
|
51
51
|
});
|
|
52
52
|
} else if (allowDuplicatesMap[field.name] === undefined) {
|
|
53
53
|
allowDuplicatesMap[field.name] = !!field.allowDuplicates;
|
|
@@ -448,7 +448,7 @@ function injectDefaultValues(data, fields) {
|
|
|
448
448
|
* structure in result Parameters.
|
|
449
449
|
*/
|
|
450
450
|
var flattenFields = function flattenFields(fields) {
|
|
451
|
-
var
|
|
451
|
+
var _flattenAccumulator = function flattenAccumulator(accumulator, field) {
|
|
452
452
|
if (isTabGroup(field)) {
|
|
453
453
|
if (field.hasGroupedValues) {
|
|
454
454
|
accumulator.push(field);
|
|
@@ -456,7 +456,7 @@ var flattenFields = function flattenFields(fields) {
|
|
|
456
456
|
var flattenedTabs = field.fields.reduce(function (tabAccumulator, tab) {
|
|
457
457
|
return tabAccumulator.concat(tab.hasGroupedValues ?
|
|
458
458
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
459
|
-
tab : tab.fields.reduce(
|
|
459
|
+
tab : tab.fields.reduce(_flattenAccumulator, []));
|
|
460
460
|
}, []);
|
|
461
461
|
accumulator.push.apply(accumulator, _toConsumableArray(flattenedTabs));
|
|
462
462
|
}
|
|
@@ -464,7 +464,7 @@ var flattenFields = function flattenFields(fields) {
|
|
|
464
464
|
if (field.hasGroupedValues) {
|
|
465
465
|
accumulator.push(field);
|
|
466
466
|
} else {
|
|
467
|
-
var flattenedExpand = field.fields.reduce(
|
|
467
|
+
var flattenedExpand = field.fields.reduce(_flattenAccumulator, []);
|
|
468
468
|
accumulator.push.apply(accumulator, _toConsumableArray(flattenedExpand));
|
|
469
469
|
}
|
|
470
470
|
} else {
|
|
@@ -472,9 +472,9 @@ var flattenFields = function flattenFields(fields) {
|
|
|
472
472
|
}
|
|
473
473
|
return accumulator;
|
|
474
474
|
};
|
|
475
|
-
return fields.reduce(
|
|
475
|
+
return fields.reduce(_flattenAccumulator, []);
|
|
476
476
|
};
|
|
477
|
-
|
|
477
|
+
var _deserialize = /*#__PURE__*/function () {
|
|
478
478
|
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(manifest, data, fields) {
|
|
479
479
|
var depth,
|
|
480
480
|
dataArray,
|
|
@@ -542,7 +542,7 @@ export var deserialize = /*#__PURE__*/function () {
|
|
|
542
542
|
return _context8.abrupt("return", 0);
|
|
543
543
|
case 21:
|
|
544
544
|
_context8.next = 23;
|
|
545
|
-
return
|
|
545
|
+
return _deserialize(manifest, value, field.fields, depth + 1);
|
|
546
546
|
case 23:
|
|
547
547
|
value = _context8.sent;
|
|
548
548
|
case 24:
|
|
@@ -597,6 +597,7 @@ export var deserialize = /*#__PURE__*/function () {
|
|
|
597
597
|
return _ref9.apply(this, arguments);
|
|
598
598
|
};
|
|
599
599
|
}();
|
|
600
|
+
export { _deserialize as deserialize };
|
|
600
601
|
var convertToParametersObject = function convertToParametersObject() {
|
|
601
602
|
var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
602
603
|
if (!Array.isArray(parameters)) {
|
|
@@ -3,7 +3,7 @@ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
|
-
declare const result: React.ForwardRefExoticComponent<
|
|
6
|
+
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
7
|
extensionManifest?: ExtensionManifest | undefined;
|
|
8
8
|
fields?: FieldDefinition[] | undefined;
|
|
9
9
|
parameters?: Parameters | undefined;
|
|
@@ -17,5 +17,5 @@ declare const result: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
featureFlags?: FeatureFlags | undefined;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
20
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
21
21
|
export default result;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
errorMessage: string;
|
|
5
|
-
} & WrappedComponentProps
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} & WrappedComponentProps>;
|
|
5
|
+
} & WrappedComponentProps;
|
|
6
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
7
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
9
8
|
};
|
|
10
9
|
export default _default;
|
|
@@ -5,15 +5,12 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
field: FieldDefinition;
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
isExpanded?: boolean
|
|
12
|
-
} & WrappedComponentProps
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
isExpanded?: boolean | undefined;
|
|
17
|
-
} & WrappedComponentProps>;
|
|
11
|
+
isExpanded?: boolean;
|
|
12
|
+
} & WrappedComponentProps;
|
|
13
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
14
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
18
15
|
};
|
|
19
16
|
export default _default;
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
field: TabGroupField;
|
|
10
10
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
11
|
-
} & WrappedComponentProps
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
renderPanel: (tabField: TabField) => JSX.Element;
|
|
15
|
-
} & WrappedComponentProps>;
|
|
11
|
+
} & WrappedComponentProps;
|
|
12
|
+
declare const TabGroup: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
16
14
|
};
|
|
17
15
|
export default TabGroup;
|
|
@@ -12,7 +12,7 @@ interface Props {
|
|
|
12
12
|
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
16
|
forwardedRef?: React.Ref<any> | undefined;
|
|
17
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
17
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,23 +1,16 @@
|
|
|
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
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
title: string;
|
|
6
|
-
description?: string
|
|
7
|
-
summary?: string
|
|
8
|
-
documentationUrl?: string
|
|
9
|
-
enableHelpCTA?: boolean
|
|
6
|
+
description?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
documentationUrl?: string;
|
|
9
|
+
enableHelpCTA?: boolean;
|
|
10
10
|
icon: Icon;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
} & WrappedComponentProps
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
summary?: string | undefined;
|
|
17
|
-
documentationUrl?: string | undefined;
|
|
18
|
-
enableHelpCTA?: boolean | undefined;
|
|
19
|
-
icon: Icon;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
} & WrappedComponentProps>;
|
|
12
|
+
} & WrappedComponentProps;
|
|
13
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
14
|
+
WrappedComponent: import("react").ComponentType<Props>;
|
|
22
15
|
};
|
|
23
16
|
export default _default;
|
|
@@ -4,19 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
|
|
7
|
+
type Props = {
|
|
8
8
|
name: string;
|
|
9
|
-
onClickRemove?: (
|
|
10
|
-
canRemoveField?: boolean
|
|
11
|
-
children: React.ReactElement
|
|
12
|
-
className?: string
|
|
13
|
-
} & WrappedComponentProps
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
17
|
-
canRemoveField?: boolean | undefined;
|
|
18
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
-
className?: string | undefined;
|
|
20
|
-
} & WrappedComponentProps>;
|
|
9
|
+
onClickRemove?: (fieldName: string) => void;
|
|
10
|
+
canRemoveField?: boolean;
|
|
11
|
+
children: React.ReactElement;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & WrappedComponentProps;
|
|
14
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
15
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
21
16
|
};
|
|
22
17
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
|
-
declare const result: React.ForwardRefExoticComponent<
|
|
6
|
+
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
7
|
extensionManifest?: ExtensionManifest | undefined;
|
|
8
8
|
fields?: FieldDefinition[] | undefined;
|
|
9
9
|
parameters?: Parameters | undefined;
|
|
@@ -17,5 +17,5 @@ declare const result: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
featureFlags?: FeatureFlags | undefined;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
20
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
21
21
|
export default result;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
errorMessage: string;
|
|
5
|
-
} & WrappedComponentProps
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} & WrappedComponentProps>;
|
|
5
|
+
} & WrappedComponentProps;
|
|
6
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
7
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
9
8
|
};
|
|
10
9
|
export default _default;
|
|
@@ -5,15 +5,12 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
field: FieldDefinition;
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
isExpanded?: boolean
|
|
12
|
-
} & WrappedComponentProps
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
isExpanded?: boolean | undefined;
|
|
17
|
-
} & WrappedComponentProps>;
|
|
11
|
+
isExpanded?: boolean;
|
|
12
|
+
} & WrappedComponentProps;
|
|
13
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
14
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
18
15
|
};
|
|
19
16
|
export default _default;
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
field: TabGroupField;
|
|
10
10
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
11
|
-
} & WrappedComponentProps
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
renderPanel: (tabField: TabField) => JSX.Element;
|
|
15
|
-
} & WrappedComponentProps>;
|
|
11
|
+
} & WrappedComponentProps;
|
|
12
|
+
declare const TabGroup: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
16
14
|
};
|
|
17
15
|
export default TabGroup;
|
|
@@ -12,7 +12,7 @@ interface Props {
|
|
|
12
12
|
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
16
|
forwardedRef?: React.Ref<any> | undefined;
|
|
17
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
17
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,23 +1,16 @@
|
|
|
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
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
title: string;
|
|
6
|
-
description?: string
|
|
7
|
-
summary?: string
|
|
8
|
-
documentationUrl?: string
|
|
9
|
-
enableHelpCTA?: boolean
|
|
6
|
+
description?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
documentationUrl?: string;
|
|
9
|
+
enableHelpCTA?: boolean;
|
|
10
10
|
icon: Icon;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
} & WrappedComponentProps
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
summary?: string | undefined;
|
|
17
|
-
documentationUrl?: string | undefined;
|
|
18
|
-
enableHelpCTA?: boolean | undefined;
|
|
19
|
-
icon: Icon;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
} & WrappedComponentProps>;
|
|
12
|
+
} & WrappedComponentProps;
|
|
13
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
14
|
+
WrappedComponent: import("react").ComponentType<Props>;
|
|
22
15
|
};
|
|
23
16
|
export default _default;
|
|
@@ -4,19 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
|
|
7
|
+
type Props = {
|
|
8
8
|
name: string;
|
|
9
|
-
onClickRemove?: (
|
|
10
|
-
canRemoveField?: boolean
|
|
11
|
-
children: React.ReactElement
|
|
12
|
-
className?: string
|
|
13
|
-
} & WrappedComponentProps
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
17
|
-
canRemoveField?: boolean | undefined;
|
|
18
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
-
className?: string | undefined;
|
|
20
|
-
} & WrappedComponentProps>;
|
|
9
|
+
onClickRemove?: (fieldName: string) => void;
|
|
10
|
+
canRemoveField?: boolean;
|
|
11
|
+
children: React.ReactElement;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & WrappedComponentProps;
|
|
14
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
15
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
21
16
|
};
|
|
22
17
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,42 +24,42 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
28
|
-
"@atlaskit/analytics-next": "^10.
|
|
29
|
-
"@atlaskit/avatar": "^21.
|
|
30
|
-
"@atlaskit/button": "^20.
|
|
31
|
-
"@atlaskit/checkbox": "^15.
|
|
32
|
-
"@atlaskit/datetime-picker": "^15.
|
|
33
|
-
"@atlaskit/editor-common": "^99.
|
|
34
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.18.0",
|
|
28
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
29
|
+
"@atlaskit/avatar": "^21.18.0",
|
|
30
|
+
"@atlaskit/button": "^20.4.0",
|
|
31
|
+
"@atlaskit/checkbox": "^15.3.0",
|
|
32
|
+
"@atlaskit/datetime-picker": "^15.12.0",
|
|
33
|
+
"@atlaskit/editor-common": "^99.7.0",
|
|
34
|
+
"@atlaskit/editor-json-transformer": "^8.22.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
37
|
-
"@atlaskit/editor-plugin-context-panel": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
37
|
+
"@atlaskit/editor-plugin-context-panel": "^1.5.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^1.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-width": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
44
|
-
"@atlaskit/empty-state": "^8.
|
|
45
|
-
"@atlaskit/form": "^11.
|
|
46
|
-
"@atlaskit/heading": "4.0
|
|
47
|
-
"@atlaskit/icon": "^23.
|
|
48
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
49
|
-
"@atlaskit/primitives": "^13.
|
|
50
|
-
"@atlaskit/radio": "^7.
|
|
51
|
-
"@atlaskit/section-message": "^6.
|
|
52
|
-
"@atlaskit/select": "^18.
|
|
53
|
-
"@atlaskit/smart-user-picker": "^
|
|
54
|
-
"@atlaskit/spinner": "^17.
|
|
55
|
-
"@atlaskit/tabs": "^17.
|
|
56
|
-
"@atlaskit/textarea": "^5.
|
|
57
|
-
"@atlaskit/textfield": "^6.
|
|
58
|
-
"@atlaskit/theme": "^14.
|
|
44
|
+
"@atlaskit/empty-state": "^8.2.0",
|
|
45
|
+
"@atlaskit/form": "^11.1.0",
|
|
46
|
+
"@atlaskit/heading": "4.1.0",
|
|
47
|
+
"@atlaskit/icon": "^23.6.0",
|
|
48
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
49
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
50
|
+
"@atlaskit/radio": "^7.2.0",
|
|
51
|
+
"@atlaskit/section-message": "^6.9.0",
|
|
52
|
+
"@atlaskit/select": "^18.10.0",
|
|
53
|
+
"@atlaskit/smart-user-picker": "^7.0.0",
|
|
54
|
+
"@atlaskit/spinner": "^17.1.0",
|
|
55
|
+
"@atlaskit/tabs": "^17.2.0",
|
|
56
|
+
"@atlaskit/textarea": "^5.8.0",
|
|
57
|
+
"@atlaskit/textfield": "^6.8.0",
|
|
58
|
+
"@atlaskit/theme": "^14.1.0",
|
|
59
59
|
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
60
|
-
"@atlaskit/toggle": "^14.
|
|
61
|
-
"@atlaskit/tokens": "^3.
|
|
62
|
-
"@atlaskit/tooltip": "^19.
|
|
60
|
+
"@atlaskit/toggle": "^14.1.0",
|
|
61
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
62
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"bind-event-listener": "^3.0.0",
|