@atlaskit/editor-plugin-panel 5.3.7 → 5.4.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,24 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 5.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`113ef5c6037ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/113ef5c6037ab) -
8
+ Debounced rendering of panel
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 5.3.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
19
+ Sorted type and interface props to improve Atlaskit docs
20
+ - Updated dependencies
21
+
3
22
  ## 5.3.7
4
23
 
5
24
  ### Patch Changes
@@ -107,9 +107,7 @@ var PanelNodeView = /*#__PURE__*/function () {
107
107
  panelAttributes: node.attrs,
108
108
  providerFactory: _this.providerFactory
109
109
  });
110
- }, this.icon, this.key, undefined,
111
- // @portal-render-immediately
112
- true);
110
+ }, this.icon, this.key);
113
111
  }
114
112
  return (0, _createClass2.default)(PanelNodeView, [{
115
113
  key: "ignoreMutation",
@@ -101,9 +101,7 @@ class PanelNodeView {
101
101
  allowCustomPanel: pluginOptions.allowCustomPanel,
102
102
  panelAttributes: node.attrs,
103
103
  providerFactory: this.providerFactory
104
- }), this.icon, this.key, undefined,
105
- // @portal-render-immediately
106
- true);
104
+ }), this.icon, this.key);
107
105
  }
108
106
  ignoreMutation(mutation) {
109
107
  // ignore mutation if it caused by the icon.
@@ -101,9 +101,7 @@ var PanelNodeView = /*#__PURE__*/function () {
101
101
  panelAttributes: node.attrs,
102
102
  providerFactory: _this.providerFactory
103
103
  });
104
- }, this.icon, this.key, undefined,
105
- // @portal-render-immediately
106
- true);
104
+ }, this.icon, this.key);
107
105
  }
108
106
  return _createClass(PanelNodeView, [{
109
107
  key: "ignoreMutation",
@@ -13,10 +13,10 @@ export declare const panelIcons: {
13
13
  }>;
14
14
  };
15
15
  interface PanelIconAttributes {
16
- panelAttributes: PanelAttributes;
17
- providerFactory?: ProviderFactory;
18
16
  allowCustomPanel?: boolean;
17
+ panelAttributes: PanelAttributes;
19
18
  pluginInjectionApi: ExtractInjectionAPI<PanelPlugin> | undefined;
19
+ providerFactory?: ProviderFactory;
20
20
  }
21
21
  export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element | null;
22
22
  declare class PanelNodeView {
@@ -32,8 +32,8 @@ declare class PanelNodeView {
32
32
  key: string;
33
33
  constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI, providerFactory?: ProviderFactory);
34
34
  ignoreMutation(mutation: MutationRecord | {
35
- type: 'selection';
36
35
  target: Node;
36
+ type: 'selection';
37
37
  }): boolean;
38
38
  destroy(): void;
39
39
  }
@@ -13,16 +13,16 @@ export interface PanelPluginConfig {
13
13
  }
14
14
  export type DomPanelAtrrs = {
15
15
  class: string;
16
- 'data-panel-type': string;
17
- 'data-testid'?: string;
18
16
  'data-panel-color'?: string;
19
17
  'data-panel-icon-id'?: string;
20
18
  'data-panel-icon-text'?: string;
19
+ 'data-panel-type': string;
20
+ 'data-testid'?: string;
21
21
  style: string;
22
22
  };
23
23
  export type EmojiInfo = {
24
- shortName: string;
25
24
  id: string;
25
+ shortName: string;
26
26
  };
27
27
  export type PanelPluginDependencies = [
28
28
  typeof decorationsPlugin,
@@ -30,9 +30,9 @@ export type PanelPluginDependencies = [
30
30
  EmojiPlugin
31
31
  ];
32
32
  export type PanelPlugin = NextEditorPlugin<'panel', {
33
- pluginConfiguration: PanelPluginOptions | undefined;
34
- dependencies: PanelPluginDependencies;
35
33
  actions: {
36
34
  insertPanel: (inputMethod: INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
37
35
  };
36
+ dependencies: PanelPluginDependencies;
37
+ pluginConfiguration: PanelPluginOptions | undefined;
38
38
  }>;
@@ -13,10 +13,10 @@ export declare const panelIcons: {
13
13
  }>;
14
14
  };
15
15
  interface PanelIconAttributes {
16
- panelAttributes: PanelAttributes;
17
- providerFactory?: ProviderFactory;
18
16
  allowCustomPanel?: boolean;
17
+ panelAttributes: PanelAttributes;
19
18
  pluginInjectionApi: ExtractInjectionAPI<PanelPlugin> | undefined;
19
+ providerFactory?: ProviderFactory;
20
20
  }
21
21
  export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element | null;
22
22
  declare class PanelNodeView {
@@ -32,8 +32,8 @@ declare class PanelNodeView {
32
32
  key: string;
33
33
  constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI, providerFactory?: ProviderFactory);
34
34
  ignoreMutation(mutation: MutationRecord | {
35
- type: 'selection';
36
35
  target: Node;
36
+ type: 'selection';
37
37
  }): boolean;
38
38
  destroy(): void;
39
39
  }
@@ -13,16 +13,16 @@ export interface PanelPluginConfig {
13
13
  }
14
14
  export type DomPanelAtrrs = {
15
15
  class: string;
16
- 'data-panel-type': string;
17
- 'data-testid'?: string;
18
16
  'data-panel-color'?: string;
19
17
  'data-panel-icon-id'?: string;
20
18
  'data-panel-icon-text'?: string;
19
+ 'data-panel-type': string;
20
+ 'data-testid'?: string;
21
21
  style: string;
22
22
  };
23
23
  export type EmojiInfo = {
24
- shortName: string;
25
24
  id: string;
25
+ shortName: string;
26
26
  };
27
27
  export type PanelPluginDependencies = [
28
28
  typeof decorationsPlugin,
@@ -30,9 +30,9 @@ export type PanelPluginDependencies = [
30
30
  EmojiPlugin
31
31
  ];
32
32
  export type PanelPlugin = NextEditorPlugin<'panel', {
33
- pluginConfiguration: PanelPluginOptions | undefined;
34
- dependencies: PanelPluginDependencies;
35
33
  actions: {
36
34
  insertPanel: (inputMethod: INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
37
35
  };
36
+ dependencies: PanelPluginDependencies;
37
+ pluginConfiguration: PanelPluginOptions | undefined;
38
38
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "5.3.7",
3
+ "version": "5.4.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "@atlaskit/adf-schema": "^50.2.1",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
- "@atlaskit/editor-plugin-decorations": "^3.0.0",
36
+ "@atlaskit/editor-plugin-decorations": "^3.1.0",
37
37
  "@atlaskit/editor-plugin-emoji": "^4.3.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
@@ -41,13 +41,13 @@
41
41
  "@atlaskit/icon": "^28.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/theme": "^19.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.5.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.6.0",
45
45
  "@atlaskit/tokens": "^6.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "uuid": "^3.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^107.28.0",
50
+ "@atlaskit/editor-common": "^107.29.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"