gik-components 0.2.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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +373 -0
  3. package/dist/agent-facing-DjAMQ4Ju.d.ts +110 -0
  4. package/dist/agent-facing.d.ts +8 -0
  5. package/dist/agent-facing.js +2 -0
  6. package/dist/agent-facing.js.map +1 -0
  7. package/dist/chunk-2I33SAGT.js +2 -0
  8. package/dist/chunk-2I33SAGT.js.map +1 -0
  9. package/dist/chunk-2XVVN3LX.js +7 -0
  10. package/dist/chunk-2XVVN3LX.js.map +1 -0
  11. package/dist/chunk-4BIHH7HT.js +2 -0
  12. package/dist/chunk-4BIHH7HT.js.map +1 -0
  13. package/dist/chunk-6JMFZS2Y.js +2 -0
  14. package/dist/chunk-6JMFZS2Y.js.map +1 -0
  15. package/dist/chunk-6TBEAKS7.js +2 -0
  16. package/dist/chunk-6TBEAKS7.js.map +1 -0
  17. package/dist/chunk-DMIV5ZI5.js +2 -0
  18. package/dist/chunk-DMIV5ZI5.js.map +1 -0
  19. package/dist/chunk-DNHCWSHQ.js +2 -0
  20. package/dist/chunk-DNHCWSHQ.js.map +1 -0
  21. package/dist/chunk-GL7PGK3G.js +2 -0
  22. package/dist/chunk-GL7PGK3G.js.map +1 -0
  23. package/dist/chunk-H6T3CCU5.js +2 -0
  24. package/dist/chunk-H6T3CCU5.js.map +1 -0
  25. package/dist/chunk-OFWGYY7S.js +2 -0
  26. package/dist/chunk-OFWGYY7S.js.map +1 -0
  27. package/dist/chunk-UP2OAMPY.js +2 -0
  28. package/dist/chunk-UP2OAMPY.js.map +1 -0
  29. package/dist/chunk-VR5CS5LA.js +2 -0
  30. package/dist/chunk-VR5CS5LA.js.map +1 -0
  31. package/dist/chunk-XA6FE7ZK.js +6 -0
  32. package/dist/chunk-XA6FE7ZK.js.map +1 -0
  33. package/dist/component-authoring-internal-DfFqqPhw.d.ts +40 -0
  34. package/dist/fluent.d.ts +103 -0
  35. package/dist/fluent.js +2 -0
  36. package/dist/fluent.js.map +1 -0
  37. package/dist/index.d.ts +139 -0
  38. package/dist/index.js +2 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/primitives.d.ts +440 -0
  41. package/dist/primitives.js +2 -0
  42. package/dist/primitives.js.map +1 -0
  43. package/dist/security.d.ts +39 -0
  44. package/dist/security.js +2 -0
  45. package/dist/security.js.map +1 -0
  46. package/dist/semantic.d.ts +147 -0
  47. package/dist/semantic.js +2 -0
  48. package/dist/semantic.js.map +1 -0
  49. package/dist/software.d.ts +44 -0
  50. package/dist/software.js +2 -0
  51. package/dist/software.js.map +1 -0
  52. package/package.json +83 -0
@@ -0,0 +1,440 @@
1
+ import { d as ComponentValidationReport, D as DeclarativeComponentDefinition, C as ComponentDescription } from './agent-facing-DjAMQ4Ju.js';
2
+ export { e as ComponentAgentFacingMetadata, f as ComponentAuthoringGuide, g as ComponentDefinitionOptions, c as ComponentEventContract, h as ComponentValidationIssue, i as ComponentVariantDescription, j as componentNode, k as defineComponent, l as eventContract, t as trialNode } from './agent-facing-DjAMQ4Ju.js';
3
+ import * as _gik_ai_kernel from '@gik-ai/kernel';
4
+ import { CapabilityDescriptor, ResolvedNode } from '@gik-ai/kernel';
5
+ import { a as ComponentAgentKit, b as ComponentAuthoringDescription, d as ComponentCatalogEntry, e as ComponentPreflightReport, C as ComponentAuthoringTool } from './component-authoring-internal-DfFqqPhw.js';
6
+ import { ProjectionView, ProjectionViewProps } from '@gik-ai/react';
7
+ import React from 'react';
8
+ import { Viewport, XYPosition, Position, FitViewOptions, ProOptions, Node } from '@xyflow/react';
9
+
10
+ interface PrimitiveComponentCatalogEntry extends ComponentCatalogEntry {
11
+ }
12
+ interface PrimitiveComponentAuthoringDescription extends ComponentAuthoringDescription {
13
+ }
14
+ interface PrimitiveComponentPreflightReport extends ComponentPreflightReport {
15
+ }
16
+ interface PrimitiveComponentAgentKit extends ComponentAgentKit {
17
+ }
18
+ declare const listPrimitiveComponents: () => PrimitiveComponentCatalogEntry[];
19
+ declare const describePrimitiveComponent: (capability: string) => PrimitiveComponentAuthoringDescription;
20
+ declare const validatePrimitiveComponentProps: (capability: string, props: unknown) => ComponentValidationReport;
21
+ declare const materializePrimitiveComponentTrial: (capability: string, variant?: string) => _gik_ai_kernel.ResolvedNode;
22
+ declare const preflightPrimitiveComponent: (capability: string, props: unknown) => PrimitiveComponentPreflightReport;
23
+ declare const getPrimitiveComponentAgentInstructions: (components?: readonly string[]) => string;
24
+ declare const createPrimitiveComponentAuthoringTools: (components?: readonly string[]) => ComponentAuthoringTool[];
25
+ declare const getPrimitiveComponentAgentKit: (components?: readonly string[]) => PrimitiveComponentAgentKit;
26
+ declare const primitiveComponentAuthoringTools: ComponentAuthoringTool[];
27
+
28
+ declare const primitiveComponentViews: Record<string, ProjectionView>;
29
+ declare const primitiveComponentDefinitions: {
30
+ readonly "access-gate": DeclarativeComponentDefinition;
31
+ readonly alert: DeclarativeComponentDefinition;
32
+ readonly chart: DeclarativeComponentDefinition;
33
+ readonly "collection-board": DeclarativeComponentDefinition;
34
+ readonly container: DeclarativeComponentDefinition;
35
+ readonly datetime: DeclarativeComponentDefinition;
36
+ readonly "pane-with-trigger": DeclarativeComponentDefinition;
37
+ readonly "editable-table": DeclarativeComponentDefinition;
38
+ readonly "file-download": DeclarativeComponentDefinition;
39
+ readonly "file-input": DeclarativeComponentDefinition;
40
+ readonly "file-list": DeclarativeComponentDefinition;
41
+ readonly form: DeclarativeComponentDefinition;
42
+ readonly gantt: DeclarativeComponentDefinition;
43
+ readonly "graph-diagram": DeclarativeComponentDefinition;
44
+ readonly "growing-container": DeclarativeComponentDefinition;
45
+ readonly "infinite-canvas": DeclarativeComponentDefinition;
46
+ readonly "math-challenge": DeclarativeComponentDefinition;
47
+ readonly markdown: DeclarativeComponentDefinition;
48
+ readonly metric: DeclarativeComponentDefinition;
49
+ readonly note: DeclarativeComponentDefinition;
50
+ readonly property: DeclarativeComponentDefinition;
51
+ readonly "source-viewer": DeclarativeComponentDefinition;
52
+ readonly "timer-button": DeclarativeComponentDefinition;
53
+ readonly "todo-list": DeclarativeComponentDefinition;
54
+ };
55
+ declare const primitiveComponentCapabilities: Record<string, CapabilityDescriptor>;
56
+
57
+ declare const AccessGate: ({ node, emit, children }: ProjectionViewProps) => React.JSX.Element;
58
+ declare function validateAccessGate(props: unknown): ComponentValidationReport;
59
+ declare function materializeAccessGateTrial(): ResolvedNode;
60
+ declare const accessGateDefinition: DeclarativeComponentDefinition;
61
+
62
+ declare const Alert: ProjectionView;
63
+ declare function validateAlert(props: unknown): ComponentValidationReport;
64
+ declare const alertDefinition: DeclarativeComponentDefinition;
65
+
66
+ declare const CHART_SEMANTIC_TOKENS: readonly ["accent", "positive", "negative", "warning", "neutral"];
67
+ declare const CHART_VARIANTS: readonly ["standard", "compact"];
68
+ declare const CHART_KINDS: readonly ["bar", "line", "pie"];
69
+ declare const Chart: ProjectionView;
70
+ declare function describeChart(): ComponentDescription;
71
+ declare function getChartSchema(): Record<string, unknown>;
72
+ declare function validateChart(props: unknown): ComponentValidationReport;
73
+ declare function materializeChartTrial(): _gik_ai_kernel.ResolvedNode;
74
+ declare const chartDefinition: DeclarativeComponentDefinition;
75
+
76
+ declare const COLLECTION_BOARD_VARIANTS: readonly ["standard", "compact"];
77
+ declare const CollectionBoard: ProjectionView;
78
+ declare function getCollectionBoardSchema(): Record<string, unknown>;
79
+ declare function validateCollectionBoard(props: unknown): ComponentValidationReport;
80
+ declare function materializeCollectionBoardTrial(): _gik_ai_kernel.ResolvedNode;
81
+ declare const collectionBoardDefinition: DeclarativeComponentDefinition;
82
+
83
+ declare const CONTAINER_VARIANTS: readonly ["row", "column", "stack", "flex"];
84
+ declare const CONTAINER_GAPS: readonly ["none", "xs", "s", "m", "l", "xl"];
85
+ declare const CONTAINER_ALIGNMENTS: readonly ["stretch", "start", "center", "end", "baseline"];
86
+ declare const CONTAINER_JUSTIFICATIONS: readonly ["start", "center", "end", "space-between", "space-around", "space-evenly"];
87
+ declare const CONTAINER_DIRECTIONS: readonly ["row", "row-reverse", "column", "column-reverse"];
88
+ type ContainerVariant = typeof CONTAINER_VARIANTS[number];
89
+ type ContainerGap = typeof CONTAINER_GAPS[number];
90
+ type ContainerAlignment = typeof CONTAINER_ALIGNMENTS[number];
91
+ type ContainerJustification = typeof CONTAINER_JUSTIFICATIONS[number];
92
+ type ContainerDirection = typeof CONTAINER_DIRECTIONS[number];
93
+ interface ContainerProps {
94
+ children?: React.ReactNode;
95
+ className?: string;
96
+ style?: React.CSSProperties;
97
+ variant?: ContainerVariant;
98
+ gap?: ContainerGap;
99
+ align?: ContainerAlignment;
100
+ justify?: ContainerJustification;
101
+ wrap?: boolean;
102
+ direction?: ContainerDirection;
103
+ fill?: boolean;
104
+ grow?: boolean;
105
+ fullWidth?: boolean;
106
+ fullHeight?: boolean;
107
+ ariaLabel?: string;
108
+ }
109
+ declare function Container({ children, className, style, variant, gap, align, justify, wrap, direction, fill, grow, fullWidth, fullHeight, ariaLabel, }: ContainerProps): React.ReactElement;
110
+ declare const ContainerPrimitive: ProjectionView;
111
+ declare function describeContainer(): ComponentDescription;
112
+ declare function getContainerSchema(): Record<string, unknown>;
113
+ declare function validateContainer(props: unknown): ComponentValidationReport;
114
+ declare function materializeContainerTrial(): _gik_ai_kernel.ResolvedNode;
115
+ declare const containerDefinition: DeclarativeComponentDefinition;
116
+
117
+ declare const DATE_TIME_PRESENTATIONS: readonly ["date", "time", "timestamp"];
118
+ type DateTimePresentation = typeof DATE_TIME_PRESENTATIONS[number];
119
+ interface DateTimeFormatOptions {
120
+ hourFormat?: "24" | "12";
121
+ locale?: Intl.LocalesArgument;
122
+ now?: Date;
123
+ showSeconds?: boolean;
124
+ showTimeZone?: boolean;
125
+ }
126
+ declare function formatDateTime(value: string | number | Date, presentation: DateTimePresentation, options?: DateTimeFormatOptions): string;
127
+ declare function formatDate(value: string | number | Date, options?: DateTimeFormatOptions): string;
128
+ declare function formatTime(value: string | number | Date, options?: DateTimeFormatOptions): string;
129
+ declare function formatTimestamp(value: string | number | Date, options?: DateTimeFormatOptions): string;
130
+
131
+ declare const DATETIME_VARIANTS: readonly ["date", "time", "timestamp"];
132
+ type DateTimeVariant = DateTimePresentation;
133
+
134
+ declare const DateTime: ProjectionView;
135
+ declare function getDateTimeSchema(): Record<string, unknown>;
136
+ declare function validateDateTime(props: unknown): ComponentValidationReport;
137
+ declare function materializeDateTimeTrial(): _gik_ai_kernel.ResolvedNode;
138
+ declare const dateTimeDefinition: DeclarativeComponentDefinition;
139
+
140
+ declare const PANE_WITH_TRIGGER_VARIANTS: readonly ["drawer", "floating-drawer", "dialog-modal"];
141
+ type PaneWithTriggerVariant = typeof PANE_WITH_TRIGGER_VARIANTS[number];
142
+ type PaneSectionProps = React.PropsWithChildren;
143
+ declare function PaneWithTriggerHeader({ children }: PaneSectionProps): React.ReactElement;
144
+ declare function PaneWithTriggerTrigger({ children }: PaneSectionProps): React.ReactElement;
145
+ declare function PaneWithTriggerBody({ children }: PaneSectionProps): React.ReactElement;
146
+ declare function PaneWithTriggerFooter({ children }: PaneSectionProps): React.ReactElement;
147
+ declare const PaneWithTrigger: ProjectionView;
148
+ declare function validatePaneWithTrigger(props: unknown): ComponentValidationReport;
149
+ declare function materializePaneWithTriggerTrial(): _gik_ai_kernel.ResolvedNode;
150
+ declare const paneWithTriggerDefinition: DeclarativeComponentDefinition;
151
+
152
+ interface EditableTableSpec {
153
+ schema?: {
154
+ properties?: Record<string, Record<string, unknown>>;
155
+ };
156
+ columns?: string[];
157
+ addRow?: boolean;
158
+ deleteRow?: boolean;
159
+ placeholder?: string;
160
+ }
161
+ declare function isEmptyEditableRow(row: Record<string, unknown>): boolean;
162
+ declare function withTrailingEditableRow(rows: Array<Record<string, unknown>>, columns: string[]): Array<Record<string, unknown>>;
163
+ declare function committedEditableRows(rows: Array<Record<string, unknown>>): Array<Record<string, unknown>>;
164
+ declare function appendEditableRowOnLastRowFocus(rows: Array<Record<string, unknown>>, columns: string[], rowIndex: number): Array<Record<string, unknown>>;
165
+ declare function editableTableColumns(spec: EditableTableSpec, rows: Array<Record<string, unknown>>): string[];
166
+ declare const EditableTable: ProjectionView;
167
+ declare function validateEditableTable(props: unknown): ComponentValidationReport;
168
+ declare function materializeEditableTableTrial(): _gik_ai_kernel.ResolvedNode;
169
+ declare const editableTableDefinition: DeclarativeComponentDefinition;
170
+
171
+ declare const FileDownload: ProjectionView;
172
+ declare function validateFileDownload(props: unknown): ComponentValidationReport;
173
+ declare function materializeFileDownloadTrial(): _gik_ai_kernel.ResolvedNode;
174
+ declare const fileDownloadDefinition: DeclarativeComponentDefinition;
175
+
176
+ declare const FileInput: ProjectionView;
177
+ declare function validateFileInput(props: unknown): ComponentValidationReport;
178
+ declare function materializeFileInputTrial(): _gik_ai_kernel.ResolvedNode;
179
+ declare const fileInputDefinition: DeclarativeComponentDefinition;
180
+
181
+ declare const FileList: ProjectionView;
182
+ declare function validateFileList(props: unknown): ComponentValidationReport;
183
+ declare function materializeFileListTrial(): _gik_ai_kernel.ResolvedNode;
184
+ declare const fileListDefinition: DeclarativeComponentDefinition;
185
+
186
+ declare const Form: ProjectionView;
187
+ declare function validateForm(props: unknown): ComponentValidationReport;
188
+ declare function materializeFormTrial(): _gik_ai_kernel.ResolvedNode;
189
+ declare const formDefinition: DeclarativeComponentDefinition;
190
+
191
+ interface CoordinateScale {
192
+ kind: "datetime" | "linear";
193
+ hourFormat?: "24" | "12";
194
+ displayPrefix?: string;
195
+ minimum?: number;
196
+ maximum?: number;
197
+ tickStep?: number;
198
+ showSeconds?: boolean;
199
+ showTimeZone?: boolean;
200
+ }
201
+
202
+ declare const GANTT_VARIANTS: readonly ["standard", "compact"];
203
+ declare const MAX_GANTT_TICKS = 101;
204
+ type GanttScale = CoordinateScale;
205
+ interface GanttSpec {
206
+ title?: string;
207
+ description?: string;
208
+ emptyText?: string;
209
+ scale?: GanttScale;
210
+ fields: {
211
+ id: string;
212
+ label: string;
213
+ start: string;
214
+ end: string;
215
+ detail?: string;
216
+ };
217
+ }
218
+ declare function parseGanttCoordinate(value: unknown, scale: GanttScale): number;
219
+ declare function formatGanttCoordinate(value: unknown, scale: GanttScale): string;
220
+ declare function formatGanttAxisCoordinate(value: number, scale: GanttScale): string;
221
+ declare const Gantt: ProjectionView;
222
+ declare function getGanttSchema(): Record<string, unknown>;
223
+ declare function describeGantt(): ComponentDescription;
224
+ declare function validateGantt(props: unknown): ComponentValidationReport;
225
+ declare function materializeGanttTrial(): _gik_ai_kernel.ResolvedNode;
226
+ declare const ganttDefinition: DeclarativeComponentDefinition;
227
+
228
+ declare const INFINITE_CANVAS_THEME_COLORS: {
229
+ readonly edge: "var(--colorNeutralStrokeAccessible, var(--xy-edge-stroke-default, #616161))";
230
+ readonly accent: "var(--colorBrandStroke1, #0f6cbd)";
231
+ readonly backgroundDot: "var(--colorNeutralStroke2, #d1d1d1)";
232
+ };
233
+ declare const SIDE_POSITION: {
234
+ readonly top: Position.Top;
235
+ readonly bottom: Position.Bottom;
236
+ readonly left: Position.Left;
237
+ readonly right: Position.Right;
238
+ };
239
+ type Side = keyof typeof SIDE_POSITION;
240
+ interface InfiniteCanvasPort {
241
+ id?: string;
242
+ token?: string;
243
+ [key: string]: unknown;
244
+ }
245
+ interface InfiniteCanvasPorts {
246
+ top?: InfiniteCanvasPort[];
247
+ bottom?: InfiniteCanvasPort[];
248
+ left?: InfiniteCanvasPort[];
249
+ right?: InfiniteCanvasPort[];
250
+ }
251
+ type InfiniteCanvasPortMap = Map<string, InfiniteCanvasPorts | null> | Record<string, InfiniteCanvasPorts | null | undefined>;
252
+ interface InfiniteCanvasNodeDescriptor extends Record<string, unknown> {
253
+ id: string;
254
+ width?: number;
255
+ draggable?: boolean;
256
+ }
257
+ interface InfiniteCanvasRef {
258
+ fitView: (opts?: FitViewOptions) => void;
259
+ setViewport: (viewport: Viewport, opts?: {
260
+ duration?: number;
261
+ }) => void;
262
+ setCenter: (x: number, y: number, opts?: {
263
+ zoom?: number;
264
+ duration?: number;
265
+ }) => void;
266
+ getViewport: () => Viewport | undefined;
267
+ getNode: (id: string) => Node | undefined;
268
+ instance: unknown;
269
+ }
270
+ interface InfiniteCanvasProps {
271
+ stateKey: string;
272
+ canvasState?: {
273
+ v?: number;
274
+ viewport?: Viewport | null;
275
+ nodes?: Record<string, {
276
+ x: number;
277
+ y: number;
278
+ }>;
279
+ } | null;
280
+ onCanvasStateCommit?: (blob: {
281
+ v: number;
282
+ viewport: Viewport | null;
283
+ nodes: Record<string, {
284
+ x: number;
285
+ y: number;
286
+ }>;
287
+ }) => void;
288
+ getInitialNodePos?: (descriptor: InfiniteCanvasNodeDescriptor, context: {
289
+ index: number;
290
+ nodeCount: number;
291
+ nodes: InfiniteCanvasNodeDescriptor[];
292
+ placed: Record<string, XYPosition>;
293
+ }) => XYPosition | null | undefined;
294
+ nodes?: InfiniteCanvasNodeDescriptor[];
295
+ nodePorts?: InfiniteCanvasPortMap;
296
+ renderNode?: (node: InfiniteCanvasNodeDescriptor) => React.ReactNode;
297
+ renderNodePort?: (port: InfiniteCanvasPort, context: {
298
+ side: Side;
299
+ position: Position;
300
+ node: InfiniteCanvasNodeDescriptor;
301
+ }) => React.ReactNode;
302
+ minZoom?: number;
303
+ maxZoom?: number;
304
+ fitViewOptions?: FitViewOptions;
305
+ miniMap?: boolean | Record<string, unknown>;
306
+ controls?: boolean | Record<string, unknown>;
307
+ background?: false | Record<string, unknown>;
308
+ overlay?: React.ReactNode;
309
+ panOnScroll?: boolean;
310
+ selectionOnDrag?: boolean;
311
+ proOptions?: ProOptions;
312
+ className?: string;
313
+ viewportClassName?: string;
314
+ onViewportChange?: (viewport: Viewport | null) => void;
315
+ onNodeClick?: (nodeId: string) => void;
316
+ onEdgeClick?: (edgeId: string) => void;
317
+ }
318
+ declare const InfiniteCanvas: React.ForwardRefExoticComponent<InfiniteCanvasProps & React.RefAttributes<InfiniteCanvasRef>>;
319
+
320
+ declare const INFINITE_CANVAS_VARIANTS: readonly ["standard", "compact", "minimal"];
321
+ declare const INFINITE_CANVAS_SEMANTIC_TOKENS: readonly ["accent", "danger", "warning", "success", "neutral"];
322
+ type InfiniteCanvasToken = typeof INFINITE_CANVAS_SEMANTIC_TOKENS[number];
323
+ interface DeclarativeInfiniteCanvasNode extends InfiniteCanvasNodeDescriptor {
324
+ title: string;
325
+ detail?: string;
326
+ eyebrow?: string;
327
+ tone?: InfiniteCanvasToken;
328
+ }
329
+ interface DeclarativeInfiniteCanvasModel {
330
+ nodes: DeclarativeInfiniteCanvasNode[];
331
+ nodePorts: Record<string, InfiniteCanvasPorts | null | undefined>;
332
+ }
333
+ declare const InfiniteCanvasPrimitive: ProjectionView;
334
+ declare function getInfiniteCanvasSchema(): Record<string, unknown>;
335
+ declare function describeInfiniteCanvas(): ComponentDescription;
336
+ declare function validateInfiniteCanvas(props: unknown): ComponentValidationReport;
337
+ declare function materializeInfiniteCanvasTrial(): _gik_ai_kernel.ResolvedNode;
338
+ declare const infiniteCanvasDefinition: DeclarativeComponentDefinition;
339
+
340
+ declare const GRAPH_DIAGRAM_VARIANTS: readonly ["diagram", "canvas"];
341
+ declare const GRAPH_DIAGRAM_TONES: readonly ["accent", "danger", "warning", "success", "neutral"];
342
+ type GraphDiagramTone = typeof GRAPH_DIAGRAM_TONES[number];
343
+ interface GraphDiagramNode {
344
+ id: string;
345
+ label: string;
346
+ detail?: string;
347
+ category?: string;
348
+ tone?: GraphDiagramTone;
349
+ }
350
+ interface GraphDiagramEdge {
351
+ id: string;
352
+ source: string;
353
+ target: string;
354
+ label?: string;
355
+ directed?: boolean;
356
+ }
357
+ interface GraphDiagramModel {
358
+ nodes: GraphDiagramNode[];
359
+ edges: GraphDiagramEdge[];
360
+ }
361
+ declare function buildGraphCanvasModel(graph: GraphDiagramModel): DeclarativeInfiniteCanvasModel;
362
+ declare const GraphDiagram: ProjectionView;
363
+ declare function getGraphDiagramSchema(): Record<string, unknown>;
364
+ declare function validateGraphDiagram(props: unknown): ComponentValidationReport;
365
+ declare function materializeGraphDiagramTrial(): _gik_ai_kernel.ResolvedNode;
366
+ declare const graphDiagramDefinition: DeclarativeComponentDefinition;
367
+
368
+ declare const GROWING_CONTAINER_FOLLOW_END: readonly ["always", "when-at-end", "off"];
369
+ type GrowingContainerFollowEnd = typeof GROWING_CONTAINER_FOLLOW_END[number];
370
+ interface GrowingContainerScrollMetrics {
371
+ scrollHeight: number;
372
+ scrollTop: number;
373
+ clientHeight: number;
374
+ }
375
+ interface GrowingContainerProps {
376
+ children?: React.ReactNode;
377
+ className?: string;
378
+ style?: React.CSSProperties;
379
+ followEnd?: GrowingContainerFollowEnd;
380
+ ariaLabel?: string;
381
+ }
382
+ declare function isGrowingContainerPinnedToEnd(metrics: GrowingContainerScrollMetrics, threshold?: number): boolean;
383
+ declare function shouldGrowingContainerFollowEnd(mode: GrowingContainerFollowEnd, pinnedToEnd: boolean): boolean;
384
+ declare function GrowingContainer({ children, className, style, followEnd, ariaLabel, }: GrowingContainerProps): React.ReactElement;
385
+ declare const GrowingContainerPrimitive: ProjectionView;
386
+ declare function describeGrowingContainer(): ComponentDescription;
387
+ declare function getGrowingContainerSchema(): Record<string, unknown>;
388
+ declare function validateGrowingContainer(props: unknown): ComponentValidationReport;
389
+ declare function materializeGrowingContainerTrial(): _gik_ai_kernel.ResolvedNode;
390
+ declare const growingContainerDefinition: DeclarativeComponentDefinition;
391
+
392
+ declare const MathChallenge: ProjectionView;
393
+ declare function validateMathChallenge(props: unknown): ComponentValidationReport;
394
+ declare const mathChallengeDefinition: DeclarativeComponentDefinition;
395
+
396
+ declare function safeMarkdownHref(url: string): string | null;
397
+ declare const Markdown: ProjectionView;
398
+ declare function validateMarkdown(props: unknown): ComponentValidationReport;
399
+ declare const markdownDefinition: DeclarativeComponentDefinition;
400
+
401
+ declare const Metric: ProjectionView;
402
+ declare function validateMetric(props: unknown): ComponentValidationReport;
403
+ declare const metricDefinition: DeclarativeComponentDefinition;
404
+
405
+ declare const Note: ProjectionView;
406
+ declare function validateNote(props: unknown): ComponentValidationReport;
407
+ declare const noteDefinition: DeclarativeComponentDefinition;
408
+
409
+ declare const Property: ProjectionView;
410
+ declare function validateProperty(props: unknown): ComponentValidationReport;
411
+ declare const propertyDefinition: DeclarativeComponentDefinition;
412
+
413
+ declare const SOURCE_VIEWER_VARIANTS: readonly ["standard", "compact"];
414
+ declare const SOURCE_VIEWER_KINDS: readonly ["source", "unified-diff", "split-diff"];
415
+ declare const SourceViewer: ProjectionView;
416
+ declare function getSourceViewerSchema(): Record<string, unknown>;
417
+ declare function validateSourceViewer(props: unknown): ComponentValidationReport;
418
+ declare function materializeSourceViewerTrial(): _gik_ai_kernel.ResolvedNode;
419
+ declare const sourceViewerDefinition: DeclarativeComponentDefinition;
420
+
421
+ declare const TIMER_BUTTON_PACES: readonly ["manual", "auto"];
422
+ declare const TIMER_BUTTON_VARIANTS: readonly ["standard", "auto-only"];
423
+ declare const TIMER_BUTTON_APPEARANCES: readonly ["primary", "secondary", "outline", "subtle", "transparent"];
424
+ declare const TIMER_BUTTON_SIZES: readonly ["small", "medium", "large"];
425
+ type TimerButtonPace = typeof TIMER_BUTTON_PACES[number];
426
+ declare function formatTimerButtonCountdown(remainingSeconds: number): string;
427
+ declare const TimerButton: ProjectionView;
428
+ declare function describeTimerButton(): ComponentDescription;
429
+ declare function getTimerButtonSchema(): Record<string, unknown>;
430
+ declare function validateTimerButton(props: unknown): ComponentValidationReport;
431
+ declare function materializeTimerButtonTrial(): _gik_ai_kernel.ResolvedNode;
432
+ declare const timerButtonDefinition: DeclarativeComponentDefinition;
433
+
434
+ declare function updateTodoListValues(values: Readonly<Record<string, boolean>>, key: string, checked: boolean): Record<string, boolean>;
435
+ declare const TodoList: ProjectionView;
436
+ declare function validateTodoList(props: unknown): ComponentValidationReport;
437
+ declare function materializeTodoListTrial(): _gik_ai_kernel.ResolvedNode;
438
+ declare const todoListDefinition: DeclarativeComponentDefinition;
439
+
440
+ export { AccessGate, Alert, CHART_KINDS, CHART_SEMANTIC_TOKENS, CHART_VARIANTS, COLLECTION_BOARD_VARIANTS, CONTAINER_ALIGNMENTS, CONTAINER_DIRECTIONS, CONTAINER_GAPS, CONTAINER_JUSTIFICATIONS, CONTAINER_VARIANTS, Chart, CollectionBoard, ComponentDescription, ComponentValidationReport, Container, type ContainerAlignment, type ContainerDirection, type ContainerGap, type ContainerJustification, ContainerPrimitive, type ContainerProps, type ContainerVariant, DATETIME_VARIANTS, DateTime, type DateTimeFormatOptions, type DateTimeVariant, DeclarativeComponentDefinition, type DeclarativeInfiniteCanvasModel, type DeclarativeInfiniteCanvasNode, EditableTable, FileDownload, FileInput, FileList, Form, GANTT_VARIANTS, GRAPH_DIAGRAM_TONES, GRAPH_DIAGRAM_VARIANTS, GROWING_CONTAINER_FOLLOW_END, Gantt, type GanttScale, type GanttSpec, GraphDiagram, type GraphDiagramEdge, type GraphDiagramModel, type GraphDiagramNode, GrowingContainer, type GrowingContainerFollowEnd, GrowingContainerPrimitive, type GrowingContainerProps, type GrowingContainerScrollMetrics, INFINITE_CANVAS_SEMANTIC_TOKENS, INFINITE_CANVAS_THEME_COLORS, INFINITE_CANVAS_VARIANTS, InfiniteCanvas, type InfiniteCanvasNodeDescriptor, type InfiniteCanvasPort, type InfiniteCanvasPortMap, type InfiniteCanvasPorts, InfiniteCanvasPrimitive, type InfiniteCanvasProps, type InfiniteCanvasRef, MAX_GANTT_TICKS, Markdown, MathChallenge, Metric, Note, PANE_WITH_TRIGGER_VARIANTS, PaneWithTrigger, PaneWithTriggerBody, PaneWithTriggerFooter, PaneWithTriggerHeader, PaneWithTriggerTrigger, type PaneWithTriggerVariant, type PrimitiveComponentAgentKit, type PrimitiveComponentAuthoringDescription, type PrimitiveComponentCatalogEntry, type PrimitiveComponentPreflightReport, Property, SOURCE_VIEWER_KINDS, SOURCE_VIEWER_VARIANTS, SourceViewer, TIMER_BUTTON_APPEARANCES, TIMER_BUTTON_PACES, TIMER_BUTTON_SIZES, TIMER_BUTTON_VARIANTS, TimerButton, type TimerButtonPace, TodoList, accessGateDefinition, alertDefinition, appendEditableRowOnLastRowFocus, buildGraphCanvasModel, chartDefinition, collectionBoardDefinition, committedEditableRows, containerDefinition, createPrimitiveComponentAuthoringTools, dateTimeDefinition, describeChart, describeContainer, describeGantt, describeGrowingContainer, describeInfiniteCanvas, describePrimitiveComponent, describeTimerButton, editableTableColumns, editableTableDefinition, fileDownloadDefinition, fileInputDefinition, fileListDefinition, formDefinition, formatDate, formatDateTime, formatGanttAxisCoordinate, formatGanttCoordinate, formatTime, formatTimerButtonCountdown, formatTimestamp, ganttDefinition, getChartSchema, getCollectionBoardSchema, getContainerSchema, getDateTimeSchema, getGanttSchema, getGraphDiagramSchema, getGrowingContainerSchema, getInfiniteCanvasSchema, getPrimitiveComponentAgentInstructions, getPrimitiveComponentAgentKit, getSourceViewerSchema, getTimerButtonSchema, graphDiagramDefinition, growingContainerDefinition, infiniteCanvasDefinition, isEmptyEditableRow, isGrowingContainerPinnedToEnd, listPrimitiveComponents, markdownDefinition, materializeAccessGateTrial, materializeChartTrial, materializeCollectionBoardTrial, materializeContainerTrial, materializeDateTimeTrial, materializeEditableTableTrial, materializeFileDownloadTrial, materializeFileInputTrial, materializeFileListTrial, materializeFormTrial, materializeGanttTrial, materializeGraphDiagramTrial, materializeGrowingContainerTrial, materializeInfiniteCanvasTrial, materializePaneWithTriggerTrial, materializePrimitiveComponentTrial, materializeSourceViewerTrial, materializeTimerButtonTrial, materializeTodoListTrial, mathChallengeDefinition, metricDefinition, noteDefinition, paneWithTriggerDefinition, parseGanttCoordinate, preflightPrimitiveComponent, primitiveComponentAuthoringTools, primitiveComponentCapabilities, primitiveComponentDefinitions, primitiveComponentViews, propertyDefinition, safeMarkdownHref, shouldGrowingContainerFollowEnd, sourceViewerDefinition, timerButtonDefinition, todoListDefinition, updateTodoListValues, validateAccessGate, validateAlert, validateChart, validateCollectionBoard, validateContainer, validateDateTime, validateEditableTable, validateFileDownload, validateFileInput, validateFileList, validateForm, validateGantt, validateGraphDiagram, validateGrowingContainer, validateInfiniteCanvas, validateMarkdown, validateMathChallenge, validateMetric, validateNote, validatePaneWithTrigger, validatePrimitiveComponentProps, validateProperty, validateSourceViewer, validateTimerButton, validateTodoList, withTrailingEditableRow };
@@ -0,0 +1,2 @@
1
+ import{$ as ta,$a as bc,A as K,Aa as vb,B as L,Ba as wb,C as M,Ca as xb,D as N,Da as yb,E as O,Ea as zb,F as P,Fa as Ab,G as _,Ga as Bb,H as $,Ha as Cb,I as aa,Ia as Kb,J as ba,Ja as Lb,K as ca,Ka as Mb,L as da,La as Nb,M as ea,Ma as Ob,N as fa,Na as Pb,O as ga,Oa as Qb,P as ha,Pa as Rb,Q as ia,Qa as Sb,R as ja,Ra as Tb,S as ka,Sa as Ub,T as la,Ta as Vb,U as ma,Ua as Wb,V as na,Va as Xb,W as oa,Wa as Yb,X as pa,Xa as Zb,Y as qa,Ya as _b,Z as ra,Za as $b,_ as sa,_a as ac,a as e,aa as ua,ab as cc,b as f,ba as va,bb as dc,c as g,ca as wa,cb as ec,d as h,da as xa,db as fc,e as i,ea as ya,eb as gc,f as j,fa as za,fb as hc,g as k,ga as Aa,gb as ic,h as l,ha as Ba,hb as jc,i as m,ia as db,j as n,ja as eb,k as o,ka as fb,l as p,la as gb,m as q,ma as hb,n as r,na as ib,o as s,oa as jb,p as t,pa as kb,q as u,qa as lb,r as v,ra as mb,s as w,sa as nb,t as x,ta as ob,u as E,ua as pb,v as F,va as qb,w as G,wa as rb,x as H,xa as sb,y as I,ya as tb,z as J,za as ub}from"./chunk-2XVVN3LX.js";import{a as y,b as z,c as A,d as B,e as C,f as D}from"./chunk-UP2OAMPY.js";import{a as U,b as V,c as W,d as X,e as Y,f as Z,g as Ca,h as Da,i as Ea,j as Fa,k as Ga,l as Ha,m as Ia,n as Ja,o as Ka,p as La,q as Ma}from"./chunk-H6T3CCU5.js";import{A as ab,B as bb,C as cb,b as Q,c as R,d as S,e as T,l as Na,m as Oa,n as Pa,o as Qa,p as Ra,q as Sa,r as Ta,s as Ua,t as Va,u as Wa,v as Xa,w as Ya,x as Za,y as _a,z as $a}from"./chunk-OFWGYY7S.js";import{a as Db,b as Eb,c as Fb,d as Gb,e as Hb,f as Ib,g as Jb}from"./chunk-DMIV5ZI5.js";import"./chunk-DNHCWSHQ.js";import{a,b,c,d}from"./chunk-XA6FE7ZK.js";export{i as AccessGate,m as Alert,r as CHART_KINDS,p as CHART_SEMANTIC_TOKENS,q as CHART_VARIANTS,y as COLLECTION_BOARD_VARIANTS,G as CONTAINER_ALIGNMENTS,I as CONTAINER_DIRECTIONS,F as CONTAINER_GAPS,H as CONTAINER_JUSTIFICATIONS,E as CONTAINER_VARIANTS,s as Chart,z as CollectionBoard,J as Container,K as ContainerPrimitive,U as DATETIME_VARIANTS,V as DateTime,ma as EditableTable,qa as FileDownload,ua as FileInput,ya as FileList,e as Form,Ca as GANTT_VARIANTS,Ya as GRAPH_DIAGRAM_TONES,Xa as GRAPH_DIAGRAM_VARIANTS,db as GROWING_CONTAINER_FOLLOW_END,Ha as Gantt,_a as GraphDiagram,gb as GrowingContainer,hb as GrowingContainerPrimitive,Qa as INFINITE_CANVAS_SEMANTIC_TOKENS,Na as INFINITE_CANVAS_THEME_COLORS,Pa as INFINITE_CANVAS_VARIANTS,Oa as InfiniteCanvas,Ra as InfiniteCanvasPrimitive,Da as MAX_GANTT_TICKS,rb as Markdown,nb as MathChallenge,ub as Metric,xb as Note,_ as PANE_WITH_TRIGGER_VARIANTS,da as PaneWithTrigger,ba as PaneWithTriggerBody,ca as PaneWithTriggerFooter,$ as PaneWithTriggerHeader,aa as PaneWithTriggerTrigger,Ab as Property,Eb as SOURCE_VIEWER_KINDS,Db as SOURCE_VIEWER_VARIANTS,Fb as SourceViewer,Mb as TIMER_BUTTON_APPEARANCES,Kb as TIMER_BUTTON_PACES,Nb as TIMER_BUTTON_SIZES,Lb as TIMER_BUTTON_VARIANTS,Pb as TimerButton,Wb as TodoList,l as accessGateDefinition,o as alertDefinition,ka as appendEditableRowOnLastRowFocus,Za as buildGraphCanvasModel,x as chartDefinition,D as collectionBoardDefinition,ja as committedEditableRows,c as componentNode,P as containerDefinition,hc as createPrimitiveComponentAuthoringTools,Z as dateTimeDefinition,b as defineComponent,t as describeChart,L as describeContainer,Ja as describeGantt,ib as describeGrowingContainer,Ta as describeInfiniteCanvas,cc as describePrimitiveComponent,Qb as describeTimerButton,la as editableTableColumns,pa as editableTableDefinition,a as eventContract,ta as fileDownloadDefinition,xa as fileInputDefinition,Ba as fileListDefinition,h as formDefinition,R as formatDate,Q as formatDateTime,Ga as formatGanttAxisCoordinate,Fa as formatGanttCoordinate,S as formatTime,Ob as formatTimerButtonCountdown,T as formatTimestamp,Ma as ganttDefinition,u as getChartSchema,A as getCollectionBoardSchema,M as getContainerSchema,W as getDateTimeSchema,Ia as getGanttSchema,$a as getGraphDiagramSchema,jb as getGrowingContainerSchema,Sa as getInfiniteCanvasSchema,gc as getPrimitiveComponentAgentInstructions,ic as getPrimitiveComponentAgentKit,Gb as getSourceViewerSchema,Rb as getTimerButtonSchema,cb as graphDiagramDefinition,mb as growingContainerDefinition,Wa as infiniteCanvasDefinition,ha as isEmptyEditableRow,eb as isGrowingContainerPinnedToEnd,bc as listPrimitiveComponents,tb as markdownDefinition,k as materializeAccessGateTrial,w as materializeChartTrial,C as materializeCollectionBoardTrial,O as materializeContainerTrial,Y as materializeDateTimeTrial,oa as materializeEditableTableTrial,sa as materializeFileDownloadTrial,wa as materializeFileInputTrial,Aa as materializeFileListTrial,g as materializeFormTrial,La as materializeGanttTrial,bb as materializeGraphDiagramTrial,lb as materializeGrowingContainerTrial,Va as materializeInfiniteCanvasTrial,fa as materializePaneWithTriggerTrial,ec as materializePrimitiveComponentTrial,Ib as materializeSourceViewerTrial,Tb as materializeTimerButtonTrial,Yb as materializeTodoListTrial,pb as mathChallengeDefinition,wb as metricDefinition,zb as noteDefinition,ga as paneWithTriggerDefinition,Ea as parseGanttCoordinate,fc as preflightPrimitiveComponent,jc as primitiveComponentAuthoringTools,ac as primitiveComponentCapabilities,$b as primitiveComponentDefinitions,_b as primitiveComponentViews,Cb as propertyDefinition,qb as safeMarkdownHref,fb as shouldGrowingContainerFollowEnd,Jb as sourceViewerDefinition,Ub as timerButtonDefinition,Zb as todoListDefinition,d as trialNode,Vb as updateTodoListValues,j as validateAccessGate,n as validateAlert,v as validateChart,B as validateCollectionBoard,N as validateContainer,X as validateDateTime,na as validateEditableTable,ra as validateFileDownload,va as validateFileInput,za as validateFileList,f as validateForm,Ka as validateGantt,ab as validateGraphDiagram,kb as validateGrowingContainer,Ua as validateInfiniteCanvas,sb as validateMarkdown,ob as validateMathChallenge,vb as validateMetric,yb as validateNote,ea as validatePaneWithTrigger,dc as validatePrimitiveComponentProps,Bb as validateProperty,Hb as validateSourceViewer,Sb as validateTimerButton,Xb as validateTodoList,ia as withTrailingEditableRow};
2
+ //# sourceMappingURL=primitives.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,39 @@
1
+ import { d as ComponentValidationReport, D as DeclarativeComponentDefinition } from './agent-facing-DjAMQ4Ju.js';
2
+ export { e as ComponentAgentFacingMetadata, f as ComponentAuthoringGuide, g as ComponentDefinitionOptions, C as ComponentDescription, c as ComponentEventContract, h as ComponentValidationIssue, i as ComponentVariantDescription, j as componentNode, k as defineComponent, l as eventContract, t as trialNode } from './agent-facing-DjAMQ4Ju.js';
3
+ import * as _gik_ai_kernel from '@gik-ai/kernel';
4
+ import { CapabilityDescriptor } from '@gik-ai/kernel';
5
+ import { a as ComponentAgentKit, b as ComponentAuthoringDescription, d as ComponentCatalogEntry, e as ComponentPreflightReport, C as ComponentAuthoringTool } from './component-authoring-internal-DfFqqPhw.js';
6
+ import { ProjectionView } from '@gik-ai/react';
7
+
8
+ interface SecurityComponentCatalogEntry extends ComponentCatalogEntry {
9
+ }
10
+ interface SecurityComponentAuthoringDescription extends ComponentAuthoringDescription {
11
+ }
12
+ interface SecurityComponentPreflightReport extends ComponentPreflightReport {
13
+ }
14
+ interface SecurityComponentAgentKit extends ComponentAgentKit {
15
+ }
16
+ declare const listSecurityComponents: () => SecurityComponentCatalogEntry[];
17
+ declare const describeSecurityComponent: (capability: string) => SecurityComponentAuthoringDescription;
18
+ declare const validateSecurityComponentProps: (capability: string, props: unknown) => ComponentValidationReport;
19
+ declare const materializeSecurityComponentTrial: (capability: string, variant?: string) => _gik_ai_kernel.ResolvedNode;
20
+ declare const preflightSecurityComponent: (capability: string, props: unknown) => SecurityComponentPreflightReport;
21
+ declare const getSecurityComponentAgentInstructions: (components?: readonly string[]) => string;
22
+ declare const createSecurityComponentAuthoringTools: (components?: readonly string[]) => ComponentAuthoringTool[];
23
+ declare const getSecurityComponentAgentKit: (components?: readonly string[]) => SecurityComponentAgentKit;
24
+ declare const securityComponentAuthoringTools: ComponentAuthoringTool[];
25
+
26
+ declare const securityComponentViews: Record<string, ProjectionView>;
27
+ declare const securityComponentDefinitions: {
28
+ readonly "attack-path": DeclarativeComponentDefinition;
29
+ };
30
+ declare const securityComponentCapabilities: Record<string, CapabilityDescriptor>;
31
+
32
+ declare const ATTACK_PATH_VARIANTS: readonly ["canvas", "diagram", "relations", "gantt", "text"];
33
+ declare const AttackPath: ProjectionView;
34
+ declare function getAttackPathSchema(): Record<string, unknown>;
35
+ declare function validateAttackPath(props: unknown): ComponentValidationReport;
36
+ declare function materializeAttackPathTrial(): _gik_ai_kernel.ResolvedNode;
37
+ declare const attackPathDefinition: DeclarativeComponentDefinition;
38
+
39
+ export { ATTACK_PATH_VARIANTS, AttackPath, ComponentValidationReport, DeclarativeComponentDefinition, type SecurityComponentAgentKit, type SecurityComponentAuthoringDescription, type SecurityComponentCatalogEntry, type SecurityComponentPreflightReport, attackPathDefinition, createSecurityComponentAuthoringTools, describeSecurityComponent, getAttackPathSchema, getSecurityComponentAgentInstructions, getSecurityComponentAgentKit, listSecurityComponents, materializeAttackPathTrial, materializeSecurityComponentTrial, preflightSecurityComponent, securityComponentAuthoringTools, securityComponentCapabilities, securityComponentDefinitions, securityComponentViews, validateAttackPath, validateSecurityComponentProps };
@@ -0,0 +1,2 @@
1
+ import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v}from"./chunk-6JMFZS2Y.js";import"./chunk-VR5CS5LA.js";import"./chunk-H6T3CCU5.js";import"./chunk-OFWGYY7S.js";import{a,b,c,d}from"./chunk-XA6FE7ZK.js";export{e as ATTACK_PATH_VARIANTS,f as AttackPath,j as attackPathDefinition,c as componentNode,t as createSecurityComponentAuthoringTools,b as defineComponent,o as describeSecurityComponent,a as eventContract,g as getAttackPathSchema,s as getSecurityComponentAgentInstructions,u as getSecurityComponentAgentKit,n as listSecurityComponents,i as materializeAttackPathTrial,q as materializeSecurityComponentTrial,r as preflightSecurityComponent,v as securityComponentAuthoringTools,m as securityComponentCapabilities,l as securityComponentDefinitions,k as securityComponentViews,d as trialNode,h as validateAttackPath,p as validateSecurityComponentProps};
2
+ //# sourceMappingURL=security.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}