@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");
@@ -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,15 +840,13 @@ 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
- function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, cornerRadiusFromStyle, opacity) {
849
+ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, cornerRadiusFromStyle, opacity, stylePosition) {
880
850
  let { allowScroll, scrollWithParent, style, spatialStyle = {} } = props;
881
851
  let {
882
852
  position = { x: 0, y: 0, z: 1 },
@@ -886,7 +856,6 @@ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, corne
886
856
  cornerRadius = cornerRadiusFromStyle,
887
857
  zIndex = 0
888
858
  } = spatialStyle;
889
- let stylePosition = style?.position;
890
859
  let styleOverflow = style?.overflow;
891
860
  const visible = (0, import_react8.useMemo)(() => {
892
861
  return spatialStyle.visible !== false && domRect.width > 0 && domRect.height > 0;
@@ -1004,7 +973,6 @@ function useSyncSpatialProps(spatialWindowManager, props, domRect, anchor, corne
1004
973
  }
1005
974
  }, [spatialWindowManager, domRect.width]);
1006
975
  }
1007
- __name(useSyncSpatialProps, "useSyncSpatialProps");
1008
976
  function useSyncDomRect(spatialId) {
1009
977
  const [domRect, setDomRect] = (0, import_react8.useState)({
1010
978
  x: 0,
@@ -1028,7 +996,7 @@ function useSyncDomRect(spatialId) {
1028
996
  const spatialReactContextObject = (0, import_react8.useContext)(SpatialReactContext);
1029
997
  const inheritedPortalClassNameRef = (0, import_react8.useRef)("");
1030
998
  (0, import_react8.useEffect)(() => {
1031
- const syncDomRect = /* @__PURE__ */ __name(() => {
999
+ const syncDomRect = () => {
1032
1000
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
1033
1001
  if (!dom) {
1034
1002
  return;
@@ -1052,7 +1020,7 @@ function useSyncDomRect(spatialId) {
1052
1020
  opacityRef.current = opacity;
1053
1021
  inheritedPortalClassNameRef.current = dom.className;
1054
1022
  setDomRect(rectType);
1055
- }, "syncDomRect");
1023
+ };
1056
1024
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
1057
1025
  return () => {
1058
1026
  spatialReactContextObject?.offDomChange(spatialId);
@@ -1067,7 +1035,6 @@ function useSyncDomRect(spatialId) {
1067
1035
  className: inheritedPortalClassNameRef.current
1068
1036
  };
1069
1037
  }
1070
- __name(useSyncDomRect, "useSyncDomRect");
1071
1038
  function PortalInstance(inProps) {
1072
1039
  const { allowScroll, scrollWithParent, spatialStyle, isSubPortal, ...props } = inProps;
1073
1040
  const debugName = (0, import_react8.useContext)(SpatialDebugNameContext);
@@ -1117,7 +1084,8 @@ function PortalInstance(inProps) {
1117
1084
  domRect,
1118
1085
  anchor,
1119
1086
  cornerRadius,
1120
- opacity
1087
+ opacity,
1088
+ inheritedPortalStyle.position
1121
1089
  );
1122
1090
  const JSXPortalInstance = renderJSXPortalInstance(
1123
1091
  props,
@@ -1126,7 +1094,7 @@ function PortalInstance(inProps) {
1126
1094
  inheritedPortalStyle,
1127
1095
  className
1128
1096
  );
1129
- const needRenderPlaceHolder = isSubPortal && inheritedPortalStyle.position !== "absolute";
1097
+ const needRenderPlaceHolder = isSubPortal && inheritedPortalStyle.position !== "absolute" && inheritedPortalStyle.position !== "fixed";
1130
1098
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(SpatialWindowManagerContext.Provider, { value: spatialWindowManager, children: [
1131
1099
  needRenderPlaceHolder && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1132
1100
  "div",
@@ -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,9 +1378,8 @@ function parseTransform(computedStyle) {
1425
1378
  }
1426
1379
  }
1427
1380
  }
1428
- __name(parseTransform, "parseTransform");
1429
1381
  function parseBack(computedStyle) {
1430
- let useBackProperty = computedStyle.position === "absolute" || computedStyle.position === "relative";
1382
+ let useBackProperty = computedStyle.position === "absolute" || computedStyle.position === "relative" || computedStyle.position === "fixed";
1431
1383
  if (!useBackProperty) return new import_Matrix4.Matrix4();
1432
1384
  let backProperty = computedStyle.getPropertyValue(SpatialCustomVars.back);
1433
1385
  let back = void 0;
@@ -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 = {};
@@ -1854,6 +1794,7 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
1854
1794
  ...style,
1855
1795
  width: 0,
1856
1796
  height: 0,
1797
+ padding: 0,
1857
1798
  transition: "none"
1858
1799
  };
1859
1800
  const spatialDivStyle = {
@@ -1883,16 +1824,15 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
1883
1824
  style: divRefStyle,
1884
1825
  className: divRefClassName,
1885
1826
  ...props,
1886
- ref
1827
+ ref,
1828
+ "data-cssparser": true
1887
1829
  }
1888
1830
  )
1889
1831
  ] });
1890
1832
  }
1891
- __name(renderRootCSSSpatialComponent, "renderRootCSSSpatialComponent");
1892
1833
  function renderInWebEnv(props, ref) {
1893
1834
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { ...props, ref });
1894
1835
  }
1895
- __name(renderInWebEnv, "renderInWebEnv");
1896
1836
  function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inProps, refIn) {
1897
1837
  const { style: inStyle = {}, ...props } = inProps;
1898
1838
  const style = {
@@ -1903,9 +1843,9 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1903
1843
  var cssParserRef = (0, import_react19.useRef)(null);
1904
1844
  const spatialDivRef = useHijackSpatialDivRef(refIn, cssParserRef);
1905
1845
  (0, import_react19.useEffect)(() => {
1906
- const onDomChangeAction = /* @__PURE__ */ __name((dom) => {
1846
+ const onDomChangeAction = (dom) => {
1907
1847
  cssParserRef.current = dom;
1908
- }, "onDomChangeAction");
1848
+ };
1909
1849
  cssSpatialRootContextObject.onDomChange(cssSpatialID, onDomChangeAction);
1910
1850
  return () => {
1911
1851
  cssSpatialRootContextObject.offDomChange(cssSpatialID, onDomChangeAction);
@@ -1913,7 +1853,6 @@ function renderInStandardInstance(cssSpatialRootContextObject, cssSpatialID, inP
1913
1853
  }, []);
1914
1854
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SpatialReactComponent, { style, ...props, ref: spatialDivRef });
1915
1855
  }
1916
- __name(renderInStandardInstance, "renderInStandardInstance");
1917
1856
  function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inProps) {
1918
1857
  const {
1919
1858
  style = {},
@@ -1928,6 +1867,7 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
1928
1867
  ...style,
1929
1868
  width: 0,
1930
1869
  height: 0,
1870
+ padding: 0,
1931
1871
  transition: "none"
1932
1872
  };
1933
1873
  const spatialDivStyle = {
@@ -1963,10 +1903,9 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
1963
1903
  )
1964
1904
  ] });
1965
1905
  }
1966
- __name(renderInPortalInstance, "renderInPortalInstance");
1967
1906
  function CSSSpatialComponentBase(inProps, ref) {
1968
1907
  const { [CSSSpatialID]: cssSpatialID, ...props } = inProps;
1969
- const isWebEnv = !getSession();
1908
+ const isWebEnv = "false";
1970
1909
  if (isWebEnv) {
1971
1910
  return renderInWebEnv(props, ref);
1972
1911
  } else {
@@ -1994,7 +1933,6 @@ function CSSSpatialComponentBase(inProps, ref) {
1994
1933
  }
1995
1934
  }
1996
1935
  }
1997
- __name(CSSSpatialComponentBase, "CSSSpatialComponentBase");
1998
1936
  var CSSSpatialComponentBaseWithRef = (0, import_react19.forwardRef)(CSSSpatialComponentBase);
1999
1937
  function CSSSpatialComponentWithRef(inProps, ref) {
2000
1938
  const layer = (0, import_react19.useContext)(CSSSpatialLayerContext) + 1;
@@ -2011,7 +1949,6 @@ function CSSSpatialComponentWithRef(inProps, ref) {
2011
1949
  const props = { ...inProps, [CSSSpatialID]: cssSpatialID };
2012
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 }) }) });
2013
1951
  }
2014
- __name(CSSSpatialComponentWithRef, "CSSSpatialComponentWithRef");
2015
1952
  var CSSSpatialComponent = (0, import_react19.forwardRef)(CSSSpatialComponentWithRef);
2016
1953
 
2017
1954
  // src/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.tsx
@@ -2049,22 +1986,21 @@ function withCSSSpatial(Component) {
2049
1986
  return WithCSSSpatialComponent;
2050
1987
  }
2051
1988
  }
2052
- __name(withCSSSpatial, "withCSSSpatial");
2053
1989
  var CSSSpatialPrimitive = {};
2054
- (/* @__PURE__ */ __name(function createSpatialPrimitive2(CSSSpatialPrimitive2) {
1990
+ (function createSpatialPrimitive2(CSSSpatialPrimitive2) {
2055
1991
  primitives.forEach((primitive) => {
2056
1992
  CSSSpatialPrimitive2[primitive] = withCSSSpatial(primitive);
2057
1993
  });
2058
- }, "createSpatialPrimitive"))(CSSSpatialPrimitive);
1994
+ })(CSSSpatialPrimitive);
2059
1995
  var CSSSpatialDiv = CSSSpatialPrimitive.div;
2060
1996
 
2061
1997
  // src/spatial-react-components/SpatialView.tsx
2062
1998
  var import_core_sdk2 = require("@webspatial/core-sdk");
2063
1999
  var import_react21 = require("react");
2064
2000
  var import_jsx_runtime8 = require("react/jsx-runtime");
2065
- var runAsync = /* @__PURE__ */ __name((fn) => {
2001
+ var runAsync = (fn) => {
2066
2002
  return fn();
2067
- }, "runAsync");
2003
+ };
2068
2004
  var SpatialViewEl = (0, import_react21.forwardRef)(
2069
2005
  (props, ref) => {
2070
2006
  const divRef = (0, import_react21.useRef)(null);
@@ -2072,18 +2008,18 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2072
2008
  const activePromise = (0, import_react21.useRef)(null);
2073
2009
  (0, import_react21.useImperativeHandle)(ref, () => ({
2074
2010
  ...divRef.current,
2075
- getViewEntity: /* @__PURE__ */ __name(async () => {
2011
+ getViewEntity: async () => {
2076
2012
  if (activePromise.current) {
2077
2013
  await activePromise.current;
2078
2014
  }
2079
2015
  return spatialEntity.current;
2080
- }, "getViewEntity")
2016
+ }
2081
2017
  }));
2082
2018
  if (getSession() == null) {
2083
2019
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ref: divRef, ...props, children: "WebSpatial is not supported in this browser" });
2084
2020
  }
2085
2021
  (0, import_react21.useEffect)(() => {
2086
- if (false) return;
2022
+ if ("false") return;
2087
2023
  activePromise.current = runAsync(async () => {
2088
2024
  if (activePromise.current) {
2089
2025
  await activePromise.current;
@@ -2096,7 +2032,7 @@ var SpatialViewEl = (0, import_react21.forwardRef)(
2096
2032
  }
2097
2033
  });
2098
2034
  return () => {
2099
- if (false) return;
2035
+ if ("false") return;
2100
2036
  runAsync(async () => {
2101
2037
  await activePromise.current;
2102
2038
  spatialEntity.current?.destroy();
@@ -2154,7 +2090,6 @@ function useDetectLayoutDomUpdated(onDomUpdated) {
2154
2090
  }, []);
2155
2091
  return ref;
2156
2092
  }
2157
- __name(useDetectLayoutDomUpdated, "useDetectLayoutDomUpdated");
2158
2093
 
2159
2094
  // src/spatial-react-components/Model3D/useModel3DNative.ts
2160
2095
  var import_react23 = require("react");
@@ -2175,7 +2110,6 @@ function PopulatePartialSpatialTransformType(spatialTransform = {}) {
2175
2110
  scale: { x: sx, y: sy, z: sz }
2176
2111
  };
2177
2112
  }
2178
- __name(PopulatePartialSpatialTransformType, "PopulatePartialSpatialTransformType");
2179
2113
  function getAbsoluteURL(url) {
2180
2114
  if (!url) {
2181
2115
  return "";
@@ -2185,13 +2119,9 @@ function getAbsoluteURL(url) {
2185
2119
  }
2186
2120
  return `${location.origin}${url}`;
2187
2121
  }
2188
- __name(getAbsoluteURL, "getAbsoluteURL");
2189
2122
 
2190
2123
  // src/spatial-react-components/Model3D/Model3DNative.ts
2191
2124
  var Model3DNative = class {
2192
- static {
2193
- __name(this, "Model3DNative");
2194
- }
2195
2125
  constructor(parentEntity) {
2196
2126
  this.parentEntity = parentEntity;
2197
2127
  }
@@ -2215,7 +2145,7 @@ var Model3DNative = class {
2215
2145
  return this.initPromise;
2216
2146
  }
2217
2147
  async initInternal(modelUrl, onSuccess, onFailure) {
2218
- if (false) return;
2148
+ if ("false") return;
2219
2149
  var session = getSession();
2220
2150
  if (!session) {
2221
2151
  return;
@@ -2449,7 +2379,6 @@ function useModel3DNative(modelUrl, parentEntity, eventHandlers = {}, onModel3DN
2449
2379
  }, [model3DNativeRef.current, eventHandlers.onLongPress]);
2450
2380
  return { model3DNativeRef, phase, failureReason };
2451
2381
  }
2452
- __name(useModel3DNative, "useModel3DNative");
2453
2382
 
2454
2383
  // src/spatial-react-components/Model3D/Model3DNotInSpatialDiv.tsx
2455
2384
  var import_react24 = require("react");
@@ -2692,7 +2621,6 @@ function renderModel3DNotInSpatialDiv(props, refIn) {
2692
2621
  }, [modelUrl]);
2693
2622
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className, style: layoutDomStyle, ref: proxyRef, children: phase === "failure" && children });
2694
2623
  }
2695
- __name(renderModel3DNotInSpatialDiv, "renderModel3DNotInSpatialDiv");
2696
2624
 
2697
2625
  // src/spatial-react-components/Model3D/Model3DStandardInstance.tsx
2698
2626
  var import_jsx_runtime10 = require("react/jsx-runtime");
@@ -2712,7 +2640,6 @@ function renderModel3DStandardInstance(spatialId, props, refIn) {
2712
2640
  }
2713
2641
  );
2714
2642
  }
2715
- __name(renderModel3DStandardInstance, "renderModel3DStandardInstance");
2716
2643
 
2717
2644
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2718
2645
  var import_react26 = require("react");
@@ -2737,7 +2664,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2737
2664
  const inheritedPortalClassNameRef = (0, import_react25.useRef)("");
2738
2665
  const modelRef = (0, import_react25.useRef)(null);
2739
2666
  (0, import_react25.useEffect)(() => {
2740
- const syncDomRect = /* @__PURE__ */ __name(() => {
2667
+ const syncDomRect = () => {
2741
2668
  const dom = spatialReactContextObject?.querySpatialDom(spatialId);
2742
2669
  if (!dom) {
2743
2670
  return;
@@ -2760,7 +2687,7 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2760
2687
  opacityRef.current = opacity;
2761
2688
  inheritedPortalClassNameRef.current = dom.className;
2762
2689
  setDomRect(rectType);
2763
- }, "syncDomRect");
2690
+ };
2764
2691
  spatialReactContextObject?.onDomChange(spatialId, syncDomRect);
2765
2692
  return () => {
2766
2693
  spatialReactContextObject?.offDomChange(spatialId);
@@ -2775,7 +2702,6 @@ function useSyncDomInfoFromStandardInstance(spatialId) {
2775
2702
  className: inheritedPortalClassNameRef.current
2776
2703
  };
2777
2704
  }
2778
- __name(useSyncDomInfoFromStandardInstance, "useSyncDomInfoFromStandardInstance");
2779
2705
 
2780
2706
  // src/spatial-react-components/Model3D/Model3DPortalInstance.tsx
2781
2707
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -2857,7 +2783,6 @@ function useModelEvents(props, modelRef) {
2857
2783
  onLongPress: onLongPressCb
2858
2784
  };
2859
2785
  }
2860
- __name(useModelEvents, "useModelEvents");
2861
2786
  function renderModel3DPortalInstance(spatialId, props) {
2862
2787
  const {
2863
2788
  style: _,
@@ -2999,7 +2924,6 @@ function renderModel3DPortalInstance(spatialId, props) {
2999
2924
  );
3000
2925
  }
3001
2926
  }
3002
- __name(renderModel3DPortalInstance, "renderModel3DPortalInstance");
3003
2927
 
3004
2928
  // src/spatial-react-components/Model3D/Model3D.tsx
3005
2929
  function Model3DBase(props, refIn) {
@@ -3024,7 +2948,6 @@ function Model3DBase(props, refIn) {
3024
2948
  return renderModel3DNotInSpatialDiv(props, refIn);
3025
2949
  }
3026
2950
  }
3027
- __name(Model3DBase, "Model3DBase");
3028
2951
  var Model3D = (0, import_react27.forwardRef)(Model3DBase);
3029
2952
  Model3D.displayName = "Model3D";
3030
2953
 
@@ -3038,7 +2961,8 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
3038
2961
  const cssParserDomStyle = {
3039
2962
  ...style,
3040
2963
  width: 0,
3041
- height: 0
2964
+ height: 0,
2965
+ padding: 0
3042
2966
  };
3043
2967
  const { ref: cssParserDomRef, spatialStyle, ready } = useSpatialStyle();
3044
2968
  const ref = useHijackSpatialDivRef(
@@ -3077,7 +3001,6 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
3077
3001
  )
3078
3002
  ] });
3079
3003
  }
3080
- __name(renderCSSModel3DNotInSpatialDiv, "renderCSSModel3DNotInSpatialDiv");
3081
3004
 
3082
3005
  // src/spatial-react-components/Model3D/CSSModel3DStandardInstance.tsx
3083
3006
  var import_react28 = require("react");
@@ -3096,9 +3019,9 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3096
3019
  );
3097
3020
  const rootSpatialReactContextObject = (0, import_react28.useContext)(SpatialReactContext);
3098
3021
  (0, import_react28.useEffect)(() => {
3099
- const onSubEvent = /* @__PURE__ */ __name((dom) => {
3022
+ const onSubEvent = (dom) => {
3100
3023
  cssParserRef.current = dom;
3101
- }, "onSubEvent");
3024
+ };
3102
3025
  rootSpatialReactContextObject.onSubDivEvent(spatialId, onSubEvent);
3103
3026
  return () => {
3104
3027
  rootSpatialReactContextObject.offSubDivEvent(spatialId);
@@ -3106,7 +3029,6 @@ function renderCSSModel3DStandardInstance(spatialId, inProps, refIn) {
3106
3029
  }, []);
3107
3030
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Model3D, { style, ...props, ref, visible: true });
3108
3031
  }
3109
- __name(renderCSSModel3DStandardInstance, "renderCSSModel3DStandardInstance");
3110
3032
 
3111
3033
  // src/spatial-react-components/Model3D/CSSModel3DPortalInstance.tsx
3112
3034
  var import_react29 = require("react");
@@ -3127,7 +3049,8 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
3127
3049
  const cssParserDomStyle = {
3128
3050
  ...style,
3129
3051
  width: 0,
3130
- height: 0
3052
+ height: 0,
3053
+ padding: 0
3131
3054
  };
3132
3055
  const model3DStyle = {
3133
3056
  ...style,
@@ -3147,7 +3070,6 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
3147
3070
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className, style: cssParserDomStyle, ref })
3148
3071
  ] });
3149
3072
  }
3150
- __name(renderCSSModel3DPortalInstance, "renderCSSModel3DPortalInstance");
3151
3073
 
3152
3074
  // src/spatial-react-components/Model3D/CSSModel3D.tsx
3153
3075
  function CSSModel3DBase(props, refIn) {
@@ -3172,7 +3094,6 @@ function CSSModel3DBase(props, refIn) {
3172
3094
  return renderCSSModel3DNotInSpatialDiv(props, refIn);
3173
3095
  }
3174
3096
  }
3175
- __name(CSSModel3DBase, "CSSModel3DBase");
3176
3097
  var CSSModel3D = (0, import_react30.forwardRef)(CSSModel3DBase);
3177
3098
  CSSModel3D.displayName = "CSSModel3D";
3178
3099
 
@@ -3187,7 +3108,6 @@ function renderInModel3D(inProps, ref, modelUrl, placeHolder) {
3187
3108
  " "
3188
3109
  ] });
3189
3110
  }
3190
- __name(renderInModel3D, "renderInModel3D");
3191
3111
  function parseChildren(child) {
3192
3112
  if (child === void 0) {
3193
3113
  throw new Error("children with <source> required ");
@@ -3216,7 +3136,6 @@ function parseChildren(child) {
3216
3136
  usdzSourceURL: getAbsoluteURL(usdzSourceURL)
3217
3137
  };
3218
3138
  }
3219
- __name(parseChildren, "parseChildren");
3220
3139
  function ModelBase(inProps, ref) {
3221
3140
  const { children, ...props } = inProps;
3222
3141
  const { placeHolder, gltfSourceURL, usdzSourceURL } = (0, import_react31.useMemo)(
@@ -3301,7 +3220,6 @@ function ModelBase(inProps, ref) {
3301
3220
  return renderInModel3D(props, ref, usdzSourceURL, placeHolder);
3302
3221
  }
3303
3222
  }
3304
- __name(ModelBase, "ModelBase");
3305
3223
  var Model = (0, import_react31.forwardRef)(ModelBase);
3306
3224
  Model.displayName = "Model";
3307
3225
 
@@ -3316,9 +3234,6 @@ var defaultSceneConfig = {
3316
3234
  var CONTEXT_WINDOW_URL = "webspatial://createWindowContext";
3317
3235
  var originalOpen = window.open;
3318
3236
  var XRApp = class _XRApp {
3319
- static {
3320
- __name(this, "XRApp");
3321
- }
3322
3237
  static instance;
3323
3238
  static getInstance() {
3324
3239
  if (!_XRApp.instance) {
@@ -3373,7 +3288,7 @@ var XRApp = class _XRApp {
3373
3288
  console.error(error);
3374
3289
  }
3375
3290
  }
3376
- open = /* @__PURE__ */ __name((url, target, features) => {
3291
+ open = (url, target, features) => {
3377
3292
  const newWindow = originalOpen(url, target, features);
3378
3293
  if (url === CONTEXT_WINDOW_URL) return newWindow;
3379
3294
  if (target === "_self" || target === "_parent" || target === "_top") {
@@ -3418,7 +3333,7 @@ var XRApp = class _XRApp {
3418
3333
  }
3419
3334
  }, 0);
3420
3335
  return newWindow;
3421
- }, "open");
3336
+ };
3422
3337
  initScene(name, callback) {
3423
3338
  this.configMap[name] = callback({ ...defaultSceneConfig });
3424
3339
  }
@@ -3426,5 +3341,23 @@ var XRApp = class _XRApp {
3426
3341
  function initScene(name, callback) {
3427
3342
  return XRApp.getInstance().initScene(name, callback);
3428
3343
  }
3429
- __name(initScene, "initScene");
3430
- //# 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