@whop/embedded-components-react-js 0.0.5-beta.8 → 0.0.6
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 -1
- package/dist/payouts/elements/{pending-balance-breakdown.d.ts → add-payout-method.d.ts} +3 -3
- package/dist/payouts/elements/{pending-balance-breakdown.js → add-payout-method.js} +8 -8
- package/dist/payouts/elements/add-payout-method.js.map +1 -0
- package/dist/payouts/elements/add-payout-method.mjs +8 -0
- package/dist/payouts/elements/add-payout-method.mjs.map +1 -0
- package/dist/payouts/elements/automatic-withdraw.d.ts +11 -0
- package/dist/payouts/elements/automatic-withdraw.js +30 -0
- package/dist/payouts/elements/automatic-withdraw.js.map +1 -0
- package/dist/payouts/elements/automatic-withdraw.mjs +8 -0
- package/dist/payouts/elements/automatic-withdraw.mjs.map +1 -0
- package/dist/payouts/elements/index.d.ts +2 -1
- package/dist/payouts/elements/index.js +2 -1
- package/dist/payouts/elements/index.js.map +1 -1
- package/dist/payouts/elements/index.mjs +2 -1
- package/dist/payouts/elements/index.mjs.map +1 -1
- package/dist/payouts/index.d.ts +2 -1
- package/package.json +2 -2
- package/dist/payouts/elements/pending-balance-breakdown.js.map +0 -1
- package/dist/payouts/elements/pending-balance-breakdown.mjs +0 -8
- package/dist/payouts/elements/pending-balance-breakdown.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { PayoutsSession, usePayoutsSession } from './payouts/session.js';
|
|
2
|
+
export { AddPayoutMethodElement } from './payouts/elements/add-payout-method.js';
|
|
3
|
+
export { AutomaticWithdrawElement } from './payouts/elements/automatic-withdraw.js';
|
|
2
4
|
export { BalanceElement } from './payouts/elements/balance.js';
|
|
3
5
|
export { ChangeAccountCountryElement } from './payouts/elements/change-account-country.js';
|
|
4
6
|
export { ResetAccountElement } from './payouts/elements/reset-account.js';
|
|
@@ -7,7 +9,6 @@ export { WithdrawButtonElement } from './payouts/elements/withdraw-button.js';
|
|
|
7
9
|
export { WithdrawalBreakdownElement } from './payouts/elements/withdrawal-breakdown.js';
|
|
8
10
|
export { WithdrawalsElement } from './payouts/elements/withdrawals.js';
|
|
9
11
|
export { TotalBalanceBreakdownElement } from './payouts/elements/total-balance-breakdown.js';
|
|
10
|
-
export { PendingBalanceBreakdownElement } from './payouts/elements/pending-balance-breakdown.js';
|
|
11
12
|
export { RegularReserveBalanceBreakdownElement } from './payouts/elements/regular-reserve-balance-breakdown.js';
|
|
12
13
|
export { BnplReserveBalanceBreakdownElement } from './payouts/elements/bnpl-reserve-balance-breakdown.js';
|
|
13
14
|
export { GenerateWithdrawalReceiptElement } from './payouts/elements/generate-withdrawal-receipt.js';
|
|
@@ -2,10 +2,10 @@ import { WithFallbackPropsOptional } from '../../lib/with-fallback.js';
|
|
|
2
2
|
import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
|
-
declare const
|
|
6
|
-
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.
|
|
5
|
+
declare const AddPayoutMethodElement: {
|
|
6
|
+
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.AddPayoutMethodElementOptions>): React.ReactNode;
|
|
7
7
|
displayName: string;
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { AddPayoutMethodElement };
|
|
@@ -17,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
|
|
20
|
+
var add_payout_method_exports = {};
|
|
21
|
+
__export(add_payout_method_exports, {
|
|
22
|
+
AddPayoutMethodElement: () => AddPayoutMethodElement
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(add_payout_method_exports);
|
|
25
25
|
var import_with_fallback = require("../../lib/with-fallback");
|
|
26
|
-
const
|
|
27
|
-
displayName: "
|
|
28
|
-
type: "
|
|
26
|
+
const AddPayoutMethodElement = (0, import_with_fallback.withFallback)({
|
|
27
|
+
displayName: "AddPayoutMethodElement",
|
|
28
|
+
type: "add-payout-method-element"
|
|
29
29
|
});
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=add-payout-method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/add-payout-method.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const AddPayoutMethodElement = withFallback({\n\tdisplayName: \"AddPayoutMethodElement\",\n\ttype: \"add-payout-method-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,6BAAyB,mCAAa;AAAA,EAClD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
+
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
+
const AddPayoutMethodElement = withFallback({
|
|
5
|
+
displayName: "AddPayoutMethodElement",
|
|
6
|
+
type: "add-payout-method-element"
|
|
7
|
+
});
|
|
8
|
+
export { AddPayoutMethodElement };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/add-payout-method.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const AddPayoutMethodElement = withFallback({\n\tdisplayName: \"AddPayoutMethodElement\",\n\ttype: \"add-payout-method-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,yBAAyB,aAAa;AAAA,EAClD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
4
|
+
|
|
5
|
+
declare const AutomaticWithdrawElement: {
|
|
6
|
+
(props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.AutomaticWithdrawElementOptions>): React.ReactNode;
|
|
7
|
+
displayName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { AutomaticWithdrawElement };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var automatic_withdraw_exports = {};
|
|
21
|
+
__export(automatic_withdraw_exports, {
|
|
22
|
+
AutomaticWithdrawElement: () => AutomaticWithdrawElement
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(automatic_withdraw_exports);
|
|
25
|
+
var import_with_fallback = require("../../lib/with-fallback");
|
|
26
|
+
const AutomaticWithdrawElement = (0, import_with_fallback.withFallback)({
|
|
27
|
+
displayName: "AutomaticWithdrawElement",
|
|
28
|
+
type: "automatic-withdraw-element"
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=automatic-withdraw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/automatic-withdraw.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const AutomaticWithdrawElement = withFallback({\n\tdisplayName: \"AutomaticWithdrawElement\",\n\ttype: \"automatic-withdraw-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,+BAA2B,mCAAa;AAAA,EACpD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
+
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
+
const AutomaticWithdrawElement = withFallback({
|
|
5
|
+
displayName: "AutomaticWithdrawElement",
|
|
6
|
+
type: "automatic-withdraw-element"
|
|
7
|
+
});
|
|
8
|
+
export { AutomaticWithdrawElement };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/automatic-withdraw.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const AutomaticWithdrawElement = withFallback({\n\tdisplayName: \"AutomaticWithdrawElement\",\n\ttype: \"automatic-withdraw-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,2BAA2B,aAAa;AAAA,EACpD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { AddPayoutMethodElement } from './add-payout-method.js';
|
|
2
|
+
export { AutomaticWithdrawElement } from './automatic-withdraw.js';
|
|
1
3
|
export { BalanceElement } from './balance.js';
|
|
2
4
|
export { ChangeAccountCountryElement } from './change-account-country.js';
|
|
3
5
|
export { ResetAccountElement } from './reset-account.js';
|
|
@@ -6,7 +8,6 @@ export { WithdrawButtonElement } from './withdraw-button.js';
|
|
|
6
8
|
export { WithdrawalBreakdownElement } from './withdrawal-breakdown.js';
|
|
7
9
|
export { WithdrawalsElement } from './withdrawals.js';
|
|
8
10
|
export { TotalBalanceBreakdownElement } from './total-balance-breakdown.js';
|
|
9
|
-
export { PendingBalanceBreakdownElement } from './pending-balance-breakdown.js';
|
|
10
11
|
export { RegularReserveBalanceBreakdownElement } from './regular-reserve-balance-breakdown.js';
|
|
11
12
|
export { BnplReserveBalanceBreakdownElement } from './bnpl-reserve-balance-breakdown.js';
|
|
12
13
|
export { GenerateWithdrawalReceiptElement } from './generate-withdrawal-receipt.js';
|
|
@@ -15,6 +15,8 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
16
|
var elements_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(elements_exports);
|
|
18
|
+
__reExport(elements_exports, require("./add-payout-method"), module.exports);
|
|
19
|
+
__reExport(elements_exports, require("./automatic-withdraw"), module.exports);
|
|
18
20
|
__reExport(elements_exports, require("./balance"), module.exports);
|
|
19
21
|
__reExport(elements_exports, require("./change-account-country"), module.exports);
|
|
20
22
|
__reExport(elements_exports, require("./reset-account"), module.exports);
|
|
@@ -23,7 +25,6 @@ __reExport(elements_exports, require("./withdraw-button"), module.exports);
|
|
|
23
25
|
__reExport(elements_exports, require("./withdrawal-breakdown"), module.exports);
|
|
24
26
|
__reExport(elements_exports, require("./withdrawals"), module.exports);
|
|
25
27
|
__reExport(elements_exports, require("./total-balance-breakdown"), module.exports);
|
|
26
|
-
__reExport(elements_exports, require("./pending-balance-breakdown"), module.exports);
|
|
27
28
|
__reExport(elements_exports, require("./regular-reserve-balance-breakdown"), module.exports);
|
|
28
29
|
__reExport(elements_exports, require("./bnpl-reserve-balance-breakdown"), module.exports);
|
|
29
30
|
__reExport(elements_exports, require("./generate-withdrawal-receipt"), module.exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./regular-reserve-balance-breakdown\";\nexport * from \"./bnpl-reserve-balance-breakdown\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./status-banner\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,gCAAd;AACA,6BAAc,iCADd;AAEA,6BAAc,sBAFd;AAGA,6BAAc,qCAHd;AAIA,6BAAc,4BAJd;AAKA,6BAAc,qBALd;AAMA,6BAAc,8BANd;AAOA,6BAAc,mCAPd;AAQA,6BAAc,0BARd;AASA,6BAAc,sCATd;AAUA,6BAAc,gDAVd;AAWA,6BAAc,6CAXd;AAYA,6BAAc,0CAZd;AAaA,6BAAc,4BAbd;","names":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./add-payout-method.mjs";
|
|
2
|
+
export * from "./automatic-withdraw.mjs";
|
|
1
3
|
export * from "./balance.mjs";
|
|
2
4
|
export * from "./change-account-country.mjs";
|
|
3
5
|
export * from "./reset-account.mjs";
|
|
@@ -6,7 +8,6 @@ export * from "./withdraw-button.mjs";
|
|
|
6
8
|
export * from "./withdrawal-breakdown.mjs";
|
|
7
9
|
export * from "./withdrawals.mjs";
|
|
8
10
|
export * from "./total-balance-breakdown.mjs";
|
|
9
|
-
export * from "./pending-balance-breakdown.mjs";
|
|
10
11
|
export * from "./regular-reserve-balance-breakdown.mjs";
|
|
11
12
|
export * from "./bnpl-reserve-balance-breakdown.mjs";
|
|
12
13
|
export * from "./generate-withdrawal-receipt.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./
|
|
1
|
+
{"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./regular-reserve-balance-breakdown\";\nexport * from \"./bnpl-reserve-balance-breakdown\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./status-banner\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/dist/payouts/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { PayoutsSession, usePayoutsSession } from './session.js';
|
|
2
|
+
export { AddPayoutMethodElement } from './elements/add-payout-method.js';
|
|
3
|
+
export { AutomaticWithdrawElement } from './elements/automatic-withdraw.js';
|
|
2
4
|
export { BalanceElement } from './elements/balance.js';
|
|
3
5
|
export { ChangeAccountCountryElement } from './elements/change-account-country.js';
|
|
4
6
|
export { ResetAccountElement } from './elements/reset-account.js';
|
|
@@ -7,7 +9,6 @@ export { WithdrawButtonElement } from './elements/withdraw-button.js';
|
|
|
7
9
|
export { WithdrawalBreakdownElement } from './elements/withdrawal-breakdown.js';
|
|
8
10
|
export { WithdrawalsElement } from './elements/withdrawals.js';
|
|
9
11
|
export { TotalBalanceBreakdownElement } from './elements/total-balance-breakdown.js';
|
|
10
|
-
export { PendingBalanceBreakdownElement } from './elements/pending-balance-breakdown.js';
|
|
11
12
|
export { RegularReserveBalanceBreakdownElement } from './elements/regular-reserve-balance-breakdown.js';
|
|
12
13
|
export { BnplReserveBalanceBreakdownElement } from './elements/bnpl-reserve-balance-breakdown.js';
|
|
13
14
|
export { GenerateWithdrawalReceiptElement } from './elements/generate-withdrawal-receipt.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whop/embedded-components-react-js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "React components for Whop.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@whop/embedded-components-vanilla-js": "^0.0.
|
|
24
|
+
"@whop/embedded-components-vanilla-js": "^0.0.6",
|
|
25
25
|
"react": ">=16.8.0 <20.0.0",
|
|
26
26
|
"react-dom": ">=16.8.0 <20.0.0"
|
|
27
27
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/pending-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const PendingBalanceBreakdownElement = withFallback({\n\tdisplayName: \"PendingBalanceBreakdownElement\",\n\ttype: \"pending-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,qCAAiC,mCAAa;AAAA,EAC1D,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../chunk-NSSMTXJJ.mjs";
|
|
3
|
-
import { withFallback } from "../../lib/with-fallback.mjs";
|
|
4
|
-
const PendingBalanceBreakdownElement = withFallback({
|
|
5
|
-
displayName: "PendingBalanceBreakdownElement",
|
|
6
|
-
type: "pending-balance-breakdown-element"
|
|
7
|
-
});
|
|
8
|
-
export { PendingBalanceBreakdownElement };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/payouts/elements/pending-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../../lib/with-fallback\";\n\nexport const PendingBalanceBreakdownElement = withFallback({\n\tdisplayName: \"PendingBalanceBreakdownElement\",\n\ttype: \"pending-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,iCAAiC,aAAa;AAAA,EAC1D,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
|