@pipe0/react 1.0.30 → 1.0.31

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
@@ -1,5 +1,13 @@
1
1
  # @pipe0/elements-react
2
2
 
3
+ ## 1.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 99aba2b: Add credit info to task response
8
+ - Updated dependencies [99aba2b]
9
+ - @pipe0/base@1.0.31
10
+
3
11
  ## 1.0.30
4
12
 
5
13
  ### Patch Changes
@@ -1,5 +1,4 @@
1
1
  import { CatalogFilterMeta, CatalogSearchFeatures } from "../utils/catalog-helpers.mjs";
2
- import * as _$react from "react";
3
2
  import * as _$_tanstack_react_table0 from "@tanstack/react-table";
4
3
 
5
4
  //#region src/hooks/catalog-table.d.ts
@@ -63,7 +62,7 @@ declare const useCatalogTable: <TData extends _$_tanstack_react_table0.RowData,
63
62
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
64
63
  };
65
64
  filterMeta: CatalogFilterMeta;
66
- }, TData, TSelected, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>, createCatalogColumnHelper: <TData extends _$_tanstack_react_table0.RowData>() => _$_tanstack_react_table0.AppColumnHelper<{
65
+ }, TData, TSelected, {}, {}, {}>, createCatalogColumnHelper: <TData extends _$_tanstack_react_table0.RowData>() => _$_tanstack_react_table0.AppColumnHelper<{
67
66
  columnFilteringFeature: _$_tanstack_react_table0.TableFeature;
68
67
  globalFilteringFeature: _$_tanstack_react_table0.TableFeature;
69
68
  rowSortingFeature: _$_tanstack_react_table0.TableFeature;
@@ -78,7 +77,7 @@ declare const useCatalogTable: <TData extends _$_tanstack_react_table0.RowData,
78
77
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
79
78
  };
80
79
  filterMeta: CatalogFilterMeta;
81
- }, TData, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>;
80
+ }, TData, {}, {}>;
82
81
  //#endregion
83
82
  export { CatalogTableFeatures, catalogTableFeatures, createCatalogColumnHelper, useCatalogTable };
84
83
  //# sourceMappingURL=catalog-table.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-table.d.mts","names":[],"sources":["../../src/hooks/catalog-table.ts"],"mappings":";;;;;;;;;;AAyBA;;cAAa,oBAAA;0BAaX,wBAAA,CAAA,YAAA;;;;;;;;;;;;;;;KAEU,oBAAA,UAA8B,oBAAA;;;;;;;cAQd,eAAA,0CAAe,OAAA,cAAA,wBAAA,CAAA,0BAAA,GAAA,wBAAA,CAAA,0BAAA,GAAA,wBAAA,CAAA,qBAAA,EAAA,YAAA,EAAA,IAAA,0BAAA,YAAA;4BAAA,wBAAA,CAAA,YAAA;;;;;;;;;;;;;;8CAAA,wBAAA,CAAA,0BAAA;;;;;;;;;;;;;;;+NAAkD,OAAA,gCAAA,eAAA;4BAAA,wBAAA,CAAA,YAAA"}
1
+ {"version":3,"file":"catalog-table.d.mts","names":[],"sources":["../../src/hooks/catalog-table.ts"],"mappings":";;;;;;;;AAyBA;;;cAAa,oBAAA;0BAaX,wBAAA,CAAA,YAAA;;;;;;;;;;;;;;;KAEU,oBAAA,UAA8B,oBAAA;;;;;;;cAQd,eAAA,0CAAe,OAAA,cAAA,wBAAA,CAAA,0BAAA,GAAA,wBAAA,CAAA,0BAAA,GAAA,wBAAA,CAAA,qBAAA,EAAA,YAAA,EAAA,IAAA,0BAAA,YAAA;4BAAA,wBAAA,CAAA,YAAA;;;;;;;;;;;;;;8CAAA,wBAAA,CAAA,0BAAA;;;;;;;;;;;;;;;uGAAkD,OAAA,gCAAA,eAAA;4BAAA,wBAAA,CAAA,YAAA"}
@@ -31,7 +31,10 @@ const catalogTableFeatures = tableFeatures({
31
31
  */
32
32
  const { useAppTable: useCatalogTable, createAppColumnHelper: createCatalogColumnHelper } = createTableHook({
33
33
  features: catalogTableFeatures,
34
- globalFilterFn: "catalogSearch"
34
+ globalFilterFn: "catalogSearch",
35
+ tableComponents: {},
36
+ cellComponents: {},
37
+ headerComponents: {}
35
38
  });
36
39
 
37
40
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-table.mjs","names":[],"sources":["../../src/hooks/catalog-table.ts"],"sourcesContent":["import {\n columnFilteringFeature,\n createFilteredRowModel,\n createSortedRowModel,\n createTableHook,\n filterFn_arrIncludes,\n filterFn_includesString,\n globalFilteringFeature,\n metaHelper,\n rowSortingFeature,\n tableFeatures,\n} from \"@tanstack/react-table\";\nimport {\n type CatalogFilterMeta,\n catalogSearchFilter,\n catalogSearchSort,\n} from \"../utils/catalog-helpers.js\";\n\n/**\n * The one feature set every catalog table (pipes, searches, effects) is built\n * on: column filters for the facet pills, a global filter for the search box,\n * and sorting so a query can order rows by relevance. The custom search filter\n * and sort are registered by name, so column defs and the global filter refer\n * to `\"catalogSearch\"` and the score they exchange is typed via `filterMeta`.\n */\nexport const catalogTableFeatures = tableFeatures({\n columnFilteringFeature,\n globalFilteringFeature,\n rowSortingFeature,\n filteredRowModel: createFilteredRowModel(),\n sortedRowModel: createSortedRowModel(),\n filterFns: {\n includesString: filterFn_includesString,\n arrIncludes: filterFn_arrIncludes,\n catalogSearch: catalogSearchFilter,\n },\n sortFns: { catalogSearch: catalogSearchSort },\n filterMeta: metaHelper<CatalogFilterMeta>(),\n});\n\nexport type CatalogTableFeatures = typeof catalogTableFeatures;\n\n/**\n * `useCatalogTable` is `useTable` with the catalog features and the global\n * search filter pre-bound; `createCatalogColumnHelper<T>()` only needs the row\n * type. Consumers building their own catalog UI get the same hook the compound\n * components use.\n */\nexport const { useAppTable: useCatalogTable, createAppColumnHelper: createCatalogColumnHelper } =\n createTableHook({\n features: catalogTableFeatures,\n globalFilterFn: \"catalogSearch\",\n });\n"],"mappings":";;;;;;;;;;;AAyBA,MAAa,uBAAuB,cAAc;CAChD;CACA;CACA;CACA,kBAAkB,wBAAwB;CAC1C,gBAAgB,sBAAsB;CACtC,WAAW;EACT,gBAAgB;EAChB,aAAa;EACb,eAAe;EAChB;CACD,SAAS,EAAE,eAAe,mBAAmB;CAC7C,YAAY,YAA+B;CAC5C,CAAC;;;;;;;AAUF,MAAa,EAAE,aAAa,iBAAiB,uBAAuB,8BAClE,gBAAgB;CACd,UAAU;CACV,gBAAgB;CACjB,CAAC"}
1
+ {"version":3,"file":"catalog-table.mjs","names":[],"sources":["../../src/hooks/catalog-table.ts"],"sourcesContent":["import {\n columnFilteringFeature,\n createFilteredRowModel,\n createSortedRowModel,\n createTableHook,\n filterFn_arrIncludes,\n filterFn_includesString,\n globalFilteringFeature,\n metaHelper,\n rowSortingFeature,\n tableFeatures,\n} from \"@tanstack/react-table\";\nimport {\n type CatalogFilterMeta,\n catalogSearchFilter,\n catalogSearchSort,\n} from \"../utils/catalog-helpers.js\";\n\n/**\n * The one feature set every catalog table (pipes, searches, effects) is built\n * on: column filters for the facet pills, a global filter for the search box,\n * and sorting so a query can order rows by relevance. The custom search filter\n * and sort are registered by name, so column defs and the global filter refer\n * to `\"catalogSearch\"` and the score they exchange is typed via `filterMeta`.\n */\nexport const catalogTableFeatures = tableFeatures({\n columnFilteringFeature,\n globalFilteringFeature,\n rowSortingFeature,\n filteredRowModel: createFilteredRowModel(),\n sortedRowModel: createSortedRowModel(),\n filterFns: {\n includesString: filterFn_includesString,\n arrIncludes: filterFn_arrIncludes,\n catalogSearch: catalogSearchFilter,\n },\n sortFns: { catalogSearch: catalogSearchSort },\n filterMeta: metaHelper<CatalogFilterMeta>(),\n});\n\nexport type CatalogTableFeatures = typeof catalogTableFeatures;\n\n/**\n * `useCatalogTable` is `useTable` with the catalog features and the global\n * search filter pre-bound; `createCatalogColumnHelper<T>()` only needs the row\n * type. Consumers building their own catalog UI get the same hook the compound\n * components use.\n */\nexport const { useAppTable: useCatalogTable, createAppColumnHelper: createCatalogColumnHelper } =\n createTableHook({\n features: catalogTableFeatures,\n globalFilterFn: \"catalogSearch\",\n // Passed explicitly: `createTableHook` has no defaults for its component\n // generics, so omitting these infers `Record<string, ComponentType<any>>`,\n // and that index signature is intersected into the table type in the\n // emitted declarations. Any property that does not exist on the table\n // (e.g. the removed v8 `getState()`) then types as `ComponentType<any>`\n // instead of failing with \"property does not exist\".\n tableComponents: {},\n cellComponents: {},\n headerComponents: {},\n });\n"],"mappings":";;;;;;;;;;;AAyBA,MAAa,uBAAuB,cAAc;CAChD;CACA;CACA;CACA,kBAAkB,wBAAwB;CAC1C,gBAAgB,sBAAsB;CACtC,WAAW;EACT,gBAAgB;EAChB,aAAa;EACb,eAAe;EAChB;CACD,SAAS,EAAE,eAAe,mBAAmB;CAC7C,YAAY,YAA+B;CAC5C,CAAC;;;;;;;AAUF,MAAa,EAAE,aAAa,iBAAiB,uBAAuB,8BAClE,gBAAgB;CACd,UAAU;CACV,gBAAgB;CAOhB,iBAAiB,EAAE;CACnB,gBAAgB,EAAE;CAClB,kBAAkB,EAAE;CACrB,CAAC"}
@@ -29,7 +29,7 @@ declare function useEffectCatalogTable(config?: {
29
29
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
30
30
  };
31
31
  filterMeta: CatalogFilterMeta;
32
- }, SheetEffectCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>;
32
+ }, SheetEffectCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, {}, {}, {}>;
33
33
  cards: EffectCardData[];
34
34
  cardsByCategory: {
35
35
  category: SheetEffectCategory;
@@ -37,7 +37,7 @@ declare function usePipeCatalogTable(config?: {
37
37
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
38
38
  };
39
39
  filterMeta: CatalogFilterMeta;
40
- }, PipeEntryWithLatestVersion, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>;
40
+ }, PipeEntryWithLatestVersion, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, {}, {}, {}>;
41
41
  cards: PipeCardData[];
42
42
  cardsByCategory: {
43
43
  category: PipeCategory;
@@ -32,7 +32,7 @@ declare function useSearchCatalogTable(config?: {
32
32
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
33
33
  };
34
34
  filterMeta: CatalogFilterMeta;
35
- }, SearchCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>;
35
+ }, SearchCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, {}, {}, {}>;
36
36
  cards: SearchCardData[];
37
37
  cardsByCategory: {
38
38
  category: SearchCategory;
@@ -26,7 +26,7 @@ declare function useSearchesCatalogTable(config?: {
26
26
  catalogSearch: _$_tanstack_react_table0.SortFn<CatalogSearchFeatures, _$_tanstack_react_table0.RowData>;
27
27
  };
28
28
  filterMeta: CatalogFilterMeta;
29
- }, SearchesCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>, Record<string, _$react.ComponentType<any>>>;
29
+ }, SearchesCatalogTableData, _$_tanstack_react_table0.TableState_ColumnFiltering & _$_tanstack_react_table0.TableState_GlobalFiltering & _$_tanstack_react_table0.TableState_RowSorting, {}, {}, {}>;
30
30
  cards: SearchesCardData[];
31
31
  cardsByCategory: {
32
32
  category: SearchCategory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe0/react",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "React component library for building forms and catalogs powered by pipe0 pipes and searches.",
5
5
  "license": "MIT",
6
6
  "author": "pipe0",
@@ -85,7 +85,7 @@
85
85
  "react-hook-form": "^7.62.0",
86
86
  "swr": "^2.4.1",
87
87
  "tailwind-merge": "^3.3.1",
88
- "@pipe0/base": "1.0.30"
88
+ "@pipe0/base": "1.0.31"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@base-ui/react": "^1.6.0",