@ornikar/kitt-universal 25.9.3 → 25.9.5
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/utils/makeMapsApiUrl.d.ts +1 -1
- package/dist/definitions/GoogleMapsAutocompleteProvider/utils/makeMapsApiUrl.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +3 -8
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +3 -8
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +3 -8
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +1 -0
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +3 -8
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +1 -0
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +4 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +1 -0
- 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.5](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.4...@ornikar/kitt-universal@25.9.5) (2024-07-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **kitt-u/gmapautocomplete:** encode all query params in url [no issue] ([#2439](https://github.com/ornikar/kitt/issues/2439)) ([defb540](https://github.com/ornikar/kitt/commit/defb5404ca7cb3d93fe0c2a1c21aaa4886d25d04))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [25.9.4](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.3...@ornikar/kitt-universal@25.9.4) (2024-07-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* faulty iOS behavior on InputAddress [no issue] ([#2438](https://github.com/ornikar/kitt/issues/2438)) ([2c0af43](https://github.com/ornikar/kitt/commit/2c0af4367d9ba77a5ce4e427eebdfb0d4eae85ae))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [25.9.3](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.2...@ornikar/kitt-universal@25.9.3) (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,4 +1,4 @@
|
|
|
1
|
-
export type MapsApiUrlSearchParamsName = 'input' | 'language' | 'types' | '
|
|
1
|
+
export type MapsApiUrlSearchParamsName = 'input' | 'language' | 'types' | 'key' | 'place_id' | 'components';
|
|
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,GAAG,YAAY,CAAC;AAE5G,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,CAM7E"}
|
|
@@ -6264,6 +6264,7 @@ function useGoogleMapApiKey() {
|
|
|
6264
6264
|
return context;
|
|
6265
6265
|
}
|
|
6266
6266
|
|
|
6267
|
+
/** @description web-only parameter due to iOS faulty behaviour */
|
|
6267
6268
|
// Countries where we can have instructors and students
|
|
6268
6269
|
// Restricting the search of the InputAddress component
|
|
6269
6270
|
// France, Guyane Française, Guadeloupe, Martinique, Réunion
|
|
@@ -6283,13 +6284,7 @@ function makeMapsApiUrl({
|
|
|
6283
6284
|
const queryParams = params.map(({
|
|
6284
6285
|
paramsName,
|
|
6285
6286
|
value
|
|
6286
|
-
}) => {
|
|
6287
|
-
let encodedValue = value;
|
|
6288
|
-
if (paramsName === 'input') {
|
|
6289
|
-
encodedValue = encodeURIComponent(value);
|
|
6290
|
-
}
|
|
6291
|
-
return `${paramsName}=${encodedValue}`;
|
|
6292
|
-
});
|
|
6287
|
+
}) => `${paramsName}=${encodeURIComponent(value)}`);
|
|
6293
6288
|
return `https://maps.googleapis.com/maps/api/${resource}/json?` + queryParams.join('&');
|
|
6294
6289
|
}
|
|
6295
6290
|
|
|
@@ -6306,7 +6301,7 @@ function useGoogleMapsApi() {
|
|
|
6306
6301
|
value: autocompletePredictionTypes.join('|')
|
|
6307
6302
|
}, {
|
|
6308
6303
|
paramsName: 'components',
|
|
6309
|
-
value: countryCodes.map(
|
|
6304
|
+
value: countryCodes.map(country => `country:${country}`).join('|')
|
|
6310
6305
|
}];
|
|
6311
6306
|
const makeApiUrl = (resource, paramsName, param) => {
|
|
6312
6307
|
return makeMapsApiUrl({
|