@elevasis/ui 2.51.0 → 2.52.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.
Files changed (55) hide show
  1. package/dist/app/index.d.ts +82 -151
  2. package/dist/app/index.js +6 -5
  3. package/dist/auth/index.js +4 -4
  4. package/dist/charts/index.js +4 -4
  5. package/dist/{chunk-SBNC3FRX.js → chunk-CPIQ5GXG.js} +394 -112
  6. package/dist/{chunk-GUKY77FJ.js → chunk-E6NSKXYN.js} +12 -4
  7. package/dist/{chunk-7FPLLSHN.js → chunk-I3CFGE3N.js} +6 -0
  8. package/dist/chunk-M7WWRZ5Z.js +159 -0
  9. package/dist/components/chat/index.d.ts +9 -1
  10. package/dist/components/chat/index.js +1 -1
  11. package/dist/components/index.d.ts +98 -155
  12. package/dist/components/index.js +4 -4
  13. package/dist/components/navigation/index.js +4 -4
  14. package/dist/execution/index.d.ts +2 -0
  15. package/dist/execution/index.js +1 -1
  16. package/dist/features/auth/index.d.ts +80 -150
  17. package/dist/features/auth/index.js +5 -5
  18. package/dist/features/clients/index.js +4 -4
  19. package/dist/features/crm/index.d.ts +80 -150
  20. package/dist/features/crm/index.js +4 -4
  21. package/dist/features/dashboard/index.js +4 -4
  22. package/dist/features/delivery/index.d.ts +80 -150
  23. package/dist/features/delivery/index.js +4 -4
  24. package/dist/features/knowledge/index.js +4 -4
  25. package/dist/features/lead-gen/index.js +4 -4
  26. package/dist/features/monitoring/index.d.ts +1 -1
  27. package/dist/features/monitoring/index.js +4 -4
  28. package/dist/features/monitoring/requests/index.js +5 -5
  29. package/dist/features/operations/index.js +4 -4
  30. package/dist/features/public-agent-chat/index.d.ts +17 -3
  31. package/dist/features/public-agent-chat/index.js +313 -113
  32. package/dist/features/settings/index.d.ts +80 -150
  33. package/dist/features/settings/index.js +4 -4
  34. package/dist/hooks/access/index.js +4 -4
  35. package/dist/hooks/delivery/index.d.ts +80 -150
  36. package/dist/hooks/delivery/index.js +4 -4
  37. package/dist/hooks/index.d.ts +98 -152
  38. package/dist/hooks/index.js +4 -4
  39. package/dist/hooks/published.d.ts +98 -152
  40. package/dist/hooks/published.js +4 -4
  41. package/dist/index.d.ts +116 -155
  42. package/dist/index.js +4 -4
  43. package/dist/initialization/index.d.ts +80 -150
  44. package/dist/knowledge/index.js +5 -5
  45. package/dist/layout/index.js +4 -4
  46. package/dist/organization/index.js +4 -4
  47. package/dist/profile/index.d.ts +80 -150
  48. package/dist/provider/index.d.ts +80 -150
  49. package/dist/provider/index.js +4 -4
  50. package/dist/provider/published.d.ts +80 -150
  51. package/dist/provider/published.js +4 -4
  52. package/dist/supabase/index.d.ts +159 -292
  53. package/dist/types/index.d.ts +81 -151
  54. package/package.json +3 -3
  55. package/dist/chunk-EJL4U7OZ.js +0 -79
@@ -13,9 +13,6 @@ type Json = string | number | boolean | null | {
13
13
  [key: string]: Json | undefined;
14
14
  } | Json[];
15
15
  type Database = {
16
- __InternalSupabase: {
17
- PostgrestVersion: "12.2.3 (519615d)";
18
- };
19
16
  public: {
20
17
  Tables: {
21
18
  acq_artifacts: {
@@ -1215,6 +1212,74 @@ type Database = {
1215
1212
  }
1216
1213
  ];
1217
1214
  };
1215
+ agent_access_grants: {
1216
+ Row: {
1217
+ allowed_origins: string[];
1218
+ branding: Json;
1219
+ capture_fields: Json;
1220
+ code_hash: string | null;
1221
+ code_salt: string | null;
1222
+ created_at: string;
1223
+ disabled_at: string | null;
1224
+ expires_at: string | null;
1225
+ id: string;
1226
+ max_sessions_per_visitor: number;
1227
+ max_turns_per_session: number;
1228
+ mode: string;
1229
+ organization_id: string;
1230
+ resource_id: string;
1231
+ slug: string;
1232
+ tool_policy: Json;
1233
+ updated_at: string;
1234
+ };
1235
+ Insert: {
1236
+ allowed_origins?: string[];
1237
+ branding?: Json;
1238
+ capture_fields?: Json;
1239
+ code_hash?: string | null;
1240
+ code_salt?: string | null;
1241
+ created_at?: string;
1242
+ disabled_at?: string | null;
1243
+ expires_at?: string | null;
1244
+ id?: string;
1245
+ max_sessions_per_visitor?: number;
1246
+ max_turns_per_session?: number;
1247
+ mode?: string;
1248
+ organization_id: string;
1249
+ resource_id: string;
1250
+ slug: string;
1251
+ tool_policy?: Json;
1252
+ updated_at?: string;
1253
+ };
1254
+ Update: {
1255
+ allowed_origins?: string[];
1256
+ branding?: Json;
1257
+ capture_fields?: Json;
1258
+ code_hash?: string | null;
1259
+ code_salt?: string | null;
1260
+ created_at?: string;
1261
+ disabled_at?: string | null;
1262
+ expires_at?: string | null;
1263
+ id?: string;
1264
+ max_sessions_per_visitor?: number;
1265
+ max_turns_per_session?: number;
1266
+ mode?: string;
1267
+ organization_id?: string;
1268
+ resource_id?: string;
1269
+ slug?: string;
1270
+ tool_policy?: Json;
1271
+ updated_at?: string;
1272
+ };
1273
+ Relationships: [
1274
+ {
1275
+ foreignKeyName: "agent_access_grants_organization_id_fkey";
1276
+ columns: ["organization_id"];
1277
+ isOneToOne: false;
1278
+ referencedRelation: "organizations";
1279
+ referencedColumns: ["id"];
1280
+ }
1281
+ ];
1282
+ };
1218
1283
  api_keys: {
1219
1284
  Row: {
1220
1285
  created_at: string | null;
@@ -2122,138 +2187,6 @@ type Database = {
2122
2187
  };
2123
2188
  Relationships: [];
2124
2189
  };
2125
- agent_access_grants: {
2126
- Row: {
2127
- allowed_origins: string[];
2128
- branding: Json;
2129
- capture_fields: Json;
2130
- code_hash: string | null;
2131
- code_salt: string | null;
2132
- created_at: string;
2133
- disabled_at: string | null;
2134
- expires_at: string | null;
2135
- id: string;
2136
- max_sessions_per_visitor: number;
2137
- max_turns_per_session: number;
2138
- mode: string;
2139
- organization_id: string;
2140
- resource_id: string;
2141
- slug: string;
2142
- tool_policy: Json;
2143
- updated_at: string;
2144
- };
2145
- Insert: {
2146
- allowed_origins?: string[];
2147
- branding?: Json;
2148
- capture_fields?: Json;
2149
- code_hash?: string | null;
2150
- code_salt?: string | null;
2151
- created_at?: string;
2152
- disabled_at?: string | null;
2153
- expires_at?: string | null;
2154
- id?: string;
2155
- max_sessions_per_visitor?: number;
2156
- max_turns_per_session?: number;
2157
- mode?: string;
2158
- organization_id: string;
2159
- resource_id: string;
2160
- slug: string;
2161
- tool_policy?: Json;
2162
- updated_at?: string;
2163
- };
2164
- Update: {
2165
- allowed_origins?: string[];
2166
- branding?: Json;
2167
- capture_fields?: Json;
2168
- code_hash?: string | null;
2169
- code_salt?: string | null;
2170
- created_at?: string;
2171
- disabled_at?: string | null;
2172
- expires_at?: string | null;
2173
- id?: string;
2174
- max_sessions_per_visitor?: number;
2175
- max_turns_per_session?: number;
2176
- mode?: string;
2177
- organization_id?: string;
2178
- resource_id?: string;
2179
- slug?: string;
2180
- tool_policy?: Json;
2181
- updated_at?: string;
2182
- };
2183
- Relationships: [
2184
- {
2185
- foreignKeyName: "agent_access_grants_organization_id_fkey";
2186
- columns: ["organization_id"];
2187
- isOneToOne: false;
2188
- referencedRelation: "organizations";
2189
- referencedColumns: ["id"];
2190
- }
2191
- ];
2192
- };
2193
- agent_chat_capabilities: {
2194
- Row: {
2195
- created_at: string;
2196
- expires_at: string;
2197
- grant_id: string;
2198
- id: string;
2199
- organization_id: string;
2200
- origin: string | null;
2201
- resource_id: string;
2202
- revoked_at: string | null;
2203
- session_id: string | null;
2204
- token_hash: string;
2205
- visitor_id: string | null;
2206
- };
2207
- Insert: {
2208
- created_at?: string;
2209
- expires_at: string;
2210
- grant_id: string;
2211
- id?: string;
2212
- organization_id: string;
2213
- origin?: string | null;
2214
- resource_id: string;
2215
- revoked_at?: string | null;
2216
- session_id?: string | null;
2217
- token_hash: string;
2218
- visitor_id?: string | null;
2219
- };
2220
- Update: {
2221
- created_at?: string;
2222
- expires_at?: string;
2223
- grant_id?: string;
2224
- id?: string;
2225
- organization_id?: string;
2226
- origin?: string | null;
2227
- resource_id?: string;
2228
- revoked_at?: string | null;
2229
- session_id?: string | null;
2230
- token_hash?: string;
2231
- visitor_id?: string | null;
2232
- };
2233
- Relationships: [
2234
- {
2235
- foreignKeyName: "agent_chat_capabilities_grant_id_fkey";
2236
- columns: ["grant_id"];
2237
- isOneToOne: false;
2238
- referencedRelation: "agent_access_grants";
2239
- referencedColumns: ["id"];
2240
- },
2241
- {
2242
- foreignKeyName: "agent_chat_capabilities_organization_id_fkey";
2243
- columns: ["organization_id"];
2244
- isOneToOne: false;
2245
- referencedRelation: "organizations";
2246
- referencedColumns: ["id"];
2247
- },
2248
- {
2249
- foreignKeyName: "agent_chat_capabilities_session_id_fkey";
2250
- columns: ["session_id"];
2251
- isOneToOne: false;
2252
- referencedRelation: "sessions";
2253
- referencedColumns: ["session_id"];
2254
- }
2255
- ];
2256
- };
2257
2190
  organizations: {
2258
2191
  Row: {
2259
2192
  config: Json;
@@ -3152,11 +3085,11 @@ type Database = {
3152
3085
  Returns: undefined;
3153
3086
  };
3154
3087
  auth_jwt_claims: {
3155
- Args: never;
3088
+ Args: Record<PropertyKey, never>;
3156
3089
  Returns: Json;
3157
3090
  };
3158
3091
  auth_uid_safe: {
3159
- Args: never;
3092
+ Args: Record<PropertyKey, never>;
3160
3093
  Returns: string;
3161
3094
  };
3162
3095
  can_assign_role_in_org: {
@@ -3167,7 +3100,7 @@ type Database = {
3167
3100
  Returns: boolean;
3168
3101
  };
3169
3102
  current_user_is_platform_admin: {
3170
- Args: never;
3103
+ Args: Record<PropertyKey, never>;
3171
3104
  Returns: boolean;
3172
3105
  };
3173
3106
  current_user_shares_org_with: {
@@ -3177,11 +3110,11 @@ type Database = {
3177
3110
  Returns: boolean;
3178
3111
  };
3179
3112
  current_user_supabase_id: {
3180
- Args: never;
3113
+ Args: Record<PropertyKey, never>;
3181
3114
  Returns: string;
3182
3115
  };
3183
3116
  detect_stalled_executions: {
3184
- Args: never;
3117
+ Args: Record<PropertyKey, never>;
3185
3118
  Returns: undefined;
3186
3119
  };
3187
3120
  execute_session_turn: {
@@ -3202,7 +3135,7 @@ type Database = {
3202
3135
  }[];
3203
3136
  };
3204
3137
  get_platform_credential_kek: {
3205
- Args: never;
3138
+ Args: Record<PropertyKey, never>;
3206
3139
  Returns: string;
3207
3140
  };
3208
3141
  get_storage_org_id: {
@@ -3212,7 +3145,7 @@ type Database = {
3212
3145
  Returns: string;
3213
3146
  };
3214
3147
  get_workos_user_id: {
3215
- Args: never;
3148
+ Args: Record<PropertyKey, never>;
3216
3149
  Returns: string;
3217
3150
  };
3218
3151
  has_org_access: {
@@ -3220,10 +3153,7 @@ type Database = {
3220
3153
  action?: string;
3221
3154
  org_id: string;
3222
3155
  system_path: string;
3223
- };
3224
- Returns: boolean;
3225
- } | {
3226
- Args: {
3156
+ } | {
3227
3157
  action?: string;
3228
3158
  system_path: string;
3229
3159
  };
@@ -3259,15 +3189,15 @@ type Database = {
3259
3189
  Returns: Json;
3260
3190
  };
3261
3191
  process_due_schedules: {
3262
- Args: never;
3192
+ Args: Record<PropertyKey, never>;
3263
3193
  Returns: Json;
3264
3194
  };
3265
3195
  recompute_all_memberships: {
3266
- Args: never;
3196
+ Args: Record<PropertyKey, never>;
3267
3197
  Returns: undefined;
3268
3198
  };
3269
3199
  repair_membership_role_assignments: {
3270
- Args: never;
3200
+ Args: Record<PropertyKey, never>;
3271
3201
  Returns: {
3272
3202
  membership_id: string;
3273
3203
  organization_id: string;
@@ -3297,7 +3227,7 @@ type Database = {
3297
3227
  Returns: string;
3298
3228
  };
3299
3229
  upsert_user_profile: {
3300
- Args: never;
3230
+ Args: Record<PropertyKey, never>;
3301
3231
  Returns: {
3302
3232
  profile_display_name: string;
3303
3233
  profile_email: string;
@@ -5170,6 +5100,7 @@ interface ElevasisAuthenticatedShellProps {
5170
5100
  topbar?: ReactNode | ((context: ElevasisAuthenticatedShellRenderContext) => ReactNode);
5171
5101
  children?: ReactNode;
5172
5102
  fullScreenPaths?: readonly string[];
5103
+ fullScreenPathPrefixes?: readonly string[];
5173
5104
  readyMode?: 'user' | 'organization';
5174
5105
  accountPath?: string;
5175
5106
  signOutReturnTo?: string;
@@ -5185,7 +5116,7 @@ interface ElevasisAuthenticatedShellProps {
5185
5116
  onError?: AppErrorBoundaryProps['onError'];
5186
5117
  sidebarLinks?: (links: ShellSidebarLinkGroup[]) => ShellSidebarLinkGroup[];
5187
5118
  }
5188
- declare function ElevasisAuthenticatedShell({ systems, organizationModel, logos, topbar, children, fullScreenPaths, readyMode, accountPath, signOutReturnTo, appVersion, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, isDev, errorFallback, onError, sidebarLinks }: ElevasisAuthenticatedShellProps): react_jsx_runtime.JSX.Element;
5119
+ declare function ElevasisAuthenticatedShell({ systems, organizationModel, logos, topbar, children, fullScreenPaths, fullScreenPathPrefixes, readyMode, accountPath, signOutReturnTo, appVersion, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, isDev, errorFallback, onError, sidebarLinks }: ElevasisAuthenticatedShellProps): react_jsx_runtime.JSX.Element;
5189
5120
 
5190
5121
  export { ElevasisAuthenticatedShell, createElevasisApp };
5191
5122
  export type { ElevasisAppConfig, ElevasisAppStoreConfig, ElevasisAuthenticatedShellLogoConfig, ElevasisAuthenticatedShellProps, ElevasisAuthenticatedShellRenderContext };
package/dist/app/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSessionCheck, AppErrorBoundary, SidebarProvider, ElevasisSystemsProvider, useElevasisSystems, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer, SystemShell, ElevasisUIProvider } from '../chunk-SBNC3FRX.js';
1
+ import { useSessionCheck, AppErrorBoundary, SidebarProvider, ElevasisSystemsProvider, useElevasisSystems, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer, SystemShell, ElevasisUIProvider } from '../chunk-CPIQ5GXG.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -11,12 +11,12 @@ import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
12
  import { useInitialization } from '../chunk-6DO4PE3O.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
- import '../chunk-EJL4U7OZ.js';
15
- import '../chunk-GUKY77FJ.js';
14
+ import '../chunk-M7WWRZ5Z.js';
15
+ import '../chunk-E6NSKXYN.js';
16
16
  import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-7FPLLSHN.js';
19
+ import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-W2SFTXMT.js';
22
22
  import { listAllSystems } from '../chunk-XOPLS4S6.js';
@@ -126,6 +126,7 @@ function ElevasisAuthenticatedShell({
126
126
  topbar,
127
127
  children,
128
128
  fullScreenPaths = ["/login", "/auth-redirect"],
129
+ fullScreenPathPrefixes = ["/public/", "/chat/"],
129
130
  readyMode = "organization",
130
131
  accountPath = "/settings/account",
131
132
  signOutReturnTo,
@@ -151,7 +152,7 @@ function ElevasisAuthenticatedShell({
151
152
  if (isDev) return [...disabledSubsectionPaths ?? []];
152
153
  return [.../* @__PURE__ */ new Set([...devOnlySubsectionPaths(organizationModel), ...disabledSubsectionPaths ?? []])];
153
154
  }, [disabledSubsectionPaths, isDev, organizationModel]);
154
- const isFullScreenPage = fullScreenPaths.includes(location.pathname);
155
+ const isFullScreenPage = fullScreenPaths.includes(location.pathname) || fullScreenPathPrefixes.some((prefix) => location.pathname.startsWith(prefix));
155
156
  const isReady = readyMode === "user" ? initialization.userReady : initialization.allReady;
156
157
  const shouldShowSidebar = Boolean(user && !isLoading && !isFullScreenPage && isReady);
157
158
  if (!shouldShowSidebar) {
@@ -1,4 +1,4 @@
1
- export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-SBNC3FRX.js';
1
+ export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-CPIQ5GXG.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -11,12 +11,12 @@ import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
12
  import '../chunk-6DO4PE3O.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
- import '../chunk-EJL4U7OZ.js';
15
- import '../chunk-GUKY77FJ.js';
14
+ import '../chunk-M7WWRZ5Z.js';
15
+ import '../chunk-E6NSKXYN.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-7FPLLSHN.js';
19
+ import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-W2SFTXMT.js';
22
22
  import '../chunk-XOPLS4S6.js';
@@ -1,4 +1,4 @@
1
- export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-SBNC3FRX.js';
1
+ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-CPIQ5GXG.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -11,12 +11,12 @@ import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
12
  import '../chunk-6DO4PE3O.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
- import '../chunk-EJL4U7OZ.js';
15
- import '../chunk-GUKY77FJ.js';
14
+ import '../chunk-M7WWRZ5Z.js';
15
+ import '../chunk-E6NSKXYN.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-7FPLLSHN.js';
19
+ import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-W2SFTXMT.js';
22
22
  import '../chunk-XOPLS4S6.js';