@prosopo/vue-procaptcha-wrapper 1.1.8 → 1.1.27
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/CHANGELOG.md +172 -0
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/procaptchaComponent.vue.cjs +10 -0
- package/dist/cjs/procaptchaComponent.vue2.cjs +53 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -44
- package/dist/index.js.map +1 -0
- package/dist/procaptchaComponent.vue.d.ts +3 -5
- package/dist/procaptchaComponent.vue.d.ts.map +1 -1
- package/dist/procaptchaComponent.vue.js +47 -0
- package/dist/procaptchaComponent.vue.js.map +1 -0
- package/dist/procaptchaComponent.vue2.js +54 -0
- package/package.json +9 -10
- package/project.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,177 @@
|
|
|
1
1
|
# @prosopo/vue-procaptcha-wrapper
|
|
2
2
|
|
|
3
|
+
## 1.1.27
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [1e3a838]
|
|
7
|
+
- @prosopo/config@3.1.20
|
|
8
|
+
- @prosopo/procaptcha-wrapper@2.6.29
|
|
9
|
+
|
|
10
|
+
## 1.1.26
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5659b24: Release 3.4.4
|
|
14
|
+
- Updated dependencies [5659b24]
|
|
15
|
+
- @prosopo/procaptcha-wrapper@2.6.28
|
|
16
|
+
- @prosopo/config@3.1.19
|
|
17
|
+
|
|
18
|
+
## 1.1.25
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 50c4120: Release 3.4.3
|
|
22
|
+
- Updated dependencies [50c4120]
|
|
23
|
+
- @prosopo/procaptcha-wrapper@2.6.27
|
|
24
|
+
- @prosopo/config@3.1.18
|
|
25
|
+
|
|
26
|
+
## 1.1.24
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 618703f: Release 3.4.2
|
|
30
|
+
- Updated dependencies [618703f]
|
|
31
|
+
- @prosopo/procaptcha-wrapper@2.6.26
|
|
32
|
+
- @prosopo/config@3.1.17
|
|
33
|
+
|
|
34
|
+
## 1.1.23
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 11303d9: Release 3.4.0
|
|
38
|
+
- 18cb28b: Release 3.4.1
|
|
39
|
+
- Updated dependencies [11303d9]
|
|
40
|
+
- Updated dependencies [18cb28b]
|
|
41
|
+
- @prosopo/procaptcha-wrapper@2.6.25
|
|
42
|
+
- @prosopo/config@3.1.16
|
|
43
|
+
|
|
44
|
+
## 1.1.22
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- f3f7aec: Release 3.4.0
|
|
48
|
+
- Updated dependencies [f3f7aec]
|
|
49
|
+
- @prosopo/procaptcha-wrapper@2.6.24
|
|
50
|
+
- @prosopo/config@3.1.15
|
|
51
|
+
|
|
52
|
+
## 1.1.21
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Release 3.3.1
|
|
56
|
+
- 0824221: Release 3.2.4
|
|
57
|
+
- Updated dependencies
|
|
58
|
+
- Updated dependencies [0824221]
|
|
59
|
+
- @prosopo/procaptcha-wrapper@2.6.23
|
|
60
|
+
- @prosopo/config@3.1.14
|
|
61
|
+
|
|
62
|
+
## 1.1.20
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- 008d112: Release 3.3.0
|
|
66
|
+
- Updated dependencies [008d112]
|
|
67
|
+
- @prosopo/procaptcha-wrapper@2.6.22
|
|
68
|
+
- @prosopo/config@3.1.13
|
|
69
|
+
|
|
70
|
+
## 1.1.19
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- 0824221: Release 3.2.4
|
|
74
|
+
- Updated dependencies [0824221]
|
|
75
|
+
- @prosopo/procaptcha-wrapper@2.6.21
|
|
76
|
+
- @prosopo/config@3.1.12
|
|
77
|
+
|
|
78
|
+
## 1.1.18
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- 1a23649: Release 3.2.3
|
|
82
|
+
- Updated dependencies [1a23649]
|
|
83
|
+
- @prosopo/procaptcha-wrapper@2.6.20
|
|
84
|
+
- @prosopo/config@3.1.11
|
|
85
|
+
|
|
86
|
+
## 1.1.17
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- 657a827: Release 3.2.2
|
|
90
|
+
- Updated dependencies [657a827]
|
|
91
|
+
- @prosopo/procaptcha-wrapper@2.6.19
|
|
92
|
+
- @prosopo/config@3.1.10
|
|
93
|
+
|
|
94
|
+
## 1.1.16
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- 4440947: fix type-only tsc compilation
|
|
98
|
+
- 7bdaca6: Release 3.2.1
|
|
99
|
+
- Updated dependencies [4440947]
|
|
100
|
+
- Updated dependencies [7bdaca6]
|
|
101
|
+
- Updated dependencies [809b984]
|
|
102
|
+
- Updated dependencies [809b984]
|
|
103
|
+
- @prosopo/procaptcha-wrapper@2.6.18
|
|
104
|
+
- @prosopo/config@3.1.9
|
|
105
|
+
|
|
106
|
+
## 1.1.15
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- 6fe8570: Release 3.2.0
|
|
110
|
+
- Updated dependencies [6fe8570]
|
|
111
|
+
- @prosopo/procaptcha-wrapper@2.6.17
|
|
112
|
+
- @prosopo/config@3.1.8
|
|
113
|
+
|
|
114
|
+
## 1.1.14
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- f304be9: Release 3.1.13
|
|
118
|
+
- Updated dependencies [f304be9]
|
|
119
|
+
- @prosopo/procaptcha-wrapper@2.6.16
|
|
120
|
+
- @prosopo/config@3.1.7
|
|
121
|
+
|
|
122
|
+
## 1.1.13
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- Updated dependencies [9eed772]
|
|
126
|
+
- @prosopo/config@3.1.6
|
|
127
|
+
- @prosopo/procaptcha-wrapper@2.6.15
|
|
128
|
+
|
|
129
|
+
## 1.1.12
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- 6960643: lint detect missing and unneccessary imports
|
|
133
|
+
- Updated dependencies [6960643]
|
|
134
|
+
- @prosopo/procaptcha-wrapper@2.6.14
|
|
135
|
+
|
|
136
|
+
## 1.1.11
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- Updated dependencies [30e7d4d]
|
|
140
|
+
- @prosopo/config@3.1.5
|
|
141
|
+
- @prosopo/procaptcha-wrapper@2.6.13
|
|
142
|
+
- @prosopo/types@3.0.8
|
|
143
|
+
|
|
144
|
+
## 1.1.10
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- Updated dependencies [44ffda2]
|
|
148
|
+
- Updated dependencies [a49b538]
|
|
149
|
+
- @prosopo/config@3.1.4
|
|
150
|
+
- @prosopo/procaptcha-wrapper@2.6.12
|
|
151
|
+
- @prosopo/types@3.0.7
|
|
152
|
+
|
|
153
|
+
## 1.1.9
|
|
154
|
+
### Patch Changes
|
|
155
|
+
|
|
156
|
+
- 91d56e7: enable nx caching
|
|
157
|
+
- 828066d: remove empty test npm scripts, add missing npm test scripts
|
|
158
|
+
- 91bbe87: configure typecheck before bundle for vue packages
|
|
159
|
+
- 91bbe87: make typecheck script always recompile
|
|
160
|
+
- 346e092: NODE_ENV default to "development"
|
|
161
|
+
- 5d36e05: remove tsc --force
|
|
162
|
+
- Updated dependencies [91d56e7]
|
|
163
|
+
- Updated dependencies [828066d]
|
|
164
|
+
- Updated dependencies [df4e030]
|
|
165
|
+
- Updated dependencies [91bbe87]
|
|
166
|
+
- Updated dependencies [686c5f5]
|
|
167
|
+
- Updated dependencies [3ef4fd2]
|
|
168
|
+
- Updated dependencies [91bbe87]
|
|
169
|
+
- Updated dependencies [346e092]
|
|
170
|
+
- Updated dependencies [5d36e05]
|
|
171
|
+
- @prosopo/procaptcha-wrapper@2.6.11
|
|
172
|
+
- @prosopo/types@3.0.6
|
|
173
|
+
- @prosopo/config@3.1.3
|
|
174
|
+
|
|
3
175
|
## 1.1.8
|
|
4
176
|
### Patch Changes
|
|
5
177
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./procaptchaComponent.vue.cjs");
|
|
4
|
+
const procaptchaComponent_vue_vue_type_script_setup_true_lang = require("./procaptchaComponent.vue2.cjs");
|
|
5
|
+
exports.ProcaptchaComponent = procaptchaComponent_vue_vue_type_script_setup_true_lang;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const procaptchaComponent_vue_vue_type_script_setup_true_lang = require("./procaptchaComponent.vue2.cjs");
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const _sfc_setup = procaptchaComponent_vue_vue_type_script_setup_true_lang.setup;
|
|
5
|
+
procaptchaComponent_vue_vue_type_script_setup_true_lang.setup = (props, ctx) => {
|
|
6
|
+
const ssrContext = vue.useSSRContext();
|
|
7
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/procaptchaComponent.vue");
|
|
8
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
9
|
+
};
|
|
10
|
+
module.exports = procaptchaComponent_vue_vue_type_script_setup_true_lang;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const serverRenderer = require("vue/server-renderer");
|
|
4
|
+
const procaptchaWrapper = require("@prosopo/procaptcha-wrapper");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
+
...{
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
},
|
|
9
|
+
__name: "procaptchaComponent",
|
|
10
|
+
__ssrInlineRender: true,
|
|
11
|
+
props: {
|
|
12
|
+
siteKey: {},
|
|
13
|
+
theme: {},
|
|
14
|
+
captchaType: {},
|
|
15
|
+
callback: { type: [String, Function] },
|
|
16
|
+
"challenge-valid-length": {},
|
|
17
|
+
"chalexpired-callback": { type: [String, Function] },
|
|
18
|
+
"expired-callback": { type: [String, Function] },
|
|
19
|
+
"open-callback": { type: [String, Function] },
|
|
20
|
+
"close-callback": { type: [String, Function] },
|
|
21
|
+
"error-callback": { type: [String, Function] },
|
|
22
|
+
"failed-callback": { type: [String, Function] },
|
|
23
|
+
"reset-callback": { type: [String, Function] },
|
|
24
|
+
language: {},
|
|
25
|
+
size: {},
|
|
26
|
+
web3: { type: Boolean },
|
|
27
|
+
userAccountAddress: {},
|
|
28
|
+
htmlAttributes: {}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const properties = __props;
|
|
32
|
+
const wrapper = vue.ref(null);
|
|
33
|
+
vue.onMounted(() => {
|
|
34
|
+
render();
|
|
35
|
+
});
|
|
36
|
+
vue.onUpdated(() => {
|
|
37
|
+
render();
|
|
38
|
+
});
|
|
39
|
+
function render() {
|
|
40
|
+
const wrapperElement = wrapper.value;
|
|
41
|
+
if (wrapperElement instanceof HTMLElement) {
|
|
42
|
+
procaptchaWrapper.renderProcaptcha(wrapperElement, properties);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
46
|
+
_push(`<div${serverRenderer.ssrRenderAttrs(vue.mergeProps({
|
|
47
|
+
ref_key: "wrapper",
|
|
48
|
+
ref: wrapper
|
|
49
|
+
}, _ctx.htmlAttributes, _attrs))}></div>`);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
module.exports = _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProcaptchaLanguages, ProcaptchaRenderOptions, ProcaptchaType } from
|
|
2
|
-
import
|
|
1
|
+
import type { ProcaptchaLanguages, ProcaptchaRenderOptions, ProcaptchaType } from "@prosopo/procaptcha-wrapper";
|
|
2
|
+
import ProcaptchaComponent from "./procaptchaComponent.vue";
|
|
3
3
|
export { ProcaptchaComponent, type ProcaptchaRenderOptions, type ProcaptchaType, type ProcaptchaLanguages, };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
theme: {},
|
|
9
|
-
captchaType: {},
|
|
10
|
-
callback: { type: [String, Function] },
|
|
11
|
-
"challenge-valid-length": {},
|
|
12
|
-
"chalexpired-callback": { type: [String, Function] },
|
|
13
|
-
"expired-callback": { type: [String, Function] },
|
|
14
|
-
"open-callback": { type: [String, Function] },
|
|
15
|
-
"close-callback": { type: [String, Function] },
|
|
16
|
-
"error-callback": { type: [String, Function] },
|
|
17
|
-
"failed-callback": { type: [String, Function] },
|
|
18
|
-
"reset-callback": { type: [String, Function] },
|
|
19
|
-
language: {},
|
|
20
|
-
size: {},
|
|
21
|
-
web3: { type: Boolean },
|
|
22
|
-
userAccountAddress: {},
|
|
23
|
-
htmlAttributes: {}
|
|
24
|
-
},
|
|
25
|
-
setup(r) {
|
|
26
|
-
const c = r, t = o(null);
|
|
27
|
-
l(() => {
|
|
28
|
-
n();
|
|
29
|
-
}), p(() => {
|
|
30
|
-
n();
|
|
31
|
-
});
|
|
32
|
-
function n() {
|
|
33
|
-
const e = t.value;
|
|
34
|
-
e instanceof HTMLElement && m(e, c);
|
|
35
|
-
}
|
|
36
|
-
return (e, d) => (s(), i("div", u({
|
|
37
|
-
ref_key: "wrapper",
|
|
38
|
-
ref: t
|
|
39
|
-
}, e.htmlAttributes), null, 16));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
h as ProcaptchaComponent
|
|
44
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProcaptchaComponent = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var procaptchaComponent_vue_1 = tslib_1.__importDefault(require("./procaptchaComponent.vue"));
|
|
6
|
+
exports.ProcaptchaComponent = procaptchaComponent_vue_1.default;
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAmBA,8FAA4D;AAG3D,8BAHM,iCAAmB,CAGN"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes } from
|
|
2
|
-
import { ProcaptchaRenderOptions } from
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { type ProcaptchaRenderOptions } from "@prosopo/procaptcha-wrapper";
|
|
3
3
|
type ProcaptchaComponentProperties = ProcaptchaRenderOptions & {
|
|
4
4
|
htmlAttributes?: AllHtmlAttributes;
|
|
5
5
|
};
|
|
6
6
|
type AllHtmlAttributes = HTMLAttributes & {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: import(
|
|
10
|
-
wrapper: HTMLDivElement;
|
|
11
|
-
}, any>;
|
|
9
|
+
declare const _default: import("vue").DefineComponent<ProcaptchaComponentProperties, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProcaptchaComponentProperties> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
10
|
export default _default;
|
|
13
11
|
//# sourceMappingURL=procaptchaComponent.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procaptchaComponent.vue.d.ts","sourceRoot":"","sources":["../src/procaptchaComponent.vue"],"names":[],"mappings":"AA8CA,OAAO,EAAC,cAAc,EAAC,MAAM,KAAK,CAAA;AAClC,OAAO,EAAC,KAAK,uBAAuB,EAAmB,MAAM,6BAA6B,CAAC;AAE3F,KAAK,6BAA6B,GAAG,uBAAuB,GAAG;IAC7D,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,CAAA;AAED,KAAK,iBAAiB,GAAG,cAAc,GAAG;IAExC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAC
|
|
1
|
+
{"version":3,"file":"procaptchaComponent.vue.d.ts","sourceRoot":"","sources":["../src/procaptchaComponent.vue"],"names":[],"mappings":"AA8CA,OAAO,EAAC,cAAc,EAAC,MAAM,KAAK,CAAA;AAClC,OAAO,EAAC,KAAK,uBAAuB,EAAmB,MAAM,6BAA6B,CAAC;AAE3F,KAAK,6BAA6B,GAAG,uBAAuB,GAAG;IAC7D,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,CAAA;AAED,KAAK,iBAAiB,GAAG,cAAc,GAAG;IAExC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAC;;AA8DF,wBAMG"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var vue_1 = require("vue");
|
|
5
|
+
var procaptcha_wrapper_1 = require("@prosopo/procaptcha-wrapper");
|
|
6
|
+
var properties = defineProps();
|
|
7
|
+
var wrapper = (0, vue_1.ref)(null);
|
|
8
|
+
defineOptions({
|
|
9
|
+
inheritAttrs: false
|
|
10
|
+
});
|
|
11
|
+
(0, vue_1.onMounted)(function () {
|
|
12
|
+
render();
|
|
13
|
+
});
|
|
14
|
+
(0, vue_1.onUpdated)(function () {
|
|
15
|
+
render();
|
|
16
|
+
});
|
|
17
|
+
function render() {
|
|
18
|
+
var wrapperElement = wrapper.value;
|
|
19
|
+
if (wrapperElement instanceof HTMLElement) {
|
|
20
|
+
(0, procaptcha_wrapper_1.renderProcaptcha)(wrapperElement, properties);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
debugger;
|
|
24
|
+
var __VLS_ctx = {};
|
|
25
|
+
var __VLS_elements;
|
|
26
|
+
var __VLS_components;
|
|
27
|
+
var __VLS_directives;
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(tslib_1.__assign({ ref: "wrapper" }, (__VLS_ctx.htmlAttributes)));
|
|
29
|
+
;
|
|
30
|
+
[htmlAttributes, wrapper,];
|
|
31
|
+
var __VLS_dollars;
|
|
32
|
+
var __VLS_self = (await Promise.resolve().then(function () { return tslib_1.__importStar(require('vue')); })).defineComponent({
|
|
33
|
+
setup: function () {
|
|
34
|
+
return {
|
|
35
|
+
wrapper: wrapper,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
__typeProps: {},
|
|
39
|
+
});
|
|
40
|
+
exports.default = (await Promise.resolve().then(function () { return tslib_1.__importStar(require('vue')); })).defineComponent({
|
|
41
|
+
setup: function () {
|
|
42
|
+
return {};
|
|
43
|
+
},
|
|
44
|
+
__typeProps: {},
|
|
45
|
+
});
|
|
46
|
+
;
|
|
47
|
+
//# sourceMappingURL=procaptchaComponent.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procaptchaComponent.vue.js","sourceRoot":"","sources":["../src/procaptchaComponent.vue"],"names":[],"mappings":";;;AAAA,2BA4C8C;AAG9C,kEAA2F;AAY3F,IAAM,UAAU,GAAG,WAAW,EAAe,CAAC;AAC9C,IAAM,OAAO,GAAG,IAAA,SAAG,EAAqB,IAAI,CAAC,CAAC;AAG9C,aAAa,CAAC;IACZ,YAAY,EAAE,KAAK;CACpB,CAAC,CAAC;AAEH,IAAA,eAAS,EAAC;IACR,MAAM,EAAE,CAAC;AACX,CAAC,CAAC,CAAC;AACH,IAAA,eAAS,EAAC;IACR,MAAM,EAAE,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,SAAS,MAAM;IACb,IAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;IAErC,IAAI,cAAc,YAAY,WAAW,EAAE,CAAC;QAC1C,IAAA,qCAAgB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC;AACD,QAAQ,CAAA;AAIR,IAAM,SAAS,GAAG,EAAqE,CAAC;AACxF,IAAI,cAAwC,CAAC;AAE7C,IAAI,gBAAiE,CAAC;AAEtE,IAAI,gBAAiE,CAAC;AACtE,yBAAyB,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,oBACjE,GAAG,EAAE,SAAS,IACX,CAAC,SAAS,CAAC,cAAc,CAAC,EAC3B,CAAC;AACoC,CAAC;AAExC,CAAC,cAAc,EAAC,OAAO,EAAE,CAAC;AAO1B,IAAI,aAK+D,CAAC;AACpE,IAAM,UAAU,GAAG,CAAC,+EAAa,KAAK,MAAC,CAAC,CAAC,eAAe,CAAC;IACzD,KAAK;QACL,OAAO;YACP,OAAO,EAAE,OAAyB;SACjC,CAAC;IACF,CAAC;IACD,WAAW,EAAE,EAAuB;CACnC,CAAC,CAAC;AACH,kBAAe,CAAC,+EAAa,KAAK,MAAC,CAAC,CAAC,eAAe,CAAC;IACrD,KAAK;QACL,OAAO,EACN,CAAC;IACF,CAAC;IACD,WAAW,EAAE,EAAuB;CACnC,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onUpdated, mergeProps } from "vue";
|
|
2
|
+
import { ssrRenderAttrs } from "vue/server-renderer";
|
|
3
|
+
import { renderProcaptcha } from "@prosopo/procaptcha-wrapper";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
...{
|
|
6
|
+
inheritAttrs: false
|
|
7
|
+
},
|
|
8
|
+
__name: "procaptchaComponent",
|
|
9
|
+
__ssrInlineRender: true,
|
|
10
|
+
props: {
|
|
11
|
+
siteKey: {},
|
|
12
|
+
theme: {},
|
|
13
|
+
captchaType: {},
|
|
14
|
+
callback: { type: [String, Function] },
|
|
15
|
+
"challenge-valid-length": {},
|
|
16
|
+
"chalexpired-callback": { type: [String, Function] },
|
|
17
|
+
"expired-callback": { type: [String, Function] },
|
|
18
|
+
"open-callback": { type: [String, Function] },
|
|
19
|
+
"close-callback": { type: [String, Function] },
|
|
20
|
+
"error-callback": { type: [String, Function] },
|
|
21
|
+
"failed-callback": { type: [String, Function] },
|
|
22
|
+
"reset-callback": { type: [String, Function] },
|
|
23
|
+
language: {},
|
|
24
|
+
size: {},
|
|
25
|
+
web3: { type: Boolean },
|
|
26
|
+
userAccountAddress: {},
|
|
27
|
+
htmlAttributes: {}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const properties = __props;
|
|
31
|
+
const wrapper = ref(null);
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
render();
|
|
34
|
+
});
|
|
35
|
+
onUpdated(() => {
|
|
36
|
+
render();
|
|
37
|
+
});
|
|
38
|
+
function render() {
|
|
39
|
+
const wrapperElement = wrapper.value;
|
|
40
|
+
if (wrapperElement instanceof HTMLElement) {
|
|
41
|
+
renderProcaptcha(wrapperElement, properties);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
45
|
+
_push(`<div${ssrRenderAttrs(mergeProps({
|
|
46
|
+
ref_key: "wrapper",
|
|
47
|
+
ref: wrapper
|
|
48
|
+
}, _ctx.htmlAttributes, _attrs))}></div>`);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
_sfc_main as default
|
|
54
|
+
};
|
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.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "20",
|
|
@@ -16,21 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "NODE_ENV=${NODE_ENV:-
|
|
20
|
-
"build:cjs": "NODE_ENV=${NODE_ENV:-
|
|
21
|
-
"typecheck": "vue-tsc --
|
|
22
|
-
"
|
|
23
|
-
"bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
19
|
+
"build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
20
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
21
|
+
"typecheck": "vue-tsc --project tsconfig.json",
|
|
22
|
+
"bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
24
23
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@prosopo/procaptcha-wrapper": "2.6.
|
|
28
|
-
"@prosopo/config": "3.1.
|
|
29
|
-
"@prosopo/types": "3.0.5",
|
|
26
|
+
"@prosopo/procaptcha-wrapper": "2.6.29",
|
|
27
|
+
"@prosopo/config": "3.1.20",
|
|
30
28
|
"vue": "3.5.13"
|
|
31
29
|
},
|
|
32
30
|
"devDependencies": {
|
|
33
|
-
"@prosopo/procaptcha-integration-build-config": "1.1.
|
|
31
|
+
"@prosopo/procaptcha-integration-build-config": "1.1.21",
|
|
32
|
+
"@types/node": "22.10.2",
|
|
34
33
|
"@vitejs/plugin-vue": "5.2.3",
|
|
35
34
|
"del-cli": "6.0.0",
|
|
36
35
|
"vue-tsc": "3.0.1"
|