@webspatial/react-sdk 0.0.4 → 0.0.5

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