@aiquants/auth-react-router 0.17.0 → 0.19.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 +17 -10
- package/dist/admin.d.mts +0 -1
- package/dist/admin.d.ts +0 -1
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -110,8 +110,8 @@ carry language, and they are **different axes**:
|
|
|
110
110
|
|
|
111
111
|
- **`locale`** is forwarded to both `@aiquants/select-box` pickers (the create-group dialog and the directory link
|
|
112
112
|
form). The picker strings this package owns (`directoryView.pickerNoOptions` / `pickerClear` / `pickerToggle` /
|
|
113
|
-
`pickerSelected`
|
|
114
|
-
|
|
113
|
+
`pickerSelected`) are passed as the picker's `labels`, the placeholder is the per-instance `placeholder` prop, and
|
|
114
|
+
every other key comes from the select-box catalog of `locale` (the values below are those of
|
|
115
115
|
`defaultUserAdminLabels` / `jaUserAdminLabels` and of select-box 0.11.0):
|
|
116
116
|
|
|
117
117
|
| select-box key | Source | `"en"` | `"ja"` |
|
|
@@ -120,7 +120,7 @@ carry language, and they are **different axes**:
|
|
|
120
120
|
| `clear` | `directoryView.pickerClear` | Clear the selection | 選択を解除 |
|
|
121
121
|
| `toggle` | `directoryView.pickerToggle` | Show the group list | グループ一覧を開く |
|
|
122
122
|
| `selection` | `directoryView.pickerSelected` (`{value}` = the picked option's label) | Selected: {value} | 選択中: {value} |
|
|
123
|
-
| `status` |
|
|
123
|
+
| `status` | select-box catalog (live-region announcement; see below) | 2 options / 3 options, 2 available | 候補 2 件 / 候補 3 件・選べるもの 2 件 |
|
|
124
124
|
| `placeholder` | `placeholder` prop: `groupsView.pickUpstreamPlaceholder` (dialog) / `directoryView.pickUpstreamPlaceholder` (link form) | Search by name or address... | 名前かアドレスで検索... |
|
|
125
125
|
| `scrollUp` | select-box catalog | Scroll up | 上へスクロール |
|
|
126
126
|
| `scrollDown` | select-box catalog | Scroll down | 下へスクロール |
|
|
@@ -136,6 +136,14 @@ carry language, and they are **different axes**:
|
|
|
136
136
|
|
|
137
137
|
To change a catalog-sourced string, there is no per-key override here: pick the `locale` whose catalog you want.
|
|
138
138
|
|
|
139
|
+
The live-region announcement (`status`) is not overridden, so select-box owns its whole policy in one place: silent
|
|
140
|
+
while the popup is closed, while rows may still come and while the query is being typed; `pickerNoOptions` (the
|
|
141
|
+
resolved `noOptions`) when no row is listed; otherwise the listed count alone when every row is selectable, or the
|
|
142
|
+
count followed by how many are selectable when some are not (already-linked upstream groups are listed but disabled):
|
|
143
|
+
the available rows for a blank query ("3 options, 2 available" / 「候補 3 件・選べるもの 2 件」), the available matches
|
|
144
|
+
for a typed one ("3 options, 2 available matches" / 「候補 3 件・選べる一致 2 件」). The examples in the table are
|
|
145
|
+
the blank-query phrases.
|
|
146
|
+
|
|
139
147
|
- `resolveUserAdminLabels` (run once when `createUserAdminApp` is built) **validates `locale`**: an omitted value keeps
|
|
140
148
|
the English default `"en"`; `"en"` / `"ja"` pass; anything else (`"ja-JP"`, `"EN"`, `""`, `null`, ...) throws
|
|
141
149
|
`RangeError` naming `labels.formatLocale`, so a mistake stops the app at startup instead of crashing the picker on
|
|
@@ -253,10 +261,9 @@ the host, or the group picker's dropdown renders unstyled:
|
|
|
253
261
|
@import "@aiquants/select-box/styles/select-box.css";
|
|
254
262
|
```
|
|
255
263
|
|
|
256
|
-
That is the components-only build. Follow select-box
|
|
257
|
-
host imports it (and the `@aiquants/virtualscroll` peer build) in `layer(components)
|
|
258
|
-
|
|
259
|
-
`@aiquants/select-box/styles/select-box.standalone.css` instead.
|
|
264
|
+
That is the components-only build. Follow the README of the select-box version you install ("CSS Setup") for the rest
|
|
265
|
+
of your build: a Tailwind v4 host imports it (and the `@aiquants/virtualscroll` peer build) in `layer(components)`; a
|
|
266
|
+
host without Tailwind imports `@aiquants/select-box/styles/select-box.standalone.css` instead.
|
|
260
267
|
|
|
261
268
|
The option rows of both pickers are drawn by this package: each row shows the group name and address, a note (the local
|
|
262
269
|
group already linked to it, which makes the row unpickable, or else its member count when known), and the part of the
|
|
@@ -272,9 +279,9 @@ as a runtime resolution failure. `@aiquants/virtualscroll` is both: select-box r
|
|
|
272
279
|
this package imports it **directly** — `src/admin/labels.ts` resolves the UI language with
|
|
273
280
|
`resolveVirtualScrollLocale`, so `dist/admin.mjs` carries its specifier. The pickers use the `locale` / `labels` props
|
|
274
281
|
of `@aiquants/select-box` and its 0.11 render and typing contract (`RenderOptionContext.highlight`, and `value` /
|
|
275
|
-
`onChange` typed by the option type), plus the locale resolution of `@aiquants/virtualscroll` 3.7.0
|
|
276
|
-
|
|
277
|
-
|
|
282
|
+
`onChange` typed by the option type), plus the locale resolution of `@aiquants/virtualscroll` 3.7.0. The published manifest carries the versions the release
|
|
283
|
+
was built and tested with — select-box `^0.13.0`, fuzzy-search `^2.5.0`, virtualscroll `^3.9.1` — so a host installs at
|
|
284
|
+
least those (a 0.x minor is outside the caret range: a host on select-box 0.11 or 0.12 bumps it explicitly).
|
|
278
285
|
|
|
279
286
|
All three are **required** peers, not optional. `src/admin/views.tsx` imports `@aiquants/select-box` and
|
|
280
287
|
`src/admin/labels.ts` imports `@aiquants/virtualscroll` at the top level, and `./admin` re-exports both modules, so the
|
package/dist/admin.d.mts
CHANGED