@reactables/examples 0.5.4-alpha.0 → 0.7.0-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ var initialState = {
115
115
  };
116
116
  var RxEventTickets = function (getPriceApi) {
117
117
  // Create a reactable for the controls
118
- var rxControls = core.RxBuilder({
118
+ var _a = core.RxBuilder({
119
119
  initialState: {
120
120
  selectedEvent: exports.EventTypes.ChiliCookOff,
121
121
  qty: 0
@@ -130,11 +130,11 @@ var RxEventTickets = function (getPriceApi) {
130
130
  return (__assign(__assign({}, state), { qty: payload }));
131
131
  }
132
132
  }
133
- });
133
+ }), rxControlsState$ = _a[0], rxControlsActions = _a[1];
134
134
  // Create reactable for combining controls and price info.
135
135
  var state$ = core.RxBuilder({
136
136
  // Add control changes as a source for second reactable
137
- sources: { controlChange: rxControls.state$ },
137
+ sources: { controlChange: rxControlsState$ },
138
138
  initialState: initialState,
139
139
  reducers: {
140
140
  controlChange: {
@@ -158,11 +158,8 @@ var RxEventTickets = function (getPriceApi) {
158
158
  return (__assign(__assign({}, state), { calculating: false, price: payload }));
159
159
  }
160
160
  }
161
- }).state$;
162
- return {
163
- state$: state$,
164
- actions: rxControls.actions
165
- };
161
+ })[0];
162
+ return [state$, rxControlsActions];
166
163
  };
167
164
 
168
165
  exports.RxCounter = RxCounter;
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "author": "David Lai",
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
- "@reactables/core": "^0.5.4-alpha.0"
17
+ "@reactables/core": "^0.7.0-alpha.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "rxjs": "^6.0.0 || ^7.0.0"
21
21
  },
22
- "version": "0.5.4-alpha.0"
22
+ "version": "0.7.0-alpha.0"
23
23
  }