@tap-payments/os-micro-frontend-shared 0.1.326 → 0.1.327-test.1
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/build/components/AnimatedSpinnerIcon/style.d.ts +1 -2
- package/build/components/Chip/style.d.ts +0 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/Dialog/style.d.ts +0 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/RFH/Inputs/SelectWithAccordion/SelectWithAccordion.js +3 -3
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SearchButton/styles.d.ts +1 -2
- package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -2
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/EntityCell/EntityCell.js +1 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -2
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -2
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/VirtualTables/components/style.d.ts +1 -2
- package/build/types/apps.d.ts +2 -9
- package/build/utils/localStorage.d.ts +3 -3
- package/build/utils/localStorage.js +4 -15
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
type AnimatedSpinnerIconProps = {
|
|
4
3
|
width?: string;
|
|
5
4
|
height?: string;
|
|
@@ -12,6 +11,7 @@ export declare const StyledAnimatedSpinner: import("@emotion/styled").StyledComp
|
|
|
12
11
|
content?: string | undefined;
|
|
13
12
|
translate?: "yes" | "no" | undefined;
|
|
14
13
|
id?: string | undefined;
|
|
14
|
+
loading?: "eager" | "lazy" | undefined;
|
|
15
15
|
defaultChecked?: boolean | undefined;
|
|
16
16
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
17
17
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -274,7 +274,6 @@ export declare const StyledAnimatedSpinner: import("@emotion/styled").StyledComp
|
|
|
274
274
|
src?: string | undefined;
|
|
275
275
|
alt?: string | undefined;
|
|
276
276
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
277
|
-
loading?: "eager" | "lazy" | undefined;
|
|
278
277
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
279
278
|
srcSet?: string | undefined;
|
|
280
279
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & AnimatedSpinnerIconProps, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import { GetSourceAnimationFunction } from './type';
|
|
4
3
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
4
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -45,7 +45,7 @@ function SelectWithAccordion(_a) {
|
|
|
45
45
|
e.stopPropagation();
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
setExpandedParentGroupIndex(expanded ? parentIndex : null);
|
|
48
|
-
} }, { children: ((optionsGroup === null || optionsGroup === void 0 ? void 0 : optionsGroup.options) || []).map((option) => {
|
|
48
|
+
} }, { children: ((optionsGroup === null || optionsGroup === void 0 ? void 0 : optionsGroup.options) || []).map((option, index) => {
|
|
49
49
|
var _a, _b;
|
|
50
50
|
const isSelected = (_a = props === null || props === void 0 ? void 0 : props.isOptionEqualToValue) === null || _a === void 0 ? void 0 : _a.call(props, option, selectedOption);
|
|
51
51
|
return (_jsxs(ItemStyled, Object.assign({ onClick: () => {
|
|
@@ -55,8 +55,8 @@ function SelectWithAccordion(_a) {
|
|
|
55
55
|
shouldValidate: true,
|
|
56
56
|
});
|
|
57
57
|
closeDropdown();
|
|
58
|
-
} }, { children: [((_b = props.renderOption) === null || _b === void 0 ? void 0 : _b.call(props, option)) || option.label, isSelected && _jsx(Icon, { src: blueCheckIcon, alt: "blue-check", sx: { width: 14, height: 10 } })] }), option.value));
|
|
59
|
-
}) }), `${optionsGroup.group}-group`));
|
|
58
|
+
} }, { children: [((_b = props.renderOption) === null || _b === void 0 ? void 0 : _b.call(props, option)) || option.label, isSelected && _jsx(Icon, { src: blueCheckIcon, alt: "blue-check", sx: { width: 14, height: 10 } })] }), `${option.value}-${option.label}-${index}`));
|
|
59
|
+
}) }), `${optionsGroup.group}-group-${parentIndex}`));
|
|
60
60
|
}) })) }) })));
|
|
61
61
|
}
|
|
62
62
|
export default SelectWithAccordion;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledInput: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
width?: string | number | undefined;
|
|
5
4
|
height?: string | number | undefined;
|
|
@@ -300,6 +299,7 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
|
300
299
|
content?: string | undefined;
|
|
301
300
|
translate?: "yes" | "no" | undefined;
|
|
302
301
|
id?: string | undefined;
|
|
302
|
+
loading?: "eager" | "lazy" | undefined;
|
|
303
303
|
defaultChecked?: boolean | undefined;
|
|
304
304
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
305
305
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -562,7 +562,6 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
|
562
562
|
src?: string | undefined;
|
|
563
563
|
alt?: string | undefined;
|
|
564
564
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
565
|
-
loading?: "eager" | "lazy" | undefined;
|
|
566
565
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
567
566
|
srcSet?: string | undefined;
|
|
568
567
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import { TableMode } from '../../../../types/index.js';
|
|
4
3
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
4
|
tableMode?: TableMode | undefined;
|
|
@@ -18,6 +17,7 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
18
17
|
content?: string | undefined;
|
|
19
18
|
translate?: "yes" | "no" | undefined;
|
|
20
19
|
id?: string | undefined;
|
|
20
|
+
loading?: "eager" | "lazy" | undefined;
|
|
21
21
|
defaultChecked?: boolean | undefined;
|
|
22
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
23
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -280,7 +280,6 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
280
280
|
src?: string | undefined;
|
|
281
281
|
alt?: string | undefined;
|
|
282
282
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
283
|
-
loading?: "eager" | "lazy" | undefined;
|
|
284
283
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
285
284
|
srcSet?: string | undefined;
|
|
286
285
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
3
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -19,5 +19,5 @@ import { verificationIcon } from './constants';
|
|
|
19
19
|
export default function EntityCell(_a) {
|
|
20
20
|
var { entity, country, verificationStatus, licenseNumber, hideStatus } = _a, props = __rest(_a, ["entity", "country", "verificationStatus", "licenseNumber", "hideStatus"]);
|
|
21
21
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
22
|
-
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: (props === null || props === void 0 ? void 0 : props.onClick) ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: entity }, { children: _jsx(EntityWrapper, Object.assign({ hasClick: !!(props === null || props === void 0 ? void 0 : props.onClick), licenseNumber: licenseNumber }, { children: _jsxs(EntityWrapperContent, { children: [_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { countryCode: country }) })), _jsx(EntityName, Object.assign({ licenseNumber: licenseNumber }, { children: licenseNumber || 'Not Available' })), !hideStatus && (_jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) }))] }) })) })) })));
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: (props === null || props === void 0 ? void 0 : props.onClick) ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: entity }, { children: _jsx(EntityWrapper, Object.assign({ hasClick: !!(props === null || props === void 0 ? void 0 : props.onClick), licenseNumber: licenseNumber }, { children: _jsxs(EntityWrapperContent, { children: [_jsx(Tooltip, Object.assign({ title: country ? getCountryNameByISO(country) : '' }, { children: _jsx(CountryFlag, { countryCode: country }) })), _jsx(EntityName, Object.assign({ licenseNumber: licenseNumber }, { children: licenseNumber || 'Not Available' })), !hideStatus && (_jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) }))] }) })) })) })));
|
|
23
23
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
3
|
isTextShown?: boolean | undefined;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -11,6 +10,7 @@ export declare const StyledDownloadFileImage: import("@emotion/styled").StyledCo
|
|
|
11
10
|
content?: string | undefined;
|
|
12
11
|
translate?: "yes" | "no" | undefined;
|
|
13
12
|
id?: string | undefined;
|
|
13
|
+
loading?: "eager" | "lazy" | undefined;
|
|
14
14
|
defaultChecked?: boolean | undefined;
|
|
15
15
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
16
16
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -273,7 +273,6 @@ export declare const StyledDownloadFileImage: import("@emotion/styled").StyledCo
|
|
|
273
273
|
src?: string | undefined;
|
|
274
274
|
alt?: string | undefined;
|
|
275
275
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
276
|
-
loading?: "eager" | "lazy" | undefined;
|
|
277
276
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
278
277
|
srcSet?: string | undefined;
|
|
279
278
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
width?: string | number | undefined;
|
|
5
4
|
height?: string | number | undefined;
|
|
@@ -8,6 +7,7 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
8
7
|
content?: string | undefined;
|
|
9
8
|
translate?: "yes" | "no" | undefined;
|
|
10
9
|
id?: string | undefined;
|
|
10
|
+
loading?: "eager" | "lazy" | undefined;
|
|
11
11
|
defaultChecked?: boolean | undefined;
|
|
12
12
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
13
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -270,7 +270,6 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
270
270
|
src?: string | undefined;
|
|
271
271
|
alt?: string | undefined;
|
|
272
272
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
273
|
-
loading?: "eager" | "lazy" | undefined;
|
|
274
273
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
275
274
|
srcSet?: string | undefined;
|
|
276
275
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
3
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
interface TableWrapperProps {
|
|
4
3
|
showNoDataView?: boolean;
|
|
5
4
|
}
|
|
@@ -55,6 +54,7 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
55
54
|
content?: string | undefined;
|
|
56
55
|
translate?: "yes" | "no" | undefined;
|
|
57
56
|
id?: string | undefined;
|
|
57
|
+
loading?: "eager" | "lazy" | undefined;
|
|
58
58
|
defaultChecked?: boolean | undefined;
|
|
59
59
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
60
60
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -317,7 +317,6 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
317
317
|
src?: string | undefined;
|
|
318
318
|
alt?: string | undefined;
|
|
319
319
|
decoding?: "auto" | "async" | "sync" | undefined;
|
|
320
|
-
loading?: "eager" | "lazy" | undefined;
|
|
321
320
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
322
321
|
srcSet?: string | undefined;
|
|
323
322
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
package/build/types/apps.d.ts
CHANGED
|
@@ -76,18 +76,11 @@ export type NavigateFunction = (params: {
|
|
|
76
76
|
sandboxMode?: boolean;
|
|
77
77
|
state?: any;
|
|
78
78
|
}) => void;
|
|
79
|
-
export interface
|
|
79
|
+
export interface WindowPreview {
|
|
80
80
|
id: string;
|
|
81
81
|
img: string;
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
export interface PreviewData {
|
|
85
|
-
id: string;
|
|
86
|
-
img: string;
|
|
87
|
-
isGenerating: boolean;
|
|
88
|
-
serviceCode?: string;
|
|
82
|
+
status: 'idle' | 'completed' | 'error' | 'loading';
|
|
89
83
|
appCode: string;
|
|
90
|
-
isMinimized: boolean;
|
|
91
84
|
}
|
|
92
85
|
export type MFWidgetBaseProps = {
|
|
93
86
|
windowId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppDetails,
|
|
1
|
+
import { AppDetails, WindowPreview, Segment, TableMode, Timezone } from '../types/index.js';
|
|
2
2
|
import { SheetViewColumnsData } from './columnResizeStorage';
|
|
3
3
|
export declare function setSecretKey(): void;
|
|
4
4
|
export declare function getSecretKey(): string | null;
|
|
@@ -32,7 +32,7 @@ export declare const getGlobalTableModeStorage: () => TableMode;
|
|
|
32
32
|
export declare const removeGlobalTableModeStorage: () => void;
|
|
33
33
|
export declare const setSheetViewColumnsStorage: (data: SheetViewColumnsData) => void;
|
|
34
34
|
export declare const getSheetViewColumnsStorage: () => SheetViewColumnsData;
|
|
35
|
-
export declare const setPreviewStorage: (previews:
|
|
36
|
-
export declare const getPreviewStorage: () =>
|
|
35
|
+
export declare const setPreviewStorage: (previews: WindowPreview[]) => void;
|
|
36
|
+
export declare const getPreviewStorage: () => WindowPreview[];
|
|
37
37
|
export declare const removePreviewStorage: () => void;
|
|
38
38
|
export declare const clearTapOsLocalStorage: () => void;
|
|
@@ -172,14 +172,7 @@ export const setSheetViewColumnsStorage = (data) => localStorage.setItem(SHEETVI
|
|
|
172
172
|
export const getSheetViewColumnsStorage = () => JSON.parse(localStorage.getItem(SHEETVIEW_COLUMNS_KEY) || '{}');
|
|
173
173
|
export const setPreviewStorage = (previews) => {
|
|
174
174
|
try {
|
|
175
|
-
|
|
176
|
-
.filter((p) => p.img)
|
|
177
|
-
.map((p) => ({
|
|
178
|
-
id: p.id,
|
|
179
|
-
img: p.img,
|
|
180
|
-
timestamp: Date.now(),
|
|
181
|
-
}));
|
|
182
|
-
localStorage.setItem(PREVIEW_STORAGE_KEY, JSON.stringify(data));
|
|
175
|
+
localStorage.setItem(PREVIEW_STORAGE_KEY, JSON.stringify(previews));
|
|
183
176
|
}
|
|
184
177
|
catch (error) {
|
|
185
178
|
console.warn('Failed to save preview cache:', error);
|
|
@@ -189,16 +182,12 @@ export const getPreviewStorage = () => {
|
|
|
189
182
|
try {
|
|
190
183
|
const cached = localStorage.getItem(PREVIEW_STORAGE_KEY);
|
|
191
184
|
if (!cached)
|
|
192
|
-
return
|
|
185
|
+
return [];
|
|
193
186
|
const data = JSON.parse(cached);
|
|
194
|
-
|
|
195
|
-
data.forEach((item) => {
|
|
196
|
-
previewMap.set(item.id, item.img);
|
|
197
|
-
});
|
|
198
|
-
return previewMap;
|
|
187
|
+
return data;
|
|
199
188
|
}
|
|
200
189
|
catch (error) {
|
|
201
|
-
return
|
|
190
|
+
return [];
|
|
202
191
|
}
|
|
203
192
|
};
|
|
204
193
|
export const removePreviewStorage = () => {
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.327-test.1",
|
|
5
|
+
"testVersion": 1,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"registry": "https://registry.npmjs.org/"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|