@salla.sa/ui-address-autocomplete-widget 0.1.0 → 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +2 -3
  2. package/dist/index.js +887 -479
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -223,8 +223,7 @@ handlePlaceSelect(event: CustomEvent) {
223
223
  | `value` | `string` | `''` | Initial/controlled value |
224
224
  | `label` | `string\|null` | `null` | Label text above input |
225
225
  | `className` | `string` | `''` | CSS class for wrapper element |
226
- | `country` | `string\|null` | `null` | Inline country filter (e.g., `"SA"` or `"SA,AE"`). Sets `includedRegionCodes` |
227
- | `includedRegionCodes` | `string[]\|null` | `null` | Restrict to specific countries (e.g., `['SA', 'AE']`). Sent as `country=SA,AE` query parameter |
226
+ | `country` | `string\|string[]\|null` | `null` | Restrict to specific countries. Accepts string (`"SA"` or `"SA,AE"`) or array (`['SA', 'AE']`) |
228
227
  | `locationBias` | `object\|null` | `null` | Bias results to location (radius + center) |
229
228
  | `locationRestriction` | `object\|null` | `null` | Restrict results to location bounds |
230
229
  | `types` | `string[]\|null` | `null` | Filter by place types (e.g., `['geocode', 'establishment']`) |
@@ -358,7 +357,7 @@ console.log(support); // { isSupported: true, countryCode: 'US' }
358
357
 
359
358
  <script>
360
359
  const autocomplete = document.getElementById('multi-country');
361
- autocomplete.includedRegionCodes = ['SA', 'AE'];
360
+ autocomplete.country = ['SA', 'AE'];
362
361
  // OR: autocomplete.country = 'SA,AE';
363
362
  </script>
364
363
  ```