@faable/challenge 1.1.0 → 1.2.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.
- package/dist/api.js +2 -2
- package/dist/api.js.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +2 -2
- package/dist/types/widget.d.ts +6 -3
- package/package.json +1 -1
package/dist/types/widget.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
88
|
-
|
|
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