@ornikar/kitt-universal 25.9.2 → 25.9.4
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 +18 -0
- package/dist/definitions/GoogleMapsAutocompleteProvider/constants/countryCodes.d.ts +1 -0
- package/dist/definitions/GoogleMapsAutocompleteProvider/constants/countryCodes.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/constants/types.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.d.ts.map +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/utils/makeMapsApiUrl.d.ts +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/utils/makeMapsApiUrl.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +1 -10
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +1 -10
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +1 -10
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +2 -1
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +1 -10
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +2 -1
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +1 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +2 -1
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [25.9.4](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.3...@ornikar/kitt-universal@25.9.4) (2024-07-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* faulty iOS behavior on InputAddress [no issue] ([#2438](https://github.com/ornikar/kitt/issues/2438)) ([2c0af43](https://github.com/ornikar/kitt/commit/2c0af4367d9ba77a5ce4e427eebdfb0d4eae85ae))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [25.9.3](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.2...@ornikar/kitt-universal@25.9.3) (2024-07-11)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* changed types to address [no issue] ([#2436](https://github.com/ornikar/kitt/issues/2436)) ([31b2cc8](https://github.com/ornikar/kitt/commit/31b2cc8cedbf5671cb271b7f9e48555f9f9f780b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [25.9.2](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.1...@ornikar/kitt-universal@25.9.2) (2024-07-11)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countryCodes.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/constants/countryCodes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"countryCodes.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/constants/countryCodes.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAKlE,eAAO,MAAM,YAAY,UAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/constants/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/constants/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,UAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGoogleMapsApi.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useGoogleMapsApi.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.ts"],"names":[],"mappings":";;AAMA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC;CAChD;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC;CAChD;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE;QACZ,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;KACtE,CAAC;IACF,aAAa,EAAE;QACb,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;KAC9D,CAAC;CACH;AAED,wBAAgB,gBAAgB,IAAI,uBAAuB,CA6D1D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MapsApiUrlSearchParamsName = 'input' | 'language' | 'types' | '
|
|
1
|
+
export type MapsApiUrlSearchParamsName = 'input' | 'language' | 'types' | 'key' | 'place_id';
|
|
2
2
|
export interface MapsApiUrlSearchParams {
|
|
3
3
|
paramsName: MapsApiUrlSearchParamsName;
|
|
4
4
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeMapsApiUrl.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/utils/makeMapsApiUrl.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"makeMapsApiUrl.d.ts","sourceRoot":"","sources":["../../../../src/GoogleMapsAutocompleteProvider/utils/makeMapsApiUrl.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;AAE7F,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,0BAA0B,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,sBAAsB,EAAE,CAAC;CAClC;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,gBAAgB,GAAG,MAAM,CAY7E"}
|
|
@@ -6264,17 +6264,11 @@ function useGoogleMapApiKey() {
|
|
|
6264
6264
|
return context;
|
|
6265
6265
|
}
|
|
6266
6266
|
|
|
6267
|
-
// Countries where we can have instructors and students
|
|
6268
|
-
// Restricting the search of the InputAddress component
|
|
6269
|
-
// France, Guyane Française, Guadeloupe, Martinique, Réunion
|
|
6270
|
-
// As of today, Google restrict this array to 5 country codes
|
|
6271
|
-
const countryCodes = ['FR', 'GF', 'GP', 'MQ', 'RE'];
|
|
6272
|
-
|
|
6273
6267
|
const defaultLanguageSearch = 'fr';
|
|
6274
6268
|
|
|
6275
6269
|
// types of result we want to allow as suggestions from the Autocomplete search
|
|
6276
6270
|
// See https://developers.google.com/maps/documentation/places/web-service/supported_types#table2 for all supported types
|
|
6277
|
-
const autocompletePredictionTypes = ['
|
|
6271
|
+
const autocompletePredictionTypes = ['address'];
|
|
6278
6272
|
|
|
6279
6273
|
function makeMapsApiUrl({
|
|
6280
6274
|
resource,
|
|
@@ -6304,9 +6298,6 @@ function useGoogleMapsApi() {
|
|
|
6304
6298
|
}, {
|
|
6305
6299
|
paramsName: 'types',
|
|
6306
6300
|
value: autocompletePredictionTypes.join('|')
|
|
6307
|
-
}, {
|
|
6308
|
-
paramsName: 'components',
|
|
6309
|
-
value: countryCodes.map(code => `country:${code}`).join('|')
|
|
6310
6301
|
}];
|
|
6311
6302
|
const makeApiUrl = (resource, paramsName, param) => {
|
|
6312
6303
|
return makeMapsApiUrl({
|