@pipe0/react-sdk 0.0.6 → 0.0.9

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.
@@ -1,9 +1,5 @@
1
1
  import { type PipeCatalogTableData, type PipeCategory, type PipeId } from "@pipe0/client-sdk";
2
2
  import { type ColumnFilter } from "@tanstack/react-table";
3
- export declare function useDebounce(cb: (v: string) => unknown, config?: {
4
- initialValue?: string;
5
- timeout?: number;
6
- }): readonly [string, import("react").Dispatch<import("react").SetStateAction<string>>, (v: string) => void];
7
3
  export type InputFieldEntries = Record<string, PipeId[]>;
8
4
  export type OutputFieldEntries = Record<string, PipeId[]>;
9
5
  export declare function usePipeCatalogTable(config?: {
@@ -36,4 +32,4 @@ export declare function usePipeCatalogTable(config?: {
36
32
  setCategory: (category: PipeCategory | null) => void;
37
33
  showFeaturedPipes: boolean;
38
34
  };
39
- //# sourceMappingURL=usePipeCatalogTable.d.ts.map
35
+ //# sourceMappingURL=usePipeCatalogTableHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePipeCatalogTableHook.d.ts","sourceRoot":"","sources":["../../src/hooks/usePipeCatalogTableHook.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AA0B1D,wBAAgB,mBAAmB,CACjC,MAAM,GAAE;IACN,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC;;;;;;;;;;;;;iCAkFA,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW;8BAhBrD,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;;;wBA4BT,aAAa,GAAG,cAAc,aACvB,MAAM;;;0BARb,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;4BA1CgB,YAAY,GAAG,IAAI;;EA0FnD"}
@@ -1,7 +1,7 @@
1
1
  import { getInitialTableData, getTableDataAggregates, } from "@pipe0/client-sdk";
2
2
  import { createColumnHelper, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, useReactTable, } from "@tanstack/react-table";
3
3
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
4
- export function useDebounce(cb, config = {}) {
4
+ function useDebounce(cb, config = {}) {
5
5
  const { initialValue = "", timeout = 400 } = config;
6
6
  const [value, setValue] = useState(initialValue);
7
7
  const cbRef = useRef(cb);
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./hooks/usePipeCatalogTable.js";
1
+ export { usePipeCatalogTable, type InputFieldEntries, type OutputFieldEntries, } from "./hooks/usePipeCatalogTableHook.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,oCAAoC,CAAC"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./hooks/usePipeCatalogTable.js";
1
+ export { usePipeCatalogTable, } from "./hooks/usePipeCatalogTableHook.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe0/react-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "description": "React utils to work with pipe0",
6
6
  "keywords": [
@@ -22,26 +22,26 @@
22
22
  ".": "./dist/index.js"
23
23
  },
24
24
  "private": false,
25
- "scripts": {
26
- "lint": "eslint . --max-warnings 0",
27
- "check-types": "tsc --noEmit",
28
- "dev": " tsc --watch",
29
- "build": "rm -rf ./dist && tsc",
30
- "prepublishOnly": "pnpm run build"
31
- },
32
25
  "author": "",
33
26
  "license": "MIT",
34
27
  "dependencies": {
35
- "@pipe0/client-sdk": "workspace:*",
36
- "react": "catalog:",
37
- "react-dom": "catalog:",
38
- "@tanstack/react-table": "catalog:"
28
+ "@tanstack/react-table": "^8.21.2",
29
+ "react": "^19.0.0",
30
+ "react-dom": "^19.0.0",
31
+ "@pipe0/client-sdk": "0.0.51"
39
32
  },
40
33
  "devDependencies": {
41
- "@pipe0/eslint-config": "workspace:*",
42
- "@types/react": "catalog:",
43
34
  "@types/node": "^22.13.2",
44
- "eslint": "catalog:",
45
- "@types/react-dom": "catalog:"
35
+ "@types/react": "^19.0.8",
36
+ "@types/react-dom": "^19.0.3",
37
+ "eslint": "^9.30.0",
38
+ "rimraf": "^6.0.1",
39
+ "@pipe0/eslint-config": "0.0.0"
40
+ },
41
+ "scripts": {
42
+ "lint": "eslint . --max-warnings 0",
43
+ "check-types": "tsc --noEmit",
44
+ "dev": "tsc --watch",
45
+ "build": "rimraf dist && tsc"
46
46
  }
47
- }
47
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePipeCatalogTable.d.ts","sourceRoot":"","sources":["../../src/hooks/usePipeCatalogTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,uBAAuB,CAAC;AAG/B,wBAAgB,WAAW,CACzB,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,EAC1B,MAAM,GAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,2FAQjB,MAAM,WAc9C;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AA0B1D,wBAAgB,mBAAmB,CACjC,MAAM,GAAE;IACN,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC;;;;;;;;;;;;;iCAkFA,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW;8BAhBrD,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;;;wBA4BT,aAAa,GAAG,cAAc,aACvB,MAAM;;;0BARb,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;4BA1CgB,YAAY,GAAG,IAAI;;EA0FnD"}