@mapfirst.ai/react 0.0.72 → 0.0.73

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 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.72",
3
+ "version": "0.0.73",
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",