@mechane-ai/elements 0.65.0 → 0.67.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 +21 -10
- package/dist/ai.js +285 -203
- package/dist/{article-BrUa4Wz1.js → article-anMy8fA5.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +81 -34
- package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-Bh7ZkEQn.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
- package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
- package/dist/{embedding-map-BqDEmy88.js → embedding-map-DmmknG7A.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-DlyNTDzh.js} +22 -21
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Dpyqxgwy.js → image-grid-CxEAQvTf.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +13 -13
- package/dist/kits/interpretability.js +47 -43
- package/dist/kits/operations.js +80 -79
- package/dist/kits/research.js +364 -499
- package/dist/kits/training.js +108 -107
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown--nfaDoR1.js → markdown-Diffqqm7.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/ai/src/index.d.ts +2 -0
- package/dist/packages/ai/src/message-reactions.d.ts +51 -0
- package/dist/packages/ai/src/message.d.ts +3 -1
- package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
- package/dist/packages/collections/src/card-columns.d.ts +30 -0
- package/dist/packages/collections/src/collection-page.d.ts +43 -0
- package/dist/packages/collections/src/column-card.d.ts +15 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
- package/dist/packages/collections/src/data-table.d.ts +2 -2
- package/dist/packages/collections/src/index.d.ts +5 -0
- package/dist/packages/collections/src/table-query.d.ts +9 -1
- package/dist/packages/feedback/src/feedback.d.ts +0 -4
- package/dist/packages/feedback/src/index.d.ts +1 -1
- package/dist/packages/kits/src/research/index.d.ts +0 -2
- package/dist/{param-CwT1RvUS.js → param-CKr8EYxF.js} +1 -1
- package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
- package/dist/{plot-layout-CvkeUuG6.js → plot-layout-CVzSbcU7.js} +24 -23
- package/dist/{plot-surface-yy37R4vs.js → plot-surface-CBhI1alw.js} +1 -1
- package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C970JwWZ.js} +1 -1
- package/dist/{scene-BRhI8XSy.js → scene-C3dCxckI.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-BMOCaa8R.js → slope-chart-DekEJxsy.js} +4 -4
- package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
- package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
- package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
- package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
- package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
- package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
- package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
- package/dist/styles2.css +21 -1
- package/dist/{time-series-CTNVqoUQ.js → time-series-BSNnijxf.js} +8 -8
- package/dist/{timeline-DrsDtEIW.js → timeline-CnxfYSIg.js} +4 -4
- package/dist/{token-heatmap-DddArdH8.js → token-heatmap-CJaXo56P.js} +3 -3
- package/dist/{token-predictions-CBykmPID.js → token-predictions-Bi7aKPnh.js} +3 -3
- package/dist/{transport-r1QgELf8.js → transport-CXj0DV6o.js} +4 -4
- package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-BxOZsjr1.js} +4 -4
- package/dist/{treemap-DgmEw_mr.js → treemap-B2yOAetT.js} +4 -4
- package/dist/{use-tween-BWf44Jy4.js → use-tween-C1TWJwce.js} +1 -1
- package/dist/{violin-plot-BYJnv6sG.js → violin-plot-W2L_2JRo.js} +3 -3
- package/dist/{waterfall-BNseqMas.js → waterfall-Bt73N2Ng.js} +4 -4
- package/package.json +1 -1
- package/recipes/searchable-collection.tsx +74 -76
- package/skills/extend-elements/SKILL.md +2 -1
- package/skills/review-elements/SKILL.md +11 -7
- package/skills/upgrade-elements/SKILL.md +3 -1
- package/skills/upgrade-elements/references/releases.md +20 -0
- package/skills/use-elements/SKILL.md +8 -6
- package/skills/use-elements/references/collections.md +59 -12
- package/skills/use-elements/references/conversations.md +32 -0
- package/skills/use-elements/references/editorial-restraint.md +17 -29
- package/skills/use-elements/references/figures.md +6 -2
- package/skills/use-elements/references/workspace.md +5 -5
- package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CardColumn, CardColumnsLabels, CardColumnsStatus, CardMoveDetails, CardSummary } from './card-columns-model.ts';
|
|
3
|
+
type ColumnHeight = 'bounded' | 'fill';
|
|
4
|
+
export type CardColumnsProps<Item> = {
|
|
5
|
+
/** Names the whole board, such as "Tasks by state". */
|
|
6
|
+
readonly label: string;
|
|
7
|
+
/** The columns in display order, each with its records in display order. The application filters and sorts. */
|
|
8
|
+
readonly columns: ReadonlyArray<CardColumn<Item>>;
|
|
9
|
+
readonly getCardId: (item: Item) => string;
|
|
10
|
+
/** Maps a record onto what its card shows. */
|
|
11
|
+
readonly getCard: (item: Item) => CardSummary;
|
|
12
|
+
/** Formats each column's count. */
|
|
13
|
+
readonly locale: string;
|
|
14
|
+
/**
|
|
15
|
+
* Reports the request to move a card to another column. Leave it out for a read-only board, which draws no move
|
|
16
|
+
* controls. The application changes the record and supplies the new columns.
|
|
17
|
+
*/
|
|
18
|
+
readonly onMoveCard?: ((details: CardMoveDetails<Item>) => void) | undefined;
|
|
19
|
+
/** `bounded` caps each column's height and scrolls its cards. `fill` takes the height of the parent. */
|
|
20
|
+
readonly columnHeight?: ColumnHeight;
|
|
21
|
+
readonly status?: CardColumnsStatus;
|
|
22
|
+
readonly labels?: Partial<CardColumnsLabels> | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Cards in named columns, such as work by state, with an optional keyboard-accessible move menu on each card. The
|
|
26
|
+
* application owns the records, their order, who may move a card and the result of a move. Use `DataTable` to compare
|
|
27
|
+
* records across shared columns.
|
|
28
|
+
*/
|
|
29
|
+
export declare function CardColumns<Item>({ label, columns, status, columnHeight, labels, ...columnProps }: CardColumnsProps<Item>): ReactNode;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { PageLayout } from '../../layout/src/index.ts';
|
|
3
|
+
import type { OptionalSelection, SortProperties, TableRowsProps } from './data-table-rows.tsx';
|
|
4
|
+
import type { ControlledTableQuery, LocalTableQuery } from './table-query.tsx';
|
|
5
|
+
/** Retain rows, including an empty result, only while the same dataset remains authorized. */
|
|
6
|
+
export type CollectionRead<Row> = {
|
|
7
|
+
readonly state: 'ready';
|
|
8
|
+
readonly rows: ReadonlyArray<Row>;
|
|
9
|
+
} | {
|
|
10
|
+
readonly state: 'pending';
|
|
11
|
+
readonly rows?: ReadonlyArray<Row>;
|
|
12
|
+
} | {
|
|
13
|
+
readonly state: 'failed';
|
|
14
|
+
readonly failure: ReactNode;
|
|
15
|
+
readonly rows?: ReadonlyArray<Row>;
|
|
16
|
+
};
|
|
17
|
+
type QueryProps<Row> = {
|
|
18
|
+
readonly query: LocalTableQuery<Row>;
|
|
19
|
+
readonly pagination?: never;
|
|
20
|
+
readonly onEndReached?: never;
|
|
21
|
+
} | ({
|
|
22
|
+
readonly query: ControlledTableQuery;
|
|
23
|
+
} & Pick<TableRowsProps<Row>, 'pagination' | 'onEndReached'>);
|
|
24
|
+
type CollectionProps<Row> = SortProperties<Row> & OptionalSelection<Row> & QueryProps<Row> & Pick<TableRowsProps<Row>, 'getRowId' | 'empty' | 'filteredEmpty' | 'rowAction' | 'activeRowId' | 'focusRowId' | 'onRowHighlightChange' | 'hideHeaders' | 'rowSizing' | 'window' | 'footer' | 'endContent'> & {
|
|
25
|
+
readonly title: string;
|
|
26
|
+
readonly caption?: string;
|
|
27
|
+
readonly read: CollectionRead<Row>;
|
|
28
|
+
readonly actions?: ReactNode;
|
|
29
|
+
/** Approximate the initial page size when reserving the cold read's row geometry. */
|
|
30
|
+
readonly placeholderRows?: number;
|
|
31
|
+
};
|
|
32
|
+
export type CollectionPageProps<Row> = CollectionProps<Row> & {
|
|
33
|
+
readonly navigation?: ComponentProps<typeof PageLayout>['navigation'];
|
|
34
|
+
};
|
|
35
|
+
export type CollectionSectionProps<Row> = CollectionProps<Row> & {
|
|
36
|
+
readonly id?: string;
|
|
37
|
+
readonly meta?: ReactNode;
|
|
38
|
+
};
|
|
39
|
+
/** A full-width primary list with its query in the page title. Supply controlled values for server-paged data. */
|
|
40
|
+
export declare function CollectionPage<Row extends object>({ navigation, ...props }: CollectionPageProps<Row>): ReactNode;
|
|
41
|
+
/** A full-width collection within a record or tab. Its title, query controls and rows share one geometry owner. */
|
|
42
|
+
export declare function CollectionSection<Row extends object>({ id, meta, ...props }: CollectionSectionProps<Row>): ReactNode;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CardColumnsLabels, CardSummary } from './card-columns-model.ts';
|
|
3
|
+
type Destination = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly title: string;
|
|
6
|
+
};
|
|
7
|
+
type ColumnCardProps = {
|
|
8
|
+
readonly summary: CardSummary;
|
|
9
|
+
readonly destinations: ReadonlyArray<Destination>;
|
|
10
|
+
readonly labels: CardColumnsLabels;
|
|
11
|
+
readonly onMove: (toColumnId: string) => void;
|
|
12
|
+
};
|
|
13
|
+
/** One card in a column. The move menu lists the supplied destinations and reports the choice. */
|
|
14
|
+
export declare function ColumnCard({ summary, destinations, labels, onMove }: ColumnCardProps): ReactNode;
|
|
15
|
+
export {};
|
|
@@ -51,6 +51,8 @@ export type DataTableColumnLayout = {
|
|
|
51
51
|
readonly role: DataTableColumnRole;
|
|
52
52
|
readonly width?: number;
|
|
53
53
|
readonly isSecondary?: boolean;
|
|
54
|
+
/** Match rich cell geometry on the first read, such as a label with a second line. */
|
|
55
|
+
readonly placeholder?: ReactNode;
|
|
54
56
|
};
|
|
55
57
|
export type DataTableColumn<Row> = DataTableColumnLayout & {
|
|
56
58
|
readonly cell: (row: Row) => ReactNode;
|
|
@@ -7,7 +7,7 @@ export type DataTableWindow = {
|
|
|
7
7
|
readonly height: number | 'fill';
|
|
8
8
|
readonly estimatedRowHeight?: number;
|
|
9
9
|
};
|
|
10
|
-
type SortProperties<Row> = {
|
|
10
|
+
export type SortProperties<Row> = {
|
|
11
11
|
readonly columns: ReadonlyArray<DataTableColumn<Row>>;
|
|
12
12
|
readonly sort: DataTableSort | undefined;
|
|
13
13
|
readonly onSortChange: (sort: DataTableSort | undefined, details: DataTableSortDetails) => void;
|
|
@@ -23,7 +23,7 @@ type SelectionProperties<Row> = {
|
|
|
23
23
|
readonly onSelectionChange: (selectedIds: ReadonlySet<string>, details: DataTableSelectionDetails) => void;
|
|
24
24
|
readonly selectionLabel: (row: Row) => string;
|
|
25
25
|
};
|
|
26
|
-
type OptionalSelection<Row> = SelectionProperties<Row> | {
|
|
26
|
+
export type OptionalSelection<Row> = SelectionProperties<Row> | {
|
|
27
27
|
readonly selectedIds?: never;
|
|
28
28
|
readonly onSelectionChange?: never;
|
|
29
29
|
readonly selectionLabel?: never;
|
|
@@ -48,7 +48,8 @@ export type TableRowsProps<Row> = SortProperties<Row> & OptionalSelection<Row> &
|
|
|
48
48
|
readonly pagination?: CollectionPaginationProps;
|
|
49
49
|
readonly resultStatus?: TableResultStatus;
|
|
50
50
|
};
|
|
51
|
-
export declare function TableRows<Row extends object>({ rows, columns: suppliedColumns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, focusRowId, onRowHighlightChange, hideCaption, hideHeaders, rowSizing, window, endContent, onEndReached, footer, pagination, resultStatus, isPlaceholder, }: TableRowsProps<Row> & {
|
|
51
|
+
export declare function TableRows<Row extends object>({ rows, columns: suppliedColumns, getRowId, caption, empty, sort, onSortChange, selectedIds, onSelectionChange, selectionLabel, rowAction, activeRowId, focusRowId, onRowHighlightChange, hideCaption, hideHeaders, rowSizing, window, endContent, onEndReached, footer, pagination, resultStatus, isPlaceholder, hasSelectionColumn, }: TableRowsProps<Row> & {
|
|
52
52
|
isPlaceholder?: boolean;
|
|
53
|
+
hasSelectionColumn?: boolean;
|
|
53
54
|
}): ReactNode;
|
|
54
55
|
export {};
|
|
@@ -2,12 +2,12 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { DataTableColumnLayout } from './data-table-layout.tsx';
|
|
3
3
|
import type { TableRowsProps } from './data-table-rows.tsx';
|
|
4
4
|
import type { LocalTableQuery, TableQuery } from './table-query.tsx';
|
|
5
|
-
export type DataTablePlaceholderProps = Pick<DataTableProps<object>, 'caption' | 'hideCaption' | 'hideHeaders' | 'rowSizing' | 'window' | 'footer'> & {
|
|
5
|
+
export type DataTablePlaceholderProps = Pick<DataTableProps<object>, 'caption' | 'hideCaption' | 'hideHeaders' | 'rowSizing' | 'window' | 'footer' | 'pagination'> & {
|
|
6
6
|
readonly columns: ReadonlyArray<DataTableColumnLayout & {
|
|
7
7
|
readonly shouldTruncate?: boolean;
|
|
8
|
-
readonly placeholder?: ReactNode;
|
|
9
8
|
}>;
|
|
10
9
|
readonly rows?: number;
|
|
10
|
+
readonly hasSelectionColumn?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare function DataTablePlaceholder({ columns, rows, hideCaption, ...props }: DataTablePlaceholderProps): ReactNode;
|
|
13
13
|
export type DataTableProps<Row> = TableRowsProps<Row> & ({
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { CollectionPageProps, CollectionRead, CollectionSectionProps } from './collection-page.tsx';
|
|
2
|
+
export { CollectionPage, CollectionSection } from './collection-page.tsx';
|
|
1
3
|
export type { CollectionToolbarProps, FilterChip, FilterChipsProps, FilterRemoveDetails, DisplayOption, DisplayOptionsProps, CollectionPaginationProps, } from './collection-controls.tsx';
|
|
2
4
|
export { CollectionToolbar, FilterChips, DisplayOptions, CollectionPagination } from './collection-controls.tsx';
|
|
3
5
|
export type { DataTableColumn, DataTableColumnLayout, DataTableColumnRole } from './data-table-layout.tsx';
|
|
@@ -7,6 +9,9 @@ export { DataTableText, DataTableTextPlaceholder } from './data-table-text.tsx';
|
|
|
7
9
|
export type { DataTableRowAction } from './data-table-trigger.tsx';
|
|
8
10
|
export type { DataTablePlaceholderProps, DataTableProps } from './data-table.tsx';
|
|
9
11
|
export { DataTable, DataTablePlaceholder } from './data-table.tsx';
|
|
12
|
+
export type { CardColumn, CardColumnsLabels, CardColumnsStatus, CardMoveDetails, CardSummary, } from './card-columns-model.ts';
|
|
13
|
+
export type { CardColumnsProps } from './card-columns.tsx';
|
|
14
|
+
export { CardColumns } from './card-columns.tsx';
|
|
10
15
|
export type { CollectionEndProps, CollectionScrollProps } from './collection-scroll.tsx';
|
|
11
16
|
export { CollectionEnd, CollectionScroll } from './collection-scroll.tsx';
|
|
12
17
|
export type { InspectorProps } from './inspector.tsx';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { CollectionFilter } from './collection-filters.tsx';
|
|
3
3
|
import type { CollectionSearch } from './query-controls.tsx';
|
|
4
|
+
import type { CollectionControlsProps } from './use-collection-controls.tsx';
|
|
4
5
|
export type TableQueryException = {
|
|
5
6
|
readonly reason: string;
|
|
6
7
|
};
|
|
@@ -16,8 +17,10 @@ export type LocalTableQuery<Row> = {
|
|
|
16
17
|
readonly search: ((row: Row) => string) | TableQueryException;
|
|
17
18
|
readonly filters: TableFilterDimensions<TableFilterDimension<Row>>;
|
|
18
19
|
};
|
|
19
|
-
type ControlledTableQuery = {
|
|
20
|
+
export type ControlledTableQuery = {
|
|
20
21
|
readonly mode: 'controlled';
|
|
22
|
+
/** Other active routing constraints the reader can remove from this collection. */
|
|
23
|
+
readonly chips?: CollectionControlsProps['chips'];
|
|
21
24
|
readonly search: CollectionSearch | TableQueryException;
|
|
22
25
|
readonly filters: TableFilterDimensions<CollectionFilter>;
|
|
23
26
|
};
|
|
@@ -60,6 +63,11 @@ export declare function useFrameTableQuery(): boolean;
|
|
|
60
63
|
export declare function controlledTableControls(query: ControlledTableQuery): {
|
|
61
64
|
search: CollectionSearch | undefined;
|
|
62
65
|
filters: never[] | readonly [CollectionFilter, ...CollectionFilter[]];
|
|
66
|
+
chips?: readonly {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
readonly label: string;
|
|
69
|
+
readonly onRemove: (details: import("./collection-controls.tsx").FilterRemoveDetails) => void;
|
|
70
|
+
}[];
|
|
63
71
|
isFiltered: boolean;
|
|
64
72
|
};
|
|
65
73
|
export {};
|
|
@@ -3,9 +3,5 @@ type EmptyStateProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
|
3
3
|
readonly title: string;
|
|
4
4
|
readonly action?: ReactNode;
|
|
5
5
|
};
|
|
6
|
-
type NoticeProps = ComponentProps<'div'> & {
|
|
7
|
-
readonly hasError?: boolean;
|
|
8
|
-
};
|
|
9
6
|
export declare function EmptyState({ title, children, action, ...props }: EmptyStateProps): ReactNode;
|
|
10
|
-
export declare function Notice({ hasError, ...props }: NoticeProps): ReactNode;
|
|
11
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EmptyState
|
|
1
|
+
export { EmptyState } from './feedback.tsx';
|
|
2
2
|
export type { ButtonPlaceholderProps, FieldPlaceholderProps } from './control-placeholders.tsx';
|
|
3
3
|
export { ButtonPlaceholder, FieldPlaceholder } from './control-placeholders.tsx';
|
|
4
4
|
export type { ProgressProps, MeterProps } from './progress.tsx';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export type { CollectionPageProps, CollectionScope, CollectionSectionProps, CollectionStatus, } from './collection-page.tsx';
|
|
2
|
-
export { CollectionPage, CollectionSection } from './collection-page.tsx';
|
|
3
1
|
export type { FindingCardLabels, FindingCardProps, FindingMetric, FindingSource, FindingStatus, } from './finding-card.tsx';
|
|
4
2
|
export { FindingCard } from './finding-card.tsx';
|
|
5
3
|
export type { LineageGraphLabels, LineageGraphProps, LineageNode, LineageNodeKind } from './lineage-graph.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
2
|
-
import { n as t, r as n } from "./code-block-
|
|
2
|
+
import { n as t, r as n } from "./code-block-DbW_t9U4.js";
|
|
3
3
|
import { t as r } from "./viewer-styles-DsFYri4K.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { useCallback as a, useState as o } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as
|
|
1
|
+
import { o as e, u as t } from "./src-Bkov5TTa.js";
|
|
2
|
+
import { d as n } from "./src-CIyuaSCi.js";
|
|
3
3
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
4
4
|
import { a, i as o, n as s, r as c } from "./figure-format-B8kRZMlo.js";
|
|
5
5
|
import { r as l, t as u } from "./scale-C2xgZyZN.js";
|
|
@@ -309,22 +309,22 @@ var _e = { root: {
|
|
|
309
309
|
kLWn49: "x1778rvt",
|
|
310
310
|
$$css: !0
|
|
311
311
|
} };
|
|
312
|
-
function ve({ title:
|
|
312
|
+
function ve({ title: e, id: n, meta: r, actions: i }) {
|
|
313
313
|
let a = m.toArray(r).length > 0, o = m.toArray(i).length > 0, s = a || o, c = a && /* @__PURE__ */ E("div", {
|
|
314
|
-
...d.props(
|
|
314
|
+
...d.props(t.meta),
|
|
315
315
|
children: r
|
|
316
316
|
}), l = o && /* @__PURE__ */ E("div", {
|
|
317
|
-
...d.props(
|
|
317
|
+
...d.props(t.actions),
|
|
318
318
|
children: i
|
|
319
319
|
});
|
|
320
320
|
return /* @__PURE__ */ D("div", {
|
|
321
|
-
...d.props(
|
|
321
|
+
...d.props(t.row, t.reportRow, _e.root),
|
|
322
322
|
children: [/* @__PURE__ */ E("p", {
|
|
323
323
|
id: n,
|
|
324
|
-
...d.props(
|
|
325
|
-
children:
|
|
324
|
+
...d.props(t.title),
|
|
325
|
+
children: e
|
|
326
326
|
}), s && /* @__PURE__ */ D("div", {
|
|
327
|
-
...d.props(
|
|
327
|
+
...d.props(t.trailing),
|
|
328
328
|
children: [c, l]
|
|
329
329
|
})]
|
|
330
330
|
});
|
|
@@ -414,15 +414,15 @@ function P({ tone: e, shape: t = "swatch", children: n }) {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
// packages/charts/src/chart-series-summary.tsx
|
|
417
|
-
function Se({ series:
|
|
418
|
-
return Object.keys(r).length ===
|
|
417
|
+
function Se({ series: t, values: r }) {
|
|
418
|
+
return Object.keys(r).length === t.length && t.every((e) => Object.hasOwn(r, e.id)) ? /* @__PURE__ */ E("dl", {
|
|
419
419
|
"aria-label": "Period summary",
|
|
420
420
|
className: "x78zum5 x1a02dak xaml1ju x1ghz6dp xeuugli",
|
|
421
|
-
children:
|
|
421
|
+
children: t.map((e, t) => /* @__PURE__ */ D("div", {
|
|
422
422
|
...{
|
|
423
423
|
0: { className: "xeuugli" },
|
|
424
424
|
1: { className: "xeuugli xo02m6d xpilrb4 x1t7ytsu x97x49r" }
|
|
425
|
-
}[
|
|
425
|
+
}[t > 0 | 0],
|
|
426
426
|
children: [/* @__PURE__ */ D("dt", {
|
|
427
427
|
className: "x78zum5 x6s0dn4 xunmzkg x153jb6y xy8obcc",
|
|
428
428
|
children: [/* @__PURE__ */ E(P, {
|
|
@@ -431,11 +431,12 @@ function Se({ series: e, values: r }) {
|
|
|
431
431
|
}), e.label]
|
|
432
432
|
}), /* @__PURE__ */ E("dd", {
|
|
433
433
|
className: "x1ghz6dp xbixft x71lla1 xgkpprq xk4h15q x1wjjqco xss6m8b xj0a0fe",
|
|
434
|
-
children: r[e.id] === void 0 ? /* @__PURE__ */ E(
|
|
434
|
+
children: r[e.id] === void 0 ? /* @__PURE__ */ E(n, { width: "6ch" }) : r[e.id]
|
|
435
435
|
})]
|
|
436
436
|
}, e.id))
|
|
437
|
-
}) : /* @__PURE__ */ E(
|
|
438
|
-
|
|
437
|
+
}) : /* @__PURE__ */ E(e, {
|
|
438
|
+
tone: "negative",
|
|
439
|
+
role: "alert",
|
|
439
440
|
children: "Period values must match the chart series identifiers."
|
|
440
441
|
});
|
|
441
442
|
}
|
|
@@ -451,7 +452,7 @@ function we() {
|
|
|
451
452
|
return g(F);
|
|
452
453
|
}
|
|
453
454
|
// packages/charts/src/chart-frame.tsx
|
|
454
|
-
function Te({ title:
|
|
455
|
+
function Te({ title: e, description: n, children: r, actions: i, footer: a, report: o, series: s = [], figure: c = {}, seriesLegend: l, scaleLegend: u }) {
|
|
455
456
|
let f = _(), h = we() && i === void 0, g = /* @__PURE__ */ D(T, { children: [
|
|
456
457
|
l !== void 0 && /* @__PURE__ */ E("div", {
|
|
457
458
|
className: "xeuugli x1jfksii",
|
|
@@ -468,15 +469,15 @@ function Te({ title: t, description: n, children: r, actions: i, footer: a, repo
|
|
|
468
469
|
})
|
|
469
470
|
] });
|
|
470
471
|
if (o !== void 0) {
|
|
471
|
-
let
|
|
472
|
+
let t = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ E(Se, {
|
|
472
473
|
series: s,
|
|
473
474
|
values: o.seriesValues
|
|
474
|
-
}), r =
|
|
475
|
+
}), r = t != null && t !== !1, a = m.toArray([o.actions, i]).length > 0, l = /* @__PURE__ */ D(T, { children: [o.actions, i] });
|
|
475
476
|
return /* @__PURE__ */ D("figure", {
|
|
476
477
|
...p(c, { "aria-labelledby": f }, { className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81" }),
|
|
477
478
|
children: [/* @__PURE__ */ E("figcaption", { children: /* @__PURE__ */ E(ve, {
|
|
478
479
|
id: f,
|
|
479
|
-
title:
|
|
480
|
+
title: e,
|
|
480
481
|
meta: o.meta,
|
|
481
482
|
actions: a && l
|
|
482
483
|
}) }), /* @__PURE__ */ D("div", {
|
|
@@ -484,7 +485,7 @@ function Te({ title: t, description: n, children: r, actions: i, footer: a, repo
|
|
|
484
485
|
children: [
|
|
485
486
|
r && /* @__PURE__ */ E("div", {
|
|
486
487
|
className: "x1xxlxpq xeuugli",
|
|
487
|
-
children:
|
|
488
|
+
children: t
|
|
488
489
|
}),
|
|
489
490
|
n !== void 0 && /* @__PURE__ */ E("p", {
|
|
490
491
|
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
@@ -507,13 +508,13 @@ function Te({ title: t, description: n, children: r, actions: i, footer: a, repo
|
|
|
507
508
|
children: [/* @__PURE__ */ E("p", {
|
|
508
509
|
id: f,
|
|
509
510
|
className: "x1ghz6dp x12myhf4 x1778rvt x1b5ytql",
|
|
510
|
-
children:
|
|
511
|
+
children: e
|
|
511
512
|
}), n !== void 0 && /* @__PURE__ */ E("p", {
|
|
512
513
|
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
513
514
|
children: n
|
|
514
515
|
})]
|
|
515
516
|
}), i !== void 0 && /* @__PURE__ */ E("div", {
|
|
516
|
-
...d.props(
|
|
517
|
+
...d.props(t.actions),
|
|
517
518
|
children: i
|
|
518
519
|
})]
|
|
519
520
|
}), g]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./plot-width-D3hTycYX.js";
|
|
2
|
-
import { O as n, c as r } from "./plot-layout-
|
|
2
|
+
import { O as n, c as r } from "./plot-layout-CVzSbcU7.js";
|
|
3
3
|
import * as i from "@stylexjs/stylex";
|
|
4
4
|
import { useId as a } from "react";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as e } from "./plot-layout-
|
|
1
|
+
import { M as e } from "./plot-layout-CVzSbcU7.js";
|
|
2
2
|
import { t } from "./label-spacing-BncjePGb.js";
|
|
3
3
|
import { n, t as r } from "./label-place-Z0fryBZb.js";
|
|
4
4
|
import { c as i, f as a } from "./plot-marks-DgCtcd3L.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as e } from "./chart-link-AE_xuxiP.js";
|
|
2
|
-
import { A as t, D as n, E as r, O as i, S as a, c as o, j as s, l as c, s as l, t as u, u as d } from "./plot-layout-
|
|
3
|
-
import { i as f, l as p, n as m, r as h, t as g } from "./figure-frame-
|
|
4
|
-
import { r as _, t as v } from "./plot-surface-
|
|
2
|
+
import { A as t, D as n, E as r, O as i, S as a, c as o, j as s, l as c, s as l, t as u, u as d } from "./plot-layout-CVzSbcU7.js";
|
|
3
|
+
import { i as f, l as p, n as m, r as h, t as g } from "./figure-frame-DlyNTDzh.js";
|
|
4
|
+
import { r as _, t as v } from "./plot-surface-CBhI1alw.js";
|
|
5
5
|
import { a as y, i as b, r as x } from "./tone-scope-DKiSw-JR.js";
|
|
6
|
-
import { _ as S, a as C, g as w, o as T, t as E, u as D } from "./param-
|
|
6
|
+
import { _ as S, a as C, g as w, o as T, t as E, u as D } from "./param-CKr8EYxF.js";
|
|
7
7
|
import { n as O, t as k } from "./clock-DSm5lkNE.js";
|
|
8
8
|
import { o as A, r as j } from "./scale-C2xgZyZN.js";
|
|
9
|
-
import { t as M } from "./use-tween-
|
|
9
|
+
import { t as M } from "./use-tween-C1TWJwce.js";
|
|
10
10
|
import { t as N } from "./chart-tones-ei3BC2AL.js";
|
|
11
11
|
import { r as P } from "./tokens.stylex-dF5CACEJ.js";
|
|
12
12
|
import { r as F } from "./figure-format-B8kRZMlo.js";
|
|
@@ -16,7 +16,7 @@ import { a as z, c as ee, f as te, n as B, t as V, u as ne } from "./plot-marks-
|
|
|
16
16
|
import { i as re, r as ie, t as ae } from "./path-BglsXpnO.js";
|
|
17
17
|
import { t as oe } from "./plot-axes-D5S9BnBa.js";
|
|
18
18
|
import { t as se } from "./heatmap-scale-Zte6Ya-g.js";
|
|
19
|
-
import { d as ce, f as le } from "./token-predictions-
|
|
19
|
+
import { d as ce, f as le } from "./token-predictions-Bi7aKPnh.js";
|
|
20
20
|
import * as H from "@stylexjs/stylex";
|
|
21
21
|
import { Children as ue, createContext as de, memo as fe, use as pe, useEffect as me, useId as he, useLayoutEffect as U, useMemo as ge, useRef as _e, useState as W, useSyncExternalStore as ve } from "react";
|
|
22
22
|
import { bindDrag as ye, dragThreshold as be } from "@ui-sdk/core";
|
package/dist/scene.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as LessonFlow, t as MorphScope, tt as Scene, H as SceneAxes, q as SceneBracket, G as SceneCallout, C as SceneCard, g as SceneCells, L as SceneCurve, U as SceneCustom, i as SceneFlow, J as SceneGroup, W as SceneHighlight, $ as SceneLayer, X as SceneNode, et as SceneOutside, I as ScenePoint, F as SceneProjection, P as SceneRegion, N as SceneRule, b as SceneSlot, x as SceneStack, u as SceneToken, l as SceneTokens, M as SceneVector, Y as SceneWire, w as cardRanks, T as cardSuits, v as cellGap, R as curveResolutions, nt as edgePoint, mt as fillLabel, a as flowNodeSize, s as flowPlan, c as flowPositions, n as morphLabels, rt as nodeBox, it as padRect, V as planeLabels, z as planeLimits, B as planeThicknesses, at as rectCenter, ot as rectsOverlap, E as sceneCardLabels, O as sceneCardSizes, y as sceneCellSizes, _ as sceneCellsLabels, st as sceneCircleSizes, Z as sceneContextColor, o as sceneFlowLabels, ht as sceneLabels, gt as sceneLimits, ct as sceneNodeSizes, Q as sceneOutlines, S as sceneStackLabels, _t as sceneStaggers, vt as sceneStore, d as sceneTokenLabels, lt as sidePoint, k as stackBounds, A as stackGaps, j as stackPlace, D as suitTones, p as tokenBox, m as tokenFlow, h as tokenGaps, f as tokenPercent, ut as unionRect, K as useObstacle, dt as useSceneContext, ft as useSceneFrames, pt as useSceneObject } from "./scene-
|
|
1
|
+
export { r as LessonFlow, t as MorphScope, tt as Scene, H as SceneAxes, q as SceneBracket, G as SceneCallout, C as SceneCard, g as SceneCells, L as SceneCurve, U as SceneCustom, i as SceneFlow, J as SceneGroup, W as SceneHighlight, $ as SceneLayer, X as SceneNode, et as SceneOutside, I as ScenePoint, F as SceneProjection, P as SceneRegion, N as SceneRule, b as SceneSlot, x as SceneStack, u as SceneToken, l as SceneTokens, M as SceneVector, Y as SceneWire, w as cardRanks, T as cardSuits, v as cellGap, R as curveResolutions, nt as edgePoint, mt as fillLabel, a as flowNodeSize, s as flowPlan, c as flowPositions, n as morphLabels, rt as nodeBox, it as padRect, V as planeLabels, z as planeLimits, B as planeThicknesses, at as rectCenter, ot as rectsOverlap, E as sceneCardLabels, O as sceneCardSizes, y as sceneCellSizes, _ as sceneCellsLabels, st as sceneCircleSizes, Z as sceneContextColor, o as sceneFlowLabels, ht as sceneLabels, gt as sceneLimits, ct as sceneNodeSizes, Q as sceneOutlines, S as sceneStackLabels, _t as sceneStaggers, vt as sceneStore, d as sceneTokenLabels, lt as sidePoint, k as stackBounds, A as stackGaps, j as stackPlace, D as suitTones, p as tokenBox, m as tokenFlow, h as tokenGaps, f as tokenPercent, ut as unionRect, K as useObstacle, dt as useSceneContext, ft as useSceneFrames, pt as useSceneObject } from "./scene-C3dCxckI.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as e } from "./accessibility-P89UG9-r.js";
|
|
2
|
-
import { A as t, E as n, M as r, S as i, a, j as o, l as s, n as c, o as l, s as u, t as d } from "./plot-layout-
|
|
2
|
+
import { A as t, E as n, M as r, S as i, a, j as o, l as s, n as c, o as l, s as u, t as d } from "./plot-layout-CVzSbcU7.js";
|
|
3
3
|
import { i as f, r as p } from "./chart-link-AE_xuxiP.js";
|
|
4
4
|
import { a as m } from "./tone-scope-DKiSw-JR.js";
|
|
5
5
|
import { r as h, t as g } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as _, o as v, r as y } from "./scale-C2xgZyZN.js";
|
|
7
7
|
import { t as b } from "./chart-cursor-1mFd48Jc.js";
|
|
8
|
-
import { c as x, i as ee, l as S, n as C, o as w, r as te, t as T } from "./figure-frame-
|
|
8
|
+
import { c as x, i as ee, l as S, n as C, o as w, r as te, t as T } from "./figure-frame-DlyNTDzh.js";
|
|
9
9
|
import { n as E } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { t as D } from "./plot-axes-D5S9BnBa.js";
|
|
11
11
|
import { a as O, c as k, l as A, n as ne, o as re } from "./plot-marks-DgCtcd3L.js";
|
|
12
|
-
import { n as ie, r as ae, t as oe } from "./plot-surface-
|
|
12
|
+
import { n as ie, r as ae, t as oe } from "./plot-surface-CBhI1alw.js";
|
|
13
13
|
import { t as j } from "./label-spacing-BncjePGb.js";
|
|
14
14
|
import { n as se, t as ce } from "./label-place-Z0fryBZb.js";
|
|
15
|
-
import { t as le } from "./reference-lines-
|
|
15
|
+
import { t as le } from "./reference-lines-C970JwWZ.js";
|
|
16
16
|
import { n as ue, r as M, t as de } from "./path-BglsXpnO.js";
|
|
17
17
|
import { t as fe } from "./locate-Bcg3QcP4.js";
|
|
18
18
|
import { t as N } from "./heatmap-scale-Zte6Ya-g.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-
|
|
1
|
+
import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { t as l } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
-
import { a as u, i as d, o as f } from "./src-
|
|
3
|
+
import { a as u, i as d, o as f } from "./src-Dlh99sPD.js";
|
|
4
4
|
import { n as p } from "./accessibility-P89UG9-r.js";
|
|
5
5
|
import { a as m, i as h, t as g } from "./src-na2DdkKI.js";
|
|
6
|
-
import { r as _ } from "./commands-
|
|
6
|
+
import { r as _ } from "./commands-C7Zrp-tG.js";
|
|
7
7
|
import * as v from "@stylexjs/stylex";
|
|
8
8
|
import { Button as y } from "@ui-sdk/react/button";
|
|
9
9
|
import { createParts as b, mergeProps as x } from "@ui-sdk/react/primitive";
|