@awes-io/ui 2.145.8 → 2.145.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.145.9](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.8...@awes-io/ui@2.145.9) (2026-11-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui:** log why the address timezone came back empty ([abcebd2](https://github.com/awes-io/client/commit/abcebd250d8f25de0e6e16114799e816de0c0215))
12
+ * **ui:** tel field survives a country change with an empty value ([a2893c5](https://github.com/awes-io/client/commit/a2893c5e3bd8fa5f312619bc20c1b28f26d732b2))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [2.145.8](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.7...@awes-io/ui@2.145.8) (2026-11-19)
7
19
 
8
20
 
@@ -201,7 +201,7 @@ export default {
201
201
  if (iso === oldIso) return
202
202
 
203
203
  if (iso && oldIso) {
204
- const value = this.value.replace(
204
+ const value = (this.value || '').replace(
205
205
  '+' + this._getCallingCode(oldIso),
206
206
  '+' + this.callingCode
207
207
  )
@@ -278,6 +278,7 @@ export default {
278
278
 
279
279
  return place.timeZone ? place.timeZone.id : undefined
280
280
  } catch (e) {
281
+ console.warn('AwAddress: place time zone request failed', e)
281
282
  return undefined
282
283
  }
283
284
  },
@@ -293,12 +294,22 @@ export default {
293
294
  }
294
295
  })
295
296
  .then(({ data }) => {
297
+ if (data.status !== 'OK') {
298
+ console.warn(
299
+ 'AwAddress: Time Zone API',
300
+ data.status,
301
+ data.errorMessage || ''
302
+ )
303
+ return { timezone: undefined, timezone_name: undefined }
304
+ }
305
+
296
306
  return {
297
307
  timezone: data.timeZoneId,
298
308
  timezone_name: data.timeZoneName
299
309
  }
300
310
  })
301
- .catch(() => {
311
+ .catch((e) => {
312
+ console.warn('AwAddress: Time Zone API request failed', e)
302
313
  return {
303
314
  timezone: undefined,
304
315
  timezone_name: undefined
@@ -129,7 +129,7 @@ This component uses `AwSelectObject` slots internally. All `AwSelectObject` slot
129
129
  - Session tokens are used for billing optimization
130
130
  - Address types are filtered (removes political, intersection, sublocality types)
131
131
  - Google branding is automatically displayed
132
- - Timezone comes from the place's `timeZone` field via `Place.fetchFields` (Places API (New)), which works with a key restricted to websites. Only when the place has no time zone does the component fall back to the Time Zone API (it rejects website-restricted keys); any failure leaves `timezone` undefined
132
+ - Timezone comes from the place's `timeZone` field via `Place.fetchFields` (Places API (New)), which works with a key restricted to websites. Only when the place has no time zone does the component fall back to the Time Zone API (it rejects website-restricted keys); any failure, including a Time Zone API answer whose `status` is not `OK`, leaves `timezone` undefined and logs the reason with `console.warn`
133
133
  - Component handles Google Maps script loading and initialization
134
134
  - Search is debounced and handled by `AwSelectObject`
135
135
  - Selected address triggers Places API details request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.145.8",
3
+ "version": "2.145.9",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -116,5 +116,5 @@
116
116
  "peerDependencies": {
117
117
  "nuxt": "^2.18.1"
118
118
  },
119
- "gitHead": "89ba4dea9d0837bac551be8e9339f8079d5cb830"
119
+ "gitHead": "6ac7859ef3e2f2c3637e97c21a253ecdde2d15e8"
120
120
  }