altcha 2.0.5 → 2.1.0-beta.2
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 +3 -0
- package/dist/altcha.d.ts +2 -0
- package/dist/altcha.i18n.d.ts +2 -0
- package/dist/altcha.i18n.js +1472 -1446
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +1245 -1219
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.d.ts +2 -0
- package/dist_external/altcha.js +1280 -1254
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_plugins/upload.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -167,6 +167,8 @@ Additional options:
|
|
|
167
167
|
- **language**: The ISO alpha-2 code of the language to use (the language file be imported from `altcha/i18n/*`).
|
|
168
168
|
- **maxnumber**: Max number to iterate to (defaults to 1,000,000).
|
|
169
169
|
- **name**: Name of the hidden field containing the payload (defaults to "altcha").
|
|
170
|
+
- **overlay**: Enables overlay UI mode (automatically sets `auto="onsubmit"`).
|
|
171
|
+
- **overlaycontent**: CSS selector of the HTML element to display in the overlay modal before the widget.
|
|
170
172
|
- **strings**: JSON-encoded translation strings. Refer to [customization](https://altcha.org/docs/widget-customization).
|
|
171
173
|
- **refetchonexpire**: Automatically re-fetch and re-validate when the challenge expires (defaults to true).
|
|
172
174
|
- **verifyurl**: URL for server-side verification requests. This option is automatically configured with Sentinel. Override this setting only if using a custom server implementation. Supports `fn:function_name` format to call a global JS function instead.
|
|
@@ -313,6 +315,7 @@ export interface Configure {
|
|
|
313
315
|
mockerror?: boolean;
|
|
314
316
|
name?: string;
|
|
315
317
|
obfuscated?: string;
|
|
318
|
+
overlay?: boolean;
|
|
316
319
|
refetchonexpire?: boolean;
|
|
317
320
|
spamfilter?: boolean | 'ipAddress' | SpamFilter; // deprecated
|
|
318
321
|
strings?: {
|
package/dist/altcha.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ declare global {
|
|
|
59
59
|
onserververification?: (ev: CustomEvent) => void;
|
|
60
60
|
onupload?: (ev: CustomEvent) => void;
|
|
61
61
|
onuploadprogress?: (ev: CustomEvent) => void;
|
|
62
|
+
overlay?: boolean;
|
|
63
|
+
overlaycontent?: string;
|
|
62
64
|
plugins?: string;
|
|
63
65
|
refetchonexpire?: boolean;
|
|
64
66
|
/** @deprecated */
|
package/dist/altcha.i18n.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ declare global {
|
|
|
59
59
|
onserververification?: (ev: CustomEvent) => void;
|
|
60
60
|
onupload?: (ev: CustomEvent) => void;
|
|
61
61
|
onuploadprogress?: (ev: CustomEvent) => void;
|
|
62
|
+
overlay?: boolean;
|
|
63
|
+
overlaycontent?: string;
|
|
62
64
|
plugins?: string;
|
|
63
65
|
refetchonexpire?: boolean;
|
|
64
66
|
/** @deprecated */
|