altcha 2.1.0-beta.3 → 2.1.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/README.md +14 -0
- package/dist/altcha.i18n.js +520 -518
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +521 -519
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.js +470 -468
- package/dist_external/altcha.umd.cjs +3 -3
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Version 2 introduces enhanced accessibility, expanded language support, and inte
|
|
|
28
28
|
- **Improved RTL (right-to-left) language support**
|
|
29
29
|
- **Enhanced WCAG accessibility**
|
|
30
30
|
- **Support for accessible code challenges** (image + audio options)
|
|
31
|
+
- **Overlay UI**
|
|
31
32
|
|
|
32
33
|
### Migrating from v1
|
|
33
34
|
|
|
@@ -342,6 +343,19 @@ export interface Configure {
|
|
|
342
343
|
}
|
|
343
344
|
```
|
|
344
345
|
|
|
346
|
+
## Methods
|
|
347
|
+
|
|
348
|
+
- `configure(options)` - Configures the widget with the given options. See Configuration options above.
|
|
349
|
+
- `getConfiguration()` - Returns the current configuration.
|
|
350
|
+
- `getState()` - Returns the current `state` of the widget.
|
|
351
|
+
- `show()` - Displays the widget (used in floating or overlay mode).
|
|
352
|
+
- `hide()` - Hides the widget (used in floating or overlay mode).
|
|
353
|
+
- `reset(state?, err?)` - Resets the internal `state`, optionally with an error.
|
|
354
|
+
- `setState(state, err?)` - Manually sets the specified `state`, optionally with an error.
|
|
355
|
+
- `setFloatingAnchor(element)` - Sets the anchor element for the floating UI.
|
|
356
|
+
- `verify()` - Initiates the verification process.s a "mock" challenge within the widget, bypassing the request to `challengeurl`.
|
|
357
|
+
|
|
358
|
+
|
|
345
359
|
## Events
|
|
346
360
|
|
|
347
361
|
- **code** - Triggers when code-challenge verification is requested.
|