@cloud-ru/ft-storybook-deps-graph-addon 2.0.3 → 2.0.4-preview-b742e12.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.
@@ -15,7 +15,6 @@ class ErrorBoundary extends react_1.Component {
15
15
  };
16
16
  }
17
17
  componentDidCatch(error) {
18
- // eslint-disable-next-line no-console
19
18
  console.error(error);
20
19
  }
21
20
  render() {
@@ -10,6 +10,8 @@ const cytoscape_1 = __importDefault(require("cytoscape"));
10
10
  const cytoscape_dagre_1 = __importDefault(require("cytoscape-dagre"));
11
11
  const react_1 = require("react");
12
12
  const const_1 = require("../../const");
13
+ // it's not a hook
14
+ // eslint-disable-next-line react-hooks/rules-of-hooks
13
15
  cytoscape_1.default.use(cytoscape_dagre_1.default);
14
16
  const layout = {
15
17
  name: 'dagre',
@@ -12,7 +12,6 @@ export class ErrorBoundary extends Component {
12
12
  };
13
13
  }
14
14
  componentDidCatch(error) {
15
- // eslint-disable-next-line no-console
16
15
  console.error(error);
17
16
  }
18
17
  render() {
@@ -4,6 +4,8 @@ import Cytoscape from 'cytoscape';
4
4
  import dagre from 'cytoscape-dagre';
5
5
  import { useEffect, useRef } from 'react';
6
6
  import { color } from '../../const';
7
+ // it's not a hook
8
+ // eslint-disable-next-line react-hooks/rules-of-hooks
7
9
  Cytoscape.use(dagre);
8
10
  const layout = {
9
11
  name: 'dagre',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ft-storybook-deps-graph-addon",
3
- "version": "2.0.3",
3
+ "version": "2.0.4-preview-b742e12.0",
4
4
  "author": "Yakov Nikiforov",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -47,5 +47,5 @@
47
47
  "scripts": {
48
48
  "compile": "ts-node scripts/custom-copy.ts"
49
49
  },
50
- "gitHead": "d11ba92f16181c1a844528facbdab64b83c6731c"
50
+ "gitHead": "9ea4b6b2a15c00f65b4c08747ad3a3aab596e3ac"
51
51
  }
@@ -20,7 +20,6 @@ export class ErrorBoundary extends Component<Props, State> {
20
20
  }
21
21
 
22
22
  public componentDidCatch(error: unknown): void {
23
- // eslint-disable-next-line no-console
24
23
  console.error(error);
25
24
  }
26
25
 
@@ -6,6 +6,8 @@ import React, { ReactElement, useEffect, useRef } from 'react';
6
6
  import { color } from '../../const';
7
7
  import { GraphElementType } from '../../types';
8
8
 
9
+ // it's not a hook
10
+ // eslint-disable-next-line react-hooks/rules-of-hooks
9
11
  Cytoscape.use(dagre);
10
12
 
11
13
  const layout = {