@visuno/angular 0.0.0-stage → 0.1.0
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/LICENSE +24 -0
- package/README.md +56 -2
- package/account-table/account-table.component.d.ts +72 -0
- package/action-log/action-log.component.d.ts +41 -0
- package/activity-heatmap/activity-heatmap.component.d.ts +67 -0
- package/agent-inbox/agent-inbox.component.d.ts +75 -0
- package/agent-lanes/agent-lanes.component.d.ts +152 -0
- package/agent-phases/agent-phases.component.d.ts +62 -0
- package/agent-run-timeline/agent-run-timeline.component.d.ts +113 -0
- package/agent-tree/agent-tree.component.d.ts +80 -0
- package/answer-action-bar/answer-action-bar.component.d.ts +110 -0
- package/artifact-card/artifact-card.component.d.ts +145 -0
- package/attachment-tray/attachment-tray.component.d.ts +84 -0
- package/badge/badge.component.d.ts +25 -0
- package/bar-chart/bar-chart.component.d.ts +87 -0
- package/browser-session/browser-session.component.d.ts +70 -0
- package/buttons/buttons.component.d.ts +63 -0
- package/card/card.component.d.ts +21 -0
- package/change-review/change-review.component.d.ts +97 -0
- package/citation-hover-card/citation-hover-card.component.d.ts +95 -0
- package/code-viewer/code-viewer.component.d.ts +86 -0
- package/composer/composer.component.d.ts +114 -0
- package/context-meter/context-meter.component.d.ts +60 -0
- package/core/icon.component.d.ts +10 -0
- package/core/reduced-motion.service.d.ts +15 -0
- package/decision-prompt/decision-prompt.component.d.ts +56 -0
- package/design-review/design-review.component.d.ts +108 -0
- package/design-tuner/design-tuner.component.d.ts +75 -0
- package/details-panel/details-panel.component.d.ts +150 -0
- package/donut-chart/donut-chart.component.d.ts +63 -0
- package/draft-review/draft-review.component.d.ts +128 -0
- package/error-recovery/error-recovery.component.d.ts +59 -0
- package/esm2022/account-table/account-table.component.mjs +399 -0
- package/esm2022/action-log/action-log.component.mjs +177 -0
- package/esm2022/activity-heatmap/activity-heatmap.component.mjs +285 -0
- package/esm2022/agent-inbox/agent-inbox.component.mjs +284 -0
- package/esm2022/agent-lanes/agent-lanes.component.mjs +600 -0
- package/esm2022/agent-phases/agent-phases.component.mjs +300 -0
- package/esm2022/agent-run-timeline/agent-run-timeline.component.mjs +412 -0
- package/esm2022/agent-tree/agent-tree.component.mjs +393 -0
- package/esm2022/answer-action-bar/answer-action-bar.component.mjs +636 -0
- package/esm2022/artifact-card/artifact-card.component.mjs +916 -0
- package/esm2022/attachment-tray/attachment-tray.component.mjs +402 -0
- package/esm2022/badge/badge.component.mjs +97 -0
- package/esm2022/bar-chart/bar-chart.component.mjs +300 -0
- package/esm2022/browser-session/browser-session.component.mjs +352 -0
- package/esm2022/buttons/buttons.component.mjs +215 -0
- package/esm2022/card/card.component.mjs +107 -0
- package/esm2022/change-review/change-review.component.mjs +398 -0
- package/esm2022/citation-hover-card/citation-hover-card.component.mjs +360 -0
- package/esm2022/code-viewer/code-viewer.component.mjs +291 -0
- package/esm2022/composer/composer.component.mjs +743 -0
- package/esm2022/context-meter/context-meter.component.mjs +275 -0
- package/esm2022/core/icon.component.mjs +111 -0
- package/esm2022/core/reduced-motion.service.mjs +34 -0
- package/esm2022/decision-prompt/decision-prompt.component.mjs +259 -0
- package/esm2022/design-review/design-review.component.mjs +428 -0
- package/esm2022/design-tuner/design-tuner.component.mjs +341 -0
- package/esm2022/details-panel/details-panel.component.mjs +537 -0
- package/esm2022/donut-chart/donut-chart.component.mjs +240 -0
- package/esm2022/draft-review/draft-review.component.mjs +549 -0
- package/esm2022/error-recovery/error-recovery.component.mjs +231 -0
- package/esm2022/eval-results/eval-results.component.mjs +368 -0
- package/esm2022/feedback-sheet/feedback-sheet.component.mjs +411 -0
- package/esm2022/field-extraction/field-extraction.component.mjs +368 -0
- package/esm2022/funnel-chart/funnel-chart.component.mjs +258 -0
- package/esm2022/grid/grid.component.mjs +66 -0
- package/esm2022/health-score/health-score.component.mjs +420 -0
- package/esm2022/human-handoff/human-handoff.component.mjs +676 -0
- package/esm2022/image-generation/image-generation.component.mjs +1028 -0
- package/esm2022/inline-text-diff/inline-text-diff.component.mjs +390 -0
- package/esm2022/launch-checklist/launch-checklist.component.mjs +229 -0
- package/esm2022/line-chart/line-chart.component.mjs +417 -0
- package/esm2022/live-answer/live-answer.component.mjs +411 -0
- package/esm2022/metric-insight/metric-insight.component.mjs +511 -0
- package/esm2022/modal/modal.component.mjs +202 -0
- package/esm2022/model-picker/model-picker.component.mjs +491 -0
- package/esm2022/permission-gate/permission-gate.component.mjs +498 -0
- package/esm2022/plan-review/plan-review.component.mjs +432 -0
- package/esm2022/progress/progress.component.mjs +503 -0
- package/esm2022/prompt-library/prompt-library.component.mjs +453 -0
- package/esm2022/prompt-starters/prompt-starters.component.mjs +272 -0
- package/esm2022/proposal-card/proposal-card.component.mjs +402 -0
- package/esm2022/public-api.mjs +88 -0
- package/esm2022/radar-chart/radar-chart.component.mjs +500 -0
- package/esm2022/radial-goals/radial-goals.component.mjs +418 -0
- package/esm2022/reasoning-trail/reasoning-trail.component.mjs +284 -0
- package/esm2022/response-versions/response-versions.component.mjs +288 -0
- package/esm2022/rewrite-toolbar/rewrite-toolbar.component.mjs +397 -0
- package/esm2022/rich-text-editor/rich-text-editor.component.mjs +1755 -0
- package/esm2022/run-cost/run-cost.component.mjs +215 -0
- package/esm2022/run-queue/run-queue.component.mjs +481 -0
- package/esm2022/run-summary/run-summary.component.mjs +331 -0
- package/esm2022/scatter-chart/scatter-chart.component.mjs +705 -0
- package/esm2022/score-breakdown/score-breakdown.component.mjs +460 -0
- package/esm2022/segmented-control/segmented-control.component.mjs +180 -0
- package/esm2022/source-stack/source-stack.component.mjs +245 -0
- package/esm2022/stat-cards/stat-cards.component.mjs +258 -0
- package/esm2022/status-pill/status-pill.component.mjs +305 -0
- package/esm2022/steering/steering.component.mjs +343 -0
- package/esm2022/step-loader/step-loader.component.mjs +209 -0
- package/esm2022/task-table/task-table.component.mjs +534 -0
- package/esm2022/terminal-stream/terminal-stream.component.mjs +583 -0
- package/esm2022/thinking/thinking.component.mjs +276 -0
- package/esm2022/thinking-states/thinking-states.component.mjs +333 -0
- package/esm2022/thread-panel/thread-panel.component.mjs +271 -0
- package/esm2022/toast/toast.component.mjs +195 -0
- package/esm2022/toast-stack/toast-stack.component.mjs +301 -0
- package/esm2022/tool-call/tool-call.component.mjs +273 -0
- package/esm2022/tooltip/tooltip.component.mjs +417 -0
- package/esm2022/top-pages/top-pages.component.mjs +240 -0
- package/esm2022/trace-view/trace-view.component.mjs +440 -0
- package/esm2022/visuno-angular.mjs +5 -0
- package/esm2022/voice-capture/voice-capture.component.mjs +650 -0
- package/esm2022/voice-orb/voice-orb.component.mjs +538 -0
- package/esm2022/web-search/web-search.component.mjs +374 -0
- package/eval-results/eval-results.component.d.ts +67 -0
- package/feedback-sheet/feedback-sheet.component.d.ts +74 -0
- package/fesm2022/visuno-angular.mjs +31992 -0
- package/fesm2022/visuno-angular.mjs.map +1 -0
- package/field-extraction/field-extraction.component.d.ts +82 -0
- package/funnel-chart/funnel-chart.component.d.ts +70 -0
- package/grid/grid.component.d.ts +22 -0
- package/health-score/health-score.component.d.ts +87 -0
- package/human-handoff/human-handoff.component.d.ts +125 -0
- package/image-generation/image-generation.component.d.ts +253 -0
- package/index.d.ts +5 -0
- package/inline-text-diff/inline-text-diff.component.d.ts +76 -0
- package/launch-checklist/launch-checklist.component.d.ts +46 -0
- package/line-chart/line-chart.component.d.ts +89 -0
- package/live-answer/live-answer.component.d.ts +110 -0
- package/metric-insight/metric-insight.component.d.ts +110 -0
- package/modal/modal.component.d.ts +37 -0
- package/model-picker/model-picker.component.d.ts +97 -0
- package/package.json +51 -4
- package/permission-gate/permission-gate.component.d.ts +100 -0
- package/plan-review/plan-review.component.d.ts +86 -0
- package/progress/progress.component.d.ts +91 -0
- package/prompt-library/prompt-library.component.d.ts +121 -0
- package/prompt-starters/prompt-starters.component.d.ts +65 -0
- package/proposal-card/proposal-card.component.d.ts +101 -0
- package/public-api.d.ts +82 -0
- package/radar-chart/radar-chart.component.d.ts +110 -0
- package/radial-goals/radial-goals.component.d.ts +90 -0
- package/reasoning-trail/reasoning-trail.component.d.ts +73 -0
- package/response-versions/response-versions.component.d.ts +54 -0
- package/rewrite-toolbar/rewrite-toolbar.component.d.ts +92 -0
- package/rich-text-editor/rich-text-editor.component.d.ts +180 -0
- package/run-cost/run-cost.component.d.ts +43 -0
- package/run-queue/run-queue.component.d.ts +93 -0
- package/run-summary/run-summary.component.d.ts +81 -0
- package/scatter-chart/scatter-chart.component.d.ts +139 -0
- package/score-breakdown/score-breakdown.component.d.ts +107 -0
- package/segmented-control/segmented-control.component.d.ts +44 -0
- package/source-stack/source-stack.component.d.ts +60 -0
- package/stat-cards/stat-cards.component.d.ts +86 -0
- package/status-pill/status-pill.component.d.ts +64 -0
- package/steering/steering.component.d.ts +75 -0
- package/step-loader/step-loader.component.d.ts +40 -0
- package/styles.css +424 -0
- package/task-table/task-table.component.d.ts +114 -0
- package/terminal-stream/terminal-stream.component.d.ts +110 -0
- package/thinking/thinking.component.d.ts +63 -0
- package/thinking-states/thinking-states.component.d.ts +51 -0
- package/thread-panel/thread-panel.component.d.ts +75 -0
- package/toast/toast.component.d.ts +56 -0
- package/toast-stack/toast-stack.component.d.ts +72 -0
- package/tokens.css +424 -0
- package/tool-call/tool-call.component.d.ts +61 -0
- package/tooltip/tooltip.component.d.ts +89 -0
- package/top-pages/top-pages.component.d.ts +75 -0
- package/trace-view/trace-view.component.d.ts +95 -0
- package/voice-capture/voice-capture.component.d.ts +103 -0
- package/voice-orb/voice-orb.component.d.ts +78 -0
- package/web-search/web-search.component.d.ts +77 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ReducedMotionService } from '../core/reduced-motion.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Picks the glyph and colour. thinking, reading and working shimmer while they run. */
|
|
5
|
+
export type StatusPillState = 'idle' | 'thinking' | 'reading' | 'working' | 'waiting' | 'done';
|
|
6
|
+
/** A file chip after the label, like { name: 'PricingCard.tsx', type: 'tsx' }. */
|
|
7
|
+
export interface StatusPillFile {
|
|
8
|
+
name: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
}
|
|
11
|
+
/** A button at the end, for when the agent needs the person. */
|
|
12
|
+
export interface StatusPillAction {
|
|
13
|
+
label: string;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare class StatusPillComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
17
|
+
private readonly reduced;
|
|
18
|
+
private readonly cdr;
|
|
19
|
+
state: StatusPillState;
|
|
20
|
+
/** What the agent is doing, in a few words. */
|
|
21
|
+
label: string;
|
|
22
|
+
/** Quiet detail after the label, like "2 of 4". Changing only this does not restart the pill. */
|
|
23
|
+
meta?: string;
|
|
24
|
+
file?: StatusPillFile;
|
|
25
|
+
action?: StatusPillAction;
|
|
26
|
+
/** 0 to 100, drawn as a track along the bottom of the bar variant. */
|
|
27
|
+
progress: number;
|
|
28
|
+
/** pill hugs its content, bar is taller and leaves room for the progress track. */
|
|
29
|
+
variant: 'pill' | 'bar';
|
|
30
|
+
box?: ElementRef<HTMLDivElement>;
|
|
31
|
+
/** The snapshot currently shown (the old line while fading out). */
|
|
32
|
+
view: {
|
|
33
|
+
state: StatusPillState;
|
|
34
|
+
label: string;
|
|
35
|
+
meta?: string;
|
|
36
|
+
file?: StatusPillFile;
|
|
37
|
+
action?: StatusPillAction;
|
|
38
|
+
};
|
|
39
|
+
fading: boolean;
|
|
40
|
+
morphing: boolean;
|
|
41
|
+
shape: 'pill' | 'bar';
|
|
42
|
+
width?: number;
|
|
43
|
+
private prevKey;
|
|
44
|
+
private latest;
|
|
45
|
+
private timers;
|
|
46
|
+
private viewReady;
|
|
47
|
+
constructor(reduced: ReducedMotionService, cdr: ChangeDetectorRef);
|
|
48
|
+
get viewState(): StatusPillState;
|
|
49
|
+
get glyphColor(): string | null;
|
|
50
|
+
get dotColor(): string | null;
|
|
51
|
+
get labelClass(): string;
|
|
52
|
+
get clampedProgress(): number;
|
|
53
|
+
ftClass(type: string): string;
|
|
54
|
+
private key;
|
|
55
|
+
private snapshot;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
58
|
+
private morphTo;
|
|
59
|
+
private fit;
|
|
60
|
+
private later;
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusPillComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusPillComponent, "vo-status-pill", never, { "state": { "alias": "state"; "required": false; }; "label": { "alias": "label"; "required": false; }; "meta": { "alias": "meta"; "required": false; }; "file": { "alias": "file"; "required": false; }; "action": { "alias": "action"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** Where a step is in the run. */
|
|
4
|
+
export type SteerStepStatus = 'queued' | 'running' | 'done';
|
|
5
|
+
/** One step in the run. */
|
|
6
|
+
export interface SteerStep {
|
|
7
|
+
id: string;
|
|
8
|
+
/** Like "Update the Pro card". */
|
|
9
|
+
title: string;
|
|
10
|
+
/** What it is doing now, or what it did. It crossfades when it changes. */
|
|
11
|
+
detail?: string;
|
|
12
|
+
status: SteerStepStatus;
|
|
13
|
+
/** Marks a step that a message of yours added, with a "From you" tag. */
|
|
14
|
+
fromYou?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** A button under the agent's message, like Leave it or Redo the Pro card. */
|
|
17
|
+
export interface SteerAction {
|
|
18
|
+
label: string;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
}
|
|
21
|
+
/** A line in the log: what you sent, or what the agent said back. */
|
|
22
|
+
export interface SteerMessage {
|
|
23
|
+
id: string;
|
|
24
|
+
from: 'you' | 'agent';
|
|
25
|
+
text: string;
|
|
26
|
+
/** For yours: `queued` while it waits for the step in progress, `applied` once the agent has taken it up. */
|
|
27
|
+
state?: 'queued' | 'applied';
|
|
28
|
+
/** For the agent's: an amber heads-up, for when your message changes work already done. */
|
|
29
|
+
warn?: boolean;
|
|
30
|
+
/** Buttons under the agent's message, the last one filled, like Leave it and Redo the Pro card. */
|
|
31
|
+
actions?: SteerAction[];
|
|
32
|
+
/** Takes the buttons' place once you've answered, like "Added a step to redo the Pro card". The amber goes too. */
|
|
33
|
+
answer?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class SteeringComponent implements OnChanges {
|
|
36
|
+
/** The run's goal, like "Redesign the pricing page". */
|
|
37
|
+
title: string;
|
|
38
|
+
steps: SteerStep[];
|
|
39
|
+
/** What you sent and what the agent said back, in order. */
|
|
40
|
+
messages: SteerMessage[];
|
|
41
|
+
/** Emitted with the text when a message is sent. Add it to `messages` as `queued`, and mark it `applied` when it's taken up. */
|
|
42
|
+
sendMessage: EventEmitter<string>;
|
|
43
|
+
/** The message being written. Leave it out (undefined) to let the box keep it. */
|
|
44
|
+
value?: string;
|
|
45
|
+
defaultValue: string;
|
|
46
|
+
valueChange: EventEmitter<string>;
|
|
47
|
+
/** Defaults to "Steer the agent while it works", and "The run has finished" once every step is done. */
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
/** The line under the title. Defaults to "Step 2 of 4", or Done. */
|
|
50
|
+
status?: string;
|
|
51
|
+
/** Seconds to show as m:ss. Leave it out to let the clock count until every step is done. */
|
|
52
|
+
seconds?: number;
|
|
53
|
+
/** Shown once every step is done. Defaults to "Done in 0:14 · 1 change from you"; false hides it. */
|
|
54
|
+
summary?: string | false;
|
|
55
|
+
className: string;
|
|
56
|
+
private readonly motion;
|
|
57
|
+
private draftState;
|
|
58
|
+
private counted;
|
|
59
|
+
private countTimer?;
|
|
60
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
61
|
+
get draft(): string;
|
|
62
|
+
get finished(): boolean;
|
|
63
|
+
private get secs();
|
|
64
|
+
get clockText(): string;
|
|
65
|
+
get line(): string;
|
|
66
|
+
private get mine();
|
|
67
|
+
get summaryText(): string;
|
|
68
|
+
get showSummary(): boolean;
|
|
69
|
+
get placeholderText(): string;
|
|
70
|
+
onInput(e: Event): void;
|
|
71
|
+
send(e: Event): void;
|
|
72
|
+
private syncCounter;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SteeringComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SteeringComponent, "vo-steering", never, { "title": { "alias": "title"; "required": true; }; "steps": { "alias": "steps"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "status": { "alias": "status"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "sendMessage": "sendMessage"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** One named step. */
|
|
4
|
+
export interface Step {
|
|
5
|
+
/** Shown while the step runs, like "Reading Figma frames". */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Shown once it is done, like "Read 4 frames". Falls back to label. */
|
|
8
|
+
done?: string;
|
|
9
|
+
}
|
|
10
|
+
/** The loader glyph beside the running step. */
|
|
11
|
+
export type StepLoaderGlyph = 'radar' | 'dots' | 'ring' | 'bars';
|
|
12
|
+
export declare class StepLoaderComponent implements OnChanges {
|
|
13
|
+
/** The named steps. */
|
|
14
|
+
steps: Step[];
|
|
15
|
+
/** Index of the step running now. steps.length (or more) means every step is done. */
|
|
16
|
+
current: number;
|
|
17
|
+
/** The loader beside the running step. */
|
|
18
|
+
loader: StepLoaderGlyph;
|
|
19
|
+
/** Label once every step is done. */
|
|
20
|
+
doneLabel: string;
|
|
21
|
+
/** Whether the list of every step is open (controlled). Leave out to let the row toggle it. */
|
|
22
|
+
open?: boolean;
|
|
23
|
+
/** Initial open state when uncontrolled. */
|
|
24
|
+
defaultOpen: boolean;
|
|
25
|
+
/** Emitted when the open state changes. */
|
|
26
|
+
openChange: EventEmitter<boolean>;
|
|
27
|
+
/** The open state shown now (controlled by `open`, else held internally). */
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
private touched;
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
/** Number of steps. */
|
|
32
|
+
get n(): number;
|
|
33
|
+
/** Whether every step is done. */
|
|
34
|
+
get allDone(): boolean;
|
|
35
|
+
/** Index of the step to show as running (clamped to the last step). */
|
|
36
|
+
get at(): number;
|
|
37
|
+
toggle(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepLoaderComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepLoaderComponent, "vo-step-loader", never, { "steps": { "alias": "steps"; "required": false; }; "current": { "alias": "current"; "required": false; }; "loader": { "alias": "loader"; "required": false; }; "doneLabel": { "alias": "doneLabel"; "required": false; }; "open": { "alias": "open"; "required": false; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
40
|
+
}
|