@weasel-js/labkit 1.4.3 → 1.4.4

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 (57) hide show
  1. package/dist/_dts/{CanvasStackContext-Dde8_1my.d.ts → CanvasStackContext-kTEZvEgE.d.ts} +1 -1
  2. package/dist/_dts/{frac-B5mB8LsJ.d.ts → frac-z7ker2Vx.d.ts} +4 -3
  3. package/dist/_dts/{index-DelFfeV0.d.ts → index-Blv9uQzu.d.ts} +27 -2
  4. package/dist/canvas/index.d.ts +4 -4
  5. package/dist/chrome/index.d.ts +2 -2
  6. package/dist/chrome/index.js +4 -4
  7. package/dist/{chunk-5TROQVQ2.js → chunk-2P6PP5N4.js} +10 -4
  8. package/dist/chunk-2P6PP5N4.js.map +1 -0
  9. package/dist/{chunk-C42T6DJT.js → chunk-64ZCN3DA.js} +5 -5
  10. package/dist/{chunk-C42T6DJT.js.map → chunk-64ZCN3DA.js.map} +1 -1
  11. package/dist/{chunk-ISCOFAUO.js → chunk-BKFVHKJH.js} +3 -3
  12. package/dist/{chunk-ISCOFAUO.js.map → chunk-BKFVHKJH.js.map} +1 -1
  13. package/dist/{chunk-QAGAHJKZ.js → chunk-MOM3GOVY.js} +3 -3
  14. package/dist/{chunk-QAGAHJKZ.js.map → chunk-MOM3GOVY.js.map} +1 -1
  15. package/dist/{chunk-2RQPGOQF.js → chunk-SMHP6XZ4.js} +3 -3
  16. package/dist/{chunk-2RQPGOQF.js.map → chunk-SMHP6XZ4.js.map} +1 -1
  17. package/dist/{chunk-ASWKLRKJ.js → chunk-U3IYHIAE.js} +11 -11
  18. package/dist/chunk-U3IYHIAE.js.map +1 -0
  19. package/dist/{chunk-MHAGC6VD.js → chunk-W3ECWC2K.js} +199 -184
  20. package/dist/chunk-W3ECWC2K.js.map +1 -0
  21. package/dist/controls/index.d.ts +1 -1
  22. package/dist/controls/index.js +2 -2
  23. package/dist/dragdrop/index.d.ts +1 -1
  24. package/dist/index.d.ts +55 -9
  25. package/dist/index.js +128 -45
  26. package/dist/index.js.map +1 -1
  27. package/dist/layers/index.d.ts +2 -2
  28. package/dist/layers/index.js +2 -2
  29. package/dist/loupe/index.d.ts +3 -3
  30. package/dist/passthrough/weasel-ui.d.ts +10 -0
  31. package/dist/passthrough/weasel-ui.js +1 -1
  32. package/dist/primitives/index.js +3 -3
  33. package/dist/state/index.js +2 -2
  34. package/dist/styles.css +81 -14
  35. package/dist/ui/layers/index.js +1 -1
  36. package/dist/undo/index.d.ts +1 -1
  37. package/package.json +7 -7
  38. package/src/annotations/frac.test.ts +4 -4
  39. package/src/annotations/frac.ts +3 -2
  40. package/src/annotations/index.ts +1 -1
  41. package/src/annotations/store.ts +2 -2
  42. package/src/annotations/svgNodes.ts +1 -2
  43. package/src/index.ts +1 -1
  44. package/src/lab/LabShell.tsx +14 -2
  45. package/src/lab/LabSwitcher.less +85 -0
  46. package/src/lab/LabSwitcher.test.tsx +96 -0
  47. package/src/lab/LabSwitcher.tsx +112 -0
  48. package/src/lab/index.ts +2 -0
  49. package/src/state/helpers.test.ts +20 -0
  50. package/src/state/helpers.ts +16 -0
  51. package/src/state/store.ts +2 -2
  52. package/src/styles.less +1 -0
  53. package/src/theme/base.less +4 -4
  54. package/src/trial/trialOps.ts +3 -2
  55. package/dist/chunk-5TROQVQ2.js.map +0 -1
  56. package/dist/chunk-ASWKLRKJ.js.map +0 -1
  57. package/dist/chunk-MHAGC6VD.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { E as LayerDescriptor } from '../_dts/frac-B5mB8LsJ.js';
2
- export { B as LayerCapability } from '../_dts/frac-B5mB8LsJ.js';
1
+ import { E as LayerDescriptor } from '../_dts/frac-z7ker2Vx.js';
2
+ export { B as LayerCapability } from '../_dts/frac-z7ker2Vx.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '../_dts/types-B9_zrHmb.js';
@@ -1,5 +1,5 @@
1
- export { LayerList } from '../chunk-ISCOFAUO.js';
1
+ export { LayerList } from '../chunk-BKFVHKJH.js';
2
2
  import '../chunk-SBXNQW4G.js';
3
- import '../chunk-MHAGC6VD.js';
3
+ import '../chunk-W3ECWC2K.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ae as LoupePoint, af as LoupeMode, V as ViewTransform, W as WorldFrame, c as WorldSpec, a2 as ViewportSize, K as LoupeRenderArgs, N as ResolvedLoupe } from '../_dts/frac-B5mB8LsJ.js';
3
- export { L as LOUPE_DEFAULTS, G as LoupeCapability, J as LoupeDeclaration, ab as resolveLoupe } from '../_dts/frac-B5mB8LsJ.js';
4
- import { c as CanvasStackSurface, C as CanvasLayerDescriptor } from '../_dts/CanvasStackContext-Dde8_1my.js';
2
+ import { ae as LoupePoint, af as LoupeMode, V as ViewTransform, W as WorldFrame, c as WorldSpec, a2 as ViewportSize, K as LoupeRenderArgs, N as ResolvedLoupe } from '../_dts/frac-z7ker2Vx.js';
3
+ export { L as LOUPE_DEFAULTS, G as LoupeCapability, J as LoupeDeclaration, ab as resolveLoupe } from '../_dts/frac-z7ker2Vx.js';
4
+ import { c as CanvasStackSurface, C as CanvasLayerDescriptor } from '../_dts/CanvasStackContext-kTEZvEgE.js';
5
5
  import { RefObject, ReactNode } from 'react';
6
6
  import '../_dts/types-B9_zrHmb.js';
7
7
  import '@weasel-js/core';
@@ -892,6 +892,11 @@ type ButtonSize = 'sm' | 'md';
892
892
  type ButtonBase = {
893
893
  variant?: ButtonVariant;
894
894
  size?: ButtonSize;
895
+ /** A button that stays down: renders `aria-pressed` and holds the active
896
+ * treatment while it is on. For a control that reports a state rather than
897
+ * firing an action -- a panel toggle, a mode switch. Left off, the button
898
+ * announces no pressed state at all, which is what an action button wants. */
899
+ pressed?: boolean;
895
900
  disabled?: boolean;
896
901
  loading?: boolean;
897
902
  leadingIcon?: ReactNode;
@@ -2085,6 +2090,11 @@ type RangeSliderProps = Omit<SliderProps$1, 'children' | 'className'> & {
2085
2090
  * Linear range slider on React Aria. Single-value by default; pass an array
2086
2091
  * to `value` / `defaultValue` for multi-thumb. Distinct from `Slider`, which
2087
2092
  * is fully controlled and gives each thumb its own bounds and readout.
2093
+ *
2094
+ * The root is a column flex container and the track stretches to it, so
2095
+ * `align-items` on the root or on a wrapper that replaces it governs the
2096
+ * *horizontal* axis here and collapses the track to its content width. Style
2097
+ * the wrapper around one, not the root.
2088
2098
  */
2089
2099
  declare function RangeSlider(props: RangeSliderProps): react_jsx_runtime.JSX.Element;
2090
2100
 
@@ -1,4 +1,4 @@
1
1
  import '../chunk-SBXNQW4G.js';
2
- export { m as ActionBar, r8 as ActionsBar, Lt as Badge, a3 as Button, g3 as Callout, l5 as CalloutTrigger, o as Checkbox, g2 as ComboBox, v3 as ComboBoxItem, L as CurveEditor, s2 as DataGrid, l3 as Dialog, r5 as Disclosure, i2 as DisclosureRow, n4 as DragHandleGlyph, Je as EDGE_PROFILES, n2 as Field, t as ICON_PATHS, r as Icon, u2 as Input, s3 as KeyCap, c2 as KeySequence, c3 as LayerStack, e2 as MINUS_SIGN, f2 as NumberField, r7 as OptionsBar, f3 as Plot2D, n7 as PointPlotter, r9 as Powerline, u3 as Radio, l as RadioGroup, l2 as RangeSlider, g as Select, b2 as SelectItem, n5 as Sidebar, s4 as SidebarPanel, y2 as Slider, a2 as Switch, c4 as Tab, s5 as TabList, l4 as TabPanel, o4 as Tabs, r6 as ToggleBar, o3 as ToolButton, n6 as ToolGroup, _2 as ToolPalette, Jn as chromaAt, u4 as detectPlatform, a as dlog, r3 as fieldClasses, t3 as formatNumber, d2 as formatShortcut, u5 as formatShortcutParts, o2 as inferKeycapKind, i as isDebugEnabled, t2 as isPrefLeaf, e as keyGlyph, p2 as keySpecFromKey, d as keySpecsFromMods, qn as oklchToHex, v2 as paintGradientTrack, n3 as prefValueAtPath, s as useReorderDragList, a4 as useRovingTabIndex, r4 as visiblePrefSubtree } from '../chunk-MHAGC6VD.js';
2
+ export { m as ActionBar, r8 as ActionsBar, Lt as Badge, a3 as Button, g3 as Callout, l5 as CalloutTrigger, o as Checkbox, g2 as ComboBox, v3 as ComboBoxItem, L as CurveEditor, s2 as DataGrid, l3 as Dialog, r5 as Disclosure, i2 as DisclosureRow, n4 as DragHandleGlyph, Je as EDGE_PROFILES, n2 as Field, t as ICON_PATHS, r as Icon, u2 as Input, s3 as KeyCap, c2 as KeySequence, c3 as LayerStack, e2 as MINUS_SIGN, f2 as NumberField, r7 as OptionsBar, f3 as Plot2D, n7 as PointPlotter, r9 as Powerline, u3 as Radio, l as RadioGroup, l2 as RangeSlider, g as Select, b2 as SelectItem, n5 as Sidebar, s4 as SidebarPanel, y2 as Slider, a2 as Switch, c4 as Tab, s5 as TabList, l4 as TabPanel, o4 as Tabs, r6 as ToggleBar, o3 as ToolButton, n6 as ToolGroup, _2 as ToolPalette, Jn as chromaAt, u4 as detectPlatform, a as dlog, r3 as fieldClasses, t3 as formatNumber, d2 as formatShortcut, u5 as formatShortcutParts, o2 as inferKeycapKind, i as isDebugEnabled, t2 as isPrefLeaf, e as keyGlyph, p2 as keySpecFromKey, d as keySpecsFromMods, qn as oklchToHex, v2 as paintGradientTrack, n3 as prefValueAtPath, s as useReorderDragList, a4 as useRovingTabIndex, r4 as visiblePrefSubtree } from '../chunk-W3ECWC2K.js';
3
3
  //# sourceMappingURL=weasel-ui.js.map
4
4
  //# sourceMappingURL=weasel-ui.js.map
@@ -1,7 +1,7 @@
1
- export { FloatingPanel, JobProgress, Legend, Sidebar } from '../chunk-QAGAHJKZ.js';
2
- export { FpsMeter, ScaleIndicator, StatusBar, Toolbar, ZoomControl } from '../chunk-2RQPGOQF.js';
1
+ export { FloatingPanel, JobProgress, Legend, Sidebar } from '../chunk-MOM3GOVY.js';
2
+ export { FpsMeter, ScaleIndicator, StatusBar, Toolbar, ZoomControl } from '../chunk-SMHP6XZ4.js';
3
3
  import '../chunk-SBXNQW4G.js';
4
- import '../chunk-MHAGC6VD.js';
4
+ import '../chunk-W3ECWC2K.js';
5
5
  import '../chunk-CQLQPQ4P.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { createLabStore } from '../chunk-5TROQVQ2.js';
2
- export { CURRENT_DOCUMENT_VERSION, createLabStore, createMemoryAdapter, decodeUrlHash, deserializeTrials, dockPanel, emptyUndoStack, encodeUrlHash, labDocumentKey, labStorageKey, localStorageAdapter, noneAdapter, panelKey, quarantineKey, serializeTrials, sessionStorageAdapter, undockPanel, urlHashAdapter, useTrialState } from '../chunk-5TROQVQ2.js';
1
+ import { createLabStore } from '../chunk-2P6PP5N4.js';
2
+ export { CURRENT_DOCUMENT_VERSION, createLabStore, createMemoryAdapter, decodeUrlHash, deserializeTrials, dockPanel, emptyUndoStack, encodeUrlHash, labDocumentKey, labStorageKey, localStorageAdapter, noneAdapter, panelKey, quarantineKey, serializeTrials, sessionStorageAdapter, undockPanel, urlHashAdapter, useTrialState } from '../chunk-2P6PP5N4.js';
3
3
  import { LabStoreProvider, TrialIdProvider } from '../chunk-2YILQ7Y5.js';
4
4
  export { LabStoreContext, LabStoreProvider, TrialIdContext, TrialIdProvider, useLabStore, useTrialId } from '../chunk-2YILQ7Y5.js';
5
5
  import '../chunk-E44SU6XS.js';