sfc-utils 1.4.54 → 1.4.55

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.
@@ -23,6 +23,8 @@ const Geocoder = ({
23
23
  filterRegion, // You need to test results, but could also pass in a neighbourhood, district, city, county, state or administrative area
24
24
  market, // Will filter by the market's state if no filterRegion provided
25
25
  resultFunc,
26
+ buttonTrackingId,
27
+ placeholder
26
28
  }) => {
27
29
  // Show a loader when we're requesting
28
30
  const [loading, setLoading] = useState(false)
@@ -179,7 +181,7 @@ const Geocoder = ({
179
181
  <input
180
182
  ref={geocoderInputRef}
181
183
  className={geocoderStyles.input}
182
- placeholder="Enter an address"
184
+ placeholder={placeholder ? placeholder : "Enter an address"}
183
185
  name="address"
184
186
  onChange={handleChange}
185
187
  value={inputValue}
@@ -207,7 +209,8 @@ const Geocoder = ({
207
209
  }}
208
210
  >
209
211
  <button
210
- className={geocoderStyles.button}
212
+ id={buttonTrackingId ? buttonTrackingId : ""}
213
+ className={buttonTrackingId ? geocoderStyles.button + " devhub-ga-tracking" : geocoderStyles.button}
211
214
  onFocus={(e) => {
212
215
  // Set index
213
216
  setActiveKeyboardIndex(i)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.54",
3
+ "version": "1.4.55",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -14,4 +14,4 @@
14
14
  "react-transition-group": "^4.4.5",
15
15
  "write": "^2.0.0"
16
16
  }
17
- }
17
+ }