@tap-payments/os-micro-frontend-shared 0.3.119 → 0.3.120
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/_chunks/{chunk-QMYF2D76.js → chunk-VWSQS7GB.js} +1 -1
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/appEvents.d.ts +25 -19
- package/build/types/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,27 @@ export declare enum AppEvent {
|
|
|
19
19
|
OnAccountDataChanged = "on-account-data-changed",
|
|
20
20
|
OnPreloadApps = "on-preload-apps"
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Options for {@link AppEvent.OnOpenChildApp}.
|
|
24
|
+
*/
|
|
25
|
+
export type OpenChildAppOptions = NavigateFunctionOptions & {
|
|
26
|
+
/**
|
|
27
|
+
* How to open the child when the parent already has one for the same app:
|
|
28
|
+
* - `new` always opens a fresh child window
|
|
29
|
+
* - `reuse` reuses the existing child and updates its payload
|
|
30
|
+
* `new` is the default when omitted.
|
|
31
|
+
*/
|
|
32
|
+
openMode?: 'new' | 'reuse';
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The app window an event targets.
|
|
36
|
+
*/
|
|
37
|
+
export type TargetApp = {
|
|
38
|
+
appCode: string;
|
|
39
|
+
serviceCode: string;
|
|
40
|
+
sandboxMode?: boolean;
|
|
41
|
+
payload?: object;
|
|
42
|
+
};
|
|
22
43
|
/**
|
|
23
44
|
* Map event names to their corresponding payload types.
|
|
24
45
|
*/
|
|
@@ -27,23 +48,13 @@ export type AppEventMap = {
|
|
|
27
48
|
/**
|
|
28
49
|
* The app the event is targeting.
|
|
29
50
|
*/
|
|
30
|
-
targetApp:
|
|
31
|
-
appCode: string;
|
|
32
|
-
serviceCode: string;
|
|
33
|
-
sandboxMode?: boolean;
|
|
34
|
-
payload?: object;
|
|
35
|
-
};
|
|
51
|
+
targetApp: TargetApp;
|
|
36
52
|
}, options?: NavigateFunctionOptions) => void;
|
|
37
53
|
[AppEvent.OnRightClickTableAction]: (params: {
|
|
38
54
|
/**
|
|
39
55
|
* The app the event is targeting.
|
|
40
56
|
*/
|
|
41
|
-
targetApp:
|
|
42
|
-
appCode: string;
|
|
43
|
-
serviceCode: string;
|
|
44
|
-
sandboxMode?: boolean;
|
|
45
|
-
payload?: object;
|
|
46
|
-
};
|
|
57
|
+
targetApp: TargetApp;
|
|
47
58
|
}, options?: NavigateFunctionOptions) => void;
|
|
48
59
|
[AppEvent.OnToggleTableMode]: () => void;
|
|
49
60
|
[AppEvent.OnChangeTableMode]: (tableMode: TableMode) => void;
|
|
@@ -78,13 +89,8 @@ export type AppEventMap = {
|
|
|
78
89
|
/**
|
|
79
90
|
* The app to open as the child window.
|
|
80
91
|
*/
|
|
81
|
-
targetApp:
|
|
82
|
-
|
|
83
|
-
serviceCode: string;
|
|
84
|
-
sandboxMode?: boolean;
|
|
85
|
-
payload?: object;
|
|
86
|
-
};
|
|
87
|
-
}, options?: NavigateFunctionOptions) => void;
|
|
92
|
+
targetApp: TargetApp;
|
|
93
|
+
}, options?: OpenChildAppOptions) => void;
|
|
88
94
|
[AppEvent.OnAccountDataChanged]: (params: AccountWidgetDataChangedParams) => void;
|
|
89
95
|
[AppEvent.OnPreloadApps]: (params: {
|
|
90
96
|
appCodes: string[];
|
package/build/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{l as ACCOUNT_SECTION,m as AppEvent,h as ChargeBreakDownType,f as CurrencyCodes,n as DISCOUNT_TYPE,b as LanguageMode,i as NewRelicEventType,k as NewRelicFeatureName,j as NewRelicFeatureType,c as RECURRENCE_TYPE,p as ReportStatusEnum,g as SEGMENT_CODE,d as SEND_INVOICE,e as SalesChannelTypes,o as StatusValue,a as ThemeMode}from'../_chunks/chunk-
|
|
1
|
+
export{l as ACCOUNT_SECTION,m as AppEvent,h as ChargeBreakDownType,f as CurrencyCodes,n as DISCOUNT_TYPE,b as LanguageMode,i as NewRelicEventType,k as NewRelicFeatureName,j as NewRelicFeatureType,c as RECURRENCE_TYPE,p as ReportStatusEnum,g as SEGMENT_CODE,d as SEND_INVOICE,e as SalesChannelTypes,o as StatusValue,a as ThemeMode}from'../_chunks/chunk-VWSQS7GB.js';import'../_chunks/chunk-YRT7GXGY.js';
|
package/build/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Dc as DEFAULT_SKELETON_WIDTHS,tc as SELECTION_COLORS,wc as alignToJustifyContent,Fa as api,Ic as applyColumnFiltersGate,dc as backendErrorHandler,bb as calculateMaxAllowedRows,pb as capitalizeFirstLetter,tb as capitalizeString,E as changeDateTimezone,Ea as clearTapOsLocalStorage,Oa as conversionTypesLabels,C as convertCalendarDateToUTC,Va as convertToNumber,D as convertUTCtoLocalDate,ob as copyText,Pa as currencyConfig,Xb as downloadFile,Cb as extractIdsFromRowData,Qb as filterShownColumns,Sa as formatAmount,Ta as formatAmountWithCurrency,I as formatCellDate,Ra as formatCurrencyWithInput,J as formatDate,Za as formatFlagDate,S as formatInTimezone,Lc as formatLogDate,r as formatNumber,q as formatOrdinal,Ya as formatPayoutDate,N as formatRelativeTimeWithinHour,L as formatSecondsAsTime,y as formatUTCOffset,Q as generateBirthYearList,wb as generateChargeErrors,F as generateDayList,G as generateMonthList,R as generatePastYearList,kc as generateReportLocalStorageKey,Ec as generateSkeletonColumns,nb as generateUniqueUUID,H as generateYearList,w as getAmountPlaceholder,$b as getApiErrorMessage,ec as getApp,Ha as getBrowserName,W as getBusinessSegmentConfig,qa as getCalenderTimezone,ra as getCalenderTimezoneHistory,ub as getCardNumber,ab as getCellWidth,Rb as getColumnOrderFromViews,$a as getColumnWidthPercentage,Mc as getComponentId,Ua as getConversion,Wa as getCountryNameByISO,z as getDefaultDateRange,jc as getFileIconFromExtension,mb as getFirstChar,rc as getGeographyBoxColor,va as getGlobalTableModeStorage,Ga as getHeaders,gc as getIdentificationTypeList,sc as getLocalizedUnitLabel,ia as getLoggedInUserActiveSegment,ga as getLoggedInUserData,da as getLoggedInUserJwtToken,ha as getLoggedInUserSegment,nc as getNameText,aa as getNavigationData,Y as getNonBusinessSegmentConfig,T as getOrderedWeekDays,vb as getPaymentMethodWithId,pc as getPaymentTypeKey,_a as getPayoutDetails,Wb as getPhoneDetails,fb as getPossibleActionNavigationView,Aa as getPreviewStorage,Fc as getProcessedColumns,Ka as getRandomColor,La as getRandomGradientColor,ma as getReportRecord,vc as getRowSelectionBorderStyles,_ as getSecretKey,V as getSegmentData,uc as getSelectionStyles,fc as getService,ya as getSheetViewColumnsStorage,mc as getTextByLang,U as getTimestamp,B as getTimestampByTimezone,zc as getTimezoneByCountryCode,Ac as getTimezoneByTimezone,x as getUTCOffset,A as getUTCTimestamp,o as getUniqueListBy,Ja as getUserAgentDeviceType,oc as getUsername,K as getValueOfEndOfDay,Ca as getViewsSelectionStorage,Yb as handleFileDownload,Zb as handleURLDownload,Hc as hasActiveColumnFilters,ac as hasError,Ma as hexa2Rgba,Qa as intlCurrency,lc as isArabic,yb as isEmptyValue,ic as isFile,cb as isHeightNotFullyFilledByRows,ja as isJwtTokenExpired,_b as isNetworkError,cc as isNotFoundError,Sb as isParameterSelected,Ia as isSafariBrowser,qc as isSamePaymentSource,Xa as isSaudiArabia,X as isSegmentActLikeBusinessSegment,db as isTableDefaultMode,eb as isTableSheetMode,Ab as isTapstersFrontend,bc as isTimeoutError,O as isTodayDate,ka as isUserLoggedInAndJwtTokenActive,p as isValidNumber,jb as isValidString,M as isWithinTimeAgo,P as isYesterdayDate,yc as joinClassNames,Tb as mapDataToViews,Ub as mapViewsToData,rb as maskValue,lb as matchOccurrence,xc as mergeSx,u as numberToString,v as pad,s as parseAmount,qb as percentageToNumber,hc as readableFileSize,Bb as removeAllCharsFromNumber,sa as removeCalenderTimezone,ta as removeCalenderTimezoneHistory,wa as removeGlobalTableModeStorage,ea as removeLoggedInUserJwtToken,ba as removeNavigationData,kb as removePrefixFromString,Ba as removePreviewStorage,na as removeReportRecord,n as removeUndefinedArrayElements,zb as removeUndefinedArrayValues,xb as removeUndefinedValues,Na as rgba2Hexa,Jc as sanitizeHtml,oa as setCalenderTimezone,pa as setCalenderTimezoneHistory,ua as setGlobalTableModeStorage,fa as setLoggedInUserData,ca as setLoggedInUserJwtToken,$ as setNavigationData,za as setPreviewStorage,la as setReportRecord,Z as setSecretKey,xa as setSheetViewColumnsStorage,Da as setViewsSelectionStorage,m as sortByString,l as sortList,t as stringToNumber,Kc as trackFeatureEvent,Bc as transformPaymentMethodsData,Cc as transformPaymentSchemesData,sb as transformStringToProperCase,Vb as updateColumnSelection,Gc as updateViewsSelection}from'../_chunks/chunk-6PFNZ34W.js';import'../_chunks/chunk-JEYHEF5M.js';import'../_chunks/chunk-YEPPVZXT.js';import'../_chunks/chunk-
|
|
1
|
+
export{Dc as DEFAULT_SKELETON_WIDTHS,tc as SELECTION_COLORS,wc as alignToJustifyContent,Fa as api,Ic as applyColumnFiltersGate,dc as backendErrorHandler,bb as calculateMaxAllowedRows,pb as capitalizeFirstLetter,tb as capitalizeString,E as changeDateTimezone,Ea as clearTapOsLocalStorage,Oa as conversionTypesLabels,C as convertCalendarDateToUTC,Va as convertToNumber,D as convertUTCtoLocalDate,ob as copyText,Pa as currencyConfig,Xb as downloadFile,Cb as extractIdsFromRowData,Qb as filterShownColumns,Sa as formatAmount,Ta as formatAmountWithCurrency,I as formatCellDate,Ra as formatCurrencyWithInput,J as formatDate,Za as formatFlagDate,S as formatInTimezone,Lc as formatLogDate,r as formatNumber,q as formatOrdinal,Ya as formatPayoutDate,N as formatRelativeTimeWithinHour,L as formatSecondsAsTime,y as formatUTCOffset,Q as generateBirthYearList,wb as generateChargeErrors,F as generateDayList,G as generateMonthList,R as generatePastYearList,kc as generateReportLocalStorageKey,Ec as generateSkeletonColumns,nb as generateUniqueUUID,H as generateYearList,w as getAmountPlaceholder,$b as getApiErrorMessage,ec as getApp,Ha as getBrowserName,W as getBusinessSegmentConfig,qa as getCalenderTimezone,ra as getCalenderTimezoneHistory,ub as getCardNumber,ab as getCellWidth,Rb as getColumnOrderFromViews,$a as getColumnWidthPercentage,Mc as getComponentId,Ua as getConversion,Wa as getCountryNameByISO,z as getDefaultDateRange,jc as getFileIconFromExtension,mb as getFirstChar,rc as getGeographyBoxColor,va as getGlobalTableModeStorage,Ga as getHeaders,gc as getIdentificationTypeList,sc as getLocalizedUnitLabel,ia as getLoggedInUserActiveSegment,ga as getLoggedInUserData,da as getLoggedInUserJwtToken,ha as getLoggedInUserSegment,nc as getNameText,aa as getNavigationData,Y as getNonBusinessSegmentConfig,T as getOrderedWeekDays,vb as getPaymentMethodWithId,pc as getPaymentTypeKey,_a as getPayoutDetails,Wb as getPhoneDetails,fb as getPossibleActionNavigationView,Aa as getPreviewStorage,Fc as getProcessedColumns,Ka as getRandomColor,La as getRandomGradientColor,ma as getReportRecord,vc as getRowSelectionBorderStyles,_ as getSecretKey,V as getSegmentData,uc as getSelectionStyles,fc as getService,ya as getSheetViewColumnsStorage,mc as getTextByLang,U as getTimestamp,B as getTimestampByTimezone,zc as getTimezoneByCountryCode,Ac as getTimezoneByTimezone,x as getUTCOffset,A as getUTCTimestamp,o as getUniqueListBy,Ja as getUserAgentDeviceType,oc as getUsername,K as getValueOfEndOfDay,Ca as getViewsSelectionStorage,Yb as handleFileDownload,Zb as handleURLDownload,Hc as hasActiveColumnFilters,ac as hasError,Ma as hexa2Rgba,Qa as intlCurrency,lc as isArabic,yb as isEmptyValue,ic as isFile,cb as isHeightNotFullyFilledByRows,ja as isJwtTokenExpired,_b as isNetworkError,cc as isNotFoundError,Sb as isParameterSelected,Ia as isSafariBrowser,qc as isSamePaymentSource,Xa as isSaudiArabia,X as isSegmentActLikeBusinessSegment,db as isTableDefaultMode,eb as isTableSheetMode,Ab as isTapstersFrontend,bc as isTimeoutError,O as isTodayDate,ka as isUserLoggedInAndJwtTokenActive,p as isValidNumber,jb as isValidString,M as isWithinTimeAgo,P as isYesterdayDate,yc as joinClassNames,Tb as mapDataToViews,Ub as mapViewsToData,rb as maskValue,lb as matchOccurrence,xc as mergeSx,u as numberToString,v as pad,s as parseAmount,qb as percentageToNumber,hc as readableFileSize,Bb as removeAllCharsFromNumber,sa as removeCalenderTimezone,ta as removeCalenderTimezoneHistory,wa as removeGlobalTableModeStorage,ea as removeLoggedInUserJwtToken,ba as removeNavigationData,kb as removePrefixFromString,Ba as removePreviewStorage,na as removeReportRecord,n as removeUndefinedArrayElements,zb as removeUndefinedArrayValues,xb as removeUndefinedValues,Na as rgba2Hexa,Jc as sanitizeHtml,oa as setCalenderTimezone,pa as setCalenderTimezoneHistory,ua as setGlobalTableModeStorage,fa as setLoggedInUserData,ca as setLoggedInUserJwtToken,$ as setNavigationData,za as setPreviewStorage,la as setReportRecord,Z as setSecretKey,xa as setSheetViewColumnsStorage,Da as setViewsSelectionStorage,m as sortByString,l as sortList,t as stringToNumber,Kc as trackFeatureEvent,Bc as transformPaymentMethodsData,Cc as transformPaymentSchemesData,sb as transformStringToProperCase,Vb as updateColumnSelection,Gc as updateViewsSelection}from'../_chunks/chunk-6PFNZ34W.js';import'../_chunks/chunk-JEYHEF5M.js';import'../_chunks/chunk-YEPPVZXT.js';import'../_chunks/chunk-VWSQS7GB.js';import'../_chunks/chunk-YRT7GXGY.js';
|
package/package.json
CHANGED