Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Dec 5, 2023
1 parent 156d3de commit bf6f03f
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 81 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ ALTCHA widget is distributed as a "Web Component" and [supports all modern brows

CDN: https://cdn.jsdelivr.net/gh/altcha-org/altcha@main/dist/altcha.min.js

### 2. Use `<altcha-box>` tag in your forms
### 2. Use `<altcha-widget>` tag in your forms

```html
<form>
<altcha-box
<altcha-widget
challengeurl="https://..."
></altcha-box>
></altcha-widget>
</form>
```

See the [configuration](#configuration) below or visit the [website integration documentation](https://altcha.org/docs/website-integration).

### 3. Integrate ALCTHA with your server
### 3. Integrate ALTCHA with your server

See [server documentation](https://altcha.org/docs/server-integration) for more details.

Expand Down
2 changes: 1 addition & 1 deletion dist/altcha.iife.js

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions dist/altcha.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/altcha.umd.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

<form action="/submit" method="post">

<altcha-box
<altcha-widget
id="altcha"
challengeurl=""
debug
test
></altcha-box>
></altcha-widget>

<div class="buttons">
<button type="submit">Submit</button>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "altcha",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"author": {
"name": "Daniel Regeci; BAU Software s.r.o."
"name": "Daniel Regeci"
},
"homepage": "https://github.com/altcha-org/altchajs",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/Altcha.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<svelte:options customElement={{
tag: 'altcha-box',
tag: 'altcha-widget',
shadow: 'none',
}} />

Expand Down Expand Up @@ -42,7 +42,7 @@
waitAlert: 'Verifying... please wait.',
...parsedStrings,
};
$: dispatch('statechange', { state });
$: dispatch('statechange', { payload, state });
onDestroy(() => {
if (elForm) {
Expand Down

0 comments on commit bf6f03f

Please sign in to comment.