@mechane-ai/elements 0.58.1 → 0.59.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/README.md +1 -1
- package/dist/ai.js +1 -1
- package/dist/catalog.json +5 -1
- package/dist/content.js +1 -1
- package/dist/kits/research.js +1 -1
- package/dist/packages/content/src/has-renderable-node.d.ts +2 -0
- package/dist/packages/content/src/index.d.ts +1 -1
- package/dist/packages/content/src/playback-bar.d.ts +11 -4
- package/dist/packages/content/src/timeline-scrubber.d.ts +6 -2
- package/dist/src-BAlO76fa.js +1140 -0
- package/package.json +1 -1
- package/skills/use-elements/SKILL.md +18 -18
- package/dist/src-DWKqgI2I.js +0 -957
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ Every path below belongs to `@mechane-ai/elements`. There is one package, versio
|
|
|
129
129
|
| `/navigation/commands` | Command palette and scoped application-owned shortcuts. |
|
|
130
130
|
| `/layout` | Application shell, sidebar, toolbars, compound record pages, and resizable panes. |
|
|
131
131
|
| `/collections` | Tables, inspectors, collection controls, timelines, metrics, and timestamps. |
|
|
132
|
-
| `/content` | Trace, JSON, recorded logs, and
|
|
132
|
+
| `/content` | Trace, JSON, recorded logs, stack traces, media, and playback controls. |
|
|
133
133
|
| `/content/link` | Safe content links without a renderer dependency. |
|
|
134
134
|
| `/content/markdown` | Completed and streaming Markdown, embedded headings, and inert previews. |
|
|
135
135
|
| `/content/code` | Source-preserving code highlighting. |
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as e, O as t, T as n, h as r, i, k as a, m as o, t as s, v as c } from "./src-9EJskqB_.js";
|
|
2
2
|
import { t as l } from "./code-block-BZsY2sh3.js";
|
|
3
|
-
import { f as u } from "./src-
|
|
3
|
+
import { f as u } from "./src-BAlO76fa.js";
|
|
4
4
|
import { t as d } from "./content-link-PnpcnTCx.js";
|
|
5
5
|
import { n as f, r as p } from "./markdown-VpLw_P9T.js";
|
|
6
6
|
import { r as m, t as h } from "./src-na2DdkKI.js";
|
package/dist/catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@mechane-ai/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"recipes": [
|
|
5
5
|
{
|
|
6
6
|
"slug": "allocation-report",
|
|
@@ -1315,6 +1315,10 @@
|
|
|
1315
1315
|
"kind": "type",
|
|
1316
1316
|
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1317
1317
|
},
|
|
1318
|
+
"TimelineScrubberChangeDetails": {
|
|
1319
|
+
"kind": "type",
|
|
1320
|
+
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
|
1321
|
+
},
|
|
1318
1322
|
"TimelineScrubberProps": {
|
|
1319
1323
|
"kind": "type",
|
|
1320
1324
|
"declaration": "dist/packages/content/src/timeline-scrubber.d.ts"
|
package/dist/content.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { p as JsonViewer, f as LogViewer, u as MediaViewer, d as MediaViewerPlaceholder, l as PlaybackBar, c as StackTrace, i as TextMatch, r as TimelineScrubber, n as Trace, t as ViewportFrame, a as fuzzyScore, o as matchRanges, s as matchSegments } from "./src-
|
|
1
|
+
export { p as JsonViewer, f as LogViewer, u as MediaViewer, d as MediaViewerPlaceholder, l as PlaybackBar, c as StackTrace, i as TextMatch, r as TimelineScrubber, n as Trace, t as ViewportFrame, a as fuzzyScore, o as matchRanges, s as matchSegments } from "./src-BAlO76fa.js";
|
package/dist/kits/research.js
CHANGED
|
@@ -7,7 +7,7 @@ import { r as O } from "../figure-format-B8kRZMlo.js";
|
|
|
7
7
|
import { n as k } from "../src-na2DdkKI.js";
|
|
8
8
|
import { a as A, t as j } from "../tree-diagram-BDj4TGXb.js";
|
|
9
9
|
import { f as M } from "../time-series-CoAtNizi.js";
|
|
10
|
-
import { i as N } from "../src-
|
|
10
|
+
import { i as N } from "../src-BAlO76fa.js";
|
|
11
11
|
import "@stylexjs/stylex";
|
|
12
12
|
import { useEffect as ee, useState as P } from "react";
|
|
13
13
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ export type { StackFrame, StackTraceProps } from './stack-trace.tsx';
|
|
|
10
10
|
export { StackTrace } from './stack-trace.tsx';
|
|
11
11
|
export type { MatchRange, MatchSegment, TextMatchMode, TextMatchProps, TextMatchTone } from './text-match.tsx';
|
|
12
12
|
export { fuzzyScore, matchRanges, matchSegments, TextMatch } from './text-match.tsx';
|
|
13
|
-
export type { TimelineMarker, TimelineMarkerTone, TimelineScrubberProps } from './timeline-scrubber.tsx';
|
|
13
|
+
export type { TimelineMarker, TimelineMarkerTone, TimelineScrubberChangeDetails, TimelineScrubberProps, } from './timeline-scrubber.tsx';
|
|
14
14
|
export { TimelineScrubber } from './timeline-scrubber.tsx';
|
|
15
15
|
export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
|
|
16
16
|
export { Trace } from './trace.tsx';
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ControlDensity } from '../../core/src/index.ts';
|
|
3
3
|
import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
|
|
4
|
-
|
|
4
|
+
type PlaybackBarSpeedProps = {
|
|
5
|
+
readonly speed: number;
|
|
6
|
+
readonly onSpeedChange: (speed: number) => void;
|
|
7
|
+
readonly speeds?: ReadonlyArray<number>;
|
|
8
|
+
} | {
|
|
9
|
+
readonly speed?: never;
|
|
10
|
+
readonly onSpeedChange?: never;
|
|
11
|
+
readonly speeds?: never;
|
|
12
|
+
};
|
|
13
|
+
export type PlaybackBarProps = PlaybackBarSpeedProps & {
|
|
5
14
|
readonly isPlaying: boolean;
|
|
6
15
|
readonly onPlayingChange: (isPlaying: boolean) => void;
|
|
7
16
|
readonly onStepBackward?: () => void;
|
|
8
17
|
readonly onStepForward?: () => void;
|
|
9
|
-
readonly speed?: number;
|
|
10
|
-
readonly speeds?: ReadonlyArray<number>;
|
|
11
|
-
readonly onSpeedChange?: (speed: number) => void;
|
|
12
18
|
readonly readout?: string;
|
|
13
19
|
readonly actions?: ReactNode;
|
|
14
20
|
readonly density?: ControlDensity;
|
|
@@ -24,3 +30,4 @@ export type PlaybackBarProps = {
|
|
|
24
30
|
* and trailing actions. Leaves playback clocks, frame advancement, and media state to the consuming application.
|
|
25
31
|
*/
|
|
26
32
|
export declare function PlaybackBar({ isPlaying, onPlayingChange, onStepBackward, onStepForward, speed, speeds, onSpeedChange, readout, actions, density, isDisabled, playLabel, pauseLabel, label, xstyle, }: PlaybackBarProps): ReactNode;
|
|
33
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChangeDetails } from '@ui-sdk/core';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
|
|
3
4
|
export type TimelineMarkerTone = 'neutral' | 'positive' | 'warning' | 'negative' | 'accent';
|
|
@@ -7,12 +8,14 @@ export type TimelineMarker = {
|
|
|
7
8
|
readonly tone?: TimelineMarkerTone;
|
|
8
9
|
readonly label: string;
|
|
9
10
|
};
|
|
11
|
+
/** Why the timeline position changed: pointer scrubbing, keyboard stepping, marker navigation, or a call. */
|
|
12
|
+
export type TimelineScrubberChangeDetails = ChangeDetails<'scrub' | 'step-key' | 'marker' | 'imperative'>;
|
|
10
13
|
export type TimelineScrubberProps = {
|
|
11
14
|
readonly value: number;
|
|
12
15
|
readonly max: number;
|
|
13
16
|
readonly min?: number;
|
|
14
17
|
readonly step?: number;
|
|
15
|
-
readonly onValueChange: (value: number) => void;
|
|
18
|
+
readonly onValueChange: (value: number, details?: TimelineScrubberChangeDetails) => void;
|
|
16
19
|
readonly onScrubStart?: () => void;
|
|
17
20
|
readonly onScrubEnd?: () => void;
|
|
18
21
|
readonly markers?: ReadonlyArray<TimelineMarker>;
|
|
@@ -25,6 +28,7 @@ export type TimelineScrubberProps = {
|
|
|
25
28
|
};
|
|
26
29
|
/**
|
|
27
30
|
* Accessible horizontal scrub track for media or simulation timelines with optional clickable event markers. Supports
|
|
28
|
-
* keyboard stepping,
|
|
31
|
+
* keyboard stepping, `[`/`]` and `Alt+Arrow` marker jumping, `Enter`/`Space` marker selection, pointer capture
|
|
32
|
+
* dragging, and `@mechane-ai/elements/agent` inspection while leaving playback timing to the caller.
|
|
29
33
|
*/
|
|
30
34
|
export declare function TimelineScrubber({ value, max, min, step, onValueChange, onScrubStart, onScrubEnd, markers, onMarkerSelect, formatValue, isDisabled, label, xstyle, }: TimelineScrubberProps): ReactNode;
|