@omnidotdev/rdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/build/emulate-0AL7_Hsz.cjs +1174 -0
  2. package/build/emulate-DLppRBG1.js +15348 -0
  3. package/build/engine/XR.d.ts +6 -10
  4. package/build/engine/XR.d.ts.map +1 -1
  5. package/build/engine/useXRStore.d.ts +22 -21
  6. package/build/engine/useXRStore.d.ts.map +1 -1
  7. package/build/fiducial/FiducialSession.d.ts.map +1 -1
  8. package/build/geolocation/GeolocationSession.d.ts.map +1 -1
  9. package/build/immersive/ImmersiveSession.d.ts +7 -0
  10. package/build/immersive/ImmersiveSession.d.ts.map +1 -0
  11. package/build/immersive/index.d.ts +2 -0
  12. package/build/immersive/index.d.ts.map +1 -0
  13. package/build/index-BvYiLx_T.js +38559 -0
  14. package/build/index-K8CWZyT2.cjs +378 -0
  15. package/build/index.cjs +1 -35
  16. package/build/index.d.ts +2 -0
  17. package/build/index.d.ts.map +1 -1
  18. package/build/index.js +13 -6038
  19. package/build/lib/types/engine/backend/Backend.interface.d.ts.map +1 -1
  20. package/build/lib/types/engine/context/ContextValue.interface.d.ts +1 -4
  21. package/build/lib/types/engine/context/ContextValue.interface.d.ts.map +1 -1
  22. package/build/lib/types/engine/index.d.ts +0 -1
  23. package/build/lib/types/engine/index.d.ts.map +1 -1
  24. package/build/lib/types/immersive/ImmersiveMode.type.d.ts +7 -0
  25. package/build/lib/types/immersive/ImmersiveMode.type.d.ts.map +1 -0
  26. package/build/lib/types/immersive/index.d.ts +2 -0
  27. package/build/lib/types/immersive/index.d.ts.map +1 -0
  28. package/build/lib/types/index.d.ts +3 -0
  29. package/build/lib/types/index.d.ts.map +1 -0
  30. package/build/lib/util/immersive/fromWebXRSessionMode.d.ts +7 -0
  31. package/build/lib/util/immersive/fromWebXRSessionMode.d.ts.map +1 -0
  32. package/build/lib/util/immersive/index.d.ts +4 -0
  33. package/build/lib/util/immersive/index.d.ts.map +1 -0
  34. package/build/lib/util/immersive/isImmersiveModeSupported.d.ts +7 -0
  35. package/build/lib/util/immersive/isImmersiveModeSupported.d.ts.map +1 -0
  36. package/build/lib/util/immersive/toWebXRSessionMode.d.ts +7 -0
  37. package/build/lib/util/immersive/toWebXRSessionMode.d.ts.map +1 -0
  38. package/build/living_room-BExcgHe_.cjs +1 -0
  39. package/build/living_room-uy_CEYZC.js +11 -0
  40. package/build/meeting_room-BjXC3fLc.js +11 -0
  41. package/build/meeting_room-QG1J4owl.cjs +1 -0
  42. package/build/music_room-AFchga9Y.js +11 -0
  43. package/build/music_room-KhUm0m6-.cjs +1 -0
  44. package/build/office_large-Cy_oZxjZ.cjs +1 -0
  45. package/build/office_large-qDeoZNBo.js +11 -0
  46. package/build/office_small-B_PLvrYC.js +11 -0
  47. package/build/office_small-DfBVh7jy.cjs +1 -0
  48. package/package.json +6 -3
  49. package/build/engine/XRSessionProvider.d.ts +0 -13
  50. package/build/engine/XRSessionProvider.d.ts.map +0 -1
  51. package/build/lib/types/engine/CameraSource.type.d.ts +0 -7
  52. package/build/lib/types/engine/CameraSource.type.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Backend.interface.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/engine/backend/Backend.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAElD;;;OAGG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC;CACzB"}
1
+ {"version":3,"file":"Backend.interface.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/engine/backend/Backend.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClD;;;OAGG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC;CACzB"}
@@ -1,13 +1,10 @@
1
- import { CameraSource } from '..';
2
1
  import { Backend } from '../backend';
3
2
  /**
4
3
  * Context value provided by session providers.
5
4
  * Supports session-based architecture with shared camera/video resources.
6
5
  */
7
6
  export interface ContextValue {
8
- /** Camera source type. */
9
- camera: CameraSource;
10
- /** Shared video element when using video camera source. */
7
+ /** Shared video element. */
11
8
  video?: HTMLVideoElement | null;
12
9
  /** Active backends registered by sessions. */
13
10
  backends: Backend[];
@@ -1 +1 @@
1
- {"version":3,"file":"ContextValue.interface.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/engine/context/ContextValue.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,+CAA+C;IAC/C,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,iDAAiD;IACjD,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE"}
1
+ {"version":3,"file":"ContextValue.interface.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/engine/context/ContextValue.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,+CAA+C;IAC/C,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,iDAAiD;IACjD,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE"}
@@ -1,4 +1,3 @@
1
1
  export type { Backend, BackendInitArgs } from './backend';
2
- export type { CameraSource } from './CameraSource.type';
3
2
  export type { ContextValue } from './context';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/engine/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/engine/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Simplified immersive session modes that map to official WebXR session modes.
3
+ * @see https://www.w3.org/TR/webxr/#xrsessionmode-enum
4
+ */
5
+ type ImmersiveMode = "ar" | "vr" | "inline";
6
+ export default ImmersiveMode;
7
+ //# sourceMappingURL=ImmersiveMode.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImmersiveMode.type.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/immersive/ImmersiveMode.type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAC;AAE5C,eAAe,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { default as ImmersiveMode } from './ImmersiveMode.type';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/immersive/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './engine';
2
+ export * from './immersive';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ImmersiveMode } from 'lib/types';
2
+ /**
3
+ * Maps official WebXR session modes to simplified immersive modes.
4
+ */
5
+ declare const fromWebXRSessionMode: (mode: XRSessionMode) => ImmersiveMode;
6
+ export default fromWebXRSessionMode;
7
+ //# sourceMappingURL=fromWebXRSessionMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromWebXRSessionMode.d.ts","sourceRoot":"","sources":["../../../../src/lib/util/immersive/fromWebXRSessionMode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,QAAA,MAAM,oBAAoB,GAAI,MAAM,aAAa,KAAG,aAKnC,CAAC;AAElB,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as fromWebXRSessionMode } from './fromWebXRSessionMode';
2
+ export { default as isImmersiveModeSupported } from './isImmersiveModeSupported';
3
+ export { default as toWebXRSessionMode } from './toWebXRSessionMode';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/util/immersive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Check if a specific immersive mode is supported.
3
+ * Uses real WebXR API calls for accurate detection.
4
+ */
5
+ declare function isImmersiveModeSupported(mode: "ar" | "vr" | "inline"): Promise<boolean>;
6
+ export default isImmersiveModeSupported;
7
+ //# sourceMappingURL=isImmersiveModeSupported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isImmersiveModeSupported.d.ts","sourceRoot":"","sources":["../../../../src/lib/util/immersive/isImmersiveModeSupported.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,iBAAe,wBAAwB,CACrC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,QAAQ,GAC3B,OAAO,CAAC,OAAO,CAAC,CAYlB;AAED,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ImmersiveMode } from 'lib/types';
2
+ /**
3
+ * Map simplified immersive modes to official WebXR session modes.
4
+ */
5
+ declare const toWebXRSessionMode: (mode: ImmersiveMode) => XRSessionMode;
6
+ export default toWebXRSessionMode;
7
+ //# sourceMappingURL=toWebXRSessionMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toWebXRSessionMode.d.ts","sourceRoot":"","sources":["../../../../src/lib/util/immersive/toWebXRSessionMode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,QAAA,MAAM,kBAAkB,GAAI,MAAM,aAAa,KAAG,aAKjC,CAAC;AAElB,eAAe,kBAAkB,CAAC"}