@raystack/frontier 0.78.0 → 0.78.1
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 +2 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +1 -0
- package/hooks/dist/index.d.ts +3 -1
- package/hooks/dist/index.js +12 -2
- package/hooks/dist/index.mjs +14 -2
- package/package.json +1 -1
- package/react/dist/index.d.ts +3 -1
- package/react/dist/index.js +159 -155
- package/react/dist/index.mjs +173 -164
package/dist/index.d.ts
CHANGED
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
package/hooks/dist/index.d.ts
CHANGED
|
@@ -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';
|
package/hooks/dist/index.js
CHANGED
|
@@ -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
|
});
|
package/hooks/dist/index.mjs
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
// hooks/index.ts
|
|
4
|
-
import {
|
|
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
package/react/dist/index.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -5588,6 +5589,7 @@ interface FrontierContextProviderProps {
|
|
|
5588
5589
|
}
|
|
5589
5590
|
declare function useFrontier(): FrontierContextProviderProps;
|
|
5590
5591
|
|
|
5592
|
+
declare const queryClient: QueryClient;
|
|
5591
5593
|
declare const FrontierProvider: {
|
|
5592
5594
|
(props: FrontierProviderProps): react_jsx_runtime.JSX.Element;
|
|
5593
5595
|
displayName: string;
|
|
@@ -5652,4 +5654,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
|
|
|
5652
5654
|
declare function isNullTimestamp(timestamp?: Timestamp): boolean;
|
|
5653
5655
|
type TimeStamp = Timestamp;
|
|
5654
5656
|
|
|
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 };
|
|
5657
|
+
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 };
|