@solid-labs/fab-one-widget 1.0.12 → 1.0.14

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.
@@ -1,3 +1,4 @@
1
+ import * as THREE from "three";
1
2
  import { type GirthManagerConfig } from "./config";
2
3
  import type { MeasurementFormData } from "./components/MeasurementInputForm";
3
4
  import type { MeasurementData, WasmModule } from "./processing/types";
@@ -21,6 +22,8 @@ export interface GirthManagerResult {
21
22
  frontal_view_png: string;
22
23
  side_view_png: string;
23
24
  };
25
+ /** The aligned/processed mesh geometry (for OBJ export). Only present after successful alignment. */
26
+ alignedGeometry?: THREE.BufferGeometry;
24
27
  }
25
28
  export interface GirthManagerCoreProps {
26
29
  /** Feature config — controls which UI elements are rendered */
@@ -5,8 +5,10 @@
5
5
  export interface WidgetRequest {
6
6
  /** Spacing type: above-knee or below-knee */
7
7
  spacing_type: "AK" | "BK";
8
- /** URL to the uploaded 3D scan file */
8
+ /** URL to the uploaded 3D scan file (GET) */
9
9
  scan_url: string;
10
+ /** Optional pre-signed upload URL (PUT) for the processed/cleaned mesh. When provided, the widget uploads the aligned OBJ after the user confirms. */
11
+ upload_url?: string;
10
12
  /** Optional circumference measurements from the order form (mm). Omit if not provided. */
11
13
  form_measurements?: Circumference;
12
14
  }
@@ -75,6 +77,22 @@ export interface WidgetResponse {
75
77
  * Omitted if screenshot capture was not possible (e.g. render not available).
76
78
  */
77
79
  screenshots?: SocketScreenshots;
80
+ /**
81
+ * Upload status for the cleaned/aligned mesh.
82
+ * Only present when upload_url was provided in the request.
83
+ */
84
+ upload?: {
85
+ /** Whether the upload succeeded */
86
+ success: boolean;
87
+ /** The pre-signed URL that was used for the upload */
88
+ url: string;
89
+ /** HTTP status code from the PUT request (e.g. 200, 403, etc.) */
90
+ status?: number;
91
+ /** Human-readable status message */
92
+ message: string;
93
+ /** Error detail if upload failed */
94
+ error?: string;
95
+ };
78
96
  }
79
97
  /**
80
98
  * Screenshot outputs of the final socket with measurements overlaid.
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-B2Z1Ojri.js";
1
+ import { G as a, a as c, c as i, g as s } from "./GirthManagerWidget-Dv-5LLnO.js";
2
2
  export {
3
3
  a as GirthManagerWidget,
4
4
  c as arrayToCircumference,
@@ -1,6 +1,6 @@
1
1
  import { createElement as o } from "react";
2
2
  import { createRoot as i } from "react-dom/client";
3
- import { G as n, __tla as __tla_0 } from "./GirthManagerWidget-B2Z1Ojri.js";
3
+ import { G as n, __tla as __tla_0 } from "./GirthManagerWidget-Dv-5LLnO.js";
4
4
  let u;
5
5
  let __tla = Promise.all([
6
6
  (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-labs/fab-one-widget",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",