@neurodyn/react-ar 0.0.10 → 0.0.12

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.
@@ -1,9 +1,9 @@
1
1
  import { Canvas, advance, createPortal, useFrame, useThree } from "@react-three/fiber";
2
2
  import { useGLTF, useProgress } from "@react-three/drei";
3
3
  import { HDRLoader } from "three/examples/jsm/loaders/HDRLoader.js";
4
- export const __rspack_esm_id = "199";
4
+ export const __rspack_esm_id = "110";
5
5
  export const __rspack_esm_ids = [
6
- "199"
6
+ "110"
7
7
  ];
8
8
  export const __webpack_modules__ = {
9
9
  "./src/root.tsx" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
@@ -6647,17 +6647,6 @@ export const __webpack_modules__ = {
6647
6647
  });
6648
6648
  return (response.cats ?? []).map(toCatalogCategory).filter((category)=>Boolean(category)).sort(compareCategories);
6649
6649
  }
6650
- async function layoutGetConfig(data, config = {}) {
6651
- const { client: request = client_client, ...requestConfig } = config;
6652
- const requestData = data;
6653
- const res = await request({
6654
- method: "POST",
6655
- url: "/layout/GetConfig",
6656
- data: requestData,
6657
- ...requestConfig
6658
- });
6659
- return res.data;
6660
- }
6661
6650
  const DEFAULT_AR_ENVIRONMENT_HDR_URL = 'https://cdn.neurodyn.ai/hdr/modern_bathroom_1k.hdr';
6662
6651
  const AR_ENVIRONMENT_LINK_TYPE = 'hdr_neutral';
6663
6652
  function isHttpUrl(value) {
@@ -6683,8 +6672,8 @@ export const __webpack_modules__ = {
6683
6672
  }
6684
6673
  async function fetchArEnvironmentUrl(options) {
6685
6674
  try {
6686
- const config = await layoutGetConfig(void 0, {
6687
- baseURL: options.legacyBaseURL,
6675
+ const config = await (0, gen_node.b6)(void 0, {
6676
+ baseURL: options.nodeBaseURL,
6688
6677
  signal: options.signal
6689
6678
  });
6690
6679
  return extractArEnvironmentUrl(config) ?? DEFAULT_AR_ENVIRONMENT_HDR_URL;
package/dist/index.js CHANGED
@@ -18111,6 +18111,7 @@ var __webpack_modules__ = {
18111
18111
  "../api/dist/gen/node/index.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
18112
18112
  __webpack_require__.d(__webpack_exports__, {
18113
18113
  hov: ()=>legacyAccountControllerSearch,
18114
+ b6: ()=>layoutControllerReadLayoutConfig,
18114
18115
  MNX: ()=>publicApiControllerIssueWidgetToken,
18115
18116
  ytc: ()=>publicApiControllerReadObjectByTinuuid,
18116
18117
  avi: ()=>publicApiControllerGetPublicObjects,
@@ -18136,6 +18137,19 @@ var __webpack_modules__ = {
18136
18137
  return requestNodeRuntime(config);
18137
18138
  }
18138
18139
  __webpack_require__("@tanstack/react-query");
18140
+ async function layoutControllerReadLayoutConfig(headers, config = {}) {
18141
+ const { client: request = node_client_node_client, ...requestConfig } = config;
18142
+ const res = await request({
18143
+ method: "POST",
18144
+ url: "/layout/GetConfig",
18145
+ ...requestConfig,
18146
+ headers: {
18147
+ ...headers,
18148
+ ...requestConfig.headers
18149
+ }
18150
+ });
18151
+ return res.data;
18152
+ }
18139
18153
  async function legacyAccountControllerSearch(data, config = {}) {
18140
18154
  const { client: request = node_client_node_client, ...requestConfig } = config;
18141
18155
  const requestData = data;
@@ -18230,8 +18244,8 @@ __webpack_require__.m = __webpack_modules__;
18230
18244
  })();
18231
18245
  (()=>{
18232
18246
  __webpack_require__.u = (chunkId)=>"" + chunkId + "." + ({
18233
- 191: "b62a8c99d7285005",
18234
- 199: "fb8c6dab169d5e2c"
18247
+ 110: "f02405b69058e0d1",
18248
+ 191: "b62a8c99d7285005"
18235
18249
  })[chunkId] + ".js";
18236
18250
  })();
18237
18251
  (()=>{
@@ -18321,7 +18335,7 @@ function prewarmArSession({ backend } = {}) {
18321
18335
  requestArMotionPermission();
18322
18336
  Promise.all([
18323
18337
  __webpack_require__.e("191"),
18324
- __webpack_require__.e("199")
18338
+ __webpack_require__.e("110")
18325
18339
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/root.tsx")).catch(()=>void 0);
18326
18340
  if ((backend ?? (0, backend_policy.HE)()) !== '8thwall') return;
18327
18341
  Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/ar/tracker/eighth-wall-surface-tracker.ts")).then(({ loadEighthWallEngine })=>loadEighthWallEngine()).catch(()=>void 0);
@@ -18715,7 +18729,7 @@ const shadowRootCssText = createShadowRootCssText(styleinline.A);
18715
18729
  const ArExperience = /*#__PURE__*/ (0, external_react_.lazy)(async ()=>({
18716
18730
  default: (await Promise.all([
18717
18731
  __webpack_require__.e("191"),
18718
- __webpack_require__.e("199")
18732
+ __webpack_require__.e("110")
18719
18733
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/root.tsx"))).ArExperience
18720
18734
  }));
18721
18735
  const ModelViewerDialog = /*#__PURE__*/ (0, external_react_.lazy)(async ()=>({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neurodyn/react-ar",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "//sideEffects": "Lets a consumer that only wants the platform helpers off the barrel drop the scene and three.js instead of shipping them. The exceptions are the two modules that really do run on import: stylesheets, and the i18n instance that configures itself.",
6
6
  "sideEffects": [
7
7
  "*.css",
@@ -39,7 +39,7 @@
39
39
  "react-shadow": "^20.6.0",
40
40
  "three": "^0.185.1",
41
41
  "ua-parser-js": "^2.0.9",
42
- "@neurodyn/react-model-viewer": "0.0.11"
42
+ "@neurodyn/react-model-viewer": "0.0.13"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.58.0",