@weasel-js/labkit 1.5.1 → 1.5.2
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/{CanvasStackContext-CJNMS6mz.d.ts → CanvasStackContext-CMMo180l.d.ts} +1 -1
- package/dist/_dts/{Select.d-Gwr8fLpK.d.ts → Select.d-ZTiwzYyT.d.ts} +27 -1
- package/dist/_dts/{frac-B4okC2lX.d.ts → frac-B4hFJMiN.d.ts} +16 -6
- package/dist/_dts/{index-BNdz-tNd.d.ts → index-8LiKe3A-.d.ts} +30 -43
- package/dist/_dts/{index-CSJoj4LC.d.ts → index-DlKolEIZ.d.ts} +5 -4
- package/dist/_dts/{types-DzoNY1pO.d.ts → types-Db-3NNk1.d.ts} +4 -4
- package/dist/_dts/{usePanZoom-Pzf9f2jh.d.ts → usePanZoom-SSTZe410.d.ts} +4 -47
- package/dist/_dts/{useTrialState-uLlmaccn.d.ts → useTrialState-pnAE-UBD.d.ts} +1 -1
- package/dist/canvas/index.d.ts +4 -4
- package/dist/canvas/index.js +1 -1
- package/dist/chrome/index.d.ts +3 -3
- package/dist/chrome/index.js +6 -6
- package/dist/{chunk-PJ7WEQBJ.js → chunk-6BUQ77ZV.js} +4 -4
- package/dist/{chunk-PJ7WEQBJ.js.map → chunk-6BUQ77ZV.js.map} +1 -1
- package/dist/{chunk-UN4U4P63.js → chunk-753Y6HE6.js} +9 -9
- package/dist/chunk-753Y6HE6.js.map +1 -0
- package/dist/{chunk-ZDHY47EV.js → chunk-A2ACAGW6.js} +6 -7
- package/dist/chunk-A2ACAGW6.js.map +1 -0
- package/dist/{chunk-IHUVQ3TX.js → chunk-CKUKF72R.js} +10 -10
- package/dist/chunk-CKUKF72R.js.map +1 -0
- package/dist/{chunk-MDVTK5U3.js → chunk-D35PFTS7.js} +3 -3
- package/dist/{chunk-MDVTK5U3.js.map → chunk-D35PFTS7.js.map} +1 -1
- package/dist/{chunk-PHK4W562.js → chunk-EMXAIRUJ.js} +3 -3
- package/dist/{chunk-PHK4W562.js.map → chunk-EMXAIRUJ.js.map} +1 -1
- package/dist/{chunk-EH7UEQV7.js → chunk-FKLT3ITC.js} +69 -69
- package/dist/chunk-FKLT3ITC.js.map +1 -0
- package/dist/{chunk-EHGVROVV.js → chunk-KJCUERQF.js} +3 -3
- package/dist/{chunk-EHGVROVV.js.map → chunk-KJCUERQF.js.map} +1 -1
- package/dist/chunk-LASCBWW7.js +13456 -0
- package/dist/chunk-LASCBWW7.js.map +1 -0
- package/dist/{chunk-IXTQI7JX.js → chunk-LRI3MBGR.js} +4 -4
- package/dist/{chunk-IXTQI7JX.js.map → chunk-LRI3MBGR.js.map} +1 -1
- package/dist/{chunk-7PFH3CNM.js → chunk-REOBGYMC.js} +4 -4
- package/dist/{chunk-7PFH3CNM.js.map → chunk-REOBGYMC.js.map} +1 -1
- package/dist/{chunk-CEIUBPPW.js → chunk-TT5C5S6R.js} +3 -86
- package/dist/chunk-TT5C5S6R.js.map +1 -0
- package/dist/config/index.d.ts +7 -8
- package/dist/config/index.js +5 -5
- package/dist/controls/index.d.ts +2 -2
- package/dist/controls/index.js +4 -4
- package/dist/dragdrop/index.d.ts +2 -2
- package/dist/index.d.ts +72 -28
- package/dist/index.js +142 -123
- package/dist/index.js.map +1 -1
- package/dist/layers/index.d.ts +3 -3
- package/dist/layers/index.js +2 -2
- package/dist/loupe/index.d.ts +4 -4
- package/dist/passthrough/weasel-ui.d.ts +33 -30
- package/dist/passthrough/weasel-ui.js +1 -1
- package/dist/primitives/index.js +3 -3
- package/dist/state/index.d.ts +4 -4
- package/dist/state/index.js +5 -5
- package/dist/styles.css +114 -18
- package/dist/ui/layers/index.js +1 -1
- package/dist/undo/index.d.ts +2 -2
- package/package.json +9 -9
- package/src/canvas/index.ts +0 -9
- package/src/chrome/labTypes.ts +1 -1
- package/src/chrome/regions/PaletteRegion.test.tsx +18 -0
- package/src/chrome/regions/PaletteRegion.tsx +5 -4
- package/src/chrome/regions/TitleBarRegion.tsx +1 -1
- package/src/chrome/types.ts +8 -2
- package/src/config/builder.ts +3 -4
- package/src/config/types.ts +4 -4
- package/src/controls/AutoControls.stories.tsx +6 -6
- package/src/controls/ControlPanel.less +23 -0
- package/src/controls/ControlPanel.stories.tsx +41 -0
- package/src/controls/ControlPanel.test.tsx +53 -110
- package/src/controls/ControlPanel.tsx +61 -77
- package/src/index.test.ts +0 -2
- package/src/index.ts +4 -10
- package/src/lab/Lab.tsx +21 -5
- package/src/layers/LayerList.less +1 -1
- package/src/layers/LayerList.stories.tsx +1 -1
- package/src/primitives/FpsMeter.less +6 -1
- package/src/primitives/FpsMeter.test.tsx +12 -4
- package/src/primitives/FpsMeter.tsx +6 -1
- package/src/primitives/JobProgress.stories.tsx +1 -1
- package/src/primitives/StatusBar.less +6 -0
- package/src/state/types.ts +6 -1
- package/src/state/view.test.ts +4 -4
- package/src/trial/Trial.canvas.test.tsx +8 -4
- package/src/trial/Trial.config.test.tsx +1 -1
- package/dist/chunk-CEIUBPPW.js.map +0 -1
- package/dist/chunk-EH7UEQV7.js.map +0 -1
- package/dist/chunk-IHUVQ3TX.js.map +0 -1
- package/dist/chunk-T3EC2DXD.js +0 -12628
- package/dist/chunk-T3EC2DXD.js.map +0 -1
- package/dist/chunk-UN4U4P63.js.map +0 -1
- package/dist/chunk-ZDHY47EV.js.map +0 -1
- package/src/canvas/useOrbit.test.ts +0 -167
- package/src/canvas/useOrbit.ts +0 -156
package/dist/layers/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ab as LayerDescriptor } from '../_dts/frac-B4hFJMiN.js';
|
|
2
|
+
export { aa as LayerCapability } from '../_dts/frac-B4hFJMiN.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_dts/types-
|
|
5
|
+
import '../_dts/types-Db-3NNk1.js';
|
|
6
6
|
import '@weasel-js/core';
|
|
7
7
|
import '../_dts/PrefsForm.d-DPy9I8It.js';
|
|
8
8
|
import '../_dts/types-DJ79Tg5J.js';
|
package/dist/layers/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { LayerList } from '../chunk-
|
|
1
|
+
export { LayerList } from '../chunk-D35PFTS7.js';
|
|
2
2
|
import '../chunk-SBXNQW4G.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-LASCBWW7.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/loupe/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { c as CanvasStackSurface, C as CanvasLayerDescriptor } from '../_dts/CanvasStackContext-
|
|
2
|
+
import { aH as LoupePoint, aI as LoupeMode, k as ViewTransform, W as WorldFrame, a as WorldSpec, V as ViewportSize, ae as LoupeRenderArgs, ah as ResolvedLoupe } from '../_dts/frac-B4hFJMiN.js';
|
|
3
|
+
export { a9 as LOUPE_DEFAULTS, ac as LoupeCapability, ad as LoupeDeclaration, aE as resolveLoupe } from '../_dts/frac-B4hFJMiN.js';
|
|
4
|
+
import { c as CanvasStackSurface, C as CanvasLayerDescriptor } from '../_dts/CanvasStackContext-CMMo180l.js';
|
|
5
5
|
import { RefObject, ReactNode } from 'react';
|
|
6
6
|
import { Action } from '@weasel-js/core';
|
|
7
|
-
import '../_dts/types-
|
|
7
|
+
import '../_dts/types-Db-3NNk1.js';
|
|
8
8
|
import '../_dts/PrefsForm.d-DPy9I8It.js';
|
|
9
9
|
import '../_dts/types-DJ79Tg5J.js';
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OverlayPortalProps, W as WithoutPortalTarget } from '../_dts/Select.d-
|
|
2
|
-
export { B as Button, a as ButtonProps, b as ButtonSize, c as ButtonVariant, l as ICON_PATHS, d as Icon, m as IconName, I as IconProps, e as Input, f as InputProps, S as Select, n as SelectItem, o as SelectItemProps, p as SelectOption, g as SelectProps, T as ToggleBar, h as ToggleBarItem, i as ToggleBarProps, j as ToggleBarSize, k as ToggleBarVariant } from '../_dts/Select.d-
|
|
3
|
-
import { ToolPrefLeaf, ToolPrefGroup, ToolsApi } from '@weasel-js/core';
|
|
1
|
+
import { O as OverlayPortalProps, W as WithoutPortalTarget } from '../_dts/Select.d-ZTiwzYyT.js';
|
|
2
|
+
export { B as Button, a as ButtonProps, b as ButtonSize, c as ButtonVariant, l as ICON_PATHS, d as Icon, m as IconName, I as IconProps, e as Input, f as InputProps, S as Select, n as SelectItem, o as SelectItemProps, p as SelectOption, g as SelectProps, T as ToggleBar, h as ToggleBarItem, i as ToggleBarProps, j as ToggleBarSize, k as ToggleBarVariant } from '../_dts/Select.d-ZTiwzYyT.js';
|
|
3
|
+
import { ToolPrefLeaf, ToolPrefGroup, ToolsApi, oklchDegToHex } from '@weasel-js/core';
|
|
4
4
|
export { ToolPref as BuiltinPref, ToolPrefBoolean as PrefBoolean, ToolPrefBooleanControl as PrefBooleanControl, ToolPrefColor as PrefColor, ToolPrefCustom as PrefCustom, ToolPrefEnum as PrefEnum, ToolPrefEnumControl as PrefEnumControl, ToolPrefEnumEncoding as PrefEnumEncoding, ToolPrefGroup as PrefGroup, ToolPrefKind as PrefKind, ToolPrefLeaf as PrefLeaf, ToolPrefNumber as PrefNumber, ToolPrefNumberControl as PrefNumberControl, ToolPrefNumberUnit as PrefNumberUnit, ToolPrefObject as PrefObject, ToolPrefPaint as PrefPaint, ToolPrefString as PrefString, ToolPrefStringControl as PrefStringControl } from '@weasel-js/core';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as react from 'react';
|
|
@@ -1310,6 +1310,23 @@ interface PowerlineProps {
|
|
|
1310
1310
|
*/
|
|
1311
1311
|
declare function Powerline({ segments, startCap, size, variant, depth, gap, className, ...rest }: PowerlineProps): react_jsx_runtime.JSX.Element;
|
|
1312
1312
|
|
|
1313
|
+
/**
|
|
1314
|
+
* Display-formatter for numbers. Use this anywhere a number is shown to
|
|
1315
|
+
* a user. The whole point: negative values get prefixed with the real
|
|
1316
|
+
* MINUS SIGN (U+2212) instead of the ASCII HYPHEN-MINUS (U+002D) that
|
|
1317
|
+
* `toLocaleString` and template literals produce by default.
|
|
1318
|
+
*
|
|
1319
|
+
* U+2212 is the same visual width as `+` and reads as a sign rather
|
|
1320
|
+
* than a hyphen — columns of signed numbers align cleanly and the
|
|
1321
|
+
* glyph doesn't get confused with a bullet or list dash.
|
|
1322
|
+
*/
|
|
1323
|
+
declare const MINUS_SIGN = "\u2212";
|
|
1324
|
+
/**
|
|
1325
|
+
* Formats a number for display, substituting {@link MINUS_SIGN} for the ASCII
|
|
1326
|
+
* hyphen `toLocaleString` emits. Non-finite values stringify as-is.
|
|
1327
|
+
*/
|
|
1328
|
+
declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
|
|
1329
|
+
|
|
1313
1330
|
/** Distinguishes a leaf from a group while walking a schema tree. */
|
|
1314
1331
|
declare function isPrefLeaf(node: ToolPrefLeaf | ToolPrefGroup): node is ToolPrefLeaf;
|
|
1315
1332
|
/** Get the value at a dotted path inside a nested value tree. Returns
|
|
@@ -1544,10 +1561,11 @@ interface ToolPaletteProps {
|
|
|
1544
1561
|
* omitted, falls back to `tool.keybinding` (legacy path). */
|
|
1545
1562
|
lookupShortcut?: (toolId: string) => ShortcutInput | undefined;
|
|
1546
1563
|
/**
|
|
1547
|
-
* Optional mode registry. When provided, tools whose
|
|
1548
|
-
* match the current mode are rendered
|
|
1549
|
-
* onClick is suppressed. When omitted,
|
|
1550
|
-
*
|
|
1564
|
+
* Optional mode registry. When provided, tools whose
|
|
1565
|
+
* `eligibility.capabilities` do not match the current mode are rendered
|
|
1566
|
+
* greyed-out, aria-disabled, and their onClick is suppressed. When omitted,
|
|
1567
|
+
* all tools are treated as eligible (preserves existing behavior in
|
|
1568
|
+
* consumers that haven't wired a registry).
|
|
1551
1569
|
*/
|
|
1552
1570
|
modeRegistry?: ModeRegistry;
|
|
1553
1571
|
/**
|
|
@@ -2308,7 +2326,7 @@ type ChromaCurvePoint = {
|
|
|
2308
2326
|
* Converts an OKLCH color to a gamut-clipped `#rrggbb` string. Hue is in
|
|
2309
2327
|
* degrees, unlike the kit's OKLab helpers which take radians.
|
|
2310
2328
|
*/
|
|
2311
|
-
declare
|
|
2329
|
+
declare const oklchToHex: typeof oklchDegToHex;
|
|
2312
2330
|
/** Evaluates a {@link ChromaCurve} at a lightness, clamping outside its range. */
|
|
2313
2331
|
declare function chromaAt(L: number, curve: ChromaCurve): number;
|
|
2314
2332
|
|
|
@@ -2461,35 +2479,20 @@ type RovingTabIndex<T extends HTMLElement = HTMLDivElement> = {
|
|
|
2461
2479
|
*
|
|
2462
2480
|
* Backs `ActionsBar`, `OptionsBar`, and `ToggleBar`.
|
|
2463
2481
|
*
|
|
2464
|
-
* **When a bar should not use this.**
|
|
2465
|
-
* container of
|
|
2482
|
+
* **When a bar should not use this.** What decides it is the items, not who
|
|
2483
|
+
* owns them. A container of compound controls — a number field, a select, a
|
|
2466
2484
|
* color field — must leave the arrow keys alone, because those controls edit
|
|
2467
2485
|
* their own value with them; taking the arrows over would break the control
|
|
2468
|
-
* to navigate between controls. `ToolOptionsBar` is that case
|
|
2469
|
-
*
|
|
2470
|
-
*
|
|
2486
|
+
* to navigate between controls. `ToolOptionsBar` is that case: it draws its
|
|
2487
|
+
* own controls from a tool's schema now rather than taking arbitrary
|
|
2488
|
+
* children, and a schema-drawn number field eats arrows exactly as a
|
|
2489
|
+
* hand-placed one did, so it keeps plain DOM tab order. A bar whose items are
|
|
2490
|
+
* all simple buttons is the case this hook is for.
|
|
2471
2491
|
*
|
|
2472
2492
|
* With every item disabled there is no tab stop and the bar drops out of the
|
|
2473
2493
|
* tab order entirely.
|
|
2474
2494
|
*/
|
|
2475
2495
|
declare function useRovingTabIndex<T extends HTMLElement = HTMLDivElement>(options: UseRovingTabIndexOptions): RovingTabIndex<T>;
|
|
2476
2496
|
|
|
2477
|
-
/**
|
|
2478
|
-
* Display-formatter for numbers. Use this anywhere a number is shown to
|
|
2479
|
-
* a user. The whole point: negative values get prefixed with the real
|
|
2480
|
-
* MINUS SIGN (U+2212) instead of the ASCII HYPHEN-MINUS (U+002D) that
|
|
2481
|
-
* `toLocaleString` and template literals produce by default.
|
|
2482
|
-
*
|
|
2483
|
-
* U+2212 is the same visual width as `+` and reads as a sign rather
|
|
2484
|
-
* than a hyphen — columns of signed numbers align cleanly and the
|
|
2485
|
-
* glyph doesn't get confused with a bullet or list dash.
|
|
2486
|
-
*/
|
|
2487
|
-
declare const MINUS_SIGN = "\u2212";
|
|
2488
|
-
/**
|
|
2489
|
-
* Formats a number for display, substituting {@link MINUS_SIGN} for the ASCII
|
|
2490
|
-
* hyphen `toLocaleString` emits. Non-finite values stringify as-is.
|
|
2491
|
-
*/
|
|
2492
|
-
declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
|
|
2493
|
-
|
|
2494
2497
|
export { ActionBar, ActionsBar, Badge, Callout, Checkbox, ComboBox, ComboBoxItem, CurveEditor, DataGrid, Dialog, Disclosure, DisclosureRow, DragHandleGlyph, EDGE_PROFILES, Field, KeyCap, KeySequence, MINUS_SIGN, MenuButton, NumberField, OptionsBar, Plot2D, PointPlotter, Powerline, Radio, RadioGroup, RangeSlider, Sidebar, SidebarPanel, Slider, Switch, Tab, TabList, TabPanel, Tabs, ToolButton, ToolGroup, ToolPalette, chromaAt, detectPlatform, dlog, fieldClasses, formatNumber, formatShortcut, formatShortcutParts, inferKeycapKind, isDebugEnabled, isPrefLeaf, keyGlyph, keySpecFromKey, keySpecsFromMods, oklchToHex, paintGradientTrack, prefValueAtPath, useAsyncOptions, useReorderDragList, useRovingTabIndex, visiblePrefSubtree };
|
|
2495
2498
|
export type { ActionBarProps, ActionsBarItem, ActionsBarProps, ActionsBarSize, ActionsBarVariant, AddPointMode, AnchorRenderProps, AsyncOption, AsyncOptionsResult, AxesSettings, BadgeProps, BadgeShape, BadgeSize, BadgeTone, BadgeVariant, BoundsCtx, BuiltInEdgeName, CalloutProps, CheckboxProps, ChromaCurve, ChromaCurvePoint, ComboBoxCommit, ComboBoxFilter, ComboBoxItemProps, ComboBoxOption, ComboBoxProps, ControlPoint, CurveDomain, CurveEditorProps, DataGridColumn, DataGridProps, DialogProps, DisclosureDirection, DisclosureProps, DisclosureRowProps, DragHandleGlyphProps, EdgeCap, EdgeProfile, EndpointMode, FieldOrientation, FieldProps, FillSettings, GradientTrackOpts, GridSettings, InterpolationMode, KeyCapProps, KeyCapVariant, KeySequenceProps, KeySpec, KeycapKind, LayerListItem, LogicalMod, LogicalModSpec, MenuButtonItem, MenuButtonProps, NumberFieldProps, OptionsBarItem, OptionsBarProps, OptionsBarSize, OptionsBarVariant, Platform, Plot2DCoords, Plot2DHandle, Plot2DProps, PointPlotterProps, PowerlineProps, PowerlineSegment, RadioGroupProps, RadioProps, RangeSliderProps, ReorderDragHandlers, ReorderDragState, RovingItem, RovingTabIndex, SidebarPanelProps, SidebarProps, SliderProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabsProps, Thumb, ThumbRenderCtx, ThumbShape, ToolButtonProps, ToolGroupProps, ToolPaletteProps, TrackCtx, UseAsyncOptionsProps, UseReorderDragListOptions, UseRovingTabIndexOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../chunk-SBXNQW4G.js';
|
|
2
|
-
export { m as ActionBar, r8 as ActionsBar, Lt as Badge, a5 as Button,
|
|
2
|
+
export { m as ActionBar, r8 as ActionsBar, Lt as Badge, a5 as Button, g2 as Callout, l8 as CalloutTrigger, o2 as Checkbox, y2 as ComboBox, S3 as ComboBoxItem, L2 as CurveEditor, s2 as DataGrid, l5 as Dialog, r6 as Disclosure, i3 as DisclosureRow, n4 as DragHandleGlyph, Je as EDGE_PROFILES, n3 as Field, t as ICON_PATHS, o as Icon, u2 as Input, s3 as KeyCap, c3 as KeySequence, c4 as LayerStack, e2 as MINUS_SIGN, l7 as MenuButton, g as NumberField, r7 as OptionsBar, w2 as Plot2D, n8 as PointPlotter, r9 as Powerline, u3 as Radio, l3 as RadioGroup, l4 as RangeSlider, b2 as Select, k as SelectItem, n5 as Sidebar, s4 as SidebarPanel, b3 as Slider, a3 as Switch, c7 as Tab, s5 as TabList, l6 as TabPanel, o5 as Tabs, r5 as ToggleBar, o4 as ToolButton, n7 as ToolGroup, _2 as ToolPalette, kr as chromaAt, u4 as detectPlatform, a as dlog, r4 as fieldClasses, t2 as formatNumber, d2 as formatShortcut, u5 as formatShortcutParts, o3 as inferKeycapKind, i as isDebugEnabled, n2 as isPrefLeaf, e3 as keyGlyph, p2 as keySpecFromKey, d as keySpecsFromMods, Or as oklchToHex, v2 as paintGradientTrack, r2 as prefValueAtPath, Ar as useAsyncOptions, s as useReorderDragList, a4 as useRovingTabIndex, i2 as visiblePrefSubtree } from '../chunk-LASCBWW7.js';
|
|
3
3
|
//# sourceMappingURL=weasel-ui.js.map
|
|
4
4
|
//# sourceMappingURL=weasel-ui.js.map
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { FloatingPanel, JobProgress, Legend, Sidebar, Split } from '../chunk-
|
|
2
|
-
export { FpsMeter, ScaleIndicator, StatusBar, Toolbar, ZoomControl } from '../chunk-
|
|
1
|
+
export { FloatingPanel, JobProgress, Legend, Sidebar, Split } from '../chunk-KJCUERQF.js';
|
|
2
|
+
export { FpsMeter, ScaleIndicator, StatusBar, Toolbar, ZoomControl } from '../chunk-753Y6HE6.js';
|
|
3
3
|
import '../chunk-RWNDDKOH.js';
|
|
4
4
|
import '../chunk-CQLQPQ4P.js';
|
|
5
5
|
import '../chunk-2YILQ7Y5.js';
|
|
6
6
|
import '../chunk-SBXNQW4G.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-LASCBWW7.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/state/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as CURRENT_DOCUMENT_VERSION, I as IndexedDbAdapterOptions, L as LabStore, a as LabStoreActions, b as LabStoreContext, c as LabStoreProvider, O as OpenLabStoreOptions, d as OpenedLabStore, P as PersistedStateOptions, e as Persistence, f as PersistenceProps, R as RecordCache, g as RecordChange, T as TrialIdContext, h as TrialIdProvider, i as createIndexedDbAdapter, j as createLabStore, k as createMemoryAdapter, l as indexedDbAdapter, m as labDocumentKey, n as localStorageAdapter, o as noneAdapter, p as openLabStore, q as quarantineKey, s as sessionStorageAdapter, u as urlHashAdapter, r as useLabStore, t as usePersistedState, v as useTrialId, w as useTrialState } from '../_dts/useTrialState-
|
|
2
|
-
import { S as SerializedTrial, I as InstrumentSerializers, T as TrialRecord, U as UndoStack, c as StorageAdapter } from '../_dts/frac-
|
|
3
|
-
export { C as CreateLabStoreOptions, L as LabDocument, d as LabStoreState, M as Migration, e as SavedSnapshot, f as StorageChange, g as TrialStateHandle, h as UndockedPanel, i as UndockedPanels, j as dockPanel, p as panelKey, u as undockPanel } from '../_dts/frac-
|
|
1
|
+
export { C as CURRENT_DOCUMENT_VERSION, I as IndexedDbAdapterOptions, L as LabStore, a as LabStoreActions, b as LabStoreContext, c as LabStoreProvider, O as OpenLabStoreOptions, d as OpenedLabStore, P as PersistedStateOptions, e as Persistence, f as PersistenceProps, R as RecordCache, g as RecordChange, T as TrialIdContext, h as TrialIdProvider, i as createIndexedDbAdapter, j as createLabStore, k as createMemoryAdapter, l as indexedDbAdapter, m as labDocumentKey, n as localStorageAdapter, o as noneAdapter, p as openLabStore, q as quarantineKey, s as sessionStorageAdapter, u as urlHashAdapter, r as useLabStore, t as usePersistedState, v as useTrialId, w as useTrialState } from '../_dts/useTrialState-pnAE-UBD.js';
|
|
2
|
+
import { S as SerializedTrial, I as InstrumentSerializers, T as TrialRecord, U as UndoStack, c as StorageAdapter } from '../_dts/frac-B4hFJMiN.js';
|
|
3
|
+
export { C as CreateLabStoreOptions, L as LabDocument, d as LabStoreState, M as Migration, e as SavedSnapshot, f as StorageChange, g as TrialStateHandle, h as UndockedPanel, i as UndockedPanels, j as dockPanel, p as panelKey, u as undockPanel } from '../_dts/frac-B4hFJMiN.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import 'zustand/vanilla';
|
|
7
|
-
import '../_dts/types-
|
|
7
|
+
import '../_dts/types-Db-3NNk1.js';
|
|
8
8
|
import '@weasel-js/core';
|
|
9
9
|
import '../_dts/PrefsForm.d-DPy9I8It.js';
|
|
10
10
|
import '../_dts/types-DJ79Tg5J.js';
|
package/dist/state/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openLabStore } from '../chunk-
|
|
2
|
-
export { CURRENT_DOCUMENT_VERSION, createLabStore, dockPanel, labDocumentKey, openLabStore, panelKey, quarantineKey, undockPanel, useTrialState } from '../chunk-
|
|
1
|
+
import { openLabStore } from '../chunk-LRI3MBGR.js';
|
|
2
|
+
export { CURRENT_DOCUMENT_VERSION, createLabStore, dockPanel, labDocumentKey, openLabStore, panelKey, quarantineKey, undockPanel, useTrialState } from '../chunk-LRI3MBGR.js';
|
|
3
3
|
import { useWarnIgnoredChange, useOpenOnce, defaultStorage, PersistenceContext } from '../chunk-RWNDDKOH.js';
|
|
4
4
|
export { Persistence, createIndexedDbAdapter, createMemoryAdapter, decodeUrlHash, deserializeTrials, emptyUndoStack, encodeUrlHash, indexedDbAdapter, labStorageKey, localStorageAdapter, noneAdapter, serializeTrials, sessionStorageAdapter, urlHashAdapter, usePersistedState } from '../chunk-RWNDDKOH.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-A2ACAGW6.js';
|
|
6
|
+
import '../chunk-REOBGYMC.js';
|
|
7
7
|
import { LabStoreProvider, TrialIdProvider } from '../chunk-2YILQ7Y5.js';
|
|
8
8
|
export { LabStoreContext, LabStoreProvider, TrialIdContext, TrialIdProvider, useLabStore, useTrialId } from '../chunk-2YILQ7Y5.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-LASCBWW7.js';
|
|
10
10
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
var SINGLETON_INSTRUMENT = "__singleton__";
|