@psnext/design-system 2.1.0 → 2.2.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/DESIGN.md +2 -2
- package/dist/Header.cjs +27 -27
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +22 -28
- package/dist/Header.js.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +7 -7
- package/dist/index10.d.ts.map +1 -1
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index11.d.ts.map +1 -1
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.cts.map +1 -1
- package/dist/index12.d.ts +12 -12
- package/dist/index12.d.ts.map +1 -1
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.cts.map +1 -1
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +3 -3
- package/dist/index15.d.cts.map +1 -1
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.cts +2 -2
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.cts.map +1 -1
- package/dist/index17.d.ts +4 -4
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.ts +11 -11
- package/dist/index19.d.cts +10 -10
- package/dist/index19.d.ts +10 -10
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.ts +8 -8
- package/dist/index2.d.ts.map +1 -1
- package/dist/index20.d.cts +16 -16
- package/dist/index20.d.ts +16 -16
- package/dist/index21.d.cts +4 -4
- package/dist/index21.d.ts +4 -4
- package/dist/index22.d.cts +11 -11
- package/dist/index22.d.ts +11 -11
- package/dist/index23.d.cts +16 -16
- package/dist/index23.d.ts +16 -16
- package/dist/index24.d.cts +7 -7
- package/dist/index24.d.ts +10 -10
- package/dist/index25.d.cts +2 -2
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +2 -2
- package/dist/index26.d.cts +13 -13
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +14 -14
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +7 -7
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +7 -7
- package/dist/index28.d.cts +5 -5
- package/dist/index28.d.ts +5 -5
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.ts +4 -4
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.cts.map +1 -1
- package/dist/index30.d.cts +5 -5
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +6 -6
- package/dist/index31.d.cts +4 -4
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +4 -4
- package/dist/index32.d.cts +6 -6
- package/dist/index32.d.ts +3 -3
- package/dist/index33.d.cts +11 -11
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +11 -11
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.ts +5 -5
- package/dist/index35.d.cts +15 -15
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +15 -15
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +3 -3
- package/dist/index36.d.ts +3 -3
- package/dist/index37.d.cts +4 -4
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +5 -5
- package/dist/index38.d.cts +2 -2
- package/dist/index38.d.ts +2 -2
- package/dist/index39.d.cts +17 -17
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +17 -17
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +2 -2
- package/dist/index4.d.ts.map +1 -1
- package/dist/index40.d.cts +5 -5
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +5 -5
- package/dist/index41.d.cts +11 -11
- package/dist/index41.d.ts +11 -11
- package/dist/index42.d.cts +8 -8
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +8 -8
- package/dist/index43.d.cts +9 -9
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +9 -9
- package/dist/index45.d.cts +8 -8
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +8 -8
- package/dist/index46.d.cts +2 -2
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +2 -2
- package/dist/index47.d.cts +4 -4
- package/dist/index47.d.ts +4 -4
- package/dist/index48.d.cts +4 -4
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +4 -4
- package/dist/index49.d.cts +3 -3
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +3 -3
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index5.d.ts.map +1 -1
- package/dist/index50.d.cts +11 -11
- package/dist/index50.d.ts +11 -11
- package/dist/index51.d.cts +9 -9
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +9 -9
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +5 -5
- package/dist/index52.d.ts +5 -5
- package/dist/index53.d.cts +26 -26
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +26 -26
- package/dist/index54.d.cts +5 -5
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +5 -5
- package/dist/index55.d.cts +2 -2
- package/dist/index55.d.ts +2 -2
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.ts +2 -2
- package/dist/index57.d.cts +2 -2
- package/dist/index57.d.ts +2 -2
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +4 -4
- package/dist/index58.d.ts +4 -4
- package/dist/index59.d.cts +9 -9
- package/dist/index59.d.ts +9 -9
- package/dist/index59.d.ts.map +1 -1
- package/dist/index6.d.cts +6 -6
- package/dist/index6.d.ts +5 -5
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +6 -6
- package/dist/index60.d.ts +13 -13
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +6 -6
- package/dist/index61.d.ts +5 -5
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +5 -5
- package/dist/index62.d.ts +4 -4
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +2 -2
- package/dist/index63.d.ts +2 -2
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +6 -6
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +6 -6
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +3 -3
- package/dist/index65.d.ts +3 -3
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +4 -4
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +5 -5
- package/dist/index67.d.cts +2 -2
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +2 -2
- package/dist/index68.d.cts +7 -7
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +8 -8
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +7 -7
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +7 -7
- package/dist/index69.d.ts.map +1 -1
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.ts +8 -8
- package/dist/index7.d.ts.map +1 -1
- package/dist/index71.d.cts +26 -12
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +26 -12
- package/dist/index71.d.ts.map +1 -1
- package/dist/index8.d.cts +5 -5
- package/dist/index8.d.ts +4 -4
- package/dist/index8.d.ts.map +1 -1
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.cts.map +1 -1
- package/dist/index9.d.ts +2 -2
- package/dist/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/DataTable/index.d.ts.map +1 -1
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.cts.map +1 -1
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Header/index.cjs +1 -0
- package/dist/patterns/Header/index.d.cts +2 -2
- package/dist/patterns/Header/index.d.ts +2 -2
- package/dist/patterns/Header/index.js +2 -2
- package/dist/patterns/MediaObject/index.d.cts +12 -12
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +13 -13
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- package/dist/patterns/SectionCard/index.d.cts.map +1 -1
- package/dist/patterns/SectionCard/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +2 -2
- package/dist/patterns/index.cjs +1 -0
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/patterns/index.js +2 -2
- package/package.json +1 -1
package/dist/index71.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as ThemeProduct } from "./index63.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -15,7 +15,6 @@ interface ProjectNode {
|
|
|
15
15
|
/** Fully-qualified API endpoints. Built from `apiBaseUrl`; individually overridable. */
|
|
16
16
|
interface HeaderEndpoints {
|
|
17
17
|
token: string;
|
|
18
|
-
me: string;
|
|
19
18
|
logout: string;
|
|
20
19
|
projects: (clientId: string) => string;
|
|
21
20
|
credits: string;
|
|
@@ -28,7 +27,8 @@ interface HeaderProps {
|
|
|
28
27
|
apiBaseUrl: string;
|
|
29
28
|
/**
|
|
30
29
|
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
31
|
-
* (a JWT) — the header decodes it
|
|
30
|
+
* (a JWT) — the header decodes it for auth state and user identity
|
|
31
|
+
* (email, client id) without a network call.
|
|
32
32
|
*/
|
|
33
33
|
environmentId: string;
|
|
34
34
|
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
@@ -55,7 +55,7 @@ interface HeaderProps {
|
|
|
55
55
|
* icon is hidden; when set, the icon renders and links here.
|
|
56
56
|
*/
|
|
57
57
|
feedbackUrl?: string;
|
|
58
|
-
/** Active org id from the host session; overrides the
|
|
58
|
+
/** Active org id from the host session; overrides the session JWT's `client_id` claim. */
|
|
59
59
|
clientId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
@@ -90,7 +90,7 @@ interface HeaderProps {
|
|
|
90
90
|
declare function HeaderBar({
|
|
91
91
|
className,
|
|
92
92
|
...props
|
|
93
|
-
}: React.ComponentProps<"header">):
|
|
93
|
+
}: React.ComponentProps<"header">): react_jsx_runtime126.JSX.Element;
|
|
94
94
|
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
95
95
|
declare function HeaderLogo({
|
|
96
96
|
brand,
|
|
@@ -98,7 +98,7 @@ declare function HeaderLogo({
|
|
|
98
98
|
}: {
|
|
99
99
|
brand: ThemeProduct;
|
|
100
100
|
href?: string;
|
|
101
|
-
}):
|
|
101
|
+
}): react_jsx_runtime126.JSX.Element;
|
|
102
102
|
/** Read-only organisation pill. */
|
|
103
103
|
declare function OrgPill({
|
|
104
104
|
name,
|
|
@@ -106,9 +106,9 @@ declare function OrgPill({
|
|
|
106
106
|
}: {
|
|
107
107
|
name?: string;
|
|
108
108
|
loading?: boolean;
|
|
109
|
-
}):
|
|
109
|
+
}): react_jsx_runtime126.JSX.Element | null;
|
|
110
110
|
/** Light/dark toggle — defers to ThemeProvider. */
|
|
111
|
-
declare function ThemeToggle():
|
|
111
|
+
declare function ThemeToggle(): react_jsx_runtime126.JSX.Element;
|
|
112
112
|
/** Profile menu — avatar trigger with email + logout. */
|
|
113
113
|
declare function ProfileMenu({
|
|
114
114
|
email,
|
|
@@ -116,9 +116,9 @@ declare function ProfileMenu({
|
|
|
116
116
|
}: {
|
|
117
117
|
email?: string;
|
|
118
118
|
onLogout: () => void;
|
|
119
|
-
}):
|
|
119
|
+
}): react_jsx_runtime126.JSX.Element;
|
|
120
120
|
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
121
|
-
declare function Header(props: HeaderProps):
|
|
121
|
+
declare function Header(props: HeaderProps): react_jsx_runtime126.JSX.Element;
|
|
122
122
|
//# sourceMappingURL=Header.d.ts.map
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
@@ -143,7 +143,7 @@ declare function ProjectPicker({
|
|
|
143
143
|
searchPlaceholder,
|
|
144
144
|
emptyStateText,
|
|
145
145
|
isLoading
|
|
146
|
-
}: Readonly<ProjectPickerProps>):
|
|
146
|
+
}: Readonly<ProjectPickerProps>): react_jsx_runtime126.JSX.Element;
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/patterns/Header/use-global-header.d.ts
|
|
149
149
|
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
@@ -222,6 +222,20 @@ declare function useHeaderCredits(): number | undefined;
|
|
|
222
222
|
declare function getSessionToken(environmentId: string): string | null;
|
|
223
223
|
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
224
224
|
|
|
225
|
+
/** User/session claims carried in the session JWT (the subset the header uses). */
|
|
226
|
+
interface SessionClaims {
|
|
227
|
+
email?: string;
|
|
228
|
+
name?: string;
|
|
229
|
+
userId?: string;
|
|
230
|
+
/** Active organisation id (`client_id` claim). */
|
|
231
|
+
clientId?: string;
|
|
232
|
+
exp?: number;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Decode the user claims from the session cookie's JWT — no network call.
|
|
236
|
+
* Returns null when the cookie is absent or undecodable.
|
|
237
|
+
*/
|
|
238
|
+
declare function getSessionClaims(environmentId: string): SessionClaims | null;
|
|
225
239
|
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
226
240
|
declare function isSessionValid(environmentId: string): boolean;
|
|
227
241
|
//#endregion
|
|
@@ -245,5 +259,5 @@ type Labels = typeof DEFAULT_LABELS;
|
|
|
245
259
|
//# sourceMappingURL=labels.d.ts.map
|
|
246
260
|
|
|
247
261
|
//#endregion
|
|
248
|
-
export {
|
|
262
|
+
export { Fetcher as C, ProjectNode as E, ThemeToggle as S, HeaderProps as T, Header as _, getSessionClaims as a, OrgPill as b, HeaderSelection as c, useHeaderProject as d, GlobalHeaderState as f, ProjectPicker as g, useGlobalHeader as h, SessionClaims as i, UseHeaderProjectResult as l, ToggleProjectDropdownDetail as m, Labels as n, getSessionToken as o, TOGGLE_PROJECT_DROPDOWN_EVENT as p, buildEndpoints as r, isSessionValid as s, DEFAULT_LABELS as t, useHeaderCredits as u, HeaderBar as v, HeaderEndpoints as w, ProfileMenu as x, HeaderLogo as y };
|
|
249
263
|
//# sourceMappingURL=index71.d.cts.map
|
package/dist/index71.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;
|
|
1
|
+
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,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AAA;;;iBKrBL,cAAA,iCAEF,2BACX;;;;cCrBU;;;;;EPII,SAAA,cAAW,EAAA,mBAGL;EAMN,SAAA,gBAAe,EAAA,cAAA;EAQpB,SAAA,WAAO,EAAU,QAAK;EAGjB,SAAA,YAAW,EAAA,kBAAA;EAAA,SAAA,kBAAA,EAAA,6EAAA;;AAqDd,KOjEF,MAAA,GPiEE,OOjEc,cPiEd"}
|
package/dist/index71.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as ThemeProduct } from "./index63.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime70 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/patterns/Header/types.d.ts
|
|
7
7
|
/** A node in the project hierarchy returned by the projects API. */
|
|
@@ -15,7 +15,6 @@ interface ProjectNode {
|
|
|
15
15
|
/** Fully-qualified API endpoints. Built from `apiBaseUrl`; individually overridable. */
|
|
16
16
|
interface HeaderEndpoints {
|
|
17
17
|
token: string;
|
|
18
|
-
me: string;
|
|
19
18
|
logout: string;
|
|
20
19
|
projects: (clientId: string) => string;
|
|
21
20
|
credits: string;
|
|
@@ -28,7 +27,8 @@ interface HeaderProps {
|
|
|
28
27
|
apiBaseUrl: string;
|
|
29
28
|
/**
|
|
30
29
|
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
31
|
-
* (a JWT) — the header decodes it
|
|
30
|
+
* (a JWT) — the header decodes it for auth state and user identity
|
|
31
|
+
* (email, client id) without a network call.
|
|
32
32
|
*/
|
|
33
33
|
environmentId: string;
|
|
34
34
|
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
@@ -55,7 +55,7 @@ interface HeaderProps {
|
|
|
55
55
|
* icon is hidden; when set, the icon renders and links here.
|
|
56
56
|
*/
|
|
57
57
|
feedbackUrl?: string;
|
|
58
|
-
/** Active org id from the host session; overrides the
|
|
58
|
+
/** Active org id from the host session; overrides the session JWT's `client_id` claim. */
|
|
59
59
|
clientId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
@@ -90,7 +90,7 @@ interface HeaderProps {
|
|
|
90
90
|
declare function HeaderBar({
|
|
91
91
|
className,
|
|
92
92
|
...props
|
|
93
|
-
}: React.ComponentProps<"header">):
|
|
93
|
+
}: React.ComponentProps<"header">): react_jsx_runtime70.JSX.Element;
|
|
94
94
|
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
95
95
|
declare function HeaderLogo({
|
|
96
96
|
brand,
|
|
@@ -98,7 +98,7 @@ declare function HeaderLogo({
|
|
|
98
98
|
}: {
|
|
99
99
|
brand: ThemeProduct;
|
|
100
100
|
href?: string;
|
|
101
|
-
}):
|
|
101
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
102
102
|
/** Read-only organisation pill. */
|
|
103
103
|
declare function OrgPill({
|
|
104
104
|
name,
|
|
@@ -106,9 +106,9 @@ declare function OrgPill({
|
|
|
106
106
|
}: {
|
|
107
107
|
name?: string;
|
|
108
108
|
loading?: boolean;
|
|
109
|
-
}):
|
|
109
|
+
}): react_jsx_runtime70.JSX.Element | null;
|
|
110
110
|
/** Light/dark toggle — defers to ThemeProvider. */
|
|
111
|
-
declare function ThemeToggle():
|
|
111
|
+
declare function ThemeToggle(): react_jsx_runtime70.JSX.Element;
|
|
112
112
|
/** Profile menu — avatar trigger with email + logout. */
|
|
113
113
|
declare function ProfileMenu({
|
|
114
114
|
email,
|
|
@@ -116,9 +116,9 @@ declare function ProfileMenu({
|
|
|
116
116
|
}: {
|
|
117
117
|
email?: string;
|
|
118
118
|
onLogout: () => void;
|
|
119
|
-
}):
|
|
119
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
120
120
|
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
121
|
-
declare function Header(props: HeaderProps):
|
|
121
|
+
declare function Header(props: HeaderProps): react_jsx_runtime70.JSX.Element;
|
|
122
122
|
//# sourceMappingURL=Header.d.ts.map
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
@@ -143,7 +143,7 @@ declare function ProjectPicker({
|
|
|
143
143
|
searchPlaceholder,
|
|
144
144
|
emptyStateText,
|
|
145
145
|
isLoading
|
|
146
|
-
}: Readonly<ProjectPickerProps>):
|
|
146
|
+
}: Readonly<ProjectPickerProps>): react_jsx_runtime70.JSX.Element;
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/patterns/Header/use-global-header.d.ts
|
|
149
149
|
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
@@ -222,6 +222,20 @@ declare function useHeaderCredits(): number | undefined;
|
|
|
222
222
|
declare function getSessionToken(environmentId: string): string | null;
|
|
223
223
|
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
224
224
|
|
|
225
|
+
/** User/session claims carried in the session JWT (the subset the header uses). */
|
|
226
|
+
interface SessionClaims {
|
|
227
|
+
email?: string;
|
|
228
|
+
name?: string;
|
|
229
|
+
userId?: string;
|
|
230
|
+
/** Active organisation id (`client_id` claim). */
|
|
231
|
+
clientId?: string;
|
|
232
|
+
exp?: number;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Decode the user claims from the session cookie's JWT — no network call.
|
|
236
|
+
* Returns null when the cookie is absent or undecodable.
|
|
237
|
+
*/
|
|
238
|
+
declare function getSessionClaims(environmentId: string): SessionClaims | null;
|
|
225
239
|
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
226
240
|
declare function isSessionValid(environmentId: string): boolean;
|
|
227
241
|
//#endregion
|
|
@@ -245,5 +259,5 @@ type Labels = typeof DEFAULT_LABELS;
|
|
|
245
259
|
//# sourceMappingURL=labels.d.ts.map
|
|
246
260
|
|
|
247
261
|
//#endregion
|
|
248
|
-
export {
|
|
262
|
+
export { Fetcher as C, ProjectNode as E, ThemeToggle as S, HeaderProps as T, Header as _, getSessionClaims as a, OrgPill as b, HeaderSelection as c, useHeaderProject as d, GlobalHeaderState as f, ProjectPicker as g, useGlobalHeader as h, SessionClaims as i, UseHeaderProjectResult as l, ToggleProjectDropdownDetail as m, Labels as n, getSessionToken as o, TOGGLE_PROJECT_DROPDOWN_EVENT as p, buildEndpoints as r, isSessionValid as s, DEFAULT_LABELS as t, useHeaderCredits as u, HeaderBar as v, HeaderEndpoints as w, ProfileMenu as x, HeaderLogo as y };
|
|
249
263
|
//# sourceMappingURL=index71.d.ts.map
|
package/dist/index71.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.d.ts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;
|
|
1
|
+
{"version":3,"file":"index71.d.ts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;EAQL,aAAO,CAAA,EAAA,OAAU;AAG7B;;AAWa,UAtBI,eAAA,CAsBJ;OA0CC,EAAA,MAAA;QAIa,EAAA,MAAA;UAAL,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,GAAA,MAAA;SAAR,EAAA,MAAA;;AAIK;KAhEP,OAAA,UAAiB;;UAGZ,WAAA;ECeR;EAAS,UAAA,EAAA,MAAA;;;;AAAwD;AAAA;EAevD,aAAA,EAAA,MAAA;;UAAU,CAA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
1
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "destructive" | "outline" | "
|
|
9
|
-
size?: "default" | "
|
|
10
|
-
shape?: "
|
|
11
|
-
} &
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "ai" | "link" | "secondary" | "ghost" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "default" | "sm" | "icon" | "xs" | "icon-xs" | "icon-sm" | "lg" | "xl" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
|
+
shape?: "square" | "default" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index8.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
size?: "default" | "
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "ai" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "default" | "xs" | "sm" | "lg" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
10
|
shape?: "default" | "square" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index8.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.d.ts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD,
|
|
1
|
+
{"version":3,"file":"index8.d.ts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD,+BAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAEI,WAAA,GAAc,cAAH,CAAA,QAAA,CAAA,GACd,YADc,CAAA,OACM,cADN,CAAA,GAAA;EAAA;SAAG,CAAA,EAAA,OAAA;;SACjB,CAAA,EAAA,OAAA;AAAY,CAAA;AAAA;;;;;cAYR,MAAM,EAAA,MAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,WAAA,EAAA,KAAA,CAAA,GAAA,MAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,CAAA"}
|
package/dist/index9.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime221 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime221.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.cts.map
|
package/dist/index9.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.d.cts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,
|
|
1
|
+
{"version":3,"file":"index9.d.cts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,oBAAA,CAAA,GAAA,CAAA,OATiB"}
|
package/dist/index9.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Separator/Separator.d.ts
|
|
6
6
|
type SeparatorSpacing = "none" | "regular" | "spacious";
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime84.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime149 from "react/jsx-runtime";
|
|
2
2
|
import { Column, ColumnDef } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/DataTable/DataTable.d.ts
|
|
@@ -24,7 +24,7 @@ declare function DataTable<TData, TValue>({
|
|
|
24
24
|
striped,
|
|
25
25
|
enablePagination,
|
|
26
26
|
pageSize
|
|
27
|
-
}: DataTableProps<TData, TValue>):
|
|
27
|
+
}: DataTableProps<TData, TValue>): react_jsx_runtime149.JSX.Element;
|
|
28
28
|
/** Sortable column header — drop into a column's `header` to get click-to-sort. */
|
|
29
29
|
declare function DataTableColumnHeader<TData, TValue>({
|
|
30
30
|
column,
|
|
@@ -37,7 +37,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
37
37
|
title: string;
|
|
38
38
|
/** Optional class applied to the header button (or span when unsortable). */
|
|
39
39
|
className?: string;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime149.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { type ColumnDef, DataTable, DataTableColumnHeader };
|
|
43
43
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime121 from "react/jsx-runtime";
|
|
2
2
|
import { Column, ColumnDef } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/DataTable/DataTable.d.ts
|
|
@@ -24,7 +24,7 @@ declare function DataTable<TData, TValue>({
|
|
|
24
24
|
striped,
|
|
25
25
|
enablePagination,
|
|
26
26
|
pageSize
|
|
27
|
-
}: DataTableProps<TData, TValue>):
|
|
27
|
+
}: DataTableProps<TData, TValue>): react_jsx_runtime121.JSX.Element;
|
|
28
28
|
/** Sortable column header — drop into a column's `header` to get click-to-sort. */
|
|
29
29
|
declare function DataTableColumnHeader<TData, TValue>({
|
|
30
30
|
column,
|
|
@@ -37,7 +37,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
37
37
|
title: string;
|
|
38
38
|
/** Optional class applied to the header button (or span when unsortable). */
|
|
39
39
|
className?: string;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime121.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { type ColumnDef, DataTable, DataTableColumnHeader };
|
|
43
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/patterns/DataTable/DataTable.tsx"],"mappings":";;;;KAoBK;;WAEM,UAAU,OAAO;EAFvB;EAAc,IAAA,EAIX,KAJW,EAAA;;SAES,CAAA,EAAA,OAAA;;kBAEpB,CAAA,EAAA,OAAA;EAAK;EAaJ,QAAA,CAAA,EAAA,MAAS;CAAA;;;;;iBAAT,SAKP,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,OAAA;EAAA,gBAAA;EAAA;AAAA,CAAA,EACC,cADD,CACgB,KADhB,EACuB,MADvB,CAAA,CAAA,EAC8B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/patterns/DataTable/DataTable.tsx"],"mappings":";;;;KAoBK;;WAEM,UAAU,OAAO;EAFvB;EAAc,IAAA,EAIX,KAJW,EAAA;;SAES,CAAA,EAAA,OAAA;;kBAEpB,CAAA,EAAA,OAAA;EAAK;EAaJ,QAAA,CAAA,EAAA,MAAS;CAAA;;;;;iBAAT,SAKP,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,OAAA;EAAA,gBAAA;EAAA;AAAA,CAAA,EACC,cADD,CACgB,KADhB,EACuB,MADvB,CAAA,CAAA,EAC8B,oBAAA,CAAA,GAAA,CAAA,OAD9B;;iBAmGO,qBAlGgB,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;CAAA,EAAA;;QAAO,EAwGtB,MAxGsB,CAwGf,KAxGe,EAwGR,MAxGQ,CAAA;EAAA;EAkGvB,KAAA,EAAA,MAAA;EAAqB;WAC5B,CAAA,EAAA,MAAA;IAUD,oBAAA,CAAA,GAAA,CAAA,OATC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime151 from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/Footer/Footer.d.ts
|
|
@@ -18,22 +18,22 @@ declare function Footer({
|
|
|
18
18
|
bordered?: boolean;
|
|
19
19
|
/** Surface fill. `glass` is a translucent, blurred panel over the page background. */
|
|
20
20
|
background?: keyof typeof footerBackgrounds;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime151.JSX.Element;
|
|
22
22
|
/** Leading region — left-aligned on md+ (e.g. an app version). */
|
|
23
23
|
declare function FooterStart({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<"div">):
|
|
26
|
+
}: React.ComponentProps<"div">): react_jsx_runtime151.JSX.Element;
|
|
27
27
|
/** Centre region — always centred (e.g. a "Powered by" lockup). */
|
|
28
28
|
declare function FooterCenter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime151.JSX.Element;
|
|
32
32
|
/** Trailing region — right-aligned on md+ (e.g. legal links). Wraps on small screens. */
|
|
33
33
|
declare function FooterEnd({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime151.JSX.Element;
|
|
37
37
|
/** "Powered by" lockup — the label plus a slot for the brand mark (a <Logo />). */
|
|
38
38
|
declare function FooterPoweredBy({
|
|
39
39
|
className,
|
|
@@ -43,12 +43,12 @@ declare function FooterPoweredBy({
|
|
|
43
43
|
}: React.ComponentProps<"div"> & {
|
|
44
44
|
/** Override the default "Powered by" label. */
|
|
45
45
|
label?: React.ReactNode;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime151.JSX.Element;
|
|
47
47
|
/** Visual divider between trailing links. */
|
|
48
48
|
declare function FooterSeparator({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"span">):
|
|
51
|
+
}: React.ComponentProps<"span">): react_jsx_runtime151.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { Footer, FooterCenter, FooterEnd, FooterPoweredBy, FooterSeparator, FooterStart };
|
|
54
54
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/Footer/Footer.tsx"],"mappings":";;;;cAyBM;;;EAAA,SAAA,KAAA,EAAA,oCAII;AAAA,CAAA;;iBAGD,MAAA,CACP;EAAA,SAAA;EAAA,QAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAIC,KAAA,CAAM,cAJP,CAAA,QAAA,CAAA,GAAA;;UAEA,CAAA,EAAA,OAAA;;YAM0B,CAAA,EAAA,MAAA,OAAA,iBAAA;IAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/Footer/Footer.tsx"],"mappings":";;;;cAyBM;;;EAAA,SAAA,KAAA,EAAA,oCAII;AAAA,CAAA;;iBAGD,MAAA,CACP;EAAA,SAAA;EAAA,QAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAIC,KAAA,CAAM,cAJP,CAAA,QAAA,CAAA,GAAA;;UAEA,CAAA,EAAA,OAAA;;YAM0B,CAAA,EAAA,MAAA,OAAA,iBAAA;IAC3B,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA;AAAA,iBAoBQ,WAAA,CAAW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,KAAA,CAAM,cAAhC,CAAA,KAAA,CAAA,CAAA,EAAqD,oBAAA,CAAA,GAAA,CAAA,OAArD;;iBAcX,YAAA,CAdc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAcwB,KAAA,CAAM,cAd9B,CAAA,KAAA,CAAA,CAAA,EAcmD,oBAAA,CAAA,GAAA,CAAA,OAdnD;;iBAyBd,SAAA,CAzBgE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyB7B,KAAA,CAAM,cAzBuB,CAAA,KAAA,CAAA,CAAA,EAyBF,oBAAA,CAAA,GAAA,CAAA,OAzBE;AAAA;AAAA,iBAuChE,eAAA,CAzBY;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EA8BlB,KAAA,CAAM,cA9BY,CAAA,KAAA,CAAA,GAAA;EAAA;OAAG,CAAA,EAgCd,KAAA,CAAM,SAhCQ;IAiCvB,oBAAA,CAAA,GAAA,CAAA,OAjCoD;;AAAqB,iBAiDjE,eAAA,CAjDiE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiDxB,KAAA,CAAM,cAjDkB,CAAA,MAAA,CAAA,CAAA,EAiDI,oBAAA,CAAA,GAAA,CAAA,OAjDJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/Footer/Footer.d.ts
|
|
5
5
|
declare const footerBackgrounds: {
|
|
@@ -18,22 +18,22 @@ declare function Footer({
|
|
|
18
18
|
bordered?: boolean;
|
|
19
19
|
/** Surface fill. `glass` is a translucent, blurred panel over the page background. */
|
|
20
20
|
background?: keyof typeof footerBackgrounds;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime63.JSX.Element;
|
|
22
22
|
/** Leading region — left-aligned on md+ (e.g. an app version). */
|
|
23
23
|
declare function FooterStart({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<"div">):
|
|
26
|
+
}: React.ComponentProps<"div">): react_jsx_runtime63.JSX.Element;
|
|
27
27
|
/** Centre region — always centred (e.g. a "Powered by" lockup). */
|
|
28
28
|
declare function FooterCenter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime63.JSX.Element;
|
|
32
32
|
/** Trailing region — right-aligned on md+ (e.g. legal links). Wraps on small screens. */
|
|
33
33
|
declare function FooterEnd({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime63.JSX.Element;
|
|
37
37
|
/** "Powered by" lockup — the label plus a slot for the brand mark (a <Logo />). */
|
|
38
38
|
declare function FooterPoweredBy({
|
|
39
39
|
className,
|
|
@@ -43,12 +43,12 @@ declare function FooterPoweredBy({
|
|
|
43
43
|
}: React.ComponentProps<"div"> & {
|
|
44
44
|
/** Override the default "Powered by" label. */
|
|
45
45
|
label?: React.ReactNode;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime63.JSX.Element;
|
|
47
47
|
/** Visual divider between trailing links. */
|
|
48
48
|
declare function FooterSeparator({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"span">):
|
|
51
|
+
}: React.ComponentProps<"span">): react_jsx_runtime63.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { Footer, FooterCenter, FooterEnd, FooterPoweredBy, FooterSeparator, FooterStart };
|
|
54
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,6 +10,7 @@ exports.ProjectPicker = require_Header.ProjectPicker;
|
|
|
10
10
|
exports.TOGGLE_PROJECT_DROPDOWN_EVENT = require_Header.TOGGLE_PROJECT_DROPDOWN_EVENT;
|
|
11
11
|
exports.ThemeToggle = require_Header.ThemeToggle;
|
|
12
12
|
exports.buildEndpoints = require_Header.buildEndpoints;
|
|
13
|
+
exports.getSessionClaims = require_Header.getSessionClaims;
|
|
13
14
|
exports.getSessionToken = require_Header.getSessionToken;
|
|
14
15
|
exports.isSessionValid = require_Header.isSessionValid;
|
|
15
16
|
exports.useGlobalHeader = require_Header.useGlobalHeader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { DEFAULT_LABELS, Fetcher, GlobalHeaderState, Header, HeaderBar, HeaderEndpoints, HeaderLogo, HeaderProps, HeaderSelection, Labels, OrgPill, ProfileMenu, ProjectNode, ProjectPicker, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, ToggleProjectDropdownDetail, UseHeaderProjectResult, buildEndpoints, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|
|
1
|
+
import { C as Fetcher, E as ProjectNode, S as ThemeToggle, T as HeaderProps, _ as Header, a as getSessionClaims, b as OrgPill, c as HeaderSelection, d as useHeaderProject, f as GlobalHeaderState, g as ProjectPicker, h as useGlobalHeader, i as SessionClaims, l as UseHeaderProjectResult, m as ToggleProjectDropdownDetail, n as Labels, o as getSessionToken, p as TOGGLE_PROJECT_DROPDOWN_EVENT, r as buildEndpoints, s as isSessionValid, t as DEFAULT_LABELS, u as useHeaderCredits, v as HeaderBar, w as HeaderEndpoints, x as ProfileMenu, y as HeaderLogo } from "../../index71.cjs";
|
|
2
|
+
export { DEFAULT_LABELS, Fetcher, GlobalHeaderState, Header, HeaderBar, HeaderEndpoints, HeaderLogo, HeaderProps, HeaderSelection, Labels, OrgPill, ProfileMenu, ProjectNode, ProjectPicker, SessionClaims, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, ToggleProjectDropdownDetail, UseHeaderProjectResult, buildEndpoints, getSessionClaims, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { DEFAULT_LABELS, Fetcher, GlobalHeaderState, Header, HeaderBar, HeaderEndpoints, HeaderLogo, HeaderProps, HeaderSelection, Labels, OrgPill, ProfileMenu, ProjectNode, ProjectPicker, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, ToggleProjectDropdownDetail, UseHeaderProjectResult, buildEndpoints, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|
|
1
|
+
import { C as Fetcher, E as ProjectNode, S as ThemeToggle, T as HeaderProps, _ as Header, a as getSessionClaims, b as OrgPill, c as HeaderSelection, d as useHeaderProject, f as GlobalHeaderState, g as ProjectPicker, h as useGlobalHeader, i as SessionClaims, l as UseHeaderProjectResult, m as ToggleProjectDropdownDetail, n as Labels, o as getSessionToken, p as TOGGLE_PROJECT_DROPDOWN_EVENT, r as buildEndpoints, s as isSessionValid, t as DEFAULT_LABELS, u as useHeaderCredits, v as HeaderBar, w as HeaderEndpoints, x as ProfileMenu, y as HeaderLogo } from "../../index71.js";
|
|
2
|
+
export { DEFAULT_LABELS, Fetcher, GlobalHeaderState, Header, HeaderBar, HeaderEndpoints, HeaderLogo, HeaderProps, HeaderSelection, Labels, OrgPill, ProfileMenu, ProjectNode, ProjectPicker, SessionClaims, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, ToggleProjectDropdownDetail, UseHeaderProjectResult, buildEndpoints, getSessionClaims, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ProfileMenu, c as useGlobalHeader, d as
|
|
2
|
-
export { DEFAULT_LABELS, Header, HeaderBar, HeaderLogo, OrgPill, ProfileMenu, ProjectPicker, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, buildEndpoints, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|
|
1
|
+
import { a as ProfileMenu, c as useGlobalHeader, d as isSessionValid, f as useHeaderCredits, g as ProjectPicker, h as DEFAULT_LABELS, i as OrgPill, l as getSessionClaims, m as buildEndpoints, n as HeaderBar, o as ThemeToggle, p as useHeaderProject, r as HeaderLogo, s as TOGGLE_PROJECT_DROPDOWN_EVENT, t as Header, u as getSessionToken } from "../../Header.js";
|
|
2
|
+
export { DEFAULT_LABELS, Header, HeaderBar, HeaderLogo, OrgPill, ProfileMenu, ProjectPicker, TOGGLE_PROJECT_DROPDOWN_EVENT, ThemeToggle, buildEndpoints, getSessionClaims, getSessionToken, isSessionValid, useGlobalHeader, useHeaderCredits, useHeaderProject };
|