@prosopo/vue-procaptcha-wrapper 1.1.40 → 1.1.76
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$colon$cjs.log +3 -3
- package/.turbo/turbo-build.log +8 -4
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +187 -0
- package/dist/cjs/procaptchaComponent.vue2.cjs +0 -1
- package/dist/procaptchaComponent.vue2.js +0 -1
- package/package.json +12 -6
- package/src/index.ts +27 -0
- package/src/procaptchaComponent.vue +42 -0
- package/tsconfig.cjs.json +19 -0
- package/tsconfig.json +25 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.cjs.config.ts +1 -1
- package/vite.config.ts +1 -1
- package/vite.esm.config.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/vue-procaptcha-wrapper@1.1.
|
|
2
|
+
> @prosopo/vue-procaptcha-wrapper@1.1.76 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -31,5 +31,5 @@ Build end
|
|
|
31
31
|
rendering chunks...
|
|
32
32
|
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m0.32 kB[22m[1m[22m
|
|
33
33
|
[2mdist/cjs/[22m[36mprocaptchaComponent.vue.cjs [39m[1m[2m0.60 kB[22m[1m[22m
|
|
34
|
-
[2mdist/cjs/[22m[36mprocaptchaComponent.vue2.cjs [39m[1m[2m1.
|
|
35
|
-
[32m✓ built in
|
|
34
|
+
[2mdist/cjs/[22m[36mprocaptchaComponent.vue2.cjs [39m[1m[2m1.57 kB[22m[1m[22m
|
|
35
|
+
[32m✓ built in 930ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/vue-procaptcha-wrapper@1.1.
|
|
3
|
-
>
|
|
2
|
+
> @prosopo/vue-procaptcha-wrapper@1.1.76 build
|
|
3
|
+
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @prosopo/vue-procaptcha-wrapper@1.1.76 build:cross-env
|
|
7
|
+
> vite build --config vite.esm.config.ts --mode production
|
|
4
8
|
|
|
5
9
|
ViteEsmConfig: .
|
|
6
10
|
{
|
|
@@ -31,5 +35,5 @@ Build end
|
|
|
31
35
|
rendering chunks...
|
|
32
36
|
[2mdist/[22m[36mindex.js [39m[1m[2m0.15 kB[22m[1m[22m
|
|
33
37
|
[2mdist/[22m[36mprocaptchaComponent.vue.js [39m[1m[2m0.41 kB[22m[1m[22m
|
|
34
|
-
[2mdist/[22m[36mprocaptchaComponent.vue2.js [39m[1m[2m1.
|
|
35
|
-
[32m✓ built in
|
|
38
|
+
[2mdist/[22m[36mprocaptchaComponent.vue2.js [39m[1m[2m1.56 kB[22m[1m[22m
|
|
39
|
+
[32m✓ built in 945ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,192 @@
|
|
|
1
1
|
# @prosopo/vue-procaptcha-wrapper
|
|
2
2
|
|
|
3
|
+
## 1.1.76
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- @prosopo/procaptcha-wrapper@2.6.78
|
|
7
|
+
|
|
8
|
+
## 1.1.75
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @prosopo/procaptcha-wrapper@2.6.77
|
|
12
|
+
|
|
13
|
+
## 1.1.74
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @prosopo/procaptcha-wrapper@2.6.76
|
|
17
|
+
|
|
18
|
+
## 1.1.73
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @prosopo/procaptcha-wrapper@2.6.75
|
|
22
|
+
|
|
23
|
+
## 1.1.72
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @prosopo/procaptcha-wrapper@2.6.74
|
|
27
|
+
|
|
28
|
+
## 1.1.71
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @prosopo/procaptcha-wrapper@2.6.73
|
|
32
|
+
|
|
33
|
+
## 1.1.70
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- @prosopo/procaptcha-wrapper@2.6.72
|
|
37
|
+
|
|
38
|
+
## 1.1.69
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- @prosopo/procaptcha-wrapper@2.6.71
|
|
42
|
+
|
|
43
|
+
## 1.1.68
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @prosopo/procaptcha-wrapper@2.6.70
|
|
47
|
+
|
|
48
|
+
## 1.1.67
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- @prosopo/procaptcha-wrapper@2.6.69
|
|
52
|
+
|
|
53
|
+
## 1.1.66
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- @prosopo/procaptcha-wrapper@2.6.68
|
|
57
|
+
|
|
58
|
+
## 1.1.65
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- @prosopo/procaptcha-wrapper@2.6.67
|
|
62
|
+
|
|
63
|
+
## 1.1.64
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- @prosopo/procaptcha-wrapper@2.6.66
|
|
67
|
+
|
|
68
|
+
## 1.1.63
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- @prosopo/procaptcha-wrapper@2.6.65
|
|
72
|
+
|
|
73
|
+
## 1.1.62
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- @prosopo/procaptcha-wrapper@2.6.64
|
|
77
|
+
|
|
78
|
+
## 1.1.61
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- @prosopo/procaptcha-wrapper@2.6.63
|
|
82
|
+
|
|
83
|
+
## 1.1.60
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- @prosopo/procaptcha-wrapper@2.6.62
|
|
87
|
+
|
|
88
|
+
## 1.1.59
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- @prosopo/procaptcha-wrapper@2.6.61
|
|
92
|
+
|
|
93
|
+
## 1.1.58
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- @prosopo/procaptcha-wrapper@2.6.60
|
|
97
|
+
|
|
98
|
+
## 1.1.57
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- @prosopo/procaptcha-wrapper@2.6.59
|
|
102
|
+
|
|
103
|
+
## 1.1.56
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- @prosopo/procaptcha-wrapper@2.6.58
|
|
107
|
+
|
|
108
|
+
## 1.1.55
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- @prosopo/procaptcha-wrapper@2.6.57
|
|
112
|
+
|
|
113
|
+
## 1.1.54
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- @prosopo/procaptcha-wrapper@2.6.56
|
|
117
|
+
|
|
118
|
+
## 1.1.53
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- @prosopo/procaptcha-wrapper@2.6.55
|
|
122
|
+
|
|
123
|
+
## 1.1.52
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- @prosopo/procaptcha-wrapper@2.6.54
|
|
127
|
+
|
|
128
|
+
## 1.1.51
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- @prosopo/procaptcha-wrapper@2.6.53
|
|
132
|
+
|
|
133
|
+
## 1.1.50
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- @prosopo/procaptcha-wrapper@2.6.52
|
|
137
|
+
|
|
138
|
+
## 1.1.49
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- @prosopo/procaptcha-wrapper@2.6.51
|
|
142
|
+
|
|
143
|
+
## 1.1.48
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- @prosopo/procaptcha-wrapper@2.6.50
|
|
147
|
+
|
|
148
|
+
## 1.1.47
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- @prosopo/procaptcha-wrapper@2.6.49
|
|
152
|
+
|
|
153
|
+
## 1.1.46
|
|
154
|
+
### Patch Changes
|
|
155
|
+
|
|
156
|
+
- @prosopo/procaptcha-wrapper@2.6.48
|
|
157
|
+
|
|
158
|
+
## 1.1.45
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- @prosopo/procaptcha-wrapper@2.6.47
|
|
162
|
+
|
|
163
|
+
## 1.1.44
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- 0a38892: feat/cross-os-testing
|
|
167
|
+
- a8faa9a: bump license year
|
|
168
|
+
- 3acc333: Release 3.3.0
|
|
169
|
+
- Updated dependencies [0a38892]
|
|
170
|
+
- Updated dependencies [a8faa9a]
|
|
171
|
+
- Updated dependencies [3acc333]
|
|
172
|
+
- @prosopo/procaptcha-wrapper@2.6.46
|
|
173
|
+
|
|
174
|
+
## 1.1.43
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- @prosopo/procaptcha-wrapper@2.6.45
|
|
178
|
+
|
|
179
|
+
## 1.1.42
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- @prosopo/procaptcha-wrapper@2.6.44
|
|
183
|
+
|
|
184
|
+
## 1.1.41
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- e01227b: add turbo
|
|
188
|
+
- @prosopo/procaptcha-wrapper@2.6.43
|
|
189
|
+
|
|
3
190
|
## 1.1.40
|
|
4
191
|
### Patch Changes
|
|
5
192
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/vue-procaptcha-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.76",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24",
|
|
@@ -16,19 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "npm run build:cross-env -- --mode ${NODE_ENV:-development}",
|
|
20
|
+
"build:cross-env": "vite build --config vite.esm.config.ts",
|
|
20
21
|
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
21
22
|
"typecheck": "vue-tsc --project tsconfig.json",
|
|
22
23
|
"bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
23
24
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@prosopo/procaptcha-wrapper": "2.6.
|
|
27
|
+
"@prosopo/procaptcha-wrapper": "2.6.78",
|
|
27
28
|
"vue": "3.5.13"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@prosopo/config": "3.1
|
|
31
|
-
"@prosopo/procaptcha-integration-build-config": "1.1.
|
|
31
|
+
"@prosopo/config": "3.3.1",
|
|
32
|
+
"@prosopo/procaptcha-integration-build-config": "1.1.28",
|
|
32
33
|
"@types/node": "22.10.2",
|
|
33
34
|
"@vitejs/plugin-vue": "5.2.3",
|
|
34
35
|
"del-cli": "6.0.0",
|
|
@@ -40,5 +41,10 @@
|
|
|
40
41
|
"url": "https://github.com/prosopo/captcha/issues"
|
|
41
42
|
},
|
|
42
43
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
43
|
-
"sideEffects": false
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/prosopo/captcha.git",
|
|
48
|
+
"directory": "integration/frameworks/vue/vue-procaptcha-wrapper"
|
|
49
|
+
}
|
|
44
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.vue";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
ProcaptchaComponent,
|
|
24
|
+
type ProcaptchaRenderOptions,
|
|
25
|
+
type ProcaptchaType,
|
|
26
|
+
type ProcaptchaLanguages,
|
|
27
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {onMounted, onUpdated, ref} from "vue";
|
|
3
|
+
|
|
4
|
+
import {HTMLAttributes} from "vue"
|
|
5
|
+
import {type ProcaptchaRenderOptions, renderProcaptcha} from "@prosopo/procaptcha-wrapper";
|
|
6
|
+
|
|
7
|
+
type ProcaptchaComponentProperties = ProcaptchaRenderOptions & {
|
|
8
|
+
htmlAttributes?: AllHtmlAttributes,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type AllHtmlAttributes = HTMLAttributes & {
|
|
12
|
+
// allow custom data attributes
|
|
13
|
+
[key: string]: any
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const properties = defineProps<ProcaptchaComponentProperties>();
|
|
17
|
+
const wrapper = ref<HTMLElement | null>(null);
|
|
18
|
+
|
|
19
|
+
// refuse unregistered properties.
|
|
20
|
+
defineOptions({
|
|
21
|
+
inheritAttrs: false
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
onMounted(() => {
|
|
25
|
+
render();
|
|
26
|
+
});
|
|
27
|
+
onUpdated(() => {
|
|
28
|
+
render();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
function render(): void {
|
|
32
|
+
const wrapperElement = wrapper.value;
|
|
33
|
+
|
|
34
|
+
if (wrapperElement instanceof HTMLElement) {
|
|
35
|
+
renderProcaptcha(wrapperElement, properties);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<div ref="wrapper" v-bind="htmlAttributes"></div>
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist"
|
|
6
|
+
},
|
|
7
|
+
"include": ["./src"],
|
|
8
|
+
"references": [
|
|
9
|
+
{
|
|
10
|
+
"path": "../../../../dev/config/tsconfig.cjs.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"path": "../../../../packages/procaptcha-wrapper"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "../../../procaptcha-integration-build-config"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist"
|
|
6
|
+
},
|
|
7
|
+
"include": [
|
|
8
|
+
"./src",
|
|
9
|
+
"src/**/*.ts",
|
|
10
|
+
"src/**/*.tsx",
|
|
11
|
+
"src/**/*.json",
|
|
12
|
+
"src/**/*.d.ts"
|
|
13
|
+
],
|
|
14
|
+
"references": [
|
|
15
|
+
{
|
|
16
|
+
"path": "../../../../dev/config/tsconfig.json"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "../../../../packages/procaptcha-wrapper"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "../../../procaptcha-integration-build-config"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|