Skip to content

Commit

Permalink
0.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Jul 28, 2024
1 parent 180c283 commit ab51e73
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion dist/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare global {
'--altcha-max-width'?: string;
}

interface AltchaWidget {
interface AltchaWidget extends React.HTMLAttributes<HTMLElement> {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
challengeurl?: string;
Expand All @@ -36,6 +36,7 @@ declare global {
name?: string;
maxnumber?: number;
mockerror?: boolean;
ref?: React.RefObject<HTMLElement>;
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/altcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ function sr(r, e, t) {
Mt(() => {
m && (m.removeEventListener("submit", Se), m.removeEventListener("reset", Ne), m.removeEventListener("focusin", Ae), m = null), X && (clearTimeout(X), X = null), document.removeEventListener("click", Te), document.removeEventListener("scroll", Ve), window.removeEventListener("resize", Fe);
}), jt(() => {
x("mounted", "0.6.5"), x("workers", oe), v && x("using test mode"), F && he(F), a !== void 0 && x("auto", a), k !== void 0 && $e(k), m = C.closest("form"), m && (m.addEventListener("submit", Se, { capture: !0 }), m.addEventListener("reset", Ne), a === "onfocus" && m.addEventListener("focusin", Ae)), a === "onload" && ee(), i && (K || H) && x("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
x("mounted", "0.6.6"), x("workers", oe), v && x("using test mode"), F && he(F), a !== void 0 && x("auto", a), k !== void 0 && $e(k), m = C.closest("form"), m && (m.addEventListener("submit", Se, { capture: !0 }), m.addEventListener("reset", Ne), a === "onfocus" && m.addEventListener("focusin", Ae)), a === "onload" && ee(), i && (K || H) && x("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
});
function x(...n) {
(N || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", ...n);
Expand Down
2 changes: 1 addition & 1 deletion dist/altcha.umd.cjs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist_external/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare global {
'--altcha-max-width'?: string;
}

interface AltchaWidget {
interface AltchaWidget extends React.HTMLAttributes<HTMLElement> {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
challengeurl?: string;
Expand All @@ -36,6 +36,7 @@ declare global {
name?: string;
maxnumber?: number;
mockerror?: boolean;
ref?: React.RefObject<HTMLElement>;
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
Expand Down
2 changes: 1 addition & 1 deletion dist_external/altcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ function Qt(n, e, t) {
At(() => {
m && (m.removeEventListener("submit", Me), m.removeEventListener("reset", Se), m.removeEventListener("focusin", $e), m = null), U && (clearTimeout(U), U = null), document.removeEventListener("click", je), document.removeEventListener("scroll", Ve), window.removeEventListener("resize", Pe);
}), It(() => {
E("mounted", "0.6.5"), E("workers", oe), _ && E("using test mode"), P && de(P), c !== void 0 && E("auto", c), k !== void 0 && He(k), m = C.closest("form"), m && (m.addEventListener("submit", Me, { capture: !0 }), m.addEventListener("reset", Se), c === "onfocus" && m.addEventListener("focusin", $e)), c === "onload" && ee(), i && (J || Z) && E("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
E("mounted", "0.6.6"), E("workers", oe), _ && E("using test mode"), P && de(P), c !== void 0 && E("auto", c), k !== void 0 && He(k), m = C.closest("form"), m && (m.addEventListener("submit", Me, { capture: !0 }), m.addEventListener("reset", Se), c === "onfocus" && m.addEventListener("focusin", $e)), c === "onload" && ee(), i && (J || Z) && E("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
});
function E(...r) {
(S || r.some((a) => a instanceof Error)) && console[r[0] instanceof Error ? "error" : "log"]("ALTCHA", ...r);
Expand Down
2 changes: 1 addition & 1 deletion dist_external/altcha.umd.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "altcha",
"description": "GDPR compliant, self-hosted CAPTCHA alternative.",
"version": "0.6.5",
"version": "0.6.6",
"license": "MIT",
"author": {
"name": "Daniel Regeci",
Expand Down
3 changes: 2 additions & 1 deletion src/declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare global {
'--altcha-max-width'?: string;
}

interface AltchaWidget {
interface AltchaWidget extends React.HTMLAttributes<HTMLElement> {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
challengeurl?: string;
Expand All @@ -36,6 +36,7 @@ declare global {
name?: string;
maxnumber?: number;
mockerror?: boolean;
ref?: React.RefObject<HTMLElement>;
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
Expand Down

0 comments on commit ab51e73

Please sign in to comment.