@molecule/app-ui-react 4.1.4 → 4.1.5

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-16T01:09:18.688Z
6
+ Generated: 2026-11-17T00:23:31.724Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-ui-react
@@ -25,6 +25,13 @@ Server-backed boolean actions use `OptimisticToggleButton`: pass a loaded `value
25
25
  `inactiveLabel`. The label and pressed state change on the first tap; saves run in order
26
26
  and the newest failure rolls back. Mount after the initial record loads, key by record,
27
27
  and keep it mounted during refetches. Authorization and self-record checks stay in the app.
28
+ Each label names the complete action, including its target when useful: for a document,
29
+ `inactiveLabel="Favorite document"` and `activeLabel="Unfavorite document"`. A static
30
+ target label such as `"document"` does not tell the person which action the button performs.
31
+ Count-only/icon controls can pass their own React nodes and accessible labels. For a
32
+ POST/DELETE relationship, `createQueryResource().toggle(viewer, id, action, desired)` from
33
+ `@molecule/app-query` supplies the request direction; return the saved flag from `commit`.
34
+ A local menu or panel uses `Button`/`Switch` with local state and no server commit.
28
35
 
29
36
  > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
30
37
  > It is written to be read by coding agents as much as by people, and is generated from this
package/dist/index.d.ts CHANGED
@@ -16,6 +16,13 @@
16
16
  * `inactiveLabel`. The label and pressed state change on the first tap; saves run in order
17
17
  * and the newest failure rolls back. Mount after the initial record loads, key by record,
18
18
  * and keep it mounted during refetches. Authorization and self-record checks stay in the app.
19
+ * Each label names the complete action, including its target when useful: for a document,
20
+ * `inactiveLabel="Favorite document"` and `activeLabel="Unfavorite document"`. A static
21
+ * target label such as `"document"` does not tell the person which action the button performs.
22
+ * Count-only/icon controls can pass their own React nodes and accessible labels. For a
23
+ * POST/DELETE relationship, `createQueryResource().toggle(viewer, id, action, desired)` from
24
+ * `@molecule/app-query` supplies the request direction; return the saved flag from `commit`.
25
+ * A local menu or panel uses `Button`/`Switch` with local state and no server commit.
19
26
  *
20
27
  * @example
21
28
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -16,6 +16,13 @@
16
16
  * `inactiveLabel`. The label and pressed state change on the first tap; saves run in order
17
17
  * and the newest failure rolls back. Mount after the initial record loads, key by record,
18
18
  * and keep it mounted during refetches. Authorization and self-record checks stay in the app.
19
+ * Each label names the complete action, including its target when useful: for a document,
20
+ * `inactiveLabel="Favorite document"` and `activeLabel="Unfavorite document"`. A static
21
+ * target label such as `"document"` does not tell the person which action the button performs.
22
+ * Count-only/icon controls can pass their own React nodes and accessible labels. For a
23
+ * POST/DELETE relationship, `createQueryResource().toggle(viewer, id, action, desired)` from
24
+ * `@molecule/app-query` supplies the request direction; return the saved flag from `commit`.
25
+ * A local menu or panel uses `Button`/`Switch` with local state and no server commit.
19
26
  *
20
27
  * @example
21
28
  * ```tsx
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-ui-react",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "React UI primitive bundle for molecule.dev — Button, Modal, Tooltip, Toast, Alert, Card, Badge, Avatar, Tabs, Accordion, Dropdown, Select, Checkbox, Switch, Input, Table, Spinner, Skeleton, Progress and more. Import these primitives; do not rebuild them.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@molecule/app-i18n": "1.2.2",
46
46
  "@molecule/app-icons": "1.0.4",
47
- "@molecule/app-react": "4.7.1",
47
+ "@molecule/app-react": "4.7.2",
48
48
  "@testing-library/react": "16.3.3",
49
49
  "@types/node": "26.6.5",
50
50
  "@types/react": "19.3.0",