@faable/challenge 1.1.0 → 1.3.0

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.
@@ -84,10 +84,13 @@ export declare const mountChallengeWidget: (el: Element, opts?: ChallengeWidgetO
84
84
  * for a form that stays on the page and can be sent again.
85
85
  */
86
86
  export declare const resetChallengeWidgets: (root?: ParentNode | Element) => void;
87
- /** Mounts a widget in every `[data-faable-challenge]` of the page. */
88
- export declare const mountChallengeWidgets: (root?: ParentNode) => void;
87
+ /**
88
+ * Mounts a widget in every `[data-faable-challenge]` of the page. `driver`
89
+ * goes to each mount (auth-js passes its `onMount`).
90
+ */
91
+ export declare const mountChallengeWidgets: (root?: ParentNode, driver?: ChallengeWidgetDriver) => void;
89
92
  /**
90
93
  * Mounts the widgets on the page now and any added later (a React form that
91
94
  * renders after `createClient`). Idempotent; a no-op outside a browser.
92
95
  */
93
- export declare const watchChallengeWidgets: () => void;
96
+ export declare const watchChallengeWidgets: (driver?: ChallengeWidgetDriver) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/challenge",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Faable Challenge: proof-of-work bot protection for any form — the browser widget and solver",
5
5
  "author": "Marc Pomar <marc@faable.com>",
6
6
  "license": "MIT",