orc-shared 1.7.0-dev.3 → 1.7.0-dev.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.
@@ -159,6 +159,8 @@ var Autocomplete = function Autocomplete(_ref) {
159
159
  openText: null,
160
160
  closeText: null,
161
161
  clearText: null,
162
+ noOptionsText: null,
163
+ loadingText: null,
162
164
  classes: {
163
165
  paper: classes.selectPaper,
164
166
  popupIndicator: classes.popupIndicator,
@@ -142,7 +142,7 @@ var viewStateReducer = function viewStateReducer(state, action) {
142
142
  }
143
143
  case _scopes.APPLICATION_SCOPE_HAS_CHANGED:
144
144
  {
145
- return state.remove("edit");
145
+ return initialState;
146
146
  }
147
147
  default:
148
148
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-shared",
3
- "version": "1.7.0-dev.3",
3
+ "version": "1.7.0-dev.5",
4
4
  "description": "Shared code for Orckestra applications",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
@@ -63,7 +63,7 @@
63
63
  "prettier --write"
64
64
  ],
65
65
  "*.js": [
66
- "eslint"
66
+ "eslint --max-warnings=0"
67
67
  ],
68
68
  "./src/translations/*.json": [
69
69
  "npx orc-scripts validateTranslations"
@@ -128,6 +128,8 @@ const Autocomplete = ({ id, options, autocompleteProps }) => {
128
128
  openText={null}
129
129
  closeText={null}
130
130
  clearText={null}
131
+ noOptionsText={null}
132
+ loadingText={null}
131
133
  classes={{
132
134
  paper: classes.selectPaper,
133
135
  popupIndicator: classes.popupIndicator,
@@ -67,6 +67,8 @@ describe("Autocomplete Component", () => {
67
67
  openText={null}
68
68
  closeText={null}
69
69
  clearText={null}
70
+ noOptionsText={null}
71
+ loadingText={null}
70
72
  renderInput={params => (
71
73
  <TextField
72
74
  {...params}
@@ -115,6 +117,8 @@ describe("Autocomplete Component", () => {
115
117
  openText={null}
116
118
  closeText={null}
117
119
  clearText={null}
120
+ noOptionsText={null}
121
+ loadingText={null}
118
122
  renderInput={params => (
119
123
  <TextField
120
124
  {...params}
@@ -165,6 +169,8 @@ describe("Autocomplete Component", () => {
165
169
  openText={null}
166
170
  closeText={null}
167
171
  clearText={null}
172
+ noOptionsText={null}
173
+ loadingText={null}
168
174
  renderInput={params => (
169
175
  <TextField
170
176
  {...params}
@@ -100,7 +100,7 @@ const viewStateReducer = (state = initialState, action) => {
100
100
  return state;
101
101
  }
102
102
  case APPLICATION_SCOPE_HAS_CHANGED: {
103
- return state.remove("edit");
103
+ return initialState;
104
104
  }
105
105
  default:
106
106
  return state;
@@ -522,14 +522,7 @@ describe("View state reducer", () => {
522
522
  });
523
523
  const action = applicationScopeHasChanged("oldScope", "newScope");
524
524
  const newState = viewReducer(oldState, action);
525
- return expect(newState, "not to be", oldState).and(
526
- "to exhaustively satisfy",
527
- Immutable.fromJS({
528
- anotherKey: {
529
- id: "ThisValueShouldRemain",
530
- },
531
- }),
532
- );
525
+ return expect(newState, "not to be", oldState).and("to exhaustively satisfy", Immutable.fromJS({}));
533
526
  });
534
527
 
535
528
  it("Removes edit model field correctly", () => {