@open-tender/store 1.0.5 → 1.0.6
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.
|
@@ -41,7 +41,50 @@ export declare const selectKiosk: (state: AppState) => KioskState;
|
|
|
41
41
|
export declare const selectKioskVersion: (state: AppState) => string | null | undefined;
|
|
42
42
|
export declare const selectKioskStore: (state: AppState) => Store | null;
|
|
43
43
|
export declare const selectKioskBrand: (state: AppState) => KioskBrand | null;
|
|
44
|
-
export declare const selectKioskConfig: (state:
|
|
44
|
+
export declare const selectKioskConfig: ((state: {
|
|
45
|
+
alerts: import("../types").Alerts;
|
|
46
|
+
arrivals: import("./arrivals").ArrivalsState;
|
|
47
|
+
cartSummary: import("./cartSummary").CartSummaryState;
|
|
48
|
+
checkout: import("./checkout").CheckoutState;
|
|
49
|
+
config: import("./config").ConfigState;
|
|
50
|
+
discounts: import("./discounts").DiscountsState;
|
|
51
|
+
errorAlerts: import("./errorAlerts").ErrorAlertsState;
|
|
52
|
+
kds: import("./kds").KdsState;
|
|
53
|
+
kiosk: KioskState;
|
|
54
|
+
menu: import("./menu").MenuState;
|
|
55
|
+
menuPages: import("./menuPages").MenuPagesState;
|
|
56
|
+
modal: import("./modal").ModalState;
|
|
57
|
+
notifications: import("../types").Notifications;
|
|
58
|
+
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
59
|
+
order: import("./order").OrderState;
|
|
60
|
+
pos: import("./pos").PosState;
|
|
61
|
+
punches: import("./punches").PunchesState;
|
|
62
|
+
refund: import("./refund").RefundState;
|
|
63
|
+
settings: import("./settings").SettingsState;
|
|
64
|
+
sidebar: import("./sidebar").SidebarState;
|
|
65
|
+
surcharges: import("./surcharges").SurchargesState;
|
|
66
|
+
taxes: import("./taxes").TaxesState;
|
|
67
|
+
}) => AppConfig) & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
resultsCount: () => number;
|
|
70
|
+
resetResultsCount: () => void;
|
|
71
|
+
} & {
|
|
72
|
+
resultFunc: (resultFuncArgs_0: AppConfig | null) => AppConfig;
|
|
73
|
+
memoizedResultFunc: ((resultFuncArgs_0: AppConfig | null) => AppConfig) & {
|
|
74
|
+
clearCache: () => void;
|
|
75
|
+
resultsCount: () => number;
|
|
76
|
+
resetResultsCount: () => void;
|
|
77
|
+
};
|
|
78
|
+
lastResult: () => AppConfig;
|
|
79
|
+
dependencies: [(state: AppState) => AppConfig | null];
|
|
80
|
+
recomputations: () => number;
|
|
81
|
+
resetRecomputations: () => void;
|
|
82
|
+
dependencyRecomputations: () => number;
|
|
83
|
+
resetDependencyRecomputations: () => void;
|
|
84
|
+
} & {
|
|
85
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
86
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
87
|
+
};
|
|
45
88
|
export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
46
89
|
alerts: import("../types").Alerts;
|
|
47
90
|
arrivals: import("./arrivals").ArrivalsState;
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -141,8 +141,13 @@ var selectKioskStore = function (state) { return state.kiosk.store; };
|
|
|
141
141
|
exports.selectKioskStore = selectKioskStore;
|
|
142
142
|
var selectKioskBrand = function (state) { return state.kiosk.brand; };
|
|
143
143
|
exports.selectKioskBrand = selectKioskBrand;
|
|
144
|
-
|
|
145
|
-
exports.selectKioskConfig =
|
|
144
|
+
// export const selectKioskConfig = (state: AppState) => state.kiosk.config || {}
|
|
145
|
+
exports.selectKioskConfig = (0, toolkit_1.createSelector)(function (state) {
|
|
146
|
+
var config = state.kiosk.config;
|
|
147
|
+
return config;
|
|
148
|
+
}, function (config) {
|
|
149
|
+
return (config || {});
|
|
150
|
+
});
|
|
146
151
|
var selectKioskConfigScreen = function (screen) {
|
|
147
152
|
return (0, toolkit_1.createSelector)(function (state) {
|
|
148
153
|
var config = state.kiosk.config;
|
|
@@ -41,7 +41,50 @@ export declare const selectKiosk: (state: AppState) => KioskState;
|
|
|
41
41
|
export declare const selectKioskVersion: (state: AppState) => string | null | undefined;
|
|
42
42
|
export declare const selectKioskStore: (state: AppState) => Store | null;
|
|
43
43
|
export declare const selectKioskBrand: (state: AppState) => KioskBrand | null;
|
|
44
|
-
export declare const selectKioskConfig: (state:
|
|
44
|
+
export declare const selectKioskConfig: ((state: {
|
|
45
|
+
alerts: import("../types").Alerts;
|
|
46
|
+
arrivals: import("./arrivals").ArrivalsState;
|
|
47
|
+
cartSummary: import("./cartSummary").CartSummaryState;
|
|
48
|
+
checkout: import("./checkout").CheckoutState;
|
|
49
|
+
config: import("./config").ConfigState;
|
|
50
|
+
discounts: import("./discounts").DiscountsState;
|
|
51
|
+
errorAlerts: import("./errorAlerts").ErrorAlertsState;
|
|
52
|
+
kds: import("./kds").KdsState;
|
|
53
|
+
kiosk: KioskState;
|
|
54
|
+
menu: import("./menu").MenuState;
|
|
55
|
+
menuPages: import("./menuPages").MenuPagesState;
|
|
56
|
+
modal: import("./modal").ModalState;
|
|
57
|
+
notifications: import("../types").Notifications;
|
|
58
|
+
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
59
|
+
order: import("./order").OrderState;
|
|
60
|
+
pos: import("./pos").PosState;
|
|
61
|
+
punches: import("./punches").PunchesState;
|
|
62
|
+
refund: import("./refund").RefundState;
|
|
63
|
+
settings: import("./settings").SettingsState;
|
|
64
|
+
sidebar: import("./sidebar").SidebarState;
|
|
65
|
+
surcharges: import("./surcharges").SurchargesState;
|
|
66
|
+
taxes: import("./taxes").TaxesState;
|
|
67
|
+
}) => AppConfig) & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
resultsCount: () => number;
|
|
70
|
+
resetResultsCount: () => void;
|
|
71
|
+
} & {
|
|
72
|
+
resultFunc: (resultFuncArgs_0: AppConfig | null) => AppConfig;
|
|
73
|
+
memoizedResultFunc: ((resultFuncArgs_0: AppConfig | null) => AppConfig) & {
|
|
74
|
+
clearCache: () => void;
|
|
75
|
+
resultsCount: () => number;
|
|
76
|
+
resetResultsCount: () => void;
|
|
77
|
+
};
|
|
78
|
+
lastResult: () => AppConfig;
|
|
79
|
+
dependencies: [(state: AppState) => AppConfig | null];
|
|
80
|
+
recomputations: () => number;
|
|
81
|
+
resetRecomputations: () => void;
|
|
82
|
+
dependencyRecomputations: () => number;
|
|
83
|
+
resetDependencyRecomputations: () => void;
|
|
84
|
+
} & {
|
|
85
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
86
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
87
|
+
};
|
|
45
88
|
export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
46
89
|
alerts: import("../types").Alerts;
|
|
47
90
|
arrivals: import("./arrivals").ArrivalsState;
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -134,7 +134,13 @@ export var selectKiosk = function (state) { return state.kiosk; };
|
|
|
134
134
|
export var selectKioskVersion = function (state) { return state.kiosk.version; };
|
|
135
135
|
export var selectKioskStore = function (state) { return state.kiosk.store; };
|
|
136
136
|
export var selectKioskBrand = function (state) { return state.kiosk.brand; };
|
|
137
|
-
export
|
|
137
|
+
// export const selectKioskConfig = (state: AppState) => state.kiosk.config || {}
|
|
138
|
+
export var selectKioskConfig = createSelector(function (state) {
|
|
139
|
+
var config = state.kiosk.config;
|
|
140
|
+
return config;
|
|
141
|
+
}, function (config) {
|
|
142
|
+
return (config || {});
|
|
143
|
+
});
|
|
138
144
|
export var selectKioskConfigScreen = function (screen) {
|
|
139
145
|
return createSelector(function (state) {
|
|
140
146
|
var config = state.kiosk.config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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",
|
package/dist/.DS_Store
DELETED
|
Binary file
|