@mapfirst.ai/react 0.0.72 → 0.0.74
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1471,6 +1471,9 @@ function useMapFirst(options) {
|
|
|
1471
1471
|
setState((prev) => ({ ...prev, isFlyToAnimating: animating }));
|
|
1472
1472
|
forwardCallback(optionsRef, "onIsFlyToAnimatingChange", animating);
|
|
1473
1473
|
};
|
|
1474
|
+
cb.onError = (error, context) => {
|
|
1475
|
+
forwardCallback(optionsRef, "onError", error, context);
|
|
1476
|
+
};
|
|
1474
1477
|
return () => {
|
|
1475
1478
|
var _a;
|
|
1476
1479
|
const existingCb = callbacksRef.current;
|
package/dist/index.mjs
CHANGED
|
@@ -1431,6 +1431,9 @@ function useMapFirst(options) {
|
|
|
1431
1431
|
setState((prev) => ({ ...prev, isFlyToAnimating: animating }));
|
|
1432
1432
|
forwardCallback(optionsRef, "onIsFlyToAnimatingChange", animating);
|
|
1433
1433
|
};
|
|
1434
|
+
cb.onError = (error, context) => {
|
|
1435
|
+
forwardCallback(optionsRef, "onError", error, context);
|
|
1436
|
+
};
|
|
1434
1437
|
return () => {
|
|
1435
1438
|
var _a;
|
|
1436
1439
|
const existingCb = callbacksRef.current;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapfirst.ai/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"description": "React hooks for MapFirst SDK - Reactive state management for map properties",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": ">=17"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mapfirst.ai/core": "0.0.
|
|
43
|
+
"@mapfirst.ai/core": "0.0.65"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.tsx --format esm,cjs --dts --clean"
|