@prosopo/svelte-procaptcha-wrapper 1.1.44 → 1.1.77
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +165 -0
- package/package.json +9 -4
- package/src/index.ts +27 -0
- package/src/procaptchaComponent.svelte +27 -0
- package/tsconfig.cjs.json +18 -0
- package/tsconfig.json +24 -0
- package/tsconfig.tsbuildinfo +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/svelte-procaptcha-wrapper@1.1.
|
|
2
|
+
> @prosopo/svelte-procaptcha-wrapper@1.1.77 build
|
|
3
3
|
> npm run svpkg && del-cli --verbose ./.svelte-kit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/svelte-procaptcha-wrapper@1.1.
|
|
6
|
+
> @prosopo/svelte-procaptcha-wrapper@1.1.77 svpkg
|
|
7
7
|
> svelte-package -i ./src -o ./dist
|
|
8
8
|
|
|
9
9
|
src -> dist
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,170 @@
|
|
|
1
1
|
# @prosopo/svelte-procaptcha-wrapper
|
|
2
2
|
|
|
3
|
+
## 1.1.77
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- @prosopo/procaptcha-wrapper@2.6.79
|
|
7
|
+
|
|
8
|
+
## 1.1.76
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @prosopo/procaptcha-wrapper@2.6.78
|
|
12
|
+
|
|
13
|
+
## 1.1.75
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @prosopo/procaptcha-wrapper@2.6.77
|
|
17
|
+
|
|
18
|
+
## 1.1.74
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @prosopo/procaptcha-wrapper@2.6.76
|
|
22
|
+
|
|
23
|
+
## 1.1.73
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @prosopo/procaptcha-wrapper@2.6.75
|
|
27
|
+
|
|
28
|
+
## 1.1.72
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @prosopo/procaptcha-wrapper@2.6.74
|
|
32
|
+
|
|
33
|
+
## 1.1.71
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- @prosopo/procaptcha-wrapper@2.6.73
|
|
37
|
+
|
|
38
|
+
## 1.1.70
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- @prosopo/procaptcha-wrapper@2.6.72
|
|
42
|
+
|
|
43
|
+
## 1.1.69
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @prosopo/procaptcha-wrapper@2.6.71
|
|
47
|
+
|
|
48
|
+
## 1.1.68
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- @prosopo/procaptcha-wrapper@2.6.70
|
|
52
|
+
|
|
53
|
+
## 1.1.67
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- @prosopo/procaptcha-wrapper@2.6.69
|
|
57
|
+
|
|
58
|
+
## 1.1.66
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- @prosopo/procaptcha-wrapper@2.6.68
|
|
62
|
+
|
|
63
|
+
## 1.1.65
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- @prosopo/procaptcha-wrapper@2.6.67
|
|
67
|
+
|
|
68
|
+
## 1.1.64
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- @prosopo/procaptcha-wrapper@2.6.66
|
|
72
|
+
|
|
73
|
+
## 1.1.63
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- @prosopo/procaptcha-wrapper@2.6.65
|
|
77
|
+
|
|
78
|
+
## 1.1.62
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- @prosopo/procaptcha-wrapper@2.6.64
|
|
82
|
+
|
|
83
|
+
## 1.1.61
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- @prosopo/procaptcha-wrapper@2.6.63
|
|
87
|
+
|
|
88
|
+
## 1.1.60
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- @prosopo/procaptcha-wrapper@2.6.62
|
|
92
|
+
|
|
93
|
+
## 1.1.59
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- @prosopo/procaptcha-wrapper@2.6.61
|
|
97
|
+
|
|
98
|
+
## 1.1.58
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- @prosopo/procaptcha-wrapper@2.6.60
|
|
102
|
+
|
|
103
|
+
## 1.1.57
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- @prosopo/procaptcha-wrapper@2.6.59
|
|
107
|
+
|
|
108
|
+
## 1.1.56
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- @prosopo/procaptcha-wrapper@2.6.58
|
|
112
|
+
|
|
113
|
+
## 1.1.55
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- @prosopo/procaptcha-wrapper@2.6.57
|
|
117
|
+
|
|
118
|
+
## 1.1.54
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- @prosopo/procaptcha-wrapper@2.6.56
|
|
122
|
+
|
|
123
|
+
## 1.1.53
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- @prosopo/procaptcha-wrapper@2.6.55
|
|
127
|
+
|
|
128
|
+
## 1.1.52
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- @prosopo/procaptcha-wrapper@2.6.54
|
|
132
|
+
|
|
133
|
+
## 1.1.51
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- @prosopo/procaptcha-wrapper@2.6.53
|
|
137
|
+
|
|
138
|
+
## 1.1.50
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- @prosopo/procaptcha-wrapper@2.6.52
|
|
142
|
+
|
|
143
|
+
## 1.1.49
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- @prosopo/procaptcha-wrapper@2.6.51
|
|
147
|
+
|
|
148
|
+
## 1.1.48
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- @prosopo/procaptcha-wrapper@2.6.50
|
|
152
|
+
|
|
153
|
+
## 1.1.47
|
|
154
|
+
### Patch Changes
|
|
155
|
+
|
|
156
|
+
- @prosopo/procaptcha-wrapper@2.6.49
|
|
157
|
+
|
|
158
|
+
## 1.1.46
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- @prosopo/procaptcha-wrapper@2.6.48
|
|
162
|
+
|
|
163
|
+
## 1.1.45
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- @prosopo/procaptcha-wrapper@2.6.47
|
|
167
|
+
|
|
3
168
|
## 1.1.44
|
|
4
169
|
### Patch Changes
|
|
5
170
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/svelte-procaptcha-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.77",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dev": "npm run svpkg -- -w"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@prosopo/procaptcha-wrapper": "2.6.
|
|
26
|
+
"@prosopo/procaptcha-wrapper": "2.6.79"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"svelte": "^5.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@prosopo/config": "3.3.
|
|
32
|
+
"@prosopo/config": "3.3.1",
|
|
33
33
|
"@sveltejs/package": "2.3.10",
|
|
34
34
|
"@types/node": "22.10.2",
|
|
35
35
|
"del-cli": "6.0.0",
|
|
@@ -41,5 +41,10 @@
|
|
|
41
41
|
"url": "https://github.com/prosopo/captcha/issues"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
44
|
-
"sideEffects": false
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/prosopo/captcha.git",
|
|
48
|
+
"directory": "integration/frameworks/svelte/svelte-procaptcha-wrapper"
|
|
49
|
+
}
|
|
45
50
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright 2021-2026 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
import type {
|
|
16
|
+
ProcaptchaLanguages,
|
|
17
|
+
ProcaptchaRenderOptions,
|
|
18
|
+
ProcaptchaType,
|
|
19
|
+
} from "@prosopo/procaptcha-wrapper";
|
|
20
|
+
import ProcaptchaComponent from "./procaptchaComponent.svelte";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
ProcaptchaComponent,
|
|
24
|
+
type ProcaptchaRenderOptions,
|
|
25
|
+
type ProcaptchaType,
|
|
26
|
+
type ProcaptchaLanguages,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {tick, onMount} from "svelte";
|
|
3
|
+
import type {HTMLAttributes} from "svelte/elements";
|
|
4
|
+
import {type ProcaptchaRenderOptions, renderProcaptcha} from "@prosopo/procaptcha-wrapper";
|
|
5
|
+
|
|
6
|
+
type ProcaptchaComponentProperties = ProcaptchaRenderOptions & {
|
|
7
|
+
htmlAttributes?: AllHtmlAttributes,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type AllHtmlAttributes = HTMLAttributes<HTMLElement> & {
|
|
11
|
+
// allow custom data attributes
|
|
12
|
+
[key: string]: any
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const properties: ProcaptchaComponentProperties = $props();
|
|
16
|
+
const htmlWrapperElementAttributes = $derived(properties.htmlAttributes || {});
|
|
17
|
+
let wrapperElement: HTMLDivElement;
|
|
18
|
+
|
|
19
|
+
onMount(() => {
|
|
20
|
+
tick().then(() => {
|
|
21
|
+
renderProcaptcha(wrapperElement, properties);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<div bind:this={wrapperElement} {...htmlWrapperElementAttributes}></div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext"
|
|
8
|
+
},
|
|
9
|
+
"include": ["./src"],
|
|
10
|
+
"references": [
|
|
11
|
+
{
|
|
12
|
+
"path": "../../../../dev/config/tsconfig.cjs.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "../../../../packages/procaptcha-wrapper"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext"
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"./src",
|
|
11
|
+
"src/**/*.ts",
|
|
12
|
+
"src/**/*.tsx",
|
|
13
|
+
"src/**/*.json",
|
|
14
|
+
"src/**/*.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"references": [
|
|
17
|
+
{
|
|
18
|
+
"path": "../../../../dev/config/tsconfig.json"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../../packages/procaptcha-wrapper"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"5.6.2"}
|