@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.
@@ -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-beta-0.elements.whop.com/";
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
@@ -1,3 +1,3 @@
1
- const ORIGIN = "https://0-0-4-beta-0.elements.whop.com/";
1
+ const ORIGIN = "https://0-0-4.elements.whop.com/";
2
2
  const SCRIPT_URL = new URL(`/release/elements.js`, ORIGIN).toString();
3
3
  export { ORIGIN, SCRIPT_URL };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/embedded-components-vanilla-js",
3
- "version": "0.0.4-beta.0",
3
+ "version": "0.0.4",
4
4
  "description": "Whop Elements loading utility",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",