@runtypelabs/persona 3.20.0 → 3.21.1

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 CHANGED
@@ -1400,7 +1400,13 @@ The AI responds with JSON like:
1400
1400
  }
1401
1401
  ```
1402
1402
 
1403
- See `examples/embedded-app/dynamic-form.html` for a full working example.
1403
+ **Demos and reference:**
1404
+
1405
+ - [`examples/embedded-app/dynamic-form.html`](../../examples/embedded-app/dynamic-form.html) — primary demo with three layout variants (Compact / Spacious / Branded) showing how `formStyles` scales between visual languages.
1406
+ - [`examples/embedded-app/dynamic-form-fields.html`](../../examples/embedded-app/dynamic-form-fields.html) — every field type, layout width, helper-text, required marking, and sensitive-masking pattern in one page.
1407
+ - [`docs/DYNAMIC-FORMS.md`](./docs/DYNAMIC-FORMS.md) — full reference: field schema, `formStyles` tokens, layout patterns, recipes, and how to extend the example component (new field types, sections, conditional fields).
1408
+
1409
+ The shipped `DynamicForm` is an **example** in [`examples/embedded-app/src/components.ts`](../../examples/embedded-app/src/components.ts) — copy it into your app and customize. It supports text/email/tel/url/number/date/time/textarea, half-width pairs, auto-grow textareas, required-asterisk marking, inline validation, a success recap card with sensitive-field masking, and edit-after-submit. See [DYNAMIC-FORMS.md](./docs/DYNAMIC-FORMS.md) for the full surface area.
1404
1410
 
1405
1411
  ### Directive postprocessor (Deprecated)
1406
1412
 
@@ -1,4 +1,4 @@
1
- import { S as StreamAnimationPlugin } from './types-cwY5HaFD.cjs';
1
+ import { S as StreamAnimationPlugin } from './types-CWPIj66R.cjs';
2
2
 
3
3
  declare const glyphCycle: StreamAnimationPlugin;
4
4
 
@@ -1,4 +1,4 @@
1
- import { S as StreamAnimationPlugin } from './types-cwY5HaFD.js';
1
+ import { S as StreamAnimationPlugin } from './types-CWPIj66R.js';
2
2
 
3
3
  declare const glyphCycle: StreamAnimationPlugin;
4
4
 
@@ -25,10 +25,28 @@ type FileContentPart = {
25
25
  mimeType: string;
26
26
  filename: string;
27
27
  };
28
+ /**
29
+ * Audio content part for multi-modal messages
30
+ * Supports base64 data URIs or URLs
31
+ */
32
+ type AudioContentPart = {
33
+ type: 'audio';
34
+ audio: string;
35
+ mimeType?: string;
36
+ };
37
+ /**
38
+ * Video content part for multi-modal messages
39
+ * Supports base64 data URIs or URLs
40
+ */
41
+ type VideoContentPart = {
42
+ type: 'video';
43
+ video: string;
44
+ mimeType?: string;
45
+ };
28
46
  /**
29
47
  * Union type for all content part types
30
48
  */
31
- type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
49
+ type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
32
50
  /**
33
51
  * Metadata attached to messages created during agent execution.
34
52
  */
@@ -25,10 +25,28 @@ type FileContentPart = {
25
25
  mimeType: string;
26
26
  filename: string;
27
27
  };
28
+ /**
29
+ * Audio content part for multi-modal messages
30
+ * Supports base64 data URIs or URLs
31
+ */
32
+ type AudioContentPart = {
33
+ type: 'audio';
34
+ audio: string;
35
+ mimeType?: string;
36
+ };
37
+ /**
38
+ * Video content part for multi-modal messages
39
+ * Supports base64 data URIs or URLs
40
+ */
41
+ type VideoContentPart = {
42
+ type: 'video';
43
+ video: string;
44
+ mimeType?: string;
45
+ };
28
46
  /**
29
47
  * Union type for all content part types
30
48
  */
31
- type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
49
+ type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
32
50
  /**
33
51
  * Metadata attached to messages created during agent execution.
34
52
  */
@@ -1,4 +1,4 @@
1
- import { S as StreamAnimationPlugin } from './types-cwY5HaFD.cjs';
1
+ import { S as StreamAnimationPlugin } from './types-CWPIj66R.cjs';
2
2
 
3
3
  declare const wipe: StreamAnimationPlugin;
4
4
 
@@ -1,4 +1,4 @@
1
- import { S as StreamAnimationPlugin } from './types-cwY5HaFD.js';
1
+ import { S as StreamAnimationPlugin } from './types-CWPIj66R.js';
2
2
 
3
3
  declare const wipe: StreamAnimationPlugin;
4
4