door_models 2.0.0 → 2.0.1

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.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import require$$0, { useState, useCallback, useEffect, useContext, createContext, useMemo, useRef } from 'react';
1
+ import require$$0, { useContext, createContext, useState, useCallback, useEffect, useMemo, useRef } from 'react';
2
2
  import { Geometry, Base, Subtraction } from '@react-three/csg';
3
3
  import { useSpring, a } from '@react-spring/three';
4
4
  import * as THREE from 'three';
@@ -2978,9 +2978,9 @@ const EditableSlider = _ref => {
2978
2978
  step = 1,
2979
2979
  onChange
2980
2980
  } = _ref;
2981
- const [inputValue, setInputValue] = useState(value);
2981
+ const [inputValue, setInputValue] = useState(String(value));
2982
2982
  require$$0.useEffect(() => {
2983
- setInputValue(value);
2983
+ setInputValue(String(value));
2984
2984
  }, [value]);
2985
2985
  const handleSliderChange = (_, newValue) => {
2986
2986
  onChange(Array.isArray(newValue) ? newValue[0] : newValue);
@@ -4254,5 +4254,17 @@ const Interface = () => {
4254
4254
  });
4255
4255
  };
4256
4256
 
4257
- export { ConfiguratorProvider, DoorModels, Interface, useConfigurator };
4257
+ const DoorConfigurator = _ref => {
4258
+ let {
4259
+ doorName,
4260
+ showInterface = true
4261
+ } = _ref;
4262
+ return /*#__PURE__*/jsxRuntimeExports.jsxs(ConfiguratorProvider, {
4263
+ children: [/*#__PURE__*/jsxRuntimeExports.jsx(DoorModels, {
4264
+ doorName: doorName
4265
+ }), showInterface && /*#__PURE__*/jsxRuntimeExports.jsx(Interface, {})]
4266
+ });
4267
+ };
4268
+
4269
+ export { DoorConfigurator as default, useConfigurator };
4258
4270
  //# sourceMappingURL=index.esm.js.map