@prosopo/vue-procaptcha-wrapper 1.1.35 → 1.1.36

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @prosopo/vue-procaptcha-wrapper
2
2
 
3
+ ## 1.1.36
4
+ ### Patch Changes
5
+
6
+ - 8ce9205: Change engine requirements
7
+ - b6e98b2: Run npm audit
8
+ - Updated dependencies [8ce9205]
9
+ - Updated dependencies [df79c03]
10
+ - Updated dependencies [b6e98b2]
11
+ - @prosopo/procaptcha-wrapper@2.6.38
12
+ - @prosopo/config@3.1.22
13
+
3
14
  ## 1.1.35
4
15
  ### Patch Changes
5
16
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProcaptchaLanguages, ProcaptchaRenderOptions, ProcaptchaType } from '@prosopo/procaptcha-wrapper';
2
- import { default as ProcaptchaComponent } from './procaptchaComponent.vue';
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
- import { defineComponent as a, ref as o, onMounted as l, onUpdated as p, createElementBlock as i, openBlock as s, mergeProps as u } from "vue";
2
- import { renderProcaptcha as m } from "@prosopo/procaptcha-wrapper";
3
- const h = /* @__PURE__ */ a({
4
- inheritAttrs: !1,
5
- __name: "procaptchaComponent",
6
- props: {
7
- siteKey: {},
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
@@ -1,13 +1,11 @@
1
- import { HTMLAttributes } from 'vue';
2
- import { ProcaptchaRenderOptions } from '@prosopo/procaptcha-wrapper';
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('vue').DefineComponent<ProcaptchaComponentProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProcaptchaComponentProperties> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
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;;;;AAmEF,wBAOG"}
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"}
@@ -1,11 +1,47 @@
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
- };
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/vue-procaptcha-wrapper",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=v20.0.0",
@@ -23,12 +23,12 @@
23
23
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
24
24
  },
25
25
  "dependencies": {
26
- "@prosopo/procaptcha-wrapper": "2.6.37",
27
- "@prosopo/config": "3.1.21",
26
+ "@prosopo/procaptcha-wrapper": "2.6.38",
27
+ "@prosopo/config": "3.1.22",
28
28
  "vue": "3.5.13"
29
29
  },
30
30
  "devDependencies": {
31
- "@prosopo/procaptcha-integration-build-config": "1.1.22",
31
+ "@prosopo/procaptcha-integration-build-config": "1.1.23",
32
32
  "@types/node": "22.10.2",
33
33
  "@vitejs/plugin-vue": "5.2.3",
34
34
  "del-cli": "6.0.0",
@@ -1,10 +0,0 @@
1
- const _export_sfc = (sfc, props) => {
2
- const target = sfc.__vccOpts || sfc;
3
- for (const [key, val] of props) {
4
- target[key] = val;
5
- }
6
- return target;
7
- };
8
- export {
9
- _export_sfc as default
10
- };