@molecule/app-query-solid 1.2.0 → 1.3.0

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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-14T22:00:52.564Z
6
+ Generated: 2026-11-16T21:21:15.394Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-query-solid
@@ -45,7 +45,7 @@ its writes already publish the response and refresh its tracked collections.
45
45
  ```tsx
46
46
  import { Match, Show, Switch } from 'solid-js'
47
47
  import { getClient, isHttpError } from '@molecule/app-http'
48
- import { t } from '@molecule/app-i18n'
48
+ import { useTranslation } from '@molecule/app-solid'
49
49
  import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
50
50
 
51
51
  interface PackageDocument {
@@ -78,6 +78,7 @@ function PackageLink(props: { name: string }) {
78
78
  }
79
79
 
80
80
  function PackagePage(props: { name: string }) {
81
+ const { t } = useTranslation()
81
82
  // The options are an accessor, so a changed name (route param, input) re-keys
82
83
  // the observer on the same mounted component, the way React re-renders useQuery.
83
84
  const query = useQuery(() => packageQuery(props.name))
@@ -194,7 +195,7 @@ explicit `fetch()` retries into the mounted page.
194
195
 
195
196
  ```tsx
196
197
  import { getClient } from '@molecule/app-http'
197
- import { t } from '@molecule/app-i18n'
198
+ import { useTranslation } from '@molecule/app-solid'
198
199
  import { getQueryClient } from '@molecule/app-query'
199
200
 
200
201
  // The key names what the document actually depends on — here the signed-in
@@ -223,6 +224,7 @@ async function setFollowing(principal: string, authorId: string, follow: boolean
223
224
  }
224
225
 
225
226
  function Retry(props: { principal: string }) {
227
+ const { t } = useTranslation()
226
228
  return (
227
229
  <button
228
230
  onClick={() => {
@@ -434,6 +436,8 @@ interface QueryResource<T, Create = Partial<T>, Update = Partial<T>> {
434
436
  /**
435
437
  * `useQuery` options for the collection. `viewer` is who the answer is for (the signed-in id,
436
438
  * or `'anonymous'`); a page or filter change keeps the rows on screen until the next answer.
439
+ * One record per URL identity, retaining the first occurrence. Equal values without an
440
+ * addressable id remain separate. Writes already refresh the collection.
437
441
  */
438
442
  list(viewer: string, params?: Record<string, unknown>): QueryOptions<T[]>
439
443
  /**
@@ -544,6 +548,16 @@ A loaded document owns its controls; absent documents expose only status content
544
548
 
545
549
  ```typescript
546
550
  interface QueryContentProps<T> {
551
+ /**
552
+ * One optional empty branch, exclusive with children. The pure predicate reads the
553
+ * loaded document (an array or an application-owned envelope); render selects the
554
+ * current view's message and recovery action. Omit it to keep empty arrays as data.
555
+ */
556
+ empty?: {
557
+ when: (data: NonNullable<T>) => boolean
558
+ render: NonNullable<QueryContentProps<T>['children']>
559
+ }
560
+
547
561
  /** State from useQuery, or any compatible query observer. */
548
562
  query: Pick<QueryState<T>, 'data' | 'status' | 'error'>
549
563
  /**
@@ -875,3 +889,10 @@ a reader that finds the container and reads its paragraph must read the record,
875
889
  Keep every resource identity in the query key. A boundary cannot correct a query that supplies
876
890
  another record's cached data. For a list, map real rows inside the child; never style a status
877
891
  placeholder as a row. QueryContent is headless and owns no translations or styling.
892
+
893
+ For a collection, `QueryContent` also accepts one `empty` branch:
894
+ `{ when: page => page.rows.length === 0, render: page => selectedEmptyState }`.
895
+ It is exclusive with loaded children, so a selected view chooses its message and
896
+ recovery action once rather than rendering a general empty message beside it.
897
+ `when` receives a loaded document; empty arrays remain data when this prop is omitted.
898
+ The render value uses this framework's existing children function, snippet or template.
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@
31
31
  * ```tsx
32
32
  * import { Match, Show, Switch } from 'solid-js'
33
33
  * import { getClient, isHttpError } from '@molecule/app-http'
34
- * import { t } from '@molecule/app-i18n'
34
+ * import { useTranslation } from '@molecule/app-solid'
35
35
  * import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
36
36
  *
37
37
  * interface PackageDocument {
@@ -64,6 +64,7 @@
64
64
  * }
65
65
  *
66
66
  * function PackagePage(props: { name: string }) {
67
+ * const { t } = useTranslation()
67
68
  * // The options are an accessor, so a changed name (route param, input) re-keys
68
69
  * // the observer on the same mounted component, the way React re-renders useQuery.
69
70
  * const query = useQuery(() => packageQuery(props.name))
@@ -183,7 +184,7 @@
183
184
  *
184
185
  * ```tsx
185
186
  * import { getClient } from '@molecule/app-http'
186
- * import { t } from '@molecule/app-i18n'
187
+ * import { useTranslation } from '@molecule/app-solid'
187
188
  * import { getQueryClient } from '@molecule/app-query'
188
189
  *
189
190
  * // The key names what the document actually depends on — here the signed-in
@@ -212,6 +213,7 @@
212
213
  * }
213
214
  *
214
215
  * function Retry(props: { principal: string }) {
216
+ * const { t } = useTranslation()
215
217
  * return (
216
218
  * <button
217
219
  * onClick={() => {
@@ -422,6 +424,13 @@
422
424
  * another record's cached data. For a list, map real rows inside the child; never style a status
423
425
  * placeholder as a row. QueryContent is headless and owns no translations or styling.
424
426
  *
427
+ * For a collection, `QueryContent` also accepts one `empty` branch:
428
+ * `{ when: page => page.rows.length === 0, render: page => selectedEmptyState }`.
429
+ * It is exclusive with loaded children, so a selected view chooses its message and
430
+ * recovery action once rather than rendering a general empty message beside it.
431
+ * `when` receives a loaded document; empty arrays remain data when this prop is omitted.
432
+ * The render value uses this framework's existing children function, snippet or template.
433
+ *
425
434
  * @module
426
435
  */
427
436
  export * from './list-query.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAA"}
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@
31
31
  * ```tsx
32
32
  * import { Match, Show, Switch } from 'solid-js'
33
33
  * import { getClient, isHttpError } from '@molecule/app-http'
34
- * import { t } from '@molecule/app-i18n'
34
+ * import { useTranslation } from '@molecule/app-solid'
35
35
  * import { intentPrefetchProps, useQuery } from '@molecule/app-query-solid'
36
36
  *
37
37
  * interface PackageDocument {
@@ -64,6 +64,7 @@
64
64
  * }
65
65
  *
66
66
  * function PackagePage(props: { name: string }) {
67
+ * const { t } = useTranslation()
67
68
  * // The options are an accessor, so a changed name (route param, input) re-keys
68
69
  * // the observer on the same mounted component, the way React re-renders useQuery.
69
70
  * const query = useQuery(() => packageQuery(props.name))
@@ -183,7 +184,7 @@
183
184
  *
184
185
  * ```tsx
185
186
  * import { getClient } from '@molecule/app-http'
186
- * import { t } from '@molecule/app-i18n'
187
+ * import { useTranslation } from '@molecule/app-solid'
187
188
  * import { getQueryClient } from '@molecule/app-query'
188
189
  *
189
190
  * // The key names what the document actually depends on — here the signed-in
@@ -212,6 +213,7 @@
212
213
  * }
213
214
  *
214
215
  * function Retry(props: { principal: string }) {
216
+ * const { t } = useTranslation()
215
217
  * return (
216
218
  * <button
217
219
  * onClick={() => {
@@ -422,6 +424,13 @@
422
424
  * another record's cached data. For a list, map real rows inside the child; never style a status
423
425
  * placeholder as a row. QueryContent is headless and owns no translations or styling.
424
426
  *
427
+ * For a collection, `QueryContent` also accepts one `empty` branch:
428
+ * `{ when: page => page.rows.length === 0, render: page => selectedEmptyState }`.
429
+ * It is exclusive with loaded children, so a selected view chooses its message and
430
+ * recovery action once rather than rendering a general empty message beside it.
431
+ * `when` receives a loaded document; empty arrays remain data when this prop is omitted.
432
+ * The render value uses this framework's existing children function, snippet or template.
433
+ *
425
434
  * @module
426
435
  */
427
436
  export * from './list-query.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkbG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-content.d.ts","sourceRoot":"","sources":["../src/query-content.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAc,KAAK,GAAG,EAAQ,MAAM,UAAU,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAqBxE"}
1
+ {"version":3,"file":"query-content.d.ts","sourceRoot":"","sources":["../src/query-content.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAc,KAAK,GAAG,EAAQ,MAAM,UAAU,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAsBxE"}
@@ -26,7 +26,7 @@ export function QueryContent(props) {
26
26
  // Boxed, so a loaded `false`, `0` or `''` is still a truthy `when` for <Show>.
27
27
  const loaded = createMemo(() => {
28
28
  const data = props.query.data;
29
- return data === undefined || data === null ? undefined : { data };
29
+ return data === undefined || data === null || props.empty?.when(data) ? undefined : { data };
30
30
  });
31
31
  // Rendered only while nothing is loaded: a failed REFRESH of cached data never calls `error`.
32
32
  const fallback = createMemo(() => {
@@ -35,7 +35,7 @@ export function QueryContent(props) {
35
35
  if (data === null)
36
36
  return props.missing ?? null;
37
37
  if (data !== undefined)
38
- return null;
38
+ return props.empty?.when(data) ? props.empty.render(() => props.query.data) : null;
39
39
  return query.status === 'error' && props.error
40
40
  ? props.error(query.error)
41
41
  : (props.pending ?? null);
@@ -1 +1 @@
1
- {"version":3,"file":"query-content.jsx","sourceRoot":"","sources":["../src/query-content.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAY,IAAI,EAAE,MAAM,UAAU,CAAA;AAIrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,YAAY,CAAI,KAA2B;IACzD,+EAA+E;IAC/E,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE;QAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAA;QAC7B,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAA;IACnE,CAAC,CAAC,CAAA;IACF,8FAA8F;IAC9F,MAAM,QAAQ,GAAG,UAAU,CAAc,GAAG,EAAE;QAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QACzB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACvB,IAAI,IAAI,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC,OAAO,IAAI,IAAI,CAAA;QAC/C,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,IAAI,CAAA;QACnC,OAAO,KAAK,CAAC,MAAM,KAAK,OAAO,IAAI,KAAK,CAAC,KAAK;YAC5C,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAC1B,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,CAAA;IAC7B,CAAC,CAAC,CAAA;IACF,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE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AAA;QACrF,OAAO,KAAK,CAAC,MAAM,KAAK,OAAO,IAAI,KAAK,CAAC,KAAK;YAC5C,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAC1B,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,CAAA;IAC7B,CAAC,CAAC,CAAA;IACF,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CACzC;MAAA,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAC5C;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC"}
package/dist/types.d.ts CHANGED
@@ -34,6 +34,15 @@ export interface UseQueryResult<T> extends QueryState<T> {
34
34
  }
35
35
  /** A loaded document owns its controls; absent documents expose only status content. */
36
36
  export interface QueryContentProps<T> {
37
+ /**
38
+ * One optional empty branch, exclusive with children. The pure predicate reads the
39
+ * loaded document (an array or an application-owned envelope); render selects the
40
+ * current view's message and recovery action. Omit it to keep empty arrays as data.
41
+ */
42
+ empty?: {
43
+ when: (data: NonNullable<T>) => boolean;
44
+ render: NonNullable<QueryContentProps<T>['children']>;
45
+ };
37
46
  /** State from useQuery, or any compatible query observer. */
38
47
  query: Pick<QueryState<T>, 'data' | 'status' | 'error'>;
39
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD;;;;;GAKG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,UA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C,KAAK,IAAI,CAAA;IAC1E;;;;;OAKG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;CACtC;AAED,wFAAwF;AACxF,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,OAAO,CAAA;QACvC,MAAM,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;KACtD,CAAA;IAED,6DAA6D;IAC7D,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAA;IACvD;;;;OAIG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAA;IACzD,uFAAuF;IACvF,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,qFAAqF;IACrF,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC,OAAO,CAAA;CACxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-query-solid",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Solid hooks for @molecule/app-query — read a cached document synchronously, observe it, and prefetch on intent",
5
5
  "homepage": "https://www.molecule.dev/packages/app-query-solid",
6
6
  "type": "module",
@@ -50,14 +50,14 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@molecule/app-framework-conformance": "0.0.0",
53
- "@molecule/app-i18n": "1.2.1",
53
+ "@molecule/app-i18n": "1.2.2",
54
54
  "@molecule/app-icons": "1.0.4",
55
- "@molecule/app-query": "1.2.0",
56
- "@molecule/app-query-memory": "1.0.5",
57
- "@molecule/app-query-tanstack": "1.0.5",
58
- "@molecule/app-solid": "3.6.0",
59
- "@molecule/app-ui": "1.3.11",
60
- "@molecule/app-ui-solid": "1.1.2",
55
+ "@molecule/app-query": "1.3.1",
56
+ "@molecule/app-query-memory": "1.1.0",
57
+ "@molecule/app-query-tanstack": "1.1.0",
58
+ "@molecule/app-solid": "3.7.1",
59
+ "@molecule/app-ui": "1.4.0",
60
+ "@molecule/app-ui-solid": "1.1.4",
61
61
  "@types/node": "26.6.5",
62
62
  "jsdom": "30.1.3",
63
63
  "solid-js": "1.9.17",