@elevasis/ui 1.0.0 → 1.2.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/CoreAuthKitInner-KM72EYJS.js +19 -0
- package/dist/auth/index.d.ts +13 -11
- package/dist/auth/index.js +2 -1
- package/dist/{chunk-OEYU5O27.js → chunk-KSG4C5DD.js} +19 -41
- package/dist/chunk-NIAVTSMB.js +21 -0
- package/dist/{chunk-NGXCFBCS.js → chunk-QGEFP2EU.js} +4 -3
- package/dist/{chunk-MAAS6CGR.js → chunk-XVPEDNIM.js} +5 -17
- package/dist/index.d.ts +13 -11
- package/dist/index.js +4 -3
- package/dist/provider/index.js +4 -3
- package/dist/provider/published.js +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WorkOSAuthBridge } from './chunk-NIAVTSMB.js';
|
|
2
|
+
import './chunk-7PLEQFHO.js';
|
|
3
|
+
import { AuthKitProvider } from '@workos-inc/authkit-react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function CoreAuthKitInner({ auth, children }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
AuthKitProvider,
|
|
9
|
+
{
|
|
10
|
+
clientId: auth.clientId,
|
|
11
|
+
apiHostname: auth.apiHostname ?? "api.workos.com",
|
|
12
|
+
redirectUri: auth.redirectUri,
|
|
13
|
+
devMode: auth.devMode ?? false,
|
|
14
|
+
children: /* @__PURE__ */ jsx(WorkOSAuthBridge, { children })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { CoreAuthKitInner };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -28,15 +28,17 @@ declare function WorkOSAuthBridge({ children }: {
|
|
|
28
28
|
children: ReactNode;
|
|
29
29
|
}): react_jsx_runtime.JSX.Element;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
interface OAuthContextValue {
|
|
32
|
+
user: {
|
|
33
|
+
id: string;
|
|
34
|
+
} | null;
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
organizationId: string | null;
|
|
37
|
+
getAccessToken: () => Promise<string>;
|
|
38
|
+
error: string | null;
|
|
39
|
+
initiateOAuthFlow: () => void;
|
|
40
|
+
}
|
|
41
|
+
declare function useOAuthContext(): OAuthContextValue;
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* Returns a stable reference to getAccessToken that won't change between renders
|
|
@@ -81,5 +83,5 @@ declare function useStableAccessToken(): () => Promise<string>;
|
|
|
81
83
|
*/
|
|
82
84
|
declare function useSessionCheck(): void;
|
|
83
85
|
|
|
84
|
-
export { AuthProvider,
|
|
85
|
-
export type { AuthAdapter };
|
|
86
|
+
export { AuthProvider, WorkOSAuthBridge, useAuthContext, useOAuthContext, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken };
|
|
87
|
+
export type { AuthAdapter, OAuthContextValue };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-HBRMWW6V.js';
|
|
2
|
-
export {
|
|
2
|
+
export { WorkOSAuthBridge } from '../chunk-NIAVTSMB.js';
|
|
3
|
+
export { useOAuthContext } from '../chunk-KSG4C5DD.js';
|
|
3
4
|
export { AuthProvider, useAuthContext } from '../chunk-7PLEQFHO.js';
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import { AuthProvider } from './chunk-7PLEQFHO.js';
|
|
2
|
-
import {
|
|
3
|
-
import { createContext, useMemo, useState, useCallback, useEffect, useContext } from 'react';
|
|
2
|
+
import { createContext, useContext, useState, useCallback, useEffect, useMemo } from 'react';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
|
-
function WorkOSAuthBridge({ children }) {
|
|
7
|
-
const { user, isLoading, getAccessToken, organizationId } = useAuth();
|
|
8
|
-
const adaptedUser = useMemo(() => user ? { id: user.id } : null, [user?.id]);
|
|
9
|
-
const value = useMemo(
|
|
10
|
-
() => ({
|
|
11
|
-
user: adaptedUser,
|
|
12
|
-
isLoading,
|
|
13
|
-
getAccessToken,
|
|
14
|
-
organizationId: organizationId ?? null
|
|
15
|
-
}),
|
|
16
|
-
[adaptedUser, isLoading, getAccessToken, organizationId]
|
|
17
|
-
);
|
|
18
|
-
return /* @__PURE__ */ jsx(AuthProvider, { value, children });
|
|
19
|
-
}
|
|
20
5
|
function generateRandomString(length) {
|
|
21
6
|
const array = new Uint8Array(length);
|
|
22
7
|
crypto.getRandomValues(array);
|
|
@@ -117,19 +102,16 @@ function OAuthProvider({ config, children }) {
|
|
|
117
102
|
async (code, codeVerifier) => {
|
|
118
103
|
setState((prev) => ({ ...prev, isLoading: true, error: null }));
|
|
119
104
|
try {
|
|
120
|
-
const response = await fetch(
|
|
121
|
-
"
|
|
122
|
-
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
})
|
|
131
|
-
}
|
|
132
|
-
);
|
|
105
|
+
const response = await fetch("https://api.workos.com/user_management/authenticate", {
|
|
106
|
+
method: "POST",
|
|
107
|
+
headers: { "Content-Type": "application/json" },
|
|
108
|
+
body: JSON.stringify({
|
|
109
|
+
client_id: config.clientId,
|
|
110
|
+
code_verifier: codeVerifier,
|
|
111
|
+
grant_type: "authorization_code",
|
|
112
|
+
code
|
|
113
|
+
})
|
|
114
|
+
});
|
|
133
115
|
if (!response.ok) {
|
|
134
116
|
const text = await response.text();
|
|
135
117
|
throw new Error(`Token exchange failed (${response.status}): ${text}`);
|
|
@@ -143,7 +125,7 @@ function OAuthProvider({ config, children }) {
|
|
|
143
125
|
setState({
|
|
144
126
|
tokens,
|
|
145
127
|
user: decodeUserFromJwt(tokens.accessToken),
|
|
146
|
-
organizationId: decodeOrgIdFromJwt(tokens.accessToken) ??
|
|
128
|
+
organizationId: decodeOrgIdFromJwt(tokens.accessToken) ?? config.organizationId ?? null,
|
|
147
129
|
isLoading: false,
|
|
148
130
|
error: null
|
|
149
131
|
});
|
|
@@ -216,20 +198,16 @@ function OAuthProvider({ config, children }) {
|
|
|
216
198
|
}),
|
|
217
199
|
[state.user, state.isLoading, state.organizationId, state.error, getAccessToken, initiateOAuthFlow]
|
|
218
200
|
);
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
function OAuthAuthBridge({ children }) {
|
|
222
|
-
const { user, isLoading, getAccessToken, organizationId } = useOAuthContext();
|
|
223
|
-
const value = useMemo(
|
|
201
|
+
const authValue = useMemo(
|
|
224
202
|
() => ({
|
|
225
|
-
user,
|
|
226
|
-
isLoading,
|
|
203
|
+
user: state.user,
|
|
204
|
+
isLoading: state.isLoading,
|
|
227
205
|
getAccessToken,
|
|
228
|
-
organizationId
|
|
206
|
+
organizationId: state.organizationId
|
|
229
207
|
}),
|
|
230
|
-
[user, isLoading, getAccessToken, organizationId]
|
|
208
|
+
[state.user, state.isLoading, getAccessToken, state.organizationId]
|
|
231
209
|
);
|
|
232
|
-
return /* @__PURE__ */ jsx(AuthProvider, { value, children });
|
|
210
|
+
return /* @__PURE__ */ jsx(OAuthContext.Provider, { value, children: /* @__PURE__ */ jsx(AuthProvider, { value: authValue, children }) });
|
|
233
211
|
}
|
|
234
212
|
|
|
235
|
-
export {
|
|
213
|
+
export { OAuthProvider, useOAuthContext };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AuthProvider } from './chunk-7PLEQFHO.js';
|
|
2
|
+
import { useAuth } from '@workos-inc/authkit-react';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function WorkOSAuthBridge({ children }) {
|
|
7
|
+
const { user, isLoading, getAccessToken, organizationId } = useAuth();
|
|
8
|
+
const adaptedUser = useMemo(() => user ? { id: user.id } : null, [user?.id]);
|
|
9
|
+
const value = useMemo(
|
|
10
|
+
() => ({
|
|
11
|
+
user: adaptedUser,
|
|
12
|
+
isLoading,
|
|
13
|
+
getAccessToken,
|
|
14
|
+
organizationId: organizationId ?? null
|
|
15
|
+
}),
|
|
16
|
+
[adaptedUser, isLoading, getAccessToken, organizationId]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ jsx(AuthProvider, { value, children });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { WorkOSAuthBridge };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { getPreset, generateShades, createCssVariablesResolver } from './chunk-
|
|
1
|
+
import { getPreset, generateShades, createCssVariablesResolver } from './chunk-XVPEDNIM.js';
|
|
2
2
|
import { ApiClientProvider, createUseApiClient } from './chunk-GDV44UWF.js';
|
|
3
3
|
import { ElevasisServiceProvider } from './chunk-KA7LO7U5.js';
|
|
4
|
-
import { WorkOSAuthBridge
|
|
4
|
+
import { WorkOSAuthBridge } from './chunk-NIAVTSMB.js';
|
|
5
|
+
import { OAuthProvider } from './chunk-KSG4C5DD.js';
|
|
5
6
|
import { useAuthContext } from './chunk-7PLEQFHO.js';
|
|
6
7
|
import { useMemo, useEffect, useRef } from 'react';
|
|
7
8
|
import { Tooltip, Text, Tabs, Table, Stack, SimpleGrid, Select, Combobox, SegmentedControl, ScrollArea, Paper, Popover, Notification, Modal, Menu, Input, HoverCard, Group, Grid, Flex, Code, Divider, Card, Button, Accordion, createTheme, mergeThemeOverrides, MantineProvider } from '@mantine/core';
|
|
@@ -354,7 +355,7 @@ function AuthKitInner({ auth, children }) {
|
|
|
354
355
|
);
|
|
355
356
|
}
|
|
356
357
|
function OAuthInner({ auth, children }) {
|
|
357
|
-
return /* @__PURE__ */ jsx(OAuthProvider, { config: auth, children
|
|
358
|
+
return /* @__PURE__ */ jsx(OAuthProvider, { config: auth, children });
|
|
358
359
|
}
|
|
359
360
|
function ServiceBridge({
|
|
360
361
|
apiUrl,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ApiClientProvider, createUseApiClient } from './chunk-GDV44UWF.js';
|
|
2
2
|
import { ElevasisServiceProvider } from './chunk-KA7LO7U5.js';
|
|
3
|
-
import {
|
|
3
|
+
import { OAuthProvider } from './chunk-KSG4C5DD.js';
|
|
4
4
|
import { useAuthContext } from './chunk-7PLEQFHO.js';
|
|
5
|
-
import { useMemo, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { lazy, useMemo, useEffect, useRef, Suspense, useState } from 'react';
|
|
6
6
|
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import { AuthKitProvider } from '@workos-inc/authkit-react';
|
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
|
9
8
|
|
|
10
9
|
// src/theme/presets/utils.ts
|
|
@@ -1112,6 +1111,7 @@ function createCssVariablesResolver(tokens, preset) {
|
|
|
1112
1111
|
dark: { ...darkShades, ...darkDefaults, ...flat, ...dark }
|
|
1113
1112
|
});
|
|
1114
1113
|
}
|
|
1114
|
+
var LazyCoreAuthKitInner = lazy(() => import('./CoreAuthKitInner-KM72EYJS.js').then((m) => ({ default: m.CoreAuthKitInner })));
|
|
1115
1115
|
var defaultQueryClient = null;
|
|
1116
1116
|
function getDefaultQueryClient() {
|
|
1117
1117
|
if (!defaultQueryClient) {
|
|
@@ -1240,23 +1240,11 @@ function ElevasisCoreProvider({
|
|
|
1240
1240
|
children
|
|
1241
1241
|
}
|
|
1242
1242
|
) : children;
|
|
1243
|
-
const AuthInner = auth.mode === "authkit" ? /* @__PURE__ */ jsx(
|
|
1243
|
+
const AuthInner = auth.mode === "authkit" ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyCoreAuthKitInner, { auth, children: content }) }) : /* @__PURE__ */ jsx(CoreOAuthInner, { auth, children: content });
|
|
1244
1244
|
return /* @__PURE__ */ jsx(QueryClientProvider, { client: resolvedQueryClient, children: AuthInner });
|
|
1245
1245
|
}
|
|
1246
|
-
function CoreAuthKitInner({ auth, children }) {
|
|
1247
|
-
return /* @__PURE__ */ jsx(
|
|
1248
|
-
AuthKitProvider,
|
|
1249
|
-
{
|
|
1250
|
-
clientId: auth.clientId,
|
|
1251
|
-
apiHostname: auth.apiHostname ?? "api.workos.com",
|
|
1252
|
-
redirectUri: auth.redirectUri,
|
|
1253
|
-
devMode: auth.devMode ?? false,
|
|
1254
|
-
children: /* @__PURE__ */ jsx(WorkOSAuthBridge, { children })
|
|
1255
|
-
}
|
|
1256
|
-
);
|
|
1257
|
-
}
|
|
1258
1246
|
function CoreOAuthInner({ auth, children }) {
|
|
1259
|
-
return /* @__PURE__ */ jsx(OAuthProvider, { config: auth, children
|
|
1247
|
+
return /* @__PURE__ */ jsx(OAuthProvider, { config: auth, children });
|
|
1260
1248
|
}
|
|
1261
1249
|
function CoreServiceBridge({
|
|
1262
1250
|
apiUrl,
|
package/dist/index.d.ts
CHANGED
|
@@ -6933,15 +6933,17 @@ declare function WorkOSAuthBridge({ children }: {
|
|
|
6933
6933
|
children: ReactNode;
|
|
6934
6934
|
}): react_jsx_runtime.JSX.Element;
|
|
6935
6935
|
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6936
|
+
interface OAuthContextValue {
|
|
6937
|
+
user: {
|
|
6938
|
+
id: string;
|
|
6939
|
+
} | null;
|
|
6940
|
+
isLoading: boolean;
|
|
6941
|
+
organizationId: string | null;
|
|
6942
|
+
getAccessToken: () => Promise<string>;
|
|
6943
|
+
error: string | null;
|
|
6944
|
+
initiateOAuthFlow: () => void;
|
|
6945
|
+
}
|
|
6946
|
+
declare function useOAuthContext(): OAuthContextValue;
|
|
6945
6947
|
|
|
6946
6948
|
/**
|
|
6947
6949
|
* Returns a stable reference to getAccessToken that won't change between renders
|
|
@@ -7280,5 +7282,5 @@ interface AppInitializationState {
|
|
|
7280
7282
|
*/
|
|
7281
7283
|
declare function createUseAppInitialization(useOrgInitialization: () => UseOrgInitializationReturn): () => AppInitializationState;
|
|
7282
7284
|
|
|
7283
|
-
export { AGENT_CONSTANTS, APIClientError, APIErrorAlert, ActionModal, AgentDefinitionDisplay, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, ApiClientProvider, AuthProvider, BaseEdge, BaseNode, CONTAINER_CONSTANTS, ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, CollapsibleJsonSection, CollapsibleSection, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContextViewer, ContractDisplay, CustomModal, CustomSelector, DetailCardSkeleton, ElevasisCoreProvider, ElevasisProvider, ElevasisServiceProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FormFieldRenderer, GRAPH_CONSTANTS, GlowingHandle, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, JsonViewer, ListSkeleton, MessageBubble, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NotificationBell, NotificationItem, NotificationList, NotificationPanel,
|
|
7284
|
-
export type { ActivityTrendResponse, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AuthAdapter, AuthConfig, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ContextViewerProps, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogEntry, ExecutionLogsPageResponse, ExecutionLogsTableProps, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FitViewButtonVariant, GlowIntensity, GraphFitViewHandlerProps, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, JsonViewerProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LinkProps, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, NavigationButtonProps, NodeColorType, OAuthConfig, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetName, ResourcesResponse, RetryExecutionParams, RouterAdapter, SerializedKnowledgeMap, SerializedKnowledgeNode, SessionListItem, StatCardProps, StatusColorScheme, StatusIconColors, StepExecutionData, StyledMarkdownProps, SubmitActionRequest, SubmitActionResponse, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, TrendIndicatorProps, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseExecutionHealthParams, UseExecutionLogsParams, UseOrgInitializationReturn, UseOrganizationsReturn$1 as UseOrganizationsReturn, UseUserProfileReturn, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
|
7285
|
+
export { AGENT_CONSTANTS, APIClientError, APIErrorAlert, ActionModal, AgentDefinitionDisplay, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, ApiClientProvider, AuthProvider, BaseEdge, BaseNode, CONTAINER_CONSTANTS, ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, CollapsibleJsonSection, CollapsibleSection, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContextViewer, ContractDisplay, CustomModal, CustomSelector, DetailCardSkeleton, ElevasisCoreProvider, ElevasisProvider, ElevasisServiceProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FormFieldRenderer, GRAPH_CONSTANTS, GlowingHandle, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, JsonViewer, ListSkeleton, MessageBubble, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OperationsService, OrganizationSwitcher, PageNotFound, PageTitleCaption, ResourceCard, ResourceDefinitionSection, ResourceHealthChart, RouterProvider, SHARED_VIZ_CONSTANTS, STATUS_COLORS, StatCard, StatCardSkeleton, StatsCardSkeleton, StyledMarkdown, TIMELINE_CONSTANTS, TabCountBadge, TanStackRouterBridge, TaskCard, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UserProfileService, VisualizerContainer, WORKFLOW_CONSTANTS, WorkOSAuthBridge, WorkflowDefinitionDisplay, WorkflowExecutionTimeline, calculateBarPosition, calculateGraphHeight, catalogItemToResourceDefinition, createCssVariablesResolver, createOrganizationsSlice, createUseApiClient, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, executionsKeys, formatDate, formatDuration, formatErrorMessage, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getGraphBackgroundStyles, getHealthColor, getIcon, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, iconMap, isAPIClientError, mantineThemeOverride, observabilityKeys, scheduleKeys, shouldAnimateEdge, showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, useActivities, useActivityTrend, useAgentIterationData, useApiClientContext, useAuthContext, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCommandQueue, useCommandQueueTotals, useConnectionHighlight, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteTask, useDirectedChainHighlighting, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphBackgroundStyles, useGraphHighlighting, useGraphTheme, useListSchedules, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useNewKnowledgeMapLayout, useNodeSelection, useNotificationCount, useNotifications, useOAuthContext, usePatchTask, usePauseSchedule, useReactFlowAgent, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useRouterContext, useSessionCheck, useStableAccessToken, useSubmitAction, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useUserProfile, useWorkflowStepsLayout, validateEmail };
|
|
7286
|
+
export type { ActivityTrendResponse, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AuthAdapter, AuthConfig, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ContextViewerProps, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogEntry, ExecutionLogsPageResponse, ExecutionLogsTableProps, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FitViewButtonVariant, GlowIntensity, GraphFitViewHandlerProps, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, JsonViewerProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LinkProps, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, NavigationButtonProps, NodeColorType, OAuthConfig, OAuthContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetName, ResourcesResponse, RetryExecutionParams, RouterAdapter, SerializedKnowledgeMap, SerializedKnowledgeNode, SessionListItem, StatCardProps, StatusColorScheme, StatusIconColors, StepExecutionData, StyledMarkdownProps, SubmitActionRequest, SubmitActionResponse, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, TrendIndicatorProps, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseExecutionHealthParams, UseExecutionLogsParams, UseOrgInitializationReturn, UseOrganizationsReturn$1 as UseOrganizationsReturn, UseUserProfileReturn, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
package/dist/index.js
CHANGED
|
@@ -20,12 +20,13 @@ export { BaseEdge, BaseNode, GRAPH_CONSTANTS, GlowingHandle, GraphBackground, Gr
|
|
|
20
20
|
export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from './chunk-OUHGHTE7.js';
|
|
21
21
|
export { StyledMarkdown } from './chunk-3KMDHCAR.js';
|
|
22
22
|
import './chunk-YZ6GTZXL.js';
|
|
23
|
-
export { ElevasisProvider, ElevasisUIProvider, mantineThemeOverride } from './chunk-
|
|
24
|
-
export { ElevasisCoreProvider, createCssVariablesResolver, generateShades, getPreset } from './chunk-
|
|
23
|
+
export { ElevasisProvider, ElevasisUIProvider, mantineThemeOverride } from './chunk-QGEFP2EU.js';
|
|
24
|
+
export { ElevasisCoreProvider, createCssVariablesResolver, generateShades, getPreset } from './chunk-XVPEDNIM.js';
|
|
25
25
|
export { ApiClientProvider, createUseApiClient, useApiClientContext } from './chunk-GDV44UWF.js';
|
|
26
26
|
export { ElevasisServiceProvider, useElevasisServices } from './chunk-KA7LO7U5.js';
|
|
27
27
|
export { APIClientError, formatDate, formatErrorMessage, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, validateEmail } from './chunk-7AI5ZYJ4.js';
|
|
28
28
|
export { useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from './chunk-HBRMWW6V.js';
|
|
29
|
-
export {
|
|
29
|
+
export { WorkOSAuthBridge } from './chunk-NIAVTSMB.js';
|
|
30
|
+
export { useOAuthContext } from './chunk-KSG4C5DD.js';
|
|
30
31
|
export { AuthProvider, useAuthContext } from './chunk-7PLEQFHO.js';
|
|
31
32
|
export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
|
package/dist/provider/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { ElevasisProvider, ElevasisUIProvider } from '../chunk-
|
|
2
|
-
export { ElevasisCoreProvider } from '../chunk-
|
|
1
|
+
export { ElevasisProvider, ElevasisUIProvider } from '../chunk-QGEFP2EU.js';
|
|
2
|
+
export { ElevasisCoreProvider } from '../chunk-XVPEDNIM.js';
|
|
3
3
|
import '../chunk-GDV44UWF.js';
|
|
4
4
|
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-KA7LO7U5.js';
|
|
5
5
|
import '../chunk-7AI5ZYJ4.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-NIAVTSMB.js';
|
|
7
|
+
import '../chunk-KSG4C5DD.js';
|
|
7
8
|
import '../chunk-7PLEQFHO.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ElevasisCoreProvider } from '../chunk-
|
|
1
|
+
export { ElevasisCoreProvider } from '../chunk-XVPEDNIM.js';
|
|
2
2
|
import '../chunk-GDV44UWF.js';
|
|
3
3
|
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-KA7LO7U5.js';
|
|
4
4
|
import '../chunk-7AI5ZYJ4.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-KSG4C5DD.js';
|
|
6
6
|
import '../chunk-7PLEQFHO.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"typescript": "5.9.2",
|
|
68
68
|
"vite": "^7.0.0",
|
|
69
69
|
"@repo/core": "0.0.0",
|
|
70
|
-
"@repo/
|
|
71
|
-
"@repo/
|
|
70
|
+
"@repo/eslint-config": "0.0.0",
|
|
71
|
+
"@repo/typescript-config": "0.0.0"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@dagrejs/dagre": "^1.1.4",
|