@aiaiai-pt/design-system 0.63.0 → 0.63.1

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.
@@ -296,12 +296,17 @@
296
296
  // address on open).
297
297
  /** @type {string | null} */
298
298
  let initialReverseKey = null;
299
+ // The person placed a point (a map click or a search/geolocation pick). From then on a
300
+ // `value` is theirs, never an initial one: a create form opens with no value and its host
301
+ // feeds the placed point straight back as `value`, whose reverse geocode must fill the
302
+ // address (Atelier A5 on DEV, 2026-12-01: 0.63.0 dropped it).
303
+ let personPlaced = false;
299
304
 
300
305
  // Set searchCoords from initial value (triggers reverse geocode in GeoSearch)
301
306
  $effect(() => {
302
307
  if (!initialReverseDone && value) {
303
308
  searchCoords = /** @type {[number, number]} */ ([...value]);
304
- initialReverseKey = `${value[0]},${value[1]}`;
309
+ if (!personPlaced) initialReverseKey = `${value[0]},${value[1]}`;
305
310
  initialReverseDone = true;
306
311
  }
307
312
  });
@@ -320,6 +325,7 @@
320
325
  }
321
326
 
322
327
  function handleGeoLocation(lon, lat) {
328
+ personPlaced = true;
323
329
  if (!_map) return;
324
330
  const view = _map.getView();
325
331
  if (view) view.animate({ center: fromLonLat([lon, lat]), zoom: 16, duration: 400 });
@@ -336,6 +342,7 @@
336
342
 
337
343
  /** Called by MapPicker when user clicks to place a point — triggers reverse geocoding */
338
344
  function handleMapPointPlaced(lon, lat) {
345
+ personPlaced = true;
339
346
  searchCoords = [lon, lat];
340
347
  }
341
348
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/design-system",
3
- "version": "0.63.0",
3
+ "version": "0.63.1",
4
4
  "description": "Design system tokens and Svelte components for aiaiai products",
5
5
  "license": "MIT",
6
6
  "type": "module",