@elevasis/ui 2.15.0 → 2.17.0
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/api/index.js +3 -2
- package/dist/app/index.js +9 -7
- package/dist/auth/index.js +4 -3
- package/dist/charts/index.js +11 -10
- package/dist/{chunk-C7BX547M.js → chunk-2TDZBYXI.js} +9 -3
- package/dist/{chunk-5IBTTMWX.js → chunk-34NQLV2W.js} +2 -2
- package/dist/{chunk-FL67C3WY.js → chunk-6IA2OMAE.js} +1 -1
- package/dist/{chunk-L4XXM55J.js → chunk-7YQKVWSD.js} +1 -1
- package/dist/{chunk-XJ7KC54A.js → chunk-ABUDMATM.js} +7 -8
- package/dist/{chunk-TUXTSEAF.js → chunk-DK2HVHCY.js} +1 -1
- package/dist/{chunk-GHIPBT5V.js → chunk-E4WQGJNS.js} +1 -1
- package/dist/{chunk-5SXYCICG.js → chunk-FNWWVX5N.js} +8 -6
- package/dist/{chunk-IOKL7BKE.js → chunk-GCBWGGI6.js} +133 -1
- package/dist/chunk-GRGRBWIO.js +383 -0
- package/dist/{chunk-SLVC5OJ2.js → chunk-HQ7M6PBW.js} +1 -1
- package/dist/chunk-IRW7JMQ4.js +28 -0
- package/dist/{chunk-YNPVQDNB.js → chunk-JU6UB4YA.js} +4 -4
- package/dist/{chunk-SFW573HS.js → chunk-MDO4UCEJ.js} +4 -4
- package/dist/{chunk-STZJ7SY5.js → chunk-MJ6YV2B5.js} +3 -2
- package/dist/{chunk-D7HBX5US.js → chunk-MUZIYL5Q.js} +5 -4
- package/dist/{chunk-DKQQK3WX.js → chunk-OCCZRPER.js} +1 -1
- package/dist/{chunk-FFXHKADZ.js → chunk-OXWQQCDR.js} +13 -32
- package/dist/{chunk-ZB5GAV7J.js → chunk-P3TFNFZS.js} +6 -5
- package/dist/{chunk-QEPXAWE2.js → chunk-QHSW4WHM.js} +3 -26
- package/dist/{chunk-LXHZYSMQ.js → chunk-QSTH6T77.js} +2 -52
- package/dist/{chunk-U2RXVZGY.js → chunk-R7GKX4HW.js} +66 -461
- package/dist/{chunk-X75JEGHS.js → chunk-S6CYH4RI.js} +7 -6
- package/dist/{chunk-MTJ43R2E.js → chunk-SLH2QLKV.js} +1 -1
- package/dist/{chunk-32NXXCQU.js → chunk-TP5NMF6K.js} +6 -7
- package/dist/{chunk-SQQGLGHW.js → chunk-TTP62HWW.js} +3 -3
- package/dist/{chunk-NVOCKXUQ.js → chunk-VDM6DQES.js} +1 -1
- package/dist/chunk-ZTWA5H77.js +94 -0
- package/dist/components/index.d.ts +2640 -2640
- package/dist/components/index.js +38 -35
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.js +5 -4
- package/dist/features/crm/index.d.ts +51 -51
- package/dist/features/crm/index.js +21 -19
- package/dist/features/dashboard/index.js +23 -21
- package/dist/features/delivery/index.d.ts +2604 -2604
- package/dist/features/delivery/index.js +21 -19
- package/dist/features/lead-gen/index.js +29 -26
- package/dist/features/monitoring/index.js +26 -24
- package/dist/features/monitoring/requests/index.d.ts +26 -26
- package/dist/features/monitoring/requests/index.js +21 -19
- package/dist/features/operations/index.d.ts +10 -10
- package/dist/features/operations/index.js +28 -25
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.d.ts +34 -34
- package/dist/features/settings/index.js +22 -20
- package/dist/hooks/delivery/index.css +589 -0
- package/dist/hooks/delivery/index.d.ts +3044 -0
- package/dist/hooks/delivery/index.js +4 -0
- package/dist/hooks/index.d.ts +3103 -3120
- package/dist/hooks/index.js +20 -18
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +506 -0
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -0
- package/dist/hooks/published.d.ts +3103 -3120
- package/dist/hooks/published.js +20 -18
- package/dist/index.d.ts +3409 -3361
- package/dist/index.js +21 -19
- package/dist/initialization/index.js +4 -3
- package/dist/layout/index.js +3 -3
- package/dist/organization/index.js +4 -3
- package/dist/profile/index.js +2 -1
- package/dist/provider/ElevasisServiceContext.d.ts +54 -0
- package/dist/provider/ElevasisServiceContext.js +1 -0
- package/dist/provider/index.d.ts +244 -240
- package/dist/provider/index.js +17 -16
- package/dist/provider/published.d.ts +244 -240
- package/dist/provider/published.js +15 -14
- package/dist/types/index.d.ts +2349 -2332
- package/dist/utils/index.d.ts +73 -1
- package/dist/utils/index.js +2 -1
- package/dist/zustand/index.d.ts +7 -7
- package/package.json +3 -3
- package/dist/{chunk-4BF74JVD.js → chunk-6GUW5GGF.js} +1 -1
- package/dist/{chunk-ELJIFLCB.js → chunk-KRWALB24.js} +6 -6
package/dist/index.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import './chunk-XCYKC6OZ.js';
|
|
2
2
|
export { useAvailablePresets } from './chunk-6RWMRQN5.js';
|
|
3
|
-
export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-
|
|
3
|
+
export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-E4WQGJNS.js';
|
|
4
4
|
import './chunk-7M2VOCYN.js';
|
|
5
|
-
export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, isSessionCapable,
|
|
6
|
-
export { observabilityKeys, useErrorTrends } from './chunk-LXHZYSMQ.js';
|
|
5
|
+
export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, isSessionCapable, operationsKeys, projectActivityKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateList, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, useProjectActivities, useProjectRealtime, useReactivateMembership, useRecentExecutionsByResource, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateRequestStatus, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification } from './chunk-R7GKX4HW.js';
|
|
7
6
|
import './chunk-BRXELOHC.js';
|
|
7
|
+
export { observabilityKeys, useErrorTrends } from './chunk-QSTH6T77.js';
|
|
8
|
+
export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateProject as useCreateDeliveryProject, useCreateMilestone, useCreateNote, useCreateTask, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteMilestone, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateProject as useUpdateDeliveryProject, useUpdateMilestone, useUpdateTask } from './chunk-GRGRBWIO.js';
|
|
8
9
|
export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-22UVE3RA.js';
|
|
9
10
|
export { useMergedExecution } from './chunk-3ZMAGTWF.js';
|
|
10
|
-
export { createTestFeaturesProvider } from './chunk-
|
|
11
|
-
export { ElevasisUIProvider } from './chunk-
|
|
11
|
+
export { createTestFeaturesProvider } from './chunk-OCCZRPER.js';
|
|
12
|
+
export { ElevasisUIProvider } from './chunk-34NQLV2W.js';
|
|
12
13
|
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from './chunk-R73EHHPN.js';
|
|
13
14
|
import './chunk-WLOQ4IBG.js';
|
|
14
|
-
export { ElevasisFeaturesProvider, FeatureShell, createFeatureAccessHook, createUseFeatureAccess, useElevasisFeatures, useOptionalElevasisFeatures } from './chunk-
|
|
15
|
+
export { ElevasisFeaturesProvider, FeatureShell, createFeatureAccessHook, createUseFeatureAccess, useElevasisFeatures, useOptionalElevasisFeatures } from './chunk-2TDZBYXI.js';
|
|
16
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from './chunk-P3TFNFZS.js';
|
|
15
17
|
import './chunk-RX4UWZZR.js';
|
|
16
|
-
import './chunk-
|
|
18
|
+
import './chunk-TTP62HWW.js';
|
|
19
|
+
import './chunk-SZHARWKU.js';
|
|
17
20
|
import './chunk-3KMDHCAR.js';
|
|
18
21
|
import './chunk-NYBEU5TE.js';
|
|
19
|
-
export {
|
|
20
|
-
import './chunk-SZHARWKU.js';
|
|
21
|
-
export { ApiClientProvider, useApiClient, useApiClientContext } from './chunk-NVOCKXUQ.js';
|
|
22
|
+
export { ApiClientProvider, useApiClient, useApiClientContext } from './chunk-VDM6DQES.js';
|
|
22
23
|
export { ScrollToTop, TanStackRouterBridge } from './chunk-2IFYDILW.js';
|
|
23
|
-
|
|
24
|
-
export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-
|
|
25
|
-
export { OrganizationProvider } from './chunk-
|
|
24
|
+
export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
25
|
+
export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-7YQKVWSD.js';
|
|
26
|
+
export { OrganizationProvider } from './chunk-6IA2OMAE.js';
|
|
26
27
|
export { AppearanceProvider, useAppearance } from './chunk-QJ2KCHKX.js';
|
|
27
|
-
export { createUseAppInitialization } from './chunk-
|
|
28
|
+
export { createUseAppInitialization } from './chunk-HQ7M6PBW.js';
|
|
28
29
|
import './chunk-DT3QYZVU.js';
|
|
29
30
|
import './chunk-RNP5R5I3.js';
|
|
30
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, suppressKnownWarnings, validateEmail } from './chunk-
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
31
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from './chunk-GCBWGGI6.js';
|
|
32
|
+
export { ResourceStatusColors } from './chunk-KRWALB24.js';
|
|
33
|
+
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from './chunk-SLH2QLKV.js';
|
|
34
|
+
export { InitializationContext, InitializationProvider, useInitialization } from './chunk-DK2HVHCY.js';
|
|
33
35
|
export { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
|
|
34
|
-
export {
|
|
36
|
+
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from './chunk-QHSW4WHM.js';
|
|
37
|
+
export { ElevasisServiceProvider, useElevasisServices } from './chunk-IRW7JMQ4.js';
|
|
35
38
|
export { AuthProvider, useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
36
|
-
export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { createUseAppInitialization } from '../chunk-
|
|
1
|
+
export { createUseAppInitialization } from '../chunk-HQ7M6PBW.js';
|
|
2
2
|
import '../chunk-RNP5R5I3.js';
|
|
3
|
-
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-
|
|
3
|
+
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-DK2HVHCY.js';
|
|
4
4
|
import '../chunk-DD3CCMCZ.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-QHSW4WHM.js';
|
|
6
|
+
import '../chunk-IRW7JMQ4.js';
|
|
6
7
|
import '../chunk-BRJ3QZ4E.js';
|
package/dist/layout/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-
|
|
1
|
+
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-6GUW5GGF.js';
|
|
2
2
|
export { SubshellLoader } from '../chunk-ADSSLKKP.js';
|
|
3
|
+
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-M25JL54Z.js';
|
|
3
4
|
export { PageContainer } from '../chunk-BZZCNLT6.js';
|
|
4
5
|
export { SubshellNavItem } from '../chunk-CEWTOKE7.js';
|
|
5
6
|
export { SubshellSidebarSection } from '../chunk-IIMU5YAJ.js';
|
|
6
|
-
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-M25JL54Z.js';
|
|
7
7
|
export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-WLOQ4IBG.js';
|
|
8
8
|
export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar } from '../chunk-RX4UWZZR.js';
|
|
9
9
|
import '../chunk-NYBEU5TE.js';
|
|
10
10
|
import '../chunk-2IFYDILW.js';
|
|
11
|
+
import '../chunk-Q7DJKLEN.js';
|
|
11
12
|
import '../chunk-QJ2KCHKX.js';
|
|
12
13
|
export { sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subshellNavItemIconSize, topbarHeight } from '../chunk-DT3QYZVU.js';
|
|
13
|
-
import '../chunk-Q7DJKLEN.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-
|
|
2
|
-
export { OrganizationProvider } from '../chunk-
|
|
1
|
+
export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-7YQKVWSD.js';
|
|
2
|
+
export { OrganizationProvider } from '../chunk-6IA2OMAE.js';
|
|
3
3
|
import '../chunk-RNP5R5I3.js';
|
|
4
4
|
export { OrganizationContext, useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-QHSW4WHM.js';
|
|
6
|
+
import '../chunk-IRW7JMQ4.js';
|
|
6
7
|
import '../chunk-BRJ3QZ4E.js';
|
package/dist/profile/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '../chunk-RNP5R5I3.js';
|
|
2
|
-
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-
|
|
2
|
+
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-QHSW4WHM.js';
|
|
3
|
+
import '../chunk-IRW7JMQ4.js';
|
|
3
4
|
import '../chunk-BRJ3QZ4E.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Service context value exposed by ElevasisServiceProvider.
|
|
7
|
+
* Provides a ready-to-use apiRequest function and organization state.
|
|
8
|
+
*
|
|
9
|
+
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
10
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
11
|
+
*/
|
|
12
|
+
interface ElevasisServiceContextValue {
|
|
13
|
+
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
14
|
+
organizationId: string | null;
|
|
15
|
+
isReady: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface ElevasisServiceProviderProps {
|
|
18
|
+
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
19
|
+
organizationId: string | null;
|
|
20
|
+
isReady: boolean;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const ElevasisServiceContext: react.Context<ElevasisServiceContextValue | null>;
|
|
25
|
+
/**
|
|
26
|
+
* Hook to access the ElevasisServiceProvider context.
|
|
27
|
+
* Provides apiRequest, organizationId, and isReady.
|
|
28
|
+
*
|
|
29
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
30
|
+
*/
|
|
31
|
+
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
32
|
+
/**
|
|
33
|
+
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
34
|
+
*
|
|
35
|
+
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
36
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
37
|
+
*
|
|
38
|
+
* @example Testing
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <ElevasisServiceProvider apiRequest={mockApiRequest} organizationId="org-1" isReady={true}>
|
|
41
|
+
* <ComponentUnderTest />
|
|
42
|
+
* </ElevasisServiceProvider>
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @example Embedding
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <ElevasisServiceProvider apiRequest={myFetcher} organizationId={orgId} isReady={!!orgId}>
|
|
48
|
+
* <CommandQueuePanel />
|
|
49
|
+
* </ElevasisServiceProvider>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare function ElevasisServiceProvider({ apiRequest, organizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
export { ElevasisServiceContext, ElevasisServiceProvider, useElevasisServices };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ElevasisServiceContext, ElevasisServiceProvider, useElevasisServices } from '../chunk-IRW7JMQ4.js';
|