@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/dist/guard.d.ts
CHANGED
|
@@ -1375,14 +1375,19 @@ declare function CreateAccountPanel({ onDone, onCancel }: {
|
|
|
1375
1375
|
onCancel: () => void;
|
|
1376
1376
|
}): react.JSX.Element;
|
|
1377
1377
|
|
|
1378
|
+
interface AnonymousScreenProps {
|
|
1379
|
+
/** A role the host ships, named in the reader's language (`key`, the server's `name`); the server's name otherwise. */
|
|
1380
|
+
roleName?: (key: string, name: string) => string;
|
|
1381
|
+
/** What a role the host ships lets one do, in the reader's language (the dialog's "Can"); the server's otherwise. */
|
|
1382
|
+
roleDescription?: (key: string, description: string | null) => string | null | undefined;
|
|
1383
|
+
}
|
|
1378
1384
|
/**
|
|
1379
1385
|
* Anonymous access, for site admins: every role given to anonymous visitors, in one place, because anyone on the
|
|
1380
|
-
* internet gets it.
|
|
1381
|
-
*
|
|
1386
|
+
* internet gets it. "Give a role" picks a role and one of the places the host lists (AbpGuard's `GET /anonymous/places`):
|
|
1387
|
+
* a place offers only the roles that keep to it, and the server checks again. A row's menu changes its role in one step
|
|
1388
|
+
* or removes it. A grant made elsewhere (a place's members) shows here too, named as the host names its scope.
|
|
1382
1389
|
*/
|
|
1383
|
-
declare function AnonymousScreen({ roleName }:
|
|
1384
|
-
roleName?: (key: string, name: string) => string;
|
|
1385
|
-
}): react.JSX.Element;
|
|
1390
|
+
declare function AnonymousScreen({ roleName, roleDescription }?: AnonymousScreenProps): react.JSX.Element;
|
|
1386
1391
|
|
|
1387
1392
|
/**
|
|
1388
1393
|
* The site's directories, in the order sign-in tries them: added, reordered, synced now. A connector a directory needs
|