@cloud-ru/ft-storybook-deps-graph-addon 2.0.3 → 2.0.4-preview-4a23f8c.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/dist/cjs/components/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/cjs/components/Graph/Graph.js +2 -0
- package/dist/esm/components/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/esm/components/Graph/Graph.js +2 -0
- package/package.json +2 -2
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -1
- package/src/components/Graph/Graph.tsx +2 -0
|
@@ -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',
|
|
@@ -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
|
+
"version": "2.0.4-preview-4a23f8c.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": "
|
|
50
|
+
"gitHead": "b0e5906c8af909b67f25066c9f929205470675c9"
|
|
51
51
|
}
|
|
@@ -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 = {
|