@3plate/graph-react 0.1.0 → 0.1.2

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/index.d.mts CHANGED
@@ -1,16 +1,2 @@
1
- import { Graph } from '@3plate/graph-core';
2
1
 
3
- /**
4
- * @3plate/graph-react - React components for @3plate/graph graph visualization
5
- */
6
-
7
- interface GraphViewProps {
8
- graph: Graph<any, any>;
9
- width?: number;
10
- height?: number;
11
- onNodeClick?: (nodeId: string) => void;
12
- onEdgeClick?: (edgeId: string) => void;
13
- }
14
- declare function GraphView(props: GraphViewProps): null;
15
-
16
- export { GraphView, type GraphViewProps };
2
+ export { }
package/dist/index.d.ts CHANGED
@@ -1,16 +1,2 @@
1
- import { Graph } from '@3plate/graph-core';
2
1
 
3
- /**
4
- * @3plate/graph-react - React components for @3plate/graph graph visualization
5
- */
6
-
7
- interface GraphViewProps {
8
- graph: Graph<any, any>;
9
- width?: number;
10
- height?: number;
11
- onNodeClick?: (nodeId: string) => void;
12
- onEdgeClick?: (edgeId: string) => void;
13
- }
14
- declare function GraphView(props: GraphViewProps): null;
15
-
16
- export { GraphView, type GraphViewProps };
2
+ export { }
package/dist/index.js CHANGED
@@ -1,32 +1 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- GraphView: () => GraphView
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
- function GraphView(props) {
27
- return null;
28
- }
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- GraphView
32
- });
package/dist/index.mjs CHANGED
@@ -1,7 +0,0 @@
1
- // src/index.ts
2
- function GraphView(props) {
3
- return null;
4
- }
5
- export {
6
- GraphView
7
- };
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@3plate/graph-react",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "GPL-3.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/3plt/graph",
8
+ "directory": "packages/react"
9
+ },
5
10
  "main": "./dist/index.js",
6
11
  "module": "./dist/index.mjs",
7
12
  "types": "./dist/index.d.ts",
@@ -16,7 +21,7 @@
16
21
  "react-dom": "^18.0.0 || ^19.0.0"
17
22
  },
18
23
  "dependencies": {
19
- "@3plate/graph-core": "0.1.0"
24
+ "@3plate/graph-core": "0.1.2"
20
25
  },
21
26
  "devDependencies": {
22
27
  "@types/react": "^19.2.7",