@bunnyapp/components 1.0.10 → 1.0.11
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/cjs/index.js +2 -8
- package/dist/cjs/src/components/BunnyProvider.d.ts +2 -2
- package/dist/esm/index.js +2 -8
- package/dist/esm/src/components/BunnyProvider.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/src/graphql/queries/getCurrentUserData.d.ts +0 -12
- package/dist/esm/src/graphql/queries/getCurrentUserData.d.ts +0 -12
package/dist/cjs/index.js
CHANGED
|
@@ -3238,10 +3238,7 @@ var PandadocPollingModal = function (_a) {
|
|
|
3238
3238
|
}, apiHost || "", function () {
|
|
3239
3239
|
console.log("graphQLMutation onError not yet implemented");
|
|
3240
3240
|
});
|
|
3241
|
-
var handleAllErrorFormats = common.useAllErrorFormats(onErrorNavigate
|
|
3242
|
-
(function (url) {
|
|
3243
|
-
console.log("navigate to", url, " not implemented");
|
|
3244
|
-
}));
|
|
3241
|
+
var handleAllErrorFormats = common.useAllErrorFormats(onErrorNavigate);
|
|
3245
3242
|
var _c = React.useState(0), numberOfPolls = _c[0], setNumberOfPolls = _c[1];
|
|
3246
3243
|
var _d = React.useState(""), infoMessage = _d[0], setInfoMessage = _d[1];
|
|
3247
3244
|
React.useEffect(function () {
|
|
@@ -3819,10 +3816,7 @@ var ActualPaymentMethod = function (_a) {
|
|
|
3819
3816
|
var paymentPlugins = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: token }).paymentPlugins;
|
|
3820
3817
|
var showErrorNotification = common.useErrorNotification();
|
|
3821
3818
|
var showSuccessNotification = common.useSuccessNotification();
|
|
3822
|
-
var handleAllErrorFormats = common.useAllErrorFormats(onErrorNavigate
|
|
3823
|
-
(function (url) {
|
|
3824
|
-
console.log("navigate to", url, " not implemented");
|
|
3825
|
-
}));
|
|
3819
|
+
var handleAllErrorFormats = common.useAllErrorFormats(onErrorNavigate);
|
|
3826
3820
|
var isMobile = common.useIsMobile();
|
|
3827
3821
|
var data = usePaymentMethod(graphQLClient).data;
|
|
3828
3822
|
// Local state
|
|
@@ -9,14 +9,14 @@ export type BunnyContextValues = {
|
|
|
9
9
|
accountId?: string;
|
|
10
10
|
displayPayButtonNameAnyways?: boolean;
|
|
11
11
|
darkMode?: boolean;
|
|
12
|
-
onErrorNavigate?: (
|
|
12
|
+
onErrorNavigate?: () => void;
|
|
13
13
|
};
|
|
14
14
|
export declare const BunnyContext: import("react").Context<BunnyContextValues>;
|
|
15
15
|
declare function BunnyProvider({ accountId, children, darkMode, onErrorNavigate, queryClient, apiHost, token, window, }: {
|
|
16
16
|
accountId?: string;
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
darkMode?: boolean;
|
|
19
|
-
onErrorNavigate?: (
|
|
19
|
+
onErrorNavigate?: () => void;
|
|
20
20
|
queryClient?: QueryClient;
|
|
21
21
|
apiHost: string;
|
|
22
22
|
token: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -3210,10 +3210,7 @@ var PandadocPollingModal = function (_a) {
|
|
|
3210
3210
|
}, apiHost || "", function () {
|
|
3211
3211
|
console.log("graphQLMutation onError not yet implemented");
|
|
3212
3212
|
});
|
|
3213
|
-
var handleAllErrorFormats = useAllErrorFormats(onErrorNavigate
|
|
3214
|
-
(function (url) {
|
|
3215
|
-
console.log("navigate to", url, " not implemented");
|
|
3216
|
-
}));
|
|
3213
|
+
var handleAllErrorFormats = useAllErrorFormats(onErrorNavigate);
|
|
3217
3214
|
var _c = useState(0), numberOfPolls = _c[0], setNumberOfPolls = _c[1];
|
|
3218
3215
|
var _d = useState(""), infoMessage = _d[0], setInfoMessage = _d[1];
|
|
3219
3216
|
useEffect(function () {
|
|
@@ -3791,10 +3788,7 @@ var ActualPaymentMethod = function (_a) {
|
|
|
3791
3788
|
var paymentPlugins = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: token }).paymentPlugins;
|
|
3792
3789
|
var showErrorNotification = useErrorNotification();
|
|
3793
3790
|
var showSuccessNotification = useSuccessNotification();
|
|
3794
|
-
var handleAllErrorFormats = useAllErrorFormats(onErrorNavigate
|
|
3795
|
-
(function (url) {
|
|
3796
|
-
console.log("navigate to", url, " not implemented");
|
|
3797
|
-
}));
|
|
3791
|
+
var handleAllErrorFormats = useAllErrorFormats(onErrorNavigate);
|
|
3798
3792
|
var isMobile = useIsMobile();
|
|
3799
3793
|
var data = usePaymentMethod(graphQLClient).data;
|
|
3800
3794
|
// Local state
|
|
@@ -9,14 +9,14 @@ export type BunnyContextValues = {
|
|
|
9
9
|
accountId?: string;
|
|
10
10
|
displayPayButtonNameAnyways?: boolean;
|
|
11
11
|
darkMode?: boolean;
|
|
12
|
-
onErrorNavigate?: (
|
|
12
|
+
onErrorNavigate?: () => void;
|
|
13
13
|
};
|
|
14
14
|
export declare const BunnyContext: import("react").Context<BunnyContextValues>;
|
|
15
15
|
declare function BunnyProvider({ accountId, children, darkMode, onErrorNavigate, queryClient, apiHost, token, window, }: {
|
|
16
16
|
accountId?: string;
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
darkMode?: boolean;
|
|
19
|
-
onErrorNavigate?: (
|
|
19
|
+
onErrorNavigate?: () => void;
|
|
20
20
|
queryClient?: QueryClient;
|
|
21
21
|
apiHost: string;
|
|
22
22
|
token: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare function BunnyProvider({ accountId, children, darkMode, onErrorNavigate,
|
|
|
99
99
|
accountId?: string;
|
|
100
100
|
children: React.ReactNode;
|
|
101
101
|
darkMode?: boolean;
|
|
102
|
-
onErrorNavigate?: (
|
|
102
|
+
onErrorNavigate?: () => void;
|
|
103
103
|
queryClient?: QueryClient;
|
|
104
104
|
apiHost: string;
|
|
105
105
|
token: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunnyapp/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vite": "^5.4.11"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@bunnyapp/common": "^1.0.
|
|
64
|
+
"@bunnyapp/common": "^1.0.37",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
66
66
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
67
67
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@stripe/stripe-js": "^5.2.0",
|
|
72
72
|
"@tanstack/react-query": "^5.59.20",
|
|
73
73
|
"antd": "^5.23.2",
|
|
74
|
-
"graphql-request": "^
|
|
74
|
+
"graphql-request": "^6.1.0",
|
|
75
75
|
"hellosign-embedded": "^2.12.2",
|
|
76
76
|
"interweave": "^13.1.0",
|
|
77
77
|
"less": "^4.2.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const getCurrentUserData: ({ token, apiHost, }: {
|
|
2
|
-
token: string;
|
|
3
|
-
apiHost: string;
|
|
4
|
-
}) => Promise<{
|
|
5
|
-
authObjectName: any;
|
|
6
|
-
companyName: any;
|
|
7
|
-
entityId: any;
|
|
8
|
-
returnUrl: any;
|
|
9
|
-
privacyUrl: any;
|
|
10
|
-
termsUrl: any;
|
|
11
|
-
}>;
|
|
12
|
-
export default getCurrentUserData;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const getCurrentUserData: ({ token, apiHost, }: {
|
|
2
|
-
token: string;
|
|
3
|
-
apiHost: string;
|
|
4
|
-
}) => Promise<{
|
|
5
|
-
authObjectName: any;
|
|
6
|
-
companyName: any;
|
|
7
|
-
entityId: any;
|
|
8
|
-
returnUrl: any;
|
|
9
|
-
privacyUrl: any;
|
|
10
|
-
termsUrl: any;
|
|
11
|
-
}>;
|
|
12
|
-
export default getCurrentUserData;
|