@abpjs/ui 0.2.0-next.15 → 0.2.0-next.16
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 +7 -0
- package/dist/guard.d.ts +18 -1
- package/dist/guard.js +6 -4
- package/dist/guard.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.16
|
|
4
|
+
|
|
5
|
+
A prerelease under npm's `next` tag.
|
|
6
|
+
|
|
7
|
+
- guard: `CreateAccountPanel` and `CreateGroupPanel` exported, for a host that keeps its own accounts or groups list
|
|
8
|
+
(saved views, column choice) and takes the rest of the area.
|
|
9
|
+
|
|
3
10
|
## 0.2.0-next.15
|
|
4
11
|
|
|
5
12
|
A prerelease under npm's `next` tag.
|
package/dist/guard.d.ts
CHANGED
|
@@ -1287,6 +1287,14 @@ interface AccountsScreenProps {
|
|
|
1287
1287
|
* by any column but the directory. A site admin creates internal accounts here, and sees accounts that share an address.
|
|
1288
1288
|
*/
|
|
1289
1289
|
declare function AccountsScreen({ routes, source }: AccountsScreenProps): react.JSX.Element;
|
|
1290
|
+
/**
|
|
1291
|
+
* Creating an internal account: username, display name, an optional address and a password, in AbpGuard's own internal
|
|
1292
|
+
* directory or another internal one when there are several. For a host's own accounts page too.
|
|
1293
|
+
*/
|
|
1294
|
+
declare function CreateAccountPanel({ onDone, onCancel }: {
|
|
1295
|
+
onDone: (created: AccountDto) => void;
|
|
1296
|
+
onCancel: () => void;
|
|
1297
|
+
}): react.JSX.Element;
|
|
1290
1298
|
|
|
1291
1299
|
/**
|
|
1292
1300
|
* Anonymous access, for site admins: every role given to anonymous visitors, in one place, because anyone on the
|
|
@@ -1370,6 +1378,15 @@ interface GroupsScreenProps {
|
|
|
1370
1378
|
* A site admin creates groups here: a group, or an organization customers join by their address's domain.
|
|
1371
1379
|
*/
|
|
1372
1380
|
declare function GroupsScreen({ routes, source }: GroupsScreenProps): react.JSX.Element;
|
|
1381
|
+
/**
|
|
1382
|
+
* Creating a group: its name by language, a description, the directory it's in (the internal one by default), and its
|
|
1383
|
+
* kind; an organization takes the email domains whose people join it. For a host's own groups page too.
|
|
1384
|
+
*/
|
|
1385
|
+
declare function CreateGroupPanel({ directories, onDone, onCancel }: {
|
|
1386
|
+
directories: DirectoryDto[];
|
|
1387
|
+
onDone: (created: GroupDto) => void;
|
|
1388
|
+
onCancel: () => void;
|
|
1389
|
+
}): react.JSX.Element;
|
|
1373
1390
|
|
|
1374
1391
|
interface GroupTreeProps {
|
|
1375
1392
|
rootId: string;
|
|
@@ -1544,4 +1561,4 @@ declare function useGuardNs(namespace: string): GuardText;
|
|
|
1544
1561
|
*/
|
|
1545
1562
|
declare function withParts(text: string, parts: Record<string, ReactNode>): ReactNode;
|
|
1546
1563
|
|
|
1547
|
-
export { type AccountAction, type AccountCanDto, type AccountDetailDto, type AccountDto, type AccountEmailsDto, AccountEmailsPanel, type AccountEmailsPanelProps, type AccountMergeDto, type AccountNameDto, AccountNameEditor, type AccountNameEditorProps, type AccountPage, AccountScreen, type AccountScreenProps, AccountSecondFactorPanel, type AccountSecondFactorPanelProps, type AccountStatus, AccountStatusPill, type AccountSummaryDto, AccountsScreen, type AccountsScreenProps, type AnonymousGrantDto, AnonymousScreen, type AppEnrolmentDto, AppSetup, type AppSetupProps, CodeInput, type ConnectionTestResult, CountList, DirectoriesScreen, type DirectoryDto, DirectoryForm, type DirectoryFormProps, type DirectoryInput, DirectoryScreen, type DirectorySettingDefinition, type DirectoryTypeDto, DirectoryWarnings, type DuplicateDto, DuplicatesPanel, type EffectiveGroupDto, type EffectiveMemberDto, FlagPill, type GroupDetailDto, type GroupDto, type GroupMemberDto, type GroupPage, GroupScreen, type GroupScreenProps, GroupTree, type GroupTreeProps, GroupTwoFactorPanel, GroupsScreen, type GroupsScreenProps, type GuardRoutes, type GuardText, type GuardTypes, type IdentityDto, type MergeCountDto, type MergePreviewDto, MergeScreen, type MergeScreenProps, MergesPanel, type MergesPanelProps, type MySecondFactorsDto, MySecondFactorsPanel, type MySecondFactorsPanelProps, PassFail, type PluginState, PluginStatePill, RecoveryCodes, type SecondFactorDto, type SecondFactorSenderDto, SignUpScreen, type SignUpSettingsDto, type SignUpSettingsInput, StrongFactorBanner, type StrongFactorState, SyncResultPill, type SyncRunDto, SyncStatus, TWO_FACTOR_MODES, type TestLoginResult, type TestLoginStepName, groupedKey, guardRoutes, num, useAccountCan, useCountLabel, useGuardNs, useGuardTexts, usePartLabel, useSenderName, useWrittenName, withParts };
|
|
1564
|
+
export { type AccountAction, type AccountCanDto, type AccountDetailDto, type AccountDto, type AccountEmailsDto, AccountEmailsPanel, type AccountEmailsPanelProps, type AccountMergeDto, type AccountNameDto, AccountNameEditor, type AccountNameEditorProps, type AccountPage, AccountScreen, type AccountScreenProps, AccountSecondFactorPanel, type AccountSecondFactorPanelProps, type AccountStatus, AccountStatusPill, type AccountSummaryDto, AccountsScreen, type AccountsScreenProps, type AnonymousGrantDto, AnonymousScreen, type AppEnrolmentDto, AppSetup, type AppSetupProps, CodeInput, type ConnectionTestResult, CountList, CreateAccountPanel, CreateGroupPanel, DirectoriesScreen, type DirectoryDto, DirectoryForm, type DirectoryFormProps, type DirectoryInput, DirectoryScreen, type DirectorySettingDefinition, type DirectoryTypeDto, DirectoryWarnings, type DuplicateDto, DuplicatesPanel, type EffectiveGroupDto, type EffectiveMemberDto, FlagPill, type GroupDetailDto, type GroupDto, type GroupMemberDto, type GroupPage, GroupScreen, type GroupScreenProps, GroupTree, type GroupTreeProps, GroupTwoFactorPanel, GroupsScreen, type GroupsScreenProps, type GuardRoutes, type GuardText, type GuardTypes, type IdentityDto, type MergeCountDto, type MergePreviewDto, MergeScreen, type MergeScreenProps, MergesPanel, type MergesPanelProps, type MySecondFactorsDto, MySecondFactorsPanel, type MySecondFactorsPanelProps, PassFail, type PluginState, PluginStatePill, RecoveryCodes, type SecondFactorDto, type SecondFactorSenderDto, SignUpScreen, type SignUpSettingsDto, type SignUpSettingsInput, StrongFactorBanner, type StrongFactorState, SyncResultPill, type SyncRunDto, SyncStatus, TWO_FACTOR_MODES, type TestLoginResult, type TestLoginStepName, groupedKey, guardRoutes, num, useAccountCan, useCountLabel, useGuardNs, useGuardTexts, usePartLabel, useSenderName, useWrittenName, withParts };
|
package/dist/guard.js
CHANGED
|
@@ -1573,7 +1573,7 @@ function AccountsScreen({ routes = guardRoutes(), source }) {
|
|
|
1573
1573
|
),
|
|
1574
1574
|
/* @__PURE__ */ jsxs8(Stack6, { gap: "section", children: [
|
|
1575
1575
|
creating && /* @__PURE__ */ jsx8(
|
|
1576
|
-
|
|
1576
|
+
CreateAccountPanel,
|
|
1577
1577
|
{
|
|
1578
1578
|
onDone: (created) => {
|
|
1579
1579
|
setCreating(false);
|
|
@@ -1615,7 +1615,7 @@ function AccountsScreen({ routes = guardRoutes(), source }) {
|
|
|
1615
1615
|
] })
|
|
1616
1616
|
] });
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function CreateAccountPanel({ onDone, onCancel }) {
|
|
1619
1619
|
const t = useGuardNs("accounts");
|
|
1620
1620
|
const tc = useGuardNs("common");
|
|
1621
1621
|
const request = useAreaRequest6("guard");
|
|
@@ -2774,7 +2774,7 @@ function GroupsScreen({ routes = guardRoutes(), source }) {
|
|
|
2774
2774
|
),
|
|
2775
2775
|
/* @__PURE__ */ jsxs16(Stack12, { gap: "section", children: [
|
|
2776
2776
|
creating && /* @__PURE__ */ jsx16(
|
|
2777
|
-
|
|
2777
|
+
CreateGroupPanel,
|
|
2778
2778
|
{
|
|
2779
2779
|
directories: dirs.data ?? [],
|
|
2780
2780
|
onCancel: () => setCreating(false),
|
|
@@ -2827,7 +2827,7 @@ function GroupsScreen({ routes = guardRoutes(), source }) {
|
|
|
2827
2827
|
] })
|
|
2828
2828
|
] });
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function CreateGroupPanel({ directories, onDone, onCancel }) {
|
|
2831
2831
|
const t = useGuardNs("groups");
|
|
2832
2832
|
const tc = useGuardNs("common");
|
|
2833
2833
|
const request = useAreaRequest13("guard");
|
|
@@ -3530,6 +3530,8 @@ export {
|
|
|
3530
3530
|
AppSetup,
|
|
3531
3531
|
CodeInput,
|
|
3532
3532
|
CountList,
|
|
3533
|
+
CreateAccountPanel,
|
|
3534
|
+
CreateGroupPanel,
|
|
3533
3535
|
DirectoriesScreen,
|
|
3534
3536
|
DirectoryForm,
|
|
3535
3537
|
DirectoryScreen,
|