@atlaskit/editor-plugin-extension 1.1.1 → 1.1.2
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 +6 -0
- package/dist/cjs/actions.js +2 -0
- package/dist/cjs/pm-plugins/macro/actions.js +2 -0
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -2
- package/dist/es2019/actions.js +2 -0
- package/dist/es2019/pm-plugins/macro/actions.js +2 -0
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -2
- package/dist/esm/actions.js +2 -0
- package/dist/esm/pm-plugins/macro/actions.js +2 -0
- package/dist/esm/ui/ConfigPanel/Header.js +2 -2
- package/dist/types/plugin-factory.d.ts +3 -3
- package/dist/types/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FieldMessages.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/CustomSelect.d.ts +4 -4
- package/dist/types/ui/ConfigPanel/Fields/Date.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Header.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +2 -2
- package/dist/types-ts4.5/plugin-factory.d.ts +3 -3
- package/dist/types-ts4.5/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
3
9
|
## 1.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/actions.js
CHANGED
|
@@ -110,6 +110,8 @@ var performNodeUpdate = exports.performNodeUpdate = function performNodeUpdate(e
|
|
|
110
110
|
actionSubjectId: newNode.type.name,
|
|
111
111
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
112
112
|
attributes: {
|
|
113
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
114
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
113
115
|
inputMethod: _analytics.INPUT_METHOD.CONFIG_PANEL,
|
|
114
116
|
extensionType: extensionType,
|
|
115
117
|
extensionKey: extensionKey,
|
|
@@ -97,6 +97,8 @@ var insertMacroFromMacroBrowser = exports.insertMacroFromMacroBrowser = function
|
|
|
97
97
|
actionSubjectId: macroNode.type.name,
|
|
98
98
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
99
99
|
attributes: {
|
|
100
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
101
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
100
102
|
inputMethod: isEditing ? _analytics.INPUT_METHOD.MACRO_BROWSER : _analytics.INPUT_METHOD.TOOLBAR,
|
|
101
103
|
extensionType: extensionType,
|
|
102
104
|
extensionKey: extensionKey,
|
|
@@ -107,13 +107,13 @@ var Header = function Header(_ref) {
|
|
|
107
107
|
}, (0, _react2.jsx)("div", {
|
|
108
108
|
className: "item-title",
|
|
109
109
|
id: "context-panel-title",
|
|
110
|
-
"data-
|
|
110
|
+
"data-testid": "context-panel-title"
|
|
111
111
|
}, title), (0, _react2.jsx)("div", {
|
|
112
112
|
className: "item-summary"
|
|
113
113
|
}, summary)) : (0, _react2.jsx)("div", {
|
|
114
114
|
css: centeredItemTitleStyles,
|
|
115
115
|
id: "context-panel-title",
|
|
116
|
-
"data-
|
|
116
|
+
"data-testid": "context-panel-title"
|
|
117
117
|
}, title)), (0, _react2.jsx)("div", {
|
|
118
118
|
css: closeButtonWrapperStyles
|
|
119
119
|
}, (0, _react2.jsx)(_customThemeButton.default, {
|
package/dist/es2019/actions.js
CHANGED
|
@@ -98,6 +98,8 @@ export const performNodeUpdate = editorAnalyticsAPI => (type, newAttrs, content,
|
|
|
98
98
|
actionSubjectId: newNode.type.name,
|
|
99
99
|
eventType: EVENT_TYPE.TRACK,
|
|
100
100
|
attributes: {
|
|
101
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
102
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
101
103
|
inputMethod: INPUT_METHOD.CONFIG_PANEL,
|
|
102
104
|
extensionType,
|
|
103
105
|
extensionKey,
|
|
@@ -88,6 +88,8 @@ export const insertMacroFromMacroBrowser = editorAnalyticsAPI => (macroProvider,
|
|
|
88
88
|
actionSubjectId: macroNode.type.name,
|
|
89
89
|
eventType: EVENT_TYPE.TRACK,
|
|
90
90
|
attributes: {
|
|
91
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
92
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
91
93
|
inputMethod: isEditing ? INPUT_METHOD.MACRO_BROWSER : INPUT_METHOD.TOOLBAR,
|
|
92
94
|
extensionType,
|
|
93
95
|
extensionKey,
|
|
@@ -98,13 +98,13 @@ const Header = ({
|
|
|
98
98
|
}, jsx("div", {
|
|
99
99
|
className: "item-title",
|
|
100
100
|
id: "context-panel-title",
|
|
101
|
-
"data-
|
|
101
|
+
"data-testid": "context-panel-title"
|
|
102
102
|
}, title), jsx("div", {
|
|
103
103
|
className: "item-summary"
|
|
104
104
|
}, summary)) : jsx("div", {
|
|
105
105
|
css: centeredItemTitleStyles,
|
|
106
106
|
id: "context-panel-title",
|
|
107
|
-
"data-
|
|
107
|
+
"data-testid": "context-panel-title"
|
|
108
108
|
}, title)), jsx("div", {
|
|
109
109
|
css: closeButtonWrapperStyles
|
|
110
110
|
}, jsx(Button, {
|
package/dist/esm/actions.js
CHANGED
|
@@ -97,6 +97,8 @@ export var performNodeUpdate = function performNodeUpdate(editorAnalyticsAPI) {
|
|
|
97
97
|
actionSubjectId: newNode.type.name,
|
|
98
98
|
eventType: EVENT_TYPE.TRACK,
|
|
99
99
|
attributes: {
|
|
100
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
101
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
100
102
|
inputMethod: INPUT_METHOD.CONFIG_PANEL,
|
|
101
103
|
extensionType: extensionType,
|
|
102
104
|
extensionKey: extensionKey,
|
|
@@ -90,6 +90,8 @@ export var insertMacroFromMacroBrowser = function insertMacroFromMacroBrowser(ed
|
|
|
90
90
|
actionSubjectId: macroNode.type.name,
|
|
91
91
|
eventType: EVENT_TYPE.TRACK,
|
|
92
92
|
attributes: {
|
|
93
|
+
// @ts-expect-error - Type is not assignable to parameter of type 'AnalyticsEventPayload'
|
|
94
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
93
95
|
inputMethod: isEditing ? INPUT_METHOD.MACRO_BROWSER : INPUT_METHOD.TOOLBAR,
|
|
94
96
|
extensionType: extensionType,
|
|
95
97
|
extensionKey: extensionKey,
|
|
@@ -99,13 +99,13 @@ var Header = function Header(_ref) {
|
|
|
99
99
|
}, jsx("div", {
|
|
100
100
|
className: "item-title",
|
|
101
101
|
id: "context-panel-title",
|
|
102
|
-
"data-
|
|
102
|
+
"data-testid": "context-panel-title"
|
|
103
103
|
}, title), jsx("div", {
|
|
104
104
|
className: "item-summary"
|
|
105
105
|
}, summary)) : jsx("div", {
|
|
106
106
|
css: centeredItemTitleStyles,
|
|
107
107
|
id: "context-panel-title",
|
|
108
|
-
"data-
|
|
108
|
+
"data-testid": "context-panel-title"
|
|
109
109
|
}, title)), jsx("div", {
|
|
110
110
|
css: closeButtonWrapperStyles
|
|
111
111
|
}, jsx(Button, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from './types';
|
|
2
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
3
|
-
export declare const createCommand: <A = import("./types").ExtensionAction
|
|
4
|
-
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState
|
|
2
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
+
export declare const createCommand: <A = import("./types").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ExtensionState } from './types';
|
|
3
|
-
export declare const pluginKey: PluginKey<ExtensionState
|
|
3
|
+
export declare const pluginKey: PluginKey<ExtensionState>;
|
|
@@ -20,5 +20,5 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
20
20
|
}) => true | undefined;
|
|
21
21
|
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
22
22
|
appearance?: EditorAppearance;
|
|
23
|
-
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState
|
|
23
|
+
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState>;
|
|
24
24
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
4
|
errorMessage: string;
|
|
5
|
-
} & WrappedComponentProps
|
|
5
|
+
} & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<{
|
|
7
7
|
errorMessage: string;
|
|
8
|
-
} & WrappedComponentProps
|
|
8
|
+
} & WrappedComponentProps>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -3,10 +3,10 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
4
|
error?: string | undefined;
|
|
5
5
|
description?: string | undefined;
|
|
6
|
-
} & WrappedComponentProps
|
|
6
|
+
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
8
|
error?: string | undefined;
|
|
9
9
|
description?: string | undefined;
|
|
10
|
-
} & WrappedComponentProps
|
|
10
|
+
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -5,20 +5,20 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: CustomField;
|
|
8
|
-
extensionManifest: ExtensionManifest
|
|
8
|
+
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
10
|
autoFocus?: boolean | undefined;
|
|
11
11
|
placeholder?: string | undefined;
|
|
12
12
|
parameters?: Parameters | undefined;
|
|
13
|
-
} & WrappedComponentProps
|
|
13
|
+
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
|
-
extensionManifest: ExtensionManifest
|
|
17
|
+
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
19
|
autoFocus?: boolean | undefined;
|
|
20
20
|
placeholder?: string | undefined;
|
|
21
21
|
parameters?: Parameters | undefined;
|
|
22
|
-
} & WrappedComponentProps
|
|
22
|
+
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -8,13 +8,13 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
8
8
|
autoFocus?: boolean | undefined;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
10
|
placeholder?: string | undefined;
|
|
11
|
-
} & WrappedComponentProps
|
|
11
|
+
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
15
|
autoFocus?: boolean | undefined;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
|
-
} & WrappedComponentProps
|
|
18
|
+
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -8,13 +8,13 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
8
8
|
onFieldChange: OnFieldChange;
|
|
9
9
|
autoFocus?: boolean | undefined;
|
|
10
10
|
placeholder?: string | undefined;
|
|
11
|
-
} & WrappedComponentProps
|
|
11
|
+
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: import("react").ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateRangeField;
|
|
15
15
|
onFieldChange: OnFieldChange;
|
|
16
16
|
autoFocus?: boolean | undefined;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
|
-
} & WrappedComponentProps
|
|
18
|
+
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -6,11 +6,11 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
6
6
|
field: FieldDefinition;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
isExpanded?: boolean | undefined;
|
|
9
|
-
} & WrappedComponentProps
|
|
9
|
+
} & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<{
|
|
11
11
|
field: FieldDefinition;
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
isExpanded?: boolean | undefined;
|
|
14
|
-
} & WrappedComponentProps
|
|
14
|
+
} & WrappedComponentProps>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -5,10 +5,10 @@ import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions
|
|
|
5
5
|
declare const TabGroup: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
field: TabGroupField;
|
|
7
7
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
8
|
-
} & WrappedComponentProps
|
|
8
|
+
} & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<{
|
|
10
10
|
field: TabGroupField;
|
|
11
11
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
12
|
-
} & WrappedComponentProps
|
|
12
|
+
} & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
14
|
export default TabGroup;
|
|
@@ -9,8 +9,8 @@ interface Props {
|
|
|
9
9
|
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
13
|
-
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
12
|
+
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
|
|
16
16
|
export {};
|
|
@@ -9,7 +9,7 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
9
9
|
enableHelpCTA?: boolean | undefined;
|
|
10
10
|
icon: Icon;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
} & WrappedComponentProps
|
|
12
|
+
} & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: import("react").ComponentType<{
|
|
14
14
|
title: string;
|
|
15
15
|
description?: string | undefined;
|
|
@@ -18,6 +18,6 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
18
18
|
enableHelpCTA?: boolean | undefined;
|
|
19
19
|
icon: Icon;
|
|
20
20
|
onClose: () => void;
|
|
21
|
-
} & WrappedComponentProps
|
|
21
|
+
} & WrappedComponentProps>;
|
|
22
22
|
};
|
|
23
23
|
export default _default;
|
|
@@ -7,13 +7,13 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
canRemoveField?: boolean | undefined;
|
|
8
8
|
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
9
|
className?: string | undefined;
|
|
10
|
-
} & WrappedComponentProps
|
|
10
|
+
} & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<{
|
|
12
12
|
name: string;
|
|
13
13
|
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
14
14
|
canRemoveField?: boolean | undefined;
|
|
15
15
|
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
} & WrappedComponentProps
|
|
17
|
+
} & WrappedComponentProps>;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from './types';
|
|
2
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
3
|
-
export declare const createCommand: <A = import("./types").ExtensionAction
|
|
4
|
-
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState
|
|
2
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
+
export declare const createCommand: <A = import("./types").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ExtensionState } from './types';
|
|
3
|
-
export declare const pluginKey: PluginKey<ExtensionState
|
|
3
|
+
export declare const pluginKey: PluginKey<ExtensionState>;
|
|
@@ -20,5 +20,5 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
20
20
|
}) => true | undefined;
|
|
21
21
|
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
22
22
|
appearance?: EditorAppearance;
|
|
23
|
-
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState
|
|
23
|
+
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState>;
|
|
24
24
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
4
|
errorMessage: string;
|
|
5
|
-
} & WrappedComponentProps
|
|
5
|
+
} & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<{
|
|
7
7
|
errorMessage: string;
|
|
8
|
-
} & WrappedComponentProps
|
|
8
|
+
} & WrappedComponentProps>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -3,10 +3,10 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
4
|
error?: string | undefined;
|
|
5
5
|
description?: string | undefined;
|
|
6
|
-
} & WrappedComponentProps
|
|
6
|
+
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
8
|
error?: string | undefined;
|
|
9
9
|
description?: string | undefined;
|
|
10
|
-
} & WrappedComponentProps
|
|
10
|
+
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -5,20 +5,20 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: CustomField;
|
|
8
|
-
extensionManifest: ExtensionManifest
|
|
8
|
+
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
10
|
autoFocus?: boolean | undefined;
|
|
11
11
|
placeholder?: string | undefined;
|
|
12
12
|
parameters?: Parameters | undefined;
|
|
13
|
-
} & WrappedComponentProps
|
|
13
|
+
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
|
-
extensionManifest: ExtensionManifest
|
|
17
|
+
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
19
|
autoFocus?: boolean | undefined;
|
|
20
20
|
placeholder?: string | undefined;
|
|
21
21
|
parameters?: Parameters | undefined;
|
|
22
|
-
} & WrappedComponentProps
|
|
22
|
+
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -8,13 +8,13 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
8
8
|
autoFocus?: boolean | undefined;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
10
|
placeholder?: string | undefined;
|
|
11
|
-
} & WrappedComponentProps
|
|
11
|
+
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
15
|
autoFocus?: boolean | undefined;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
|
-
} & WrappedComponentProps
|
|
18
|
+
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -8,13 +8,13 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
8
8
|
onFieldChange: OnFieldChange;
|
|
9
9
|
autoFocus?: boolean | undefined;
|
|
10
10
|
placeholder?: string | undefined;
|
|
11
|
-
} & WrappedComponentProps
|
|
11
|
+
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: import("react").ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateRangeField;
|
|
15
15
|
onFieldChange: OnFieldChange;
|
|
16
16
|
autoFocus?: boolean | undefined;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
|
-
} & WrappedComponentProps
|
|
18
|
+
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -6,11 +6,11 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
6
6
|
field: FieldDefinition;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
isExpanded?: boolean | undefined;
|
|
9
|
-
} & WrappedComponentProps
|
|
9
|
+
} & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<{
|
|
11
11
|
field: FieldDefinition;
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
isExpanded?: boolean | undefined;
|
|
14
|
-
} & WrappedComponentProps
|
|
14
|
+
} & WrappedComponentProps>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -5,10 +5,10 @@ import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions
|
|
|
5
5
|
declare const TabGroup: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
field: TabGroupField;
|
|
7
7
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
8
|
-
} & WrappedComponentProps
|
|
8
|
+
} & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<{
|
|
10
10
|
field: TabGroupField;
|
|
11
11
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
12
|
-
} & WrappedComponentProps
|
|
12
|
+
} & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
14
|
export default TabGroup;
|
|
@@ -9,8 +9,8 @@ interface Props {
|
|
|
9
9
|
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
13
|
-
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
12
|
+
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
|
|
16
16
|
export {};
|
|
@@ -9,7 +9,7 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
9
9
|
enableHelpCTA?: boolean | undefined;
|
|
10
10
|
icon: Icon;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
} & WrappedComponentProps
|
|
12
|
+
} & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: import("react").ComponentType<{
|
|
14
14
|
title: string;
|
|
15
15
|
description?: string | undefined;
|
|
@@ -18,6 +18,6 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
18
18
|
enableHelpCTA?: boolean | undefined;
|
|
19
19
|
icon: Icon;
|
|
20
20
|
onClose: () => void;
|
|
21
|
-
} & WrappedComponentProps
|
|
21
|
+
} & WrappedComponentProps>;
|
|
22
22
|
};
|
|
23
23
|
export default _default;
|
|
@@ -7,13 +7,13 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
canRemoveField?: boolean | undefined;
|
|
8
8
|
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
9
|
className?: string | undefined;
|
|
10
|
-
} & WrappedComponentProps
|
|
10
|
+
} & WrappedComponentProps>> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<{
|
|
12
12
|
name: string;
|
|
13
13
|
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
14
14
|
canRemoveField?: boolean | undefined;
|
|
15
15
|
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
} & WrappedComponentProps
|
|
17
|
+
} & WrappedComponentProps>;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/button": "^17.7.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.1.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^13.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^78.
|
|
34
|
+
"@atlaskit/editor-common": "^78.17.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^1.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/form": "^9.0.3",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/primitives": "^5.
|
|
49
|
+
"@atlaskit/primitives": "^5.1.0",
|
|
50
50
|
"@atlaskit/radio": "^6.1.0",
|
|
51
51
|
"@atlaskit/section-message": "^6.4.0",
|
|
52
52
|
"@atlaskit/select": "^17.3.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/textfield": "^6.1.0",
|
|
58
58
|
"@atlaskit/theme": "^12.6.0",
|
|
59
59
|
"@atlaskit/toggle": "^13.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
60
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.1.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
74
|
+
"@atlaskit/editor-test-helpers": "^18.20.0",
|
|
75
75
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
76
76
|
"react-select": "^5.4.0",
|
|
77
|
-
"typescript": "~4.
|
|
77
|
+
"typescript": "~5.4.2"
|
|
78
78
|
},
|
|
79
79
|
"techstack": {
|
|
80
80
|
"@atlassian/frontend": {
|