@go-go-golems/rag-evaluation-site 0.1.0 → 0.1.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/app/index.js +22 -22
- package/index.js +20 -288
- package/package.json +1 -1
- package/styles.css +1 -1
- package/{useWidgetPage-B8iwybER.js → useWidgetPage-BdA824UK.js} +947 -636
- package/widgets/ir.d.ts +15 -3
package/widgets/ir.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CaptionTone, CaptionTransform, RagStatus, TextAlign, TextAs, TextSize, TextTone, TextWeight } from '../components/foundation';
|
|
2
|
-
import type { ButtonSize, ButtonVariant, ContextKindSwatchSize } from '../components/atoms';
|
|
2
|
+
import type { ButtonSize, ButtonVariant, ContextKindSwatchSize, ContextStudioNavIconId } from '../components/atoms';
|
|
3
3
|
import type { DashboardGridRecipe, InlineGap, InlineJustify, StackAlign, StackGap } from '../components/layout';
|
|
4
4
|
import type { AnchoredComment, ContextCourse, ContextCourseAgendaItem, ContextDiagramStyle, ContextDiagramView, ContextHandoutDocument, ContextSlide, ContextPartKind, ContextWindowSnapshot, TranscriptAnnotation, TranscriptMessage, TranscriptRole } from '../context';
|
|
5
5
|
export type JsonPrimitive = string | number | boolean | null;
|
|
@@ -20,7 +20,7 @@ export interface ElementNode {
|
|
|
20
20
|
attrs?: JsonObject;
|
|
21
21
|
children?: WidgetNode[];
|
|
22
22
|
}
|
|
23
|
-
export type RagWidgetType = 'AppShell' | 'AppNav' | 'Button' | 'Caption' | 'CodeText' | 'ContextKindSwatch' | 'AnnotationBadge' | 'ContextLegend' | 'ContextBudgetBar' | 'ContextStripDiagram' | 'ContextStackDiagram' | 'ContextTreemap' | 'ContextDiagramPanel' | 'DashboardGrid' | 'DataTable' | 'Divider' | 'FormRow' | 'Inline' | 'MetadataGrid' | 'Panel' | 'ScrollRegion' | 'SectionBlock' | 'SelectInput' | 'SidebarShell' | 'SlideShell' | 'SplitPane' | 'Stack' | 'StatusText' | 'TabList' | 'Text' | 'TextInput' | 'TranscriptRoleBadge' | 'TranscriptSessionHeader' | 'TranscriptMessageCard' | 'AnnotationNoteCard' | 'AnnotationRailPanel' | 'TranscriptReaderPanel' | 'TranscriptWorkspacePanel' | 'AnchoredCommentCard' | 'AnchoredCommentRail' | 'KeyValueStrip' | 'CheckList' | 'StepList' | 'PersonSummary' | 'FigureBlock' | 'KeyPointList' | 'SidebarNav' | 'CourseStepNav' | 'MarkdownArticle' | 'DocumentListPanel' | 'DocumentPreviewToolbar' | 'CourseLessonPanel' | 'CourseSlidePanel' | 'CourseStudioShell' | 'HandoutDocumentShell';
|
|
23
|
+
export type RagWidgetType = 'AppShell' | 'AppNav' | 'Button' | 'Caption' | 'CodeText' | 'ContextKindSwatch' | 'ContextStudioNavIcon' | 'AnnotationBadge' | 'ContextLegend' | 'ContextBudgetBar' | 'ContextStripDiagram' | 'ContextStackDiagram' | 'ContextTreemap' | 'ContextDiagramPanel' | 'DashboardGrid' | 'DataTable' | 'Divider' | 'FormRow' | 'Inline' | 'MetadataGrid' | 'Panel' | 'ScrollRegion' | 'SectionBlock' | 'SelectInput' | 'SidebarShell' | 'SlideShell' | 'SplitPane' | 'Stack' | 'StatusText' | 'TabList' | 'Text' | 'TextInput' | 'TranscriptRoleBadge' | 'TranscriptSessionHeader' | 'TranscriptMessageCard' | 'AnnotationNoteCard' | 'AnnotationRailPanel' | 'TranscriptReaderPanel' | 'TranscriptWorkspacePanel' | 'AnchoredCommentCard' | 'AnchoredCommentRail' | 'KeyValueStrip' | 'CheckList' | 'StepList' | 'PersonSummary' | 'FigureBlock' | 'KeyPointList' | 'SidebarNav' | 'CourseStepNav' | 'MarkdownArticle' | 'DocumentListPanel' | 'DocumentPreviewToolbar' | 'CourseLessonPanel' | 'CourseSlidePanel' | 'CourseStudioShell' | 'HandoutDocumentShell' | 'ContextUploadDropArea';
|
|
24
24
|
export interface ComponentNode {
|
|
25
25
|
kind: 'component';
|
|
26
26
|
type: RagWidgetType | string;
|
|
@@ -94,6 +94,10 @@ export interface CodeTextWidgetProps extends BaseWidgetProps {
|
|
|
94
94
|
export interface DividerWidgetProps extends BaseWidgetProps {
|
|
95
95
|
orientation?: 'horizontal' | 'vertical';
|
|
96
96
|
}
|
|
97
|
+
export interface ContextStudioNavIconWidgetProps extends BaseWidgetProps {
|
|
98
|
+
id: ContextStudioNavIconId;
|
|
99
|
+
title?: string;
|
|
100
|
+
}
|
|
97
101
|
export interface ContextKindSwatchWidgetProps extends BaseWidgetProps {
|
|
98
102
|
kind: ContextPartKind;
|
|
99
103
|
mode?: ContextDiagramStyle;
|
|
@@ -330,6 +334,14 @@ export interface HandoutDocumentShellWidgetProps extends BaseWidgetProps {
|
|
|
330
334
|
title?: RenderableValue;
|
|
331
335
|
emptyMessage?: RenderableValue;
|
|
332
336
|
}
|
|
337
|
+
export interface ContextUploadDropAreaWidgetProps extends BaseWidgetProps {
|
|
338
|
+
title?: RenderableValue;
|
|
339
|
+
description?: RenderableValue;
|
|
340
|
+
accept?: string;
|
|
341
|
+
disabled?: boolean;
|
|
342
|
+
active?: boolean;
|
|
343
|
+
onFilesSelectedAction?: ActionSpec;
|
|
344
|
+
}
|
|
333
345
|
export interface CaptionWidgetProps extends BaseWidgetProps {
|
|
334
346
|
tone?: CaptionTone;
|
|
335
347
|
transform?: CaptionTransform;
|
|
@@ -499,7 +511,7 @@ export interface TextInputWidgetProps extends BaseWidgetProps {
|
|
|
499
511
|
min?: number;
|
|
500
512
|
max?: number;
|
|
501
513
|
}
|
|
502
|
-
export type WidgetProps = AppShellWidgetProps | AppNavWidgetProps | ButtonWidgetProps | TextWidgetProps | CodeTextWidgetProps | DividerWidgetProps | ContextKindSwatchWidgetProps | AnnotationBadgeWidgetProps | TranscriptRoleBadgeWidgetProps | ContextLegendWidgetProps | ContextBudgetBarWidgetProps | ContextStripDiagramWidgetProps | ContextStackDiagramWidgetProps | ContextTreemapWidgetProps | ContextDiagramPanelWidgetProps | TranscriptSessionHeaderWidgetProps | TranscriptMessageCardWidgetProps | AnnotationNoteCardWidgetProps | AnnotationRailPanelWidgetProps | TranscriptReaderPanelWidgetProps | TranscriptWorkspacePanelWidgetProps | AnchoredCommentCardWidgetProps | AnchoredCommentRailWidgetProps | KeyValueStripWidgetProps | CheckListWidgetProps | StepListWidgetProps | PersonSummaryWidgetProps | FigureBlockWidgetProps | KeyPointListWidgetProps | SidebarNavWidgetProps | CourseStepNavWidgetProps | MarkdownArticleWidgetProps | DocumentListPanelWidgetProps | DocumentPreviewToolbarWidgetProps | CourseLessonPanelWidgetProps | CourseSlidePanelWidgetProps | CourseStudioShellWidgetProps | HandoutDocumentShellWidgetProps | CaptionWidgetProps | DashboardGridWidgetProps | DataTableWidgetProps | FormRowWidgetProps | InlineWidgetProps | MetadataGridWidgetProps | PanelWidgetProps | ScrollRegionWidgetProps | SectionBlockWidgetProps | SplitPaneWidgetProps | SidebarShellWidgetProps | SlideShellWidgetProps | SelectInputWidgetProps | StackWidgetProps | StatusTextWidgetProps | TabListWidgetProps | TextInputWidgetProps | BaseWidgetProps;
|
|
514
|
+
export type WidgetProps = AppShellWidgetProps | AppNavWidgetProps | ButtonWidgetProps | TextWidgetProps | CodeTextWidgetProps | DividerWidgetProps | ContextKindSwatchWidgetProps | ContextStudioNavIconWidgetProps | AnnotationBadgeWidgetProps | TranscriptRoleBadgeWidgetProps | ContextLegendWidgetProps | ContextBudgetBarWidgetProps | ContextStripDiagramWidgetProps | ContextStackDiagramWidgetProps | ContextTreemapWidgetProps | ContextDiagramPanelWidgetProps | TranscriptSessionHeaderWidgetProps | TranscriptMessageCardWidgetProps | AnnotationNoteCardWidgetProps | AnnotationRailPanelWidgetProps | TranscriptReaderPanelWidgetProps | TranscriptWorkspacePanelWidgetProps | AnchoredCommentCardWidgetProps | AnchoredCommentRailWidgetProps | KeyValueStripWidgetProps | CheckListWidgetProps | StepListWidgetProps | PersonSummaryWidgetProps | FigureBlockWidgetProps | KeyPointListWidgetProps | SidebarNavWidgetProps | CourseStepNavWidgetProps | MarkdownArticleWidgetProps | DocumentListPanelWidgetProps | DocumentPreviewToolbarWidgetProps | CourseLessonPanelWidgetProps | CourseSlidePanelWidgetProps | CourseStudioShellWidgetProps | HandoutDocumentShellWidgetProps | ContextUploadDropAreaWidgetProps | CaptionWidgetProps | DashboardGridWidgetProps | DataTableWidgetProps | FormRowWidgetProps | InlineWidgetProps | MetadataGridWidgetProps | PanelWidgetProps | ScrollRegionWidgetProps | SectionBlockWidgetProps | SplitPaneWidgetProps | SidebarShellWidgetProps | SlideShellWidgetProps | SelectInputWidgetProps | StackWidgetProps | StatusTextWidgetProps | TabListWidgetProps | TextInputWidgetProps | BaseWidgetProps;
|
|
503
515
|
export declare function text(value: string | number | boolean): TextNode;
|
|
504
516
|
export declare function element(tag: string, attrs?: JsonObject, children?: WidgetNode[]): ElementNode;
|
|
505
517
|
export declare function component(type: RagWidgetType | string, props?: WidgetProps, children?: WidgetNode[]): ComponentNode;
|