@tap-payments/os-micro-frontend-shared 0.1.60-test.2 → 0.1.60-test.3
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.
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { UserSection } from '../../types/index.js';
|
|
3
3
|
interface WindowSideBarProps {
|
|
4
4
|
sections: UserSection[];
|
|
5
5
|
isMaximized?: boolean;
|
|
6
|
-
onClick?: (section:
|
|
7
|
-
|
|
8
|
-
title?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
activeSection?: ACCOUNT_SECTION;
|
|
6
|
+
onClick?: (section: UserSection) => void;
|
|
7
|
+
activeSection?: string;
|
|
12
8
|
}
|
|
13
9
|
declare function WindowSideBar({ sections, isMaximized, onClick, activeSection }: WindowSideBarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
10
|
declare const _default: import("react").MemoExoticComponent<typeof WindowSideBar>;
|
package/build/types/user.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { UserApp } from './apps';
|
|
|
2
2
|
import { Brand } from './brand';
|
|
3
3
|
import { Entity } from './entity';
|
|
4
4
|
import { Merchant } from './merchant';
|
|
5
|
-
import { ACCOUNT_SECTION } from './account';
|
|
6
5
|
import { Country } from './appConfig';
|
|
7
6
|
export interface TextAndLang {
|
|
8
7
|
lang: string;
|
|
@@ -161,7 +160,7 @@ export interface SegmentRole {
|
|
|
161
160
|
role_id: string;
|
|
162
161
|
}
|
|
163
162
|
export interface UserSection {
|
|
164
|
-
id:
|
|
163
|
+
id: string;
|
|
165
164
|
title?: string;
|
|
166
165
|
icon?: string;
|
|
167
166
|
}
|
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.60-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.60-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|