@tap-payments/os-micro-frontend-shared 0.1.259-test.2 → 0.1.260

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.
Files changed (46) hide show
  1. package/build/components/Chip/style.d.ts +1 -0
  2. package/build/components/CountBadge/style.d.ts +1 -0
  3. package/build/components/Dialog/style.d.ts +1 -0
  4. package/build/components/FlippingCard/style.d.ts +1 -0
  5. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  6. package/build/components/JSONViewer/style.d.ts +1 -0
  7. package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
  8. package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
  9. package/build/components/SearchButton/styles.d.ts +1 -0
  10. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  11. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  12. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  13. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
  14. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  15. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
  16. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  17. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  18. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  19. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  20. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  21. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  22. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  23. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  24. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  25. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  26. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  28. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  29. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  30. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  31. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  32. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
  33. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  34. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
  35. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  36. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  37. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  38. package/build/components/VirtualTables/components/style.d.ts +1 -0
  39. package/build/constants/apps.d.ts +0 -11
  40. package/build/constants/apps.js +0 -4
  41. package/build/types/account.d.ts +1 -2
  42. package/build/types/account.js +0 -1
  43. package/build/types/apps.d.ts +13 -0
  44. package/build/utils/localStorage.d.ts +4 -1
  45. package/build/utils/localStorage.js +41 -0
  46. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { GetSourceAnimationFunction } from './type';
3
4
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
5
  variant?: import("./type").ChipVariant | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const FOOTER_HEIGHT = 37;
3
4
  export declare const TITLE_BAR_HEIGHT = "32px";
4
5
  export declare const VIEWER_HEIGHT = 545;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { TableMode } from '../../../../types/index.js';
3
4
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
5
  tableMode?: TableMode | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
3
4
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
4
  variant?: "Global" | "Regional" | "Local" | undefined;
4
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  interface TableWrapperProps {
3
4
  showNoDataView?: boolean;
4
5
  }
@@ -843,17 +843,6 @@ export declare const APP_CODES: {
843
843
  };
844
844
  };
845
845
  };
846
- appSettings: {
847
- code: string;
848
- functions: {
849
- view: {
850
- code: string;
851
- };
852
- update: {
853
- code: string;
854
- };
855
- };
856
- };
857
846
  };
858
847
  };
859
848
  order: {
@@ -320,10 +320,6 @@ export const APP_CODES = {
320
320
  code: 'BRAND',
321
321
  functions: { view: { code: 'VIEW' }, update: { code: 'UPDATE' } },
322
322
  },
323
- appSettings: {
324
- code: 'APP_SETTINGS',
325
- functions: { view: { code: 'VIEW' }, update: { code: 'UPDATE' } },
326
- },
327
323
  },
328
324
  },
329
325
  order: {
@@ -2,6 +2,5 @@ export declare enum ACCOUNT_SECTION {
2
2
  BRAND = "brand",
3
3
  ENTITY = "entity",
4
4
  USERS = "users",
5
- USER_ROLES = "userRoles",
6
- APP_SETTINGS = "appSettings"
5
+ USER_ROLES = "userRoles"
7
6
  }
@@ -4,5 +4,4 @@ export var ACCOUNT_SECTION;
4
4
  ACCOUNT_SECTION["ENTITY"] = "entity";
5
5
  ACCOUNT_SECTION["USERS"] = "users";
6
6
  ACCOUNT_SECTION["USER_ROLES"] = "userRoles";
7
- ACCOUNT_SECTION["APP_SETTINGS"] = "appSettings";
8
7
  })(ACCOUNT_SECTION || (ACCOUNT_SECTION = {}));
@@ -76,6 +76,19 @@ export type NavigateFunction = (params: {
76
76
  sandboxMode?: boolean;
77
77
  state?: any;
78
78
  }) => void;
79
+ export interface PreviewStorageData {
80
+ id: string;
81
+ img: string;
82
+ timestamp: number;
83
+ }
84
+ export interface PreviewData {
85
+ id: string;
86
+ img: string;
87
+ isGenerating: boolean;
88
+ serviceCode?: string;
89
+ appCode: string;
90
+ isMinimized: boolean;
91
+ }
79
92
  export type MFWidgetBaseProps = {
80
93
  windowId: string;
81
94
  i18n?: i18n;
@@ -1,4 +1,4 @@
1
- import { AppDetails, Segment, TableMode, Timezone } from '../types/index.js';
1
+ import { AppDetails, PreviewData, 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,4 +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: PreviewData[]) => void;
36
+ export declare const getPreviewStorage: () => Map<string, string>;
37
+ export declare const removePreviewStorage: () => void;
35
38
  export declare const clearTapOsLocalStorage: () => void;
@@ -12,6 +12,7 @@ const CALENDER_TIMEZONE = 'tap-dashboard-calender-timezone';
12
12
  const CALENDER_TIMEZONE_HISTORY = 'tap-dashboard-calender-timezone-history';
13
13
  const GLOBAL_TABLE_MODE_KEY = 'tap-dashboard-global-table-mode';
14
14
  const SHEETVIEW_COLUMNS_KEY = 'sheetview_columns';
15
+ const PREVIEW_STORAGE_KEY = 'dock-preview-windows';
15
16
  export function setSecretKey() {
16
17
  localStorage.setItem(SECRET_KEY_LOCAL_STORAGE, TEST_SECRET_KEY);
17
18
  }
@@ -169,6 +170,45 @@ export const removeGlobalTableModeStorage = () => {
169
170
  };
170
171
  export const setSheetViewColumnsStorage = (data) => localStorage.setItem(SHEETVIEW_COLUMNS_KEY, JSON.stringify(data));
171
172
  export const getSheetViewColumnsStorage = () => JSON.parse(localStorage.getItem(SHEETVIEW_COLUMNS_KEY) || '{}');
173
+ export const setPreviewStorage = (previews) => {
174
+ try {
175
+ const data = previews
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));
183
+ }
184
+ catch (error) {
185
+ console.warn('Failed to save preview cache:', error);
186
+ }
187
+ };
188
+ export const getPreviewStorage = () => {
189
+ try {
190
+ const cached = localStorage.getItem(PREVIEW_STORAGE_KEY);
191
+ if (!cached)
192
+ return new Map();
193
+ const data = JSON.parse(cached);
194
+ const previewMap = new Map();
195
+ data.forEach((item) => {
196
+ previewMap.set(item.id, item.img);
197
+ });
198
+ return previewMap;
199
+ }
200
+ catch (error) {
201
+ return new Map();
202
+ }
203
+ };
204
+ export const removePreviewStorage = () => {
205
+ try {
206
+ localStorage.removeItem(PREVIEW_STORAGE_KEY);
207
+ }
208
+ catch (error) {
209
+ console.warn('Failed to remove preview storage:', error);
210
+ }
211
+ };
172
212
  export const clearTapOsLocalStorage = () => {
173
213
  removeSecretKey();
174
214
  removeConnectMetaData();
@@ -180,4 +220,5 @@ export const clearTapOsLocalStorage = () => {
180
220
  removeCalenderTimezone();
181
221
  removeCalenderTimezoneHistory();
182
222
  removeGlobalTableModeStorage();
223
+ removePreviewStorage();
183
224
  };
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.259-test.2",
5
- "testVersion": 2,
4
+ "version": "0.1.260",
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
+ }