@tap-payments/os-micro-frontend-shared 0.1.172-test.9 → 0.1.172

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -9,16 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { memo } from 'react';
14
14
  import Popper from '@mui/material/Popper';
15
- import { Box } from '@mui/material';
16
- import { StyledDropdown } from './style';
17
- import { useScrollWithShadow } from '../Widget/useScrollWithShadow';
18
- import { listShadowBg } from '../../constants/index.js';
15
+ import { Dropdown } from './style';
19
16
  function Menu(_a) {
20
17
  var { open, anchorEl, children, sx, placement, popperSx } = _a, props = __rest(_a, ["open", "anchorEl", "children", "sx", "placement", "popperSx"]);
21
- const { onScrollHandler, showShadow } = useScrollWithShadow();
22
- return (_jsxs(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start', sx: popperSx }, props, { children: [_jsx(StyledDropdown, Object.assign({ onScroll: onScrollHandler, className: "MuiPopper-dropdown", sx: sx }, { children: children })), showShadow && _jsx(Box, { component: "img", src: listShadowBg, sx: { width: '100%', position: 'fixed', bottom: 0, pointerEvents: 'none' } })] }), "menu"));
18
+ return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start', sx: popperSx }, props, { children: _jsx(Dropdown, Object.assign({ className: "MuiPopper-dropdown", sx: sx }, { children: children })) }), "menu"));
23
19
  }
24
20
  export default memo(Menu);
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledDropdown: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const Dropdown: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
4
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import Box from '@mui/material/Box';
2
2
  import { styled } from '@mui/material/styles';
3
- export const StyledDropdown = styled(Box)(({ theme }) => ({
3
+ export const Dropdown = styled(Box)(({ theme }) => ({
4
4
  borderRadius: theme.spacing(0.5),
5
5
  background: theme.palette.background.default,
6
6
  width: 'max-content',
@@ -8,8 +8,6 @@ export const StyledDropdown = styled(Box)(({ theme }) => ({
8
8
  boxShadow: theme.shadows[11],
9
9
  display: 'flex',
10
10
  flexDirection: 'column',
11
- overflowY: 'scroll',
12
- maxHeight: '420px',
13
11
  '.menu-item + .menu-item': {
14
12
  borderTop: `1px solid ${theme.palette.divider}`,
15
13
  },
@@ -9,6 +9,5 @@ export function useScrollWithShadow() {
9
9
  setScrollHeight(target.scrollHeight);
10
10
  setClientHeight(target.clientHeight);
11
11
  };
12
- console.log({ scrollTop, clientHeight, scrollHeight, showShadow: scrollTop === 0 || clientHeight < scrollHeight - scrollTop });
13
12
  return { onScrollHandler, showShadow: scrollTop === 0 || clientHeight < scrollHeight - scrollTop };
14
13
  }
@@ -398,6 +398,9 @@ export declare const APP_CODES: {
398
398
  statement: {
399
399
  code: string;
400
400
  };
401
+ summary: {
402
+ code: string;
403
+ };
401
404
  view: {
402
405
  code: string;
403
406
  };
@@ -418,6 +421,9 @@ export declare const APP_CODES: {
418
421
  statement: {
419
422
  code: string;
420
423
  };
424
+ summary: {
425
+ code: string;
426
+ };
421
427
  view: {
422
428
  code: string;
423
429
  };
@@ -438,6 +444,9 @@ export declare const APP_CODES: {
438
444
  statement: {
439
445
  code: string;
440
446
  };
447
+ summary: {
448
+ code: string;
449
+ };
441
450
  view: {
442
451
  code: string;
443
452
  };
@@ -491,6 +500,12 @@ export declare const APP_CODES: {
491
500
  code: string;
492
501
  };
493
502
  };
503
+ statement: {
504
+ code: string;
505
+ };
506
+ summary: {
507
+ code: string;
508
+ };
494
509
  };
495
510
  };
496
511
  };
@@ -166,18 +166,24 @@ export const APP_CODES = {
166
166
  code: 'BUSINESS_WALLET',
167
167
  functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
168
168
  code: 'STATEMENT',
169
+ }, summary: {
170
+ code: 'SUMMARY',
169
171
  } }),
170
172
  },
171
173
  retailers: {
172
174
  code: 'RETAILER_WALLET',
173
175
  functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
174
176
  code: 'STATEMENT',
177
+ }, summary: {
178
+ code: 'SUMMARY',
175
179
  } }),
176
180
  },
177
181
  customers: {
178
182
  code: 'CUSTOMER_WALLET',
179
183
  functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
180
184
  code: 'STATEMENT',
185
+ }, summary: {
186
+ code: 'SUMMARY',
181
187
  } }),
182
188
  },
183
189
  merchants: {
@@ -191,6 +197,12 @@ export const APP_CODES = {
191
197
  paymentTechnology: {
192
198
  code: 'PAYMENT_TECHNOLOGY_WALLET',
193
199
  functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
200
+ statement: {
201
+ code: 'STATEMENT',
202
+ },
203
+ summary: {
204
+ code: 'SUMMARY',
205
+ },
194
206
  },
195
207
  },
196
208
  },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.172-test.9",
5
- "testVersion": 9,
4
+ "version": "0.1.172",
5
+ "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }