Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Jan 31, 2025
1 parent 1a02be1 commit 2daa1e3
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 7 deletions.
28 changes: 27 additions & 1 deletion dist/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,30 @@ declare global {
style?: AltchaWidgetCSSProperties;
}
}
}
}

declare module "react" {
namespace JSX {
interface IntrinsicElements {
'altcha-widget': AltchaWidgetReact;
}

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 AltchaWidgetReact extends AltchaWidget extends React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
ref?: React.RefObject<HTMLElement | null>;
style?: AltchaWidgetCSSProperties;
}
}
}
2 changes: 1 addition & 1 deletion dist/altcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ function ea(e, t) {
Un(), w && (w.removeEventListener("submit", vr), w.removeEventListener("reset", gr), w.removeEventListener("focusin", hr), w = null), fe && (clearTimeout(fe), fe = null), document.removeEventListener("click", cr), document.removeEventListener("scroll", dr), window.removeEventListener("resize", mr);
}), On(() => {
var n;
S("mounted", "1.1.0"), S("workers", ue()), Jn(), S("plugins", pe.length ? pe.map((s) => s.constructor.pluginName).join(", ") : "none"), I() && S("using test mode"), f() && bt(f()), r() !== void 0 && S("auto", r()), c() !== void 0 && yr(c()), w = (n = h(U)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", vr, { capture: !0 }), w.addEventListener("reset", gr), r() === "onfocus" && w.addEventListener("focusin", hr)), r() === "onload" && (D() ? nt() : we()), h(Pt) && (m() || p()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
S("mounted", "1.1.1"), S("workers", ue()), Jn(), S("plugins", pe.length ? pe.map((s) => s.constructor.pluginName).join(", ") : "none"), I() && S("using test mode"), f() && bt(f()), r() !== void 0 && S("auto", r()), c() !== void 0 && yr(c()), w = (n = h(U)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", vr, { capture: !0 }), w.addEventListener("reset", gr), r() === "onfocus" && w.addEventListener("focusin", hr)), r() === "onload" && (D() ? nt() : we()), h(Pt) && (m() || p()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
tt("load");
});
});
Expand Down
2 changes: 1 addition & 1 deletion dist/altcha.umd.cjs

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion dist_external/altcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,30 @@ declare global {
style?: AltchaWidgetCSSProperties;
}
}
}
}

declare module "react" {
namespace JSX {
interface IntrinsicElements {
'altcha-widget': AltchaWidgetReact;
}

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 AltchaWidgetReact extends AltchaWidget extends React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
ref?: React.RefObject<HTMLElement | null>;
style?: AltchaWidgetCSSProperties;
}
}
}
2 changes: 1 addition & 1 deletion dist_external/altcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ function Jl(e, t) {
jn(), b && (b.removeEventListener("submit", hr), b.removeEventListener("reset", _r), b.removeEventListener("focusin", vr), b = null), fe && (clearTimeout(fe), fe = null), document.removeEventListener("click", cr), document.removeEventListener("scroll", dr), window.removeEventListener("resize", mr);
}), Mn(() => {
var n;
I("mounted", "1.1.0-beta.1"), I("workers", ue()), Zn(), I("plugins", we.length ? we.map((s) => s.constructor.pluginName).join(", ") : "none"), A() && I("using test mode"), f() && pt(f()), r() !== void 0 && I("auto", r()), c() !== void 0 && yr(c()), b = (n = v(H)) == null ? void 0 : n.closest("form"), b && (b.addEventListener("submit", hr, { capture: !0 }), b.addEventListener("reset", _r), r() === "onfocus" && b.addEventListener("focusin", vr)), r() === "onload" && (F() ? nt() : be()), v(Pt) && (m() || w()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
I("mounted", "1.1.1"), I("workers", ue()), Zn(), I("plugins", we.length ? we.map((s) => s.constructor.pluginName).join(", ") : "none"), A() && I("using test mode"), f() && pt(f()), r() !== void 0 && I("auto", r()), c() !== void 0 && yr(c()), b = (n = v(H)) == null ? void 0 : n.closest("form"), b && (b.addEventListener("submit", hr, { capture: !0 }), b.addEventListener("reset", _r), r() === "onfocus" && b.addEventListener("focusin", vr)), r() === "onload" && (F() ? nt() : be()), v(Pt) && (m() || w()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
tt("load");
});
});
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": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"author": {
"name": "Daniel Regeci",
Expand Down

0 comments on commit 2daa1e3

Please sign in to comment.