@graphcore/react-kernel 0.2.0 → 0.2.2

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.
@@ -0,0 +1,2 @@
1
+ /** Whether the issuer has a registration page, so a sign-in screen offers "Create account" only where it leads somewhere. */
2
+ export declare function useOffersRegistration(): boolean;
@@ -12,8 +12,6 @@ export interface GraphCoreProviderProps {
12
12
  * register.
13
13
  */
14
14
  registry: ViewRegistry;
15
- /** The issuer's public client the frontend signs in as. Default `graphcore-web`. */
16
- oidcClientId?: string;
17
15
  /**
18
16
  * Optional — supply to bypass AuthPage/useAuth (token injection path).
19
17
  * The function is called once on mount and whenever re-injecting.
@@ -40,4 +38,4 @@ export interface GraphCoreProviderProps {
40
38
  * Token injection (escape hatch): pass getToken + principalEntityId to bypass
41
39
  * AuthPage when you already have a valid GraphCore token from an external system.
42
40
  */
43
- export declare function GraphCoreProvider({ apiUrl, wsUrl, registry, getToken, principalEntityId, oidcClientId, agentMirror, basePath, children, }: GraphCoreProviderProps): React.JSX.Element;
41
+ export declare function GraphCoreProvider({ apiUrl, wsUrl, registry, getToken, principalEntityId, agentMirror, basePath, children, }: GraphCoreProviderProps): React.JSX.Element;
@@ -5,8 +5,9 @@ export { TopBar } from '../components/TopBar/TopBar';
5
5
  export type { TopBarPlace, TopBarProps } from '../components/TopBar/TopBar';
6
6
  export { ViewGallery } from '../components/ViewEntity/ViewGallery/ViewGallery';
7
7
  export { useAuth } from '../hooks/useAuth';
8
+ export { useOffersRegistration } from '../hooks/useOffersRegistration';
8
9
  export { AccessPanel, GroupView, useAccess } from '../components/Access';
9
- export { INVITE_ROUTE, InviteRoute, inviteUrl } from '../components/Invite';
10
+ export { INVITE_ROUTE, InviteRoute, inviteUrl, usePendingInvite } from '../components/Invite';
10
11
  export type { InviteRouteProps, RedeemedInvite } from '../components/Invite';
11
12
  export { ADMIN_ROUTE, AdminPanel, useIsDeploymentAdmin } from '../components/Admin';
12
13
  export type { AdminPanelProps, DeploymentRole } from '../components/Admin';
@@ -5,7 +5,7 @@
5
5
  * GraphCore bridge can read the correct URLs at call-time without relying on
6
6
  * build-time env vars.
7
7
  */
8
- export declare function setRuntimeConfig(apiUrl: string, wsUrl: string, getToken?: (() => string | null) | null, oidcClientId?: string): void;
8
+ export declare function setRuntimeConfig(apiUrl: string, wsUrl: string, getToken?: (() => string | null) | null): void;
9
9
  /** `/app` from `/app/`, `app` or `/app`; the empty string for the root. */
10
10
  export declare function normalizeBasePath(basePath?: string | null): string;
11
11
  export declare function setBasePath(basePath?: string | null): void;
@@ -13,8 +13,6 @@ export declare function setBasePath(basePath?: string | null): void;
13
13
  export declare function getBasePath(): string;
14
14
  /** The web path of an in-app path such as `/e/…` or `/auth/callback`. */
15
15
  export declare function webPath(path: string): string;
16
- /** The issuer's public client the frontend signs in as. */
17
- export declare function getOidcClientId(): string;
18
16
  export declare function getApiUrl(): string;
19
17
  export declare function getWsUrl(): string;
20
18
  /** Returns a token from an externally-supplied getToken fn (token injection path). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcore/react-kernel",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "GraphCore React frontend \u2014 EntityView, WebSocket plumbing, and view registry for building GraphCore-powered applications.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {