@weasel-js/labkit 1.2.0 → 1.3.0-pre.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/dist/_dts/{DrawCommand-C_XboUpz.d.ts → DrawCommand-DBB45NfN.d.ts} +196 -52
- package/dist/_dts/PrefsForm-BYa6cWnO.d.ts +201 -0
- package/dist/_dts/index-DgcNdEdh.d.ts +314 -0
- package/dist/_dts/types-1Sdxy_Pv.d.ts +90 -0
- package/dist/_dts/types-AHlQxBNN.d.ts +162 -0
- package/dist/_dts/{useTrialState-BMNIx3Cy.d.ts → useTrialState-CsGMjhu9.d.ts} +5 -87
- package/dist/canvas/index.d.ts +7 -3
- package/dist/canvas/index.js +2 -1
- package/dist/chrome/index.d.ts +86 -0
- package/dist/chrome/index.js +8 -0
- package/dist/chrome/index.js.map +1 -0
- package/dist/{chunk-VUU5UXHE.js → chunk-4TMMVIDM.js} +8 -5
- package/dist/chunk-4TMMVIDM.js.map +1 -0
- package/dist/{chunk-THBG7FQZ.js → chunk-HFDVGF4X.js} +15 -12
- package/dist/chunk-HFDVGF4X.js.map +1 -0
- package/dist/{chunk-574LJAV4.js → chunk-NS54R52R.js} +31 -21
- package/dist/chunk-NS54R52R.js.map +1 -0
- package/dist/{chunk-G5TJVQQT.js → chunk-O2BULFHX.js} +5 -14
- package/dist/chunk-O2BULFHX.js.map +1 -0
- package/dist/chunk-O7NVSCLN.js +266 -0
- package/dist/chunk-O7NVSCLN.js.map +1 -0
- package/dist/chunk-PO6L3NSH.js +366 -0
- package/dist/chunk-PO6L3NSH.js.map +1 -0
- package/dist/chunk-PQJ5B2U2.js +27 -0
- package/dist/chunk-PQJ5B2U2.js.map +1 -0
- package/dist/chunk-RVNN4CHQ.js +212 -0
- package/dist/chunk-RVNN4CHQ.js.map +1 -0
- package/dist/chunk-TLGRYALP.js +6151 -0
- package/dist/chunk-TLGRYALP.js.map +1 -0
- package/dist/{chunk-SFL7NFKN.js → chunk-V7PRSIRQ.js} +15 -7
- package/dist/chunk-V7PRSIRQ.js.map +1 -0
- package/dist/{chunk-BOHF3PQO.js → chunk-Z6HJ5FEM.js} +8111 -5190
- package/dist/chunk-Z6HJ5FEM.js.map +1 -0
- package/dist/chunk-ZZAYVX4X.js +505 -0
- package/dist/chunk-ZZAYVX4X.js.map +1 -0
- package/dist/controls/index.d.ts +19 -5
- package/dist/controls/index.js +3 -1
- package/dist/dragdrop/index.d.ts +4 -2
- package/dist/index.d.ts +246 -106
- package/dist/index.js +673 -559
- package/dist/index.js.map +1 -1
- package/dist/layers/index.d.ts +5 -3
- package/dist/layers/index.js +2 -1
- package/dist/passthrough/weasel-canvas.d.ts +69 -13
- package/dist/passthrough/weasel-canvas.js +1 -1
- package/dist/passthrough/weasel-ui.d.ts +3799 -3672
- package/dist/passthrough/weasel-ui.js +2 -2
- package/dist/primitives/index.d.ts +102 -8
- package/dist/primitives/index.js +4 -1
- package/dist/state/index.d.ts +3 -2
- package/dist/state/index.js +2 -2
- package/dist/styles.css +542 -153
- package/dist/surface/index.js +2 -1
- package/dist/ui/layers/index.js +4 -3
- package/dist/undo/index.d.ts +4 -2
- package/package.json +16 -7
- package/src/canvas/AGENTS.md +4 -0
- package/src/canvas/CanvasStack.tsx +6 -2
- package/src/canvas/useLayerScheduler.ts +22 -15
- package/src/canvas/usePanZoom.test.ts +80 -0
- package/src/canvas/usePanZoom.ts +16 -2
- package/src/chrome/ChromeRegions.stories.tsx +106 -0
- package/src/chrome/builtins.test.ts +153 -0
- package/src/chrome/builtins.tsx +205 -0
- package/src/chrome/index.ts +25 -0
- package/src/chrome/merge.test.ts +51 -0
- package/src/chrome/merge.ts +52 -0
- package/src/chrome/regions/PaletteRegion.less +14 -0
- package/src/chrome/regions/PaletteRegion.test.tsx +36 -0
- package/src/chrome/regions/PaletteRegion.tsx +41 -0
- package/src/chrome/regions/SidebarRegion.tsx +56 -0
- package/src/chrome/regions/StatusRegion.tsx +31 -0
- package/src/chrome/regions/TitleBarRegion.tsx +41 -0
- package/src/chrome/regions/ToolbarRegion.test.tsx +82 -0
- package/src/chrome/regions/ToolbarRegion.tsx +71 -0
- package/src/chrome/regions/ViewportRegion.less +42 -0
- package/src/chrome/regions/ViewportRegion.tsx +37 -0
- package/src/chrome/regions/regions.test.tsx +81 -0
- package/src/chrome/types.ts +127 -0
- package/src/config/builder.test.ts +87 -0
- package/src/config/builder.ts +224 -0
- package/src/config/fromConfigField.test.ts +93 -0
- package/src/config/fromConfigField.ts +74 -0
- package/src/config/index.ts +22 -0
- package/src/config/resolve.test.ts +120 -0
- package/src/config/resolve.ts +67 -0
- package/src/config/rules.ts +68 -0
- package/src/config/types.ts +108 -0
- package/src/config/useConfigSchema.ts +30 -0
- package/src/config/visible.ts +20 -0
- package/src/controls/ControlPanel.less +4 -58
- package/src/controls/ControlPanel.stories.tsx +86 -0
- package/src/controls/ControlPanel.test.tsx +223 -10
- package/src/controls/ControlPanel.tsx +202 -203
- package/src/dragdrop/DragDropRuntime.tsx +36 -18
- package/src/dragdrop/DragGhost.less +1 -1
- package/src/dragdrop/Palette.less +1 -1
- package/src/index.ts +25 -3
- package/src/instrument/SineWave.smoke.test.tsx +8 -1
- package/src/instrument/defineInstrument.test.ts +38 -1
- package/src/instrument/defineInstrument.ts +31 -4
- package/src/instrument/index.ts +1 -0
- package/src/instrument/types.ts +27 -4
- package/src/instrument/validateConfigSchema.test.ts +13 -3
- package/src/instrument/validateConfigSchema.ts +7 -10
- package/src/lab/Lab.chrome.test.tsx +65 -0
- package/src/lab/Lab.tsx +58 -15
- package/src/lab/LabContext.ts +6 -0
- package/src/lab/LabFullChrome.stories.tsx +308 -0
- package/src/lab/LabHeader.test.tsx +42 -0
- package/src/lab/LabHeader.tsx +57 -0
- package/src/lab/LabPalette.test.tsx +35 -0
- package/src/lab/LabPalette.tsx +34 -0
- package/src/lab/LabShell.less +50 -3
- package/src/lab/Workspace.less +1 -30
- package/src/lab/Workspace.test.tsx +20 -10
- package/src/lab/Workspace.tsx +5 -8
- package/src/lab/index.ts +2 -0
- package/src/layers/AGENTS.md +1 -1
- package/src/layers/LayerList.less +31 -7
- package/src/layers/LayerList.tsx +17 -4
- package/src/passthrough/weasel-ui.ts +23 -0
- package/src/primitives/DragHandleGlyph.tsx +29 -0
- package/src/primitives/FloatingPanel.less +28 -0
- package/src/primitives/FloatingPanel.stories.tsx +46 -0
- package/src/primitives/FloatingPanel.test.tsx +240 -0
- package/src/primitives/FloatingPanel.tsx +190 -0
- package/src/primitives/FpsMeter.test.tsx +44 -0
- package/src/primitives/FpsMeter.tsx +20 -9
- package/src/primitives/JobProgress.less +69 -0
- package/src/primitives/JobProgress.stories.tsx +48 -0
- package/src/primitives/JobProgress.tsx +65 -0
- package/src/primitives/Legend.less +47 -0
- package/src/primitives/Legend.stories.tsx +32 -0
- package/src/primitives/Legend.test.tsx +57 -0
- package/src/primitives/Legend.tsx +40 -0
- package/src/primitives/Sidebar.less +32 -2
- package/src/primitives/StatusBar.less +7 -0
- package/src/primitives/StatusBar.tsx +10 -3
- package/src/primitives/Toolbar.less +50 -3
- package/src/primitives/Toolbar.test.tsx +67 -1
- package/src/primitives/Toolbar.tsx +72 -6
- package/src/primitives/ZoomControl.less +31 -0
- package/src/primitives/ZoomControl.tsx +76 -0
- package/src/primitives/floating.entry.test.tsx +14 -0
- package/src/primitives/index.ts +10 -2
- package/src/primitives/useRovingTabIndex.test.ts +27 -0
- package/src/primitives/useRovingTabIndex.ts +79 -0
- package/src/state/store.ts +11 -3
- package/src/state/toolSlot.test.ts +36 -0
- package/src/state/types.ts +4 -0
- package/src/styles.less +6 -0
- package/src/surface/useTiledSurface.ts +14 -10
- package/src/test-setup.ts +26 -0
- package/src/theme/base.less +19 -2
- package/src/theme/interstellar.tokens.json +6 -2
- package/src/tools/types.ts +24 -0
- package/src/trial/Trial.config.test.tsx +113 -0
- package/src/trial/Trial.job.test.tsx +13 -15
- package/src/trial/Trial.less +115 -10
- package/src/trial/Trial.stories.tsx +1 -0
- package/src/trial/Trial.test.tsx +67 -96
- package/src/trial/Trial.tsx +80 -39
- package/src/trial/TrialChrome.tsx +99 -80
- package/src/trial/TrialDragContext.ts +10 -0
- package/src/trial/TrialTitleBar.tsx +41 -0
- package/src/trial/index.ts +1 -15
- package/src/trial/trialChrome.borders.test.ts +38 -0
- package/src/ui/layers/LayerStack.less +9 -9
- package/src/ui/layers/LayerStack.tsx +1 -13
- package/src/ui/properties/CurveField.less +2 -2
- package/src/ui/properties/CurveField.test.tsx +11 -11
- package/src/ui/properties/PropertyGroup.less +2 -2
- package/src/ui/properties/PropertyPanel.less +55 -41
- package/src/ui/properties/SpeechBalloonPanels.stories.tsx +4 -2
- package/src/ui/properties/storyLayouts.tsx +2 -2
- package/dist/_dts/index-JFAYj5Tv.d.ts +0 -144
- package/dist/_dts/types-x92Kfeme.d.ts +0 -62
- package/dist/chunk-574LJAV4.js.map +0 -1
- package/dist/chunk-5R2ATYPJ.js +0 -201
- package/dist/chunk-5R2ATYPJ.js.map +0 -1
- package/dist/chunk-73KA7WBO.js +0 -5992
- package/dist/chunk-73KA7WBO.js.map +0 -1
- package/dist/chunk-BOHF3PQO.js.map +0 -1
- package/dist/chunk-G5TJVQQT.js.map +0 -1
- package/dist/chunk-PMAU3SEE.js +0 -126
- package/dist/chunk-PMAU3SEE.js.map +0 -1
- package/dist/chunk-SFL7NFKN.js.map +0 -1
- package/dist/chunk-THBG7FQZ.js.map +0 -1
- package/dist/chunk-VUU5UXHE.js.map +0 -1
- package/src/instrument/capabilityDetector.test.ts +0 -64
- package/src/instrument/capabilityDetector.ts +0 -20
- package/src/trial/DefaultSidebar.tsx +0 -29
- package/src/trial/DefaultStatusBar.tsx +0 -19
- package/src/trial/DefaultToolbar.tsx +0 -92
- package/src/trial/slotTypes.ts +0 -54
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as ActionBar,
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { m as ActionBar, r4 as ActionsBar, It as Badge, a3 as Button, o2 as Checkbox, p4 as ComboBox, m2 as ComboBoxItem, F as CurveEditor, u3 as DataGrid, c as Dialog, Je as EDGE_PROFILES, n as Field, u as Input, s2 as KeyCap, c3 as KeySequence, o as MINUS_SIGN, f2 as NumberField, r3 as OptionsBar, _ as Plot2D, n4 as PointPlotter, r5 as Powerline, u2 as Radio, l as RadioGroup, l2 as RangeSlider, p2 as Select, h as SelectItem, n2 as Sidebar, o4 as SidebarPanel, v as Slider, a2 as Switch, c4 as Tab, s3 as TabList, l3 as TabPanel, o6 as Tabs, r as ToggleBar, o5 as ToolButton, n3 as ToolGroup, _2 as ToolPalette, tn as chromaAt, u4 as detectPlatform, p as dlog, r2 as fieldClasses, s as formatNumber, d2 as formatShortcut, u5 as formatShortcutParts, o3 as inferKeycapKind, f as isDebugEnabled, b as isPrefLeaf, e as keyGlyph, p3 as keySpecFromKey, d as keySpecsFromMods, en as oklchToHex, v2 as paintGradientTrack, x as prefValueAtPath, c2 as useReorderDragList, a as useRovingTabIndex, S as visiblePrefSubtree } from '../chunk-TLGRYALP.js';
|
|
2
|
+
import '../chunk-Z6HJ5FEM.js';
|
|
3
3
|
//# sourceMappingURL=weasel-ui.js.map
|
|
4
4
|
//# sourceMappingURL=weasel-ui.js.map
|
|
@@ -1,9 +1,62 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, MouseEventHandler } from 'react';
|
|
3
|
+
import { Corner } from 'windease';
|
|
4
|
+
import { J as JobHandle } from '../_dts/types-DJ79Tg5J.js';
|
|
5
|
+
|
|
6
|
+
/** Props for `<FloatingPanel>`. */
|
|
7
|
+
interface FloatingPanelProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Corner it rests in before it has ever been dragged. Default `'bottom-left'`. */
|
|
10
|
+
anchor?: Corner;
|
|
11
|
+
/** Corners that may capture it. Default: all four. */
|
|
12
|
+
snapCorners?: readonly Corner[];
|
|
13
|
+
/** Pixels in from a corner when snapped. Default 12. */
|
|
14
|
+
inset?: number;
|
|
15
|
+
/** localStorage key to remember its position under. Omit to forget on reload. */
|
|
16
|
+
storageKey?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A draggable box that floats over its offset parent and snaps to its corners.
|
|
21
|
+
*
|
|
22
|
+
* Drives windease's `floatingStrategy` as a pure function rather than mounting a
|
|
23
|
+
* windease container: a lab overlay has one item and no zone tree, so the node
|
|
24
|
+
* model would be all cost. Pointer handling is therefore this component's, and
|
|
25
|
+
* windease's own affordance rendering never participates.
|
|
26
|
+
*/
|
|
27
|
+
declare function FloatingPanel({ children, anchor, snapCorners, inset, storageKey, className, }: FloatingPanelProps): react_jsx_runtime.JSX.Element;
|
|
3
28
|
|
|
4
29
|
/** A live frame-rate readout, averaged over the last 30 frames. */
|
|
5
30
|
declare function FpsMeter(): react_jsx_runtime.JSX.Element;
|
|
6
31
|
|
|
32
|
+
/** Props for `<JobProgress>`. */
|
|
33
|
+
interface JobProgressProps {
|
|
34
|
+
job: JobHandle;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/** A running job's progress, failures and outcome. Determinate once the job
|
|
38
|
+
* reports a total; a job that cannot count up front never sends one, so the
|
|
39
|
+
* bar stays indeterminate rather than inventing a denominator. */
|
|
40
|
+
declare function JobProgress({ job, className }: JobProgressProps): react_jsx_runtime.JSX.Element | null;
|
|
41
|
+
|
|
42
|
+
/** How a legend entry's swatch is drawn, matching how the thing looks on canvas. */
|
|
43
|
+
type LegendMark = 'line' | 'dash' | 'dot' | 'band';
|
|
44
|
+
/** One row of a legend: a swatch and what it means. */
|
|
45
|
+
interface LegendEntry {
|
|
46
|
+
key: string;
|
|
47
|
+
label: string;
|
|
48
|
+
color: string;
|
|
49
|
+
/** Defaults to `'line'`. */
|
|
50
|
+
mark?: LegendMark;
|
|
51
|
+
}
|
|
52
|
+
/** Props for `<Legend>`. */
|
|
53
|
+
interface LegendProps {
|
|
54
|
+
entries: readonly LegendEntry[];
|
|
55
|
+
className?: string;
|
|
56
|
+
}
|
|
57
|
+
/** A color key. Presentational only — no handlers, no state, no hover behavior. */
|
|
58
|
+
declare function Legend({ entries, className }: LegendProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
7
60
|
/** Props for `<ScaleIndicator>`. */
|
|
8
61
|
interface ScaleIndicatorProps {
|
|
9
62
|
/** Current view zoom factor. If omitted, reads from CanvasStackContext. Defaults to 1. */
|
|
@@ -38,33 +91,74 @@ interface StatusBarProps {
|
|
|
38
91
|
/** A footer strip for readouts. Fill it with `<StatusBar.Section>`. */
|
|
39
92
|
declare function StatusBar({ children }: StatusBarProps): react_jsx_runtime.JSX.Element;
|
|
40
93
|
declare namespace StatusBar {
|
|
41
|
-
var Section: ({ children }:
|
|
94
|
+
var Section: ({ children, end }: StatusBarSectionProps) => react_jsx_runtime.JSX.Element;
|
|
42
95
|
}
|
|
43
|
-
|
|
96
|
+
/** Props for `<StatusBar.Section>`. */
|
|
97
|
+
interface StatusBarSectionProps {
|
|
44
98
|
children: ReactNode;
|
|
99
|
+
/** Pushes this section, and everything after it, to the far end. */
|
|
100
|
+
end?: boolean;
|
|
45
101
|
}
|
|
46
102
|
|
|
47
103
|
/** Props for `<Toolbar>`. */
|
|
48
104
|
interface ToolbarProps {
|
|
49
105
|
children: ReactNode;
|
|
106
|
+
/** Names the toolbar for assistive tech. Required by the APG pattern when a
|
|
107
|
+
* view holds more than one. */
|
|
108
|
+
'aria-label'?: string;
|
|
50
109
|
}
|
|
51
110
|
/** A horizontal bar of controls. Fill it with `<Toolbar.Title>`,
|
|
52
|
-
* `<Toolbar.Button>` and `<Toolbar.Spacer>`. */
|
|
53
|
-
declare function Toolbar({ children }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
* `<Toolbar.Group>`, `<Toolbar.Button>` and `<Toolbar.Spacer>`. */
|
|
112
|
+
declare function Toolbar({ children, 'aria-label': ariaLabel }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
54
113
|
declare namespace Toolbar {
|
|
55
114
|
var Title: ({ children }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
-
var
|
|
115
|
+
var Group: ({ children, end, "aria-label": ariaLabel }: ToolbarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
116
|
+
var Button: ({ children, onClick, disabled, title, "aria-label": ariaLabel, variant, iconOnly, }: ToolbarButtonProps) => react_jsx_runtime.JSX.Element;
|
|
57
117
|
var Spacer: () => react_jsx_runtime.JSX.Element;
|
|
58
118
|
}
|
|
59
119
|
interface TitleProps {
|
|
60
120
|
children: ReactNode;
|
|
61
121
|
}
|
|
62
|
-
|
|
122
|
+
/** Props for `<Toolbar.Group>`. */
|
|
123
|
+
interface ToolbarGroupProps {
|
|
124
|
+
children: ReactNode;
|
|
125
|
+
/** Pushes this group, and everything after it, to the far end. */
|
|
126
|
+
end?: boolean;
|
|
127
|
+
'aria-label'?: string;
|
|
128
|
+
}
|
|
129
|
+
/** Props for `<Toolbar.Button>`. */
|
|
130
|
+
interface ToolbarButtonProps {
|
|
63
131
|
children: ReactNode;
|
|
64
132
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
65
133
|
disabled?: boolean;
|
|
66
134
|
title?: string;
|
|
135
|
+
/** Required when `children` is an icon with no text of its own. */
|
|
136
|
+
'aria-label'?: string;
|
|
137
|
+
/** `danger` reddens on hover — for actions that discard work. */
|
|
138
|
+
variant?: 'default' | 'danger';
|
|
139
|
+
/** Square, for a button whose whole content is one glyph. */
|
|
140
|
+
iconOnly?: boolean;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** Props for `<ZoomControl>`. */
|
|
144
|
+
interface ZoomControlProps {
|
|
145
|
+
/** Current zoom as a scale factor: 1 is actual size. */
|
|
146
|
+
zoom: number;
|
|
147
|
+
/** Fired continuously while the slider drags. */
|
|
148
|
+
onZoomChange: (zoom: number) => void;
|
|
149
|
+
/** Fired when a drag settles or the field is committed. Defaults to
|
|
150
|
+
* `onZoomChange`. */
|
|
151
|
+
onZoomCommit?: (zoom: number) => void;
|
|
152
|
+
/** Smallest selectable zoom. Defaults to 0.1 (10%). */
|
|
153
|
+
min?: number;
|
|
154
|
+
/** Largest selectable zoom. Defaults to 8 (800%). */
|
|
155
|
+
max?: number;
|
|
156
|
+
className?: string;
|
|
67
157
|
}
|
|
158
|
+
/** Zoom as a log-scaled slider with an editable percentage beside it. Pair it
|
|
159
|
+
* with zoom-in / zoom-out buttons in a `<Toolbar.Group>`; this component owns
|
|
160
|
+
* only the continuous part. */
|
|
161
|
+
declare function ZoomControl({ zoom, onZoomChange, onZoomCommit, min, max, className, }: ZoomControlProps): react_jsx_runtime.JSX.Element;
|
|
68
162
|
|
|
69
|
-
export { FpsMeter, ScaleIndicator, Sidebar, StatusBar, Toolbar };
|
|
70
|
-
export type { ScaleIndicatorProps, SidebarProps, StatusBarProps, ToolbarProps };
|
|
163
|
+
export { FloatingPanel, FpsMeter, JobProgress, Legend, ScaleIndicator, Sidebar, StatusBar, Toolbar, ZoomControl };
|
|
164
|
+
export type { FloatingPanelProps, JobProgressProps, LegendEntry, LegendMark, LegendProps, ScaleIndicatorProps, SidebarProps, StatusBarProps, StatusBarSectionProps, ToolbarButtonProps, ToolbarGroupProps, ToolbarProps, ZoomControlProps };
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { FloatingPanel, JobProgress, Legend, Sidebar } from '../chunk-RVNN4CHQ.js';
|
|
2
|
+
export { FpsMeter, ScaleIndicator, StatusBar, Toolbar, ZoomControl } from '../chunk-O7NVSCLN.js';
|
|
3
|
+
import '../chunk-TLGRYALP.js';
|
|
2
4
|
import '../chunk-CPUJ3QXL.js';
|
|
5
|
+
import '../chunk-Z6HJ5FEM.js';
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
|
4
7
|
//# sourceMappingURL=index.js.map
|
package/dist/state/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { C as CURRENT_DOCUMENT_VERSION, L as LabStore, a as LabStoreActions, b as LabStoreContext, c as LabStoreProvider, T as TrialIdContext, d as TrialIdProvider, e as createLabStore, f as createMemoryAdapter, l as labDocumentKey, g as localStorageAdapter, n as noneAdapter, q as quarantineKey, s as sessionStorageAdapter, u as urlHashAdapter, h as useLabStore, i as useTrialId, j as useTrialState } from '../_dts/useTrialState-CsGMjhu9.js';
|
|
2
|
+
import { S as SerializedTrial, I as InstrumentSerializers, T as TrialRecord, U as UndoStack, a as StorageAdapter } from '../_dts/types-1Sdxy_Pv.js';
|
|
3
|
+
export { C as CreateLabStoreOptions, L as LabDocument, b as LabStoreState, M as Migration, c as SavedSnapshot, d as TrialStateHandle } from '../_dts/types-1Sdxy_Pv.js';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import { ReactNode } from 'react';
|
|
5
6
|
import 'zustand/vanilla';
|
package/dist/state/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLabStore, LabStoreProvider, TrialIdProvider } from '../chunk-
|
|
2
|
-
export { CURRENT_DOCUMENT_VERSION, LabStoreContext, LabStoreProvider, TrialIdContext, TrialIdProvider, createLabStore, createMemoryAdapter, decodeUrlHash, deserializeTrials, emptyUndoStack, encodeUrlHash, labDocumentKey, labStorageKey, localStorageAdapter, noneAdapter, quarantineKey, serializeTrials, sessionStorageAdapter, urlHashAdapter, useLabStore, useTrialId, useTrialState } from '../chunk-
|
|
1
|
+
import { createLabStore, LabStoreProvider, TrialIdProvider } from '../chunk-4TMMVIDM.js';
|
|
2
|
+
export { CURRENT_DOCUMENT_VERSION, LabStoreContext, LabStoreProvider, TrialIdContext, TrialIdProvider, createLabStore, createMemoryAdapter, decodeUrlHash, deserializeTrials, emptyUndoStack, encodeUrlHash, labDocumentKey, labStorageKey, localStorageAdapter, noneAdapter, quarantineKey, serializeTrials, sessionStorageAdapter, urlHashAdapter, useLabStore, useTrialId, useTrialState } from '../chunk-4TMMVIDM.js';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|