@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/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. Grants are made where the role is given (a place's members); any can be revoked here.
1381
- * `roleName` names a role the host ships in the reader's language; the server's name otherwise.
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