@gen3/frontend 0.10.75 → 0.10.77
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/cjs/index.js +19 -43
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +0 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js +12 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts +2 -1
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.js +8 -5
- package/dist/dts/components/Content/TextContent.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +12 -8
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +11 -17
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +4 -18
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +8 -5
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
- package/dist/dts/components/MessagePanel.d.ts.map +1 -1
- package/dist/dts/components/MessagePanel.js +1 -1
- package/dist/dts/components/MessagePanel.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +4 -8
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.js +131 -48
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +4 -3
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +4 -28
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/RangeFacet.js +1 -3
- package/dist/dts/components/facets/RangeFacet.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -13
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js +17 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +2 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js +18 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.d.ts → QueryExpressionSection.d.ts} +4 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.js → QueryExpressionSection.js} +28 -36
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.d.ts → QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.js → QueryRepresentation.js} +30 -23
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +1 -52
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/style.js +0 -11
- package/dist/dts/features/CohortBuilder/style.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +4 -6
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +3 -5
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +0 -10
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +1 -38
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +1 -0
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
- package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.js +1 -0
- package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
- package/dist/dts/features/Dictionary/index.d.ts +3 -1
- package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/index.js +3 -1
- package/dist/dts/features/Dictionary/index.js.map +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +7 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +39 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +9 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +113 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +3 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js +13 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts +17 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.js +2 -0
- package/dist/dts/features/Dictionary/metadata/types.js.map +1 -0
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.js +4 -3
- package/dist/dts/features/Navigation/TopBar.js.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.js +30 -8
- package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -4
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.js +3 -4
- package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
- package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/features/Workspace/Workspace.js +0 -1
- package/dist/dts/features/Workspace/Workspace.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +4 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.js +10 -9
- package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js +1 -0
- package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +2 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +56 -27
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +10 -0
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js +10 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +3 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +3 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +7 -7
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/data.d.ts +2 -3
- package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/data.js +27 -11
- package/dist/dts/pages/Crosswalk/data.js.map +1 -1
- package/dist/dts/pages/Theme/index.d.ts.map +1 -1
- package/dist/dts/utils/date.d.ts +0 -6
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +0 -12
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +1 -0
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/time.d.ts +15 -0
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/time.js +105 -0
- package/dist/dts/utils/time.js.map +1 -1
- package/dist/esm/index.js +19 -43
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +46 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/components/CountButton/CountButton.d.ts +0 -19
- package/dist/dts/components/CountButton/CountButton.d.ts.map +0 -1
- package/dist/dts/components/CountButton/CountButton.js +0 -18
- package/dist/dts/components/CountButton/CountButton.js.map +0 -1
- package/dist/dts/components/ErrorMessage.d.ts +0 -6
- package/dist/dts/components/ErrorMessage.d.ts.map +0 -1
- package/dist/dts/components/ErrorMessage.js +0 -8
- package/dist/dts/components/ErrorMessage.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -10
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -53
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +0 -7
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +0 -38
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -56
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +0 -22
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -320
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -85
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +0 -55
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +0 -41
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.js +0 -23
- package/dist/dts/features/CohortBuilder/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.js +0 -57
- package/dist/dts/features/CohortDiscovery/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -23
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -35
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -91
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -93
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
- package/dist/dts/utils/icons.d.ts +0 -18
- package/dist/dts/utils/icons.d.ts.map +0 -1
- package/dist/dts/utils/icons.js +0 -18
- package/dist/dts/utils/icons.js.map +0 -1
- /package/dist/dts/features/{CohortDiscovery → CohortBuilder}/CohortManager.d.ts +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.d.ts → QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.js → QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.d.ts → QueryRepresentationLabel.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.js → QueryRepresentationLabel.js} +0 -0
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React, {
|
|
3
|
-
import {
|
|
2
|
+
import React, { createContext, useEffect, useMemo, useState, } from 'react';
|
|
3
|
+
import { getCurrentTimestamp, isFetchBaseQueryError, RequestedWorkspaceStatus, selectActiveWorkspaceStatus, setActiveWorkspace, setActiveWorkspaceStatus, setRequestedWorkspaceStatus, useCoreDispatch, useCoreSelector, useGetWorkspacePayModelsQuery, useLaunchWorkspaceMutation, useTerminateWorkspaceMutation, WorkspaceStatus, } from '@gen3/core';
|
|
4
4
|
import { useDeepCompareEffect } from 'use-deep-compare';
|
|
5
5
|
import { notifications } from '@mantine/notifications';
|
|
6
6
|
import { useFullscreen } from '@mantine/hooks';
|
|
7
|
+
import { PayModelStatus } from './types';
|
|
8
|
+
import { useWorkspaceContext } from './WorkspaceProvider';
|
|
7
9
|
var getWorkspaceErrorMessage = function (error, defaultMessage) {
|
|
8
10
|
if (isFetchBaseQueryError(error)) {
|
|
9
11
|
return error.data;
|
|
10
12
|
}
|
|
11
13
|
return defaultMessage;
|
|
12
14
|
};
|
|
15
|
+
var showErrorNotification = function (title, message) {
|
|
16
|
+
// Clear any existing notifications first
|
|
17
|
+
notifications.clean(); // TODO debounce instead of clearing
|
|
18
|
+
notifications.show({
|
|
19
|
+
title: title,
|
|
20
|
+
message: message,
|
|
21
|
+
position: 'top-center',
|
|
22
|
+
});
|
|
23
|
+
};
|
|
13
24
|
var WorkspaceStatusContext = createContext({
|
|
14
25
|
isFullscreen: false,
|
|
15
26
|
startWorkspace: function () { return null; },
|
|
@@ -17,7 +28,7 @@ var WorkspaceStatusContext = createContext({
|
|
|
17
28
|
toggleFullscreen: function () { return null; },
|
|
18
29
|
workspaceLaunchIsLoading: false,
|
|
19
30
|
terminateIsLoading: false,
|
|
20
|
-
|
|
31
|
+
payModelStatus: PayModelStatus.INVALID,
|
|
21
32
|
});
|
|
22
33
|
export var useWorkspaceStatusContext = function () {
|
|
23
34
|
var context = React.useContext(WorkspaceStatusContext);
|
|
@@ -29,22 +40,41 @@ export var useWorkspaceStatusContext = function () {
|
|
|
29
40
|
var WorkspaceStatusProvider = function (_a) {
|
|
30
41
|
var children = _a.children;
|
|
31
42
|
var _b = useFullscreen(), switchScreenMode = _b.toggle, isFullscreen = _b.fullscreen;
|
|
32
|
-
var _c = useState(
|
|
43
|
+
var _c = useState(PayModelStatus.INVALID), payModelStatus = _c[0], setPayModelStatus = _c[1];
|
|
44
|
+
var requirePayModel = useWorkspaceContext().requirePayModel;
|
|
33
45
|
var _d = useLaunchWorkspaceMutation(), launchTrigger = _d[0], _e = _d[1], isWorkspaceLaunchError = _e.isError, workspaceLaunchError = _e.error;
|
|
34
46
|
var _f = useTerminateWorkspaceMutation(), terminateWorkspace = _f[0], _g = _f[1], terminateIsLoading = _g.isLoading, isTerminateError = _g.isError, workspaceTerminateError = _g.error;
|
|
35
47
|
var _h = useGetWorkspacePayModelsQuery(), payModels = _h.data, isPayModelLoading = _h.isLoading, isPayModelError = _h.isError;
|
|
36
|
-
|
|
37
|
-
if (isPayModelError) {
|
|
38
|
-
notifications.show({
|
|
39
|
-
title: 'Pay Model Error',
|
|
40
|
-
message: 'Unable to get Pay Model.',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
48
|
+
useEffect(function () {
|
|
43
49
|
if (isPayModelLoading) {
|
|
44
|
-
|
|
50
|
+
setPayModelStatus(PayModelStatus.GETTING);
|
|
51
|
+
}
|
|
52
|
+
if (isPayModelError && requirePayModel) {
|
|
53
|
+
setPayModelStatus(PayModelStatus.ERROR);
|
|
54
|
+
showErrorNotification('Payment Error', 'Unable to get payment model');
|
|
45
55
|
}
|
|
56
|
+
else if (!requirePayModel)
|
|
57
|
+
setPayModelStatus(PayModelStatus.VALID);
|
|
58
|
+
}, [isPayModelLoading, isPayModelError, payModelStatus, requirePayModel]);
|
|
59
|
+
useEffect(function () {
|
|
60
|
+
var _a;
|
|
46
61
|
if (payModels) {
|
|
47
|
-
|
|
62
|
+
var isPayModelAboveLimit = ((_a = payModels.currentPayModel) === null || _a === void 0 ? void 0 : _a.request_status) === 'above limit';
|
|
63
|
+
if (isPayModelAboveLimit) {
|
|
64
|
+
setPayModelStatus(PayModelStatus.OVER_LIMIT);
|
|
65
|
+
showErrorNotification('Payment Error', 'Selected pay model usage has exceeded its available funding. Please choose another pay model.');
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (Object.keys(payModels).length === 0) {
|
|
69
|
+
setPayModelStatus(PayModelStatus.NOT_REQUIRED);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (Object.keys(payModels).length > 0) {
|
|
73
|
+
if (payModels.currentPayModel != null)
|
|
74
|
+
setPayModelStatus(PayModelStatus.VALID);
|
|
75
|
+
else
|
|
76
|
+
setPayModelStatus(PayModelStatus.NOT_SELECTED);
|
|
77
|
+
}
|
|
48
78
|
}
|
|
49
79
|
}, [payModels]);
|
|
50
80
|
var dispatch = useCoreDispatch();
|
|
@@ -52,33 +82,29 @@ var WorkspaceStatusProvider = function (_a) {
|
|
|
52
82
|
// handle errors in launching, getting status, or terminating
|
|
53
83
|
useDeepCompareEffect(function () {
|
|
54
84
|
if (isWorkspaceLaunchError || isTerminateError) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
? 'Error launching workspace'
|
|
61
|
-
: 'Error stopping workspace'),
|
|
62
|
-
position: 'top-center',
|
|
63
|
-
containerWidth: '50%',
|
|
64
|
-
});
|
|
65
|
-
dispatch(setRequestedWorkspaceStatus('NotSet'));
|
|
85
|
+
var errorMessage = getWorkspaceErrorMessage(isWorkspaceLaunchError ? workspaceLaunchError : workspaceTerminateError, isWorkspaceLaunchError
|
|
86
|
+
? 'Error launching workspace'
|
|
87
|
+
: 'Error stopping workspace');
|
|
88
|
+
showErrorNotification('Workspace Error', errorMessage);
|
|
89
|
+
dispatch(setRequestedWorkspaceStatus(RequestedWorkspaceStatus.Unset));
|
|
66
90
|
dispatch(setActiveWorkspaceStatus(WorkspaceStatus.NotFound));
|
|
67
91
|
}
|
|
68
92
|
}, [isWorkspaceLaunchError, isTerminateError]);
|
|
69
93
|
var status = useMemo(function () {
|
|
70
94
|
var startWorkspace = function (id) {
|
|
71
95
|
launchTrigger(id);
|
|
96
|
+
dispatch(setRequestedWorkspaceStatus(RequestedWorkspaceStatus.Launch));
|
|
72
97
|
dispatch(setActiveWorkspace({
|
|
73
98
|
id: id,
|
|
74
99
|
status: WorkspaceStatus.Launching,
|
|
75
|
-
requestedStatus:
|
|
100
|
+
requestedStatus: RequestedWorkspaceStatus.Launch,
|
|
101
|
+
requestedStatusTimestamp: getCurrentTimestamp(),
|
|
76
102
|
}));
|
|
77
103
|
};
|
|
78
104
|
var toggleFullscreen = function () { return switchScreenMode(); };
|
|
79
105
|
var stopWorkspace = function () {
|
|
80
106
|
terminateWorkspace();
|
|
81
|
-
dispatch(setRequestedWorkspaceStatus(
|
|
107
|
+
dispatch(setRequestedWorkspaceStatus(RequestedWorkspaceStatus.Terminate));
|
|
82
108
|
dispatch(setActiveWorkspaceStatus(WorkspaceStatus.Terminating));
|
|
83
109
|
};
|
|
84
110
|
return {
|
|
@@ -88,12 +114,15 @@ var WorkspaceStatusProvider = function (_a) {
|
|
|
88
114
|
toggleFullscreen: toggleFullscreen,
|
|
89
115
|
workspaceLaunchIsLoading: currentWorkspaceStatus === WorkspaceStatus.Launching,
|
|
90
116
|
terminateIsLoading: terminateIsLoading,
|
|
91
|
-
|
|
117
|
+
payModelStatus: payModelStatus,
|
|
92
118
|
};
|
|
93
119
|
}, [
|
|
120
|
+
currentWorkspaceStatus,
|
|
94
121
|
dispatch,
|
|
95
122
|
isFullscreen,
|
|
96
123
|
launchTrigger,
|
|
124
|
+
payModelStatus,
|
|
125
|
+
switchScreenMode,
|
|
97
126
|
terminateIsLoading,
|
|
98
127
|
terminateWorkspace,
|
|
99
128
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceStatusProvider.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceStatusProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"WorkspaceStatusProvider.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceStatusProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM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kBAAkB,CAAC;gBACjB,EAAE,EAAE,EAAE;gBACN,MAAM,EAAE,eAAe,CAAC,SAAS;gBACjC,eAAe,EAAE,wBAAwB,CAAC,MAAM;gBAChD,wBAAwB,EAAE,mBAAmB,EAAE;aAChD,CAAC,CACH,CAAC;QACJ,CAAC,CAAC;QAEF,IAAM,gBAAgB,GAAG,cAAM,OAAA,gBAAgB,EAAE,EAAlB,CAAkB,CAAC;QAElD,IAAM,aAAa,GAAG;YACpB,kBAAkB,EAAE,CAAC;YACrB,QAAQ,CAAC,2BAA2B,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAC;YAC1E,QAAQ,CAAC,wBAAwB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC;QAEF,OAAO;YACL,YAAY,cAAA;YACZ,cAAc,gBAAA;YACd,aAAa,eAAA;YACb,gBAAgB,kBAAA;YAChB,wBAAwB,EACtB,sBAAsB,KAAK,eAAe,CAAC,SAAS;YACtD,kBAAkB,oBAAA;YAClB,cAAc,gBAAA;SACf,CAAC;IACJ,CAAC,EAAE;QACD,sBAAsB;QACtB,QAAQ;QACR,YAAY;QACZ,aAAa;QACb,cAAc;QACd,gBAAgB;QAChB,kBAAkB;QAClB,kBAAkB;KACnB,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAC3C,QAAQ,GACuB,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -14,6 +14,15 @@ export interface WorkspaceLaunchStatus {
|
|
|
14
14
|
message?: string;
|
|
15
15
|
subSteps?: Array<TitleAndDescription>;
|
|
16
16
|
}
|
|
17
|
+
export declare enum PayModelStatus {
|
|
18
|
+
GETTING = "GETTING",
|
|
19
|
+
INVALID = "INVALID",
|
|
20
|
+
ERROR = "ERROR",
|
|
21
|
+
NOT_SELECTED = "NOT_SELECTED",
|
|
22
|
+
OVER_LIMIT = "OVER_LIMIT",
|
|
23
|
+
NOT_REQUIRED = "NOT_REQUIRED",
|
|
24
|
+
VALID = "VALID"
|
|
25
|
+
}
|
|
17
26
|
export interface LaunchStepIndicatorConfiguration {
|
|
18
27
|
steps: Array<{
|
|
19
28
|
label: string;
|
|
@@ -24,6 +33,7 @@ export interface WorkspaceConfig {
|
|
|
24
33
|
title?: string;
|
|
25
34
|
workspaceInfo?: Record<string, WorkspaceAdditionalInfo>;
|
|
26
35
|
launchStepIndicatorConfig: LaunchStepIndicatorConfiguration;
|
|
36
|
+
requirePayModel?: boolean;
|
|
27
37
|
}
|
|
28
38
|
export {};
|
|
29
39
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACxD,yBAAyB,EAAE,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACvC;AAED,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACxD,yBAAyB,EAAE,gCAAgC,CAAC;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var PayModelStatus;
|
|
2
|
+
(function (PayModelStatus) {
|
|
3
|
+
PayModelStatus["GETTING"] = "GETTING";
|
|
4
|
+
PayModelStatus["INVALID"] = "INVALID";
|
|
5
|
+
PayModelStatus["ERROR"] = "ERROR";
|
|
6
|
+
PayModelStatus["NOT_SELECTED"] = "NOT_SELECTED";
|
|
7
|
+
PayModelStatus["OVER_LIMIT"] = "OVER_LIMIT";
|
|
8
|
+
PayModelStatus["NOT_REQUIRED"] = "NOT_REQUIRED";
|
|
9
|
+
PayModelStatus["VALID"] = "VALID";
|
|
10
|
+
})(PayModelStatus || (PayModelStatus = {}));
|
|
2
11
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Workspace/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Workspace/types.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;IAC7B,iCAAe,CAAA;AACjB,CAAC,EARW,cAAc,KAAd,cAAc,QAQzB"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -17,8 +17,9 @@ import { type Fonts, type RegisteredIcons } from './lib/content/types';
|
|
|
17
17
|
import ErrorCard from './components/MessageCards/ErrorCard';
|
|
18
18
|
import { registerCohortDiscoveryApp } from './features/CohortDiscovery/registerApp';
|
|
19
19
|
import { registerCohortDiversityApp } from './features/CohortDiversity/registerApp';
|
|
20
|
+
import { registerMetadataSchemaApp } from './features/Dictionary';
|
|
20
21
|
import '@gen3/core';
|
|
21
|
-
import Gen3Provider from './components/Providers/Gen3Provider';
|
|
22
|
+
import Gen3Provider, { createMantineTheme } from './components/Providers/Gen3Provider';
|
|
22
23
|
import DiscoveryPage from './pages/Discovery/Discovery';
|
|
23
24
|
import { DiscoveryPageGetServerSideProps } from './pages/Discovery/data';
|
|
24
25
|
import QueryPage from './pages/Query/Query';
|
|
@@ -57,5 +58,5 @@ import sessionToken from './api/auth/sessionToken';
|
|
|
57
58
|
import sessionLogout from './api/auth/sessionLogout';
|
|
58
59
|
import credentialsLogin from './api/auth/credentialsLogin';
|
|
59
60
|
import credentialsLogout from './api/auth/credentialsLogout';
|
|
60
|
-
export { ContentSource, type Fonts, type RegisteredIcons, type SessionConfiguration, type ExplorerPageProps, ErrorCard, DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetStaticProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerCohortDiscoveryApp, registerCohortDiversityApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, };
|
|
61
|
+
export { ContentSource, type Fonts, type RegisteredIcons, type SessionConfiguration, type ExplorerPageProps, ErrorCard, DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetStaticProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, createMantineTheme, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerCohortDiscoveryApp, registerCohortDiversityApp, registerMetadataSchemaApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, };
|
|
61
62
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,aAAa,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CA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,kBAAkB,EAClB,oCAAoC,GACrC,CAAC"}
|
package/dist/dts/index.js
CHANGED
|
@@ -16,9 +16,10 @@ import ContentSource from './lib/content';
|
|
|
16
16
|
import ErrorCard from './components/MessageCards/ErrorCard';
|
|
17
17
|
import { registerCohortDiscoveryApp } from './features/CohortDiscovery/registerApp';
|
|
18
18
|
import { registerCohortDiversityApp } from './features/CohortDiversity/registerApp';
|
|
19
|
+
import { registerMetadataSchemaApp } from './features/Dictionary';
|
|
19
20
|
import '@gen3/core';
|
|
20
21
|
// export Gen3 data UI standard pages
|
|
21
|
-
import Gen3Provider from './components/Providers/Gen3Provider';
|
|
22
|
+
import Gen3Provider, { createMantineTheme, } from './components/Providers/Gen3Provider';
|
|
22
23
|
import DiscoveryPage from './pages/Discovery/Discovery';
|
|
23
24
|
import { DiscoveryPageGetServerSideProps } from './pages/Discovery/data';
|
|
24
25
|
import QueryPage from './pages/Query/Query';
|
|
@@ -57,5 +58,5 @@ import sessionToken from './api/auth/sessionToken';
|
|
|
57
58
|
import sessionLogout from './api/auth/sessionLogout';
|
|
58
59
|
import credentialsLogin from './api/auth/credentialsLogin';
|
|
59
60
|
import credentialsLogout from './api/auth/credentialsLogout';
|
|
60
|
-
export { ContentSource, ErrorCard, DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetStaticProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerCohortDiscoveryApp, registerCohortDiversityApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, };
|
|
61
|
+
export { ContentSource, ErrorCard, DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetStaticProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, createMantineTheme, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerCohortDiscoveryApp, registerCohortDiversityApp, registerMetadataSchemaApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, };
|
|
61
62
|
//# sourceMappingURL=index.js.map
|
package/dist/dts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,WAAW;AACX,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAA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ACzB,kBAAkB,EAClB,oCAAoC,GACrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAkBxD,eAAO,MAAM,aAAa,qBAIzB,CAAC;AAuBF,eAAO,MAAM,cAAc,oCAE1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,oBAStB,CAAC;AAEF,eAAO,MAAM,UAAU,2CAED,MAAM,IAAI,YAqB/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;CAM9B,CAAC;AA2CF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,oHAOzB,oBAAoB,4CAuItB,CAAC"}
|
|
@@ -46,16 +46,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import React, { useCallback,
|
|
49
|
+
import React, { useCallback, useContext, useEffect, useRef, useState, } from 'react';
|
|
50
50
|
import { useRouter } from 'next/router';
|
|
51
|
-
import { isUserOnPage } from './utils';
|
|
52
|
-
import { useCoreDispatch, useCoreSelector, showModal, Modals, useLazyFetchUserDetailsQuery, selectUserAuthStatus, GEN3_REDIRECT_URL, GEN3_FENCE_API, } from '@gen3/core';
|
|
53
51
|
import { useDeepCompareMemo } from 'use-deep-compare';
|
|
54
52
|
import { useManageSession } from './hooks';
|
|
55
53
|
import { showNotification } from '@mantine/notifications';
|
|
56
|
-
import {
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
import { isUserOnPage } from './utils';
|
|
55
|
+
import { GEN3_FENCE_API, GEN3_REDIRECT_URL, Modals, selectUserAuthStatus, showModal, useCoreDispatch, useCoreSelector, useLazyFetchUserDetailsQuery, } from '@gen3/core';
|
|
56
|
+
import { MinutesToMilliseconds } from '../../utils';
|
|
57
|
+
import { useWorkspaceResourceMonitor } from '../../components/Providers/ResourceMonitor';
|
|
58
|
+
///import { useWorkspaceResourceMonitor } from '../../features/Workspace/Monitor/workspaceMonitors';
|
|
59
59
|
export var logoutSession = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
@@ -180,7 +180,7 @@ export var SessionProvider = function (_a) {
|
|
|
180
180
|
var children = _a.children, session = _a.session, _b = _a.updateSessionTime, updateSessionTime = _b === void 0 ? 5 : _b, _c = _a.inactiveTimeLimit, inactiveTimeLimit = _c === void 0 ? 20 : _c, _d = _a.workspaceInactivityTimeLimit, workspaceInactivityTimeLimit = _d === void 0 ? 0 : _d, _e = _a.logoutInactiveUsers, logoutInactiveUsers = _e === void 0 ? true : _e;
|
|
181
181
|
var router = useRouter();
|
|
182
182
|
var coreDispatch = useCoreDispatch();
|
|
183
|
-
|
|
183
|
+
useWorkspaceResourceMonitor(); // monitor workspaces if any are running
|
|
184
184
|
var getUserDetails = useLazyFetchUserDetailsQuery()[0]; // Fetch user details
|
|
185
185
|
var userStatus = useCoreSelector(function (state) {
|
|
186
186
|
return selectUserAuthStatus(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EACZ,WAAW,EACX,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":";;;;;;;;;;;;;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AI,CACT,CAAC;IAEF,IAAM,KAAK,GAAY,kBAAkB,CAAC;QACxC,6BACK,WAAW,KACd,aAAa,eAAA,EACb,UAAU,YAAA,IACV;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7C,OAAO,CACL,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA2B,CAC5E,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { GetServerSideProps } from 'next';
|
|
2
|
-
import { type CrosswalkName } from '../../features/Crosswalk';
|
|
2
|
+
import { type CrosswalkConfig, type CrosswalkName } from '../../features/Crosswalk';
|
|
3
3
|
import { type NavPageLayoutProps } from '../../features/Navigation';
|
|
4
4
|
interface InitialCrosswalkInfo extends CrosswalkName {
|
|
5
5
|
dataPath: string;
|
|
6
6
|
}
|
|
7
|
-
export interface InitialCrosswalkConfig {
|
|
8
|
-
showSubmittedIdInTable?: boolean;
|
|
7
|
+
export interface InitialCrosswalkConfig extends Omit<CrosswalkConfig, 'mapping'> {
|
|
9
8
|
mapping: {
|
|
10
9
|
source: CrosswalkName;
|
|
11
10
|
external: Array<InitialCrosswalkInfo>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/pages/Crosswalk/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAG1C,OAAO,
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/pages/Crosswalk/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAG1C,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,UAAU,oBAAqB,SAAQ,aAAa;IAClD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC;IACxC,OAAO,EAAE;QACP,MAAM,EAAE,aAAa,CAAC;QACtB,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;KACvC,CAAC;CACH;AAED,eAAO,MAAM,+BAA+B,EAAE,kBAAkB,CAC9D,kBAAkB,CA2CnB,CAAC"}
|
|
@@ -49,29 +49,45 @@ import { getNavPageLayoutPropsFromConfig } from '../../lib/common/staticProps';
|
|
|
49
49
|
import ContentSource from '../../lib/content';
|
|
50
50
|
import { GEN3_COMMONS_NAME } from '@gen3/core';
|
|
51
51
|
export var CrosswalkPageGetServerSideProps = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var initialConfig,
|
|
53
|
-
var
|
|
54
|
-
return __generator(this, function (
|
|
55
|
-
switch (
|
|
56
|
-
case 0:
|
|
52
|
+
var initialConfig, regex_1, processedConfig, _a, error_1, errorMessage, _b;
|
|
53
|
+
var _c, _d;
|
|
54
|
+
return __generator(this, function (_e) {
|
|
55
|
+
switch (_e.label) {
|
|
56
|
+
case 0:
|
|
57
|
+
_e.trys.push([0, 3, , 5]);
|
|
58
|
+
return [4 /*yield*/, ContentSource.get("config/".concat(GEN3_COMMONS_NAME, "/crosswalk.json"))];
|
|
57
59
|
case 1:
|
|
58
|
-
initialConfig =
|
|
59
|
-
|
|
60
|
+
initialConfig = _e.sent();
|
|
61
|
+
regex_1 = /->/g;
|
|
60
62
|
processedConfig = {
|
|
61
63
|
showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
|
|
64
|
+
idEntryPlaceholderText: (initialConfig === null || initialConfig === void 0 ? void 0 : initialConfig.idEntryPlaceholderText) ||
|
|
65
|
+
'Enter IDs, one per line.\nExample:\nD334343\nC343433',
|
|
62
66
|
mapping: {
|
|
63
67
|
source: initialConfig.mapping.source,
|
|
64
68
|
external: initialConfig.mapping.external.map(function (entry) { return (__assign(__assign({}, entry), { dataPath: entry.dataPath
|
|
65
|
-
.split(
|
|
69
|
+
.split(regex_1)
|
|
66
70
|
.map(function (x) { return JSON.stringify([x]); })
|
|
67
71
|
.join('.') })); }),
|
|
68
72
|
},
|
|
69
73
|
};
|
|
70
|
-
|
|
74
|
+
_c = {};
|
|
71
75
|
_a = [{}];
|
|
72
76
|
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
73
|
-
case 2: return [2 /*return*/, (
|
|
74
|
-
|
|
77
|
+
case 2: return [2 /*return*/, (_c.props = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_e.sent())])), { config: processedConfig }]),
|
|
78
|
+
_c)];
|
|
79
|
+
case 3:
|
|
80
|
+
error_1 = _e.sent();
|
|
81
|
+
errorMessage = error_1 instanceof Error
|
|
82
|
+
? error_1.message
|
|
83
|
+
: 'Unknown error in crosswalk config';
|
|
84
|
+
console.error(errorMessage);
|
|
85
|
+
_d = {};
|
|
86
|
+
_b = [{}];
|
|
87
|
+
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
88
|
+
case 4: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_e.sent())])), { config: undefined }]),
|
|
89
|
+
_d)];
|
|
90
|
+
case 5: return [2 /*return*/];
|
|
75
91
|
}
|
|
76
92
|
});
|
|
77
93
|
}); };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/pages/Crosswalk/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAM9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"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CAAC,CAAC,mCAAmC,CAAC;gBAC1C,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;;;gBAGpB,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,6DACA,CAAC,SAAuC,CAAC,OAC5C,MAAM,EAAE,SAAS,IAClB;yBACD;;;;KAEL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Theme/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Theme/index.tsx"],"names":[],"mappings":"wBAAe,UAAU;AAAzB,wBAA0B;AAC1B,OAAO,EAAE,gCAAgC,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/dts/utils/date.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a date into a string of YYYY-MM-DD padding 0 for months and days \< 10.
|
|
3
|
-
* Note the use of UTC to ensure the GMT timezone.
|
|
4
|
-
* @param d - date to convert
|
|
5
|
-
*/
|
|
6
|
-
export declare const convertDateToString: (d: Date | null) => string | undefined;
|
|
7
1
|
/**
|
|
8
2
|
* Returns a formatted timestamp string based on the provided date or the current date.
|
|
9
3
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,GAAE;IACP,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACnB,GACL,MAAM,GAAG,SAAS,CA2BpB"}
|
package/dist/dts/utils/date.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a date into a string of YYYY-MM-DD padding 0 for months and days \< 10.
|
|
3
|
-
* Note the use of UTC to ensure the GMT timezone.
|
|
4
|
-
* @param d - date to convert
|
|
5
|
-
*/
|
|
6
|
-
export var convertDateToString = function (d) {
|
|
7
|
-
if (d === null)
|
|
8
|
-
return undefined;
|
|
9
|
-
return "".concat(d.getUTCFullYear(), "-").concat((d.getUTCMonth() + 1) //UTC Months start at 0
|
|
10
|
-
.toString()
|
|
11
|
-
.padStart(2, "0"), "-").concat(d.getUTCDate().toString().padStart(2, "0"));
|
|
12
|
-
};
|
|
13
1
|
// https://stackoverflow.com/questions/2388115/get-locale-short-date-format-using-javascript
|
|
14
2
|
/**
|
|
15
3
|
* Returns a formatted timestamp string based on the provided date or the current date.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/utils/date.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAGM;IAHN,wBAAA,EAAA,YAGM;IAEE,IAAA,KAA4C,OAAO,KAAlC,EAAjB,IAAI,mBAAG,IAAI,IAAI,EAAE,KAAA,EAAE,KAAyB,OAAO,aAAZ,EAApB,YAAY,mBAAG,KAAK,KAAA,CAAa;IAC5D,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAEpC,IAAM,aAAa,GAA+B;QAChD,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ;KAC3D,CAAC;IAEF,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE;YAC3B,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAED,IAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAElE,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;SAAM,CAAC;QACN,OAAO,aAAa,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/dist/dts/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/dist/dts/utils/time.d.ts
CHANGED
|
@@ -8,4 +8,19 @@ export declare function getCurrentUnixTimestamp(): number;
|
|
|
8
8
|
* @returns {string} date time string
|
|
9
9
|
*/
|
|
10
10
|
export declare function unixTimeToString(unixTime: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Converts a given duration in minutes to its equivalent in milliseconds.
|
|
13
|
+
*
|
|
14
|
+
* @param {number} minutes - The time duration in minutes to be converted.
|
|
15
|
+
* @returns {number} The equivalent duration in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
export declare const convertMinutesToMilliseconds: (minutes: number) => number;
|
|
18
|
+
/**
|
|
19
|
+
* Converts a given time in seconds to milliseconds.
|
|
20
|
+
*
|
|
21
|
+
* @param {number} seconds - The time in seconds to be converted.
|
|
22
|
+
* @returns {number} The equivalent time in milliseconds.
|
|
23
|
+
*/
|
|
24
|
+
export declare const convertSecondsToMilliseconds: (seconds: number) => number;
|
|
25
|
+
export declare const MinutesToMilliseconds: (minutes: number) => number;
|
|
11
26
|
//# sourceMappingURL=time.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,YAAa,MAAM,WACvC,CAAC;AAEtB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,YAAa,MAAM,WAAmB,CAAC;AAuDhF,eAAO,MAAM,qBAAqB,YAAa,MAAM,WAAwB,CAAC"}
|