@vc-shell/framework 2.0.10-pr240.41fca76 → 2.0.10-pr242.2e7f6b3

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.
@@ -2,4 +2,6 @@ export { useBladeStack } from "../blade-navigation/useBladeStack";
2
2
  export { useBladeMessaging } from "../blade-navigation/useBladeMessaging";
3
3
  export * from "../blade-navigation/types";
4
4
  export { __registerBladeConfig, getBladeConfig, getAllBladeConfigs } from "../blade-navigation/bladeConfigRegistry";
5
+ export { useTableQueryState } from "../blade-navigation/table-query-state";
6
+ export type { UseTableQueryStateReturn, TableQueryPatch } from "../blade-navigation/table-query-state";
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/blade-navigation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/blade-navigation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAIvH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,YAAY,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./types";
2
2
  export * from "./serialization";
3
3
  export * from "./createBladeQueryState";
4
+ export * from "./useTableQueryState";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/blade-navigation/table-query-state/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/blade-navigation/table-query-state/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type TableQueryPatch } from "./types";
2
+ export interface UseTableQueryStateReturn {
3
+ /**
4
+ * Read the table view state (sort/search/page) restored from the URL for this
5
+ * table. Returns an empty patch when no persistence service is provided (a
6
+ * standalone table or a non-URL blade), so callers can use it unconditionally.
7
+ */
8
+ read(): TableQueryPatch;
9
+ }
10
+ /**
11
+ * Page-facing pull-accessor for restored table view state.
12
+ *
13
+ * A list page calls this in its `setup`, reads the restored `{ sort, search, page }`
14
+ * synchronously, and seeds its own refs BEFORE creating the single load watcher.
15
+ * That makes a reload cost exactly one request with the full criteria, instead of
16
+ * VcDataTable pushing separate restore events into the page's sort/search/pagination
17
+ * triggers (which fanned out into multiple uncoordinated loads).
18
+ *
19
+ * Read-only by design: the write-back (view state → URL) stays inside VcDataTable
20
+ * via `useTableQueryPersistence`, so pages never have to persist anything manually.
21
+ *
22
+ * @param stateKey The same `state-key` passed to VcDataTable for this table.
23
+ */
24
+ export declare function useTableQueryState(stateKey?: string): UseTableQueryStateReturn;
25
+ //# sourceMappingURL=useTableQueryState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableQueryState.d.ts","sourceRoot":"","sources":["../../../../core/blade-navigation/table-query-state/useTableQueryState.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,IAAI,IAAI,eAAe,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAM9E"}