@cloud-ru/ft-storybook-deps-graph-addon 2.0.0 → 2.0.1

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 2.0.1 (2024-09-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-4988:** update storybook versions ([9e3def2](https://github.com/cloud-ru-tech/frontend-tools/commit/9e3def2999e8b957d6144246a36aee733b349a80))
12
+
13
+
14
+
15
+
16
+
6
17
  # 2.0.0 (2024-07-04)
7
18
 
8
19
 
@@ -20,7 +20,7 @@ class ErrorBoundary extends react_1.Component {
20
20
  }
21
21
  render() {
22
22
  if (this.state.hasError) {
23
- return (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'deps_graph__error' }, { children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0438 \u0433\u0440\u0430\u0444\u0430." }));
23
+ return (0, jsx_runtime_1.jsx)("div", { className: 'deps_graph__error', children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0438 \u0433\u0440\u0430\u0444\u0430." });
24
24
  }
25
25
  return this.props.children;
26
26
  }
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Graph = void 0;
6
+ exports.Graph = Graph;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const theming_1 = require("@storybook/theming");
9
9
  const cytoscape_1 = __importDefault(require("cytoscape"));
@@ -94,4 +94,3 @@ function Graph({ storyName, elements }) {
94
94
  });
95
95
  return ((0, jsx_runtime_1.jsx)("div", { className: 'deps_graph__wrapper', ref: containerRef, style: { backgroundColor: themeColors.componentBackground } }));
96
96
  }
97
- exports.Graph = Graph;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotFound = void 0;
3
+ exports.NotFound = NotFound;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  function NotFound() {
6
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'deps_graph__info' }, { children: [(0, jsx_runtime_1.jsx)("div", { children: "\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442." }), (0, jsx_runtime_1.jsx)("div", { children: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 UI \u043A\u043E\u0441\u043F\u043E\u043D\u0435\u043D\u0442 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0433\u0440\u0430\u0444\u0430." })] })));
6
+ return ((0, jsx_runtime_1.jsxs)("div", { className: 'deps_graph__info', children: [(0, jsx_runtime_1.jsx)("div", { children: "\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442." }), (0, jsx_runtime_1.jsx)("div", { children: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 UI \u043A\u043E\u0441\u043F\u043E\u043D\u0435\u043D\u0442 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0433\u0440\u0430\u0444\u0430." })] }));
7
7
  }
8
- exports.NotFound = NotFound;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Panel = void 0;
3
+ exports.Panel = Panel;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const manager_api_1 = require("@storybook/manager-api");
6
6
  const types_1 = require("../../types");
@@ -29,4 +29,3 @@ function Panel() {
29
29
  const graph = [...parents, ...children];
30
30
  return (0, jsx_runtime_1.jsx)(Graph_1.Graph, { storyName: storyName, elements: graph });
31
31
  }
32
- exports.Panel = Panel;
@@ -13,6 +13,6 @@ manager_api_1.addons.register(ADDON_ID, () => {
13
13
  match: ({ viewMode }) => viewMode === 'story',
14
14
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15
15
  // @ts-ignore
16
- render: ({ active = false, key }) => ((0, jsx_runtime_1.jsx)(components_1.AddonPanel, Object.assign({ active: active }, { children: (0, jsx_runtime_1.jsx)(components_2.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(components_2.Panel, {}) }) }), key)),
16
+ render: ({ active = false, key }) => ((0, jsx_runtime_1.jsx)(components_1.AddonPanel, { active: active, children: (0, jsx_runtime_1.jsx)(components_2.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(components_2.Panel, {}) }) }, key)),
17
17
  });
18
18
  });
package/dist/cjs/types.js CHANGED
@@ -5,4 +5,4 @@ var GraphType;
5
5
  (function (GraphType) {
6
6
  GraphType["Children"] = "children";
7
7
  GraphType["Parent"] = "parent";
8
- })(GraphType = exports.GraphType || (exports.GraphType = {}));
8
+ })(GraphType || (exports.GraphType = GraphType = {}));
@@ -17,7 +17,7 @@ export class ErrorBoundary extends Component {
17
17
  }
18
18
  render() {
19
19
  if (this.state.hasError) {
20
- return _jsx("div", Object.assign({ className: 'deps_graph__error' }, { children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0438 \u0433\u0440\u0430\u0444\u0430." }));
20
+ return _jsx("div", { className: 'deps_graph__error', children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0438 \u0433\u0440\u0430\u0444\u0430." });
21
21
  }
22
22
  return this.props.children;
23
23
  }
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  export function NotFound() {
3
- return (_jsxs("div", Object.assign({ className: 'deps_graph__info' }, { children: [_jsx("div", { children: "\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442." }), _jsx("div", { children: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 UI \u043A\u043E\u0441\u043F\u043E\u043D\u0435\u043D\u0442 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0433\u0440\u0430\u0444\u0430." })] })));
3
+ return (_jsxs("div", { className: 'deps_graph__info', children: [_jsx("div", { children: "\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442." }), _jsx("div", { children: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 UI \u043A\u043E\u0441\u043F\u043E\u043D\u0435\u043D\u0442 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0433\u0440\u0430\u0444\u0430." })] }));
4
4
  }
@@ -11,6 +11,6 @@ addons.register(ADDON_ID, () => {
11
11
  match: ({ viewMode }) => viewMode === 'story',
12
12
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
13
13
  // @ts-ignore
14
- render: ({ active = false, key }) => (_jsx(AddonPanel, Object.assign({ active: active }, { children: _jsx(ErrorBoundary, { children: _jsx(Panel, {}) }) }), key)),
14
+ render: ({ active = false, key }) => (_jsx(AddonPanel, { active: active, children: _jsx(ErrorBoundary, { children: _jsx(Panel, {}) }) }, key)),
15
15
  });
16
16
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ft-storybook-deps-graph-addon",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "author": "Yakov Nikiforov",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,8 +13,8 @@
13
13
  "dependencies"
14
14
  ],
15
15
  "dependencies": {
16
- "@storybook/components": "8.1.11",
17
- "@storybook/manager-api": "8.1.11",
16
+ "@storybook/components": "8.3.2",
17
+ "@storybook/manager-api": "8.3.2",
18
18
  "cytoscape": "3.28.0",
19
19
  "cytoscape-dagre": "2.5.0"
20
20
  },
@@ -47,5 +47,5 @@
47
47
  "scripts": {
48
48
  "compile": "ts-node scripts/custom-copy.ts"
49
49
  },
50
- "gitHead": "9f3edaa27578282fa7344a7ca68d704f1522b68e"
50
+ "gitHead": "bd9598c5fc403abfcca8391367dbe8c3432a519f"
51
51
  }