@webspatial/react-sdk 0.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.
Files changed (261) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/default/XRApp.d.ts +21 -0
  3. package/dist/cjs/default/XRApp.d.ts.map +1 -0
  4. package/dist/cjs/default/index.d.ts +5 -0
  5. package/dist/cjs/default/index.d.ts.map +1 -0
  6. package/dist/cjs/default/index.js +3430 -0
  7. package/dist/cjs/default/index.js.map +7 -0
  8. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +3 -0
  9. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +1 -0
  10. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +2 -0
  11. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +1 -0
  12. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +6 -0
  13. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +1 -0
  14. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +2 -0
  15. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +1 -0
  16. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +14 -0
  17. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +1 -0
  18. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts +6 -0
  19. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts.map +1 -0
  20. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts +2 -0
  21. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts.map +1 -0
  22. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +2 -0
  23. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +1 -0
  24. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts +4 -0
  25. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +1 -0
  26. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +4 -0
  27. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +1 -0
  28. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +29 -0
  29. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +1 -0
  30. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts +7 -0
  31. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +1 -0
  32. package/dist/cjs/default/spatial-react-components/Model/index.d.ts +42 -0
  33. package/dist/cjs/default/spatial-react-components/Model/index.d.ts.map +1 -0
  34. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts +4 -0
  35. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts.map +1 -0
  36. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +3 -0
  37. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +1 -0
  38. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +3 -0
  39. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +1 -0
  40. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +3 -0
  41. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +1 -0
  42. package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts +3 -0
  43. package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts.map +1 -0
  44. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts +48 -0
  45. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts.map +1 -0
  46. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +3 -0
  47. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +1 -0
  48. package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +3 -0
  49. package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +1 -0
  50. package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +3 -0
  51. package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +1 -0
  52. package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts +4 -0
  53. package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts.map +1 -0
  54. package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts +46 -0
  55. package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts.map +1 -0
  56. package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +2 -0
  57. package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +1 -0
  58. package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts +15 -0
  59. package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts.map +1 -0
  60. package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +19 -0
  61. package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +1 -0
  62. package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts +4 -0
  63. package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts.map +1 -0
  64. package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts +6 -0
  65. package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts.map +1 -0
  66. package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts +6 -0
  67. package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts.map +1 -0
  68. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +20 -0
  69. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +1 -0
  70. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +2 -0
  71. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +1 -0
  72. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +2 -0
  73. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +1 -0
  74. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +2 -0
  75. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +1 -0
  76. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +3 -0
  77. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +1 -0
  78. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +24 -0
  79. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +1 -0
  80. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +17 -0
  81. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +1 -0
  82. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +3 -0
  83. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +1 -0
  84. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +10 -0
  85. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +1 -0
  86. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts +2 -0
  87. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts.map +1 -0
  88. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts +3 -0
  89. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts.map +1 -0
  90. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts +31 -0
  91. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts.map +1 -0
  92. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +8 -0
  93. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +1 -0
  94. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts +15 -0
  95. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts.map +1 -0
  96. package/dist/cjs/default/spatial-react-components/SpatialView.d.ts +15 -0
  97. package/dist/cjs/default/spatial-react-components/SpatialView.d.ts.map +1 -0
  98. package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts +2 -0
  99. package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts.map +1 -0
  100. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +2 -0
  101. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +1 -0
  102. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts +2 -0
  103. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +1 -0
  104. package/dist/cjs/default/spatial-react-components/index.d.ts +12 -0
  105. package/dist/cjs/default/spatial-react-components/index.d.ts.map +1 -0
  106. package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +13 -0
  107. package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +1 -0
  108. package/dist/cjs/default/spatial-react-components/primitives.d.ts +3 -0
  109. package/dist/cjs/default/spatial-react-components/primitives.d.ts.map +1 -0
  110. package/dist/cjs/default/spatial-react-components/types.d.ts +18 -0
  111. package/dist/cjs/default/spatial-react-components/types.d.ts.map +1 -0
  112. package/dist/cjs/default/types.d.ts +2 -0
  113. package/dist/cjs/default/types.d.ts.map +1 -0
  114. package/dist/cjs/default/utils/debugTool.d.ts +2 -0
  115. package/dist/cjs/default/utils/debugTool.d.ts.map +1 -0
  116. package/dist/cjs/default/utils/getSession.d.ts +6 -0
  117. package/dist/cjs/default/utils/getSession.d.ts.map +1 -0
  118. package/dist/cjs/default/utils/index.d.ts +3 -0
  119. package/dist/cjs/default/utils/index.d.ts.map +1 -0
  120. package/dist/cjs/web/XRApp.d.ts +21 -0
  121. package/dist/cjs/web/XRApp.d.ts.map +1 -0
  122. package/dist/cjs/web/index.d.ts +5 -0
  123. package/dist/cjs/web/index.d.ts.map +1 -0
  124. package/dist/cjs/web/index.js +3432 -0
  125. package/dist/cjs/web/index.js.map +7 -0
  126. package/dist/cjs/web/noRuntime.d.ts +5 -0
  127. package/dist/cjs/web/noRuntime.d.ts.map +1 -0
  128. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +3 -0
  129. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +1 -0
  130. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +2 -0
  131. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +1 -0
  132. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +6 -0
  133. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +1 -0
  134. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +2 -0
  135. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +1 -0
  136. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +14 -0
  137. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +1 -0
  138. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts +6 -0
  139. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts.map +1 -0
  140. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts +2 -0
  141. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts.map +1 -0
  142. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +2 -0
  143. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +1 -0
  144. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts +4 -0
  145. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +1 -0
  146. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +4 -0
  147. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +1 -0
  148. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +29 -0
  149. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +1 -0
  150. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts +7 -0
  151. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +1 -0
  152. package/dist/cjs/web/spatial-react-components/Model/index.d.ts +42 -0
  153. package/dist/cjs/web/spatial-react-components/Model/index.d.ts.map +1 -0
  154. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts +4 -0
  155. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts.map +1 -0
  156. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +3 -0
  157. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +1 -0
  158. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +3 -0
  159. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +1 -0
  160. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +3 -0
  161. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +1 -0
  162. package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts +3 -0
  163. package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts.map +1 -0
  164. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts +48 -0
  165. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts.map +1 -0
  166. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +3 -0
  167. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +1 -0
  168. package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +3 -0
  169. package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +1 -0
  170. package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +3 -0
  171. package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +1 -0
  172. package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts +4 -0
  173. package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts.map +1 -0
  174. package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts +46 -0
  175. package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts.map +1 -0
  176. package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +2 -0
  177. package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +1 -0
  178. package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts +15 -0
  179. package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts.map +1 -0
  180. package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +19 -0
  181. package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +1 -0
  182. package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts +4 -0
  183. package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts.map +1 -0
  184. package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts +6 -0
  185. package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts.map +1 -0
  186. package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts +6 -0
  187. package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts.map +1 -0
  188. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +20 -0
  189. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +1 -0
  190. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +2 -0
  191. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +1 -0
  192. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +2 -0
  193. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +1 -0
  194. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +2 -0
  195. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +1 -0
  196. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +3 -0
  197. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +1 -0
  198. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +24 -0
  199. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +1 -0
  200. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +17 -0
  201. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +1 -0
  202. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +3 -0
  203. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +1 -0
  204. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +10 -0
  205. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +1 -0
  206. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts +2 -0
  207. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts.map +1 -0
  208. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts +3 -0
  209. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts.map +1 -0
  210. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts +31 -0
  211. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts.map +1 -0
  212. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +8 -0
  213. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +1 -0
  214. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts +15 -0
  215. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts.map +1 -0
  216. package/dist/cjs/web/spatial-react-components/SpatialView.d.ts +15 -0
  217. package/dist/cjs/web/spatial-react-components/SpatialView.d.ts.map +1 -0
  218. package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts +2 -0
  219. package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts.map +1 -0
  220. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +2 -0
  221. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +1 -0
  222. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts +2 -0
  223. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +1 -0
  224. package/dist/cjs/web/spatial-react-components/index.d.ts +12 -0
  225. package/dist/cjs/web/spatial-react-components/index.d.ts.map +1 -0
  226. package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +13 -0
  227. package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +1 -0
  228. package/dist/cjs/web/spatial-react-components/primitives.d.ts +3 -0
  229. package/dist/cjs/web/spatial-react-components/primitives.d.ts.map +1 -0
  230. package/dist/cjs/web/spatial-react-components/types.d.ts +18 -0
  231. package/dist/cjs/web/spatial-react-components/types.d.ts.map +1 -0
  232. package/dist/cjs/web/types.d.ts +2 -0
  233. package/dist/cjs/web/types.d.ts.map +1 -0
  234. package/dist/cjs/web/utils/debugTool.d.ts +2 -0
  235. package/dist/cjs/web/utils/debugTool.d.ts.map +1 -0
  236. package/dist/cjs/web/utils/getSession.d.ts +6 -0
  237. package/dist/cjs/web/utils/getSession.d.ts.map +1 -0
  238. package/dist/cjs/web/utils/index.d.ts +3 -0
  239. package/dist/cjs/web/utils/index.d.ts.map +1 -0
  240. package/dist/jsx/injectSceneHook.d.ts +2 -0
  241. package/dist/jsx/injectSceneHook.d.ts.map +1 -0
  242. package/dist/jsx/jsx-dev-runtime.d.ts +3 -0
  243. package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -0
  244. package/dist/jsx/jsx-dev-runtime.js +7107 -0
  245. package/dist/jsx/jsx-dev-runtime.js.map +7 -0
  246. package/dist/jsx/jsx-runtime.d.ts +3 -0
  247. package/dist/jsx/jsx-runtime.d.ts.map +1 -0
  248. package/dist/jsx/jsx-runtime.js +7107 -0
  249. package/dist/jsx/jsx-runtime.js.map +7 -0
  250. package/dist/jsx/jsx-shared.d.ts +6 -0
  251. package/dist/jsx/jsx-shared.d.ts.map +1 -0
  252. package/dist/jsx/spatialPolyfill.d.ts +2 -0
  253. package/dist/jsx/spatialPolyfill.d.ts.map +1 -0
  254. package/npm/index.d.ts +1 -0
  255. package/npm/index.js +7 -0
  256. package/npm/plugin/esbuild.js +12 -0
  257. package/npm/plugin/rollup.js +8 -0
  258. package/npm/plugin/shared.js +9 -0
  259. package/npm/plugin/vite.js +85 -0
  260. package/npm/plugin/webpack.js +9 -0
  261. package/package.json +77 -0
@@ -0,0 +1,29 @@
1
+ import { type BackgroundMaterialType } from '@webspatial/core-sdk';
2
+ export declare function useSpatialStyle(): {
3
+ ref: import("react").MutableRefObject<HTMLDivElement | null>;
4
+ ready: boolean;
5
+ spatialStyle: {
6
+ position: {
7
+ x: number;
8
+ y: number;
9
+ z: number;
10
+ };
11
+ rotation: {
12
+ x: number;
13
+ y: number;
14
+ z: number;
15
+ w: number;
16
+ };
17
+ scale: {
18
+ x: number;
19
+ y: number;
20
+ z: number;
21
+ };
22
+ zIndex: number;
23
+ material: {
24
+ type: BackgroundMaterialType;
25
+ };
26
+ visible: boolean;
27
+ };
28
+ };
29
+ //# sourceMappingURL=useSpatialStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSpatialStyle.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/CSSSpatialDiv/useSpatialStyle.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAsHlE,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;kBAST,sBAAsB;;;;EAoG3C"}
@@ -0,0 +1,7 @@
1
+ export declare function extractAndRemoveCustomProperties(cssText: string, properties: string[]): {
2
+ extractedValues: Record<string, string>;
3
+ filteredCssText: string;
4
+ };
5
+ export declare function splitCSSText(cssText: string): string[];
6
+ export declare function joinToCSSText(cssKV: Record<string, string>): string;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/CSSSpatialDiv/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAAE;;;EAoBrB;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,YAI3C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAG1D"}
@@ -0,0 +1,42 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { ModelEvent, ModelDragEvent, ModelElement } from '../Model3D';
3
+ import '@google/model-viewer';
4
+ import { ModelViewerElement } from '@google/model-viewer';
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'model-viewer': ModelViewerElement | {
9
+ ref: any;
10
+ };
11
+ }
12
+ }
13
+ }
14
+ type ModelChildren = React.ReactElement<{
15
+ type: string;
16
+ src: string;
17
+ }> | [React.ReactElement<{
18
+ type: string;
19
+ src: string;
20
+ }>, React.ReactElement] | React.ReactElement<{
21
+ type: string;
22
+ src: string;
23
+ }>[];
24
+ export interface ModelProps {
25
+ className?: string;
26
+ style?: CSSProperties | undefined;
27
+ children: ModelChildren;
28
+ onLoad?: (event: ModelEvent) => void;
29
+ contentMode?: 'fill' | 'fit';
30
+ resizable?: boolean;
31
+ aspectRatio?: number;
32
+ onDragStart?: (dragEvent: ModelDragEvent) => void;
33
+ onDrag?: (dragEvent: ModelDragEvent) => void;
34
+ onDragEnd?: (dragEvent: ModelDragEvent) => void;
35
+ onTap?: (event: ModelEvent) => void;
36
+ onDoubleTap?: (event: ModelEvent) => void;
37
+ onLongPress?: (event: ModelEvent) => void;
38
+ poster?: string;
39
+ }
40
+ export declare const Model: React.ForwardRefExoticComponent<ModelProps & React.RefAttributes<ModelElement>>;
41
+ export {};
42
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAQd,MAAM,OAAO,CAAA;AAGd,OAAO,EAGL,UAAU,EACV,cAAc,EACd,YAAY,EACb,MAAM,YAAY,CAAA;AAGnB,OAAO,sBAAsB,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,kBAAkB,GAAG;gBAAE,GAAG,EAAE,GAAG,CAAA;aAAE,CAAA;SAClD;KACF;CACF;AAED,KAAK,aAAa,GACd,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GACjD,CAAC,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GACvE,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAA;AAEvD,MAAM,WAAW,UAAU;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,aAAa,CAAA;IACvB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAGpC,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAE/C,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAGzC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAsJD,eAAO,MAAM,KAAK,iFAAwB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { CSSModel3DProps, ModelElementRef } from './types';
2
+ export declare function CSSModel3DBase(props: CSSModel3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
3
+ export declare const CSSModel3D: import("react").ForwardRefExoticComponent<CSSModel3DProps & import("react").RefAttributes<import("./types").ModelElement>>;
4
+ //# sourceMappingURL=CSSModel3D.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSModel3D.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3D.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,2CAsB5E;AAED,eAAO,MAAM,UAAU,4HAA6B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { CSSModel3DProps, ModelElementRef } from './types';
2
+ export declare function renderCSSModel3DNotInSpatialDiv(inProps: CSSModel3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CSSModel3DNotInSpatialDiv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSModel3DNotInSpatialDiv.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE1D,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,eAAe,2CAgDvB"}
@@ -0,0 +1,3 @@
1
+ import { CSSModel3DProps } from './types';
2
+ export declare function renderCSSModel3DPortalInstance(spatialId: string, inProps: CSSModel3DProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CSSModel3DPortalInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSModel3DPortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DPortalInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAMzC,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,eAAe,2CA4CzB"}
@@ -0,0 +1,3 @@
1
+ import { CSSModel3DProps, ModelElementRef } from './types';
2
+ export declare function renderCSSModel3DStandardInstance(spatialId: string, inProps: CSSModel3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CSSModel3DStandardInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSModel3DStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DStandardInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM1D,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,eAAe,2CA8BvB"}
@@ -0,0 +1,3 @@
1
+ import { Model3DProps } from './types';
2
+ export declare const Model3D: import("react").ForwardRefExoticComponent<Model3DProps & import("react").RefAttributes<import("./types").ModelElement>>;
3
+ //# sourceMappingURL=Model3D.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model3D.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3D.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,SAAS,CAAA;AAgCvD,eAAO,MAAM,OAAO,yHAA0B,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { ModelDragEvent, SpatialEntity } from '@webspatial/core-sdk';
2
+ import { SpatialTransformType } from './types';
3
+ import { RectType } from '../types';
4
+ export declare class Model3DNative {
5
+ constructor(parentEntity?: SpatialEntity);
6
+ private parentEntity?;
7
+ private initPromise?;
8
+ private entity?;
9
+ private spatialModel3DComponent?;
10
+ private isDestroyed;
11
+ private _onDragStart?;
12
+ private _onDrag?;
13
+ private _onDragEnd?;
14
+ private _onTap?;
15
+ private _onDoubleTap?;
16
+ private _onLongPress?;
17
+ init(modelUrl: string, onSuccess: () => void, onFailure: (error: string) => void): Promise<any>;
18
+ private initInternal;
19
+ setVisible(visible: boolean): Promise<void>;
20
+ setContentMode(contentMode: 'fill' | 'fit'): Promise<void>;
21
+ setResizable(resizable: boolean): Promise<void>;
22
+ setAspectRatio(aspectRatio: number): Promise<void>;
23
+ updateByDom(dom: HTMLDivElement, options: {
24
+ spatialTransform: SpatialTransformType;
25
+ }): Promise<void>;
26
+ updateRectAndTransform(rect: RectType, spatialTransform: SpatialTransformType): Promise<void>;
27
+ setRotationAnchor(anchor: {
28
+ x: number;
29
+ y: number;
30
+ z: number;
31
+ }): Promise<void>;
32
+ setOpacity(opacity: number): Promise<void>;
33
+ set onDragStart(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
34
+ set onDrag(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
35
+ set onDragEnd(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
36
+ set onTap(callback: (() => void) | undefined);
37
+ set onDoubleTap(callback: (() => void) | undefined);
38
+ set onLongPress(callback: (() => void) | undefined);
39
+ /**
40
+ * Destroys the current 3D model instance
41
+ * 1. Marks the instance as destroyed
42
+ * 2. Waits for initialization to complete (if in progress)
43
+ * 3. Destroys the spatial entity
44
+ * 4. Cleans up all related references
45
+ */
46
+ destroy(): Promise<void>;
47
+ }
48
+ //# sourceMappingURL=Model3DNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model3DNative.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DNative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EAEd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAG9C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,qBAAa,aAAa;gBACZ,YAAY,CAAC,EAAE,aAAa;IAIxC,OAAO,CAAC,YAAY,CAAC,CAAe;IACpC,OAAO,CAAC,WAAW,CAAC,CAAc;IAClC,OAAO,CAAC,MAAM,CAAC,CAAe;IAC9B,OAAO,CAAC,uBAAuB,CAAC,CAAyB;IAIzD,OAAO,CAAC,WAAW,CAAQ;IAE3B,OAAO,CAAC,YAAY,CAAC,CAAqC;IAC1D,OAAO,CAAC,OAAO,CAAC,CAAqC;IACrD,OAAO,CAAC,UAAU,CAAC,CAAqC;IAExD,OAAO,CAAC,MAAM,CAAC,CAAY;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAY;IACjC,OAAO,CAAC,YAAY,CAAC,CAAY;IAE3B,IAAI,CACR,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;YAWtB,YAAY;IA8CpB,UAAU,CAAC,OAAO,EAAE,OAAO;IAM3B,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK;IAM1C,YAAY,CAAC,SAAS,EAAE,OAAO;IAM/B,cAAc,CAAC,WAAW,EAAE,MAAM;IAMlC,WAAW,CACf,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE;QAAE,gBAAgB,EAAE,oBAAoB,CAAA;KAAE;IAwC/C,sBAAsB,CAC1B,IAAI,EAAE,QAAQ,EACd,gBAAgB,EAAE,oBAAoB;IAwBlC,iBAAiB,CAAC,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAM7D,UAAU,CAAC,OAAO,EAAE,MAAM;IAMhC,IAAW,WAAW,CACpB,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,MAAM,CACf,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,SAAS,CAClB,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,KAAK,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKlD;IAED,IAAW,WAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKxD;IACD,IAAW,WAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKxD;IAED;;;;;;OAMG;IACG,OAAO;CAUd"}
@@ -0,0 +1,3 @@
1
+ import { Model3DProps, ModelElementRef } from './types';
2
+ export declare function renderModel3DNotInSpatialDiv(props: Model3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Model3DNotInSpatialDiv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model3DNotInSpatialDiv.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DNotInSpatialDiv.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAEZ,eAAe,EAEhB,MAAM,SAAS,CAAA;AAMhB,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,eAAe,2CA+QvB"}
@@ -0,0 +1,3 @@
1
+ import { Model3DProps } from './types';
2
+ export declare function renderModel3DPortalInstance(spatialId: string, props: Model3DProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Model3DPortalInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model3DPortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DPortalInstance.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAA4C,MAAM,SAAS,CAAA;AAiGhF,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,2CA0KpB"}
@@ -0,0 +1,3 @@
1
+ import { Model3DProps, ModelElementRef } from './types';
2
+ export declare function renderModel3DStandardInstance(spatialId: string, props: Model3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Model3DStandardInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model3DStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DStandardInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEvD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,eAAe,2CAgBvB"}
@@ -0,0 +1,4 @@
1
+ export { Model3D } from './Model3D';
2
+ export { type Model3DProps, type ModelElementRef, type ModelElement, type ModelEvent, type ModelDragEvent, } from './types';
3
+ export { CSSModel3D } from './CSSModel3D';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { CSSProperties, ForwardedRef } from 'react';
2
+ import { vecType, quatType } from '../types';
3
+ import { Vec3 } from '@webspatial/core-sdk';
4
+ export type SpatialTransformType = {
5
+ position: vecType;
6
+ rotation: quatType;
7
+ scale: vecType;
8
+ };
9
+ export type PartialSpatialTransformType = {
10
+ position?: Partial<vecType>;
11
+ rotation?: Partial<quatType>;
12
+ scale?: Partial<vecType>;
13
+ };
14
+ export interface ModelEvent {
15
+ target: ModelElement;
16
+ }
17
+ export interface ModelDragEvent extends ModelEvent {
18
+ eventType: 'dragstart' | 'dragend' | 'drag';
19
+ translation3D: Vec3;
20
+ startLocation3D: Vec3;
21
+ }
22
+ export interface Model3DProps {
23
+ spatialTransform?: PartialSpatialTransformType;
24
+ modelUrl: string;
25
+ visible: boolean;
26
+ contentMode?: 'fill' | 'fit';
27
+ resizable?: boolean;
28
+ aspectRatio?: number;
29
+ className?: string;
30
+ style?: CSSProperties | undefined;
31
+ children?: React.ReactNode;
32
+ onLoad?: (event: ModelEvent) => void;
33
+ onDragStart?: (dragEvent: ModelDragEvent) => void;
34
+ onDrag?: (dragEvent: ModelDragEvent) => void;
35
+ onDragEnd?: (dragEvent: ModelDragEvent) => void;
36
+ onTap?: (event: ModelEvent) => void;
37
+ onDoubleTap?: (event: ModelEvent) => void;
38
+ onLongPress?: (event: ModelEvent) => void;
39
+ }
40
+ export interface ModelElement extends HTMLDivElement {
41
+ ready: boolean;
42
+ currentSrc: string;
43
+ }
44
+ export type ModelElementRef = ForwardedRef<ModelElement>;
45
+ export type CSSModel3DProps = Omit<Model3DProps, 'spatialTransform' | 'visible'>;
46
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAEL,IAAI,EACL,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,YAAY,CAAA;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,SAAS,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;IAC3C,aAAa,EAAE,IAAI,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,EAAE,2BAA2B,CAAA;IAC9C,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAGjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAEpC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAE/C,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function useDetectLayoutDomUpdated(onDomUpdated: () => void): import("react").RefObject<HTMLDivElement>;
2
+ //# sourceMappingURL=useDetectLayoutDomUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDetectLayoutDomUpdated.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useDetectLayoutDomUpdated.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,IAAI,6CA0CjE"}
@@ -0,0 +1,15 @@
1
+ import { Model3DNative } from './Model3DNative';
2
+ import { ModelDragEvent, SpatialEntity } from '@webspatial/core-sdk';
3
+ export declare function useModel3DNative(modelUrl: string, parentEntity: SpatialEntity | undefined, eventHandlers?: {
4
+ onDragStart?: (dragEvent: ModelDragEvent) => void;
5
+ onDrag?: (dragEvent: ModelDragEvent) => void;
6
+ onDragEnd?: (dragEvent: ModelDragEvent) => void;
7
+ onTap?: () => void;
8
+ onDoubleTap?: () => void;
9
+ onLongPress?: () => void;
10
+ }, onModel3DNativeReadyCb?: (model3DNative: Model3DNative) => void): {
11
+ model3DNativeRef: import("react").MutableRefObject<Model3DNative | null>;
12
+ phase: "loading" | "success" | "failure";
13
+ failureReason: string;
14
+ };
15
+ //# sourceMappingURL=useModel3DNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModel3DNative.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useModel3DNative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpE,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,aAAa,GAAG,SAAS,EACvC,aAAa,GAAE;IACb,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,EACN,sBAAsB,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI;;;;EA8EhE"}
@@ -0,0 +1,19 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare function useSyncDomInfoFromStandardInstance(spatialId: string): {
3
+ modelRef: import("react").MutableRefObject<HTMLDivElement | null>;
4
+ domRect: {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ inheritedPortalStyle: CSSProperties;
11
+ anchor: {
12
+ x: number;
13
+ y: number;
14
+ z: number;
15
+ };
16
+ opacity: number;
17
+ className: string;
18
+ };
19
+ //# sourceMappingURL=useSyncDomInfoFromStandardInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSyncDomInfoFromStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,aAAa,EAAE,MAAM,OAAO,CAAA;AAQ9E,wBAAgB,kCAAkC,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;EAyEnE"}
@@ -0,0 +1,4 @@
1
+ import { PartialSpatialTransformType, SpatialTransformType } from './types';
2
+ export declare function PopulatePartialSpatialTransformType(spatialTransform?: PartialSpatialTransformType): SpatialTransformType;
3
+ export declare function getAbsoluteURL(url: string): string;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE3E,wBAAgB,mCAAmC,CACjD,gBAAgB,GAAE,2BAAgC,GACjD,oBAAoB,CAetB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,UAQzC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Component that add MutationObserver to monitor all dom changes including its children.
3
+ * If any dom changes, it will notify all SpatialDiv to render again for the purpose of sync standInstance layout to portalInstance.
4
+ */
5
+ export declare function SpatialMonitor(props: any): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=SpatialMonitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialMonitor.d.ts","sourceRoot":"","sources":["../../../../src/spatial-react-components/SpatialMonitor.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,2CAWxC"}
@@ -0,0 +1,6 @@
1
+ import { SpatialReactComponent } from './SpatialReactComponent';
2
+ import React from 'react';
3
+ export declare function withSpatial(Component: React.ElementType): any;
4
+ export declare const SpatialPrimitive: Record<string, typeof SpatialReactComponent>;
5
+ export declare const SpatialDiv: React.ForwardRefExoticComponent<import("./SpatialReactComponent").SpatialReactComponentProps & React.RefAttributes<HTMLDivElement>>;
6
+ //# sourceMappingURL=SpatialPrimitive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialPrimitive.d.ts","sourceRoot":"","sources":["../../../../src/spatial-react-components/SpatialPrimitive.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,wBAAgB,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,WAAW,OAsBvD;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,qBAAqB,CAAM,CAC/E;AAMD,eAAO,MAAM,UAAU,qIAAuB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
+ import { SpatialID } from './const';
3
+ import { spatialStyleDef } from './types';
4
+ interface PortalInstanceProps {
5
+ allowScroll?: boolean;
6
+ scrollWithParent?: boolean;
7
+ spatialStyle?: Partial<spatialStyleDef>;
8
+ El: React.ElementType;
9
+ children?: ReactNode;
10
+ style?: CSSProperties | undefined;
11
+ className?: string;
12
+ isSubPortal?: boolean;
13
+ [SpatialID]: string;
14
+ }
15
+ export declare function PortalInstance(inProps: PortalInstanceProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare namespace PortalInstance {
17
+ var displayName: string;
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=PortalInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/PortalInstance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,SAAS,EAMV,MAAM,OAAO,CAAA;AAad,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAInC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAEvC,EAAE,EAAE,KAAK,CAAC,WAAW,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CACpB;AAoYD,wBAAgB,cAAc,CAAC,OAAO,EAAE,mBAAmB,2CA+F1D;yBA/Fe,cAAc"}
@@ -0,0 +1,2 @@
1
+ export declare const SpatialDebugNameContext: import("react").Context<string>;
2
+ //# sourceMappingURL=SpatialDebugNameContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialDebugNameContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,iCAA4B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SpatialIsStandardInstanceContext: import("react").Context<boolean | null>;
2
+ //# sourceMappingURL=SpatialIsStandardInstanceContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialIsStandardInstanceContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,yCAE5C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SpatialLayerContext: import("react").Context<number>;
2
+ //# sourceMappingURL=SpatialLayerContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialLayerContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialLayerContext.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,iCAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { SpatialReactComponentProps } from './types';
2
+ export declare const SpatialReactComponent: import("react").ForwardRefExoticComponent<SpatialReactComponentProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ //# sourceMappingURL=SpatialReactComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialReactComponent.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialReactComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAG3B,MAAM,SAAS,CAAA;AAsIhB,eAAO,MAAM,qBAAqB,uHAA4C,CAAA"}
@@ -0,0 +1,24 @@
1
+ export declare class SpatialReactContextObject {
2
+ debugName: string;
3
+ constructor(debugName: string);
4
+ dom: HTMLElement | null;
5
+ domSpatialId: string | null;
6
+ private fns;
7
+ private spatialId2dom;
8
+ private spatialId2parentSpatialDom;
9
+ private layerSequences;
10
+ getSpatialID(layer: number, isInStandardInstance: boolean, debugName?: string): string;
11
+ onDomChange(spatialId: string, fn: () => void): void;
12
+ offDomChange(spatialId: string): void;
13
+ notifyDomChange(dom: HTMLElement): void;
14
+ querySpatialDom(spatialId: string): HTMLElement | null;
15
+ queryParentSpatialDom(spatialId: string): HTMLElement | null;
16
+ private subDivLayerSequences;
17
+ private subDivEventHandlers;
18
+ getSubDivSpatialID(layer: number, isInStandardInstance: boolean, prefix?: string): string;
19
+ onSubDivEvent(subSpatialId: string, eventHandler: (args: any) => void): void;
20
+ offSubDivEvent(subSpatialId: string): void;
21
+ notifySubDivEvent(subSpatialId: string, args: any): void;
22
+ }
23
+ export declare const SpatialReactContext: import("react").Context<SpatialReactContextObject | null>;
24
+ //# sourceMappingURL=SpatialReactContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialReactContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialReactContext.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IACpC,SAAS,EAAE,MAAM,CAAA;gBAEL,SAAS,EAAE,MAAM;IAI7B,GAAG,EAAE,WAAW,GAAG,IAAI,CAAO;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAElC,OAAO,CAAC,GAAG,CAAiC;IAE5C,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,0BAA0B,CAAkC;IAGpE,OAAO,CAAC,cAAc,CAAuC;IAEtD,YAAY,CACjB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,SAAS,GAAE,MAAW,GACrB,MAAM;IAYF,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI;IAO7C,YAAY,CAAC,SAAS,EAAE,MAAM;IAM9B,eAAe,CAAC,GAAG,EAAE,WAAW;IAMhC,eAAe,CAAC,SAAS,EAAE,MAAM;IAiBjC,qBAAqB,CAAC,SAAS,EAAE,MAAM;IA8B9C,OAAO,CAAC,oBAAoB,CAAuC;IACnE,OAAO,CAAC,mBAAmB,CAA0C;IAE9D,kBAAkB,CACvB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,MAAM,GAAE,MAAW,GAClB,MAAM;IAYF,aAAa,CAClB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IAK5B,cAAc,CAAC,YAAY,EAAE,MAAM;IAGnC,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAMzD;AAED,eAAO,MAAM,mBAAmB,2DACuB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { SpatialEntity, SpatialWindowComponent } from '@webspatial/core-sdk';
2
+ import { vecType, quatType, RectType } from '../types';
3
+ export declare class SpatialWindowManager {
4
+ initPromise?: Promise<any>;
5
+ entity?: SpatialEntity;
6
+ webview?: SpatialWindowComponent;
7
+ window: WindowProxy | null;
8
+ setDebugName(debugName: string): void;
9
+ private initInternal;
10
+ private initInternalFromWindow;
11
+ init(url: string): Promise<void>;
12
+ initFromWidow(parentSpatialWindowManager?: SpatialWindowManager | null): Promise<void>;
13
+ resize(rect: RectType, offset: vecType, rotation?: quatType, scale?: vecType, rotationOrigin?: vecType): Promise<void>;
14
+ setZIndex(zIndex: number): Promise<void>;
15
+ destroy(): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=SpatialWindowManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialWindowManager.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialWindowManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGtD,qBAAa,oBAAoB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,OAAO,CAAC,EAAE,sBAAsB,CAAA;IAChC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAO;IAEjC,YAAY,CAAC,SAAS,EAAE,MAAM;YAIhB,YAAY;YAeZ,sBAAsB;IA4B9B,IAAI,CAAC,GAAG,EAAE,MAAM;IAIhB,aAAa,CACjB,0BAA0B,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAKpD,MAAM,CACV,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,OAAO,EACf,QAAQ,GAAE,QAAqC,EAC/C,KAAK,GAAE,OAA8B,EACrC,cAAc,GAAE,OAA8B;IAgC1C,SAAS,CAAC,MAAM,EAAE,MAAM;IAKxB,OAAO;CAQd"}
@@ -0,0 +1,3 @@
1
+ import { SpatialWindowManager } from './SpatialWindowManager';
2
+ export declare const SpatialWindowManagerContext: import("react").Context<SpatialWindowManager | null | undefined>;
3
+ //# sourceMappingURL=SpatialWindowManagerContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpatialWindowManagerContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,eAAO,MAAM,2BAA2B,kEAEjC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
+ interface StandardInstanceProps {
3
+ El: React.ElementType;
4
+ children?: ReactNode;
5
+ style?: CSSProperties | undefined;
6
+ debugShowStandardInstance?: boolean;
7
+ }
8
+ export declare const StandardInstance: React.ForwardRefExoticComponent<StandardInstanceProps & React.RefAttributes<HTMLDivElement>>;
9
+ export {};
10
+ //# sourceMappingURL=StandardInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/StandardInstance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,SAAS,EAKV,MAAM,OAAO,CAAA;AA+Ed,UAAU,qBAAqB;IAC7B,EAAE,EAAE,KAAK,CAAC,WAAW,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAGjC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AACD,eAAO,MAAM,gBAAgB,8FAqC3B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SpatialID = "data-spatial-id";
2
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './SpatialReactComponent';
2
+ export { type SpatialReactComponentProps, type SpatialReactComponentRef, } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/index.tsx"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,SAAS,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { BackgroundMaterialType, CornerRadius } from '@webspatial/core-sdk';
2
+ import { SpatialID } from './const';
3
+ import { ReactNode, CSSProperties, ElementType, ForwardedRef } from 'react';
4
+ import { quatType, vecType } from '../types';
5
+ export type spatialStyleDef = {
6
+ position: Partial<vecType>;
7
+ rotation: quatType;
8
+ scale: Partial<vecType>;
9
+ zIndex?: number;
10
+ material?: {
11
+ type: BackgroundMaterialType;
12
+ };
13
+ cornerRadius: number | CornerRadius;
14
+ visible?: boolean;
15
+ };
16
+ export interface SpatialReactComponentProps {
17
+ allowScroll?: boolean;
18
+ scrollWithParent?: boolean;
19
+ spatialStyle?: Partial<spatialStyleDef>;
20
+ children?: ReactNode;
21
+ className?: string;
22
+ style?: CSSProperties | undefined;
23
+ component?: ElementType;
24
+ debugName?: string;
25
+ debugShowStandardInstance?: boolean;
26
+ }
27
+ export type SpatialReactComponentRef = ForwardedRef<HTMLDivElement>;
28
+ export interface SpatialReactComponentWithUniqueIDProps extends SpatialReactComponentProps {
29
+ [SpatialID]: string;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1B,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAA;KAAE,CAAA;IAC3C,YAAY,EAAE,MAAM,GAAG,YAAY,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAEjC,SAAS,CAAC,EAAE,WAAW,CAAA;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AAEnE,MAAM,WAAW,sCACf,SAAQ,0BAA0B;IAClC,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CACpB"}
@@ -0,0 +1,8 @@
1
+ import { SpatialWindowManager } from './SpatialWindowManager';
2
+ type PortalContainerOption = {
3
+ onContainerSpawned: (spatialWindowManager: SpatialWindowManager) => Promise<any>;
4
+ onContainerDestroyed: (spatialWindowManager: SpatialWindowManager, spawnedResult: any) => void;
5
+ };
6
+ export declare function usePortalContainer(options: PortalContainerOption): (SpatialWindowManager | undefined)[];
7
+ export {};
8
+ //# sourceMappingURL=usePortalContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePortalContainer.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/usePortalContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAI7D,KAAK,qBAAqB,GAAG;IAC3B,kBAAkB,EAAE,CAClB,oBAAoB,EAAE,oBAAoB,KACvC,OAAO,CAAC,GAAG,CAAC,CAAA;IACjB,oBAAoB,EAAE,CACpB,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,GAAG,KACf,IAAI,CAAA;CACV,CAAA;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,wCAoDhE"}
@@ -0,0 +1,15 @@
1
+ import { RectType } from '../types';
2
+ export declare function getInheritedStyleProps(computedStyle: CSSStyleDeclaration): any;
3
+ export declare function domRect2rectType(from: DOMRect): RectType;
4
+ export declare function parseTransformOrigin(computedStyle: CSSStyleDeclaration): {
5
+ x: number;
6
+ y: number;
7
+ z: number;
8
+ };
9
+ export declare function parseCornerRadius(computedStyle: CSSStyleDeclaration): {
10
+ topLeading: number;
11
+ bottomLeading: number;
12
+ topTrailing: number;
13
+ bottomTrailing: number;
14
+ };
15
+ //# sourceMappingURL=utils.d.ts.map