@whop/embedded-components-vanilla-js 0.0.4-beta.0 → 0.0.4
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/lib/index.d.ts +8 -1
- package/dist/url.js +1 -1
- package/dist/url.mjs +1 -1
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -192,11 +192,12 @@ interface VerifyElementEvents {
|
|
|
192
192
|
optionsUpdated: (options: VerifyElementOptions) => void;
|
|
193
193
|
close: (ev: CustomEvent) => void;
|
|
194
194
|
snapshot: (snapshot: VerifyElementSnapshot) => void;
|
|
195
|
+
verificationSubmitted: (ev: CustomEvent<VerifyElement>) => void;
|
|
195
196
|
}
|
|
196
197
|
interface VerifyElementOptions {
|
|
197
198
|
includeControls?: boolean;
|
|
198
199
|
onReady?: (element: VerifyElement) => void;
|
|
199
|
-
onVerificationSubmitted?: () => void;
|
|
200
|
+
onVerificationSubmitted?: (ev: CustomEvent<VerifyElement>) => void;
|
|
200
201
|
onClose?: (ev: CustomEvent) => void;
|
|
201
202
|
}
|
|
202
203
|
interface VerifyElementSnapshot {
|
|
@@ -331,6 +332,12 @@ interface PayoutsSessionOptions {
|
|
|
331
332
|
* The company ID to use in the Elements
|
|
332
333
|
*/
|
|
333
334
|
companyId: string;
|
|
335
|
+
/**
|
|
336
|
+
* URL to redirect to after identity verification is completed.
|
|
337
|
+
* This must be an absolute URL (e.g., "https://yourapp.com/callback").
|
|
338
|
+
* Localhost URLs will not work - use ngrok for local development.
|
|
339
|
+
*/
|
|
340
|
+
redirectUrl: string;
|
|
334
341
|
}
|
|
335
342
|
interface ExpandedPayoutsSessionOptions extends PayoutsSessionOptions {
|
|
336
343
|
}
|
package/dist/url.js
CHANGED
|
@@ -22,6 +22,6 @@ __export(url_exports, {
|
|
|
22
22
|
SCRIPT_URL: () => SCRIPT_URL
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(url_exports);
|
|
25
|
-
const ORIGIN = "https://0-0-4
|
|
25
|
+
const ORIGIN = "https://0-0-4.elements.whop.com/";
|
|
26
26
|
const SCRIPT_URL = new URL(`/release/elements.js`, ORIGIN).toString();
|
|
27
27
|
//# sourceMappingURL=url.js.map
|
package/dist/url.mjs
CHANGED