@raystack/frontier 0.99.0 → 0.100.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/admin/dist/index.d.ts +3 -1
- package/admin/dist/index.js +806 -150
- package/admin/dist/index.mjs +821 -150
- package/package.json +8 -2
- package/react/dist/client.d.ts +423 -0
- package/react/dist/client.js +16015 -0
- package/react/dist/client.mjs +16633 -0
- package/react/dist/index.d.ts +5 -131
- package/react/dist/index.js +186 -13059
- package/react/dist/index.mjs +182 -13643
package/react/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode, Dispatch, SetStateAction, PropsWithChildren
|
|
1
|
+
import React, { ComponentPropsWithRef, ReactNode, Dispatch, SetStateAction, PropsWithChildren } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
import * as _tanstack_history from '@tanstack/history';
|
|
@@ -10,7 +10,6 @@ import { ThemeProviderProps } from '@raystack/apsara';
|
|
|
10
10
|
import { QueryClient, UseQueryResult, UseMutationResult } from '@tanstack/react-query';
|
|
11
11
|
import { ConnectError } from '@connectrpc/connect';
|
|
12
12
|
import { DescMessage, MessageShape, DescMethodUnary, MessageInitShape } from '@bufbuild/protobuf';
|
|
13
|
-
import { Flex } from '@raystack/apsara-v1';
|
|
14
13
|
import { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
15
14
|
import { Dayjs } from 'dayjs';
|
|
16
15
|
|
|
@@ -268,6 +267,8 @@ interface FrontierProviderProps {
|
|
|
268
267
|
initialState?: InitialState;
|
|
269
268
|
customHeaders?: Record<string, CustomHeaderValue>;
|
|
270
269
|
theme?: ThemeProviderProps;
|
|
270
|
+
renderToastProvider?: boolean;
|
|
271
|
+
renderThemeProvider?: boolean;
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
interface FrontierContextProviderProps {
|
|
@@ -349,6 +350,7 @@ declare const useTokens: () => UseTokensReturn;
|
|
|
349
350
|
declare const useBillingPermission: () => {
|
|
350
351
|
isFetching: boolean;
|
|
351
352
|
isAllowed: boolean;
|
|
353
|
+
canSeeBilling: boolean;
|
|
352
354
|
};
|
|
353
355
|
|
|
354
356
|
type UseConnectQueryPollingResult<TData> = UseQueryResult<TData, ConnectError> & {
|
|
@@ -412,134 +414,6 @@ interface PageHeaderProps {
|
|
|
412
414
|
*/
|
|
413
415
|
declare const PageHeader: ({ title, description }: PageHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
414
416
|
|
|
415
|
-
interface ImageUploadProps {
|
|
416
|
-
description?: string;
|
|
417
|
-
value?: string;
|
|
418
|
-
onChange?: (value: string) => void;
|
|
419
|
-
disabled?: boolean;
|
|
420
|
-
initials?: string;
|
|
421
|
-
'data-test-id'?: string;
|
|
422
|
-
}
|
|
423
|
-
declare function ImageUpload({ description, value, onChange, disabled, initials, ...rest }: ImageUploadProps): react_jsx_runtime.JSX.Element;
|
|
424
|
-
|
|
425
|
-
interface ViewContainerProps extends ComponentProps<typeof Flex> {
|
|
426
|
-
contentProps?: Omit<ComponentProps<typeof Flex>, 'children'>;
|
|
427
|
-
}
|
|
428
|
-
declare function ViewContainer({ children, contentProps, className, ...props }: ViewContainerProps): react_jsx_runtime.JSX.Element;
|
|
429
|
-
|
|
430
|
-
interface ViewHeaderProps extends ComponentProps<typeof Flex> {
|
|
431
|
-
title: string;
|
|
432
|
-
description?: string;
|
|
433
|
-
/**
|
|
434
|
-
* When provided, renders a breadcrumb row above the title.
|
|
435
|
-
* `children` are placed alongside the breadcrumb (e.g. action buttons).
|
|
436
|
-
* Without breadcrumb, `children` render alongside the title (default layout).
|
|
437
|
-
*/
|
|
438
|
-
breadcrumb?: ReactNode;
|
|
439
|
-
}
|
|
440
|
-
declare function ViewHeader({ title, description, breadcrumb, children, ...props }: ViewHeaderProps): react_jsx_runtime.JSX.Element;
|
|
441
|
-
|
|
442
|
-
interface GeneralViewProps {
|
|
443
|
-
onDeleteSuccess?: () => void;
|
|
444
|
-
urlPrefix?: string;
|
|
445
|
-
}
|
|
446
|
-
declare function GeneralView({ onDeleteSuccess, urlPrefix }?: GeneralViewProps): react_jsx_runtime.JSX.Element;
|
|
447
|
-
|
|
448
|
-
interface PreferencesViewProps {
|
|
449
|
-
children?: ReactNode;
|
|
450
|
-
}
|
|
451
|
-
declare function PreferencesView({ children }: PreferencesViewProps): react_jsx_runtime.JSX.Element;
|
|
452
|
-
|
|
453
|
-
interface PreferenceRowProps extends ComponentProps<typeof Flex> {
|
|
454
|
-
title: string;
|
|
455
|
-
description: string;
|
|
456
|
-
isLoading?: boolean;
|
|
457
|
-
contentProps?: ComponentProps<typeof Flex>;
|
|
458
|
-
}
|
|
459
|
-
declare function PreferenceRow({ title, description, isLoading, children, className, contentProps, ...props }: PreferenceRowProps): react_jsx_runtime.JSX.Element;
|
|
460
|
-
|
|
461
|
-
declare function ProfileView(): react_jsx_runtime.JSX.Element;
|
|
462
|
-
|
|
463
|
-
interface SessionsViewProps {
|
|
464
|
-
onLogout?: () => void;
|
|
465
|
-
onRevoke?: () => void;
|
|
466
|
-
}
|
|
467
|
-
declare function SessionsView({ onLogout, onRevoke }?: SessionsViewProps): react_jsx_runtime.JSX.Element;
|
|
468
|
-
|
|
469
|
-
interface MembersViewProps {
|
|
470
|
-
showTeamField?: boolean;
|
|
471
|
-
}
|
|
472
|
-
declare function MembersView({ showTeamField }: MembersViewProps): react_jsx_runtime.JSX.Element;
|
|
473
|
-
|
|
474
|
-
interface SecurityViewProps {
|
|
475
|
-
children?: ReactNode;
|
|
476
|
-
}
|
|
477
|
-
declare function SecurityView({ children }: SecurityViewProps): react_jsx_runtime.JSX.Element;
|
|
478
|
-
|
|
479
|
-
interface ProjectsViewProps {
|
|
480
|
-
title?: string;
|
|
481
|
-
description?: string;
|
|
482
|
-
onProjectClick?: (projectId: string) => void;
|
|
483
|
-
}
|
|
484
|
-
declare function ProjectsView({ title, description, onProjectClick }: ProjectsViewProps): react_jsx_runtime.JSX.Element;
|
|
485
|
-
|
|
486
|
-
interface ProjectDetailsViewProps {
|
|
487
|
-
projectId: string;
|
|
488
|
-
projectsLabel?: string;
|
|
489
|
-
onNavigateToProjects?: () => void;
|
|
490
|
-
onDeleteSuccess?: () => void;
|
|
491
|
-
}
|
|
492
|
-
declare function ProjectDetailsView({ projectId, projectsLabel, onNavigateToProjects, onDeleteSuccess }: ProjectDetailsViewProps): react_jsx_runtime.JSX.Element;
|
|
493
|
-
|
|
494
|
-
interface BillingViewProps {
|
|
495
|
-
onNavigateToPlans?: () => void;
|
|
496
|
-
}
|
|
497
|
-
declare function BillingView({ onNavigateToPlans }: BillingViewProps): react_jsx_runtime.JSX.Element;
|
|
498
|
-
|
|
499
|
-
declare function TokensView(): react_jsx_runtime.JSX.Element;
|
|
500
|
-
|
|
501
|
-
interface TeamsViewProps {
|
|
502
|
-
title?: string;
|
|
503
|
-
description?: string;
|
|
504
|
-
onTeamClick?: (teamId: string) => void;
|
|
505
|
-
}
|
|
506
|
-
declare function TeamsView({ title, description, onTeamClick }: TeamsViewProps): react_jsx_runtime.JSX.Element;
|
|
507
|
-
|
|
508
|
-
interface TeamDetailsViewProps {
|
|
509
|
-
teamId: string;
|
|
510
|
-
teamsLabel?: string;
|
|
511
|
-
onNavigateToTeams?: () => void;
|
|
512
|
-
onDeleteSuccess?: () => void;
|
|
513
|
-
}
|
|
514
|
-
declare function TeamDetailsView({ teamId, teamsLabel, onNavigateToTeams, onDeleteSuccess }: TeamDetailsViewProps): react_jsx_runtime.JSX.Element;
|
|
515
|
-
|
|
516
|
-
interface ServiceAccountsViewProps {
|
|
517
|
-
onServiceAccountClick?: (id: string) => void;
|
|
518
|
-
}
|
|
519
|
-
declare function ServiceAccountsView({ onServiceAccountClick }: ServiceAccountsViewProps): react_jsx_runtime.JSX.Element;
|
|
520
|
-
|
|
521
|
-
interface ServiceAccountDetailsViewProps {
|
|
522
|
-
serviceAccountId: string;
|
|
523
|
-
serviceAccountsLabel?: string;
|
|
524
|
-
onNavigateToServiceAccounts?: () => void;
|
|
525
|
-
onDeleteSuccess?: () => void;
|
|
526
|
-
}
|
|
527
|
-
declare function ServiceAccountDetailsView({ serviceAccountId, serviceAccountsLabel, onNavigateToServiceAccounts, onDeleteSuccess }: ServiceAccountDetailsViewProps): react_jsx_runtime.JSX.Element;
|
|
528
|
-
|
|
529
|
-
declare function PlansView(): react_jsx_runtime.JSX.Element;
|
|
530
|
-
|
|
531
|
-
interface PatsViewProps {
|
|
532
|
-
onPATClick?: (patId: string) => void;
|
|
533
|
-
}
|
|
534
|
-
declare function PatsView({ onPATClick }?: PatsViewProps): react_jsx_runtime.JSX.Element;
|
|
535
|
-
|
|
536
|
-
interface PATDetailsViewProps {
|
|
537
|
-
patId: string;
|
|
538
|
-
onNavigateToPats?: () => void;
|
|
539
|
-
onDeleteSuccess?: () => void;
|
|
540
|
-
}
|
|
541
|
-
declare function PATDetailsView({ patId, onNavigateToPats, onDeleteSuccess }: PATDetailsViewProps): react_jsx_runtime.JSX.Element;
|
|
542
|
-
|
|
543
417
|
declare const PREFERENCE_OPTIONS: {
|
|
544
418
|
readonly NEWSLETTER: "newsletter";
|
|
545
419
|
};
|
|
@@ -558,4 +432,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
|
|
|
558
432
|
declare function isNullTimestamp(timestamp?: Timestamp): boolean;
|
|
559
433
|
type TimeStamp = Timestamp;
|
|
560
434
|
|
|
561
|
-
export { AvatarUpload,
|
|
435
|
+
export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, PageHeader, SignIn, SignUp, Subscribe, TimeStamp, Updates, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTerminology, useTokens };
|