altcha 1.1.1 → 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.
package/README.md CHANGED
@@ -113,6 +113,7 @@ Additional options:
113
113
  - **floatingoffset**: Y offset from the anchor element for the floating UI in pixels (defaults to `12`).
114
114
  - **hidefooter**: Hide the footer (ALTCHA link).
115
115
  - **hidelogo**: Hide the ALTCHA logo.
116
+ - **id**: The checkbox `id` attribute. Useful for multiple instances of the widget on the same page.
116
117
  - **maxnumber**: Max number to iterate to (defaults to 1,000,000).
117
118
  - **name**: Name of the hidden field containing the payload (defaults to "altcha").
118
119
  - **strings**: JSON-encoded translation strings. Refer to [customization](https://altcha.org/docs/widget-customization).
package/dist/altcha.d.ts CHANGED
@@ -33,6 +33,7 @@ declare global {
33
33
  floatingoffset?: number;
34
34
  hidefooter?: boolean;
35
35
  hidelogo?: boolean;
36
+ id?: string;
36
37
  maxnumber?: number;
37
38
  mockerror?: boolean;
38
39
  name?: string;