altcha 3.0.11 → 3.1.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/dist/external/altcha.js +1 -1
- package/dist/external/altcha.min.js +1 -1
- package/dist/external/altcha.umd.cjs +1 -1
- package/dist/external/altcha.umd.min.cjs +1 -1
- package/dist/main/altcha.i18n.js +1 -1
- package/dist/main/altcha.i18n.min.js +1 -1
- package/dist/main/altcha.i18n.umd.cjs +1 -1
- package/dist/main/altcha.i18n.umd.min.cjs +1 -1
- package/dist/main/altcha.js +1 -1
- package/dist/main/altcha.min.js +1 -1
- package/dist/main/altcha.umd.cjs +1 -1
- package/dist/main/altcha.umd.min.cjs +1 -1
- package/dist/types/jsx.d.ts +10 -1
- package/dist/types/react.d.ts +4 -7
- package/dist/types/svelte.d.ts +2 -3
- package/package.json +5 -4
package/dist/types/jsx.d.ts
CHANGED
|
@@ -2,7 +2,16 @@ import './global';
|
|
|
2
2
|
import type { CSSVariables, WidgetAttributes } from './';
|
|
3
3
|
export {};
|
|
4
4
|
interface AltchaWidgetJSX extends WidgetAttributes {
|
|
5
|
-
|
|
5
|
+
class?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
id?: string;
|
|
9
|
+
role?: string;
|
|
10
|
+
slot?: string;
|
|
11
|
+
style?: string | Partial<CSSVariables>;
|
|
12
|
+
tabindex?: number | string;
|
|
13
|
+
tabIndex?: number;
|
|
14
|
+
title?: string;
|
|
6
15
|
}
|
|
7
16
|
declare global {
|
|
8
17
|
namespace JSX {
|
package/dist/types/react.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import './global';
|
|
2
|
+
import type { CSSProperties, HTMLAttributes, Ref } from 'react';
|
|
2
3
|
import type { CSSVariables, WidgetAttributes } from './';
|
|
3
4
|
export {};
|
|
4
|
-
interface AltchaWidgetReact extends WidgetAttributes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
style?: Partial<CSSVariables>;
|
|
5
|
+
interface AltchaWidgetReact extends WidgetAttributes, HTMLAttributes<HTMLElement> {
|
|
6
|
+
ref?: Ref<HTMLElement>;
|
|
7
|
+
style?: CSSProperties & Partial<CSSVariables>;
|
|
8
8
|
suppressHydrationWarning?: boolean;
|
|
9
9
|
}
|
|
10
|
-
interface AltchaWidgetReactRefObject<T> {
|
|
11
|
-
current: T | null;
|
|
12
|
-
}
|
|
13
10
|
declare global {
|
|
14
11
|
namespace React {
|
|
15
12
|
namespace JSX {
|
package/dist/types/svelte.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './global';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
import type { CodeChallenge, ServerVerificationResult, State, WidgetAttributes } from './';
|
|
3
4
|
export {};
|
|
4
|
-
interface AltchaWidgetSvelte extends WidgetAttributes {
|
|
5
|
+
interface AltchaWidgetSvelte extends WidgetAttributes, HTMLAttributes<HTMLElement> {
|
|
5
6
|
oncodechallenge?: (ev: CustomEvent<{
|
|
6
7
|
codeChallenge: CodeChallenge;
|
|
7
8
|
}>) => void;
|
|
8
9
|
onexpired?: (ev: CustomEvent<unknown>) => void;
|
|
9
|
-
onload?: (ev: CustomEvent<unknown>) => void;
|
|
10
10
|
onstatechange?: (e: CustomEvent<{
|
|
11
11
|
payload?: string;
|
|
12
12
|
state: State;
|
|
@@ -15,7 +15,6 @@ interface AltchaWidgetSvelte extends WidgetAttributes {
|
|
|
15
15
|
onverified?: (e: CustomEvent<{
|
|
16
16
|
payload: string;
|
|
17
17
|
}>) => void;
|
|
18
|
-
style?: string;
|
|
19
18
|
}
|
|
20
19
|
declare global {
|
|
21
20
|
namespace svelteHTML {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altcha",
|
|
3
3
|
"description": "Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Daniel Regeci",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"lint": "prettier --check .",
|
|
108
108
|
"format": "prettier --write .",
|
|
109
109
|
"test": "vitest",
|
|
110
|
-
"test:e2e": "
|
|
110
|
+
"test:e2e": "vitest run --config vite.config.e2e.ts",
|
|
111
111
|
"prepare": "husky"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
@@ -119,11 +119,13 @@
|
|
|
119
119
|
"@types/node": "^24.10.1",
|
|
120
120
|
"@types/react": "^19.2.10",
|
|
121
121
|
"@types/react-dom": "^19.2.3",
|
|
122
|
+
"@vitest/browser-playwright": "4.1.8",
|
|
122
123
|
"cssnano": "^7.1.2",
|
|
123
124
|
"daisyui": "^5.5.14",
|
|
124
125
|
"dts-bundle-generator": "^9.5.1",
|
|
125
126
|
"glob": "^13.0.0",
|
|
126
127
|
"husky": "^9.1.7",
|
|
128
|
+
"playwright": "1.60.0",
|
|
127
129
|
"prettier": "^3.8.1",
|
|
128
130
|
"prettier-plugin-svelte": "^3.4.1",
|
|
129
131
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
@@ -133,11 +135,10 @@
|
|
|
133
135
|
"svelte-check": "^4.3.4",
|
|
134
136
|
"tailwindcss": "^4.1.18",
|
|
135
137
|
"terser": "^5.44.1",
|
|
136
|
-
"testcafe": "^3.7.4",
|
|
137
138
|
"typescript": "~5.9.3",
|
|
138
139
|
"vite": "^7.3.1",
|
|
139
140
|
"vite-plugin-markdown": "^2.2.0",
|
|
140
|
-
"vitest": "^4.
|
|
141
|
+
"vitest": "^4.1.8"
|
|
141
142
|
},
|
|
142
143
|
"dependencies": {
|
|
143
144
|
"hash-wasm": "^4.12.0"
|