@solid-labs/fab-one-widget 0.1.11 → 1.0.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.
@@ -10,5 +10,12 @@ export interface MeasurementInputFormProps {
10
10
  scanFrontalHeight: number;
11
11
  onSave: (data: MeasurementFormData) => void;
12
12
  onSkip: (reason: string) => void;
13
+ /** Called on every circumference input change so the scan overlay updates in real-time */
14
+ onFormChange?: (circumferences: number[]) => void;
15
+ /** Called on every height input change so the vertical dimension updates in real-time */
16
+ onHeightChange?: (height: number | undefined) => void;
17
+ /** Pre-populate the form with previously saved values (for re-editing) */
18
+ initialValues?: number[];
19
+ initialFrontalHeight?: number;
13
20
  }
14
- export declare const MeasurementInputForm: ({ amputationType, spacingInches, scanMeasurements, scanFrontalHeight, onSave, onSkip, }: MeasurementInputFormProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const MeasurementInputForm: ({ amputationType, spacingInches, scanMeasurements, scanFrontalHeight, onSave, onSkip, onFormChange, onHeightChange, initialValues, initialFrontalHeight, }: MeasurementInputFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface SkipConfirmDialogProps {
2
+ onSkip: (reason: string) => void;
3
+ onCancel: () => void;
4
+ }
5
+ export declare const SkipConfirmDialog: ({ onSkip, onCancel }: SkipConfirmDialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,7 @@ export interface VerticalDimensionProps {
6
6
  displayUnit?: "mm" | "inch";
7
7
  /** When set, measure to this Y instead of the mesh bounding box bottom (used for double-shell) */
8
8
  bottomY?: number;
9
+ /** User-entered Starting Point Height (mm). When provided, shows discrepancy against scan height. */
10
+ formHeight?: number;
9
11
  }
10
- export declare const VerticalDimension: ({ mesh, greenY, modelSize, displayUnit, bottomY }: VerticalDimensionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const VerticalDimension: ({ mesh, greenY, modelSize, displayUnit, bottomY, formHeight }: VerticalDimensionProps) => import("react/jsx-runtime").JSX.Element;
@@ -39,4 +39,6 @@ export type { DebugLayerVisibility } from "./components/DebugOverlays";
39
39
  export { DebugPanel } from "./components/DebugPanel";
40
40
  export { MeasurementInputForm } from "./components/MeasurementInputForm";
41
41
  export type { MeasurementInputFormProps, MeasurementFormData } from "./components/MeasurementInputForm";
42
+ export { SkipConfirmDialog } from "./components/SkipConfirmDialog";
43
+ export type { SkipConfirmDialogProps } from "./components/SkipConfirmDialog";
42
44
  export { useCachedBVH } from "./hooks/useCachedBVH";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as a, a as c, c as i, g as s } from "./GirthManagerWidget-BSCoqEUD.js";
1
+ import { G as a, a as c, c as i, g as s } from "./GirthManagerWidget-DF3c7L2P.js";
2
2
  export {
3
3
  a as GirthManagerWidget,
4
4
  c as arrayToCircumference,
@@ -1,6 +1,6 @@
1
1
  import { createElement as i } from "react";
2
2
  import { createRoot as s } from "react-dom/client";
3
- import { G as o } from "./GirthManagerWidget-BSCoqEUD.js";
3
+ import { G as o } from "./GirthManagerWidget-DF3c7L2P.js";
4
4
  class n extends HTMLElement {
5
5
  constructor() {
6
6
  super(...arguments), this._root = null, this._request = null, this._wasmModule = void 0, this._handleComplete = (t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-labs/fab-one-widget",
3
- "version": "0.1.11",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/girth-manager-web-widget/src/index.d.ts",