homeflowjs 1.0.10 → 1.0.12

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.
@@ -157,8 +157,8 @@ export const postBulkPropertyExposureCreation = (payload) => () => {
157
157
  contentType = { 'Content-Type': 'application/json' };
158
158
  body = JSON.stringify({ property_ids: propertyIds, domain, event_type: eventType });
159
159
  }
160
-
161
- headers = {
160
+
161
+ headers = {
162
162
  ...headers,
163
163
  ...contentType
164
164
  };
@@ -177,6 +177,7 @@ export const loadNext = () => (dispatch, getState) => {
177
177
  let newProperties = [...getState().properties.properties];
178
178
  const nextPageSearch = { ...getState().search.initialSearch };
179
179
  const currentPageNumber = getState()?.properties?.pagination?.current_page;
180
+ const branch = Homeflow.get('branch');
180
181
 
181
182
  addToLoadedPages(currentPageNumber);
182
183
 
@@ -184,6 +185,7 @@ export const loadNext = () => (dispatch, getState) => {
184
185
  const highestPageLoaded = sortedLoadedPages ? sortedLoadedPages[sortedLoadedPages?.length - 1] : null;
185
186
 
186
187
  if (nextPageSearch?.place?.place_id) nextPageSearch.placeId = nextPageSearch?.place?.place_id;
188
+ if (branch?.branch_id) nextPageSearch.branch_id = branch.branch_id;
187
189
 
188
190
  nextPageSearch.page = highestPageLoaded ? highestPageLoaded + 1 : 2;
189
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -109,6 +109,7 @@ class LocationInput extends Component {
109
109
  clearButtonClassName,
110
110
  pattern,
111
111
  name,
112
+ required,
112
113
  } = this.props;
113
114
 
114
115
  const inputProps = {
@@ -116,6 +117,7 @@ class LocationInput extends Component {
116
117
  placeholder,
117
118
  value: q,
118
119
  name,
120
+ required,
119
121
  onChange: this.onLocationChange,
120
122
  };
121
123
 
@@ -163,6 +165,7 @@ LocationInput.propTypes = {
163
165
  clearButton: PropTypes.bool,
164
166
  clearButtonClassName: PropTypes.string,
165
167
  name: PropTypes.string,
168
+ required: PropTypes.bool,
166
169
  };
167
170
 
168
171
  LocationInput.defaultProps = {
@@ -174,6 +177,7 @@ LocationInput.defaultProps = {
174
177
  clearButton: false,
175
178
  clearButtonClassName: '',
176
179
  name: 'Location search',
180
+ required: false,
177
181
  };
178
182
 
179
183
  const mapStateToProps = (state) => ({