@webspatial/react-sdk 0.0.4 → 0.0.5

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 (274) hide show
  1. package/dist/default/index.d.mts +164 -0
  2. package/dist/default/index.d.ts +164 -0
  3. package/dist/{cjs/default → default}/index.js +56 -128
  4. package/dist/default/index.js.map +1 -0
  5. package/dist/default/index.mjs +3346 -0
  6. package/dist/default/index.mjs.map +1 -0
  7. package/dist/jsx/jsx-dev-runtime.d.mts +4 -0
  8. package/dist/jsx/jsx-dev-runtime.d.ts +3 -2
  9. package/dist/jsx/jsx-dev-runtime.js +3085 -6757
  10. package/dist/jsx/jsx-dev-runtime.js.map +1 -7
  11. package/dist/jsx/jsx-dev-runtime.mjs +3445 -0
  12. package/dist/jsx/jsx-dev-runtime.mjs.map +1 -0
  13. package/dist/jsx/jsx-runtime-C06ExmCC.d.mts +9 -0
  14. package/dist/jsx/jsx-runtime-C06ExmCC.d.ts +9 -0
  15. package/dist/jsx/jsx-runtime.d.mts +4 -0
  16. package/dist/jsx/jsx-runtime.d.ts +3 -2
  17. package/dist/jsx/jsx-runtime.js +3087 -6759
  18. package/dist/jsx/jsx-runtime.js.map +1 -7
  19. package/dist/jsx/jsx-runtime.mjs +3445 -0
  20. package/dist/jsx/jsx-runtime.mjs.map +1 -0
  21. package/dist/web/index.d.mts +164 -0
  22. package/dist/web/index.d.ts +164 -0
  23. package/dist/{cjs/web → web}/index.js +60 -134
  24. package/dist/web/index.js.map +1 -0
  25. package/dist/web/index.mjs +3346 -0
  26. package/dist/web/index.mjs.map +1 -0
  27. package/npm/plugin/vite.js +23 -22
  28. package/package.json +26 -11
  29. package/dist/cjs/default/XRApp.d.ts +0 -21
  30. package/dist/cjs/default/XRApp.d.ts.map +0 -1
  31. package/dist/cjs/default/index.d.ts +0 -5
  32. package/dist/cjs/default/index.d.ts.map +0 -1
  33. package/dist/cjs/default/index.js.map +0 -7
  34. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +0 -3
  35. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +0 -1
  36. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +0 -2
  37. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +0 -1
  38. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +0 -6
  39. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +0 -1
  40. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +0 -2
  41. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +0 -1
  42. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +0 -14
  43. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +0 -1
  44. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts +0 -6
  45. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts.map +0 -1
  46. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts +0 -2
  47. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts.map +0 -1
  48. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +0 -2
  49. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +0 -1
  50. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts +0 -4
  51. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +0 -1
  52. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +0 -4
  53. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +0 -1
  54. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +0 -29
  55. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +0 -1
  56. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts +0 -7
  57. package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +0 -1
  58. package/dist/cjs/default/spatial-react-components/Model/index.d.ts +0 -42
  59. package/dist/cjs/default/spatial-react-components/Model/index.d.ts.map +0 -1
  60. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts +0 -4
  61. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts.map +0 -1
  62. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +0 -3
  63. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +0 -1
  64. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +0 -3
  65. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +0 -1
  66. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +0 -3
  67. package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +0 -1
  68. package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts +0 -3
  69. package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts.map +0 -1
  70. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts +0 -48
  71. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts.map +0 -1
  72. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +0 -3
  73. package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +0 -1
  74. package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +0 -3
  75. package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +0 -1
  76. package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +0 -3
  77. package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +0 -1
  78. package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts +0 -4
  79. package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts.map +0 -1
  80. package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts +0 -46
  81. package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts.map +0 -1
  82. package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +0 -2
  83. package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +0 -1
  84. package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts +0 -15
  85. package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts.map +0 -1
  86. package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +0 -19
  87. package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +0 -1
  88. package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts +0 -4
  89. package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts.map +0 -1
  90. package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts +0 -6
  91. package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts.map +0 -1
  92. package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts +0 -6
  93. package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts.map +0 -1
  94. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +0 -20
  95. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +0 -1
  96. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +0 -2
  97. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +0 -1
  98. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +0 -2
  99. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +0 -1
  100. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +0 -2
  101. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +0 -1
  102. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +0 -3
  103. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +0 -1
  104. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +0 -24
  105. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +0 -1
  106. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +0 -17
  107. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +0 -1
  108. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +0 -3
  109. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +0 -1
  110. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +0 -10
  111. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +0 -1
  112. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts +0 -2
  113. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts.map +0 -1
  114. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts +0 -3
  115. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts.map +0 -1
  116. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts +0 -31
  117. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts.map +0 -1
  118. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +0 -8
  119. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +0 -1
  120. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts +0 -15
  121. package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts.map +0 -1
  122. package/dist/cjs/default/spatial-react-components/SpatialView.d.ts +0 -15
  123. package/dist/cjs/default/spatial-react-components/SpatialView.d.ts.map +0 -1
  124. package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts +0 -2
  125. package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts.map +0 -1
  126. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +0 -2
  127. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +0 -1
  128. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts +0 -2
  129. package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +0 -1
  130. package/dist/cjs/default/spatial-react-components/index.d.ts +0 -11
  131. package/dist/cjs/default/spatial-react-components/index.d.ts.map +0 -1
  132. package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +0 -13
  133. package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +0 -1
  134. package/dist/cjs/default/spatial-react-components/primitives.d.ts +0 -3
  135. package/dist/cjs/default/spatial-react-components/primitives.d.ts.map +0 -1
  136. package/dist/cjs/default/spatial-react-components/types.d.ts +0 -18
  137. package/dist/cjs/default/spatial-react-components/types.d.ts.map +0 -1
  138. package/dist/cjs/default/types.d.ts +0 -2
  139. package/dist/cjs/default/types.d.ts.map +0 -1
  140. package/dist/cjs/default/utils/debugTool.d.ts +0 -2
  141. package/dist/cjs/default/utils/debugTool.d.ts.map +0 -1
  142. package/dist/cjs/default/utils/getSession.d.ts +0 -6
  143. package/dist/cjs/default/utils/getSession.d.ts.map +0 -1
  144. package/dist/cjs/default/utils/index.d.ts +0 -3
  145. package/dist/cjs/default/utils/index.d.ts.map +0 -1
  146. package/dist/cjs/web/XRApp.d.ts +0 -21
  147. package/dist/cjs/web/XRApp.d.ts.map +0 -1
  148. package/dist/cjs/web/index.d.ts +0 -5
  149. package/dist/cjs/web/index.d.ts.map +0 -1
  150. package/dist/cjs/web/index.js.map +0 -7
  151. package/dist/cjs/web/noRuntime.d.ts +0 -5
  152. package/dist/cjs/web/noRuntime.d.ts.map +0 -1
  153. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +0 -3
  154. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +0 -1
  155. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +0 -2
  156. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +0 -1
  157. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +0 -6
  158. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +0 -1
  159. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +0 -2
  160. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +0 -1
  161. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +0 -14
  162. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +0 -1
  163. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts +0 -6
  164. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts.map +0 -1
  165. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts +0 -2
  166. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts.map +0 -1
  167. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +0 -2
  168. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +0 -1
  169. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts +0 -4
  170. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +0 -1
  171. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +0 -4
  172. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +0 -1
  173. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +0 -29
  174. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +0 -1
  175. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts +0 -7
  176. package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +0 -1
  177. package/dist/cjs/web/spatial-react-components/Model/index.d.ts +0 -42
  178. package/dist/cjs/web/spatial-react-components/Model/index.d.ts.map +0 -1
  179. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts +0 -4
  180. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts.map +0 -1
  181. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +0 -3
  182. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +0 -1
  183. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +0 -3
  184. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +0 -1
  185. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +0 -3
  186. package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +0 -1
  187. package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts +0 -3
  188. package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts.map +0 -1
  189. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts +0 -48
  190. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts.map +0 -1
  191. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +0 -3
  192. package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +0 -1
  193. package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +0 -3
  194. package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +0 -1
  195. package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +0 -3
  196. package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +0 -1
  197. package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts +0 -4
  198. package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts.map +0 -1
  199. package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts +0 -46
  200. package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts.map +0 -1
  201. package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +0 -2
  202. package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +0 -1
  203. package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts +0 -15
  204. package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts.map +0 -1
  205. package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +0 -19
  206. package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +0 -1
  207. package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts +0 -4
  208. package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts.map +0 -1
  209. package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts +0 -6
  210. package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts.map +0 -1
  211. package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts +0 -6
  212. package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts.map +0 -1
  213. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +0 -20
  214. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +0 -1
  215. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +0 -2
  216. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +0 -1
  217. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +0 -2
  218. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +0 -1
  219. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +0 -2
  220. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +0 -1
  221. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +0 -3
  222. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +0 -1
  223. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +0 -24
  224. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +0 -1
  225. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +0 -17
  226. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +0 -1
  227. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +0 -3
  228. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +0 -1
  229. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +0 -10
  230. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +0 -1
  231. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts +0 -2
  232. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts.map +0 -1
  233. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts +0 -3
  234. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts.map +0 -1
  235. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts +0 -31
  236. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts.map +0 -1
  237. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +0 -8
  238. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +0 -1
  239. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts +0 -15
  240. package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts.map +0 -1
  241. package/dist/cjs/web/spatial-react-components/SpatialView.d.ts +0 -15
  242. package/dist/cjs/web/spatial-react-components/SpatialView.d.ts.map +0 -1
  243. package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts +0 -2
  244. package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts.map +0 -1
  245. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +0 -2
  246. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +0 -1
  247. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts +0 -2
  248. package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +0 -1
  249. package/dist/cjs/web/spatial-react-components/index.d.ts +0 -11
  250. package/dist/cjs/web/spatial-react-components/index.d.ts.map +0 -1
  251. package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +0 -13
  252. package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +0 -1
  253. package/dist/cjs/web/spatial-react-components/primitives.d.ts +0 -3
  254. package/dist/cjs/web/spatial-react-components/primitives.d.ts.map +0 -1
  255. package/dist/cjs/web/spatial-react-components/types.d.ts +0 -18
  256. package/dist/cjs/web/spatial-react-components/types.d.ts.map +0 -1
  257. package/dist/cjs/web/types.d.ts +0 -2
  258. package/dist/cjs/web/types.d.ts.map +0 -1
  259. package/dist/cjs/web/utils/debugTool.d.ts +0 -2
  260. package/dist/cjs/web/utils/debugTool.d.ts.map +0 -1
  261. package/dist/cjs/web/utils/getSession.d.ts +0 -6
  262. package/dist/cjs/web/utils/getSession.d.ts.map +0 -1
  263. package/dist/cjs/web/utils/index.d.ts +0 -3
  264. package/dist/cjs/web/utils/index.d.ts.map +0 -1
  265. package/dist/jsx/injectSceneHook.d.ts +0 -2
  266. package/dist/jsx/injectSceneHook.d.ts.map +0 -1
  267. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  268. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  269. package/dist/jsx/jsx-shared.d.ts +0 -6
  270. package/dist/jsx/jsx-shared.d.ts.map +0 -1
  271. package/dist/jsx/spatialPolyfill.d.ts +0 -2
  272. package/dist/jsx/spatialPolyfill.d.ts.map +0 -1
  273. package/npm/index.d.ts +0 -1
  274. package/npm/index.js +0 -7
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
8
  var __export = (target, all) => {
10
9
  for (var name in all)
11
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -29,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
29
 
31
30
  // src/index.ts
32
- var src_exports = {};
33
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
34
33
  CSSSpatialDiv: () => CSSSpatialDiv,
35
34
  CSSSpatialPrimitive: () => CSSSpatialPrimitive,
36
35
  Model: () => Model,
@@ -48,7 +47,7 @@ __export(src_exports, {
48
47
  withCSSSpatial: () => withCSSSpatial,
49
48
  withSpatial: () => withSpatial
50
49
  });
51
- module.exports = __toCommonJS(src_exports);
50
+ module.exports = __toCommonJS(index_exports);
52
51
 
53
52
  // src/spatial-react-components/SpatialPrimitive.tsx
54
53
  var import_react11 = require("react");
@@ -199,7 +198,7 @@ var import_core_sdk = require("@webspatial/core-sdk");
199
198
  var spatial = null;
200
199
  var _currentSession = null;
201
200
  function getSession() {
202
- if (false) return null;
201
+ if ("false") return null;
203
202
  if (!spatial) {
204
203
  spatial = new import_core_sdk.Spatial();
205
204
  }
@@ -212,15 +211,13 @@ function getSession() {
212
211
  _currentSession = spatial.requestSession();
213
212
  return _currentSession;
214
213
  }
215
- __name(getSession, "getSession");
216
214
 
217
215
  // src/utils/debugTool.ts
218
216
  async function getStat() {
219
- if (false) return;
217
+ if ("false") return;
220
218
  const statsInfo = await getSession()._getStats();
221
219
  return statsInfo;
222
220
  }
223
- __name(getStat, "getStat");
224
221
  function simplifyEntityTree(rootTree) {
225
222
  const rootEntity = Object.values(rootTree.childEntities)[0];
226
223
  function traverseTree(node, parent, callback) {
@@ -232,7 +229,6 @@ function simplifyEntityTree(rootTree) {
232
229
  });
233
230
  }
234
231
  }
235
- __name(traverseTree, "traverseTree");
236
232
  let rootNode;
237
233
  const nodeMap = {};
238
234
  function visitNode(node, parent) {
@@ -258,12 +254,10 @@ function simplifyEntityTree(rootTree) {
258
254
  parentNode.children.push(newNode);
259
255
  }
260
256
  }
261
- __name(visitNode, "visitNode");
262
257
  traverseTree(rootEntity, null, visitNode);
263
258
  console.log("rootNode", rootNode);
264
259
  return rootNode;
265
260
  }
266
- __name(simplifyEntityTree, "simplifyEntityTree");
267
261
  async function inspectRootWindowContainer(simple) {
268
262
  const rootWindowContainerInfo = await getSession()._inspectRootWindowContainer();
269
263
  console.log(rootWindowContainerInfo);
@@ -272,9 +266,8 @@ async function inspectRootWindowContainer(simple) {
272
266
  }
273
267
  return rootWindowContainerInfo;
274
268
  }
275
- __name(inspectRootWindowContainer, "inspectRootWindowContainer");
276
269
  function enableDebugTool() {
277
- if (false) return;
270
+ if ("false") return;
278
271
  const session = getSession();
279
272
  Object.assign(window, {
280
273
  session,
@@ -282,7 +275,6 @@ function enableDebugTool() {
282
275
  inspectRootWindowContainer
283
276
  });
284
277
  }
285
- __name(enableDebugTool, "enableDebugTool");
286
278
 
287
279
  // src/spatial-react-components/SpatialReactComponent/StandardInstance.tsx
288
280
  var import_react4 = require("react");
@@ -293,7 +285,6 @@ function useForceUpdate() {
293
285
  const [, setToggle] = (0, import_react.useState)(false);
294
286
  return () => setToggle((toggle) => !toggle);
295
287
  }
296
- __name(useForceUpdate, "useForceUpdate");
297
288
 
298
289
  // src/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.ts
299
290
  var import_react2 = require("react");
@@ -309,9 +300,6 @@ var SpatialID = "data-spatial-id";
309
300
 
310
301
  // src/spatial-react-components/SpatialReactComponent/SpatialReactContext.ts
311
302
  var SpatialReactContextObject = class {
312
- static {
313
- __name(this, "SpatialReactContextObject");
314
- }
315
303
  debugName;
316
304
  constructor(debugName) {
317
305
  this.debugName = debugName;
@@ -433,9 +421,9 @@ function useDetectDomRectChange() {
433
421
  );
434
422
  return;
435
423
  }
436
- const handleResize = /* @__PURE__ */ __name(() => {
424
+ const handleResize = () => {
437
425
  forceUpdate();
438
- }, "handleResize");
426
+ };
439
427
  window.addEventListener("resize", handleResize);
440
428
  return () => {
441
429
  window.removeEventListener("resize", handleResize);
@@ -472,7 +460,6 @@ function useDetectDomRectChange() {
472
460
  }, []);
473
461
  return ref;
474
462
  }
475
- __name(useDetectDomRectChange, "useDetectDomRectChange");
476
463
  var StandardInstance = (0, import_react4.forwardRef)(function(inProps, refIn) {
477
464
  const { El, style: inStyle, debugShowStandardInstance, ...props } = inProps;
478
465
  const extraStyle = {
@@ -512,9 +499,6 @@ var import_react6 = require("react");
512
499
 
513
500
  // src/spatial-react-components/SpatialReactComponent/SpatialWindowManager.ts
514
501
  var SpatialWindowManager = class {
515
- static {
516
- __name(this, "SpatialWindowManager");
517
- }
518
502
  initPromise;
519
503
  entity;
520
504
  webview;
@@ -523,7 +507,7 @@ var SpatialWindowManager = class {
523
507
  this.entity?._setName(debugName);
524
508
  }
525
509
  async initInternal(url) {
526
- if (false) return;
510
+ if ("false") return;
527
511
  this.entity = await getSession().createEntity();
528
512
  this.webview = await getSession().createWindowComponent();
529
513
  await this.webview.loadURL(url);
@@ -536,7 +520,7 @@ var SpatialWindowManager = class {
536
520
  await this.entity.setParent(ent);
537
521
  }
538
522
  async initInternalFromWindow(parentSpatialWindowManager) {
539
- if (false) return;
523
+ if ("false") return;
540
524
  var w = await getSession().createWindowContext();
541
525
  this.window = w;
542
526
  this.entity = await getSession().createEntity();
@@ -631,7 +615,6 @@ function usePortalContainer(options) {
631
615
  spatialWindowManagerRef.current = windowMgr;
632
616
  forceUpdate();
633
617
  }
634
- __name(asyncCreatePortalContainer, "asyncCreatePortalContainer");
635
618
  if (isStandard !== true) {
636
619
  asyncCreatePortalContainer();
637
620
  }
@@ -646,7 +629,6 @@ function usePortalContainer(options) {
646
629
  }, []);
647
630
  return [spatialWindowManagerRef.current];
648
631
  }
649
- __name(usePortalContainer, "usePortalContainer");
650
632
 
651
633
  // src/spatial-react-components/SpatialReactComponent/utils.ts
652
634
  function getInheritedStyleProps(computedStyle) {
@@ -705,7 +687,6 @@ function getInheritedStyleProps(computedStyle) {
705
687
  }
706
688
  return props;
707
689
  }
708
- __name(getInheritedStyleProps, "getInheritedStyleProps");
709
690
  function domRect2rectType(from) {
710
691
  return {
711
692
  x: from.x,
@@ -714,7 +695,6 @@ function domRect2rectType(from) {
714
695
  height: from.height
715
696
  };
716
697
  }
717
- __name(domRect2rectType, "domRect2rectType");
718
698
  function parseTransformOrigin(computedStyle) {
719
699
  const transformOriginProperty = computedStyle.getPropertyValue("transform-origin");
720
700
  const [x, y] = transformOriginProperty.split(" ").map(parseFloat);
@@ -726,7 +706,6 @@ function parseTransformOrigin(computedStyle) {
726
706
  z: 0.5
727
707
  };
728
708
  }
729
- __name(parseTransformOrigin, "parseTransformOrigin");
730
709
  function parseBorderRadius(borderProperty, width) {
731
710
  if (borderProperty === "") {
732
711
  return 0;
@@ -736,7 +715,6 @@ function parseBorderRadius(borderProperty, width) {
736
715
  }
737
716
  return parseFloat(borderProperty);
738
717
  }
739
- __name(parseBorderRadius, "parseBorderRadius");
740
718
  function parseCornerRadius(computedStyle) {
741
719
  const width = parseFloat(computedStyle.getPropertyValue("width"));
742
720
  const topLeftPropertyValue = computedStyle.getPropertyValue(
@@ -759,7 +737,6 @@ function parseCornerRadius(computedStyle) {
759
737
  };
760
738
  return cornerRadius;
761
739
  }
762
- __name(parseCornerRadius, "parseCornerRadius");
763
740
 
764
741
  // src/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.ts
765
742
  var import_react7 = require("react");
@@ -794,13 +771,11 @@ function renderJSXPortalInstance(inProps, elWidth, elHeight, inheritedPortalStyl
794
771
  };
795
772
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(El, { style, className, ...props });
796
773
  }
797
- __name(renderJSXPortalInstance, "renderJSXPortalInstance");
798
774
  function setOpenWindowStyle(openedWindow) {
799
775
  openedWindow.document.documentElement.style.cssText += document.documentElement.style.cssText;
800
776
  openedWindow.document.documentElement.style.backgroundColor = "transparent";
801
777
  openedWindow.document.body.style.margin = "0px";
802
778
  }
803
- __name(setOpenWindowStyle, "setOpenWindowStyle");
804
779
  function handleOpenWindowDocumentClick(openedWindow) {
805
780
  openedWindow.document.onclick = function(e) {
806
781
  let element = e.target;
@@ -820,7 +795,6 @@ function handleOpenWindowDocumentClick(openedWindow) {
820
795
  }
821
796
  };
822
797
  }
823
- __name(handleOpenWindowDocumentClick, "handleOpenWindowDocumentClick");
824
798
  function asyncLoadStyleToChildWindow(childWindow, n, debugName) {
825
799
  return new Promise((resolve) => {
826
800
  n.href += "?uniqueURL=" + Math.random();
@@ -838,7 +812,6 @@ function asyncLoadStyleToChildWindow(childWindow, n, debugName) {
838
812
  childWindow.document.head.appendChild(n);
839
813
  });
840
814
  }
841
- __name(asyncLoadStyleToChildWindow, "asyncLoadStyleToChildWindow");
842
815
  async function syncParentHeadToChild(childWindow, debugName) {
843
816
  const styleLoadedPromises = [];
844
817
  for (let i = document.head.children.length - 1; i >= 0; i--) {
@@ -859,7 +832,6 @@ async function syncParentHeadToChild(childWindow, debugName) {
859
832
  }
860
833
  return Promise.all(styleLoadedPromises);
861
834
  }
862
- __name(syncParentHeadToChild, "syncParentHeadToChild");
863
835
  async function syncHeaderStyle(openedWindow, debugName) {
864
836
  await syncParentHeadToChild(openedWindow, debugName);
865
837
  const headObserver = new MutationObserver((mutations) => {
@@ -868,14 +840,12 @@ async function syncHeaderStyle(openedWindow, debugName) {
868
840
  headObserver.observe(document.head, { childList: true, subtree: true });
869
841
  return headObserver;
870
842
  }
871
- __name(syncHeaderStyle, "syncHeaderStyle");
872
843
  function syncDefaultSpatialStyle(openedWindow, debugName) {
873
844
  const styleElement = document.createElement("style");
874
845
  styleElement.type = "text/css";
875
846
  styleElement.innerHTML = " .xr-spatial-default { --xr-back: 0.001; --xr-background-material: none } ";
876
847
  openedWindow.document.head.appendChild(styleElement);
877
848
  }
878
- __name(syncDefaultSpatialStyle, "syncDefaultSpatialStyle");
879
849
  function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, cornerRadiusFromStyle, opacity, stylePosition) {
880
850
  let { allowScroll, scrollWithParent, style, spatialStyle = {} } = props;
881
851
  let {
@@ -1003,7 +973,6 @@ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, corne
1003
973
  }
1004
974
  }, [spatialWindowManager, domRect.width]);
1005
975
  }
1006
- __name(useSyncSpatialProps, "useSyncSpatialProps");
1007
976
  function useSyncDomRect(spatialId) {
1008
977
  const [domRect, setDomRect] = (0, import_react8.useState)({
1009
978
  x: 0,
@@ -1027,7 +996,7 @@ function useSyncDomRect(spatialId) {
1027
996
  const spatialReactContextObject = (0, import_react8.useContext)(SpatialReactContext);
1028
997
  const inheritedPortalClassNameRef = (0, import_react8.useRef)("");
1029
998
  (0, import_react8.useEffect)(() => {
1030
- const syncDomRect = /* @__PURE__ */ __name(() => {
999
+ const syncDomRect = () => {
1031
1000
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
1032
1001
  if (!dom) {
1033
1002
  return;
@@ -1051,7 +1020,7 @@ function useSyncDomRect(spatialId) {
1051
1020
  opacityRef.current = opacity;
1052
1021
  inheritedPortalClassNameRef.current = dom.className;
1053
1022
  setDomRect(rectType);
1054
- }, "syncDomRect");
1023
+ };
1055
1024
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
1056
1025
  return () => {
1057
1026
  spatialReactContextObject?.offDomChange(spatialId);
@@ -1066,7 +1035,6 @@ function useSyncDomRect(spatialId) {
1066
1035
  className: inheritedPortalClassNameRef.current
1067
1036
  };
1068
1037
  }
1069
- __name(useSyncDomRect, "useSyncDomRect");
1070
1038
  function PortalInstance(inProps) {
1071
1039
  const { allowScroll, scrollWithParent, spatialStyle, isSubPortal, ...props } = inProps;
1072
1040
  const debugName = (0, import_react8.useContext)(SpatialDebugNameContext);
@@ -1145,7 +1113,6 @@ function PortalInstance(inProps) {
1145
1113
  )
1146
1114
  ] });
1147
1115
  }
1148
- __name(PortalInstance, "PortalInstance");
1149
1116
  PortalInstance.displayName = "PortalInstance";
1150
1117
 
1151
1118
  // src/spatial-react-components/SpatialReactComponent/SpatialLayerContext.ts
@@ -1170,13 +1137,11 @@ function parseProps(inProps) {
1170
1137
  const debugDesc = { debugName, debugShowStandardInstance };
1171
1138
  return { componentDesc, spatialDesc, debugDesc, props };
1172
1139
  }
1173
- __name(parseProps, "parseProps");
1174
1140
  function renderWebReactComponent(inProps, ref) {
1175
1141
  const { componentDesc, props } = parseProps(inProps);
1176
1142
  const { El } = componentDesc;
1177
1143
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(El, { ...props, ref });
1178
1144
  }
1179
- __name(renderWebReactComponent, "renderWebReactComponent");
1180
1145
  function renderSpatialReactComponent(inProps, ref) {
1181
1146
  const { componentDesc, spatialDesc, debugDesc, props } = parseProps(inProps);
1182
1147
  const standardInstanceProps = {
@@ -1198,7 +1163,6 @@ function renderSpatialReactComponent(inProps, ref) {
1198
1163
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PortalInstance, { isSubPortal: false, ...portalInstanceProps })
1199
1164
  ] });
1200
1165
  }
1201
- __name(renderSpatialReactComponent, "renderSpatialReactComponent");
1202
1166
  function renderSubPortalInstance(inProps) {
1203
1167
  const { componentDesc, spatialDesc, props } = parseProps(inProps);
1204
1168
  const portalInstanceProps = {
@@ -1208,7 +1172,6 @@ function renderSubPortalInstance(inProps) {
1208
1172
  };
1209
1173
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PortalInstance, { isSubPortal: true, ...portalInstanceProps });
1210
1174
  }
1211
- __name(renderSubPortalInstance, "renderSubPortalInstance");
1212
1175
  function SpatialReactComponentRefactor(inProps, ref) {
1213
1176
  const layer = (0, import_react10.useContext)(SpatialLayerContext) + 1;
1214
1177
  const parentSpatialReactContextObject = (0, import_react10.useContext)(SpatialReactContext);
@@ -1225,7 +1188,6 @@ function SpatialReactComponentRefactor(inProps, ref) {
1225
1188
  const contentInLayer = renderContentInLayer(props, ref);
1226
1189
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpatialDebugNameContext.Provider, { value: inProps.debugName || "", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpatialLayerContext.Provider, { value: layer, children: contentInLayer }) });
1227
1190
  }
1228
- __name(SpatialReactComponentRefactor, "SpatialReactComponentRefactor");
1229
1191
  function renderContentInLayer(inProps, ref) {
1230
1192
  const isInStandardInstance = (0, import_react10.useContext)(SpatialIsStandardInstanceContext);
1231
1193
  const isWebSpatialEnv = getSession() !== null;
@@ -1240,7 +1202,6 @@ function renderContentInLayer(inProps, ref) {
1240
1202
  }
1241
1203
  }
1242
1204
  }
1243
- __name(renderContentInLayer, "renderContentInLayer");
1244
1205
  var SpatialReactComponent = (0, import_react10.forwardRef)(SpatialReactComponentRefactor);
1245
1206
  SpatialReactComponent.displayName = "SpatialReactComponent";
1246
1207
 
@@ -1270,13 +1231,12 @@ function withSpatial(Component) {
1270
1231
  return WithSpatialComponent;
1271
1232
  }
1272
1233
  }
1273
- __name(withSpatial, "withSpatial");
1274
1234
  var SpatialPrimitive = {};
1275
- (/* @__PURE__ */ __name(function createSpatialPrimitive(SpatialPrimitive2) {
1235
+ (function createSpatialPrimitive(SpatialPrimitive2) {
1276
1236
  primitives.forEach((primitive) => {
1277
1237
  SpatialPrimitive2[primitive] = withSpatial(primitive);
1278
1238
  });
1279
- }, "createSpatialPrimitive"))(SpatialPrimitive);
1239
+ })(SpatialPrimitive);
1280
1240
  var SpatialDiv = SpatialPrimitive.div;
1281
1241
 
1282
1242
  // src/spatial-react-components/hooks/useMonitorDomChange.tsx
@@ -1290,7 +1250,6 @@ function notifyUpdateStandInstanceLayout() {
1290
1250
  })
1291
1251
  );
1292
1252
  }
1293
- __name(notifyUpdateStandInstanceLayout, "notifyUpdateStandInstanceLayout");
1294
1253
  function notifyDOMUpdate(mutationsList) {
1295
1254
  document.dispatchEvent(
1296
1255
  new CustomEvent("domUpdated" /* domUpdated */, {
@@ -1298,7 +1257,6 @@ function notifyDOMUpdate(mutationsList) {
1298
1257
  })
1299
1258
  );
1300
1259
  }
1301
- __name(notifyDOMUpdate, "notifyDOMUpdate");
1302
1260
 
1303
1261
  // src/spatial-react-components/hooks/useMonitorDomChange.tsx
1304
1262
  function useMonitorDomChange() {
@@ -1320,7 +1278,6 @@ function useMonitorDomChange() {
1320
1278
  }, []);
1321
1279
  return ref;
1322
1280
  }
1323
- __name(useMonitorDomChange, "useMonitorDomChange");
1324
1281
 
1325
1282
  // src/spatial-react-components/hooks/useMonitorDocumentHeaderChange.tsx
1326
1283
  var import_react13 = require("react");
@@ -1340,7 +1297,6 @@ function useMonitorDocumentHeaderChange() {
1340
1297
  };
1341
1298
  }, []);
1342
1299
  }
1343
- __name(useMonitorDocumentHeaderChange, "useMonitorDocumentHeaderChange");
1344
1300
 
1345
1301
  // src/spatial-react-components/SpatialMonitor.tsx
1346
1302
  var import_jsx_runtime5 = require("react/jsx-runtime");
@@ -1354,7 +1310,6 @@ function SpatialMonitor(props) {
1354
1310
  " "
1355
1311
  ] });
1356
1312
  }
1357
- __name(SpatialMonitor, "SpatialMonitor");
1358
1313
 
1359
1314
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.tsx
1360
1315
  var import_react20 = require("react");
@@ -1401,12 +1356,10 @@ function parse2dMatrix(transformDataArray) {
1401
1356
  );
1402
1357
  return matrix4;
1403
1358
  }
1404
- __name(parse2dMatrix, "parse2dMatrix");
1405
1359
  function parse3dMatrix(transformDataArray) {
1406
1360
  const matrix4 = new import_Matrix4.Matrix4().fromArray(transformDataArray);
1407
1361
  return matrix4;
1408
1362
  }
1409
- __name(parse3dMatrix, "parse3dMatrix");
1410
1363
  function parseTransform(computedStyle) {
1411
1364
  let transform = computedStyle.getPropertyValue("transform");
1412
1365
  const matrixFlagString = "matrix(";
@@ -1425,7 +1378,6 @@ function parseTransform(computedStyle) {
1425
1378
  }
1426
1379
  }
1427
1380
  }
1428
- __name(parseTransform, "parseTransform");
1429
1381
  function parseBack(computedStyle) {
1430
1382
  let useBackProperty = computedStyle.position === "absolute" || computedStyle.position === "relative" || computedStyle.position === "fixed";
1431
1383
  if (!useBackProperty) return new import_Matrix4.Matrix4();
@@ -1437,7 +1389,6 @@ function parseBack(computedStyle) {
1437
1389
  }
1438
1390
  return new import_Matrix4.Matrix4().makeTranslation(0, 0, back || 1);
1439
1391
  }
1440
- __name(parseBack, "parseBack");
1441
1392
  function parseSpatialStyle(node) {
1442
1393
  const computedStyle = getComputedStyle(node);
1443
1394
  const mat4ForBack = parseBack(computedStyle);
@@ -1469,7 +1420,6 @@ function parseSpatialStyle(node) {
1469
1420
  visible
1470
1421
  };
1471
1422
  }
1472
- __name(parseSpatialStyle, "parseSpatialStyle");
1473
1423
  function useSpatialStyle() {
1474
1424
  const ref = (0, import_react14.useRef)(null);
1475
1425
  const [spatialStyle, setSpatialStyle] = (0, import_react14.useState)({
@@ -1533,8 +1483,7 @@ function useSpatialStyle() {
1533
1483
  }
1534
1484
  return false;
1535
1485
  }
1536
- __name(isDescendant, "isDescendant");
1537
- const onDomUpdated = /* @__PURE__ */ __name((event) => {
1486
+ const onDomUpdated = (event) => {
1538
1487
  const mutationsList = event.detail;
1539
1488
  const spatialReactComponentDiv = ref.current.previousElementSibling;
1540
1489
  const targets = mutationsList.map((m) => m.target).filter(
@@ -1543,7 +1492,7 @@ function useSpatialStyle() {
1543
1492
  if (targets.length > 0) {
1544
1493
  checkSpatialStyleUpdate();
1545
1494
  }
1546
- }, "onDomUpdated");
1495
+ };
1547
1496
  document.addEventListener(
1548
1497
  "domUpdated" /* domUpdated */,
1549
1498
  onDomUpdated
@@ -1557,7 +1506,6 @@ function useSpatialStyle() {
1557
1506
  }, []);
1558
1507
  return { ref, ready, spatialStyle };
1559
1508
  }
1560
- __name(useSpatialStyle, "useSpatialStyle");
1561
1509
 
1562
1510
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.ts
1563
1511
  var import_react15 = require("react");
@@ -1577,7 +1525,6 @@ function injectClassStyle() {
1577
1525
  `;
1578
1526
  document.head.prepend(style);
1579
1527
  }
1580
- __name(injectClassStyle, "injectClassStyle");
1581
1528
  injectClassStyle();
1582
1529
 
1583
1530
  // src/spatial-react-components/CSSSpatialDiv/utils.ts
@@ -1598,18 +1545,15 @@ function extractAndRemoveCustomProperties(cssText, properties) {
1598
1545
  const filteredCssText = filteredRules.join(";").trim();
1599
1546
  return { extractedValues, filteredCssText };
1600
1547
  }
1601
- __name(extractAndRemoveCustomProperties, "extractAndRemoveCustomProperties");
1602
1548
  function joinToCSSText(cssKV) {
1603
1549
  const rules = Object.entries(cssKV).map(([key, value]) => `${key}: ${value}`);
1604
1550
  return rules.join(";");
1605
1551
  }
1606
- __name(joinToCSSText, "joinToCSSText");
1607
1552
 
1608
1553
  // src/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.ts
1609
1554
  function makeOriginalKey(key) {
1610
1555
  return `__original_${key}`;
1611
1556
  }
1612
- __name(makeOriginalKey, "makeOriginalKey");
1613
1557
  function useHijackSpatialDivRef(refIn, cssParserRef) {
1614
1558
  const ref = cssParserRef;
1615
1559
  const spatialDivRef = (0, import_react16.useCallback)(
@@ -1725,9 +1669,9 @@ function useHijackSpatialDivRef(refIn, cssParserRef) {
1725
1669
  return result;
1726
1670
  };
1727
1671
  });
1728
- const __getComputedStyle = /* @__PURE__ */ __name((originalGetComputedStyle, pseudoElt) => {
1672
+ const __getComputedStyle = (originalGetComputedStyle, pseudoElt) => {
1729
1673
  return originalGetComputedStyle(domElement, pseudoElt);
1730
- }, "__getComputedStyle");
1674
+ };
1731
1675
  const proxyDomElement = new Proxy(domElement, {
1732
1676
  get(target, prop) {
1733
1677
  if (prop === "style") {
@@ -1787,7 +1731,6 @@ function useHijackSpatialDivRef(refIn, cssParserRef) {
1787
1731
  );
1788
1732
  return spatialDivRef;
1789
1733
  }
1790
- __name(useHijackSpatialDivRef, "useHijackSpatialDivRef");
1791
1734
 
1792
1735
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.ts
1793
1736
  var import_react17 = require("react");
@@ -1797,9 +1740,6 @@ var CSSSpatialLayerContext = (0, import_react17.createContext)(0);
1797
1740
  var import_react18 = require("react");
1798
1741
  var CSSSpatialID = "CSSSpatialID";
1799
1742
  var CSSSpatialRootContextObject = class {
1800
- static {
1801
- __name(this, "CSSSpatialRootContextObject");
1802
- }
1803
1743
  prefix = "css";
1804
1744
  domSpatialId = null;
1805
1745
  fns = {};
@@ -1890,11 +1830,9 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
1890
1830
  )
1891
1831
  ] });
1892
1832
  }
1893
- __name(renderRootCSSSpatialComponent, "renderRootCSSSpatialComponent");
1894
1833
  function renderInWebEnv(props, ref) {
1895
1834
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { ...props, ref });
1896
1835
  }
1897
- __name(renderInWebEnv, "renderInWebEnv");
1898
1836
  function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inProps, refIn) {
1899
1837
  const { style: inStyle = {}, ...props } = inProps;
1900
1838
  const style = {
@@ -1905,9 +1843,9 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1905
1843
  var cssParserRef = (0, import_react19.useRef)(null);
1906
1844
  const spatialDivRef = useHijackSpatialDivRef(refIn, cssParserRef);
1907
1845
  (0, import_react19.useEffect)(() => {
1908
- const onDomChangeAction = /* @__PURE__ */ __name((dom) => {
1846
+ const onDomChangeAction = (dom) => {
1909
1847
  cssParserRef.current = dom;
1910
- }, "onDomChangeAction");
1848
+ };
1911
1849
  cssSpatialRootContextObject.onDomChange(cssSpatialID, onDomChangeAction);
1912
1850
  return () => {
1913
1851
  cssSpatialRootContextObject.offDomChange(cssSpatialID, onDomChangeAction);
@@ -1915,7 +1853,6 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1915
1853
  }, []);
1916
1854
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { style, ...props, ref: spatialDivRef });
1917
1855
  }
1918
- __name(renderInStandardInstance, "renderInStandardInstance");
1919
1856
  function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inProps) {
1920
1857
  const {
1921
1858
  style = {},
@@ -1966,10 +1903,9 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
1966
1903
  )
1967
1904
  ] });
1968
1905
  }
1969
- __name(renderInPortalInstance, "renderInPortalInstance");
1970
1906
  function CSSSpatialComponentBase(inProps, ref) {
1971
1907
  const { [CSSSpatialID]: cssSpatialID, ...props } = inProps;
1972
- const isWebEnv = !getSession();
1908
+ const isWebEnv = "false";
1973
1909
  if (isWebEnv) {
1974
1910
  return renderInWebEnv(props, ref);
1975
1911
  } else {
@@ -1997,7 +1933,6 @@ function CSSSpatialComponentBase(inProps, ref) {
1997
1933
  }
1998
1934
  }
1999
1935
  }
2000
- __name(CSSSpatialComponentBase, "CSSSpatialComponentBase");
2001
1936
  var CSSSpatialComponentBaseWithRef = (0, import_react19.forwardRef)(CSSSpatialComponentBase);
2002
1937
  function CSSSpatialComponentWithRef(inProps, ref) {
2003
1938
  const layer = (0, import_react19.useContext)(CSSSpatialLayerContext) + 1;
@@ -2014,7 +1949,6 @@ function CSSSpatialComponentWithRef(inProps, ref) {
2014
1949
  const props = { ...inProps, [CSSSpatialID]: cssSpatialID };
2015
1950
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CSSSpatialDebugNameContext.Provider, { value: inProps.debugName || "", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CSSSpatialLayerContext.Provider, { value: layer, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CSSSpatialComponentBaseWithRef, { ...props, ref }) }) });
2016
1951
  }
2017
- __name(CSSSpatialComponentWithRef, "CSSSpatialComponentWithRef");
2018
1952
  var CSSSpatialComponent = (0, import_react19.forwardRef)(CSSSpatialComponentWithRef);
2019
1953
 
2020
1954
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.tsx
@@ -2052,22 +1986,21 @@ function withCSSSpatial(Component) {
2052
1986
  return WithCSSSpatialComponent;
2053
1987
  }
2054
1988
  }
2055
- __name(withCSSSpatial, "withCSSSpatial");
2056
1989
  var CSSSpatialPrimitive = {};
2057
- (/* @__PURE__ */ __name(function createSpatialPrimitive2(CSSSpatialPrimitive2) {
1990
+ (function createSpatialPrimitive2(CSSSpatialPrimitive2) {
2058
1991
  primitives.forEach((primitive) => {
2059
1992
  CSSSpatialPrimitive2[primitive] = withCSSSpatial(primitive);
2060
1993
  });
2061
- }, "createSpatialPrimitive"))(CSSSpatialPrimitive);
1994
+ })(CSSSpatialPrimitive);
2062
1995
  var CSSSpatialDiv = CSSSpatialPrimitive.div;
2063
1996
 
2064
1997
  // src/spatial-react-components/SpatialView.tsx
2065
1998
  var import_core_sdk2 = require("@webspatial/core-sdk");
2066
1999
  var import_react21 = require("react");
2067
2000
  var import_jsx_runtime8 = require("react/jsx-runtime");
2068
- var runAsync = /* @__PURE__ */ __name((fn) => {
2001
+ var runAsync = (fn) => {
2069
2002
  return fn();
2070
- }, "runAsync");
2003
+ };
2071
2004
  var SpatialViewEl = (0, import_react21.forwardRef)(
2072
2005
  (props, ref) => {
2073
2006
  const divRef = (0, import_react21.useRef)(null);
@@ -2075,18 +2008,18 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2075
2008
  const activePromise = (0, import_react21.useRef)(null);
2076
2009
  (0, import_react21.useImperativeHandle)(ref, () => ({
2077
2010
  ...divRef.current,
2078
- getViewEntity: /* @__PURE__ */ __name(async () => {
2011
+ getViewEntity: async () => {
2079
2012
  if (activePromise.current) {
2080
2013
  await activePromise.current;
2081
2014
  }
2082
2015
  return spatialEntity.current;
2083
- }, "getViewEntity")
2016
+ }
2084
2017
  }));
2085
2018
  if (getSession() == null) {
2086
2019
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ref: divRef, ...props, children: "WebSpatial is not supported in this browser" });
2087
2020
  }
2088
2021
  (0, import_react21.useEffect)(() => {
2089
- if (false) return;
2022
+ if ("false") return;
2090
2023
  activePromise.current = runAsync(async () => {
2091
2024
  if (activePromise.current) {
2092
2025
  await activePromise.current;
@@ -2099,7 +2032,7 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2099
2032
  }
2100
2033
  });
2101
2034
  return () => {
2102
- if (false) return;
2035
+ if ("false") return;
2103
2036
  runAsync(async () => {
2104
2037
  await activePromise.current;
2105
2038
  spatialEntity.current?.destroy();
@@ -2157,7 +2090,6 @@ function useDetectLayoutDomUpdated(onDomUpdated) {
2157
2090
  }, []);
2158
2091
  return ref;
2159
2092
  }
2160
- __name(useDetectLayoutDomUpdated, "useDetectLayoutDomUpdated");
2161
2093
 
2162
2094
  // src/spatial-react-components/Model3D/useModel3DNative.ts
2163
2095
  var import_react23 = require("react");
@@ -2178,7 +2110,6 @@ function PopulatePartialSpatialTransformType(spatialTransform = {}) {
2178
2110
  scale: { x: sx, y: sy, z: sz }
2179
2111
  };
2180
2112
  }
2181
- __name(PopulatePartialSpatialTransformType, "PopulatePartialSpatialTransformType");
2182
2113
  function getAbsoluteURL(url) {
2183
2114
  if (!url) {
2184
2115
  return "";
@@ -2188,13 +2119,9 @@ function getAbsoluteURL(url) {
2188
2119
  }
2189
2120
  return `${location.origin}${url}`;
2190
2121
  }
2191
- __name(getAbsoluteURL, "getAbsoluteURL");
2192
2122
 
2193
2123
  // src/spatial-react-components/Model3D/Model3DNative.ts
2194
2124
  var Model3DNative = class {
2195
- static {
2196
- __name(this, "Model3DNative");
2197
- }
2198
2125
  constructor(parentEntity) {
2199
2126
  this.parentEntity = parentEntity;
2200
2127
  }
@@ -2218,7 +2145,7 @@ var Model3DNative = class {
2218
2145
  return this.initPromise;
2219
2146
  }
2220
2147
  async initInternal(modelUrl, onSuccess, onFailure) {
2221
- if (false) return;
2148
+ if ("false") return;
2222
2149
  var session = getSession();
2223
2150
  if (!session) {
2224
2151
  return;
@@ -2452,7 +2379,6 @@ function useModel3DNative(modelUrl, parentEntity, eventHandlers = {}, onModel3DN
2452
2379
  }, [model3DNativeRef.current, eventHandlers.onLongPress]);
2453
2380
  return { model3DNativeRef, phase, failureReason };
2454
2381
  }
2455
- __name(useModel3DNative, "useModel3DNative");
2456
2382
 
2457
2383
  // src/spatial-react-components/Model3D/Model3DNotInSpatialDiv.tsx
2458
2384
  var import_react24 = require("react");
@@ -2695,7 +2621,6 @@ function renderModel3DNotInSpatialDiv(props, refIn) {
2695
2621
  }, [modelUrl]);
2696
2622
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className, style: layoutDomStyle, ref: proxyRef, children: phase === "failure" && children });
2697
2623
  }
2698
- __name(renderModel3DNotInSpatialDiv, "renderModel3DNotInSpatialDiv");
2699
2624
 
2700
2625
  // src/spatial-react-components/Model3D/Model3DStandardInstance.tsx
2701
2626
  var import_jsx_runtime10 = require("react/jsx-runtime");
@@ -2715,7 +2640,6 @@ function renderModel3DStandardInstance(spatialId, props, refIn) {
2715
2640
  }
2716
2641
  );
2717
2642
  }
2718
- __name(renderModel3DStandardInstance, "renderModel3DStandardInstance");
2719
2643
 
2720
2644
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2721
2645
  var import_react26 = require("react");
@@ -2740,7 +2664,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2740
2664
  const inheritedPortalClassNameRef = (0, import_react25.useRef)("");
2741
2665
  const modelRef = (0, import_react25.useRef)(null);
2742
2666
  (0, import_react25.useEffect)(() => {
2743
- const syncDomRect = /* @__PURE__ */ __name(() => {
2667
+ const syncDomRect = () => {
2744
2668
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
2745
2669
  if (!dom) {
2746
2670
  return;
@@ -2763,7 +2687,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2763
2687
  opacityRef.current = opacity;
2764
2688
  inheritedPortalClassNameRef.current = dom.className;
2765
2689
  setDomRect(rectType);
2766
- }, "syncDomRect");
2690
+ };
2767
2691
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
2768
2692
  return () => {
2769
2693
  spatialReactContextObject?.offDomChange(spatialId);
@@ -2778,7 +2702,6 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2778
2702
  className: inheritedPortalClassNameRef.current
2779
2703
  };
2780
2704
  }
2781
- __name(useSyncDomInfoFromStandardInstance, "useSyncDomInfoFromStandardInstance");
2782
2705
 
2783
2706
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2784
2707
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -2860,7 +2783,6 @@ function useModelEvents(props, modelRef) {
2860
2783
  onLongPress: onLongPressCb
2861
2784
  };
2862
2785
  }
2863
- __name(useModelEvents, "useModelEvents");
2864
2786
  function renderModel3DPortalInstance(spatialId, props) {
2865
2787
  const {
2866
2788
  style: _,
@@ -3002,7 +2924,6 @@ function renderModel3DPortalInstance(spatialId, props) {
3002
2924
  );
3003
2925
  }
3004
2926
  }
3005
- __name(renderModel3DPortalInstance, "renderModel3DPortalInstance");
3006
2927
 
3007
2928
  // src/spatial-react-components/Model3D/Model3D.tsx
3008
2929
  function Model3DBase(props, refIn) {
@@ -3027,7 +2948,6 @@ function Model3DBase(props, refIn) {
3027
2948
  return renderModel3DNotInSpatialDiv(props, refIn);
3028
2949
  }
3029
2950
  }
3030
- __name(Model3DBase, "Model3DBase");
3031
2951
  var Model3D = (0, import_react27.forwardRef)(Model3DBase);
3032
2952
  Model3D.displayName = "Model3D";
3033
2953
 
@@ -3081,7 +3001,6 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
3081
3001
  )
3082
3002
  ] });
3083
3003
  }
3084
- __name(renderCSSModel3DNotInSpatialDiv, "renderCSSModel3DNotInSpatialDiv");
3085
3004
 
3086
3005
  // src/spatial-react-components/Model3D/CSSModel3DStandardInstance.tsx
3087
3006
  var import_react28 = require("react");
@@ -3100,9 +3019,9 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3100
3019
  );
3101
3020
  const rootSpatialReactContextObject = (0, import_react28.useContext)(SpatialReactContext);
3102
3021
  (0, import_react28.useEffect)(() => {
3103
- const onSubEvent = /* @__PURE__ */ __name((dom) => {
3022
+ const onSubEvent = (dom) => {
3104
3023
  cssParserRef.current = dom;
3105
- }, "onSubEvent");
3024
+ };
3106
3025
  rootSpatialReactContextObject.onSubDivEvent(spatialId, onSubEvent);
3107
3026
  return () => {
3108
3027
  rootSpatialReactContextObject.offSubDivEvent(spatialId);
@@ -3110,7 +3029,6 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3110
3029
  }, []);
3111
3030
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Model3D, { style, ...props, ref, visible: true });
3112
3031
  }
3113
- __name(renderCSSModel3DStandardInstance, "renderCSSModel3DStandardInstance");
3114
3032
 
3115
3033
  // src/spatial-react-components/Model3D/CSSModel3DPortalInstance.tsx
3116
3034
  var import_react29 = require("react");
@@ -3152,7 +3070,6 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
3152
3070
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className, style: cssParserDomStyle, ref })
3153
3071
  ] });
3154
3072
  }
3155
- __name(renderCSSModel3DPortalInstance, "renderCSSModel3DPortalInstance");
3156
3073
 
3157
3074
  // src/spatial-react-components/Model3D/CSSModel3D.tsx
3158
3075
  function CSSModel3DBase(props, refIn) {
@@ -3177,7 +3094,6 @@ function CSSModel3DBase(props, refIn) {
3177
3094
  return renderCSSModel3DNotInSpatialDiv(props, refIn);
3178
3095
  }
3179
3096
  }
3180
- __name(CSSModel3DBase, "CSSModel3DBase");
3181
3097
  var CSSModel3D = (0, import_react30.forwardRef)(CSSModel3DBase);
3182
3098
  CSSModel3D.displayName = "CSSModel3D";
3183
3099
 
@@ -3192,7 +3108,6 @@ function renderInModel3D(inProps, ref, modelUrl, placeHolder) {
3192
3108
  " "
3193
3109
  ] });
3194
3110
  }
3195
- __name(renderInModel3D, "renderInModel3D");
3196
3111
  function parseChildren(child) {
3197
3112
  if (child === void 0) {
3198
3113
  throw new Error("children with <source> required ");
@@ -3221,7 +3136,6 @@ function parseChildren(child) {
3221
3136
  usdzSourceURL: getAbsoluteURL(usdzSourceURL)
3222
3137
  };
3223
3138
  }
3224
- __name(parseChildren, "parseChildren");
3225
3139
  function ModelBase(inProps, ref) {
3226
3140
  const { children, ...props } = inProps;
3227
3141
  const { placeHolder, gltfSourceURL, usdzSourceURL } = (0, import_react31.useMemo)(
@@ -3306,7 +3220,6 @@ function ModelBase(inProps, ref) {
3306
3220
  return renderInModel3D(props, ref, usdzSourceURL, placeHolder);
3307
3221
  }
3308
3222
  }
3309
- __name(ModelBase, "ModelBase");
3310
3223
  var Model = (0, import_react31.forwardRef)(ModelBase);
3311
3224
  Model.displayName = "Model";
3312
3225
 
@@ -3321,9 +3234,6 @@ var defaultSceneConfig = {
3321
3234
  var CONTEXT_WINDOW_URL = "webspatial://createWindowContext";
3322
3235
  var originalOpen = window.open;
3323
3236
  var XRApp = class _XRApp {
3324
- static {
3325
- __name(this, "XRApp");
3326
- }
3327
3237
  static instance;
3328
3238
  static getInstance() {
3329
3239
  if (!_XRApp.instance) {
@@ -3378,7 +3288,7 @@ var XRApp = class _XRApp {
3378
3288
  console.error(error);
3379
3289
  }
3380
3290
  }
3381
- open = /* @__PURE__ */ __name((url, target, features) => {
3291
+ open = (url, target, features) => {
3382
3292
  const newWindow = originalOpen(url, target, features);
3383
3293
  if (url === CONTEXT_WINDOW_URL) return newWindow;
3384
3294
  if (target === "_self" || target === "_parent" || target === "_top") {
@@ -3423,7 +3333,7 @@ var XRApp = class _XRApp {
3423
3333
  }
3424
3334
  }, 0);
3425
3335
  return newWindow;
3426
- }, "open");
3336
+ };
3427
3337
  initScene(name, callback) {
3428
3338
  this.configMap[name] = callback({ ...defaultSceneConfig });
3429
3339
  }
@@ -3431,5 +3341,23 @@ var XRApp = class _XRApp {
3431
3341
  function initScene(name, callback) {
3432
3342
  return XRApp.getInstance().initScene(name, callback);
3433
3343
  }
3434
- __name(initScene, "initScene");
3435
- //# sourceMappingURL=index.js.map
3344
+ // Annotate the CommonJS export names for ESM import in node:
3345
+ 0 && (module.exports = {
3346
+ CSSSpatialDiv,
3347
+ CSSSpatialPrimitive,
3348
+ Model,
3349
+ SpatialDiv,
3350
+ SpatialMonitor,
3351
+ SpatialPrimitive,
3352
+ SpatialView,
3353
+ XRApp,
3354
+ defaultSceneConfig,
3355
+ enableDebugTool,
3356
+ getSession,
3357
+ initScene,
3358
+ notifyUpdateStandInstanceLayout,
3359
+ parseCornerRadius,
3360
+ withCSSSpatial,
3361
+ withSpatial
3362
+ });
3363
+ //# sourceMappingURL=index.js.map