@prosopo/vue-procaptcha-wrapper 1.1.7 → 1.1.9
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 +33 -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/procaptchaComponent.vue.js +11 -0
- package/dist/procaptchaComponent.vue2.js +54 -0
- package/package.json +8 -9
- package/project.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @prosopo/vue-procaptcha-wrapper
|
|
2
2
|
|
|
3
|
+
## 1.1.9
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 91d56e7: enable nx caching
|
|
7
|
+
- 828066d: remove empty test npm scripts, add missing npm test scripts
|
|
8
|
+
- 91bbe87: configure typecheck before bundle for vue packages
|
|
9
|
+
- 91bbe87: make typecheck script always recompile
|
|
10
|
+
- 346e092: NODE_ENV default to "development"
|
|
11
|
+
- 5d36e05: remove tsc --force
|
|
12
|
+
- Updated dependencies [91d56e7]
|
|
13
|
+
- Updated dependencies [828066d]
|
|
14
|
+
- Updated dependencies [df4e030]
|
|
15
|
+
- Updated dependencies [91bbe87]
|
|
16
|
+
- Updated dependencies [686c5f5]
|
|
17
|
+
- Updated dependencies [3ef4fd2]
|
|
18
|
+
- Updated dependencies [91bbe87]
|
|
19
|
+
- Updated dependencies [346e092]
|
|
20
|
+
- Updated dependencies [5d36e05]
|
|
21
|
+
- @prosopo/procaptcha-wrapper@2.6.11
|
|
22
|
+
- @prosopo/types@3.0.6
|
|
23
|
+
- @prosopo/config@3.1.3
|
|
24
|
+
|
|
25
|
+
## 1.1.8
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- eb71691: configure typecheck before bundle for vue packages
|
|
29
|
+
- eb71691: make typecheck script always recompile
|
|
30
|
+
- Updated dependencies [eb71691]
|
|
31
|
+
- Updated dependencies [eb71691]
|
|
32
|
+
- @prosopo/procaptcha-wrapper@2.6.10
|
|
33
|
+
- @prosopo/types@3.0.5
|
|
34
|
+
- @prosopo/config@3.1.2
|
|
35
|
+
|
|
3
36
|
## 1.1.7
|
|
4
37
|
### Patch Changes
|
|
5
38
|
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _sfc_main from "./procaptchaComponent.vue2.js";
|
|
2
|
+
import { useSSRContext } from "vue";
|
|
3
|
+
const _sfc_setup = _sfc_main.setup;
|
|
4
|
+
_sfc_main.setup = (props, ctx) => {
|
|
5
|
+
const ssrContext = useSSRContext();
|
|
6
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/procaptchaComponent.vue");
|
|
7
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
_sfc_main as default
|
|
11
|
+
};
|
|
@@ -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.9",
|
|
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:-
|
|
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
21
|
"typecheck": "vue-tsc --build --declaration --emitDeclarationOnly",
|
|
22
|
-
"
|
|
23
|
-
"bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
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.
|
|
26
|
+
"@prosopo/procaptcha-wrapper": "2.6.11",
|
|
27
|
+
"@prosopo/config": "3.1.3",
|
|
28
|
+
"@prosopo/types": "3.0.6",
|
|
30
29
|
"vue": "3.5.13"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"@prosopo/procaptcha-integration-build-config": "1.1.
|
|
32
|
+
"@prosopo/procaptcha-integration-build-config": "1.1.3",
|
|
34
33
|
"@vitejs/plugin-vue": "5.2.3",
|
|
35
34
|
"del-cli": "6.0.0",
|
|
36
35
|
"vue-tsc": "3.0.1"
|
package/project.json
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"targets": {
|
|
3
3
|
"build": {
|
|
4
|
-
"executor": "nx:run-script",
|
|
5
|
-
"options": {
|
|
6
|
-
"script": "build"
|
|
7
|
-
},
|
|
8
4
|
"dependsOn": ["^build", "^typecheck"]
|
|
9
5
|
},
|
|
10
6
|
"build:cjs": {
|
|
11
|
-
"executor": "nx:run-script",
|
|
12
|
-
"options": {
|
|
13
|
-
"script": "build"
|
|
14
|
-
},
|
|
15
7
|
"dependsOn": ["^build:cjs", "^typecheck"]
|
|
16
8
|
}
|
|
17
9
|
}
|