@easygov/react-components 0.7.5 → 0.9.0
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/README.md +4 -0
- package/dist/easygov.d.mts +26 -1
- package/dist/easygov.mjs +2 -1
- package/dist/easygov.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -103,6 +103,10 @@ function ContactForm() {
|
|
|
103
103
|
0 is the direct parent, ascending toward the root — and is absent (not `[]`) when there is none.
|
|
104
104
|
If it is present while `claims.process` is absent, a sub-process is about to be created under
|
|
105
105
|
`parentProcesses[0]`, which is then the addressed Process itself and not a selected Behördengang.
|
|
106
|
+
Each `SelectedProcess` (in `claims.process` and `claims.parentProcesses`) also carries its own
|
|
107
|
+
`parentProcessId` — the global identifier of its parent, absent for a top-level Behördengang —
|
|
108
|
+
so a consumer can identify ancestry per node after flattening `parentProcesses` into a map,
|
|
109
|
+
without relying solely on the array's ordering.
|
|
106
110
|
|
|
107
111
|
`claims` is `null` until the first response lands and again after logout — render a fallback,
|
|
108
112
|
don't assume it is present on first paint. The hook reflects the last context an `EasygovHeader`
|
package/dist/easygov.d.mts
CHANGED
|
@@ -389,6 +389,12 @@ interface SelectedProcess {
|
|
|
389
389
|
requiredAccountStatus: AccountVerificationStatus;
|
|
390
390
|
individualServicePermissionModel: boolean;
|
|
391
391
|
};
|
|
392
|
+
/**
|
|
393
|
+
* Global identifier of this process's own parent. Absent for a top-level Behördengang.
|
|
394
|
+
* Lets a client identify ancestry per node — e.g. after flattening `parentProcesses` into a
|
|
395
|
+
* map — without relying solely on that array's documented ordering.
|
|
396
|
+
*/
|
|
397
|
+
parentProcessId?: string;
|
|
392
398
|
}
|
|
393
399
|
/**
|
|
394
400
|
* The authenticated user's identity and profile information.
|
|
@@ -435,6 +441,17 @@ interface EasygovHeaderContext {
|
|
|
435
441
|
claims: HeaderContextClaims | null;
|
|
436
442
|
}
|
|
437
443
|
|
|
444
|
+
interface EasygovVersionInfo {
|
|
445
|
+
/** This package's own version, from package.json — known synchronously, never null. */
|
|
446
|
+
libraryVersion: string;
|
|
447
|
+
/**
|
|
448
|
+
* The core-backend API version reported by GET /external/api/v1/version. Null until the
|
|
449
|
+
* first fetch resolves, and stays null forever on any failure (non-2xx, network error,
|
|
450
|
+
* unresolved origin, malformed body) — there is no retry.
|
|
451
|
+
*/
|
|
452
|
+
backendVersion: string | null;
|
|
453
|
+
}
|
|
454
|
+
|
|
438
455
|
declare const dictionaries: {
|
|
439
456
|
de: {
|
|
440
457
|
readonly login: "Anmelden";
|
|
@@ -558,6 +575,14 @@ declare function useEasygovHeaderContext(): EasygovHeaderContext;
|
|
|
558
575
|
* call, so a module can read it before any header has mounted.
|
|
559
576
|
*/
|
|
560
577
|
declare function useEasygovDisplayLanguage(): Locale;
|
|
578
|
+
/**
|
|
579
|
+
* The current version info: this package's own version (always known) and the core-backend
|
|
580
|
+
* API version (null until EasygovHeader's mount effect fetches it, or on fetch failure — see
|
|
581
|
+
* version-store.ts). Unlike useEasygovHeaderContext, no header needs to be mounted for
|
|
582
|
+
* `libraryVersion` to resolve; only `backendVersion` requires a mounted EasygovHeader to
|
|
583
|
+
* trigger the fetch.
|
|
584
|
+
*/
|
|
585
|
+
declare function useEasygovVersionInfo(): EasygovVersionInfo;
|
|
561
586
|
interface EasygovHeaderProps {
|
|
562
587
|
readonly onLanguageChange?: (locale: Locale) => void;
|
|
563
588
|
readonly onNavigate?: (path: string) => void;
|
|
@@ -625,4 +650,4 @@ declare function getEasygovDisplayLanguage(): Locale;
|
|
|
625
650
|
declare function setEasygovDisplayLanguage(locale: Locale): void;
|
|
626
651
|
declare function subscribeEasygovDisplayLanguage(listener: () => void): () => void;
|
|
627
652
|
|
|
628
|
-
export { type AuthStatus, BrandBase, BrandEasygov, BrandFacebook, BrandKdk, BrandLinkedin, type BrandProps, BrandSeg, BrandSgv, BrandSsv, BrandSwiss, BrandXing, BrandYoutube, Button, type ButtonProps, type DesktopSpan, Dropdown, DropdownChip, DropdownChipsOverflow, type DropdownChipsOverflowProps, DropdownChipsTrigger, type DropdownChipsTriggerProps, DropdownCollection, DropdownEmpty, DropdownGroup, DropdownGroupLabel, DropdownHelperText, type DropdownHelperTextProps, DropdownInput, DropdownItem, type DropdownItemProps, DropdownItemText, DropdownLabel, type DropdownLabelProps, DropdownList, DropdownPopup, type DropdownPopupProps, DropdownSeparator, DropdownToggle, DropdownTrigger, type DropdownTriggerProps, DropdownValue, EasygovFooter, EasygovHeader, type EasygovHeaderContext, type EasygovHeaderProps, type EasygovSession, ErrorDialog, type ErrorDialogProps, Grid, GridItem, type GridItemProps, type GridProps, type AccountVerificationStatus as HeaderContextAccountVerificationStatus, type HeaderContextClaims, type IndividualAccount as HeaderContextIndividualAccount, type ManagementRole as HeaderContextManagementRole, type ManagementRoleStatus as HeaderContextManagementRoleStatus, type ManagementRoleType as HeaderContextManagementRoleType, type OrganizationAccount as HeaderContextOrganizationAccount, type ProcessStatus as HeaderContextProcessStatus, type UserProfile as HeaderContextUserProfile, Heading, type HeadingProps, Input, type InputProps, type Locale, type MobileSpan, NavigationMenu, NavigationMenuAnchor, type NavigationMenuAnchorProps, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, RequireCustomerAccount, type RequireCustomerAccountProps, RequireSession, type RequireSessionProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, SelectHelperText, type SelectHelperTextProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, type SelectedCustomerAccount, type SelectedProcess, type SessionUser, type TabletSpan, Text, TextLink, type TextLinkProps, type TextProps, buttonVariants, getAuthStatus, getEasygovDisplayLanguage, headingVariants, requireSession, setEasygovDisplayLanguage, subscribeEasygovDisplayLanguage, textLinkVariants, textVariants, useEasygovAuthStatus, useEasygovDisplayLanguage, useEasygovHeaderContext, useEasygovSession, useRequireCustomerAccount };
|
|
653
|
+
export { type AuthStatus, BrandBase, BrandEasygov, BrandFacebook, BrandKdk, BrandLinkedin, type BrandProps, BrandSeg, BrandSgv, BrandSsv, BrandSwiss, BrandXing, BrandYoutube, Button, type ButtonProps, type DesktopSpan, Dropdown, DropdownChip, DropdownChipsOverflow, type DropdownChipsOverflowProps, DropdownChipsTrigger, type DropdownChipsTriggerProps, DropdownCollection, DropdownEmpty, DropdownGroup, DropdownGroupLabel, DropdownHelperText, type DropdownHelperTextProps, DropdownInput, DropdownItem, type DropdownItemProps, DropdownItemText, DropdownLabel, type DropdownLabelProps, DropdownList, DropdownPopup, type DropdownPopupProps, DropdownSeparator, DropdownToggle, DropdownTrigger, type DropdownTriggerProps, DropdownValue, EasygovFooter, EasygovHeader, type EasygovHeaderContext, type EasygovHeaderProps, type EasygovSession, type EasygovVersionInfo, ErrorDialog, type ErrorDialogProps, Grid, GridItem, type GridItemProps, type GridProps, type AccountVerificationStatus as HeaderContextAccountVerificationStatus, type HeaderContextClaims, type IndividualAccount as HeaderContextIndividualAccount, type ManagementRole as HeaderContextManagementRole, type ManagementRoleStatus as HeaderContextManagementRoleStatus, type ManagementRoleType as HeaderContextManagementRoleType, type OrganizationAccount as HeaderContextOrganizationAccount, type ProcessStatus as HeaderContextProcessStatus, type UserProfile as HeaderContextUserProfile, Heading, type HeadingProps, Input, type InputProps, type Locale, type MobileSpan, NavigationMenu, NavigationMenuAnchor, type NavigationMenuAnchorProps, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, RequireCustomerAccount, type RequireCustomerAccountProps, RequireSession, type RequireSessionProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, SelectHelperText, type SelectHelperTextProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, type SelectedCustomerAccount, type SelectedProcess, type SessionUser, type TabletSpan, Text, TextLink, type TextLinkProps, type TextProps, buttonVariants, getAuthStatus, getEasygovDisplayLanguage, headingVariants, requireSession, setEasygovDisplayLanguage, subscribeEasygovDisplayLanguage, textLinkVariants, textVariants, useEasygovAuthStatus, useEasygovDisplayLanguage, useEasygovHeaderContext, useEasygovSession, useEasygovVersionInfo, useRequireCustomerAccount };
|