@raystack/frontier 0.52.0 → 0.53.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -1,7 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ComponentPropsWithRef, Dispatch, SetStateAction, PropsWithChildren } from 'react';
3
+ import * as yup from 'yup';
3
4
  import * as _tanstack_react_router from '@tanstack/react-router';
4
- import { RouteComponent } from '@tanstack/react-router';
5
+ import { ReactNode, RouteComponent } from '@tanstack/react-router';
5
6
  import { ThemeProviderProps } from '@raystack/apsara/v1';
6
7
 
7
8
  interface AmountProps {
@@ -65,6 +66,21 @@ type SignUpProps = ComponentPropsWithRef<typeof Container> & {
65
66
  };
66
67
  declare const SignUp: ({ logo, title, excludes, ...props }: SignUpProps) => react_jsx_runtime.JSX.Element;
67
68
 
69
+ declare const schema: yup.ObjectSchema<{
70
+ newsletter: boolean | undefined;
71
+ }, yup.AnyObject, {
72
+ newsletter: undefined;
73
+ }, "">;
74
+ type FormData = yup.InferType<typeof schema>;
75
+ type SubscribeProps = {
76
+ logo?: ReactNode;
77
+ title?: string;
78
+ preferenceTitle?: string;
79
+ preferenceDescription?: string;
80
+ onSubmit?: (data: FormData) => void;
81
+ };
82
+ declare const Subscribe: ({ logo, title, preferenceTitle, preferenceDescription, onSubmit }: SubscribeProps) => react_jsx_runtime.JSX.Element;
83
+
68
84
  type CreateOrganizationProps = ComponentPropsWithRef<typeof Container> & {
69
85
  title?: string;
70
86
  description?: string;
@@ -4691,4 +4707,8 @@ interface LayoutProps {
4691
4707
  }
4692
4708
  declare function Layout({ title, children }: PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
4693
4709
 
4694
- export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useBillingPermission, useFrontier, useTokens };
4710
+ declare const PREFERENCE_OPTIONS: {
4711
+ readonly NEWSLETTER: "newsletter";
4712
+ };
4713
+
4714
+ export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Window, useBillingPermission, useFrontier, useTokens };