@omnidotdev/rdk 0.2.2 → 0.3.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 (47) hide show
  1. package/build/engine/XR.d.ts.map +1 -1
  2. package/build/engine/XRSessionProvider.d.ts +2 -7
  3. package/build/engine/XRSessionProvider.d.ts.map +1 -1
  4. package/build/engine/index.d.ts +2 -0
  5. package/build/engine/index.d.ts.map +1 -1
  6. package/build/engine/useXRStore.d.ts +53 -0
  7. package/build/engine/useXRStore.d.ts.map +1 -0
  8. package/build/fiducial/FiducialAnchor.d.ts.map +1 -1
  9. package/build/fiducial/FiducialSession.d.ts +2 -2
  10. package/build/fiducial/FiducialSession.d.ts.map +1 -1
  11. package/build/fiducial/fiducialBackend.d.ts +2 -2
  12. package/build/fiducial/fiducialBackend.d.ts.map +1 -1
  13. package/build/fiducial/index.d.ts +1 -1
  14. package/build/fiducial/index.d.ts.map +1 -1
  15. package/build/geolocation/GeolocationAnchor.d.ts.map +1 -1
  16. package/build/geolocation/GeolocationSession.d.ts +2 -2
  17. package/build/geolocation/GeolocationSession.d.ts.map +1 -1
  18. package/build/geolocation/geolocationBackend.d.ts +2 -2
  19. package/build/geolocation/geolocationBackend.d.ts.map +1 -1
  20. package/build/geolocation/index.d.ts +1 -1
  21. package/build/geolocation/index.d.ts.map +1 -1
  22. package/build/index.cjs +20 -20
  23. package/build/index.d.ts +3 -1
  24. package/build/index.d.ts.map +1 -1
  25. package/build/index.js +2185 -2132
  26. package/build/lib/types/engine/CameraSource.type.d.ts +7 -0
  27. package/build/lib/types/engine/CameraSource.type.d.ts.map +1 -0
  28. package/build/lib/types/{xr/XRBackend.interface.d.ts → engine/backend/Backend.interface.d.ts} +8 -8
  29. package/build/lib/types/engine/backend/Backend.interface.d.ts.map +1 -0
  30. package/build/lib/types/engine/backend/BackendInitArgs.interface.d.ts +14 -0
  31. package/build/lib/types/engine/backend/BackendInitArgs.interface.d.ts.map +1 -0
  32. package/build/lib/types/engine/backend/index.d.ts +3 -0
  33. package/build/lib/types/engine/backend/index.d.ts.map +1 -0
  34. package/build/lib/types/engine/context/ContextValue.interface.d.ts +19 -0
  35. package/build/lib/types/engine/context/ContextValue.interface.d.ts.map +1 -0
  36. package/build/lib/types/engine/context/index.d.ts +2 -0
  37. package/build/lib/types/engine/context/index.d.ts.map +1 -0
  38. package/build/lib/types/engine/index.d.ts +4 -0
  39. package/build/lib/types/engine/index.d.ts.map +1 -0
  40. package/package.json +14 -12
  41. package/build/lib/types/xr/XRBackend.interface.d.ts.map +0 -1
  42. package/build/lib/types/xr/XRBackendInitArgs.interface.d.ts +0 -14
  43. package/build/lib/types/xr/XRBackendInitArgs.interface.d.ts.map +0 -1
  44. package/build/lib/types/xr/XRContextValue.interface.d.ts +0 -20
  45. package/build/lib/types/xr/XRContextValue.interface.d.ts.map +0 -1
  46. package/build/lib/types/xr/index.d.ts +0 -4
  47. package/build/lib/types/xr/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"XR.d.ts","sourceRoot":"","sources":["../../src/engine/XR.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,OAAQ,SAAQ,iBAAiB;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,EAAE,GAAI,4BAAsC,OAAO,4CAExD,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"XR.d.ts","sourceRoot":"","sources":["../../src/engine/XR.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,OAAQ,SAAQ,iBAAiB;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,EAAE,GAAI,4BAAsC,OAAO,4CAExD,CAAC;AAEF,eAAe,EAAE,CAAC"}
@@ -1,10 +1,4 @@
1
- import { XRContextValue } from 'lib/types/xr';
2
1
  import { PropsWithChildren } from 'react';
3
- export declare const XRContext: import('react').Context<XRContextValue | null>;
4
- /**
5
- * Use `XRSessionProvider` context.
6
- */
7
- export declare const useXR: () => XRContextValue;
8
2
  interface XRSessionProviderProps extends PropsWithChildren {
9
3
  /** Camera source type. */
10
4
  cameraSource: "video" | "webxr";
@@ -12,7 +6,8 @@ interface XRSessionProviderProps extends PropsWithChildren {
12
6
  /**
13
7
  * Session-based XR provider that manages shared resources and backend registry.
14
8
  * Sessions register their backends and get access to shared camera/video resources.
9
+ * For performance, the provider passes Three.js refs per frame instead of storing them.
15
10
  */
16
- declare const XRSessionProvider: ({ cameraSource, children, }: XRSessionProviderProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const XRSessionProvider: ({ cameraSource, children, }: XRSessionProviderProps) => import('react').ReactNode;
17
12
  export default XRSessionProvider;
18
13
  //# sourceMappingURL=XRSessionProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"XRSessionProvider.d.ts","sourceRoot":"","sources":["../../src/engine/XRSessionProvider.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,SAAS,gDAA6C,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,KAAK,QAAO,cAOxB,CAAC;AAEF,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,0BAA0B;IAC1B,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,6BAGxB,sBAAsB,4CA2GxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"XRSessionProvider.d.ts","sourceRoot":"","sources":["../../src/engine/XRSessionProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,0BAA0B;IAC1B,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,GAAI,6BAGxB,sBAAsB,8BAcxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,2 +1,4 @@
1
+ export { default as useXRStore, getXRStore, subscribeToXRStore, } from './useXRStore';
1
2
  export { default as XR } from './XR';
3
+ export type { XRStore, XRStoreActions, XRStoreState } from './useXRStore';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AAErC,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { Backend, CameraSource } from 'lib/types/engine';
2
+ import { Camera, Scene, WebGLRenderer } from 'three';
3
+ export declare const SESSION_TYPES: {
4
+ readonly FIDUCIAL: "FiducialSession";
5
+ readonly GEOLOCATION: "GeolocationSession";
6
+ };
7
+ export type XRSessionType = (typeof SESSION_TYPES)[keyof typeof SESSION_TYPES];
8
+ export interface XRStoreState {
9
+ /** Camera source type. */
10
+ camera: CameraSource;
11
+ /** Shared video element when using video camera source. */
12
+ video?: HTMLVideoElement | null;
13
+ /** Active backends registered by sessions. */
14
+ backends: Backend[];
15
+ /** Active session types for compatibility checking. */
16
+ sessionTypes: Set<XRSessionType>;
17
+ }
18
+ export interface XRStoreActions {
19
+ /** Register a backend (called by sessions). */
20
+ registerBackend: (backend: Backend, threeRefs: {
21
+ scene: Scene;
22
+ camera: Camera;
23
+ renderer: WebGLRenderer;
24
+ }, sessionType?: XRSessionType) => Promise<void>;
25
+ /** Unregister a backend (called by sessions). */
26
+ unregisterBackend: (backend: Backend, sessionType?: XRSessionType) => void;
27
+ /** Set camera source. */
28
+ setCameraSource: (camera: CameraSource) => void;
29
+ /** Set shared video element. */
30
+ setVideo: (video: HTMLVideoElement | null) => void;
31
+ /** Update all registered backends (called per frame). */
32
+ updateBackends: (dt?: number) => void;
33
+ }
34
+ export type XRStore = XRStoreState & XRStoreActions;
35
+ declare const useXRStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<XRStore>, "subscribe"> & {
36
+ subscribe: {
37
+ (listener: (selectedState: XRStore, previousSelectedState: XRStore) => void): () => void;
38
+ <U>(selector: (state: XRStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
39
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
40
+ fireImmediately?: boolean;
41
+ } | undefined): () => void;
42
+ };
43
+ }>;
44
+ export declare const getXRStore: () => XRStore;
45
+ export declare const subscribeToXRStore: {
46
+ (listener: (selectedState: XRStore, previousSelectedState: XRStore) => void): () => void;
47
+ <U>(selector: (state: XRStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
48
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
49
+ fireImmediately?: boolean;
50
+ } | undefined): () => void;
51
+ };
52
+ export default useXRStore;
53
+ //# sourceMappingURL=useXRStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useXRStore.d.ts","sourceRoot":"","sources":["../../src/engine/useXRStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,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,uDAAuD;IACvD,YAAY,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,eAAe,EAAE,CACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,aAAa,CAAA;KAAE,EACpE,WAAW,CAAC,EAAE,aAAa,KACxB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,iDAAiD;IACjD,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3E,yBAAyB;IACzB,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,gCAAgC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,yDAAyD;IACzD,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,cAAc,CAAC;AAEpD,QAAA,MAAM,UAAU;;;;;;;;EA0Ff,CAAC;AAGF,eAAO,MAAM,UAAU,eAA8B,CAAC;AACtD,eAAO,MAAM,kBAAkB;;;;;;CAAuB,CAAC;AAEvD,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiducialAnchor.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialAnchor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/C,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,8EAOrB,mBAAmB,4CA+HrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FiducialAnchor.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialAnchor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,8EAOrB,mBAAmB,4CA+HrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { FiducialSessionOptions } from 'fiducial';
2
+ import { PropsWithChildren } from 'react';
3
3
  export interface FiducialSessionProps extends PropsWithChildren {
4
4
  /** Fiducial session options. */
5
5
  options?: FiducialSessionOptions;
@@ -9,7 +9,7 @@ export interface FiducialSessionProps extends PropsWithChildren {
9
9
  * Registers with the XR session provider and provides AR.js marker tracking capabilities.
10
10
  */
11
11
  declare const FiducialSession: {
12
- ({ options, children }: FiducialSessionProps): import("react/jsx-runtime").JSX.Element;
12
+ ({ options, children }: FiducialSessionProps): import('react').ReactNode;
13
13
  sessionType: string;
14
14
  };
15
15
  export default FiducialSession;
@@ -1 +1 @@
1
- {"version":3,"file":"FiducialSession.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gCAAgC;IAChC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe;4BAA2B,oBAAoB;;CAwCnE,CAAC;AAKF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"FiducialSession.d.ts","sourceRoot":"","sources":["../../src/fiducial/FiducialSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gCAAgC;IAChC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe;4BAA2B,oBAAoB;;CA6CnE,CAAC;AAKF,eAAe,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { XRBackend } from 'lib/types/xr';
1
+ import { Backend } from 'lib/types/engine';
2
2
  export interface FiducialSessionOptions {
3
3
  /** Input source type. */
4
4
  sourceType?: "webcam" | "image" | "video";
@@ -14,6 +14,6 @@ export interface FiducialSessionOptions {
14
14
  /**
15
15
  * Create a fiducial marker-based AR backend.
16
16
  */
17
- declare const createFiducialBackend: (options: unknown) => XRBackend;
17
+ declare const createFiducialBackend: (options: unknown) => Backend;
18
18
  export default createFiducialBackend;
19
19
  //# sourceMappingURL=fiducialBackend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fiducialBackend.d.ts","sourceRoot":"","sources":["../../src/fiducial/fiducialBackend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAOjE,MAAM,WAAW,sBAAsB;IACrC,yBAAyB;IACzB,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC1C,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,aAAa,CAAC,EAAE,OAAO,GAAG,kBAAkB,GAAG,MAAM,GAAG,iBAAiB,CAAC;IAC1E,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,cAAc,CAAC,EACX,KAAK,GACL,eAAe,GACf,cAAc,GACd,KAAK,GACL,gBAAgB,GAChB,gBAAgB,CAAC;CACtB;AAED;;GAEG;AACH,QAAA,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,SA4JjD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"fiducialBackend.d.ts","sourceRoot":"","sources":["../../src/fiducial/fiducialBackend.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE,MAAM,WAAW,sBAAsB;IACrC,yBAAyB;IACzB,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC1C,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,aAAa,CAAC,EAAE,OAAO,GAAG,kBAAkB,GAAG,MAAM,GAAG,iBAAiB,CAAC;IAC1E,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,cAAc,CAAC,EACX,KAAK,GACL,eAAe,GACf,cAAc,GACd,KAAK,GACL,gBAAgB,GAChB,gBAAgB,CAAC;CACtB;AAWD;;GAEG;AACH,QAAA,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,OA0JjD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { default as FiducialAnchor } from './FiducialAnchor';
2
2
  export { default as FiducialSession } from './FiducialSession';
3
- export type { FiducialSessionProps } from './FiducialSession';
4
3
  export { default as createFiducialBackend } from './fiducialBackend';
4
+ export type { FiducialSessionProps } from './FiducialSession';
5
5
  export type { FiducialSessionOptions } from './fiducialBackend';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fiducial/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACrE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fiducial/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAErE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GeolocationAnchor.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationAnchor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AA6B/C,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,wFAAwF;IACxF,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,+BAA+B;IAE/B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,QAAA,MAAM,iBAAiB,GAAI,oFAQxB,sBAAsB,gCAqMxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"GeolocationAnchor.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationAnchor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AA6B/C,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,wFAAwF;IACxF,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,+BAA+B;IAE/B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,QAAA,MAAM,iBAAiB,GAAI,oFAQxB,sBAAsB,gCAqMxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { GeolocationSessionOptions } from 'geolocation';
2
+ import { PropsWithChildren } from 'react';
3
3
  export interface GeolocationSessionProps extends PropsWithChildren {
4
4
  /** Geolocation session options. */
5
5
  options?: GeolocationSessionOptions;
@@ -9,7 +9,7 @@ export interface GeolocationSessionProps extends PropsWithChildren {
9
9
  * Registers with the XR session provider and provides LocAR.js geolocation capabilities.
10
10
  */
11
11
  declare const GeolocationSession: {
12
- ({ options, children }: GeolocationSessionProps): import("react/jsx-runtime").JSX.Element;
12
+ ({ options, children }: GeolocationSessionProps): import('react').ReactNode;
13
13
  sessionType: string;
14
14
  };
15
15
  export default GeolocationSession;
@@ -1 +1 @@
1
- {"version":3,"file":"GeolocationSession.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG7D,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,mCAAmC;IACnC,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB;4BAA2B,uBAAuB;;CAyCzE,CAAC;AAKF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"GeolocationSession.d.ts","sourceRoot":"","sources":["../../src/geolocation/GeolocationSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,mCAAmC;IACnC,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB;4BAA2B,uBAAuB;;CA8CzE,CAAC;AAKF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { XRBackend } from 'lib/types/xr';
1
+ import { Backend } from 'lib/types/engine';
2
2
  /**
3
3
  * Options for the geolocation backend.
4
4
  */
@@ -13,6 +13,6 @@ export interface GeolocationSessionOptions {
13
13
  /**
14
14
  * Create a location-based AR backend.
15
15
  */
16
- declare const createGeolocationBackend: (options: unknown) => XRBackend;
16
+ declare const createGeolocationBackend: (options: unknown) => Backend;
17
17
  export default createGeolocationBackend;
18
18
  //# sourceMappingURL=geolocationBackend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geolocationBackend.d.ts","sourceRoot":"","sources":["../../src/geolocation/geolocationBackend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAIjE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;CAC5C;AAED;;GAEG;AACH,QAAA,MAAM,wBAAwB,GAAI,SAAS,OAAO,KAAG,SAqKpD,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"geolocationBackend.d.ts","sourceRoot":"","sources":["../../src/geolocation/geolocationBackend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAGjE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;CAC5C;AAED;;GAEG;AACH,QAAA,MAAM,wBAAwB,GAAI,SAAS,OAAO,KAAG,OAqKpD,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { default as GeolocationAnchor } from './GeolocationAnchor';
2
2
  export { default as GeolocationSession } from './GeolocationSession';
3
- export type { GeolocationSessionProps } from './GeolocationSession';
4
3
  export { default as createGeolocationBackend } from './geolocationBackend';
4
+ export type { GeolocationSessionProps } from './GeolocationSession';
5
5
  export type { GeolocationSessionOptions } from './geolocationBackend';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/geolocation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC3E,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/geolocation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}