@abpjs/ui 0.2.0-next.2 → 0.2.0-next.21
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/CHANGELOG.md +200 -0
- package/dist/agent.d.ts +742 -0
- package/dist/agent.js +2136 -0
- package/dist/agent.js.map +1 -0
- package/dist/ai.d.ts +113 -23
- package/dist/ai.js +247 -112
- package/dist/ai.js.map +1 -1
- package/dist/guard.d.ts +1608 -0
- package/dist/guard.js +3639 -0
- package/dist/guard.js.map +1 -0
- package/dist/index.d.ts +348 -22
- package/dist/index.js +2398 -1209
- package/dist/index.js.map +1 -1
- package/dist/rules.d.ts +23 -1
- package/dist/rules.js +35 -0
- package/dist/rules.js.map +1 -1
- package/package.json +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,205 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.21
|
|
4
|
+
|
|
5
|
+
A prerelease under npm's `next` tag.
|
|
6
|
+
|
|
7
|
+
- agent: the default texts name no host's things: a scope is a "project", as in `ai`, and what a run or a note is about
|
|
8
|
+
is an "item". A host with other words gives them through `AbpHost.texts.agent`. 17 texts the area never used are gone.
|
|
9
|
+
|
|
10
|
+
## 0.2.0-next.20
|
|
11
|
+
|
|
12
|
+
A prerelease under npm's `next` tag.
|
|
13
|
+
|
|
14
|
+
- guard: `guardPages` weighs its pages so the menu reads accounts, groups, directories, sign-up, anonymous access
|
|
15
|
+
(settings sort heavier first); next.19 read them the other way round.
|
|
16
|
+
|
|
17
|
+
## 0.2.0-next.19
|
|
18
|
+
|
|
19
|
+
A prerelease under npm's `next` tag.
|
|
20
|
+
|
|
21
|
+
- guard: `guardPages(options)`, the five `SettingsPage` entries (accounts, groups, directories, sign-up, anonymous
|
|
22
|
+
access) on a base path, each drawing its list or item from the catch-all's path; `directories: false` for a server
|
|
23
|
+
with Guard's directories off. Sign-up reads its directories from its settings (AbpGuard 0.8.3; `/directories` before
|
|
24
|
+
it), and `directoriesPage` drops the hint about a page the host doesn't have. No Delete on the system groups
|
|
25
|
+
(`isSystemGroup`). A merge's `?into=` is read so the server and the browser render it alike.
|
|
26
|
+
|
|
27
|
+
## 0.2.0-next.18
|
|
28
|
+
|
|
29
|
+
A prerelease under npm's `next` tag.
|
|
30
|
+
|
|
31
|
+
- `AbpProvider`'s `useServerInsertedHTML`: a framework's hook for HTML in the page's head while it streams (Next's).
|
|
32
|
+
With it, Emotion's styles go to the head on the server (`EmotionRegistry`), so the first render hydrates without a
|
|
33
|
+
mismatch where Chakra's global styles met next-themes' script. Without it, nothing changes. `@emotion/cache` is a
|
|
34
|
+
dependency.
|
|
35
|
+
- `AbpLabelsInput`, what `AbpProvider`'s `labels` takes: any label, and any of a group's (`queryList`,
|
|
36
|
+
`translations`, `picker`), the rest the defaults, so a group the package adds needs nothing from a host that doesn't
|
|
37
|
+
use it.
|
|
38
|
+
|
|
39
|
+
## 0.2.0-next.17
|
|
40
|
+
|
|
41
|
+
A prerelease under npm's `next` tag.
|
|
42
|
+
|
|
43
|
+
- guard: a second slot in an account's header, `guard.account.actions.end` (`{ account, detail, reload }`), after the
|
|
44
|
+
area's merge and lock, so a host's destructive action (an erasure) stays last.
|
|
45
|
+
|
|
46
|
+
## 0.2.0-next.16
|
|
47
|
+
|
|
48
|
+
A prerelease under npm's `next` tag.
|
|
49
|
+
|
|
50
|
+
- guard: `CreateAccountPanel` and `CreateGroupPanel` exported, for a host that keeps its own accounts or groups list
|
|
51
|
+
(saved views, column choice) and takes the rest of the area.
|
|
52
|
+
|
|
53
|
+
## 0.2.0-next.15
|
|
54
|
+
|
|
55
|
+
A prerelease under npm's `next` tag.
|
|
56
|
+
|
|
57
|
+
- guard: a person's own second factors (`MySecondFactorsPanel`): passkeys added, renamed and removed, the authenticator
|
|
58
|
+
app set up, factors removed, new recovery codes; the step-ups through the foundation's dialog. `StrongFactorBanner`
|
|
59
|
+
for a site admin's strong-factor deadline, from the host's `me`. A host names its own code senders through
|
|
60
|
+
`secondFactor.sender.{method}`. The area uses the foundation's `ListFooter` and `useSettledValue`.
|
|
61
|
+
|
|
62
|
+
## 0.2.0-next.14
|
|
63
|
+
|
|
64
|
+
A prerelease under npm's `next` tag: the third area, `guard`.
|
|
65
|
+
|
|
66
|
+
- **`@abpjs/ui/guard`** on AbpGuard.HttpApi 0.7.1: accounts (searched, filtered and sorted a page at a time; an
|
|
67
|
+
account's name, addresses, second factor, identities, groups and merges; lock, unlock, merge with its preview),
|
|
68
|
+
accounts that share an address, groups (names by language, members, parents, nested groups, second factor,
|
|
69
|
+
organizations), directories (their order, settings, connection and sign-in tests, syncs), sign-up and anonymous
|
|
70
|
+
access. Right `guard.site.admin`; an account's own actions follow its `can` (AbpGuard 0.8.2), the right until then.
|
|
71
|
+
Slots: `guard.account.actions`, `guard.account.notices`, `guard.account.panels`, `guard.directory.panel`,
|
|
72
|
+
`guard.directory.presets`. Types from abp-guard's own document. A person's own second factors and passkeys come later.
|
|
73
|
+
- `ListFooter({ list })`: a paged list's pages and its "26–50 of 112", in the `queryList` labels.
|
|
74
|
+
- `useSettledValue(value, ms)`: a value once it has stood still (what's typed, before a search).
|
|
75
|
+
|
|
76
|
+
## 0.2.0-next.13
|
|
77
|
+
|
|
78
|
+
A prerelease under npm's `next` tag: pickers and names by language, for the `guard` area and the hosts.
|
|
79
|
+
|
|
80
|
+
- `SearchPicker`: one item picked from a searchable list (an ARIA combobox): a search as the person types, items
|
|
81
|
+
already known, an empty choice, making one from the text typed, every match bold (`Highlight`). `PersonPicker` (name
|
|
82
|
+
and @username, a `badge` for an agent's account) and `GroupPicker` take their `search` from the area or the host.
|
|
83
|
+
Their words are the labels' new `picker` group.
|
|
84
|
+
- `TranslatedInput`: a name in every language the host offers (`AbpHost.languages`, which gains `englishName`), the
|
|
85
|
+
reader's inline and the others behind a button counting them, each typed in its direction. Where the host has
|
|
86
|
+
`suggestNames(text, signal)` (`NameSuggestion`), names already translated are offered while typing. Its words are the
|
|
87
|
+
labels' new `translations` group.
|
|
88
|
+
- `@abpjs/ui/rules`: `toNamesValue(name, names, written)` and `fromNamesValue(value, written)` between a written name
|
|
89
|
+
with its other languages and the one map `TranslatedInput` edits.
|
|
90
|
+
|
|
91
|
+
## 0.2.0-next.12
|
|
92
|
+
|
|
93
|
+
A prerelease under npm's `next` tag: lists served a page at a time.
|
|
94
|
+
|
|
95
|
+
- `useListState(source)`: a list's page, page size, sort, search (asked once typing settles) and filters, from a
|
|
96
|
+
`ListSource` (`{ key, load(query, signal) }`); a change goes back to the first page, only the latest answer counts,
|
|
97
|
+
and the previous rows stay while the next page comes (`refreshing`). `table` and `pagination` are the props for
|
|
98
|
+
`DataTable` (manual sort) and `Pagination`; `onQueryChange` for a screen that keeps the list's place in its address.
|
|
99
|
+
- `abpListSource(request, path, options)` and `useAreaListSource(area, path, options)`: a list in ABP's shape
|
|
100
|
+
(`skipCount`, `maxResultCount`, `sorting`, `filter` in; `{ totalCount, items }` out), with `abpListParams`. A host
|
|
101
|
+
gives an area its own source (a query engine, saved views) in place of the package's.
|
|
102
|
+
|
|
103
|
+
## 0.2.0-next.11
|
|
104
|
+
|
|
105
|
+
A prerelease under npm's `next` tag: the first of the `guard` area's building blocks.
|
|
106
|
+
|
|
107
|
+
- `@abpjs/ui/rules`: names by language (`Names`, `languageChain(locale, default)`, `pickName(chain, names, fallback)`)
|
|
108
|
+
and `splitList` (a comma- or line-separated list, trimmed).
|
|
109
|
+
|
|
110
|
+
## 0.2.0-next.10
|
|
111
|
+
|
|
112
|
+
A prerelease under npm's `next` tag.
|
|
113
|
+
|
|
114
|
+
- ai: a scope's page (`AiScopeScreen`) no longer shows a named account's or group's limit (an agent's own, say) as
|
|
115
|
+
the site's or the scope's: those are counted on one line ("3 accounts and groups have limits of their own."), and a
|
|
116
|
+
person's default reads "Cost per day for each person: 1". `namedLimit` tells them apart.
|
|
117
|
+
|
|
118
|
+
## 0.2.0-next.9
|
|
119
|
+
|
|
120
|
+
A prerelease under npm's `next` tag, from moving the first host's agent pages onto `agent` with no visible change.
|
|
121
|
+
|
|
122
|
+
- agent: a slot `agent.names` (`{ label, value, onChange, placeholder, fallback, kind }`) for a host's own field for
|
|
123
|
+
names by language; `ToolGroupsProvider` (`ToolGroupOf`) for the host's own groups of tools (its skills, an outside
|
|
124
|
+
server's tools), after the host's and plugins' and before the sandbox's; `agent.tools.extra` gets `listed` and
|
|
125
|
+
`loading`.
|
|
126
|
+
- agent: a read-only opt-in tool is Off/On; `AgentEditor variant="scope"` (a scope's own agent, its settings alone),
|
|
127
|
+
used by `ScopeAgentsScreen`; a scope's key in the agents list sits at the cell's start in right-to-left pages, and
|
|
128
|
+
`ItemLink` keeps the page's direction when it wraps words (a bare key stays left to right).
|
|
129
|
+
|
|
130
|
+
## 0.2.0-next.8
|
|
131
|
+
|
|
132
|
+
A prerelease under npm's `next` tag: the third area, `agent`.
|
|
133
|
+
|
|
134
|
+
- **`@abpjs/ui/agent`** on AbpAgent.HttpApi 0.6.1: the site's switch and agents (`agentPages`, `AgentsAdmin`), a scope's
|
|
135
|
+
own agents (`ScopeAgentsScreen`), one agent's settings (form, tools, run limits, memories, its graph), standing
|
|
136
|
+
permissions, an item's runs and their questions, the questions waiting for the person, and the chat beside any page
|
|
137
|
+
(`AgentChatProvider`, `AgentChatPanel`, `useAgentChat().open(...)`), live through the host's events or polling every
|
|
138
|
+
2 s. Rights `agent.site.admin`, `agent.scope.admin`. Slots for what stays the host's: `agent.markdown`,
|
|
139
|
+
`agent.run.actions`, `agent.picture`, `agent.connections`, `agent.tools.extra`, `agent.limits.extra`,
|
|
140
|
+
`agent.switch.extra`. Items open where the host says (`itemHref`, `ItemHrefProvider`). The graph uses React Flow
|
|
141
|
+
(`@xyflow/react`, `@dagrejs/dagre`): a host that shows it imports `@xyflow/react/dist/style.css` once.
|
|
142
|
+
|
|
143
|
+
## 0.2.0-next.7
|
|
144
|
+
|
|
145
|
+
A prerelease under npm's `next` tag.
|
|
146
|
+
|
|
147
|
+
- Exports the passkey helpers next.5 described and didn't export: `createPasskey`, `getPasskey`, `passkeysSupported`.
|
|
148
|
+
|
|
149
|
+
## 0.2.0-next.6
|
|
150
|
+
|
|
151
|
+
A prerelease under npm's `next` tag.
|
|
152
|
+
|
|
153
|
+
- `StepUpDialog`: an authenticator code alone where the server lets one pass (`appCodeAlone` in `step_up_required`'s
|
|
154
|
+
data, the operator's setting): the strong level asks for the code alone (a passkey still first when the person has
|
|
155
|
+
one), and the password level offers it instead of the password. Without the field, a code goes with the password, as
|
|
156
|
+
before. `StepUpNeed.appCodeAlone`.
|
|
157
|
+
|
|
158
|
+
## 0.2.0-next.5
|
|
159
|
+
|
|
160
|
+
A prerelease under npm's `next` tag: the step-up dialog for AbpGuard 0.7.0's strong step-up and passkeys. Against an
|
|
161
|
+
older AbpGuard nothing changes (no level means the password level).
|
|
162
|
+
|
|
163
|
+
- `StepUpDialog` reads the level the server asks for (`step_up_required` with `level`, `methods`). At `strong`, it
|
|
164
|
+
offers a passkey first when the person has one, or the password with an authenticator code. Asked of someone with no
|
|
165
|
+
strong factor (`strong_factor_required`), it takes the password, then sets up a passkey or the app (QR and key) right
|
|
166
|
+
there, with the recovery codes shown once for a first factor; the call then asks again and they confirm with it.
|
|
167
|
+
- Passkeys in the browser's own JSON both ways (`createPasskey`, `getPasskey`, `passkeysSupported`), with a base64url
|
|
168
|
+
fallback for browsers without `PublicKeyCredential.parse*FromJSON`.
|
|
169
|
+
- `requestStepUp(need)` and `StepUpHandler` take the server's need (`StepUpNeed`, `stepUpNeedOf`). `createHostRequest`
|
|
170
|
+
and `createHostEvents` pass it on and ask again when the server asks for more (a factor set up, then the strong step-up),
|
|
171
|
+
up to three times. `HostRequestInit.stepUp: false` throws a step-up refusal instead of asking (the dialog's own calls).
|
|
172
|
+
`needsStepUp` and `STRONG_FACTOR_REQUIRED` beside `isStepUp`.
|
|
173
|
+
- `createHostEvents` asks the step-up dialog by default, as `createHostRequest` does.
|
|
174
|
+
|
|
175
|
+
## 0.2.0-next.4
|
|
176
|
+
|
|
177
|
+
A prerelease under npm's `next` tag, for a host's scope page on the `ai` area.
|
|
178
|
+
|
|
179
|
+
- ai: `ai.models.can`'s context names the scope too (`scopeId`), so a host that keeps the connections reads that
|
|
180
|
+
scope's own record of what its models can do on a scope's screen.
|
|
181
|
+
- ai: `AiScopeScreen` takes the host's page `header`, drawn first in its own column, so a host's page keeps one column.
|
|
182
|
+
|
|
183
|
+
## 0.2.0-next.3
|
|
184
|
+
|
|
185
|
+
A prerelease under npm's `next` tag. The `ai` area now needs **AbpAi.HttpApi 0.8.0** on the server: stay on next.2
|
|
186
|
+
until the server moves.
|
|
187
|
+
|
|
188
|
+
- Area requests stay the same across host objects: `useAreaRequest`, `useAreaEvents` and `useNames` read the host
|
|
189
|
+
through a ref, so a host built afresh on each render no longer makes every query ask again (a tab switch included).
|
|
190
|
+
- `readAbpError` reads a refusal at the top level (`{ code, message, ... }`, AbpAi's 422s) with the rest as its data,
|
|
191
|
+
instead of showing the status.
|
|
192
|
+
- `AppShell` on a phone: the drawer shows the place's card (name, detail, link) and the sidebar's `top` between the
|
|
193
|
+
site's pages and the place's, as the sidebar does, instead of only the place's name as a heading. The drawer is
|
|
194
|
+
named for screen readers (`labels.navigation`).
|
|
195
|
+
- `StepUpDialog`: its explanation fits any protected action ("This action is protected…"), not only rights and secrets.
|
|
196
|
+
- **ai on AbpAi.HttpApi 0.8.0** (its minimum now): a scope's screen reads the scope's view, so a scope's admin sees
|
|
197
|
+
the models open to it and the aliases and limits from above; the quick call through an alias is the area's own
|
|
198
|
+
(`TryPanel`, `POST try`), so the `ai.try` slot goes; whether the host keeps the connections comes from the server
|
|
199
|
+
(`connectionsKeptByHost`), the host's right only for a server that doesn't say; usage names people as the server
|
|
200
|
+
does, and a call an agent made for someone shows that person first, the agent beside them; the Projects tab asks each
|
|
201
|
+
scope's limits once.
|
|
202
|
+
|
|
3
203
|
## 0.2.0-next.2
|
|
4
204
|
|
|
5
205
|
A prerelease under npm's `next` tag.
|