From 86bb6ef5bbb33a94d152963a8cefc64ea638457d Mon Sep 17 00:00:00 2001 From: Sergiu Danalachi Date: Mon, 15 Apr 2024 19:13:29 +0300 Subject: [PATCH] fix: doc --- README.md | 7 ++++--- examples/cdn/angularjs.html | 2 +- examples/cdn/package.json | 2 +- examples/cdn/preact.html | 2 +- examples/cdn/react.html | 4 ++-- examples/cdn/vanilla.html | 2 +- examples/cdn/vue.html | 2 +- package.json | 2 +- pnpm-lock.yaml | 4 ++-- 9 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 292dde9..3017911 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ mainstream web frameworks such as: React, Preact, Vue.js, Angular, Stencil.js, e 1. Import once in application (`main.js`). Ignore the custom element. ```js - import "vanilla-hcaptcha"; + import "@hcaptcha/vanilla-hcaptcha"; Vue.config.ignoredElements = [ "h-captcha" @@ -102,7 +102,7 @@ mainstream web frameworks such as: React, Preact, Vue.js, Angular, Stencil.js, e 1. Import once in application (`index.js`). ```js - import 'vanilla-hcaptcha'; + import '@hcaptcha/vanilla-hcaptcha'; ``` 2. Add event handler after mount @@ -129,7 +129,7 @@ mainstream web frameworks such as: React, Preact, Vue.js, Angular, Stencil.js, e 1. Import once in application (`main.ts`). ```js - import 'vanilla-hcaptcha'; + import '@hcaptcha/vanilla-hcaptcha'; ``` 2. Add [`CUSTOM_ELEMENTS_SCHEMA`](https://angular.io/api/core/CUSTOM_ELEMENTS_SCHEMA) to `@NgModule.schemas` @@ -225,6 +225,7 @@ If you would like to programmatically call the `render()` method, you can set `a ### API Attributes These attributes are optional. +These attributes are used at web component creation time and thus, cannot be dynamic. | Attribute | Values/Type | Default | Description | |-------------------|----------------------------|---------|--------------------------------------------------------------------------------------------------------------------| diff --git a/examples/cdn/angularjs.html b/examples/cdn/angularjs.html index a3e7db1..e0ac628 100644 --- a/examples/cdn/angularjs.html +++ b/examples/cdn/angularjs.html @@ -5,7 +5,7 @@ - + - + diff --git a/examples/cdn/react.html b/examples/cdn/react.html index 33c39ec..8c17568 100644 --- a/examples/cdn/react.html +++ b/examples/cdn/react.html @@ -6,8 +6,8 @@ - - + + diff --git a/examples/cdn/vanilla.html b/examples/cdn/vanilla.html index 4fbccc2..71a9e8d 100644 --- a/examples/cdn/vanilla.html +++ b/examples/cdn/vanilla.html @@ -9,7 +9,7 @@
Open the console!
- + - +
diff --git a/package.json b/package.json index 00bbfbf..3b37c4b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vanilla-hcaptcha", "description": "Vanilla Web Component for hCaptcha. 0 dependencies. <1kb gzipped.", - "version": "1.0.2", + "version": "1.0.3", "author": { "name": "hCaptcha ", "url": "https://www.hcaptcha.com" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 132c7a4..fccf0ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,9 +14,9 @@ importers: examples/cdn: dependencies: - vanilla-hcaptcha: + '@hcaptcha/vanilla-hcaptcha': specifier: 1.0.2 - version: link:../.. + version: link:../../packages/vanilla-hcaptcha packages/vanilla-hcaptcha: devDependencies: