@raystack/frontier 0.116.1 → 0.117.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.js +164 -164
- package/admin/dist/index.mjs +164 -164
- package/client/dist/index.d.ts +20 -5
- package/client/dist/index.js +3091 -2877
- package/client/dist/index.mjs +1893 -1682
- package/package.json +2 -2
package/client/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { ComponentProps, ReactNode, ComponentPropsWithRef, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { Flex, ThemeProviderProps } from '@raystack/apsara';
|
|
4
|
+
import { ConsentDocument, FlowIntent, Plan, ServiceUserToken, Organization, Group, User, BillingAccount, Subscription, PaymentMethod, OrganizationKyc, BillingAccountDetails } from '@raystack/proton/frontier';
|
|
4
5
|
import * as yup from 'yup';
|
|
5
|
-
import { Plan, ServiceUserToken, Organization, Group, User, BillingAccount, Subscription, PaymentMethod, OrganizationKyc, BillingAccountDetails } from '@raystack/proton/frontier';
|
|
6
6
|
import { QueryClient, UseQueryResult, UseMutationResult } from '@tanstack/react-query';
|
|
7
7
|
import { ConnectError } from '@connectrpc/connect';
|
|
8
8
|
import { DescMessage, MessageShape, DescMethodUnary, MessageInitShape } from '@bufbuild/protobuf';
|
|
@@ -48,28 +48,43 @@ type AuthHeaderProps = ComponentPropsWithRef<'div'> & {
|
|
|
48
48
|
};
|
|
49
49
|
declare const AuthHeader: ({ title, logo }: AuthHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
50
50
|
|
|
51
|
+
type AuthRejection = {
|
|
52
|
+
message: string;
|
|
53
|
+
strategy?: string;
|
|
54
|
+
};
|
|
55
|
+
declare const describeAuthError: (error: unknown) => AuthRejection;
|
|
56
|
+
|
|
51
57
|
type SignInViewProps = ComponentPropsWithRef<'div'> & AuthContainerProps & {
|
|
52
58
|
logo?: ReactNode;
|
|
53
59
|
title?: string;
|
|
54
60
|
excludes?: string[];
|
|
55
61
|
footer?: boolean;
|
|
62
|
+
error?: AuthRejection;
|
|
56
63
|
};
|
|
57
|
-
declare const SignInView: ({ logo, title, excludes, footer, ...props }: SignInViewProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare const SignInView: ({ logo, title, excludes, footer, error, ...props }: SignInViewProps) => react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
66
|
+
type ConsentLabel = ReactNode | ((documents: ConsentDocument[]) => ReactNode);
|
|
58
67
|
|
|
59
68
|
type SignUpViewProps = ComponentPropsWithRef<'div'> & AuthContainerProps & {
|
|
60
69
|
logo?: ReactNode;
|
|
61
70
|
title?: string;
|
|
62
71
|
excludes?: string[];
|
|
72
|
+
consentLabel?: ConsentLabel;
|
|
73
|
+
error?: AuthRejection;
|
|
63
74
|
};
|
|
64
|
-
declare const SignUpView: ({ logo, title, excludes, ...props }: SignUpViewProps) => react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare const SignUpView: ({ logo, title, excludes, consentLabel, error, ...props }: SignUpViewProps) => react_jsx_runtime.JSX.Element;
|
|
65
76
|
|
|
66
77
|
type MagicLinkViewProps = ComponentPropsWithRef<'div'> & AuthContainerProps & {
|
|
67
78
|
logo?: ReactNode;
|
|
68
79
|
title?: string;
|
|
69
80
|
open?: boolean;
|
|
70
81
|
inline?: boolean;
|
|
82
|
+
intent?: FlowIntent;
|
|
83
|
+
acceptedDocumentIds?: string[];
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
onActivate?: () => void;
|
|
71
86
|
};
|
|
72
|
-
declare const MagicLinkView: ({ logo, title, open, inline, ...props }: MagicLinkViewProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare const MagicLinkView: ({ logo, title, open, inline, intent, acceptedDocumentIds, disabled, onActivate, ...props }: MagicLinkViewProps) => react_jsx_runtime.JSX.Element;
|
|
73
88
|
|
|
74
89
|
type MagicLinkVerifyViewProps = ComponentPropsWithRef<'div'> & AuthContainerProps & {
|
|
75
90
|
logo?: ReactNode;
|
|
@@ -478,4 +493,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
|
|
|
478
493
|
declare function isNullTimestamp(timestamp?: Timestamp): boolean;
|
|
479
494
|
type TimeStamp = Timestamp;
|
|
480
495
|
|
|
481
|
-
export { AuthContainer, AuthHeader, BillingView, CreateOrganizationView, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, GeneralView, ImageUpload, MagicLinkVerifyView, MagicLinkView, MembersView, PATDetailsView, PREFERENCE_OPTIONS, PatsView, PlansView, PreferenceRow, PreferencesView, ProfileView, ProjectDetailsView, ProjectsView, SecurityView, ServiceAccountDetailsView, ServiceAccountsView, SessionsView, SignInView, SignUpView, SubscribeView, TeamDetailsView, TeamsView, TimeStamp, TokensView, UpdatesView, ViewContainer, ViewHeader, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTerminology, useTokens };
|
|
496
|
+
export { AuthContainer, AuthHeader, AuthRejection, BillingView, CreateOrganizationView, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, GeneralView, ImageUpload, MagicLinkVerifyView, MagicLinkView, MembersView, PATDetailsView, PREFERENCE_OPTIONS, PatsView, PlansView, PreferenceRow, PreferencesView, ProfileView, ProjectDetailsView, ProjectsView, SecurityView, ServiceAccountDetailsView, ServiceAccountsView, SessionsView, SignInView, SignUpView, SubscribeView, TeamDetailsView, TeamsView, TimeStamp, TokensView, UpdatesView, ViewContainer, ViewHeader, describeAuthError, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTerminology, useTokens };
|