@webspatial/react-sdk 0.0.3 → 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 +69 -136
  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 +3093 -6747
  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 +3094 -6748
  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 +73 -142
  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");
@@ -194,17 +193,14 @@ var primitives = [
194
193
  // src/spatial-react-components/SpatialReactComponent/SpatialReactComponent.tsx
195
194
  var import_react10 = require("react");
196
195
 
197
- // src/noRuntime.ts
198
- var SpatialHelper = {};
199
- var Spatial = {};
200
-
201
196
  // src/utils/getSession.ts
197
+ var import_core_sdk = require("@webspatial/core-sdk");
202
198
  var spatial = null;
203
199
  var _currentSession = null;
204
200
  function getSession() {
205
- if (true) return null;
201
+ if ("true") return null;
206
202
  if (!spatial) {
207
- spatial = new Spatial();
203
+ spatial = new import_core_sdk.Spatial();
208
204
  }
209
205
  if (!spatial.isSupported()) {
210
206
  return null;
@@ -215,15 +211,13 @@ function getSession() {
215
211
  _currentSession = spatial.requestSession();
216
212
  return _currentSession;
217
213
  }
218
- __name(getSession, "getSession");
219
214
 
220
215
  // src/utils/debugTool.ts
221
216
  async function getStat() {
222
- if (true) return;
217
+ if ("true") return;
223
218
  const statsInfo = await getSession()._getStats();
224
219
  return statsInfo;
225
220
  }
226
- __name(getStat, "getStat");
227
221
  function simplifyEntityTree(rootTree) {
228
222
  const rootEntity = Object.values(rootTree.childEntities)[0];
229
223
  function traverseTree(node, parent, callback) {
@@ -235,7 +229,6 @@ function simplifyEntityTree(rootTree) {
235
229
  });
236
230
  }
237
231
  }
238
- __name(traverseTree, "traverseTree");
239
232
  let rootNode;
240
233
  const nodeMap = {};
241
234
  function visitNode(node, parent) {
@@ -261,12 +254,10 @@ function simplifyEntityTree(rootTree) {
261
254
  parentNode.children.push(newNode);
262
255
  }
263
256
  }
264
- __name(visitNode, "visitNode");
265
257
  traverseTree(rootEntity, null, visitNode);
266
258
  console.log("rootNode", rootNode);
267
259
  return rootNode;
268
260
  }
269
- __name(simplifyEntityTree, "simplifyEntityTree");
270
261
  async function inspectRootWindowContainer(simple) {
271
262
  const rootWindowContainerInfo = await getSession()._inspectRootWindowContainer();
272
263
  console.log(rootWindowContainerInfo);
@@ -275,9 +266,8 @@ async function inspectRootWindowContainer(simple) {
275
266
  }
276
267
  return rootWindowContainerInfo;
277
268
  }
278
- __name(inspectRootWindowContainer, "inspectRootWindowContainer");
279
269
  function enableDebugTool() {
280
- if (true) return;
270
+ if ("true") return;
281
271
  const session = getSession();
282
272
  Object.assign(window, {
283
273
  session,
@@ -285,7 +275,6 @@ function enableDebugTool() {
285
275
  inspectRootWindowContainer
286
276
  });
287
277
  }
288
- __name(enableDebugTool, "enableDebugTool");
289
278
 
290
279
  // src/spatial-react-components/SpatialReactComponent/StandardInstance.tsx
291
280
  var import_react4 = require("react");
@@ -296,7 +285,6 @@ function useForceUpdate() {
296
285
  const [, setToggle] = (0, import_react.useState)(false);
297
286
  return () => setToggle((toggle) => !toggle);
298
287
  }
299
- __name(useForceUpdate, "useForceUpdate");
300
288
 
301
289
  // src/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.ts
302
290
  var import_react2 = require("react");
@@ -312,9 +300,6 @@ var SpatialID = "data-spatial-id";
312
300
 
313
301
  // src/spatial-react-components/SpatialReactComponent/SpatialReactContext.ts
314
302
  var SpatialReactContextObject = class {
315
- static {
316
- __name(this, "SpatialReactContextObject");
317
- }
318
303
  debugName;
319
304
  constructor(debugName) {
320
305
  this.debugName = debugName;
@@ -436,9 +421,9 @@ function useDetectDomRectChange() {
436
421
  );
437
422
  return;
438
423
  }
439
- const handleResize = /* @__PURE__ */ __name(() => {
424
+ const handleResize = () => {
440
425
  forceUpdate();
441
- }, "handleResize");
426
+ };
442
427
  window.addEventListener("resize", handleResize);
443
428
  return () => {
444
429
  window.removeEventListener("resize", handleResize);
@@ -475,7 +460,6 @@ function useDetectDomRectChange() {
475
460
  }, []);
476
461
  return ref;
477
462
  }
478
- __name(useDetectDomRectChange, "useDetectDomRectChange");
479
463
  var StandardInstance = (0, import_react4.forwardRef)(function(inProps, refIn) {
480
464
  const { El, style: inStyle, debugShowStandardInstance, ...props } = inProps;
481
465
  const extraStyle = {
@@ -515,9 +499,6 @@ var import_react6 = require("react");
515
499
 
516
500
  // src/spatial-react-components/SpatialReactComponent/SpatialWindowManager.ts
517
501
  var SpatialWindowManager = class {
518
- static {
519
- __name(this, "SpatialWindowManager");
520
- }
521
502
  initPromise;
522
503
  entity;
523
504
  webview;
@@ -526,7 +507,7 @@ var SpatialWindowManager = class {
526
507
  this.entity?._setName(debugName);
527
508
  }
528
509
  async initInternal(url) {
529
- if (true) return;
510
+ if ("true") return;
530
511
  this.entity = await getSession().createEntity();
531
512
  this.webview = await getSession().createWindowComponent();
532
513
  await this.webview.loadURL(url);
@@ -539,7 +520,7 @@ var SpatialWindowManager = class {
539
520
  await this.entity.setParent(ent);
540
521
  }
541
522
  async initInternalFromWindow(parentSpatialWindowManager) {
542
- if (true) return;
523
+ if ("true") return;
543
524
  var w = await getSession().createWindowContext();
544
525
  this.window = w;
545
526
  this.entity = await getSession().createEntity();
@@ -634,7 +615,6 @@ function usePortalContainer(options) {
634
615
  spatialWindowManagerRef.current = windowMgr;
635
616
  forceUpdate();
636
617
  }
637
- __name(asyncCreatePortalContainer, "asyncCreatePortalContainer");
638
618
  if (isStandard !== true) {
639
619
  asyncCreatePortalContainer();
640
620
  }
@@ -649,7 +629,6 @@ function usePortalContainer(options) {
649
629
  }, []);
650
630
  return [spatialWindowManagerRef.current];
651
631
  }
652
- __name(usePortalContainer, "usePortalContainer");
653
632
 
654
633
  // src/spatial-react-components/SpatialReactComponent/utils.ts
655
634
  function getInheritedStyleProps(computedStyle) {
@@ -708,7 +687,6 @@ function getInheritedStyleProps(computedStyle) {
708
687
  }
709
688
  return props;
710
689
  }
711
- __name(getInheritedStyleProps, "getInheritedStyleProps");
712
690
  function domRect2rectType(from) {
713
691
  return {
714
692
  x: from.x,
@@ -717,7 +695,6 @@ function domRect2rectType(from) {
717
695
  height: from.height
718
696
  };
719
697
  }
720
- __name(domRect2rectType, "domRect2rectType");
721
698
  function parseTransformOrigin(computedStyle) {
722
699
  const transformOriginProperty = computedStyle.getPropertyValue("transform-origin");
723
700
  const [x, y] = transformOriginProperty.split(" ").map(parseFloat);
@@ -729,7 +706,6 @@ function parseTransformOrigin(computedStyle) {
729
706
  z: 0.5
730
707
  };
731
708
  }
732
- __name(parseTransformOrigin, "parseTransformOrigin");
733
709
  function parseBorderRadius(borderProperty, width) {
734
710
  if (borderProperty === "") {
735
711
  return 0;
@@ -739,7 +715,6 @@ function parseBorderRadius(borderProperty, width) {
739
715
  }
740
716
  return parseFloat(borderProperty);
741
717
  }
742
- __name(parseBorderRadius, "parseBorderRadius");
743
718
  function parseCornerRadius(computedStyle) {
744
719
  const width = parseFloat(computedStyle.getPropertyValue("width"));
745
720
  const topLeftPropertyValue = computedStyle.getPropertyValue(
@@ -762,7 +737,6 @@ function parseCornerRadius(computedStyle) {
762
737
  };
763
738
  return cornerRadius;
764
739
  }
765
- __name(parseCornerRadius, "parseCornerRadius");
766
740
 
767
741
  // src/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.ts
768
742
  var import_react7 = require("react");
@@ -797,13 +771,11 @@ function renderJSXPortalInstance(inProps, elWidth, elHeight, inheritedPortalStyl
797
771
  };
798
772
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(El, { style, className, ...props });
799
773
  }
800
- __name(renderJSXPortalInstance, "renderJSXPortalInstance");
801
774
  function setOpenWindowStyle(openedWindow) {
802
775
  openedWindow.document.documentElement.style.cssText += document.documentElement.style.cssText;
803
776
  openedWindow.document.documentElement.style.backgroundColor = "transparent";
804
777
  openedWindow.document.body.style.margin = "0px";
805
778
  }
806
- __name(setOpenWindowStyle, "setOpenWindowStyle");
807
779
  function handleOpenWindowDocumentClick(openedWindow) {
808
780
  openedWindow.document.onclick = function(e) {
809
781
  let element = e.target;
@@ -823,7 +795,6 @@ function handleOpenWindowDocumentClick(openedWindow) {
823
795
  }
824
796
  };
825
797
  }
826
- __name(handleOpenWindowDocumentClick, "handleOpenWindowDocumentClick");
827
798
  function asyncLoadStyleToChildWindow(childWindow, n, debugName) {
828
799
  return new Promise((resolve) => {
829
800
  n.href += "?uniqueURL=" + Math.random();
@@ -841,7 +812,6 @@ function asyncLoadStyleToChildWindow(childWindow, n, debugName) {
841
812
  childWindow.document.head.appendChild(n);
842
813
  });
843
814
  }
844
- __name(asyncLoadStyleToChildWindow, "asyncLoadStyleToChildWindow");
845
815
  async function syncParentHeadToChild(childWindow, debugName) {
846
816
  const styleLoadedPromises = [];
847
817
  for (let i = document.head.children.length - 1; i >= 0; i--) {
@@ -862,7 +832,6 @@ async function syncParentHeadToChild(childWindow, debugName) {
862
832
  }
863
833
  return Promise.all(styleLoadedPromises);
864
834
  }
865
- __name(syncParentHeadToChild, "syncParentHeadToChild");
866
835
  async function syncHeaderStyle(openedWindow, debugName) {
867
836
  await syncParentHeadToChild(openedWindow, debugName);
868
837
  const headObserver = new MutationObserver((mutations) => {
@@ -871,15 +840,13 @@ async function syncHeaderStyle(openedWindow, debugName) {
871
840
  headObserver.observe(document.head, { childList: true, subtree: true });
872
841
  return headObserver;
873
842
  }
874
- __name(syncHeaderStyle, "syncHeaderStyle");
875
843
  function syncDefaultSpatialStyle(openedWindow, debugName) {
876
844
  const styleElement = document.createElement("style");
877
845
  styleElement.type = "text/css";
878
846
  styleElement.innerHTML = " .xr-spatial-default { --xr-back: 0.001; --xr-background-material: none } ";
879
847
  openedWindow.document.head.appendChild(styleElement);
880
848
  }
881
- __name(syncDefaultSpatialStyle, "syncDefaultSpatialStyle");
882
- function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, cornerRadiusFromStyle, opacity) {
849
+ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, cornerRadiusFromStyle, opacity, stylePosition) {
883
850
  let { allowScroll, scrollWithParent, style, spatialStyle = {} } = props;
884
851
  let {
885
852
  position = { x: 0, y: 0, z: 1 },
@@ -889,7 +856,6 @@ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, corne
889
856
  cornerRadius = cornerRadiusFromStyle,
890
857
  zIndex = 0
891
858
  } = spatialStyle;
892
- let stylePosition = style?.position;
893
859
  let styleOverflow = style?.overflow;
894
860
  const visible = (0, import_react8.useMemo)(() => {
895
861
  return spatialStyle.visible !== false && domRect.width > 0 && domRect.height > 0;
@@ -1007,7 +973,6 @@ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, corne
1007
973
  }
1008
974
  }, [spatialWindowManager, domRect.width]);
1009
975
  }
1010
- __name(useSyncSpatialProps, "useSyncSpatialProps");
1011
976
  function useSyncDomRect(spatialId) {
1012
977
  const [domRect, setDomRect] = (0, import_react8.useState)({
1013
978
  x: 0,
@@ -1031,7 +996,7 @@ function useSyncDomRect(spatialId) {
1031
996
  const spatialReactContextObject = (0, import_react8.useContext)(SpatialReactContext);
1032
997
  const inheritedPortalClassNameRef = (0, import_react8.useRef)("");
1033
998
  (0, import_react8.useEffect)(() => {
1034
- const syncDomRect = /* @__PURE__ */ __name(() => {
999
+ const syncDomRect = () => {
1035
1000
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
1036
1001
  if (!dom) {
1037
1002
  return;
@@ -1055,7 +1020,7 @@ function useSyncDomRect(spatialId) {
1055
1020
  opacityRef.current = opacity;
1056
1021
  inheritedPortalClassNameRef.current = dom.className;
1057
1022
  setDomRect(rectType);
1058
- }, "syncDomRect");
1023
+ };
1059
1024
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
1060
1025
  return () => {
1061
1026
  spatialReactContextObject?.offDomChange(spatialId);
@@ -1070,7 +1035,6 @@ function useSyncDomRect(spatialId) {
1070
1035
  className: inheritedPortalClassNameRef.current
1071
1036
  };
1072
1037
  }
1073
- __name(useSyncDomRect, "useSyncDomRect");
1074
1038
  function PortalInstance(inProps) {
1075
1039
  const { allowScroll, scrollWithParent, spatialStyle, isSubPortal, ...props } = inProps;
1076
1040
  const debugName = (0, import_react8.useContext)(SpatialDebugNameContext);
@@ -1120,7 +1084,8 @@ function PortalInstance(inProps) {
1120
1084
  domRect,
1121
1085
  anchor,
1122
1086
  cornerRadius,
1123
- opacity
1087
+ opacity,
1088
+ inheritedPortalStyle.position
1124
1089
  );
1125
1090
  const JSXPortalInstance = renderJSXPortalInstance(
1126
1091
  props,
@@ -1129,7 +1094,7 @@ function PortalInstance(inProps) {
1129
1094
  inheritedPortalStyle,
1130
1095
  className
1131
1096
  );
1132
- const needRenderPlaceHolder = isSubPortal && inheritedPortalStyle.position !== "absolute";
1097
+ const needRenderPlaceHolder = isSubPortal && inheritedPortalStyle.position !== "absolute" && inheritedPortalStyle.position !== "fixed";
1133
1098
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(SpatialWindowManagerContext.Provider, { value: spatialWindowManager, children: [
1134
1099
  needRenderPlaceHolder && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1135
1100
  "div",
@@ -1148,7 +1113,6 @@ function PortalInstance(inProps) {
1148
1113
  )
1149
1114
  ] });
1150
1115
  }
1151
- __name(PortalInstance, "PortalInstance");
1152
1116
  PortalInstance.displayName = "PortalInstance";
1153
1117
 
1154
1118
  // src/spatial-react-components/SpatialReactComponent/SpatialLayerContext.ts
@@ -1173,13 +1137,11 @@ function parseProps(inProps) {
1173
1137
  const debugDesc = { debugName, debugShowStandardInstance };
1174
1138
  return { componentDesc, spatialDesc, debugDesc, props };
1175
1139
  }
1176
- __name(parseProps, "parseProps");
1177
1140
  function renderWebReactComponent(inProps, ref) {
1178
1141
  const { componentDesc, props } = parseProps(inProps);
1179
1142
  const { El } = componentDesc;
1180
1143
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(El, { ...props, ref });
1181
1144
  }
1182
- __name(renderWebReactComponent, "renderWebReactComponent");
1183
1145
  function renderSpatialReactComponent(inProps, ref) {
1184
1146
  const { componentDesc, spatialDesc, debugDesc, props } = parseProps(inProps);
1185
1147
  const standardInstanceProps = {
@@ -1201,7 +1163,6 @@ function renderSpatialReactComponent(inProps, ref) {
1201
1163
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PortalInstance, { isSubPortal: false, ...portalInstanceProps })
1202
1164
  ] });
1203
1165
  }
1204
- __name(renderSpatialReactComponent, "renderSpatialReactComponent");
1205
1166
  function renderSubPortalInstance(inProps) {
1206
1167
  const { componentDesc, spatialDesc, props } = parseProps(inProps);
1207
1168
  const portalInstanceProps = {
@@ -1211,7 +1172,6 @@ function renderSubPortalInstance(inProps) {
1211
1172
  };
1212
1173
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PortalInstance, { isSubPortal: true, ...portalInstanceProps });
1213
1174
  }
1214
- __name(renderSubPortalInstance, "renderSubPortalInstance");
1215
1175
  function SpatialReactComponentRefactor(inProps, ref) {
1216
1176
  const layer = (0, import_react10.useContext)(SpatialLayerContext) + 1;
1217
1177
  const parentSpatialReactContextObject = (0, import_react10.useContext)(SpatialReactContext);
@@ -1228,7 +1188,6 @@ function SpatialReactComponentRefactor(inProps, ref) {
1228
1188
  const contentInLayer = renderContentInLayer(props, ref);
1229
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 }) });
1230
1190
  }
1231
- __name(SpatialReactComponentRefactor, "SpatialReactComponentRefactor");
1232
1191
  function renderContentInLayer(inProps, ref) {
1233
1192
  const isInStandardInstance = (0, import_react10.useContext)(SpatialIsStandardInstanceContext);
1234
1193
  const isWebSpatialEnv = getSession() !== null;
@@ -1243,7 +1202,6 @@ function renderContentInLayer(inProps, ref) {
1243
1202
  }
1244
1203
  }
1245
1204
  }
1246
- __name(renderContentInLayer, "renderContentInLayer");
1247
1205
  var SpatialReactComponent = (0, import_react10.forwardRef)(SpatialReactComponentRefactor);
1248
1206
  SpatialReactComponent.displayName = "SpatialReactComponent";
1249
1207
 
@@ -1273,13 +1231,12 @@ function withSpatial(Component) {
1273
1231
  return WithSpatialComponent;
1274
1232
  }
1275
1233
  }
1276
- __name(withSpatial, "withSpatial");
1277
1234
  var SpatialPrimitive = {};
1278
- (/* @__PURE__ */ __name(function createSpatialPrimitive(SpatialPrimitive2) {
1235
+ (function createSpatialPrimitive(SpatialPrimitive2) {
1279
1236
  primitives.forEach((primitive) => {
1280
1237
  SpatialPrimitive2[primitive] = withSpatial(primitive);
1281
1238
  });
1282
- }, "createSpatialPrimitive"))(SpatialPrimitive);
1239
+ })(SpatialPrimitive);
1283
1240
  var SpatialDiv = SpatialPrimitive.div;
1284
1241
 
1285
1242
  // src/spatial-react-components/hooks/useMonitorDomChange.tsx
@@ -1293,7 +1250,6 @@ function notifyUpdateStandInstanceLayout() {
1293
1250
  })
1294
1251
  );
1295
1252
  }
1296
- __name(notifyUpdateStandInstanceLayout, "notifyUpdateStandInstanceLayout");
1297
1253
  function notifyDOMUpdate(mutationsList) {
1298
1254
  document.dispatchEvent(
1299
1255
  new CustomEvent("domUpdated" /* domUpdated */, {
@@ -1301,7 +1257,6 @@ function notifyDOMUpdate(mutationsList) {
1301
1257
  })
1302
1258
  );
1303
1259
  }
1304
- __name(notifyDOMUpdate, "notifyDOMUpdate");
1305
1260
 
1306
1261
  // src/spatial-react-components/hooks/useMonitorDomChange.tsx
1307
1262
  function useMonitorDomChange() {
@@ -1323,7 +1278,6 @@ function useMonitorDomChange() {
1323
1278
  }, []);
1324
1279
  return ref;
1325
1280
  }
1326
- __name(useMonitorDomChange, "useMonitorDomChange");
1327
1281
 
1328
1282
  // src/spatial-react-components/hooks/useMonitorDocumentHeaderChange.tsx
1329
1283
  var import_react13 = require("react");
@@ -1343,7 +1297,6 @@ function useMonitorDocumentHeaderChange() {
1343
1297
  };
1344
1298
  }, []);
1345
1299
  }
1346
- __name(useMonitorDocumentHeaderChange, "useMonitorDocumentHeaderChange");
1347
1300
 
1348
1301
  // src/spatial-react-components/SpatialMonitor.tsx
1349
1302
  var import_jsx_runtime5 = require("react/jsx-runtime");
@@ -1357,7 +1310,6 @@ function SpatialMonitor(props) {
1357
1310
  " "
1358
1311
  ] });
1359
1312
  }
1360
- __name(SpatialMonitor, "SpatialMonitor");
1361
1313
 
1362
1314
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.tsx
1363
1315
  var import_react20 = require("react");
@@ -1404,12 +1356,10 @@ function parse2dMatrix(transformDataArray) {
1404
1356
  );
1405
1357
  return matrix4;
1406
1358
  }
1407
- __name(parse2dMatrix, "parse2dMatrix");
1408
1359
  function parse3dMatrix(transformDataArray) {
1409
1360
  const matrix4 = new import_Matrix4.Matrix4().fromArray(transformDataArray);
1410
1361
  return matrix4;
1411
1362
  }
1412
- __name(parse3dMatrix, "parse3dMatrix");
1413
1363
  function parseTransform(computedStyle) {
1414
1364
  let transform = computedStyle.getPropertyValue("transform");
1415
1365
  const matrixFlagString = "matrix(";
@@ -1428,9 +1378,8 @@ function parseTransform(computedStyle) {
1428
1378
  }
1429
1379
  }
1430
1380
  }
1431
- __name(parseTransform, "parseTransform");
1432
1381
  function parseBack(computedStyle) {
1433
- let useBackProperty = computedStyle.position === "absolute" || computedStyle.position === "relative";
1382
+ let useBackProperty = computedStyle.position === "absolute" || computedStyle.position === "relative" || computedStyle.position === "fixed";
1434
1383
  if (!useBackProperty) return new import_Matrix4.Matrix4();
1435
1384
  let backProperty = computedStyle.getPropertyValue(SpatialCustomVars.back);
1436
1385
  let back = void 0;
@@ -1440,7 +1389,6 @@ function parseBack(computedStyle) {
1440
1389
  }
1441
1390
  return new import_Matrix4.Matrix4().makeTranslation(0, 0, back || 1);
1442
1391
  }
1443
- __name(parseBack, "parseBack");
1444
1392
  function parseSpatialStyle(node) {
1445
1393
  const computedStyle = getComputedStyle(node);
1446
1394
  const mat4ForBack = parseBack(computedStyle);
@@ -1472,7 +1420,6 @@ function parseSpatialStyle(node) {
1472
1420
  visible
1473
1421
  };
1474
1422
  }
1475
- __name(parseSpatialStyle, "parseSpatialStyle");
1476
1423
  function useSpatialStyle() {
1477
1424
  const ref = (0, import_react14.useRef)(null);
1478
1425
  const [spatialStyle, setSpatialStyle] = (0, import_react14.useState)({
@@ -1536,8 +1483,7 @@ function useSpatialStyle() {
1536
1483
  }
1537
1484
  return false;
1538
1485
  }
1539
- __name(isDescendant, "isDescendant");
1540
- const onDomUpdated = /* @__PURE__ */ __name((event) => {
1486
+ const onDomUpdated = (event) => {
1541
1487
  const mutationsList = event.detail;
1542
1488
  const spatialReactComponentDiv = ref.current.previousElementSibling;
1543
1489
  const targets = mutationsList.map((m) => m.target).filter(
@@ -1546,7 +1492,7 @@ function useSpatialStyle() {
1546
1492
  if (targets.length > 0) {
1547
1493
  checkSpatialStyleUpdate();
1548
1494
  }
1549
- }, "onDomUpdated");
1495
+ };
1550
1496
  document.addEventListener(
1551
1497
  "domUpdated" /* domUpdated */,
1552
1498
  onDomUpdated
@@ -1560,7 +1506,6 @@ function useSpatialStyle() {
1560
1506
  }, []);
1561
1507
  return { ref, ready, spatialStyle };
1562
1508
  }
1563
- __name(useSpatialStyle, "useSpatialStyle");
1564
1509
 
1565
1510
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.ts
1566
1511
  var import_react15 = require("react");
@@ -1580,7 +1525,6 @@ function injectClassStyle() {
1580
1525
  `;
1581
1526
  document.head.prepend(style);
1582
1527
  }
1583
- __name(injectClassStyle, "injectClassStyle");
1584
1528
  injectClassStyle();
1585
1529
 
1586
1530
  // src/spatial-react-components/CSSSpatialDiv/utils.ts
@@ -1601,18 +1545,15 @@ function extractAndRemoveCustomProperties(cssText, properties) {
1601
1545
  const filteredCssText = filteredRules.join(";").trim();
1602
1546
  return { extractedValues, filteredCssText };
1603
1547
  }
1604
- __name(extractAndRemoveCustomProperties, "extractAndRemoveCustomProperties");
1605
1548
  function joinToCSSText(cssKV) {
1606
1549
  const rules = Object.entries(cssKV).map(([key, value]) => `${key}: ${value}`);
1607
1550
  return rules.join(";");
1608
1551
  }
1609
- __name(joinToCSSText, "joinToCSSText");
1610
1552
 
1611
1553
  // src/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.ts
1612
1554
  function makeOriginalKey(key) {
1613
1555
  return `__original_${key}`;
1614
1556
  }
1615
- __name(makeOriginalKey, "makeOriginalKey");
1616
1557
  function useHijackSpatialDivRef(refIn, cssParserRef) {
1617
1558
  const ref = cssParserRef;
1618
1559
  const spatialDivRef = (0, import_react16.useCallback)(
@@ -1728,9 +1669,9 @@ function useHijackSpatialDivRef(refIn, cssParserRef) {
1728
1669
  return result;
1729
1670
  };
1730
1671
  });
1731
- const __getComputedStyle = /* @__PURE__ */ __name((originalGetComputedStyle, pseudoElt) => {
1672
+ const __getComputedStyle = (originalGetComputedStyle, pseudoElt) => {
1732
1673
  return originalGetComputedStyle(domElement, pseudoElt);
1733
- }, "__getComputedStyle");
1674
+ };
1734
1675
  const proxyDomElement = new Proxy(domElement, {
1735
1676
  get(target, prop) {
1736
1677
  if (prop === "style") {
@@ -1790,7 +1731,6 @@ function useHijackSpatialDivRef(refIn, cssParserRef) {
1790
1731
  );
1791
1732
  return spatialDivRef;
1792
1733
  }
1793
- __name(useHijackSpatialDivRef, "useHijackSpatialDivRef");
1794
1734
 
1795
1735
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.ts
1796
1736
  var import_react17 = require("react");
@@ -1800,9 +1740,6 @@ var CSSSpatialLayerContext = (0, import_react17.createContext)(0);
1800
1740
  var import_react18 = require("react");
1801
1741
  var CSSSpatialID = "CSSSpatialID";
1802
1742
  var CSSSpatialRootContextObject = class {
1803
- static {
1804
- __name(this, "CSSSpatialRootContextObject");
1805
- }
1806
1743
  prefix = "css";
1807
1744
  domSpatialId = null;
1808
1745
  fns = {};
@@ -1857,6 +1794,7 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
1857
1794
  ...style,
1858
1795
  width: 0,
1859
1796
  height: 0,
1797
+ padding: 0,
1860
1798
  transition: "none"
1861
1799
  };
1862
1800
  const spatialDivStyle = {
@@ -1886,16 +1824,15 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
1886
1824
  style: divRefStyle,
1887
1825
  className: divRefClassName,
1888
1826
  ...props,
1889
- ref
1827
+ ref,
1828
+ "data-cssparser": true
1890
1829
  }
1891
1830
  )
1892
1831
  ] });
1893
1832
  }
1894
- __name(renderRootCSSSpatialComponent, "renderRootCSSSpatialComponent");
1895
1833
  function renderInWebEnv(props, ref) {
1896
1834
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { ...props, ref });
1897
1835
  }
1898
- __name(renderInWebEnv, "renderInWebEnv");
1899
1836
  function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inProps, refIn) {
1900
1837
  const { style: inStyle = {}, ...props } = inProps;
1901
1838
  const style = {
@@ -1906,9 +1843,9 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1906
1843
  var cssParserRef = (0, import_react19.useRef)(null);
1907
1844
  const spatialDivRef = useHijackSpatialDivRef(refIn, cssParserRef);
1908
1845
  (0, import_react19.useEffect)(() => {
1909
- const onDomChangeAction = /* @__PURE__ */ __name((dom) => {
1846
+ const onDomChangeAction = (dom) => {
1910
1847
  cssParserRef.current = dom;
1911
- }, "onDomChangeAction");
1848
+ };
1912
1849
  cssSpatialRootContextObject.onDomChange(cssSpatialID, onDomChangeAction);
1913
1850
  return () => {
1914
1851
  cssSpatialRootContextObject.offDomChange(cssSpatialID, onDomChangeAction);
@@ -1916,7 +1853,6 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1916
1853
  }, []);
1917
1854
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { style, ...props, ref: spatialDivRef });
1918
1855
  }
1919
- __name(renderInStandardInstance, "renderInStandardInstance");
1920
1856
  function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inProps) {
1921
1857
  const {
1922
1858
  style = {},
@@ -1931,6 +1867,7 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
1931
1867
  ...style,
1932
1868
  width: 0,
1933
1869
  height: 0,
1870
+ padding: 0,
1934
1871
  transition: "none"
1935
1872
  };
1936
1873
  const spatialDivStyle = {
@@ -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 = true;
1908
+ const isWebEnv = "true";
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,21 +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
1998
+ var import_core_sdk2 = require("@webspatial/core-sdk");
2065
1999
  var import_react21 = require("react");
2066
2000
  var import_jsx_runtime8 = require("react/jsx-runtime");
2067
- var runAsync = /* @__PURE__ */ __name((fn) => {
2001
+ var runAsync = (fn) => {
2068
2002
  return fn();
2069
- }, "runAsync");
2003
+ };
2070
2004
  var SpatialViewEl = (0, import_react21.forwardRef)(
2071
2005
  (props, ref) => {
2072
2006
  const divRef = (0, import_react21.useRef)(null);
@@ -2074,23 +2008,23 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2074
2008
  const activePromise = (0, import_react21.useRef)(null);
2075
2009
  (0, import_react21.useImperativeHandle)(ref, () => ({
2076
2010
  ...divRef.current,
2077
- getViewEntity: /* @__PURE__ */ __name(async () => {
2011
+ getViewEntity: async () => {
2078
2012
  if (activePromise.current) {
2079
2013
  await activePromise.current;
2080
2014
  }
2081
2015
  return spatialEntity.current;
2082
- }, "getViewEntity")
2016
+ }
2083
2017
  }));
2084
2018
  if (getSession() == null) {
2085
2019
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ref: divRef, ...props, children: "WebSpatial is not supported in this browser" });
2086
2020
  }
2087
2021
  (0, import_react21.useEffect)(() => {
2088
- if (true) return;
2022
+ if ("true") return;
2089
2023
  activePromise.current = runAsync(async () => {
2090
2024
  if (activePromise.current) {
2091
2025
  await activePromise.current;
2092
2026
  }
2093
- let sh = new SpatialHelper(getSession());
2027
+ let sh = new import_core_sdk2.SpatialHelper(getSession());
2094
2028
  let x = await sh.dom.attachSpatialView(divRef.current);
2095
2029
  spatialEntity.current = x.entity;
2096
2030
  if (props.onViewLoad) {
@@ -2098,7 +2032,7 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2098
2032
  }
2099
2033
  });
2100
2034
  return () => {
2101
- if (true) return;
2035
+ if ("true") return;
2102
2036
  runAsync(async () => {
2103
2037
  await activePromise.current;
2104
2038
  spatialEntity.current?.destroy();
@@ -2156,7 +2090,6 @@ function useDetectLayoutDomUpdated(onDomUpdated) {
2156
2090
  }, []);
2157
2091
  return ref;
2158
2092
  }
2159
- __name(useDetectLayoutDomUpdated, "useDetectLayoutDomUpdated");
2160
2093
 
2161
2094
  // src/spatial-react-components/Model3D/useModel3DNative.ts
2162
2095
  var import_react23 = require("react");
@@ -2177,7 +2110,6 @@ function PopulatePartialSpatialTransformType(spatialTransform = {}) {
2177
2110
  scale: { x: sx, y: sy, z: sz }
2178
2111
  };
2179
2112
  }
2180
- __name(PopulatePartialSpatialTransformType, "PopulatePartialSpatialTransformType");
2181
2113
  function getAbsoluteURL(url) {
2182
2114
  if (!url) {
2183
2115
  return "";
@@ -2187,13 +2119,9 @@ function getAbsoluteURL(url) {
2187
2119
  }
2188
2120
  return `${location.origin}${url}`;
2189
2121
  }
2190
- __name(getAbsoluteURL, "getAbsoluteURL");
2191
2122
 
2192
2123
  // src/spatial-react-components/Model3D/Model3DNative.ts
2193
2124
  var Model3DNative = class {
2194
- static {
2195
- __name(this, "Model3DNative");
2196
- }
2197
2125
  constructor(parentEntity) {
2198
2126
  this.parentEntity = parentEntity;
2199
2127
  }
@@ -2217,7 +2145,7 @@ var Model3DNative = class {
2217
2145
  return this.initPromise;
2218
2146
  }
2219
2147
  async initInternal(modelUrl, onSuccess, onFailure) {
2220
- if (true) return;
2148
+ if ("true") return;
2221
2149
  var session = getSession();
2222
2150
  if (!session) {
2223
2151
  return;
@@ -2451,7 +2379,6 @@ function useModel3DNative(modelUrl, parentEntity, eventHandlers = {}, onModel3DN
2451
2379
  }, [model3DNativeRef.current, eventHandlers.onLongPress]);
2452
2380
  return { model3DNativeRef, phase, failureReason };
2453
2381
  }
2454
- __name(useModel3DNative, "useModel3DNative");
2455
2382
 
2456
2383
  // src/spatial-react-components/Model3D/Model3DNotInSpatialDiv.tsx
2457
2384
  var import_react24 = require("react");
@@ -2694,7 +2621,6 @@ function renderModel3DNotInSpatialDiv(props, refIn) {
2694
2621
  }, [modelUrl]);
2695
2622
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className, style: layoutDomStyle, ref: proxyRef, children: phase === "failure" && children });
2696
2623
  }
2697
- __name(renderModel3DNotInSpatialDiv, "renderModel3DNotInSpatialDiv");
2698
2624
 
2699
2625
  // src/spatial-react-components/Model3D/Model3DStandardInstance.tsx
2700
2626
  var import_jsx_runtime10 = require("react/jsx-runtime");
@@ -2714,7 +2640,6 @@ function renderModel3DStandardInstance(spatialId, props, refIn) {
2714
2640
  }
2715
2641
  );
2716
2642
  }
2717
- __name(renderModel3DStandardInstance, "renderModel3DStandardInstance");
2718
2643
 
2719
2644
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2720
2645
  var import_react26 = require("react");
@@ -2739,7 +2664,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2739
2664
  const inheritedPortalClassNameRef = (0, import_react25.useRef)("");
2740
2665
  const modelRef = (0, import_react25.useRef)(null);
2741
2666
  (0, import_react25.useEffect)(() => {
2742
- const syncDomRect = /* @__PURE__ */ __name(() => {
2667
+ const syncDomRect = () => {
2743
2668
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
2744
2669
  if (!dom) {
2745
2670
  return;
@@ -2762,7 +2687,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2762
2687
  opacityRef.current = opacity;
2763
2688
  inheritedPortalClassNameRef.current = dom.className;
2764
2689
  setDomRect(rectType);
2765
- }, "syncDomRect");
2690
+ };
2766
2691
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
2767
2692
  return () => {
2768
2693
  spatialReactContextObject?.offDomChange(spatialId);
@@ -2777,7 +2702,6 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2777
2702
  className: inheritedPortalClassNameRef.current
2778
2703
  };
2779
2704
  }
2780
- __name(useSyncDomInfoFromStandardInstance, "useSyncDomInfoFromStandardInstance");
2781
2705
 
2782
2706
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2783
2707
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -2859,7 +2783,6 @@ function useModelEvents(props, modelRef) {
2859
2783
  onLongPress: onLongPressCb
2860
2784
  };
2861
2785
  }
2862
- __name(useModelEvents, "useModelEvents");
2863
2786
  function renderModel3DPortalInstance(spatialId, props) {
2864
2787
  const {
2865
2788
  style: _,
@@ -3001,7 +2924,6 @@ function renderModel3DPortalInstance(spatialId, props) {
3001
2924
  );
3002
2925
  }
3003
2926
  }
3004
- __name(renderModel3DPortalInstance, "renderModel3DPortalInstance");
3005
2927
 
3006
2928
  // src/spatial-react-components/Model3D/Model3D.tsx
3007
2929
  function Model3DBase(props, refIn) {
@@ -3026,7 +2948,6 @@ function Model3DBase(props, refIn) {
3026
2948
  return renderModel3DNotInSpatialDiv(props, refIn);
3027
2949
  }
3028
2950
  }
3029
- __name(Model3DBase, "Model3DBase");
3030
2951
  var Model3D = (0, import_react27.forwardRef)(Model3DBase);
3031
2952
  Model3D.displayName = "Model3D";
3032
2953
 
@@ -3040,7 +2961,8 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
3040
2961
  const cssParserDomStyle = {
3041
2962
  ...style,
3042
2963
  width: 0,
3043
- height: 0
2964
+ height: 0,
2965
+ padding: 0
3044
2966
  };
3045
2967
  const { ref: cssParserDomRef, spatialStyle, ready } = useSpatialStyle();
3046
2968
  const ref = useHijackSpatialDivRef(
@@ -3079,7 +3001,6 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
3079
3001
  )
3080
3002
  ] });
3081
3003
  }
3082
- __name(renderCSSModel3DNotInSpatialDiv, "renderCSSModel3DNotInSpatialDiv");
3083
3004
 
3084
3005
  // src/spatial-react-components/Model3D/CSSModel3DStandardInstance.tsx
3085
3006
  var import_react28 = require("react");
@@ -3098,9 +3019,9 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3098
3019
  );
3099
3020
  const rootSpatialReactContextObject = (0, import_react28.useContext)(SpatialReactContext);
3100
3021
  (0, import_react28.useEffect)(() => {
3101
- const onSubEvent = /* @__PURE__ */ __name((dom) => {
3022
+ const onSubEvent = (dom) => {
3102
3023
  cssParserRef.current = dom;
3103
- }, "onSubEvent");
3024
+ };
3104
3025
  rootSpatialReactContextObject.onSubDivEvent(spatialId, onSubEvent);
3105
3026
  return () => {
3106
3027
  rootSpatialReactContextObject.offSubDivEvent(spatialId);
@@ -3108,7 +3029,6 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3108
3029
  }, []);
3109
3030
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Model3D, { style, ...props, ref, visible: true });
3110
3031
  }
3111
- __name(renderCSSModel3DStandardInstance, "renderCSSModel3DStandardInstance");
3112
3032
 
3113
3033
  // src/spatial-react-components/Model3D/CSSModel3DPortalInstance.tsx
3114
3034
  var import_react29 = require("react");
@@ -3129,7 +3049,8 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
3129
3049
  const cssParserDomStyle = {
3130
3050
  ...style,
3131
3051
  width: 0,
3132
- height: 0
3052
+ height: 0,
3053
+ padding: 0
3133
3054
  };
3134
3055
  const model3DStyle = {
3135
3056
  ...style,
@@ -3149,7 +3070,6 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
3149
3070
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className, style: cssParserDomStyle, ref })
3150
3071
  ] });
3151
3072
  }
3152
- __name(renderCSSModel3DPortalInstance, "renderCSSModel3DPortalInstance");
3153
3073
 
3154
3074
  // src/spatial-react-components/Model3D/CSSModel3D.tsx
3155
3075
  function CSSModel3DBase(props, refIn) {
@@ -3174,7 +3094,6 @@ function CSSModel3DBase(props, refIn) {
3174
3094
  return renderCSSModel3DNotInSpatialDiv(props, refIn);
3175
3095
  }
3176
3096
  }
3177
- __name(CSSModel3DBase, "CSSModel3DBase");
3178
3097
  var CSSModel3D = (0, import_react30.forwardRef)(CSSModel3DBase);
3179
3098
  CSSModel3D.displayName = "CSSModel3D";
3180
3099
 
@@ -3189,7 +3108,6 @@ function renderInModel3D(inProps, ref, modelUrl, placeHolder) {
3189
3108
  " "
3190
3109
  ] });
3191
3110
  }
3192
- __name(renderInModel3D, "renderInModel3D");
3193
3111
  function parseChildren(child) {
3194
3112
  if (child === void 0) {
3195
3113
  throw new Error("children with <source> required ");
@@ -3218,7 +3136,6 @@ function parseChildren(child) {
3218
3136
  usdzSourceURL: getAbsoluteURL(usdzSourceURL)
3219
3137
  };
3220
3138
  }
3221
- __name(parseChildren, "parseChildren");
3222
3139
  function ModelBase(inProps, ref) {
3223
3140
  const { children, ...props } = inProps;
3224
3141
  const { placeHolder, gltfSourceURL, usdzSourceURL } = (0, import_react31.useMemo)(
@@ -3303,7 +3220,6 @@ function ModelBase(inProps, ref) {
3303
3220
  return renderInModel3D(props, ref, usdzSourceURL, placeHolder);
3304
3221
  }
3305
3222
  }
3306
- __name(ModelBase, "ModelBase");
3307
3223
  var Model = (0, import_react31.forwardRef)(ModelBase);
3308
3224
  Model.displayName = "Model";
3309
3225
 
@@ -3318,9 +3234,6 @@ var defaultSceneConfig = {
3318
3234
  var CONTEXT_WINDOW_URL = "webspatial://createWindowContext";
3319
3235
  var originalOpen = window.open;
3320
3236
  var XRApp = class _XRApp {
3321
- static {
3322
- __name(this, "XRApp");
3323
- }
3324
3237
  static instance;
3325
3238
  static getInstance() {
3326
3239
  if (!_XRApp.instance) {
@@ -3375,7 +3288,7 @@ var XRApp = class _XRApp {
3375
3288
  console.error(error);
3376
3289
  }
3377
3290
  }
3378
- open = /* @__PURE__ */ __name((url, target, features) => {
3291
+ open = (url, target, features) => {
3379
3292
  const newWindow = originalOpen(url, target, features);
3380
3293
  if (url === CONTEXT_WINDOW_URL) return newWindow;
3381
3294
  if (target === "_self" || target === "_parent" || target === "_top") {
@@ -3420,7 +3333,7 @@ var XRApp = class _XRApp {
3420
3333
  }
3421
3334
  }, 0);
3422
3335
  return newWindow;
3423
- }, "open");
3336
+ };
3424
3337
  initScene(name, callback) {
3425
3338
  this.configMap[name] = callback({ ...defaultSceneConfig });
3426
3339
  }
@@ -3428,5 +3341,23 @@ var XRApp = class _XRApp {
3428
3341
  function initScene(name, callback) {
3429
3342
  return XRApp.getInstance().initScene(name, callback);
3430
3343
  }
3431
- __name(initScene, "initScene");
3432
- //# 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