@dashadmin/dash-admin 1.3.74-srcfree.1 → 1.3.74-srcfree.2
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/dist/AppAsyncWrapper.d.ts +3 -0
- package/dist/AppWrapper.d.ts +3 -0
- package/dist/DASHAdmin.d.ts +38 -0
- package/dist/RoutingWrapper.d.ts +10 -0
- package/dist/classes/DASHStorageClass.d.ts +5 -0
- package/dist/components/Input/RichTextField.d.ts +4 -0
- package/dist/components/Redirect.d.ts +9 -0
- package/dist/components/avatar/Avatar.d.ts +7 -0
- package/dist/components/avatar/SingleImageUploader.d.ts +9 -0
- package/dist/components/currency/Format.d.ts +4 -0
- package/dist/components/custom/Redirect.d.ts +7 -0
- package/dist/components/error/Error.d.ts +31 -0
- package/dist/components/geocoding/GeocodingField.d.ts +4 -0
- package/dist/components/i18n/BridgedLocalesMenuButton.d.ts +7 -0
- package/dist/components/i18n/LangSwitcher.d.ts +10 -0
- package/dist/components/loader/GlobalLoader.d.ts +6 -0
- package/dist/components/logs/LogFile.d.ts +6 -0
- package/dist/components/logs/LogFileById.d.ts +6 -0
- package/dist/components/logs/LogViewer.d.ts +8 -0
- package/dist/components/menu/AppMenu.d.ts +7 -0
- package/dist/components/menu/CustomMenuItemLink.d.ts +12 -0
- package/dist/components/menu/DarkToggleMode.d.ts +3 -0
- package/dist/components/menu/LanguageToggleMode.d.ts +3 -0
- package/dist/components/misc/CustomImageInput.d.ts +4 -0
- package/dist/components/misc/DASHGlobalErrorHandler.d.ts +10 -0
- package/dist/components/misc/DarkModeSwitcher.d.ts +3 -0
- package/dist/components/misc/HorizontalScroller.d.ts +14 -0
- package/dist/components/misc/LanguageSwitcher.d.ts +10 -0
- package/dist/components/misc/MuiSimpleJsonTable.d.ts +16 -0
- package/dist/components/misc/MultiLevelTable.d.ts +18 -0
- package/dist/components/misc/NoResults.d.ts +6 -0
- package/dist/components/misc/PDFViewer.d.ts +4 -0
- package/dist/components/navigation/Breadcrumbs.d.ts +14 -0
- package/dist/components/navigation/BreadcrumbsManager.d.ts +14 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/panel/Error.d.ts +31 -0
- package/dist/components/permission/AvailablePermissionsContext.d.ts +11 -0
- package/dist/components/permission/PermissionsSelector.d.ts +4 -0
- package/dist/components/permission/PermissionsSelectorList.d.ts +4 -0
- package/dist/components/racustombuttons/CustomRAButton.d.ts +23 -0
- package/dist/components/racustombuttons/QuickButton.d.ts +15 -0
- package/dist/components/racustombuttons/QuickEditButton.d.ts +28 -0
- package/dist/components/racustombuttons/QuickIconButton.d.ts +27 -0
- package/dist/components/scrollbar/Scrollbar.d.ts +7 -0
- package/dist/components/selects/MultiSelect.d.ts +4 -0
- package/dist/components/selects/RASearchableSelect.d.ts +25 -0
- package/dist/components/selects/RASearchableSelectChips.d.ts +29 -0
- package/dist/components/selects/SearchableSelect.d.ts +3 -0
- package/dist/components/serviceAccount/ApiKeyRevealDialog.d.ts +7 -0
- package/dist/components/serviceAccount/ServiceAccountStatusSwitch.d.ts +4 -0
- package/dist/components/subscription/BillingCycleSelectInput.d.ts +3 -0
- package/dist/components/subscription/PlanAddonsSettings.d.ts +4 -0
- package/dist/components/subscription/PlanAuditLog.d.ts +4 -0
- package/dist/components/subscription/PlanFeaturesSettings.d.ts +4 -0
- package/dist/components/subscription/PlanLimitsSettings.d.ts +4 -0
- package/dist/components/subscription/PlanMetadataSettings.d.ts +4 -0
- package/dist/components/subscription/PlanPricesSettings.d.ts +4 -0
- package/dist/components/subscription/index.d.ts +5 -0
- package/dist/components/svgelements/SvgLoading.d.ts +3 -0
- package/dist/components/svgelements/SvgLogo.d.ts +3 -0
- package/dist/components/svgelements/SvgLogoMin.d.ts +3 -0
- package/dist/components/svgelements/SvgShipping.d.ts +3 -0
- package/dist/components/tenancy/GlobalTenantWrapper.d.ts +6 -0
- package/dist/components/tenancy/TenantSwitcher.d.ts +16 -0
- package/dist/components/tenant/AvailablePermissionsContext.d.ts +0 -0
- package/dist/components/tenant/SettingsSections.d.ts +11 -0
- package/dist/components/tenant/TenancyPlan.d.ts +4 -0
- package/dist/components/tenant/TenancySettings.d.ts +4 -0
- package/dist/components/tenant/TenantAttributes.d.ts +4 -0
- package/dist/components/tenant/TenantAttributesContext.d.ts +10 -0
- package/dist/components/tenant/TenantSelector.d.ts +11 -0
- package/dist/components/tenant/TenantSettings.d.ts +4 -0
- package/dist/components/tenant/TenantSettingsContext.d.ts +11 -0
- package/dist/components/tenant/TenantTheme.d.ts +4 -0
- package/dist/components/user/AvatarComponent.d.ts +6 -0
- package/dist/components/user/TenantAvatarComponent.d.ts +15 -0
- package/dist/components/user/UserPreferences.d.ts +3 -0
- package/dist/config/ACTIONS.d.ts +3 -0
- package/dist/config/ConstantsService.d.ts +14 -0
- package/dist/config/DASHAdminSystemConstants.d.ts +120 -0
- package/dist/config/PARSERS.d.ts +5 -0
- package/dist/contexts/DashQueryClientContext.d.ts +19 -0
- package/dist/contexts/DashResourceContext.d.ts +11 -0
- package/dist/contexts/I18nBridgeContext.d.ts +18 -0
- package/dist/contexts/I18nBridgeSetter.d.ts +3 -0
- package/dist/contexts/I18nReduxSync.d.ts +6 -0
- package/dist/contexts/SubscriptionPlanFormatsProvider.d.ts +13 -0
- package/dist/contexts/SystemRequestsCache.d.ts +16 -0
- package/dist/contexts/auth/AuthContext.d.ts +40 -0
- package/dist/contexts/auth/AuthContextLocalStorage.d.ts +27 -0
- package/dist/contexts/auth/DASHAuthenticationService.d.ts +46 -0
- package/dist/contexts/auth/WindowContext.d.ts +8 -0
- package/dist/contexts/auth/index.d.ts +2 -0
- package/dist/contexts/com/FCMContext.d.ts +62 -0
- package/dist/contexts/com/LaravelEchoContext.d.ts +18 -0
- package/dist/contexts/com/LaravelEchoMgr.d.ts +8 -0
- package/dist/contexts/com/components/DefaultNotificationComponent.d.ts +6 -0
- package/dist/contexts/com/components/EchoNotificationsCenter.d.ts +3 -0
- package/dist/contexts/com/components/NotificationAttributesTable.d.ts +8 -0
- package/dist/contexts/com/components/NotificationRenderer.d.ts +8 -0
- package/dist/contexts/com/components/NotificationsWidget.d.ts +17 -0
- package/dist/contexts/com/components/notificationFormats.d.ts +38 -0
- package/dist/contexts/com/useLaravelEcho.d.ts +37 -0
- package/dist/contexts/dictionary/DictionaryContext.d.ts +21 -0
- package/dist/default-theme/DASHAppProviders.d.ts +21 -0
- package/dist/default-theme/DashThemeContext.d.ts +17 -0
- package/dist/default-theme/DashThemeHelperProvider.d.ts +10 -0
- package/dist/default-theme/DomainAppLayout.d.ts +13 -0
- package/dist/default-theme/DomainHeader.d.ts +6 -0
- package/dist/default-theme/DomainTheme.d.ts +8 -0
- package/dist/default-theme/FullLayoutMarkup.d.ts +9 -0
- package/dist/default-theme/StaticLayout.d.ts +5 -0
- package/dist/default-theme/index.d.ts +8 -0
- package/dist/default-theme/menu/AppDashboardGrid.d.ts +24 -0
- package/dist/default-theme/menu/AppMaterialMenu.d.ts +11 -0
- package/dist/default-theme/menu/AppMenuComponents/SubmenuPortal.d.ts +15 -0
- package/dist/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItem.d.ts +22 -0
- package/dist/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItems.d.ts +11 -0
- package/dist/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.d.ts +4 -0
- package/dist/default-theme/menu/AppMenuComponents/expanded/SidebarItem.d.ts +3 -0
- package/dist/default-theme/menu/AppMenuComponents/getItem.d.ts +3 -0
- package/dist/default-theme/menu/AppMenuComponents/interfaces.d.ts +36 -0
- package/dist/default-theme/menu/AppMenuComponents/submenuConstants.d.ts +7 -0
- package/dist/default-theme/menu/AppSidebarMaterial.d.ts +8 -0
- package/dist/default-theme/menu/SidebarActions.d.ts +8 -0
- package/dist/default-theme/updateDomCssVariables.d.ts +6 -0
- package/dist/helpers/checkRole.d.ts +2 -0
- package/dist/helpers/parseAxiosError.d.ts +1 -0
- package/dist/hooks/audio/useAudio.d.ts +2 -0
- package/dist/hooks/axios.d.ts +5 -0
- package/dist/hooks/data/useDashboardStats.d.ts +13 -0
- package/dist/hooks/data/usePackageByClientsStats.d.ts +13 -0
- package/dist/hooks/data/usePackageByCommunesStats.d.ts +13 -0
- package/dist/hooks/data/usePackageStats.d.ts +13 -0
- package/dist/hooks/data/usePackageWithdrawDetails.d.ts +25 -0
- package/dist/hooks/data/useStats.d.ts +9 -0
- package/dist/hooks/isCurrentPath.d.ts +3 -0
- package/dist/hooks/notifications/WSMessagesManager.d.ts +4 -0
- package/dist/hooks/notifications/WSPusherManager.d.ts +3 -0
- package/dist/hooks/useBreadcrumbs.d.ts +21 -0
- package/dist/hooks/useClickOutside.d.ts +2 -0
- package/dist/hooks/useFormPersistance.d.ts +13 -0
- package/dist/hooks/useGlobalErrorMediator.d.ts +5 -0
- package/dist/hooks/useGlobalLoaderMgr.d.ts +3 -0
- package/dist/hooks/useHash.d.ts +2 -0
- package/dist/hooks/useLocalStorage.d.ts +2 -0
- package/dist/hooks/usePolyglotTranslation.d.ts +11 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/hooks/usePrintSelected.d.ts +12 -0
- package/dist/hooks/useVirtualHash.d.ts +5 -0
- package/dist/hooks/window/useWindowSize.d.ts +6 -0
- package/dist/index.d.ts +65 -0
- package/dist/interfaces/IAppResourceConfig.d.ts +10 -0
- package/dist/interfaces/Log.d.ts +15 -0
- package/dist/interfaces/Tenant.d.ts +25 -0
- package/dist/interfaces/communication/IActions.d.ts +4 -0
- package/dist/interfaces/communication/INotification.d.ts +19 -0
- package/dist/interfaces/communication/IPayload.d.ts +3 -0
- package/dist/interfaces/communication/IRequestAction.d.ts +10 -0
- package/dist/interfaces/communication/IRequestPayload.d.ts +7 -0
- package/dist/interfaces/communication/IResponseAction.d.ts +7 -0
- package/dist/interfaces/misc/IAny.d.ts +3 -0
- package/dist/interfaces/misc/IFlashMessage.d.ts +10 -0
- package/dist/interfaces/navigation/IAppMenu.d.ts +11 -0
- package/dist/interfaces/navigation/ICollapsableSidebarMenu.d.ts +10 -0
- package/dist/interfaces/navigation/IMenuItem.d.ts +14 -0
- package/dist/interfaces/notifications/IModel.d.ts +5 -0
- package/dist/interfaces/notifications/IModelField.d.ts +10 -0
- package/dist/interfaces/notifications/IUserNotification.d.ts +11 -0
- package/dist/interfaces/notifications/IUserNotificationData.d.ts +12 -0
- package/dist/interfaces/notifications/IUserNotificationPayload.d.ts +10 -0
- package/dist/interfaces/user/IGetAuth.d.ts +75 -0
- package/dist/interfaces/user/ITenantSettings.d.ts +3 -0
- package/dist/interfaces/user/IUser.d.ts +60 -0
- package/dist/interfaces/user/IUserSettings.d.ts +36 -0
- package/dist/interfaces.d.ts +5 -0
- package/dist/layout/AppLayout.d.ts +5 -0
- package/dist/layout/ApplicationLayout.d.ts +22 -0
- package/dist/layout/MotionWrapper.d.ts +22 -0
- package/dist/layout/MotionWrapper.original.d.ts +22 -0
- package/dist/layout/ResourceMenu.d.ts +7 -0
- package/dist/layout/ResoureLayout.d.ts +8 -0
- package/dist/layout/TransitionWrapper.d.ts +8 -0
- package/dist/pages/ChangePassword.d.ts +6 -0
- package/dist/pages/DASHLanding.d.ts +5 -0
- package/dist/pages/DASHLightWeightLogin.d.ts +6 -0
- package/dist/pages/DASHSimpleLogin.d.ts +6 -0
- package/dist/pages/Login.d.ts +3 -0
- package/dist/pages/Profile.d.ts +3 -0
- package/dist/pages/RecoverPassword.d.ts +3 -0
- package/dist/pages/SingleImageUploader.d.ts +8 -0
- package/dist/pages/VerifyAccount.d.ts +5 -0
- package/dist/providers/authProvider.d.ts +15 -0
- package/dist/providers/dataProvider.d.ts +31 -0
- package/dist/providers/i18n/en.d.ts +569 -0
- package/dist/providers/i18n/es.d.ts +2 -0
- package/dist/providers/i18n/languages.d.ts +571 -0
- package/dist/providers/i18n/mergeTranslations.d.ts +3 -0
- package/dist/providers/i18nProvider.d.ts +2 -0
- package/dist/react-admin-dash/RADashComponent.d.ts +7 -0
- package/dist/react-admin-dash/Resource.d.ts +16 -0
- package/dist/resources/Brand/BrandResource.d.ts +3 -0
- package/dist/resources/DASHResourceLoader.d.ts +17 -0
- package/dist/resources/Log/LogResource.d.ts +3 -0
- package/dist/resources/Tenant/ImpersonateTenantResource.d.ts +5 -0
- package/dist/resources/Trash/TrashTemplate.d.ts +3 -0
- package/dist/resources/User/components/AvatarUploadField.d.ts +6 -0
- package/dist/resources/User/components/PasswordFields.d.ts +8 -0
- package/dist/resources/User/getProfileMenu.d.ts +4 -0
- package/dist/resources/User/profileResource.d.ts +3 -0
- package/dist/resources/User/userLayout.d.ts +2 -0
- package/dist/resources/User/userResource.d.ts +3 -0
- package/dist/resources/User/userSchema.d.ts +3 -0
- package/dist/resources/User/usersFilters.d.ts +3 -0
- package/dist/resources.d.ts +11 -0
- package/dist/schemas/log.d.ts +3 -0
- package/dist/schemas/notification.d.ts +3 -0
- package/dist/schemas/permissions.d.ts +3 -0
- package/dist/schemas/roles.d.ts +3 -0
- package/dist/schemas/rolesDataGrid.d.ts +3 -0
- package/dist/schemas/subscription/components/SubscriptionActions.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPaymentHistory.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanFeatures.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanPreview.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionPlanStats.d.ts +4 -0
- package/dist/schemas/subscription/components/SubscriptionStatusIndicator.d.ts +4 -0
- package/dist/schemas/subscription/subscriptionPlanSchema.d.ts +3 -0
- package/dist/schemas/subscription/subscriptionSchema.d.ts +3 -0
- package/dist/schemas/subscriptionPlan.d.ts +3 -0
- package/dist/schemas/tenant.d.ts +3 -0
- package/dist/schemas/tenantUser.d.ts +3 -0
- package/dist/schemas/tenant_superadmin.d.ts +3 -0
- package/dist/schemas/user.d.ts +3 -0
- package/dist/systemResources.d.ts +3 -0
- package/dist/systemResources.old.d.ts +3 -0
- package/dist/templates/ResourceTemplate.d.ts +10 -0
- package/dist/templates/ResourceTemplateCreate.d.ts +3 -0
- package/dist/templates/ResourceTemplateEdit.d.ts +3 -0
- package/dist/templates/ResourceTemplateFull.d.ts +7 -0
- package/dist/templates/ResourceTemplateList.d.ts +8 -0
- package/dist/templates/ResourceTemplateShow.d.ts +3 -0
- package/dist/templates/TrashTemplate.d.ts +3 -0
- package/dist/tenantResources.d.ts +3 -0
- package/dist/test_portal_bubbles.d.ts +2 -0
- package/dist/theme/AppHeader.d.ts +6 -0
- package/dist/theme/AppLayoutSetting.d.ts +28 -0
- package/dist/theme/AppLogo.d.ts +8 -0
- package/dist/theme/AppSidebar.d.ts +7 -0
- package/dist/theme/AppSidebarContent.d.ts +12 -0
- package/dist/theme/AppSidebarLogo.d.ts +9 -0
- package/dist/theme/components/PageTitle.d.ts +10 -0
- package/dist/utils/cache/CacheInvalidatorContext.d.ts +25 -0
- package/dist/utils/cache/CacheInvalidatorListenerComponent.d.ts +3 -0
- package/dist/utils/cache/useCacheInvalidatorListener.d.ts +4 -0
- package/dist/utils/convertFileToBase64.d.ts +2 -0
- package/dist/utils/convertToFile.d.ts +2 -0
- package/dist/utils/cookies.d.ts +5 -0
- package/dist/utils/dashDefaultQueryClient.d.ts +3 -0
- package/dist/utils/dataUrlToBlob.d.ts +2 -0
- package/dist/utils/deepReplace.d.ts +2 -0
- package/dist/utils/getProfileMenu.d.ts +3 -0
- package/dist/utils/getTenantSettings.d.ts +3 -0
- package/dist/utils/getType.d.ts +2 -0
- package/dist/utils/getUserSettings.d.ts +3 -0
- package/dist/utils/hasCode.d.ts +2 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/injectTenantStyles.d.ts +2 -0
- package/dist/utils/isComponent.d.ts +2 -0
- package/dist/utils/navEvents.d.ts +28 -0
- package/dist/utils/prototypes.d.ts +0 -0
- package/dist/utils/regexp.d.ts +1 -0
- package/dist/utils/resolveObjectPath.d.ts +2 -0
- package/dist/utils/setNativeValue.d.ts +2 -0
- package/dist/utils/slugify.d.ts +1 -0
- package/dist/utils/validators/emailValidator.d.ts +2 -0
- package/dist/utils/validators/requiredValidator.d.ts +2 -0
- package/dist/utils/validators/rutValidator.d.ts +2 -0
- package/dist/utils/validators.d.ts +3 -0
- package/package.json +15 -15
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PlanLimitsSettings } from './PlanLimitsSettings';
|
|
2
|
+
export { default as PlanPricesSettings } from './PlanPricesSettings';
|
|
3
|
+
export { default as PlanFeaturesSettings } from './PlanFeaturesSettings';
|
|
4
|
+
export { default as PlanMetadataSettings } from './PlanMetadataSettings';
|
|
5
|
+
export { default as PlanAddonsSettings } from './PlanAddonsSettings';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TenantSwitcherProps {
|
|
3
|
+
defaultHorizontalLogo?: string;
|
|
4
|
+
defaultSquaredLogo?: string;
|
|
5
|
+
defaultLoginBackground?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TenantSwitchEventDetail {
|
|
8
|
+
tenantId: string | null;
|
|
9
|
+
tenantName: string;
|
|
10
|
+
isTenanancyLevel: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const dispatchTenantSwitchEvent: (detail: TenantSwitchEventDetail) => void;
|
|
13
|
+
export declare const getActiveTenantId: () => string | null;
|
|
14
|
+
export declare const isTenantImpersonationEnabled: () => boolean;
|
|
15
|
+
declare const TenantSwitcher: React.FC<TenantSwitcherProps>;
|
|
16
|
+
export default TenantSwitcher;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const FormTabsRenderer: React.FC<{
|
|
3
|
+
schema: any;
|
|
4
|
+
method: "list" | "create" | "edit" | "view";
|
|
5
|
+
label: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const SettingsSections: React.FC<{
|
|
8
|
+
schema: any[];
|
|
9
|
+
method: "list" | "create" | "edit" | "view";
|
|
10
|
+
translationNamespace?: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function idbSet(key: string, value: any): Promise<void>;
|
|
2
|
+
export declare function idbGet(key: string): Promise<any>;
|
|
3
|
+
export declare const TenantAttributesFormatsProvider: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function useTenantAttributesFormats(): {
|
|
7
|
+
formats: any;
|
|
8
|
+
fetchFormats: () => Promise<void>;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tenant } from '../../interfaces/Tenant';
|
|
3
|
+
export type TTenantSelectorHandlers = {
|
|
4
|
+
getSelectedTenant: () => Tenant;
|
|
5
|
+
};
|
|
6
|
+
export interface ITenantSelectorProps {
|
|
7
|
+
selectedTenantInput?: string;
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare const TenantSelector: React.ForwardRefExoticComponent<Omit<ITenantSelectorProps, "ref"> & React.RefAttributes<TTenantSelectorHandlers>>;
|
|
11
|
+
export default TenantSelector;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function idbSet(key: string, value: any): Promise<void>;
|
|
2
|
+
export declare function idbGet(key: string): Promise<any>;
|
|
3
|
+
export declare const TenantSettingsFormatsProvider: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useTenantSettingsFormats: () => {
|
|
7
|
+
formats: any;
|
|
8
|
+
fetchFormats: () => Promise<void>;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default TenantSettingsFormatsProvider;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SidebarPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
3
|
+
interface TenantAvatarComponentProps {
|
|
4
|
+
imageUrl?: string | null;
|
|
5
|
+
maxWidth?: number | string;
|
|
6
|
+
maxHeight?: number | string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
sidebarPosition?: SidebarPosition;
|
|
9
|
+
sidebarSmallWidth?: number | string;
|
|
10
|
+
navExpanded?: boolean;
|
|
11
|
+
navSize?: "small" | "large";
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const TenantAvatarComponent: React.FC<TenantAvatarComponentProps>;
|
|
15
|
+
export default TenantAvatarComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IDASHAdminSystemConstants } from 'dash-constants/src/DASHAdminSystemConstants';
|
|
3
|
+
export interface IConstantContext<T> {
|
|
4
|
+
systemConstants: IDASHAdminSystemConstants;
|
|
5
|
+
appConstants: T;
|
|
6
|
+
setAppConstants: React.Dispatch<React.SetStateAction<T>>;
|
|
7
|
+
}
|
|
8
|
+
export declare const createConstantsContext: <T>() => React.Context<IConstantContext<T>>;
|
|
9
|
+
export declare const ConstantsContext: React.Context<IConstantContext<unknown>>;
|
|
10
|
+
export interface IConstantsProvider<T> extends React.PropsWithChildren {
|
|
11
|
+
initialAppConstants?: T;
|
|
12
|
+
}
|
|
13
|
+
declare const ConstantsProvider: <T>(props: IConstantsProvider<T>) => React.JSX.Element;
|
|
14
|
+
export default ConstantsProvider;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export declare const getEnv: (key: string) => any;
|
|
2
|
+
declare const system: {
|
|
3
|
+
FRONTEND_URL: any;
|
|
4
|
+
API_URL: any;
|
|
5
|
+
SOCKET_URL: string;
|
|
6
|
+
SOCKETS_ENABLED: any;
|
|
7
|
+
SOCKETS_BROADCASTER: any;
|
|
8
|
+
SOCKETS_KEY: any;
|
|
9
|
+
ADMIN_API_URL: any;
|
|
10
|
+
DEBUG: boolean;
|
|
11
|
+
SHOW_GLOBAL_TOAST_ERROR: boolean;
|
|
12
|
+
SHOW_GLOBAL_DIALOG_ERROR: boolean;
|
|
13
|
+
DASH_SYSTEM_ROLE: any;
|
|
14
|
+
DASH_ADMIN_ROLE: any;
|
|
15
|
+
HAS_ADMINISTRATOR_ID_ROLE: string;
|
|
16
|
+
ENABLE_TENANT_LOGIC: any;
|
|
17
|
+
ENABLE_TENANT_IMPERSONATION: any;
|
|
18
|
+
ENABLE_LOGS_AND_NOTIFICATIONS: any;
|
|
19
|
+
DEFAULT_PER_PAGE: number;
|
|
20
|
+
URL_PREFIX: any;
|
|
21
|
+
PAGE_TRANSITIONS: boolean;
|
|
22
|
+
GOOGLE_SIGNUP: any;
|
|
23
|
+
RECAPTCHA_ENABLED: any;
|
|
24
|
+
RECAPTCHA_TOKEN: any;
|
|
25
|
+
APP_VERSION: any;
|
|
26
|
+
BUILD_TIME: any;
|
|
27
|
+
IS_ELECTRON: any;
|
|
28
|
+
PLATFORM: any;
|
|
29
|
+
IS_WINDOWS: any;
|
|
30
|
+
IS_MAC: any;
|
|
31
|
+
IS_LINUX: any;
|
|
32
|
+
PLATFORM_TYPE: any;
|
|
33
|
+
};
|
|
34
|
+
declare const panel: {
|
|
35
|
+
SIDEBAR_WIDTH: any;
|
|
36
|
+
SIDEBAR_COLLAPSED_WIDTH: any;
|
|
37
|
+
TAB_SIZE: number;
|
|
38
|
+
MOBILE_SIZE: number;
|
|
39
|
+
THEME_TYPE: string;
|
|
40
|
+
THEME_TYPE_LIGHT: string;
|
|
41
|
+
THEME_TYPE_DARK: string;
|
|
42
|
+
THEME_TYPE_DASH_DEFAULT: string;
|
|
43
|
+
THEME_TYPE_SEMI_DARK: string;
|
|
44
|
+
THEME_COLOR: string;
|
|
45
|
+
UPDATE_RTL_STATUS: string;
|
|
46
|
+
LAYOUT_TYPE: string;
|
|
47
|
+
LAYOUT_TYPE_FRAMED: string;
|
|
48
|
+
LAYOUT_TYPE_BOXED: string;
|
|
49
|
+
LAYOUT_TYPE_FULL: string;
|
|
50
|
+
NAV_STYLE: string;
|
|
51
|
+
NAV_STYLE_FIXED: string;
|
|
52
|
+
NAV_STYLE_MINI_SIDEBAR: string;
|
|
53
|
+
NAV_STYLE_DRAWER: string;
|
|
54
|
+
NAV_STYLE_NO_HEADER_MINI_SIDEBAR: string;
|
|
55
|
+
NAV_STYLE_NO_HEADER_EXPANDED_SIDEBAR: string;
|
|
56
|
+
NAV_STYLE_DEFAULT_HORIZONTAL: string;
|
|
57
|
+
NAV_STYLE_DARK_HORIZONTAL: string;
|
|
58
|
+
NAV_STYLE_INSIDE_HEADER_HORIZONTAL: string;
|
|
59
|
+
NAV_STYLE_BELOW_HEADER: string;
|
|
60
|
+
NAV_STYLE_ABOVE_HEADER: string;
|
|
61
|
+
NAV_STYLE_COLLAPSABLE: string;
|
|
62
|
+
LIGHT_PURPLE: string;
|
|
63
|
+
LIGHT_PURPLE_SEC: string;
|
|
64
|
+
LIGHT_PURPLE_DARK_TEXT_COLOR: string;
|
|
65
|
+
RED: string;
|
|
66
|
+
RED_SEC: string;
|
|
67
|
+
RED_DARK_TEXT_COLOR: string;
|
|
68
|
+
BLUE: string;
|
|
69
|
+
BLUE_SEC: string;
|
|
70
|
+
BLUE_DARK_TEXT_COLOR: string;
|
|
71
|
+
DARK_BLUE: string;
|
|
72
|
+
DARK_BLUE_SEC: string;
|
|
73
|
+
DARK_BLUE_DARK_TEXT_COLOR: string;
|
|
74
|
+
ORANGE: string;
|
|
75
|
+
ORANGE_SEC: string;
|
|
76
|
+
ORANGE_DARK_TEXT_COLOR: string;
|
|
77
|
+
LIGHT_BLUE: string;
|
|
78
|
+
LIGHT_BLUE_SEC: string;
|
|
79
|
+
LIGHT_BLUE_DARK_TEXT_COLOR: string;
|
|
80
|
+
DEEP_ORANGE: string;
|
|
81
|
+
DEEP_ORANGE_SEC: string;
|
|
82
|
+
DEEP_ORANGE_DARK_TEXT_COLOR: string;
|
|
83
|
+
LIGHT_PURPLE_1: string;
|
|
84
|
+
LIGHT_PURPLE_1_SEC: string;
|
|
85
|
+
LIGHT_PURPLE_1_DARK_TEXT_COLOR: string;
|
|
86
|
+
LIGHT_PURPLE_2: string;
|
|
87
|
+
LIGHT_PURPLE_2_SEC: string;
|
|
88
|
+
LIGHT_PURPLE_2_DARK_TEXT_COLOR: string;
|
|
89
|
+
ACTIVE_COLOR_OPTION: string;
|
|
90
|
+
};
|
|
91
|
+
declare const dict: {
|
|
92
|
+
SYSTEM_FORM_DEFAULT_SELECT_OPTION: string;
|
|
93
|
+
NO_AVAILABLE_NOTIFICATIONS: string;
|
|
94
|
+
ALL_NOTIFICATIONS: string;
|
|
95
|
+
NOTIFICATIONS_WIDGET_TITLE: string;
|
|
96
|
+
type: string;
|
|
97
|
+
date: string;
|
|
98
|
+
name: string;
|
|
99
|
+
filepath: string;
|
|
100
|
+
json: string;
|
|
101
|
+
clientName: string;
|
|
102
|
+
withdrawsToday: string;
|
|
103
|
+
withdrawsYesterday: string;
|
|
104
|
+
withdrawsLastWeek: string;
|
|
105
|
+
volumeCp: string;
|
|
106
|
+
'validation.recaptcha': string;
|
|
107
|
+
};
|
|
108
|
+
declare const replacements: {
|
|
109
|
+
profile: string;
|
|
110
|
+
};
|
|
111
|
+
declare const helpers: {};
|
|
112
|
+
declare const DASHAdminSystemConstants: IDASHAdminSystemConstants;
|
|
113
|
+
export interface IDASHAdminSystemConstants {
|
|
114
|
+
system: typeof system;
|
|
115
|
+
panel: typeof panel;
|
|
116
|
+
dict: typeof dict;
|
|
117
|
+
helpers: typeof helpers;
|
|
118
|
+
replacements: typeof replacements;
|
|
119
|
+
}
|
|
120
|
+
export default DASHAdminSystemConstants;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { Persister, PersistQueryClientOptions } from '@tanstack/react-query-persist-client';
|
|
4
|
+
export type IQueryClientContext = {
|
|
5
|
+
queryClient?: QueryClient;
|
|
6
|
+
persister?: Persister;
|
|
7
|
+
};
|
|
8
|
+
export interface IDASHQueryClientProvider {
|
|
9
|
+
queryClient?: QueryClient;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
persister?: Persister;
|
|
12
|
+
persistOptions?: Omit<PersistQueryClientOptions, 'queryClient' | 'persister'>;
|
|
13
|
+
}
|
|
14
|
+
export declare const DashQueryClientContext: React.Context<IQueryClientContext>;
|
|
15
|
+
declare const DashQueryClientProvider: FC<IDASHQueryClientProvider>;
|
|
16
|
+
export declare const useDashQueryClient: () => QueryClient;
|
|
17
|
+
export declare const useDashQueryPersister: () => Persister;
|
|
18
|
+
export declare const useIsCachePersisted: () => boolean;
|
|
19
|
+
export default DashQueryClientProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDashAutoAdminResourceConfig } from 'dash-auto-admin';
|
|
3
|
+
interface DashResourceContextType {
|
|
4
|
+
resourceConfig: IDashAutoAdminResourceConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare const DashResourceProvider: React.NamedExoticComponent<{
|
|
7
|
+
resourceConfig: IDashAutoAdminResourceConfig;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const useDashResource: () => DashResourceContextType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { I18nProvider } from 'react-admin';
|
|
3
|
+
export declare const LOCALE_CHANGE_EVENT = "dash:locale-change";
|
|
4
|
+
interface I18nBridgeContextValue {
|
|
5
|
+
i18nProvider: I18nProvider | null;
|
|
6
|
+
locale: string;
|
|
7
|
+
setI18nProvider: (provider: I18nProvider) => void;
|
|
8
|
+
setLocale: (locale: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const I18nBridgeContext: React.Context<I18nBridgeContextValue>;
|
|
11
|
+
export declare const I18nBridgeProvider: React.FC<{
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const useI18nBridge: () => I18nBridgeContextValue;
|
|
15
|
+
export declare const useBridgedLocales: () => import("react-admin").Locale[];
|
|
16
|
+
export declare const useBridgedChangeLocale: () => (locale: string) => Promise<void>;
|
|
17
|
+
export declare const useBridgedLocale: () => string;
|
|
18
|
+
export default I18nBridgeContext;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface SubscriptionPlanFormatsContextValue {
|
|
2
|
+
formats: any;
|
|
3
|
+
addonFormats: any;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
fetchFormats: () => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
interface SubscriptionPlanFormatsProviderProps {
|
|
8
|
+
cacheSeconds?: number;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const SubscriptionPlanFormatsProvider: React.FC<SubscriptionPlanFormatsProviderProps>;
|
|
12
|
+
export declare function useSubscriptionPlanFormats(): SubscriptionPlanFormatsContextValue;
|
|
13
|
+
export default SubscriptionPlanFormatsProvider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function idbSet(key: string, value: any): Promise<void>;
|
|
2
|
+
export declare function idbGet(key: string): Promise<any>;
|
|
3
|
+
interface SystemRequestsCacheContextValue {
|
|
4
|
+
formats: any;
|
|
5
|
+
fetchFormats: () => Promise<void>;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface SystemRequestsCacheProviderProps {
|
|
9
|
+
cacheKey: string;
|
|
10
|
+
apiUrl: string;
|
|
11
|
+
cacheSeconds?: number;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const SystemRequestsCacheProvider: React.FC<SystemRequestsCacheProviderProps>;
|
|
15
|
+
export declare function useSystemRequestsCache(): SystemRequestsCacheContextValue;
|
|
16
|
+
export default SystemRequestsCacheProvider;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IGetAuth } from '../../interfaces/user/IGetAuth';
|
|
2
|
+
import { IGetAuthUser } from '../../interfaces/user/IUser';
|
|
3
|
+
import React, { FC, PropsWithChildren } from 'react';
|
|
4
|
+
export declare class AuthContextClass {
|
|
5
|
+
static values: Partial<IAuthContextProps>;
|
|
6
|
+
}
|
|
7
|
+
export interface IAuthContextProps {
|
|
8
|
+
authenticated: boolean;
|
|
9
|
+
user: IGetAuthUser;
|
|
10
|
+
auth: IGetAuth;
|
|
11
|
+
token: string;
|
|
12
|
+
roles: any;
|
|
13
|
+
systemValues?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface IAuthContext {
|
|
16
|
+
user: IGetAuthUser;
|
|
17
|
+
authenticated: boolean;
|
|
18
|
+
auth?: IGetAuth;
|
|
19
|
+
token?: string;
|
|
20
|
+
roles?: any;
|
|
21
|
+
systemValues?: any;
|
|
22
|
+
updateValues: (values: Partial<IAuthContextProps>) => void;
|
|
23
|
+
logout: (callback?: () => void) => Promise<void>;
|
|
24
|
+
handleReactAdminIdentity: (identity: any) => void;
|
|
25
|
+
getPermissions: () => Promise<any>;
|
|
26
|
+
fetchAuth: () => Promise<any>;
|
|
27
|
+
getSystemValues: () => any;
|
|
28
|
+
getSystemValue: (key: string) => any;
|
|
29
|
+
getPointOfSales: () => any;
|
|
30
|
+
}
|
|
31
|
+
export declare const AuthContext: React.Context<IAuthContext>;
|
|
32
|
+
export interface IAuthContextProvider extends PropsWithChildren {
|
|
33
|
+
values?: Partial<IAuthContextProps>;
|
|
34
|
+
}
|
|
35
|
+
export declare const AuthContextProvider: FC<IAuthContextProvider>;
|
|
36
|
+
export declare const AuthContextConsumer: React.Consumer<IAuthContext>;
|
|
37
|
+
export declare const useAuthContext: () => IAuthContext;
|
|
38
|
+
export declare const setAuthEvent: (values: Partial<IAuthContextProps>) => Partial<IAuthContextProps>;
|
|
39
|
+
export declare const getAuthPermissions: () => Promise<any>;
|
|
40
|
+
export default AuthContext;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IGetAuth } from '../../interfaces/user/IGetAuth';
|
|
2
|
+
import { IGetAuthUser } from '../../interfaces/user/IUser';
|
|
3
|
+
import React, { FC, PropsWithChildren } from 'react';
|
|
4
|
+
export declare class AuthContextClass {
|
|
5
|
+
static values: Partial<IAuthContextProps>;
|
|
6
|
+
}
|
|
7
|
+
export interface IAuthContextProps {
|
|
8
|
+
authenticated: boolean;
|
|
9
|
+
user: IGetAuthUser;
|
|
10
|
+
auth: IGetAuth;
|
|
11
|
+
token: string;
|
|
12
|
+
roles: any;
|
|
13
|
+
}
|
|
14
|
+
export interface IAuthContext extends Partial<IAuthContextProps> {
|
|
15
|
+
updateValues: (values: Partial<IAuthContextProps>) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const AuthContextLocalStorage: React.Context<IAuthContext>;
|
|
18
|
+
export interface IAuthContextProvider extends PropsWithChildren {
|
|
19
|
+
values?: Partial<IAuthContextProps>;
|
|
20
|
+
}
|
|
21
|
+
export declare const AuthContextProvider: FC<IAuthContextProvider>;
|
|
22
|
+
export declare const AuthContextConsumer: React.Consumer<IAuthContext>;
|
|
23
|
+
export declare const useAuthContext: () => IAuthContext;
|
|
24
|
+
export declare const getAuthContext: () => Partial<IAuthContextProps>;
|
|
25
|
+
export declare const updateAuthContext: (values: Partial<IAuthContextProps>) => Partial<IAuthContextProps>;
|
|
26
|
+
export declare const setAuthContext: (values: Partial<IAuthContextProps>) => Partial<IAuthContextProps>;
|
|
27
|
+
export default AuthContextLocalStorage;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface DASHAuthenticationServiceLoginCredentials {
|
|
2
|
+
username: string;
|
|
3
|
+
password: string;
|
|
4
|
+
redirect?: string;
|
|
5
|
+
meta?: any;
|
|
6
|
+
}
|
|
7
|
+
export interface DASHAuthenticationServiceAuthResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
token?: string;
|
|
10
|
+
user?: any;
|
|
11
|
+
auth?: any;
|
|
12
|
+
refreshToken?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
redirectAfterLogin?: string;
|
|
15
|
+
}
|
|
16
|
+
declare class DASHAuthenticationService {
|
|
17
|
+
private axiosInstance;
|
|
18
|
+
private readonly REDIRECT_STORAGE_KEY;
|
|
19
|
+
constructor();
|
|
20
|
+
reinitializeAxios(options?: any): void;
|
|
21
|
+
private sanitizeRedirectUrl;
|
|
22
|
+
setPendingRedirect(url: string): void;
|
|
23
|
+
getPendingRedirect(): string | null;
|
|
24
|
+
clearPendingRedirect(): void;
|
|
25
|
+
private getRoleRedirect;
|
|
26
|
+
private determineRedirectUrl;
|
|
27
|
+
private syncActiveTenant;
|
|
28
|
+
login(credentials: DASHAuthenticationServiceLoginCredentials): Promise<DASHAuthenticationServiceAuthResponse>;
|
|
29
|
+
initializeFromToken(): Promise<DASHAuthenticationServiceAuthResponse>;
|
|
30
|
+
refreshToken(refreshToken: string): Promise<DASHAuthenticationServiceAuthResponse>;
|
|
31
|
+
private logoutFromStorage;
|
|
32
|
+
checkAuth(): Promise<boolean>;
|
|
33
|
+
getIdentity(): Promise<any>;
|
|
34
|
+
shouldRefreshToken(): Promise<boolean>;
|
|
35
|
+
handleTokenRefresh(): Promise<boolean>;
|
|
36
|
+
shouldInitializeFromToken(forceGetAuth?: boolean): Promise<boolean>;
|
|
37
|
+
initializeApp(forceGetAuth?: boolean): Promise<DASHAuthenticationServiceAuthResponse>;
|
|
38
|
+
loginWithReactAdmin(credentials: DASHAuthenticationServiceLoginCredentials, reactAdminLogin?: any): Promise<void>;
|
|
39
|
+
getInitialAuthState: () => {
|
|
40
|
+
authenticated: boolean;
|
|
41
|
+
user: any;
|
|
42
|
+
auth: any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
declare const _default: DASHAuthenticationService;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
export type IFCMContext = {
|
|
3
|
+
notifications: any[];
|
|
4
|
+
lastNotification: any;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
initializePushNotifications: () => Promise<void>;
|
|
7
|
+
permissionStatus: 'unknown' | 'granted' | 'denied' | 'not_supported';
|
|
8
|
+
isSupported: boolean;
|
|
9
|
+
platform: string;
|
|
10
|
+
};
|
|
11
|
+
export interface IFCMProvider {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
manager?: () => {
|
|
14
|
+
notifications: any[];
|
|
15
|
+
lastNotification: any;
|
|
16
|
+
clear: () => void;
|
|
17
|
+
initializePushNotifications: () => Promise<void>;
|
|
18
|
+
permissionStatus: 'unknown' | 'granted' | 'denied' | 'not_supported';
|
|
19
|
+
isSupported: boolean;
|
|
20
|
+
platform: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare class FCMService {
|
|
24
|
+
private notifications;
|
|
25
|
+
private lastNotification;
|
|
26
|
+
private axiosInstance;
|
|
27
|
+
private permissionStatus;
|
|
28
|
+
constructor();
|
|
29
|
+
isSupported(): boolean;
|
|
30
|
+
getPlatform(): string;
|
|
31
|
+
checkPermissions(): Promise<boolean>;
|
|
32
|
+
requestPermissions(): Promise<boolean>;
|
|
33
|
+
initializePushNotifications(): Promise<void>;
|
|
34
|
+
private registerNotifications;
|
|
35
|
+
private addListeners;
|
|
36
|
+
private sendTokenToBackend;
|
|
37
|
+
clear(): void;
|
|
38
|
+
cleanup(): void;
|
|
39
|
+
getState(): {
|
|
40
|
+
notifications: any[];
|
|
41
|
+
lastNotification: any;
|
|
42
|
+
clear: () => void;
|
|
43
|
+
initializePushNotifications: () => Promise<void>;
|
|
44
|
+
permissionStatus: "unknown" | "granted" | "denied" | "not_supported";
|
|
45
|
+
isSupported: boolean;
|
|
46
|
+
platform: string;
|
|
47
|
+
};
|
|
48
|
+
getDebugInfo(): {
|
|
49
|
+
windowCapacitor: boolean;
|
|
50
|
+
hasPushNotificationsPlugin: boolean;
|
|
51
|
+
availablePlugins: string[];
|
|
52
|
+
platform: string;
|
|
53
|
+
isNativePlatform: any;
|
|
54
|
+
isSupported: boolean;
|
|
55
|
+
permissionStatus: "unknown" | "granted" | "denied" | "not_supported";
|
|
56
|
+
notificationsCount: number;
|
|
57
|
+
hasLastNotification: boolean;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export declare const FCMContext: React.Context<IFCMContext>;
|
|
61
|
+
declare const FCMProvider: FC<IFCMProvider>;
|
|
62
|
+
export { FCMContext as default, FCMProvider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDashNotificationPayloadBase } from '../../interfaces/communication/INotification';
|
|
2
|
+
import React, { FC } from 'react';
|
|
3
|
+
export type ILaravelEchoContext = {
|
|
4
|
+
events: IDashNotificationPayloadBase[];
|
|
5
|
+
lastEvent: IDashNotificationPayloadBase;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
};
|
|
8
|
+
export interface ILaravelEchoProvider {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
manager?: () => {
|
|
11
|
+
events: IDashNotificationPayloadBase[];
|
|
12
|
+
lastEvent: IDashNotificationPayloadBase;
|
|
13
|
+
clear: () => void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const LaravelEchoContext: React.Context<ILaravelEchoContext>;
|
|
17
|
+
declare const LaravelEchoProvider: FC<ILaravelEchoProvider>;
|
|
18
|
+
export { LaravelEchoContext as default, LaravelEchoProvider };
|