@whop/embedded-components-react-js 0.0.5-beta.6 → 0.0.5-beta.8
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 +1 -0
- package/dist/lib/with-fallback.d.ts +55 -0
- package/dist/lib/with-fallback.js +85 -0
- package/dist/lib/with-fallback.js.map +1 -0
- package/dist/lib/with-fallback.mjs +58 -0
- package/dist/lib/with-fallback.mjs.map +1 -0
- package/dist/payouts/elements/balance.d.ts +8 -13
- package/dist/payouts/elements/balance.js +5 -61
- package/dist/payouts/elements/balance.js.map +1 -1
- package/dist/payouts/elements/balance.mjs +5 -53
- package/dist/payouts/elements/balance.mjs.map +1 -1
- package/dist/payouts/elements/bnpl-reserve-balance-breakdown.d.ts +8 -13
- package/dist/payouts/elements/bnpl-reserve-balance-breakdown.js +5 -61
- package/dist/payouts/elements/bnpl-reserve-balance-breakdown.js.map +1 -1
- package/dist/payouts/elements/bnpl-reserve-balance-breakdown.mjs +5 -53
- package/dist/payouts/elements/bnpl-reserve-balance-breakdown.mjs.map +1 -1
- package/dist/payouts/elements/change-account-country.d.ts +8 -13
- package/dist/payouts/elements/change-account-country.js +5 -61
- package/dist/payouts/elements/change-account-country.js.map +1 -1
- package/dist/payouts/elements/change-account-country.mjs +5 -53
- package/dist/payouts/elements/change-account-country.mjs.map +1 -1
- package/dist/payouts/elements/generate-withdrawal-receipt.d.ts +8 -13
- package/dist/payouts/elements/generate-withdrawal-receipt.js +5 -61
- package/dist/payouts/elements/generate-withdrawal-receipt.js.map +1 -1
- package/dist/payouts/elements/generate-withdrawal-receipt.mjs +5 -53
- package/dist/payouts/elements/generate-withdrawal-receipt.mjs.map +1 -1
- package/dist/payouts/elements/index.d.ts +1 -0
- package/dist/payouts/elements/pending-balance-breakdown.d.ts +8 -13
- package/dist/payouts/elements/pending-balance-breakdown.js +5 -61
- package/dist/payouts/elements/pending-balance-breakdown.js.map +1 -1
- package/dist/payouts/elements/pending-balance-breakdown.mjs +5 -53
- package/dist/payouts/elements/pending-balance-breakdown.mjs.map +1 -1
- package/dist/payouts/elements/regular-reserve-balance-breakdown.d.ts +8 -13
- package/dist/payouts/elements/regular-reserve-balance-breakdown.js +5 -61
- package/dist/payouts/elements/regular-reserve-balance-breakdown.js.map +1 -1
- package/dist/payouts/elements/regular-reserve-balance-breakdown.mjs +5 -53
- package/dist/payouts/elements/regular-reserve-balance-breakdown.mjs.map +1 -1
- package/dist/payouts/elements/reset-account.d.ts +8 -13
- package/dist/payouts/elements/reset-account.js +5 -61
- package/dist/payouts/elements/reset-account.js.map +1 -1
- package/dist/payouts/elements/reset-account.mjs +5 -53
- package/dist/payouts/elements/reset-account.mjs.map +1 -1
- package/dist/payouts/elements/total-balance-breakdown.d.ts +8 -13
- package/dist/payouts/elements/total-balance-breakdown.js +5 -61
- package/dist/payouts/elements/total-balance-breakdown.js.map +1 -1
- package/dist/payouts/elements/total-balance-breakdown.mjs +5 -53
- package/dist/payouts/elements/total-balance-breakdown.mjs.map +1 -1
- package/dist/payouts/elements/verify.d.ts +8 -13
- package/dist/payouts/elements/verify.js +5 -58
- package/dist/payouts/elements/verify.js.map +1 -1
- package/dist/payouts/elements/verify.mjs +5 -53
- package/dist/payouts/elements/verify.mjs.map +1 -1
- package/dist/payouts/elements/withdraw-button.d.ts +8 -13
- package/dist/payouts/elements/withdraw-button.js +5 -61
- package/dist/payouts/elements/withdraw-button.js.map +1 -1
- package/dist/payouts/elements/withdraw-button.mjs +5 -53
- package/dist/payouts/elements/withdraw-button.mjs.map +1 -1
- package/dist/payouts/elements/withdrawal-breakdown.d.ts +8 -13
- package/dist/payouts/elements/withdrawal-breakdown.js +5 -61
- package/dist/payouts/elements/withdrawal-breakdown.js.map +1 -1
- package/dist/payouts/elements/withdrawal-breakdown.mjs +5 -53
- package/dist/payouts/elements/withdrawal-breakdown.mjs.map +1 -1
- package/dist/payouts/elements/withdrawals.d.ts +8 -13
- package/dist/payouts/elements/withdrawals.js +5 -61
- package/dist/payouts/elements/withdrawals.js.map +1 -1
- package/dist/payouts/elements/withdrawals.mjs +5 -53
- package/dist/payouts/elements/withdrawals.mjs.map +1 -1
- package/dist/payouts/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
8
|
for (var name in all)
|
|
@@ -18,69 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
16
|
}
|
|
19
17
|
return to;
|
|
20
18
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
var regular_reserve_balance_breakdown_exports = {};
|
|
31
21
|
__export(regular_reserve_balance_breakdown_exports, {
|
|
32
22
|
RegularReserveBalanceBreakdownElement: () => RegularReserveBalanceBreakdownElement
|
|
33
23
|
});
|
|
34
24
|
module.exports = __toCommonJS(regular_reserve_balance_breakdown_exports);
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className,
|
|
41
|
-
style,
|
|
42
|
-
onReady,
|
|
43
|
-
fallback
|
|
44
|
-
}) {
|
|
45
|
-
const payoutsSession = (0, import_session.usePayoutsSession)();
|
|
46
|
-
const ref = (0, import_react.useRef)(null);
|
|
47
|
-
const element = (0, import_react.useMemo)(() => {
|
|
48
|
-
if (!payoutsSession) return null;
|
|
49
|
-
const createdElement = payoutsSession.createElement(
|
|
50
|
-
RegularReserveBalanceBreakdownElement,
|
|
51
|
-
options
|
|
52
|
-
);
|
|
53
|
-
return createdElement;
|
|
54
|
-
}, [payoutsSession]);
|
|
55
|
-
const elementSnapshot = (0, import_use_element_snapshot.useElementSnapshot)(element);
|
|
56
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
57
|
-
(0, import_react.useEffect)(() => {
|
|
58
|
-
if (!element) return;
|
|
59
|
-
element.updateOptions(options);
|
|
60
|
-
}, [options, element]);
|
|
61
|
-
(0, import_react.useEffect)(() => {
|
|
62
|
-
if (!element || !onReady) return;
|
|
63
|
-
element.on("ready", onReady);
|
|
64
|
-
return () => {
|
|
65
|
-
element.off("ready", onReady);
|
|
66
|
-
};
|
|
67
|
-
}, [element, onReady]);
|
|
68
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
69
|
-
if (!element || !ref.current) return;
|
|
70
|
-
element.mount(ref.current);
|
|
71
|
-
return () => {
|
|
72
|
-
element.unmount();
|
|
73
|
-
};
|
|
74
|
-
}, [element, ref.current]);
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
style: { ...style, visibility: isReady ? void 0 : "hidden" },
|
|
79
|
-
className,
|
|
80
|
-
ref
|
|
81
|
-
}
|
|
82
|
-
), !isReady && (fallback ?? null));
|
|
83
|
-
}
|
|
84
|
-
RegularReserveBalanceBreakdownElement.displayName = "RegularReserveBalanceBreakdownElement";
|
|
85
|
-
RegularReserveBalanceBreakdownElement.type = "regular-reserve-balance-breakdown-element";
|
|
25
|
+
var import_with_fallback = require("../../lib/with-fallback");
|
|
26
|
+
const RegularReserveBalanceBreakdownElement = (0, import_with_fallback.withFallback)({
|
|
27
|
+
displayName: "RegularReserveBalanceBreakdownElement",
|
|
28
|
+
type: "regular-reserve-balance-breakdown-element"
|
|
29
|
+
});
|
|
86
30
|
//# sourceMappingURL=regular-reserve-balance-breakdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const RegularReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"RegularReserveBalanceBreakdownElement\",\n\ttype: \"regular-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,4CAAwC,mCAAa;AAAA,EACjE,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,56 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const ref = useRef(null);
|
|
9
|
-
const element = useMemo(()=>{
|
|
10
|
-
if (!payoutsSession) return null;
|
|
11
|
-
const createdElement = payoutsSession.createElement(RegularReserveBalanceBreakdownElement, options);
|
|
12
|
-
return createdElement;
|
|
13
|
-
}, [
|
|
14
|
-
payoutsSession
|
|
15
|
-
]);
|
|
16
|
-
const elementSnapshot = useElementSnapshot(element);
|
|
17
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
18
|
-
useEffect(()=>{
|
|
19
|
-
if (!element) return;
|
|
20
|
-
element.updateOptions(options);
|
|
21
|
-
}, [
|
|
22
|
-
options,
|
|
23
|
-
element
|
|
24
|
-
]);
|
|
25
|
-
useEffect(()=>{
|
|
26
|
-
if (!element || !onReady) return;
|
|
27
|
-
element.on("ready", onReady);
|
|
28
|
-
return ()=>{
|
|
29
|
-
element.off("ready", onReady);
|
|
30
|
-
};
|
|
31
|
-
}, [
|
|
32
|
-
element,
|
|
33
|
-
onReady
|
|
34
|
-
]);
|
|
35
|
-
useLayoutEffect(()=>{
|
|
36
|
-
if (!element || !ref.current) return;
|
|
37
|
-
element.mount(ref.current);
|
|
38
|
-
return ()=>{
|
|
39
|
-
element.unmount();
|
|
40
|
-
};
|
|
41
|
-
}, [
|
|
42
|
-
element,
|
|
43
|
-
ref.current
|
|
44
|
-
]);
|
|
45
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
46
|
-
style: {
|
|
47
|
-
...style,
|
|
48
|
-
visibility: isReady ? void 0 : "hidden"
|
|
49
|
-
},
|
|
50
|
-
className,
|
|
51
|
-
ref
|
|
52
|
-
}), !isReady && (fallback ?? null));
|
|
53
|
-
}
|
|
54
|
-
RegularReserveBalanceBreakdownElement.displayName = "RegularReserveBalanceBreakdownElement";
|
|
55
|
-
RegularReserveBalanceBreakdownElement.type = "regular-reserve-balance-breakdown-element";
|
|
3
|
+
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
+
const RegularReserveBalanceBreakdownElement = withFallback({
|
|
5
|
+
displayName: "RegularReserveBalanceBreakdownElement",
|
|
6
|
+
type: "regular-reserve-balance-breakdown-element"
|
|
7
|
+
});
|
|
56
8
|
export { RegularReserveBalanceBreakdownElement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const RegularReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"RegularReserveBalanceBreakdownElement\",\n\ttype: \"regular-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,wCAAwC,aAAa;AAAA,EACjE,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { WithFallbackPropsOptional } from '../../lib/with-fallback.js';
|
|
2
|
+
import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
|
|
3
|
+
import 'react';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
fallback?: React__default.ReactNode;
|
|
10
|
-
}): React__default.JSX.Element;
|
|
11
|
-
declare namespace ResetAccountElement {
|
|
12
|
-
var displayName: string;
|
|
13
|
-
var type: "reset-account-element";
|
|
14
|
-
}
|
|
5
|
+
declare const ResetAccountElement: {
|
|
6
|
+
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.ResetAccountElementOptions>): React.ReactNode;
|
|
7
|
+
displayName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
15
10
|
|
|
16
11
|
export { ResetAccountElement };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
8
|
for (var name in all)
|
|
@@ -18,69 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
16
|
}
|
|
19
17
|
return to;
|
|
20
18
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
var reset_account_exports = {};
|
|
31
21
|
__export(reset_account_exports, {
|
|
32
22
|
ResetAccountElement: () => ResetAccountElement
|
|
33
23
|
});
|
|
34
24
|
module.exports = __toCommonJS(reset_account_exports);
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className,
|
|
41
|
-
style,
|
|
42
|
-
onReady,
|
|
43
|
-
fallback
|
|
44
|
-
}) {
|
|
45
|
-
const payoutsSession = (0, import_session.usePayoutsSession)();
|
|
46
|
-
const ref = (0, import_react.useRef)(null);
|
|
47
|
-
const element = (0, import_react.useMemo)(() => {
|
|
48
|
-
if (!payoutsSession) return null;
|
|
49
|
-
const createdElement = payoutsSession.createElement(
|
|
50
|
-
ResetAccountElement,
|
|
51
|
-
options
|
|
52
|
-
);
|
|
53
|
-
return createdElement;
|
|
54
|
-
}, [payoutsSession]);
|
|
55
|
-
const elementSnapshot = (0, import_use_element_snapshot.useElementSnapshot)(element);
|
|
56
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
57
|
-
(0, import_react.useEffect)(() => {
|
|
58
|
-
if (!element) return;
|
|
59
|
-
element.updateOptions(options);
|
|
60
|
-
}, [options, element]);
|
|
61
|
-
(0, import_react.useEffect)(() => {
|
|
62
|
-
if (!element || !onReady) return;
|
|
63
|
-
element.on("ready", onReady);
|
|
64
|
-
return () => {
|
|
65
|
-
element.off("ready", onReady);
|
|
66
|
-
};
|
|
67
|
-
}, [element, onReady]);
|
|
68
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
69
|
-
if (!element || !ref.current) return;
|
|
70
|
-
element.mount(ref.current);
|
|
71
|
-
return () => {
|
|
72
|
-
element.unmount();
|
|
73
|
-
};
|
|
74
|
-
}, [element, ref.current]);
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
style: { ...style, visibility: isReady ? void 0 : "hidden" },
|
|
79
|
-
className,
|
|
80
|
-
ref
|
|
81
|
-
}
|
|
82
|
-
), !isReady && (fallback ?? null));
|
|
83
|
-
}
|
|
84
|
-
ResetAccountElement.displayName = "ResetAccountElement";
|
|
85
|
-
ResetAccountElement.type = "reset-account-element";
|
|
25
|
+
var import_with_fallback = require("../../lib/with-fallback");
|
|
26
|
+
const ResetAccountElement = (0, import_with_fallback.withFallback)({
|
|
27
|
+
displayName: "ResetAccountElement",
|
|
28
|
+
type: "reset-account-element"
|
|
29
|
+
});
|
|
86
30
|
//# sourceMappingURL=reset-account.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/reset-account.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/reset-account.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const ResetAccountElement = withFallback({\n\tdisplayName: \"ResetAccountElement\",\n\ttype: \"reset-account-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,0BAAsB,mCAAa;AAAA,EAC/C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,56 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const ref = useRef(null);
|
|
9
|
-
const element = useMemo(()=>{
|
|
10
|
-
if (!payoutsSession) return null;
|
|
11
|
-
const createdElement = payoutsSession.createElement(ResetAccountElement, options);
|
|
12
|
-
return createdElement;
|
|
13
|
-
}, [
|
|
14
|
-
payoutsSession
|
|
15
|
-
]);
|
|
16
|
-
const elementSnapshot = useElementSnapshot(element);
|
|
17
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
18
|
-
useEffect(()=>{
|
|
19
|
-
if (!element) return;
|
|
20
|
-
element.updateOptions(options);
|
|
21
|
-
}, [
|
|
22
|
-
options,
|
|
23
|
-
element
|
|
24
|
-
]);
|
|
25
|
-
useEffect(()=>{
|
|
26
|
-
if (!element || !onReady) return;
|
|
27
|
-
element.on("ready", onReady);
|
|
28
|
-
return ()=>{
|
|
29
|
-
element.off("ready", onReady);
|
|
30
|
-
};
|
|
31
|
-
}, [
|
|
32
|
-
element,
|
|
33
|
-
onReady
|
|
34
|
-
]);
|
|
35
|
-
useLayoutEffect(()=>{
|
|
36
|
-
if (!element || !ref.current) return;
|
|
37
|
-
element.mount(ref.current);
|
|
38
|
-
return ()=>{
|
|
39
|
-
element.unmount();
|
|
40
|
-
};
|
|
41
|
-
}, [
|
|
42
|
-
element,
|
|
43
|
-
ref.current
|
|
44
|
-
]);
|
|
45
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
46
|
-
style: {
|
|
47
|
-
...style,
|
|
48
|
-
visibility: isReady ? void 0 : "hidden"
|
|
49
|
-
},
|
|
50
|
-
className,
|
|
51
|
-
ref
|
|
52
|
-
}), !isReady && (fallback ?? null));
|
|
53
|
-
}
|
|
54
|
-
ResetAccountElement.displayName = "ResetAccountElement";
|
|
55
|
-
ResetAccountElement.type = "reset-account-element";
|
|
3
|
+
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
+
const ResetAccountElement = withFallback({
|
|
5
|
+
displayName: "ResetAccountElement",
|
|
6
|
+
type: "reset-account-element"
|
|
7
|
+
});
|
|
56
8
|
export { ResetAccountElement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/reset-account.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/reset-account.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const ResetAccountElement = withFallback({\n\tdisplayName: \"ResetAccountElement\",\n\ttype: \"reset-account-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,sBAAsB,aAAa;AAAA,EAC/C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { WithFallbackPropsOptional } from '../../lib/with-fallback.js';
|
|
2
|
+
import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
|
|
3
|
+
import 'react';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
fallback?: React__default.ReactNode;
|
|
10
|
-
}): React__default.JSX.Element;
|
|
11
|
-
declare namespace TotalBalanceBreakdownElement {
|
|
12
|
-
var displayName: string;
|
|
13
|
-
var type: "total-balance-breakdown-element";
|
|
14
|
-
}
|
|
5
|
+
declare const TotalBalanceBreakdownElement: {
|
|
6
|
+
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.TotalBalanceBreakdownElementOptions>): React.ReactNode;
|
|
7
|
+
displayName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
15
10
|
|
|
16
11
|
export { TotalBalanceBreakdownElement };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
8
|
for (var name in all)
|
|
@@ -18,69 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
16
|
}
|
|
19
17
|
return to;
|
|
20
18
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
var total_balance_breakdown_exports = {};
|
|
31
21
|
__export(total_balance_breakdown_exports, {
|
|
32
22
|
TotalBalanceBreakdownElement: () => TotalBalanceBreakdownElement
|
|
33
23
|
});
|
|
34
24
|
module.exports = __toCommonJS(total_balance_breakdown_exports);
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className,
|
|
41
|
-
style,
|
|
42
|
-
onReady,
|
|
43
|
-
fallback
|
|
44
|
-
}) {
|
|
45
|
-
const payoutsSession = (0, import_session.usePayoutsSession)();
|
|
46
|
-
const ref = (0, import_react.useRef)(null);
|
|
47
|
-
const element = (0, import_react.useMemo)(() => {
|
|
48
|
-
if (!payoutsSession) return null;
|
|
49
|
-
const createdElement = payoutsSession.createElement(
|
|
50
|
-
TotalBalanceBreakdownElement,
|
|
51
|
-
options
|
|
52
|
-
);
|
|
53
|
-
return createdElement;
|
|
54
|
-
}, [payoutsSession]);
|
|
55
|
-
const elementSnapshot = (0, import_use_element_snapshot.useElementSnapshot)(element);
|
|
56
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
57
|
-
(0, import_react.useEffect)(() => {
|
|
58
|
-
if (!element) return;
|
|
59
|
-
element.updateOptions(options);
|
|
60
|
-
}, [options, element]);
|
|
61
|
-
(0, import_react.useEffect)(() => {
|
|
62
|
-
if (!element || !onReady) return;
|
|
63
|
-
element.on("ready", onReady);
|
|
64
|
-
return () => {
|
|
65
|
-
element.off("ready", onReady);
|
|
66
|
-
};
|
|
67
|
-
}, [element, onReady]);
|
|
68
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
69
|
-
if (!element || !ref.current) return;
|
|
70
|
-
element.mount(ref.current);
|
|
71
|
-
return () => {
|
|
72
|
-
element.unmount();
|
|
73
|
-
};
|
|
74
|
-
}, [element, ref.current]);
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
style: { ...style, visibility: isReady ? void 0 : "hidden" },
|
|
79
|
-
className,
|
|
80
|
-
ref
|
|
81
|
-
}
|
|
82
|
-
), !isReady && (fallback ?? null));
|
|
83
|
-
}
|
|
84
|
-
TotalBalanceBreakdownElement.displayName = "TotalBalanceBreakdownElement";
|
|
85
|
-
TotalBalanceBreakdownElement.type = "total-balance-breakdown-element";
|
|
25
|
+
var import_with_fallback = require("../../lib/with-fallback");
|
|
26
|
+
const TotalBalanceBreakdownElement = (0, import_with_fallback.withFallback)({
|
|
27
|
+
displayName: "TotalBalanceBreakdownElement",
|
|
28
|
+
type: "total-balance-breakdown-element"
|
|
29
|
+
});
|
|
86
30
|
//# sourceMappingURL=total-balance-breakdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const TotalBalanceBreakdownElement = withFallback({\n\tdisplayName: \"TotalBalanceBreakdownElement\",\n\ttype: \"total-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,mCAA+B,mCAAa;AAAA,EACxD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,56 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const ref = useRef(null);
|
|
9
|
-
const element = useMemo(()=>{
|
|
10
|
-
if (!payoutsSession) return null;
|
|
11
|
-
const createdElement = payoutsSession.createElement(TotalBalanceBreakdownElement, options);
|
|
12
|
-
return createdElement;
|
|
13
|
-
}, [
|
|
14
|
-
payoutsSession
|
|
15
|
-
]);
|
|
16
|
-
const elementSnapshot = useElementSnapshot(element);
|
|
17
|
-
const isReady = elementSnapshot?.state === "ready";
|
|
18
|
-
useEffect(()=>{
|
|
19
|
-
if (!element) return;
|
|
20
|
-
element.updateOptions(options);
|
|
21
|
-
}, [
|
|
22
|
-
options,
|
|
23
|
-
element
|
|
24
|
-
]);
|
|
25
|
-
useEffect(()=>{
|
|
26
|
-
if (!element || !onReady) return;
|
|
27
|
-
element.on("ready", onReady);
|
|
28
|
-
return ()=>{
|
|
29
|
-
element.off("ready", onReady);
|
|
30
|
-
};
|
|
31
|
-
}, [
|
|
32
|
-
element,
|
|
33
|
-
onReady
|
|
34
|
-
]);
|
|
35
|
-
useLayoutEffect(()=>{
|
|
36
|
-
if (!element || !ref.current) return;
|
|
37
|
-
element.mount(ref.current);
|
|
38
|
-
return ()=>{
|
|
39
|
-
element.unmount();
|
|
40
|
-
};
|
|
41
|
-
}, [
|
|
42
|
-
element,
|
|
43
|
-
ref.current
|
|
44
|
-
]);
|
|
45
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
46
|
-
style: {
|
|
47
|
-
...style,
|
|
48
|
-
visibility: isReady ? void 0 : "hidden"
|
|
49
|
-
},
|
|
50
|
-
className,
|
|
51
|
-
ref
|
|
52
|
-
}), !isReady && (fallback ?? null));
|
|
53
|
-
}
|
|
54
|
-
TotalBalanceBreakdownElement.displayName = "TotalBalanceBreakdownElement";
|
|
55
|
-
TotalBalanceBreakdownElement.type = "total-balance-breakdown-element";
|
|
3
|
+
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
+
const TotalBalanceBreakdownElement = withFallback({
|
|
5
|
+
displayName: "TotalBalanceBreakdownElement",
|
|
6
|
+
type: "total-balance-breakdown-element"
|
|
7
|
+
});
|
|
56
8
|
export { TotalBalanceBreakdownElement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const TotalBalanceBreakdownElement = withFallback({\n\tdisplayName: \"TotalBalanceBreakdownElement\",\n\ttype: \"total-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,+BAA+B,aAAa;AAAA,EACxD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { WithFallbackPropsOptional } from '../../lib/with-fallback.js';
|
|
2
|
+
import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
|
|
3
|
+
import 'react';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
fallback?: React__default.ReactNode;
|
|
10
|
-
}): React__default.JSX.Element;
|
|
11
|
-
declare namespace VerifyElement {
|
|
12
|
-
var displayName: string;
|
|
13
|
-
var type: "verify-element";
|
|
14
|
-
}
|
|
5
|
+
declare const VerifyElement: {
|
|
6
|
+
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.VerifyElementOptions>): React.ReactNode;
|
|
7
|
+
displayName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
15
10
|
|
|
16
11
|
export { VerifyElement };
|