@open-tender/store 1.1.71 → 1.1.72

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.
@@ -0,0 +1,7 @@
1
+ import { MainProps } from '@open-tender/ui';
2
+ import { ReactNode } from 'react';
3
+ declare const Main: ({ children, content }: {
4
+ children: (props: MainProps) => ReactNode;
5
+ content: ReactNode;
6
+ }) => ReactNode;
7
+ export default Main;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var hooks_1 = require("../app/hooks");
4
+ var slices_1 = require("../slices");
5
+ var Main = function (_a) {
6
+ var children = _a.children, content = _a.content;
7
+ var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).main;
8
+ return children({ config: config, content: content });
9
+ };
10
+ exports.default = Main;
@@ -0,0 +1,7 @@
1
+ import { MainProps } from '@open-tender/ui';
2
+ import { ReactNode } from 'react';
3
+ declare const Main: ({ children, content }: {
4
+ children: (props: MainProps) => ReactNode;
5
+ content: ReactNode;
6
+ }) => ReactNode;
7
+ export default Main;
@@ -0,0 +1,8 @@
1
+ import { useAppSelector } from '../app/hooks';
2
+ import { selectKioskConfig } from '../slices';
3
+ var Main = function (_a) {
4
+ var children = _a.children, content = _a.content;
5
+ var config = useAppSelector(selectKioskConfig).main;
6
+ return children({ config: config, content: content });
7
+ };
8
+ export default Main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.71",
3
+ "version": "1.1.72",
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",
@@ -62,7 +62,7 @@
62
62
  "peerDependencies": {
63
63
  "@emotion/react": "^11.11.1",
64
64
  "@open-tender/types": "^0.4.58",
65
- "@open-tender/ui": "^0.3.65",
65
+ "@open-tender/ui": "^0.3.67",
66
66
  "@open-tender/utils": "^0.4.31",
67
67
  "@reduxjs/toolkit": "^2.0.1",
68
68
  "date-fns": "2.30.0",