@atscript/vue-aooth 0.1.97 → 0.1.99

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.
@@ -1,25 +1,11 @@
1
+ import { t as AsConsentArrayItem } from "./types-DJq1YGmS.cjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-consent-array.vue.d.ts
5
- /**
6
- * Single pending consent descriptor — fed via `@ui.form.attr` / `@ui.form.fn.attr`
7
- * on the consumer's `.as` schema.
8
- *
9
- * - `id` — value committed to the bound `string[]` when checked.
10
- * - `text` — checkbox label.
11
- * - `required` — non-empty string ⇒ mandatory consent; the string IS the
12
- * surfaced error message. Empty/undefined ⇒ optional.
13
- */
14
- interface AsConsentArrayItem {
15
- id: string;
16
- text: string;
17
- required?: string;
18
- }
19
6
  type __VLS_Props = TAsComponentProps<string[]> & {
20
7
  pendingConsents?: AsConsentArrayItem[];
21
8
  };
22
9
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
23
10
  declare const _default: typeof __VLS_export;
24
- //#endregion
25
- export { AsConsentArrayItem, _default as default };
11
+ export = _default;
@@ -1,25 +1,12 @@
1
+ import { t as AsConsentArrayItem } from "./types-DFuf3Chp.mjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-consent-array.vue.d.ts
5
- /**
6
- * Single pending consent descriptor — fed via `@ui.form.attr` / `@ui.form.fn.attr`
7
- * on the consumer's `.as` schema.
8
- *
9
- * - `id` — value committed to the bound `string[]` when checked.
10
- * - `text` — checkbox label.
11
- * - `required` — non-empty string ⇒ mandatory consent; the string IS the
12
- * surfaced error message. Empty/undefined ⇒ optional.
13
- */
14
- interface AsConsentArrayItem {
15
- id: string;
16
- text: string;
17
- required?: string;
18
- }
19
6
  type __VLS_Props = TAsComponentProps<string[]> & {
20
7
  pendingConsents?: AsConsentArrayItem[];
21
8
  };
22
9
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
23
10
  declare const _default: typeof __VLS_export;
24
11
  //#endregion
25
- export { AsConsentArrayItem, _default as default };
12
+ export { _default as default };
@@ -1,27 +1,12 @@
1
+ import { n as AsPasswordRulesPolicy } from "./types-DJq1YGmS.cjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-password-rules.vue.d.ts
5
- /**
6
- * One password-policy descriptor as sent by the aooth backend.
7
- *
8
- * - `rule` — serialized function literal (e.g. `"(p) => p.length >= 8"`).
9
- * Compiled + cached via `compileFieldFn` from `@atscript/ui-fns`, which
10
- * shares the same FNPool already used for `@ui.form.fn.*` annotations.
11
- * - `description` — plain label shown to the user.
12
- * - `errorMessage` — backend-supplied wording reserved for future
13
- * "show on submit failure" surfacing; not rendered today.
14
- */
15
- interface AsPasswordRulesPolicy {
16
- rule: string;
17
- description?: string;
18
- errorMessage?: string;
19
- }
20
6
  type __VLS_Props = TAsComponentProps & {
21
7
  policies?: AsPasswordRulesPolicy[];
22
8
  password?: string;
23
9
  };
24
10
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
25
11
  declare const _default: typeof __VLS_export;
26
- //#endregion
27
- export { AsPasswordRulesPolicy, _default as default };
12
+ export = _default;
@@ -1,22 +1,8 @@
1
+ import { n as AsPasswordRulesPolicy } from "./types-DFuf3Chp.mjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-password-rules.vue.d.ts
5
- /**
6
- * One password-policy descriptor as sent by the aooth backend.
7
- *
8
- * - `rule` — serialized function literal (e.g. `"(p) => p.length >= 8"`).
9
- * Compiled + cached via `compileFieldFn` from `@atscript/ui-fns`, which
10
- * shares the same FNPool already used for `@ui.form.fn.*` annotations.
11
- * - `description` — plain label shown to the user.
12
- * - `errorMessage` — backend-supplied wording reserved for future
13
- * "show on submit failure" surfacing; not rendered today.
14
- */
15
- interface AsPasswordRulesPolicy {
16
- rule: string;
17
- description?: string;
18
- errorMessage?: string;
19
- }
20
6
  type __VLS_Props = TAsComponentProps & {
21
7
  policies?: AsPasswordRulesPolicy[];
22
8
  password?: string;
@@ -24,4 +10,4 @@ type __VLS_Props = TAsComponentProps & {
24
10
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
25
11
  declare const _default: typeof __VLS_export;
26
12
  //#endregion
27
- export { AsPasswordRulesPolicy, _default as default };
13
+ export { _default as default };
@@ -1,31 +1,8 @@
1
+ import { r as AsSsoProvider } from "./types-DJq1YGmS.cjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-sso-providers.vue.d.ts
5
- /**
6
- * Single SSO provider descriptor — fed via `@ui.form.attr` /
7
- * `@ui.form.fn.attr` on the consumer's `.as` schema (the aooth backend
8
- * supplies the resolved list at runtime).
9
- *
10
- * - `id` — committed to the bound model (`model.value = id`) on click and
11
- * carried by the fired form action; identifies which provider the
12
- * workflow should redirect to.
13
- * - `text` — rendered VERBATIM. The backend owns the full display string
14
- * (e.g. "Continue with Google" for a main-stack button, "Discord" for a
15
- * secondary chip). We never compose a "Continue with {name}" prefix.
16
- * - `icon` — optional CSS class painting the brand glyph (e.g.
17
- * `i-logos-google-icon`). Applied as-is; the consumer owns the safelist /
18
- * preset coverage, same contract as `prefixIcon`.
19
- * - `secondary` — `true` ⇒ renders as a compact chip below the "or" divider;
20
- * omitted/false ⇒ renders as a full-width button in the main stack (the
21
- * default).
22
- */
23
- interface AsSsoProvider {
24
- id: string;
25
- text: string;
26
- icon?: string;
27
- secondary?: boolean;
28
- }
29
6
  type __VLS_Props = TAsComponentProps<string | undefined> & {
30
7
  providers?: AsSsoProvider[];
31
8
  };
@@ -35,5 +12,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
12
  onAction?: ((name: string) => any) | undefined;
36
13
  }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
37
14
  declare const _default: typeof __VLS_export;
38
- //#endregion
39
- export { AsSsoProvider, _default as default };
15
+ export = _default;
@@ -1,31 +1,8 @@
1
+ import { r as AsSsoProvider } from "./types-DFuf3Chp.mjs";
1
2
  import * as vue from "vue";
2
3
  import { TAsComponentProps } from "@atscript/vue-form";
3
4
 
4
5
  //#region src/components/as-sso-providers.vue.d.ts
5
- /**
6
- * Single SSO provider descriptor — fed via `@ui.form.attr` /
7
- * `@ui.form.fn.attr` on the consumer's `.as` schema (the aooth backend
8
- * supplies the resolved list at runtime).
9
- *
10
- * - `id` — committed to the bound model (`model.value = id`) on click and
11
- * carried by the fired form action; identifies which provider the
12
- * workflow should redirect to.
13
- * - `text` — rendered VERBATIM. The backend owns the full display string
14
- * (e.g. "Continue with Google" for a main-stack button, "Discord" for a
15
- * secondary chip). We never compose a "Continue with {name}" prefix.
16
- * - `icon` — optional CSS class painting the brand glyph (e.g.
17
- * `i-logos-google-icon`). Applied as-is; the consumer owns the safelist /
18
- * preset coverage, same contract as `prefixIcon`.
19
- * - `secondary` — `true` ⇒ renders as a compact chip below the "or" divider;
20
- * omitted/false ⇒ renders as a full-width button in the main stack (the
21
- * default).
22
- */
23
- interface AsSsoProvider {
24
- id: string;
25
- text: string;
26
- icon?: string;
27
- secondary?: boolean;
28
- }
29
6
  type __VLS_Props = TAsComponentProps<string | undefined> & {
30
7
  providers?: AsSsoProvider[];
31
8
  };
@@ -36,4 +13,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
36
13
  }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
37
14
  declare const _default: typeof __VLS_export;
38
15
  //#endregion
39
- export { AsSsoProvider, _default as default };
16
+ export { _default as default };
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
+ import { n as AsPasswordRulesPolicy, r as AsSsoProvider, t as AsConsentArrayItem } from "./types-DJq1YGmS.cjs";
1
2
  import _default from "./as-consent-array.cjs";
2
3
  import _default$1 from "./as-copy.cjs";
3
4
  import _default$2 from "./as-password-rules.cjs";
4
5
  import _default$3 from "./as-qr-code.cjs";
5
6
  import _default$4 from "./as-sso-providers.cjs";
6
- export { _default as AsConsentArray, _default$1 as AsCopy, _default$2 as AsPasswordRules, _default$3 as AsQrCode, _default$4 as AsSsoProviders };
7
+ export { _default as AsConsentArray, type AsConsentArrayItem, _default$1 as AsCopy, _default$2 as AsPasswordRules, type AsPasswordRulesPolicy, _default$3 as AsQrCode, type AsSsoProvider, _default$4 as AsSsoProviders };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
+ import { n as AsPasswordRulesPolicy, r as AsSsoProvider, t as AsConsentArrayItem } from "./types-DFuf3Chp.mjs";
1
2
  import _default from "./as-consent-array.mjs";
2
3
  import _default$1 from "./as-copy.mjs";
3
4
  import _default$2 from "./as-password-rules.mjs";
4
5
  import _default$3 from "./as-qr-code.mjs";
5
6
  import _default$4 from "./as-sso-providers.mjs";
6
- export { _default as AsConsentArray, _default$1 as AsCopy, _default$2 as AsPasswordRules, _default$3 as AsQrCode, _default$4 as AsSsoProviders };
7
+ export { _default as AsConsentArray, type AsConsentArrayItem, _default$1 as AsCopy, _default$2 as AsPasswordRules, type AsPasswordRulesPolicy, _default$3 as AsQrCode, type AsSsoProvider, _default$4 as AsSsoProviders };
@@ -0,0 +1,56 @@
1
+ //#region src/types.d.ts
2
+ /**
3
+ * Single pending consent descriptor — fed via `@ui.form.attr` / `@ui.form.fn.attr`
4
+ * on the consumer's `.as` schema.
5
+ *
6
+ * - `id` — value committed to the bound `string[]` when checked.
7
+ * - `text` — checkbox label.
8
+ * - `required` — non-empty string ⇒ mandatory consent; the string IS the
9
+ * surfaced error message. Empty/undefined ⇒ optional.
10
+ */
11
+ interface AsConsentArrayItem {
12
+ id: string;
13
+ text: string;
14
+ required?: string;
15
+ }
16
+ /**
17
+ * One password-policy descriptor as sent by the aooth backend.
18
+ *
19
+ * - `rule` — serialized function literal (e.g. `"(p) => p.length >= 8"`).
20
+ * Compiled + cached via `compileFieldFn` from `@atscript/ui-fns`, which
21
+ * shares the same FNPool already used for `@ui.form.fn.*` annotations.
22
+ * - `description` — plain label shown to the user.
23
+ * - `errorMessage` — backend-supplied wording reserved for future
24
+ * "show on submit failure" surfacing; not rendered today.
25
+ */
26
+ interface AsPasswordRulesPolicy {
27
+ rule: string;
28
+ description?: string;
29
+ errorMessage?: string;
30
+ }
31
+ /**
32
+ * Single SSO provider descriptor — fed via `@ui.form.attr` /
33
+ * `@ui.form.fn.attr` on the consumer's `.as` schema (the aooth backend
34
+ * supplies the resolved list at runtime).
35
+ *
36
+ * - `id` — committed to the bound model (`model.value = id`) on click and
37
+ * carried by the fired form action; identifies which provider the
38
+ * workflow should redirect to.
39
+ * - `text` — rendered VERBATIM. The backend owns the full display string
40
+ * (e.g. "Continue with Google" for a main-stack button, "Discord" for a
41
+ * secondary chip). We never compose a "Continue with {name}" prefix.
42
+ * - `icon` — optional CSS class painting the brand glyph (e.g.
43
+ * `i-logos-google-icon`). Applied as-is; the consumer owns the safelist /
44
+ * preset coverage, same contract as `prefixIcon`.
45
+ * - `secondary` — `true` ⇒ renders as a compact chip below the "or" divider;
46
+ * omitted/false ⇒ renders as a full-width button in the main stack (the
47
+ * default).
48
+ */
49
+ interface AsSsoProvider {
50
+ id: string;
51
+ text: string;
52
+ icon?: string;
53
+ secondary?: boolean;
54
+ }
55
+ //#endregion
56
+ export { AsPasswordRulesPolicy as n, AsSsoProvider as r, AsConsentArrayItem as t };
@@ -0,0 +1,56 @@
1
+ //#region src/types.d.ts
2
+ /**
3
+ * Single pending consent descriptor — fed via `@ui.form.attr` / `@ui.form.fn.attr`
4
+ * on the consumer's `.as` schema.
5
+ *
6
+ * - `id` — value committed to the bound `string[]` when checked.
7
+ * - `text` — checkbox label.
8
+ * - `required` — non-empty string ⇒ mandatory consent; the string IS the
9
+ * surfaced error message. Empty/undefined ⇒ optional.
10
+ */
11
+ interface AsConsentArrayItem {
12
+ id: string;
13
+ text: string;
14
+ required?: string;
15
+ }
16
+ /**
17
+ * One password-policy descriptor as sent by the aooth backend.
18
+ *
19
+ * - `rule` — serialized function literal (e.g. `"(p) => p.length >= 8"`).
20
+ * Compiled + cached via `compileFieldFn` from `@atscript/ui-fns`, which
21
+ * shares the same FNPool already used for `@ui.form.fn.*` annotations.
22
+ * - `description` — plain label shown to the user.
23
+ * - `errorMessage` — backend-supplied wording reserved for future
24
+ * "show on submit failure" surfacing; not rendered today.
25
+ */
26
+ interface AsPasswordRulesPolicy {
27
+ rule: string;
28
+ description?: string;
29
+ errorMessage?: string;
30
+ }
31
+ /**
32
+ * Single SSO provider descriptor — fed via `@ui.form.attr` /
33
+ * `@ui.form.fn.attr` on the consumer's `.as` schema (the aooth backend
34
+ * supplies the resolved list at runtime).
35
+ *
36
+ * - `id` — committed to the bound model (`model.value = id`) on click and
37
+ * carried by the fired form action; identifies which provider the
38
+ * workflow should redirect to.
39
+ * - `text` — rendered VERBATIM. The backend owns the full display string
40
+ * (e.g. "Continue with Google" for a main-stack button, "Discord" for a
41
+ * secondary chip). We never compose a "Continue with {name}" prefix.
42
+ * - `icon` — optional CSS class painting the brand glyph (e.g.
43
+ * `i-logos-google-icon`). Applied as-is; the consumer owns the safelist /
44
+ * preset coverage, same contract as `prefixIcon`.
45
+ * - `secondary` — `true` ⇒ renders as a compact chip below the "or" divider;
46
+ * omitted/false ⇒ renders as a full-width button in the main stack (the
47
+ * default).
48
+ */
49
+ interface AsSsoProvider {
50
+ id: string;
51
+ text: string;
52
+ icon?: string;
53
+ secondary?: boolean;
54
+ }
55
+ //#endregion
56
+ export { AsPasswordRulesPolicy as n, AsSsoProvider as r, AsConsentArrayItem as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-aooth",
3
- "version": "0.1.97",
3
+ "version": "0.1.99",
4
4
  "description": "Custom form components for the Aooth auth system, built on @atscript/vue-form",
5
5
  "keywords": [
6
6
  "aooth",
@@ -26,6 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "type": "module",
29
+ "sideEffects": false,
29
30
  "main": "dist/index.mjs",
30
31
  "types": "dist/index.d.mts",
31
32
  "exports": {
@@ -65,30 +66,30 @@
65
66
  "access": "public"
66
67
  },
67
68
  "dependencies": {
68
- "@atscript/ui": "^0.1.97",
69
- "@atscript/vue-form": "^0.1.97"
69
+ "@atscript/ui": "^0.1.99",
70
+ "@atscript/vue-form": "^0.1.99"
70
71
  },
71
72
  "devDependencies": {
72
- "@atscript/core": "^0.1.74",
73
- "@atscript/typescript": "^0.1.74",
73
+ "@atscript/core": "^0.1.76",
74
+ "@atscript/typescript": "^0.1.76",
74
75
  "@tsdown/css": "^0.21.4",
75
76
  "@types/qrcode": "^1.5.5",
76
77
  "@vitejs/plugin-vue": "^6",
77
78
  "@vue/test-utils": "^2",
78
79
  "happy-dom": "^18",
79
80
  "qrcode": "^1.5.4",
80
- "unplugin-atscript": "^0.1.74",
81
+ "unplugin-atscript": "^0.1.76",
81
82
  "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
82
83
  "vue": "^3",
83
84
  "vue-tsc": "~3.2.9",
84
85
  "vunor": "^0.2.1",
85
- "@atscript/ui-fns": "^0.1.97"
86
+ "@atscript/ui-fns": "^0.1.99"
86
87
  },
87
88
  "peerDependencies": {
88
89
  "qrcode": "^1.5.4",
89
90
  "vue": "^3",
90
- "@atscript/ui-fns": "^0.1.97",
91
- "@atscript/vue-form": "^0.1.97"
91
+ "@atscript/ui-fns": "^0.1.99",
92
+ "@atscript/vue-form": "^0.1.99"
92
93
  },
93
94
  "peerDependenciesMeta": {
94
95
  "qrcode": {