Skip to content

Commit

Permalink
0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Jul 23, 2024
1 parent 11ad17c commit c35ce70
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 5 deletions.
13 changes: 13 additions & 0 deletions dist/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ declare global {
'altcha-widget': AltchaWidget;
}

interface AltchaWidgetCSSProperties extends React.CSSProperties {
'--altcha-border-width'?: string;
'--altcha-border-radius'?: string;
'--altcha-color-base'?: string;
'--altcha-color-border'?: string;
'--altcha-color-text'?: string;
'--altcha-color-border-focus'?: string;
'--altcha-color-error-text'?: string;
'--altcha-color-footer-bg'?: string;
'--altcha-max-width'?: string;
}

interface AltchaWidget {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
Expand All @@ -27,6 +39,7 @@ declare global {
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
style?: AltchaWidgetCSSProperties;
test?: boolean | number;
verifyurl?: string;
workers?: number;
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.4"), 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.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.");
});
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.

13 changes: 13 additions & 0 deletions dist_external/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ declare global {
'altcha-widget': AltchaWidget;
}

interface AltchaWidgetCSSProperties extends React.CSSProperties {
'--altcha-border-width'?: string;
'--altcha-border-radius'?: string;
'--altcha-color-base'?: string;
'--altcha-color-border'?: string;
'--altcha-color-text'?: string;
'--altcha-color-border-focus'?: string;
'--altcha-color-error-text'?: string;
'--altcha-color-footer-bg'?: string;
'--altcha-max-width'?: string;
}

interface AltchaWidget {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
Expand All @@ -27,6 +39,7 @@ declare global {
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
style?: AltchaWidgetCSSProperties;
test?: boolean | number;
verifyurl?: string;
workers?: number;
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.4"), 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.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.");
});
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.

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.4",
"version": "0.6.5",
"license": "MIT",
"author": {
"name": "Daniel Regeci",
Expand Down
13 changes: 13 additions & 0 deletions src/declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ declare global {
'altcha-widget': AltchaWidget;
}

interface AltchaWidgetCSSProperties extends React.CSSProperties {
'--altcha-border-width'?: string;
'--altcha-border-radius'?: string;
'--altcha-color-base'?: string;
'--altcha-color-border'?: string;
'--altcha-color-text'?: string;
'--altcha-color-border-focus'?: string;
'--altcha-color-error-text'?: string;
'--altcha-color-footer-bg'?: string;
'--altcha-max-width'?: string;
}

interface AltchaWidget {
auto?: 'onfocus' | 'onload' | 'onsubmit';
blockspam?: boolean;
Expand All @@ -27,6 +39,7 @@ declare global {
refetchonexpire?: boolean;
spamfilter?: boolean | 'ipAddress';
strings?: string;
style?: AltchaWidgetCSSProperties;
test?: boolean | number;
verifyurl?: string;
workers?: number;
Expand Down

0 comments on commit c35ce70

Please sign in to comment.