@atlaskit/editor-plugin-panel 2.1.0 → 2.2.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
8
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
9
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.1.0
4
16
 
5
17
  ### Minor Changes
@@ -1,7 +1,8 @@
1
1
  import type { PanelAttributes } from '@atlaskit/adf-schema';
2
2
  import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
- export declare const findPanel: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
4
+ import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
+ export declare const findPanel: (state: EditorState, selection?: Selection | null) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
5
6
  export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
6
7
  export declare const handleCut: (newState: EditorState, oldState: EditorState) => import("prosemirror-state").Transaction | undefined;
7
8
  export declare const panelContentCheck: (newState: EditorState, oldState: EditorState) => boolean;
@@ -1,7 +1,8 @@
1
1
  import type { PanelAttributes } from '@atlaskit/adf-schema';
2
2
  import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
- export declare const findPanel: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
4
+ import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
+ export declare const findPanel: (state: EditorState, selection?: Selection | null) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
5
6
  export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
6
7
  export declare const handleCut: (newState: EditorState, oldState: EditorState) => import("prosemirror-state").Transaction | undefined;
7
8
  export declare const panelContentCheck: (newState: EditorState, oldState: EditorState) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^40.3.0",
37
- "@atlaskit/editor-common": "^86.7.0",
37
+ "@atlaskit/editor-common": "^86.8.0",
38
38
  "@atlaskit/editor-palette": "1.6.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.5.0",
40
- "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
- "@atlaskit/editor-prosemirror": "4.0.1",
39
+ "@atlaskit/editor-plugin-analytics": "^1.6.0",
40
+ "@atlaskit/editor-plugin-decorations": "^1.2.0",
41
+ "@atlaskit/editor-prosemirror": "5.0.1",
42
42
  "@atlaskit/editor-shared-styles": "^2.13.0",
43
43
  "@atlaskit/emoji": "^67.6.0",
44
44
  "@atlaskit/icon": "^22.7.0",
@@ -52,7 +52,7 @@
52
52
  "react-intl-next": "npm:react-intl@^5.18.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
55
+ "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
56
56
  "@atlaskit/util-data-test": "^17.9.0",
57
57
  "react-dom": "^16.8.0",
58
58
  "typescript": "~5.4.2"