@open-tender/store 0.1.293 → 0.1.295

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.
@@ -32,7 +32,7 @@ var CartUpsellItem = function (_a) {
32
32
  (0, react_1.useEffect)(function () {
33
33
  if (hasSize && !isIncomplete) {
34
34
  dispatch((0, slices_1.addItemToCart)(builtItem));
35
- dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to cart!")));
35
+ dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to order!")));
36
36
  if (callback)
37
37
  callback();
38
38
  }
@@ -19,7 +19,7 @@ var UpsellItem = function (_a) {
19
19
  var add = function () {
20
20
  if (!isIncomplete) {
21
21
  dispatch((0, slices_1.addItemToCart)(builtItem));
22
- dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to cart!")));
22
+ dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to order!")));
23
23
  if (callback)
24
24
  callback();
25
25
  }
@@ -33,7 +33,7 @@ var UpsellItem = function (_a) {
33
33
  (0, react_1.useEffect)(function () {
34
34
  if (hasSize && !isIncomplete) {
35
35
  dispatch((0, slices_1.addItemToCart)(builtItem));
36
- dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to cart!")));
36
+ dispatch((0, slices_1.showNotification)("".concat(builtItem.name, " added to order!")));
37
37
  if (callback)
38
38
  callback();
39
39
  }
@@ -754,15 +754,15 @@ var checkoutSlice = (0, toolkit_1.createSlice)({
754
754
  state.error = action.payload;
755
755
  })
756
756
  .addCase(exports.rateOrder.fulfilled, function (state, action) {
757
- state.rating = action.payload;
758
- state.loading = 'idle';
757
+ state.rate = action.payload;
758
+ state.rating = 'idle';
759
759
  state.ratingError = null;
760
760
  })
761
761
  .addCase(exports.rateOrder.pending, function (state) {
762
- state.loading = 'pending';
762
+ state.rating = 'pending';
763
763
  })
764
764
  .addCase(exports.rateOrder.rejected, function (state, action) {
765
- state.loading = 'idle';
765
+ state.rating = 'idle';
766
766
  state.ratingError = action.payload;
767
767
  });
768
768
  }
@@ -30,7 +30,7 @@ var CartUpsellItem = function (_a) {
30
30
  useEffect(function () {
31
31
  if (hasSize && !isIncomplete) {
32
32
  dispatch(addItemToCart(builtItem));
33
- dispatch(showNotification("".concat(builtItem.name, " added to cart!")));
33
+ dispatch(showNotification("".concat(builtItem.name, " added to order!")));
34
34
  if (callback)
35
35
  callback();
36
36
  }
@@ -17,7 +17,7 @@ var UpsellItem = function (_a) {
17
17
  var add = function () {
18
18
  if (!isIncomplete) {
19
19
  dispatch(addItemToCart(builtItem));
20
- dispatch(showNotification("".concat(builtItem.name, " added to cart!")));
20
+ dispatch(showNotification("".concat(builtItem.name, " added to order!")));
21
21
  if (callback)
22
22
  callback();
23
23
  }
@@ -31,7 +31,7 @@ var UpsellItem = function (_a) {
31
31
  useEffect(function () {
32
32
  if (hasSize && !isIncomplete) {
33
33
  dispatch(addItemToCart(builtItem));
34
- dispatch(showNotification("".concat(builtItem.name, " added to cart!")));
34
+ dispatch(showNotification("".concat(builtItem.name, " added to order!")));
35
35
  if (callback)
36
36
  callback();
37
37
  }
@@ -750,15 +750,15 @@ var checkoutSlice = createSlice({
750
750
  state.error = action.payload;
751
751
  })
752
752
  .addCase(rateOrder.fulfilled, function (state, action) {
753
- state.rating = action.payload;
754
- state.loading = 'idle';
753
+ state.rate = action.payload;
754
+ state.rating = 'idle';
755
755
  state.ratingError = null;
756
756
  })
757
757
  .addCase(rateOrder.pending, function (state) {
758
- state.loading = 'pending';
758
+ state.rating = 'pending';
759
759
  })
760
760
  .addCase(rateOrder.rejected, function (state, action) {
761
- state.loading = 'idle';
761
+ state.rating = 'idle';
762
762
  state.ratingError = action.payload;
763
763
  });
764
764
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.1.293",
3
+ "version": "0.1.295",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",