@texturehq/edges 1.32.0 → 1.33.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.
@@ -1267,6 +1267,18 @@ interface InteractiveMapHandle {
1267
1267
  * Get the underlying Mapbox map instance
1268
1268
  */
1269
1269
  getMap: () => MapRef | null;
1270
+ /**
1271
+ * Mark the map as user-moved so the "Reset zoom" button surfaces.
1272
+ *
1273
+ * The internal `hasUserMovedMap` flag only flips on real pointer / wheel
1274
+ * input — programmatic `flyTo` / `fitBounds` calls from consumers don't
1275
+ * trigger it, so a page that drives the camera via an in-app affordance
1276
+ * (clicking an alert row, a search result, etc.) leaves the user with
1277
+ * no way back to the default frame. Consumers should call this after
1278
+ * any programmatic camera change that the user could reasonably want
1279
+ * to undo.
1280
+ */
1281
+ markMapAsMoved: () => void;
1270
1282
  }
1271
1283
  interface InteractiveMapProps {
1272
1284
  /**
@@ -1267,6 +1267,18 @@ interface InteractiveMapHandle {
1267
1267
  * Get the underlying Mapbox map instance
1268
1268
  */
1269
1269
  getMap: () => MapRef | null;
1270
+ /**
1271
+ * Mark the map as user-moved so the "Reset zoom" button surfaces.
1272
+ *
1273
+ * The internal `hasUserMovedMap` flag only flips on real pointer / wheel
1274
+ * input — programmatic `flyTo` / `fitBounds` calls from consumers don't
1275
+ * trigger it, so a page that drives the camera via an in-app affordance
1276
+ * (clicking an alert row, a search result, etc.) leaves the user with
1277
+ * no way back to the default frame. Consumers should call this after
1278
+ * any programmatic camera change that the user could reasonably want
1279
+ * to undo.
1280
+ */
1281
+ markMapAsMoved: () => void;
1270
1282
  }
1271
1283
  interface InteractiveMapProps {
1272
1284
  /**