@abpjs/ui 0.2.0-next.32 → 0.2.0-next.34
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 +47 -0
- package/dist/agent.d.ts +30 -4
- package/dist/agent.js +311 -102
- package/dist/agent.js.map +1 -1
- package/dist/guard.d.ts +10 -5
- package/dist/guard.js +544 -316
- package/dist/guard.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/languages.d.ts +162 -0
- package/dist/languages.js +771 -0
- package/dist/languages.js.map +1 -0
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.34
|
|
4
|
+
|
|
5
|
+
A prerelease under npm's `next` tag.
|
|
6
|
+
|
|
7
|
+
- `EmptyState variant="page"`: on a screen narrower than its drawing (375 px), the drawing is clipped at its faded
|
|
8
|
+
sides instead of pushing the page sideways.
|
|
9
|
+
- `FormDialog`: a change that puts a field right (picking in a select, typing the missing value) takes its red border
|
|
10
|
+
and its line in the "Fix these fields" summary away at once, rather than when the field is left. A field still wrong
|
|
11
|
+
keeps them until it's left.
|
|
12
|
+
- guard › Anonymous access, the design canvas's board:
|
|
13
|
+
- **Give a role** opens a wide `FormDialog`. The role and the place are chosen from AbpGuard's places
|
|
14
|
+
(`GET /anonymous/places`): a place offers only its own roles, and a role only the places offering it. The preview
|
|
15
|
+
shows anonymous visitors, the role, where, and what the role can do, beside the warning that anyone on the
|
|
16
|
+
internet gets it.
|
|
17
|
+
- The rows show the role as a tag, the place's name and code (as the places list names them), and since when.
|
|
18
|
+
- A row's menu changes the role in one step or removes it.
|
|
19
|
+
- With no roles given, the page is its empty state, with Give a role.
|
|
20
|
+
- A role already given in a place isn't offered there again, and a place with nothing left to give isn't offered.
|
|
21
|
+
Change role saves only a different role.
|
|
22
|
+
|
|
23
|
+
`roleDescription` joins `roleName` for a host's own roles. `anonymousRules.ts` holds the choosing, tested in
|
|
24
|
+
`tests/anonymous-rules.test.mjs`. New words: `giveRole`, `dialogTitle`, `changeTitle`, `chooseRole`, `chooseWhere`,
|
|
25
|
+
`warning`, `who`, `can`, `give`, `change`, `given`, `changed`, `emptyTitle`, `emptyText`, `emptyTextNoPlaces`,
|
|
26
|
+
`placeWithCode`, `tableLabel`, `actions`, `menuLabel` and `notListed`. `revoke`, `revokeTitle` and `revoked` now say Remove role, and `empty` is gone.
|
|
27
|
+
- `PreviewCard`: an item's `wrap` lets a long value (a description) run to three lines.
|
|
28
|
+
|
|
29
|
+
## 0.2.0-next.33
|
|
30
|
+
|
|
31
|
+
A prerelease under npm's `next` tag.
|
|
32
|
+
|
|
33
|
+
- The `languages` area, `@abpjs/ui/languages`: AbpLanguages' screens on AbpLanguages.HttpApi 0.7.0 (`paths.languages`,
|
|
34
|
+
`languages.site.admin`). `languagesPages` gives Settings one page: the site's languages (direction, fallback, how far
|
|
35
|
+
each is translated; add, edit, turn on or off, make the default, remove) and each language's translation editor
|
|
36
|
+
(every text beside its English source and what ships, filtered by status and catalog, searched, saved from a
|
|
37
|
+
`SaveBar`, exported and imported as a translator's file). `onChanged` lets the host read its languages and texts again
|
|
38
|
+
after a change, without starting the editor afresh; `mainCatalog` and `catalogName` name the catalogs; the
|
|
39
|
+
`languages.list.actions` slot takes the host's own links. Words in English and Arabic.
|
|
40
|
+
- `AgentPermissionsPanel` (the design canvas's "Agents you always allow"): one row per agent and scope, with who made
|
|
41
|
+
the agent, its tools together by title, the scope, since when and when last used; Remove takes the whole row back
|
|
42
|
+
after a confirm ("It will ask you again before using these tools"). On the person's page, "Allow an agent" opens a
|
|
43
|
+
dialog: the agent, the scope and "Tools without asking", only those AbpAgent says "Always" could answer for
|
|
44
|
+
(`me/permissions/allowable`), with the ones already given checked. On an agent's page, one row per person. Needs
|
|
45
|
+
AbpAgent.HttpApi 0.7.0. New and changed `permissions.*` agent texts; `permissions.what`, `forAgent`, `byPerson`,
|
|
46
|
+
`given`, `takeBack` and `takeBackTitle` are gone.
|
|
47
|
+
- The agent area's types are AbpAgent.HttpApi 0.7.0's (`AgentAllowablePlace`, `AgentAllowableAgent`,
|
|
48
|
+
`AgentAllowableTool`; `AgentPermissionInfo` gains `toolTitle`, `madeBy` and `agentNames`).
|
|
49
|
+
|
|
3
50
|
## 0.2.0-next.32
|
|
4
51
|
|
|
5
52
|
A prerelease under npm's `next` tag.
|
package/dist/agent.d.ts
CHANGED
|
@@ -87,6 +87,19 @@ declare function ScopeAgentsScreen({ scope, roles, header, itemHref, subtitle }:
|
|
|
87
87
|
|
|
88
88
|
interface components {
|
|
89
89
|
schemas: {
|
|
90
|
+
AgentAllowableAgent: {
|
|
91
|
+
agent: components["schemas"]["AskableAgent"];
|
|
92
|
+
tools: components["schemas"]["AgentAllowableTool"][];
|
|
93
|
+
};
|
|
94
|
+
AgentAllowablePlace: {
|
|
95
|
+
scope: components["schemas"]["AgentScopeRef"];
|
|
96
|
+
agents: components["schemas"]["AgentAllowableAgent"][];
|
|
97
|
+
};
|
|
98
|
+
AgentAllowableTool: {
|
|
99
|
+
name: string;
|
|
100
|
+
title: string;
|
|
101
|
+
given: boolean;
|
|
102
|
+
};
|
|
90
103
|
AgentAnswerInput: {
|
|
91
104
|
answer: string;
|
|
92
105
|
};
|
|
@@ -261,6 +274,13 @@ interface components {
|
|
|
261
274
|
/** Format: int32 */
|
|
262
275
|
uses: number | string;
|
|
263
276
|
};
|
|
277
|
+
AgentPermissionGive: {
|
|
278
|
+
/** Format: uuid */
|
|
279
|
+
agentId: string;
|
|
280
|
+
/** Format: uuid */
|
|
281
|
+
scopeId: string;
|
|
282
|
+
tools: string[];
|
|
283
|
+
};
|
|
264
284
|
AgentPermissionInfo: {
|
|
265
285
|
person: null | components["schemas"]["AgentPerson"];
|
|
266
286
|
/** Format: uuid */
|
|
@@ -277,13 +297,18 @@ interface components {
|
|
|
277
297
|
createdAt: string;
|
|
278
298
|
/** Format: date-time */
|
|
279
299
|
lastUsedAt: null | string;
|
|
300
|
+
toolTitle?: null | string;
|
|
301
|
+
madeBy?: null | components["schemas"]["AgentPerson"];
|
|
302
|
+
agentNames?: {
|
|
303
|
+
[key: string]: string;
|
|
304
|
+
};
|
|
280
305
|
};
|
|
281
306
|
AgentPermissionRemoveInput: {
|
|
282
307
|
/** Format: uuid */
|
|
283
308
|
personId: string;
|
|
284
309
|
/** Format: uuid */
|
|
285
310
|
agentId: string;
|
|
286
|
-
tool: string;
|
|
311
|
+
tool: null | string;
|
|
287
312
|
/** Format: uuid */
|
|
288
313
|
scopeId: string;
|
|
289
314
|
};
|
|
@@ -601,9 +626,10 @@ declare function AgentGraph({ agentId, scopes }: {
|
|
|
601
626
|
}): react.JSX.Element;
|
|
602
627
|
|
|
603
628
|
/**
|
|
604
|
-
* Standing permissions:
|
|
605
|
-
* person's page, their own (no `agentId`)
|
|
606
|
-
*
|
|
629
|
+
* Standing permissions: the tools a person lets an agent use without asking, in the runs they start in one scope,
|
|
630
|
+
* given by "Always allow" in a run or ahead of time. On the person's page, their own (no `agentId`), one row per agent
|
|
631
|
+
* and scope, with "Allow an agent"; on an agent's page, the ones people gave it, for its admins, one row per person and
|
|
632
|
+
* scope. Removing a row takes back all its tools: they ask again from their next call.
|
|
607
633
|
*/
|
|
608
634
|
declare function AgentPermissionsPanel({ agentId }: {
|
|
609
635
|
agentId?: string;
|