@trustcaptcha/trustcaptcha-frontend
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -5,7 +5,7 @@ 'use strict'; | ||
const index = require('./index-f7190aa4.js'); | ||
const index = require('./index-a02d17c0.js'); | ||
const appGlobals = require('./app-globals-3a1e7e63.js'); | ||
/* | ||
Stencil Client Patch Browser v4.12.4 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.13.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -12,0 +12,0 @@ const patchBrowser = () => { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const index = require('./index-f7190aa4.js'); | ||
const index = require('./index-a02d17c0.js'); | ||
const appGlobals = require('./app-globals-3a1e7e63.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -7,4 +7,4 @@ { | ||
"name": "@stencil/core", | ||
"version": "4.12.4", | ||
"typescriptVersion": "5.3.3" | ||
"version": "4.13.0", | ||
"typescriptVersion": "5.4.2" | ||
}, | ||
@@ -11,0 +11,0 @@ "collections": [], |
import { h, Host } from "@stencil/core"; | ||
import { CaptchaBox } from "./utils/captcha_box"; | ||
import { Status } from "./utils/js/Status"; | ||
import { getTranslation } from "./utils/locale"; | ||
import { CaptchaBox } from "./src/captcha_box"; | ||
import { Status } from "./src/status"; | ||
import { getTranslation } from "./locale"; | ||
export class TrustcaptchaComponent { | ||
@@ -63,3 +63,3 @@ constructor() { | ||
render() { | ||
return (h(Host, { key: 'f404d5d84fbc764f0d3241d801ab03dfba50d93b' }, h("div", { key: 'b20dd46363961013a853fbae8e1534517afdb741', class: { | ||
return (h(Host, { key: '488aaa403c878591613e0a30854630df1b705299' }, h("div", { key: '41386c1197a7872b89beb34da7f4399fa6f09dd4', class: { | ||
'px-2 py-2 border-2 rounded-md': true, | ||
@@ -72,3 +72,3 @@ 'bg-gray-50 border-gray-100': this.currentTheme == 'light' && (this.captchaBox.status === Status.START || this.captchaBox.status === Status.RUNNING), | ||
'bg-red-800 border-red-700': this.currentTheme == 'dark' && this.captchaBox.status === Status.FAILED | ||
} }, h("div", { key: '116550b669aeca1e01bbbb16476336fd1fa91c94', class: 'flex space-x-2' }, h("div", { key: '4814eec42d6f4913895fb549cbcb9c8c1d84048f', class: "flex justify-center items-center w-14 h-14" }, h("div", { key: 'ba8cf5d5c3061091ccaa0cd6e1c5e92fc25b5fe6', class: 'justify-center' }, this.captchaStatus == Status.START && | ||
} }, h("div", { key: 'cd53f870f3d9038ddab53eac9ce5c5d9cfdb786e', class: 'flex space-x-2' }, h("div", { key: 'b20829619f2aab0bc5c5b6956a8e92a8689417a5', class: "flex justify-center items-center w-14 h-14" }, h("div", { key: 'cc9b48c0f6615de019c6db56b77868a586837edb', class: 'justify-center' }, this.captchaStatus == Status.START && | ||
h("div", null, this.currentTheme == 'light' && | ||
@@ -79,7 +79,7 @@ h("div", null, h("svg", { version: "1.1", id: "Capa_1", xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 428.2 428.2" }, h("path", { class: "iconLight", d: "M393.8,110.2c-0.5-11.3-0.5-22-0.5-32.7c0-8.5-6.9-15.4-15.4-15.4c-64,0-112.6-18.4-153.1-57.9\n c-6.1-5.6-15.4-5.6-21.5,0c-40.4,39.4-89.1,57.8-153.1,57.9c-8.5,0-15.4,6.9-15.4,15.4c0,10.7,0,21.5-0.5,32.7\n c-2,107.5-5.1,255,174.6,316.9l5.1,1l5.1-1C398.4,365.2,395.8,218.2,393.8,110.2z M202.2,258.9c-0.2,0.2-0.5,0.4-0.7,0.7\n c-3,2.4-6.4,3.8-10.4,3.8h-0.5c-4.1,0-8.2-2-10.8-5.1l-39.5-43.8c-4.4-4.9-4-12.5,0.9-16.9l5.2-4.6c4.9-4.4,12.4-3.9,16.8,0.9\n l21.2,23.5c4.5,5,12.2,5.3,17.1,0.7l65.3-62.1c4.8-4.6,12.4-4.3,17,0.5l4.7,5c4.5,4.8,4.2,12.3-0.6,16.9L202.2,258.9z" }))), this.currentTheme == 'dark' && | ||
h("div", { class: 'text-green-500' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "48", height: "48" }, h("path", { "fill-rule": "evenodd", d: "M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z", "clip-rule": "evenodd" }))), this.captchaStatus == Status.FAILED && | ||
h("div", null, h("svg", { height: "48", version: "1.1", width: "48", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("g", { transform: "translate(0 -1028.4)" }, h("path", { d: "m22 12c0 5.523-4.477 10-10 10-5.5228 0-10-4.477-10-10 0-5.5228 4.4772-10 10-10 5.523 0 10 4.4772 10 10z", fill: "#c0392b", transform: "translate(0 1029.4)" }), h("path", { d: "m22 12c0 5.523-4.477 10-10 10-5.5228 0-10-4.477-10-10 0-5.5228 4.4772-10 10-10 5.523 0 10 4.4772 10 10z", fill: "#e74c3c", transform: "translate(0 1028.4)" }), h("path", { d: "m7.0503 1037.8 3.5357 3.6-3.5357 3.5 1.4142 1.4 3.5355-3.5 3.536 3.5 1.414-1.4-3.536-3.5 3.536-3.6-1.414-1.4-3.536 3.5-3.5355-3.5-1.4142 1.4z", fill: "#c0392b" }), h("path", { d: "m7.0503 1036.8 3.5357 3.6-3.5357 3.5 1.4142 1.4 3.5355-3.5 3.536 3.5 1.414-1.4-3.536-3.5 3.536-3.6-1.414-1.4-3.536 3.5-3.5355-3.5-1.4142 1.4z", fill: "#ecf0f1" })))))), h("div", { key: 'ad2e16cbac3974a6b1349ad5e49786f51f88d534', class: "grow" }, this.captchaStatus == Status.START && | ||
h("div", null, h("svg", { height: "48", version: "1.1", width: "48", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("g", { transform: "translate(0 -1028.4)" }, h("path", { d: "m22 12c0 5.523-4.477 10-10 10-5.5228 0-10-4.477-10-10 0-5.5228 4.4772-10 10-10 5.523 0 10 4.4772 10 10z", fill: "#c0392b", transform: "translate(0 1029.4)" }), h("path", { d: "m22 12c0 5.523-4.477 10-10 10-5.5228 0-10-4.477-10-10 0-5.5228 4.4772-10 10-10 5.523 0 10 4.4772 10 10z", fill: "#e74c3c", transform: "translate(0 1028.4)" }), h("path", { d: "m7.0503 1037.8 3.5357 3.6-3.5357 3.5 1.4142 1.4 3.5355-3.5 3.536 3.5 1.414-1.4-3.536-3.5 3.536-3.6-1.414-1.4-3.536 3.5-3.5355-3.5-1.4142 1.4z", fill: "#c0392b" }), h("path", { d: "m7.0503 1036.8 3.5357 3.6-3.5357 3.5 1.4142 1.4 3.5355-3.5 3.536 3.5 1.414-1.4-3.536-3.5 3.536-3.6-1.414-1.4-3.536 3.5-3.5355-3.5-1.4142 1.4z", fill: "#ecf0f1" })))))), h("div", { key: 'f38a653e37c2747e9e216efd7da0ad379a76c8bf', class: "grow" }, this.captchaStatus == Status.START && | ||
h("div", null, h("button", { type: "button", class: "w-full justify-center inline-flex items-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold bg-blue-500 text-white shadow-sm hover:bg-blue-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 transition duration-150 ease-in-out hover:scale-y-110", onClick: () => this.startVerification() }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "-ml-0.5 h-5 w-5" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59" })), this.translation.button.startVerification)), this.captchaStatus == Status.RUNNING && | ||
h("div", null, h("button", { type: "button", class: { 'w-full justify-center inline-flex items-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset': true, 'bg-gray-200 text-gray-900 ring-gray-200': this.currentTheme == 'light', 'bg-gray-700 text-gray-100 ring-gray-700': this.currentTheme == 'dark' }, disabled: true }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "-ml-0.5 h-5 w-5" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" })), this.translation.button.verificationInProgress)), this.captchaStatus == Status.DONE && | ||
h("div", null, h("button", { type: "button", class: { 'w-full justify-center inline-flex items-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset': true, 'bg-gray-200 text-gray-900 ring-gray-200': this.currentTheme == 'light', 'bg-gray-700 text-gray-100 ring-gray-700': this.currentTheme == 'dark' }, disabled: true }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", class: "-ml-0.5 h-5 w-5" }, h("path", { "fill-rule": "evenodd", d: "M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z", "clip-rule": "evenodd" })), this.translation.button.verificationCompleted)), this.captchaStatus == Status.FAILED && | ||
h("div", null, h("span", { class: "text-red-500 text-sm" }, this.failureText)), h("div", { key: 'a5797676fe2cca31ebb9af8d26d9d7821bdf62f3', class: 'flex flex-wrap justify-end space-x-2' }, h("div", { key: '51ab7b10c8531ce7507978165ee8d9766af4993c' }, h("a", { key: '984a8b67986a65e5cd1d18234956a7ac81286d1a', class: { 'text-xs leading-6 hover:text-blue-500 hover:underline': true, 'text-gray-600': this.currentTheme == 'light', 'text-gray-400': this.currentTheme == 'dark' }, href: `${this.companyWebsite}/en/legal/end-privacy-policy`, target: '_blank' }, this.translation.footer.endPrivacyPolicy)), h("div", { key: 'f98340cdcf3816a9f0e17ee5a162161368179a4e' }, h("a", { key: '4b8a7abef5ec31a25d6d3d6540f0d1365b73251d', class: 'text-xs leading-6 text-blue-500 hover:text-blue-500 hover:underline font-bold', href: this.trustcaptchaWebsite, target: '_blank' }, "Trustcaptcha")))))))); | ||
h("div", null, h("button", { type: "button", class: { 'w-full justify-center inline-flex items-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset cursor-default': true, 'bg-gray-200 text-gray-900 ring-gray-200': this.currentTheme == 'light', 'bg-gray-700 text-gray-100 ring-gray-700': this.currentTheme == 'dark' }, disabled: true }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "-ml-0.5 h-5 w-5" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" })), this.translation.button.verificationInProgress)), this.captchaStatus == Status.DONE && | ||
h("div", null, h("button", { type: "button", class: { 'w-full justify-center inline-flex items-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset cursor-default': true, 'bg-gray-200 text-gray-900 ring-gray-200': this.currentTheme == 'light', 'bg-gray-700 text-gray-100 ring-gray-700': this.currentTheme == 'dark' }, disabled: true }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", class: "-ml-0.5 h-5 w-5" }, h("path", { "fill-rule": "evenodd", d: "M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z", "clip-rule": "evenodd" })), this.translation.button.verificationCompleted)), this.captchaStatus == Status.FAILED && | ||
h("div", null, h("span", { class: "text-red-500 text-sm" }, this.failureText)), h("div", { key: 'ba6a92f88c8165cb465d0d7c431f245d4c885fb6', class: 'flex flex-wrap justify-end space-x-2' }, h("div", { key: '25f0f3a5236f3fde7b7dd4577ccb7d2356dce8cd' }, h("a", { key: '6398f82d61051b1b53cdd18315615258c524df8f', class: { 'text-xs leading-6 hover:text-blue-500 hover:underline': true, 'text-gray-600': this.currentTheme == 'light', 'text-gray-400': this.currentTheme == 'dark' }, href: `${this.companyWebsite}/en/legal/end-privacy-policy`, target: '_blank' }, this.translation.footer.endPrivacyPolicy)), h("div", { key: 'e2eac6e5feea91130ddf70bd741b27b3052cdef4' }, h("a", { key: 'ab58e4888653637fb3579c4b2f5cd90fc6fcc9f7', class: 'text-xs leading-6 text-blue-500 hover:text-blue-500 hover:underline font-bold', href: this.trustcaptchaWebsite, target: '_blank' }, "Trustcaptcha")))))))); | ||
} | ||
@@ -86,0 +86,0 @@ startVerification() { |
@@ -1,2 +0,2 @@ | ||
export const VERSION = '1.1.1'; | ||
export const VERSION = '1.2.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,7 +0,7 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-59bd269f.js'; | ||
export { s as setNonce } from './index-59bd269f.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-781dbb2d.js'; | ||
export { s as setNonce } from './index-781dbb2d.js'; | ||
import { g as globalScripts } from './app-globals-0f993ce5.js'; | ||
/* | ||
Stencil Client Patch Browser v4.12.4 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.13.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -8,0 +8,0 @@ const patchBrowser = () => { |
@@ -1,3 +0,3 @@ | ||
import { b as bootstrapLazy } from './index-59bd269f.js'; | ||
export { s as setNonce } from './index-59bd269f.js'; | ||
import { b as bootstrapLazy } from './index-781dbb2d.js'; | ||
export { s as setNonce } from './index-781dbb2d.js'; | ||
import { g as globalScripts } from './app-globals-0f993ce5.js'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{p as t,b as e}from"./p-c49ea893.js";export{s as setNonce}from"./p-c49ea893.js";import{g as a}from"./p-e1255160.js";const c=()=>{const e=import.meta.url;const a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return t(a)};c().then((async t=>{await a();return e([["p-3d8df9f5",[[1,"trustcaptcha-component",{sitekey:[1],companyWebsite:[1,"company-website"],trustcaptchaWebsite:[1,"trustcaptcha-website"],trustcaptchaApi:[1,"trustcaptcha-api"],language:[1],theme:[1],autostart:[1],tokenFieldName:[1,"token-field-name"],captchaStatus:[32],translation:[32],currentTheme:[32],reset:[64]},null,{language:["watchLanguageUpdate"],theme:["watchThemeUpdate"]}]]]],t)})); | ||
import{p as t,b as a}from"./p-8eb7a7fc.js";export{s as setNonce}from"./p-8eb7a7fc.js";import{g as e}from"./p-e1255160.js";const c=()=>{const a=import.meta.url;const e={};if(a!==""){e.resourcesUrl=new URL(".",a).href}return t(e)};c().then((async t=>{await e();return a([["p-0dbd86ba",[[1,"trustcaptcha-component",{sitekey:[1],companyWebsite:[1,"company-website"],trustcaptchaWebsite:[1,"trustcaptcha-website"],trustcaptchaApi:[1,"trustcaptcha-api"],language:[1],theme:[1],autostart:[1],tokenFieldName:[1,"token-field-name"],captchaStatus:[32],translation:[32],currentTheme:[32],reset:[64]},null,{language:["watchLanguageUpdate"],theme:["watchThemeUpdate"]}]]]],t)})); | ||
//# sourceMappingURL=frontendlibrary.esm.js.map |
import { EventEmitter } from '../../stencil-public-runtime'; | ||
import { CaptchaBox } from './utils/captcha_box'; | ||
import { Status } from './utils/js/Status'; | ||
import { CaptchaBox } from './src/captcha_box'; | ||
import { Status } from './src/status'; | ||
export declare class TrustcaptchaComponent { | ||
@@ -5,0 +5,0 @@ private hostElement; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.1.1"; | ||
export declare const VERSION = "1.2.0"; |
{ | ||
"name": "@trustcaptcha/trustcaptcha-frontend", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Frondend library for trustcaptcha", | ||
@@ -36,7 +36,7 @@ "keywords": [ | ||
"scripts": { | ||
"build": "stencil build --docs", | ||
"start": "stencil build --dev --watch --serve", | ||
"test": "stencil test --spec --e2e", | ||
"test.watch": "stencil test --spec --e2e --watchAll", | ||
"generate": "stencil generate" | ||
"build": "tsc ./src/pow-worker.ts && stencil build --docs", | ||
"start": "tsc ./src/pow-worker.ts && stencil build --dev --watch --serve", | ||
"test": "tsc ./src/pow-worker.ts && stencil test --spec --e2e", | ||
"test.watch": "tsc ./src/pow-worker.ts && stencil test --spec --e2e --watchAll", | ||
"generate": "tsc ./src/pow-worker.ts && stencil generate" | ||
}, | ||
@@ -47,3 +47,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@stencil/core": "^4.11.0" | ||
"@stencil/core": "^4.13.0" | ||
}, | ||
@@ -55,16 +55,16 @@ "devDependencies": { | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@stencil/angular-output-target": "^0.8.2", | ||
"@stencil/angular-output-target": "^0.8.4", | ||
"@stencil/postcss": "^2.1.0", | ||
"@stencil/react-output-target": "^0.5.3", | ||
"@stencil/vue-output-target": "^0.8.6", | ||
"@stencil/vue-output-target": "^0.8.7", | ||
"@types/jest": "^29.5.6", | ||
"@types/node": "^20.8.7", | ||
"autoprefixer": "^10.4.16", | ||
"cssnano": "^6.0.1", | ||
"@types/node": "^20.11.30", | ||
"autoprefixer": "^10.4.19", | ||
"cssnano": "^6.1.1", | ||
"jest": "^29.7.0", | ||
"jest-cli": "^29.7.0", | ||
"postcss-import": "^15.1.0", | ||
"postcss-import": "^16.1.0", | ||
"postcss-replace": "^2.0.1", | ||
"puppeteer": "^21.4.0", | ||
"rollup": "^4.9.0", | ||
"puppeteer": "^22.6.0", | ||
"rollup": "^4.13.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
@@ -74,4 +74,4 @@ "rollup-plugin-node-polyfills": "^0.2.1", | ||
"tailwindcss": "^3.3.3", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.4.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2178793
146
14032
Updated@stencil/core@^4.13.0