@raystack/frontier 0.78.0 → 0.78.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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from '@raystack/proton/frontier';
2
+
1
3
  type QueryParamsType = Record<string | number, any>;
2
4
  type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
3
5
  interface FullRequestParams extends Omit<RequestInit, "body"> {
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ var __copyProps = (to, from, except, desc) => {
44
44
  }
45
45
  return to;
46
46
  };
47
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
47
48
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
49
  var __async = (__this, __arguments, generator) => {
49
50
  return new Promise((resolve, reject) => {
@@ -4110,11 +4111,13 @@ var ProtobufNullValue = /* @__PURE__ */ ((ProtobufNullValue2) => {
4110
4111
  })(ProtobufNullValue || {});
4111
4112
 
4112
4113
  // src/index.ts
4114
+ __reExport(src_exports, require("@raystack/proton/frontier"), module.exports);
4113
4115
  var FrontierClient = V1Beta1;
4114
4116
  // Annotate the CommonJS export names for ESM import in node:
4115
4117
  0 && (module.exports = {
4116
4118
  FrontierClient,
4117
4119
  ProtobufNullValue,
4118
4120
  V1Beta1,
4119
- V1Beta1ProspectStatus
4121
+ V1Beta1ProspectStatus,
4122
+ ...require("@raystack/proton/frontier")
4120
4123
  });
package/dist/index.mjs CHANGED
@@ -4084,6 +4084,7 @@ var ProtobufNullValue = /* @__PURE__ */ ((ProtobufNullValue2) => {
4084
4084
  })(ProtobufNullValue || {});
4085
4085
 
4086
4086
  // src/index.ts
4087
+ export * from "@raystack/proton/frontier";
4087
4088
  var FrontierClient = V1Beta1;
4088
4089
  export {
4089
4090
  FrontierClient,
@@ -1,2 +1,4 @@
1
- export { useInfiniteQuery, useMutation, useQuery } from '@connectrpc/connect-query';
1
+ export { createConnectQueryKey, useInfiniteQuery, useMutation, useQuery, useTransport } from '@connectrpc/connect-query';
2
2
  export { FrontierServiceQueries } from '@raystack/proton/frontier';
3
+ export { useQueryClient } from '@tanstack/react-query';
4
+ export { create } from '@bufbuild/protobuf';
@@ -22,17 +22,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var hooks_exports = {};
23
23
  __export(hooks_exports, {
24
24
  FrontierServiceQueries: () => import_frontier.FrontierServiceQueries,
25
+ create: () => import_protobuf.create,
26
+ createConnectQueryKey: () => import_connect_query.createConnectQueryKey,
25
27
  useInfiniteQuery: () => import_connect_query.useInfiniteQuery,
26
28
  useMutation: () => import_connect_query.useMutation,
27
- useQuery: () => import_connect_query.useQuery
29
+ useQuery: () => import_connect_query.useQuery,
30
+ useQueryClient: () => import_react_query.useQueryClient,
31
+ useTransport: () => import_connect_query.useTransport
28
32
  });
29
33
  module.exports = __toCommonJS(hooks_exports);
30
34
  var import_connect_query = require("@connectrpc/connect-query");
31
35
  var import_frontier = require("@raystack/proton/frontier");
36
+ var import_react_query = require("@tanstack/react-query");
37
+ var import_protobuf = require("@bufbuild/protobuf");
32
38
  // Annotate the CommonJS export names for ESM import in node:
33
39
  0 && (module.exports = {
34
40
  FrontierServiceQueries,
41
+ create,
42
+ createConnectQueryKey,
35
43
  useInfiniteQuery,
36
44
  useMutation,
37
- useQuery
45
+ useQuery,
46
+ useQueryClient,
47
+ useTransport
38
48
  });
@@ -1,11 +1,23 @@
1
1
  'use client'
2
2
 
3
3
  // hooks/index.ts
4
- import { useQuery, useMutation, useInfiniteQuery } from "@connectrpc/connect-query";
4
+ import {
5
+ useQuery,
6
+ useMutation,
7
+ useInfiniteQuery,
8
+ useTransport,
9
+ createConnectQueryKey
10
+ } from "@connectrpc/connect-query";
5
11
  import { FrontierServiceQueries } from "@raystack/proton/frontier";
12
+ import { useQueryClient } from "@tanstack/react-query";
13
+ import { create } from "@bufbuild/protobuf";
6
14
  export {
7
15
  FrontierServiceQueries,
16
+ create,
17
+ createConnectQueryKey,
8
18
  useInfiniteQuery,
9
19
  useMutation,
10
- useQuery
20
+ useQuery,
21
+ useQueryClient,
22
+ useTransport
11
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.78.0",
3
+ "version": "0.78.2",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -5,6 +5,7 @@ import { ReactNode, RouteComponent } from '@tanstack/react-router';
5
5
  import * as yup from 'yup';
6
6
  import { Plan, Organization, Group, User, BillingAccount, Subscription, PaymentMethod, OrganizationKyc, BillingAccountDetails } from '@raystack/proton/frontier';
7
7
  import { ThemeProviderProps } from '@raystack/apsara';
8
+ import { QueryClient } from '@tanstack/react-query';
8
9
  import { Timestamp } from '@bufbuild/protobuf/wkt';
9
10
  import { Dayjs } from 'dayjs';
10
11
 
@@ -40,8 +41,9 @@ declare const MagicLink: ({ open, ...props }: MagicLinkProps) => react_jsx_runti
40
41
  type MagicLinkVerifyProps = ComponentPropsWithRef<typeof Container> & {
41
42
  logo?: React.ReactNode;
42
43
  title?: string;
44
+ redirectURL?: string;
43
45
  };
44
- declare const MagicLinkVerify: ({ logo, title, ...props }: MagicLinkVerifyProps) => react_jsx_runtime.JSX.Element;
46
+ declare const MagicLinkVerify: ({ logo, title, redirectURL, ...props }: MagicLinkVerifyProps) => react_jsx_runtime.JSX.Element;
45
47
 
46
48
  type SignedInProps = ComponentPropsWithRef<typeof Container> & {
47
49
  logo?: React.ReactNode;
@@ -5588,6 +5590,7 @@ interface FrontierContextProviderProps {
5588
5590
  }
5589
5591
  declare function useFrontier(): FrontierContextProviderProps;
5590
5592
 
5593
+ declare const queryClient: QueryClient;
5591
5594
  declare const FrontierProvider: {
5592
5595
  (props: FrontierProviderProps): react_jsx_runtime.JSX.Element;
5593
5596
  displayName: string;
@@ -5652,4 +5655,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
5652
5655
  declare function isNullTimestamp(timestamp?: Timestamp): boolean;
5653
5656
  type TimeStamp = Timestamp;
5654
5657
 
5655
- export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, TimeStamp, Updates, Window, isNullTimestamp, timestampToDate, timestampToDayjs, useBillingPermission, useFrontier, usePreferences, useTokens };
5658
+ export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, TimeStamp, Updates, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useFrontier, usePreferences, useTokens };