@open-tender/store 0.5.13 → 0.5.15
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.
- package/dist/.DS_Store +0 -0
- package/dist/cjs/slices/kiosk.js +5 -1
- package/dist/cjs/types/api/themeCloud.d.ts +2 -0
- package/dist/cjs/utils/themeCloud.js +1 -1
- package/dist/esm/slices/kiosk.js +6 -2
- package/dist/esm/types/api/themeCloud.d.ts +2 -0
- package/dist/esm/utils/themeCloud.js +1 -1
- package/package.json +1 -1
package/dist/.DS_Store
CHANGED
|
Binary file
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -24,6 +24,10 @@ var KioskActionType;
|
|
|
24
24
|
(function (KioskActionType) {
|
|
25
25
|
KioskActionType["FetchKiosk"] = "kiosk/getKiosk";
|
|
26
26
|
})(KioskActionType = exports.KioskActionType || (exports.KioskActionType = {}));
|
|
27
|
+
var enhanceTheme = function (theme) {
|
|
28
|
+
var icons = tslib_1.__assign(tslib_1.__assign({}, theme.icons), { strokeLinejoin: 'miter', strokeLinecap: 'square' });
|
|
29
|
+
return tslib_1.__assign(tslib_1.__assign({}, theme), { icons: icons });
|
|
30
|
+
};
|
|
27
31
|
exports.fetchKioskConfig = (0, toolkit_1.createAsyncThunk)(KioskActionType.FetchKiosk, function (_a, _b) {
|
|
28
32
|
var apiUrl = _a.apiUrl;
|
|
29
33
|
var dispatch = _b.dispatch, rejectWithValue = _b.rejectWithValue;
|
|
@@ -54,7 +58,7 @@ exports.fetchKioskConfig = (0, toolkit_1.createAsyncThunk)(KioskActionType.Fetch
|
|
|
54
58
|
revenueCenterId: revenueCenterId,
|
|
55
59
|
brand: brand,
|
|
56
60
|
content: content,
|
|
57
|
-
theme: theme,
|
|
61
|
+
theme: enhanceTheme(theme),
|
|
58
62
|
error: null,
|
|
59
63
|
loading: 'idle',
|
|
60
64
|
retries: 0
|
|
@@ -176,7 +176,7 @@ var makeWelcomes = function (welcomes, ratio) {
|
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
178
|
var makeIcons = function (icons, ratio) {
|
|
179
|
-
return tslib_1.__assign(tslib_1.__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio)
|
|
179
|
+
return tslib_1.__assign(tslib_1.__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio) });
|
|
180
180
|
};
|
|
181
181
|
var DEFAULT_WIDTH = 390;
|
|
182
182
|
var DEFAULT_HEIGHT = 844;
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { __awaiter, __generator } from "tslib";
|
|
2
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
3
3
|
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
|
|
4
4
|
import { PosAPI } from '../services';
|
|
5
5
|
import { ReducerType } from './types';
|
|
@@ -21,6 +21,10 @@ export var KioskActionType;
|
|
|
21
21
|
(function (KioskActionType) {
|
|
22
22
|
KioskActionType["FetchKiosk"] = "kiosk/getKiosk";
|
|
23
23
|
})(KioskActionType || (KioskActionType = {}));
|
|
24
|
+
var enhanceTheme = function (theme) {
|
|
25
|
+
var icons = __assign(__assign({}, theme.icons), { strokeLinejoin: 'miter', strokeLinecap: 'square' });
|
|
26
|
+
return __assign(__assign({}, theme), { icons: icons });
|
|
27
|
+
};
|
|
24
28
|
export var fetchKioskConfig = createAsyncThunk(KioskActionType.FetchKiosk, function (_a, _b) {
|
|
25
29
|
var apiUrl = _a.apiUrl;
|
|
26
30
|
var dispatch = _b.dispatch, rejectWithValue = _b.rejectWithValue;
|
|
@@ -51,7 +55,7 @@ export var fetchKioskConfig = createAsyncThunk(KioskActionType.FetchKiosk, funct
|
|
|
51
55
|
revenueCenterId: revenueCenterId,
|
|
52
56
|
brand: brand,
|
|
53
57
|
content: content,
|
|
54
|
-
theme: theme,
|
|
58
|
+
theme: enhanceTheme(theme),
|
|
55
59
|
error: null,
|
|
56
60
|
loading: 'idle',
|
|
57
61
|
retries: 0
|
|
@@ -170,7 +170,7 @@ var makeWelcomes = function (welcomes, ratio) {
|
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
var makeIcons = function (icons, ratio) {
|
|
173
|
-
return __assign(__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio)
|
|
173
|
+
return __assign(__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio) });
|
|
174
174
|
};
|
|
175
175
|
var DEFAULT_WIDTH = 390;
|
|
176
176
|
var DEFAULT_HEIGHT = 844;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
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",
|