@atscript/vue-aooth 0.1.75 → 0.1.77
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/README.md +35 -0
- package/package.json +9 -9
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://ui.atscript.dev" target="_blank" rel="noopener">
|
|
3
|
+
<img src="https://ui.atscript.dev/logo.svg" alt="Atscript UI" height="96" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
# @atscript/vue-aooth
|
|
8
|
+
|
|
9
|
+
📚 **Documentation:** [ui.atscript.dev](https://ui.atscript.dev/api/vue-aooth)
|
|
10
|
+
|
|
11
|
+
Custom Vue 3 form-field components for [Aooth](https://aooth.moost.org)-driven consent collection and password-policy display. Drops into `<AsForm :components>` from [`@atscript/vue-form`](../vue-form).
|
|
12
|
+
|
|
13
|
+
Part of the [atscript-ui](https://github.com/moostjs/atscript-ui) monorepo.
|
|
14
|
+
|
|
15
|
+
## What it provides
|
|
16
|
+
|
|
17
|
+
- `AsConsentArray` — multi-consent checkbox group bound to a `string[]`. Items arrive via `@ui.form.fn.attr` as `{ id, text, required? }`. Markdown `[label](url)` links in consent text are sanitized to `http(s)://` / `mailto:` only.
|
|
18
|
+
- `AsPasswordRules` — display-only readout of policy fulfilment. Each `{ rule, description? }` rule string is evaluated through `compileFieldFn` from `@atscript/ui-fns` against the live password.
|
|
19
|
+
- Both implement the `TAsComponentProps` contract from `@atscript/vue-form` — wire via `<AsForm :components>` and `@ui.form.component`.
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
pnpm add @atscript/vue-aooth
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Peer requirements: `vue@^3`, `@atscript/vue-form`, `@atscript/ui-fns`, `@atscript/ui-styles`.
|
|
28
|
+
|
|
29
|
+
## Why a separate package
|
|
30
|
+
|
|
31
|
+
These components are Aooth-specific UX. Shipping them inside `@atscript/vue-form` would force consent chrome and password-rule machinery on every consumer who doesn't run auth flows. Apps that do — typically alongside [`@atscript/vue-wf`](../vue-wf) — pull this package in on top.
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT © Artem Maltsev
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-aooth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.77",
|
|
4
4
|
"description": "Custom form components for the Aooth auth system, built on @atscript/vue-form",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aooth",
|
|
@@ -50,27 +50,27 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@atscript/
|
|
54
|
-
"@atscript/
|
|
53
|
+
"@atscript/ui": "^0.1.77",
|
|
54
|
+
"@atscript/vue-form": "^0.1.77"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@atscript/core": "^0.1.
|
|
58
|
-
"@atscript/typescript": "^0.1.
|
|
57
|
+
"@atscript/core": "^0.1.63",
|
|
58
|
+
"@atscript/typescript": "^0.1.63",
|
|
59
59
|
"@tsdown/css": "^0.21.4",
|
|
60
60
|
"@vitejs/plugin-vue": "^6",
|
|
61
61
|
"@vue/test-utils": "^2",
|
|
62
62
|
"happy-dom": "^18",
|
|
63
|
-
"unplugin-atscript": "^0.1.
|
|
63
|
+
"unplugin-atscript": "^0.1.63",
|
|
64
64
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
65
65
|
"vue": "^3",
|
|
66
66
|
"vue-tsc": "~3.2.9",
|
|
67
67
|
"vunor": "^0.2",
|
|
68
|
-
"@atscript/ui-fns": "^0.1.
|
|
68
|
+
"@atscript/ui-fns": "^0.1.77"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"vue": "^3",
|
|
72
|
-
"@atscript/ui-fns": "^0.1.
|
|
73
|
-
"@atscript/vue-form": "^0.1.
|
|
72
|
+
"@atscript/ui-fns": "^0.1.77",
|
|
73
|
+
"@atscript/vue-form": "^0.1.77"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "node ../../scripts/gen-exports.mjs && vp pack",
|