@vctrl/hooks 0.3.1 → 0.3.2

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.1",
2
+ "version": "0.3.2",
3
3
  "name": "@vctrl/hooks",
4
4
  "description": "vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.",
5
5
  "bugs": {
@@ -41,5 +41,15 @@
41
41
  "require": "./use-load-model.cjs.js",
42
42
  "types": "./use-load-model/index.d.ts"
43
43
  }
44
+ },
45
+ "peerDependencies": {
46
+ "react": "18.3.1"
47
+ },
48
+ "dependencies": {
49
+ "three": "^0.168.0",
50
+ "@gltf-transform/core": "^4.0.8",
51
+ "@gltf-transform/functions": "^4.0.8",
52
+ "@gltf-transform/extensions": "^4.0.8",
53
+ "meshoptimizer": "^0.21.0"
44
54
  }
45
55
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ct=require("./_commonjsHelpers-DZAafUiT.cjs");function wt(et){throw new Error('Could not dynamically require "'+et+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Et={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ct=require("./_commonjsHelpers-BKV1RZto.cjs");function wt(et){throw new Error('Could not dynamically require "'+et+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Et={exports:{}};/*!
2
2
 
3
3
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
4
  <http://stuartk.com/jszip>
@@ -1,4 +1,4 @@
1
- import { c as mt, g as Rt, G as Tt } from "./_commonjsHelpers-CT5_WOk_.js";
1
+ import { c as mt, g as Rt, G as Tt } from "./_commonjsHelpers-BbdAOH3u.js";
2
2
  function wt(et) {
3
3
  throw new Error('Could not dynamically require "' + et + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./model-context-BBYdA-gO.cjs");exports.ModelContext=e.ModelContext;exports.ModelFileTypes=e.ModelFileTypes;exports.ModelProvider=e.ModelProvider;exports.useLoadModel=e.useLoadModel;exports.useModelContext=e.useModelContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./model-context-BmfXsk0j.cjs");exports.ModelContext=e.ModelContext;exports.ModelFileTypes=e.ModelFileTypes;exports.ModelProvider=e.ModelProvider;exports.useLoadModel=e.useLoadModel;exports.useModelContext=e.useModelContext;
@@ -1,4 +1,4 @@
1
- import { a as s, M as a, b as d, u as l, c as M } from "./model-context-Bvjdyghq.js";
1
+ import { a as s, M as a, b as d, u as l, c as M } from "./model-context-qjRd1gfd.js";
2
2
  export {
3
3
  s as ModelContext,
4
4
  a as ModelFileTypes,