@spothero/ui 13.10.0-beta.2 → 13.10.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.
- package/CHANGELOG.md +14 -0
- package/CHANGELOG.tmp +7 -3
- package/backlog/GooglePlacesSearchInput/GooglePlacesSearchInput.js +5 -3
- package/package.json +1 -1
- package/styles/GooglePlacesSearchInput/GooglePlacesSearchInput.jsx +6 -13
- package/v1/index-bundled-cjs/index.js +1 -1
- package/v1/index-bundled-cjs/index.js.map +1 -1
- package/v1/index-bundled-esm/index.js +1 -1
- package/v1/index-bundled-esm/index.js.map +1 -1
- package/v1/index-unbundled-cjs/index.js +35 -35
- package/v1/index-unbundled-esm/index.js +35 -35
- package/v2/index-bundled-cjs/{ImageCarousel-e8e079e8.js → ImageCarousel-c8dddbb1.js} +2 -2
- package/v2/index-bundled-cjs/{ImageCarousel-e8e079e8.js.map → ImageCarousel-c8dddbb1.js.map} +1 -1
- package/v2/index-bundled-cjs/{index-e7e488ba.js → index-7c73c07d.js} +4 -4
- package/v2/index-bundled-cjs/{index-e7e488ba.js.map → index-7c73c07d.js.map} +1 -1
- package/v2/index-bundled-cjs/index.js +1 -1
- package/v2/index-bundled-esm/{ImageCarousel-64780662.js → ImageCarousel-dc224d64.js} +2 -2
- package/v2/index-bundled-esm/{ImageCarousel-64780662.js.map → ImageCarousel-dc224d64.js.map} +1 -1
- package/v2/index-bundled-esm/{index-0fa0fa5c.js → index-7ef77e69.js} +4 -4
- package/v2/index-bundled-esm/{index-0fa0fa5c.js.map → index-7ef77e69.js.map} +1 -1
- package/v2/index-bundled-esm/index.js +1 -1
- package/v2/index-unbundled-cjs/{ImageCarousel-bc41393b.js → ImageCarousel-325df0c4.js} +4 -4
- package/v2/index-unbundled-cjs/{ImageCarousel-bc41393b.js.map → ImageCarousel-325df0c4.js.map} +1 -1
- package/v2/index-unbundled-cjs/{index-beb87ca2.js → index-093f8806.js} +148 -148
- package/v2/index-unbundled-cjs/{index-beb87ca2.js.map → index-093f8806.js.map} +1 -1
- package/v2/index-unbundled-cjs/index.js +1 -1
- package/v2/index-unbundled-esm/{ImageCarousel-d3597a8c.js → ImageCarousel-653f3259.js} +4 -4
- package/v2/index-unbundled-esm/{ImageCarousel-d3597a8c.js.map → ImageCarousel-653f3259.js.map} +1 -1
- package/v2/index-unbundled-esm/{index-0ea45e07.js → index-1c95808d.js} +148 -148
- package/v2/index-unbundled-esm/{index-0ea45e07.js.map → index-1c95808d.js.map} +1 -1
- package/v2/index-unbundled-esm/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# 13.10.0 - 02/28/2022
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
* [[39d3b1d](https://github.com/spothero/fe-ui/commit/39d3b1d)] - DRAC-365 - Updated Autocomplete to accept biasing options ([#269](https://github.com/spothero/fe-ui/pull/269)) (Nathan Caraker)
|
|
5
|
+
* `feat:` Updated Autocomplete to accept biasing options
|
|
6
|
+
* `chore:` Updated PropTypes for geolocation biasing
|
|
7
|
+
* `chore:` Updated location options
|
|
8
|
+
* `chore:` Added logging for suggestions, and added origin to biasing options
|
|
9
|
+
|
|
10
|
+
# 13.10.0-beta.3 - 02/22/2022
|
|
11
|
+
|
|
12
|
+
## Miscellaneous Updates
|
|
13
|
+
* [[2437627](https://github.com/spothero/fe-ui/commit/2437627)] - `chore:` Reworked proptypes and location biasing (Nathan)
|
|
14
|
+
|
|
1
15
|
# 13.10.0-beta.2 - 02/22/2022
|
|
2
16
|
|
|
3
17
|
## Miscellaneous Updates
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
# 13.10.0
|
|
1
|
+
# 13.10.0 - 02/28/2022
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
* [[
|
|
3
|
+
## New Features
|
|
4
|
+
* [[39d3b1d](https://github.com/spothero/fe-ui/commit/39d3b1d)] - DRAC-365 - Updated Autocomplete to accept biasing options ([#269](https://github.com/spothero/fe-ui/pull/269)) (Nathan Caraker)
|
|
5
|
+
* `feat:` Updated Autocomplete to accept biasing options
|
|
6
|
+
* `chore:` Updated PropTypes for geolocation biasing
|
|
7
|
+
* `chore:` Updated location options
|
|
8
|
+
* `chore:` Added logging for suggestions, and added origin to biasing options
|
|
5
9
|
|
|
@@ -145,6 +145,8 @@ var GooglePlacesSearchInput = /*#__PURE__*/function (_Component) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "_searchSuggestions", function (value) {
|
|
148
|
+
var _biasOptions$location, _biasOptions$location2, _biasOptions$location3, _biasOptions$location4;
|
|
149
|
+
|
|
148
150
|
var _this$props = _this.props,
|
|
149
151
|
country = _this$props.country,
|
|
150
152
|
types = _this$props.types,
|
|
@@ -162,10 +164,10 @@ var GooglePlacesSearchInput = /*#__PURE__*/function (_Component) {
|
|
|
162
164
|
}
|
|
163
165
|
}), types && {
|
|
164
166
|
types: types
|
|
165
|
-
}),
|
|
166
|
-
location: new _this._gmaps.LatLng(location.latitude, location.longitude),
|
|
167
|
+
}), biasOptions && {
|
|
168
|
+
location: new _this._gmaps.LatLng(biasOptions === null || biasOptions === void 0 ? void 0 : (_biasOptions$location = biasOptions.location) === null || _biasOptions$location === void 0 ? void 0 : _biasOptions$location.latitude, biasOptions === null || biasOptions === void 0 ? void 0 : (_biasOptions$location2 = biasOptions.location) === null || _biasOptions$location2 === void 0 ? void 0 : _biasOptions$location2.longitude),
|
|
167
169
|
radius: biasOptions === null || biasOptions === void 0 ? void 0 : biasOptions.radius,
|
|
168
|
-
origin: new _this._gmaps.LatLng(location.latitude, location.longitude)
|
|
170
|
+
origin: new _this._gmaps.LatLng(biasOptions === null || biasOptions === void 0 ? void 0 : (_biasOptions$location3 = biasOptions.location) === null || _biasOptions$location3 === void 0 ? void 0 : _biasOptions$location3.latitude, biasOptions === null || biasOptions === void 0 ? void 0 : (_biasOptions$location4 = biasOptions.location) === null || _biasOptions$location4 === void 0 ? void 0 : _biasOptions$location4.longitude)
|
|
169
171
|
}), {}, {
|
|
170
172
|
sessionToken: autocompleteSessionToken
|
|
171
173
|
});
|
package/package.json
CHANGED
|
@@ -37,14 +37,7 @@ export default class GooglePlacesSearchInput extends Component {
|
|
|
37
37
|
longitude: PropTypes.number,
|
|
38
38
|
}),
|
|
39
39
|
/** The radius, in meters, to bias the search results within - required when providing a location for biasing */
|
|
40
|
-
radius:
|
|
41
|
-
props.biasOptions.location.latitude &&
|
|
42
|
-
props.biasOptions.location.longitude &&
|
|
43
|
-
(Boolean(props[propName]) === false ||
|
|
44
|
-
typeof props[propName] !== 'number') &&
|
|
45
|
-
new Error(
|
|
46
|
-
'A radius value is required when biasing autocomplete suggestions'
|
|
47
|
-
),
|
|
40
|
+
radius: PropTypes.number,
|
|
48
41
|
}),
|
|
49
42
|
};
|
|
50
43
|
static defaultProps = {
|
|
@@ -145,15 +138,15 @@ export default class GooglePlacesSearchInput extends Component {
|
|
|
145
138
|
},
|
|
146
139
|
}),
|
|
147
140
|
...(types && {types}),
|
|
148
|
-
...(biasOptions
|
|
141
|
+
...(biasOptions && {
|
|
149
142
|
location: new this._gmaps.LatLng(
|
|
150
|
-
location
|
|
151
|
-
location
|
|
143
|
+
biasOptions?.location?.latitude,
|
|
144
|
+
biasOptions?.location?.longitude
|
|
152
145
|
),
|
|
153
146
|
radius: biasOptions?.radius,
|
|
154
147
|
origin: new this._gmaps.LatLng(
|
|
155
|
-
location
|
|
156
|
-
location
|
|
148
|
+
biasOptions?.location?.latitude,
|
|
149
|
+
biasOptions?.location?.longitude
|
|
157
150
|
),
|
|
158
151
|
}),
|
|
159
152
|
sessionToken: autocompleteSessionToken,
|