@liveroom-tech/react-immersive 4.2.8 → 4.2.10

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/index.d.mts CHANGED
@@ -411,8 +411,14 @@ type BindingBuilderProps = {
411
411
  onModelUpload?: (file: File) => Promise<BindingBuilderProject["model"]>;
412
412
  /** Requests/releases a short collaborative lease around gizmo edits. */
413
413
  onEditLeaseChange?: (featureId: string, editing: boolean) => void;
414
+ /**
415
+ * Whether the model itself may be replaced or removed. False hides the
416
+ * Remove model and Upload controls and ignores picked or dropped files;
417
+ * bindings and scene settings stay editable. Defaults to true.
418
+ */
419
+ allowModelChange?: boolean;
414
420
  };
415
- declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
421
+ declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, allowModelChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
416
422
 
417
423
  type SimpleModelViewerProps = {
418
424
  modelUrl: string;
package/dist/index.d.ts CHANGED
@@ -411,8 +411,14 @@ type BindingBuilderProps = {
411
411
  onModelUpload?: (file: File) => Promise<BindingBuilderProject["model"]>;
412
412
  /** Requests/releases a short collaborative lease around gizmo edits. */
413
413
  onEditLeaseChange?: (featureId: string, editing: boolean) => void;
414
+ /**
415
+ * Whether the model itself may be replaced or removed. False hides the
416
+ * Remove model and Upload controls and ignores picked or dropped files;
417
+ * bindings and scene settings stay editable. Defaults to true.
418
+ */
419
+ allowModelChange?: boolean;
414
420
  };
415
- declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
421
+ declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, allowModelChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
416
422
 
417
423
  type SimpleModelViewerProps = {
418
424
  modelUrl: string;