@open-tender/cloud
Advanced tools
Comparing version 0.1.95 to 0.1.96
@@ -9,2 +9,3 @@ import { AppState } from '../app'; | ||
menuVars: MenuVars | null; | ||
offsetTop: number | null; | ||
previousMenuVars: MenuVars | null; | ||
@@ -30,2 +31,3 @@ revenueCenters: MenuRevenueCenters | null; | ||
export declare const selectSoldOut: (state: AppState) => SoldOut; | ||
export declare const selectMenuOffset: (state: AppState) => number | null; | ||
export declare const menuReducer: import("redux").Reducer<MenuState, import("redux").AnyAction>; |
"use strict"; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.menuReducer = exports.selectSoldOut = exports.selectMenu = exports.setCartErrors = exports.resetMenuVars = exports.resetCartErrors = exports.resetMenu = exports.fetchMenu = exports.MenuActionType = void 0; | ||
exports.menuReducer = exports.selectMenuOffset = exports.selectSoldOut = exports.selectMenu = exports.setCartErrors = exports.resetMenuVars = exports.resetCartErrors = exports.resetMenu = exports.fetchMenu = exports.MenuActionType = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -17,2 +17,3 @@ const toolkit_1 = require("@reduxjs/toolkit"); | ||
cartErrors: null, | ||
offsetTop: null, | ||
error: null, | ||
@@ -68,2 +69,8 @@ loading: 'idle' | ||
state.cartErrors = action.payload; | ||
}, | ||
resetOffsetTop: state => { | ||
state.offsetTop = null; | ||
}, | ||
setOffsetTop: (state, action) => { | ||
state.offsetTop = action.payload; | ||
} | ||
@@ -90,2 +97,4 @@ }, | ||
exports.selectSoldOut = selectSoldOut; | ||
const selectMenuOffset = (state) => state.menu.offsetTop; | ||
exports.selectMenuOffset = selectMenuOffset; | ||
exports.menuReducer = menuSlice.reducer; |
@@ -9,2 +9,3 @@ import { AppState } from '../app'; | ||
menuVars: MenuVars | null; | ||
offsetTop: number | null; | ||
previousMenuVars: MenuVars | null; | ||
@@ -30,2 +31,3 @@ revenueCenters: MenuRevenueCenters | null; | ||
export declare const selectSoldOut: (state: AppState) => SoldOut; | ||
export declare const selectMenuOffset: (state: AppState) => number | null; | ||
export declare const menuReducer: import("redux").Reducer<MenuState, import("redux").AnyAction>; |
@@ -13,2 +13,3 @@ import { __awaiter } from "tslib"; | ||
cartErrors: null, | ||
offsetTop: null, | ||
error: null, | ||
@@ -64,2 +65,8 @@ loading: 'idle' | ||
state.cartErrors = action.payload; | ||
}, | ||
resetOffsetTop: state => { | ||
state.offsetTop = null; | ||
}, | ||
setOffsetTop: (state, action) => { | ||
state.offsetTop = action.payload; | ||
} | ||
@@ -84,2 +91,3 @@ }, | ||
export const selectSoldOut = (state) => state.menu.soldOut; | ||
export const selectMenuOffset = (state) => state.menu.offsetTop; | ||
export const menuReducer = menuSlice.reducer; |
{ | ||
"name": "@open-tender/cloud", | ||
"version": "0.1.95", | ||
"version": "0.1.96", | ||
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
912288
20641