@aiquants/auth-react-router 0.17.0 → 0.18.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
@@ -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` / `pickerAvailable`) are passed as the picker's `labels`, the placeholder is the per-instance
114
- `placeholder` prop, and every other key comes from the select-box catalog of `locale` (the values below are those of
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` | `directoryView.pickerAvailable` (`{count}` = options shown) | {count} groups available | 候補 {count} 件 |
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
package/dist/admin.d.mts CHANGED
@@ -199,7 +199,6 @@ type UserAdminLabels = {
199
199
  pickerClear: string;
200
200
  pickerToggle: string;
201
201
  pickerSelected: string;
202
- pickerAvailable: string;
203
202
  externalKeyPlaceholder: string;
204
203
  confirmLink: string;
205
204
  confirmUnlink: string;
package/dist/admin.d.ts CHANGED
@@ -199,7 +199,6 @@ type UserAdminLabels = {
199
199
  pickerClear: string;
200
200
  pickerToggle: string;
201
201
  pickerSelected: string;
202
- pickerAvailable: string;
203
202
  externalKeyPlaceholder: string;
204
203
  confirmLink: string;
205
204
  confirmUnlink: string;