@atlaskit/editor-plugin-floating-toolbar 1.2.1 → 1.2.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 +7 -0
- package/dist/cjs/plugin.js +2 -0
- package/dist/es2019/plugin.js +2 -0
- package/dist/esm/plugin.js +2 -0
- package/dist/types/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types/ui/ConfirmationModal.d.ts +2 -2
- package/dist/types/ui/DropdownMenu.d.ts +2 -2
- package/dist/types/ui/Toolbar.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfirmationModal.d.ts +2 -2
- package/dist/types-ts4.5/ui/DropdownMenu.d.ts +2 -2
- package/dist/types-ts4.5/ui/Toolbar.d.ts +2 -2
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.2.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
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -108,6 +108,8 @@ var getDomRefFromSelection = function getDomRefFromSelection(view, dispatchAnaly
|
|
|
108
108
|
position: view.state.selection.from,
|
|
109
109
|
docSize: view.state.doc.nodeSize,
|
|
110
110
|
error: error.toString(),
|
|
111
|
+
// @ts-expect-error - Object literal may only specify known properties, 'errorStack' does not exist in type
|
|
112
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
111
113
|
errorStack: error.stack || undefined
|
|
112
114
|
}
|
|
113
115
|
};
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -98,6 +98,8 @@ const getDomRefFromSelection = (view, dispatchAnalyticsEvent) => {
|
|
|
98
98
|
position: view.state.selection.from,
|
|
99
99
|
docSize: view.state.doc.nodeSize,
|
|
100
100
|
error: error.toString(),
|
|
101
|
+
// @ts-expect-error - Object literal may only specify known properties, 'errorStack' does not exist in type
|
|
102
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
101
103
|
errorStack: error.stack || undefined
|
|
102
104
|
}
|
|
103
105
|
};
|
package/dist/esm/plugin.js
CHANGED
|
@@ -99,6 +99,8 @@ var getDomRefFromSelection = function getDomRefFromSelection(view, dispatchAnaly
|
|
|
99
99
|
position: view.state.selection.from,
|
|
100
100
|
docSize: view.state.doc.nodeSize,
|
|
101
101
|
error: error.toString(),
|
|
102
|
+
// @ts-expect-error - Object literal may only specify known properties, 'errorStack' does not exist in type
|
|
103
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
102
104
|
errorStack: error.stack || undefined
|
|
103
105
|
}
|
|
104
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
1
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(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, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps
|
|
5
|
-
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps
|
|
4
|
+
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
|
|
6
6
|
};
|
|
@@ -23,7 +23,7 @@ export interface DropdownButtonItemProps extends ButtonItemProps {
|
|
|
23
23
|
onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
24
24
|
onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
27
|
-
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps
|
|
26
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
27
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
|
@@ -40,7 +40,7 @@ export interface State {
|
|
|
40
40
|
scrollDisabled: boolean;
|
|
41
41
|
mounted: boolean;
|
|
42
42
|
}
|
|
43
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
44
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
43
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
44
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
45
45
|
};
|
|
46
46
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
1
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(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, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps
|
|
5
|
-
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps
|
|
4
|
+
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
|
|
6
6
|
};
|
|
@@ -23,7 +23,7 @@ export interface DropdownButtonItemProps extends ButtonItemProps {
|
|
|
23
23
|
onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
24
24
|
onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
27
|
-
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps
|
|
26
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
27
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
|
@@ -40,7 +40,7 @@ export interface State {
|
|
|
40
40
|
scrollDisabled: boolean;
|
|
41
41
|
mounted: boolean;
|
|
42
42
|
}
|
|
43
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
44
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
43
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
44
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
45
45
|
};
|
|
46
46
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
28
28
|
"@atlaskit/button": "^17.7.0",
|
|
29
29
|
"@atlaskit/checkbox": "^13.1.0",
|
|
30
|
-
"@atlaskit/editor-common": "^78.
|
|
31
|
-
"@atlaskit/editor-palette": "1.5.
|
|
30
|
+
"@atlaskit/editor-common": "^78.17.0",
|
|
31
|
+
"@atlaskit/editor-palette": "1.5.3",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^1.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-copy-button": "^1.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^1.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
45
45
|
"@atlaskit/select": "^17.3.0",
|
|
46
46
|
"@atlaskit/theme": "^12.6.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
48
48
|
"@atlaskit/tooltip": "^18.1.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@testing-library/user-event": "^14.4.3",
|
|
65
65
|
"enzyme": "^3.10.0",
|
|
66
66
|
"react-dom": "^16.8.0",
|
|
67
|
-
"typescript": "~4.
|
|
67
|
+
"typescript": "~5.4.2",
|
|
68
68
|
"wait-for-expect": "^1.2.0"
|
|
69
69
|
},
|
|
70
70
|
"techstack": {
|
|
@@ -90,11 +90,9 @@
|
|
|
90
90
|
"ui-components": [
|
|
91
91
|
"lite-mode"
|
|
92
92
|
],
|
|
93
|
-
"deprecation":
|
|
94
|
-
"no-deprecated-imports"
|
|
95
|
-
],
|
|
93
|
+
"deprecation": "no-deprecated-imports",
|
|
96
94
|
"styling": [
|
|
97
|
-
"
|
|
95
|
+
"emotion",
|
|
98
96
|
"emotion"
|
|
99
97
|
]
|
|
100
98
|
}
|
|
@@ -113,4 +111,4 @@
|
|
|
113
111
|
"type": "boolean"
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
|
-
}
|
|
114
|
+
}
|