@8wave/ai-elements 0.119.0-beta.63 → 0.119.0-beta.64

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.
@@ -5,6 +5,13 @@ type __VLS_Props = {
5
5
  label?: string;
6
6
  placeholder?: string;
7
7
  readonly?: boolean;
8
+ /**
9
+ * Set by `VvFormField` with `invalidLabel` when the field fails
10
+ * its schema: the editor used to take neither, so a save refused
11
+ * for an empty answer said nothing.
12
+ */
13
+ invalid?: boolean;
14
+ invalidLabel?: string | string[];
8
15
  /** An md-editor-v3 language; the app's own locale by default. */
9
16
  language?: string;
10
17
  height?: string;
@@ -24,6 +31,8 @@ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, Compone
24
31
  }>, {
25
32
  label: string;
26
33
  readonly: boolean;
34
+ invalid: boolean;
35
+ invalidLabel: string | string[];
27
36
  modelValue: string;
28
37
  height: string;
29
38
  language: string;
@@ -87,10 +87,9 @@ export declare const AgentApiToolSchema: z.ZodObject<{
87
87
  }, z.core.$strip>;
88
88
  /**
89
89
  * Turns what is typed in the name field into the characters an API tool name
90
- * allows: accents dropped, camelCase split with a hyphen, lowercase, every run
91
- * of other characters a hyphen. Underscores and hyphens are kept, so a valid
92
- * name comes back unchanged: the field applies this on every update, including
93
- * the one the input emits when the dialog loads a stored tool.
90
+ * allows ({@link toIdentifierInput}). Underscores and hyphens are kept, so a
91
+ * valid name comes back unchanged: the field applies this on every update,
92
+ * including the one the input emits when the dialog loads a stored tool.
94
93
  */
95
94
  export declare function toApiToolName(value?: string): string;
96
95
  export declare const AgentApiToolCreateSchema: z.ZodObject<{
@@ -1,5 +1,13 @@
1
1
  import { HttpMethod } from './HttpMethod';
2
2
  import * as z from 'zod';
3
+ /**
4
+ * Turns what is typed in the slug field into the characters a slug allows
5
+ * ({@link toIdentifierInput}). Hyphens are kept as typed, so a valid slug
6
+ * comes back unchanged: the field applies this on every update, including the
7
+ * one the input emits when the page loads a stored endpoint, and `a--b` used
8
+ * to become `a-b` there.
9
+ */
10
+ export declare function toEndpointSlug(value?: string): string;
3
11
  /**
4
12
  * The badge modifier for an HTTP verb, which is always the neutral one.
5
13
  *
@@ -52,6 +52,15 @@ export declare const zodQs: {
52
52
  sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{ [k_1 in S | `-${S}`]: k_1; } extends infer T ? { [k in keyof T]: T[k]; } : never>>>;
53
53
  };
54
54
  };
55
+ /**
56
+ * What is typed in an identifier field, in the characters the identifier
57
+ * allows: accents dropped, camelCase split with a hyphen, lowercase, every run
58
+ * of other characters a hyphen. Hyphens, and underscores when
59
+ * `keepUnderscores` is set, stay as typed, so a valid identifier comes back
60
+ * unchanged: the fields apply this on every update, including the one the
61
+ * input emits when it loads a stored value.
62
+ */
63
+ export declare function toIdentifierInput(value: string | undefined, keepUnderscores: boolean): string;
55
64
  /**
56
65
  * A tool name without the namespace a model invented for it (Gemini's
57
66
  * `default_api:toolName`). One definition, because several readers must