@elevasis/ui 2.10.2 → 2.12.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 (46) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/{chunk-YQLE5HR5.js → chunk-235RO24Z.js} +2 -2
  3. package/dist/chunk-3ZMAGTWF.js +18 -0
  4. package/dist/{chunk-AT5XCBTU.js → chunk-7PLBPEBW.js} +2 -2
  5. package/dist/chunk-BRXELOHC.js +47 -0
  6. package/dist/{chunk-KYOF6NYW.js → chunk-ETWKPFOO.js} +1 -1
  7. package/dist/{chunk-M6ZZ2FW5.js → chunk-F6SMVMFC.js} +3 -3
  8. package/dist/{chunk-GJVGV7QZ.js → chunk-GHCYUZZE.js} +276 -5
  9. package/dist/{chunk-XA34RETF.js → chunk-GHIPBT5V.js} +1 -14
  10. package/dist/{chunk-TSX4I3NW.js → chunk-ISVFJCPP.js} +1 -1
  11. package/dist/{chunk-WHQXDETX.js → chunk-MISBW6WW.js} +124 -5
  12. package/dist/{chunk-LPSBID5V.js → chunk-PXFV47B3.js} +1 -1
  13. package/dist/{chunk-CLXMNMIS.js → chunk-TXZXMTZB.js} +652 -110
  14. package/dist/{chunk-6PNHW4X2.js → chunk-TYWZABTP.js} +115 -137
  15. package/dist/{chunk-E3IFHX6A.js → chunk-WM7JTTPX.js} +494 -311
  16. package/dist/{chunk-CYT4PORT.js → chunk-ZKCQEHEJ.js} +7 -51
  17. package/dist/components/index.d.ts +241 -3
  18. package/dist/components/index.js +20 -18
  19. package/dist/execution/index.js +2 -1
  20. package/dist/features/auth/index.d.ts +85 -0
  21. package/dist/features/crm/index.d.ts +94 -2
  22. package/dist/features/crm/index.js +6 -4
  23. package/dist/features/dashboard/index.js +7 -5
  24. package/dist/features/delivery/index.d.ts +132 -13
  25. package/dist/features/delivery/index.js +6 -4
  26. package/dist/features/lead-gen/index.js +10 -8
  27. package/dist/features/monitoring/index.js +8 -6
  28. package/dist/features/operations/index.js +9 -7
  29. package/dist/features/settings/index.d.ts +85 -0
  30. package/dist/features/settings/index.js +7 -5
  31. package/dist/hooks/index.d.ts +426 -52
  32. package/dist/hooks/index.js +5 -3
  33. package/dist/hooks/published.d.ts +426 -52
  34. package/dist/hooks/published.js +5 -3
  35. package/dist/index.d.ts +387 -23
  36. package/dist/index.js +7 -5
  37. package/dist/initialization/index.d.ts +85 -0
  38. package/dist/profile/index.d.ts +85 -0
  39. package/dist/provider/index.js +2 -2
  40. package/dist/supabase/index.d.ts +166 -0
  41. package/dist/supabase/index.js +2 -47
  42. package/dist/theme/index.js +2 -2
  43. package/dist/types/index.d.ts +86 -1
  44. package/dist/zustand/index.d.ts +0 -4
  45. package/dist/zustand/index.js +0 -10
  46. package/package.json +4 -4
@@ -2070,6 +2070,91 @@ type Database = {
2070
2070
  }
2071
2071
  ];
2072
2072
  };
2073
+ reported_issues: {
2074
+ Row: {
2075
+ affected_page: string | null;
2076
+ category: string;
2077
+ context: Json | null;
2078
+ created_at: string;
2079
+ description: string;
2080
+ evidence: Json | null;
2081
+ id: string;
2082
+ organization_id: string;
2083
+ project_id: string | null;
2084
+ reported_at: string;
2085
+ reporter_id: string | null;
2086
+ resolved_at: string | null;
2087
+ severity: string;
2088
+ source: string;
2089
+ status: string;
2090
+ task_id: string | null;
2091
+ title: string;
2092
+ updated_at: string;
2093
+ };
2094
+ Insert: {
2095
+ affected_page?: string | null;
2096
+ category: string;
2097
+ context?: Json | null;
2098
+ created_at?: string;
2099
+ description: string;
2100
+ evidence?: Json | null;
2101
+ id?: string;
2102
+ organization_id: string;
2103
+ project_id?: string | null;
2104
+ reported_at?: string;
2105
+ reporter_id?: string | null;
2106
+ resolved_at?: string | null;
2107
+ severity: string;
2108
+ source: string;
2109
+ status?: string;
2110
+ task_id?: string | null;
2111
+ title: string;
2112
+ updated_at?: string;
2113
+ };
2114
+ Update: {
2115
+ affected_page?: string | null;
2116
+ category?: string;
2117
+ context?: Json | null;
2118
+ created_at?: string;
2119
+ description?: string;
2120
+ evidence?: Json | null;
2121
+ id?: string;
2122
+ organization_id?: string;
2123
+ project_id?: string | null;
2124
+ reported_at?: string;
2125
+ reporter_id?: string | null;
2126
+ resolved_at?: string | null;
2127
+ severity?: string;
2128
+ source?: string;
2129
+ status?: string;
2130
+ task_id?: string | null;
2131
+ title?: string;
2132
+ updated_at?: string;
2133
+ };
2134
+ Relationships: [
2135
+ {
2136
+ foreignKeyName: "reported_issues_organization_id_fkey";
2137
+ columns: ["organization_id"];
2138
+ isOneToOne: false;
2139
+ referencedRelation: "organizations";
2140
+ referencedColumns: ["id"];
2141
+ },
2142
+ {
2143
+ foreignKeyName: "reported_issues_project_id_fkey";
2144
+ columns: ["project_id"];
2145
+ isOneToOne: false;
2146
+ referencedRelation: "prj_projects";
2147
+ referencedColumns: ["id"];
2148
+ },
2149
+ {
2150
+ foreignKeyName: "reported_issues_task_id_fkey";
2151
+ columns: ["task_id"];
2152
+ isOneToOne: false;
2153
+ referencedRelation: "prj_tasks";
2154
+ referencedColumns: ["id"];
2155
+ }
2156
+ ];
2157
+ };
2073
2158
  session_messages: {
2074
2159
  Row: {
2075
2160
  created_at: string | null;
@@ -1,6 +1,6 @@
1
1
  export { createTestFeaturesProvider } from '../chunk-DKQQK3WX.js';
2
- export { ElevasisUIProvider } from '../chunk-LPSBID5V.js';
3
- import '../chunk-6PNHW4X2.js';
2
+ export { ElevasisUIProvider } from '../chunk-PXFV47B3.js';
3
+ import '../chunk-TYWZABTP.js';
4
4
  import '../chunk-F4TPY6YL.js';
5
5
  export { ElevasisFeaturesProvider, FeatureShell, useElevasisFeatures, useOptionalElevasisFeatures } from '../chunk-C7BX547M.js';
6
6
  import '../chunk-RX4UWZZR.js';
@@ -2069,6 +2069,91 @@ type Database = {
2069
2069
  }
2070
2070
  ];
2071
2071
  };
2072
+ reported_issues: {
2073
+ Row: {
2074
+ affected_page: string | null;
2075
+ category: string;
2076
+ context: Json | null;
2077
+ created_at: string;
2078
+ description: string;
2079
+ evidence: Json | null;
2080
+ id: string;
2081
+ organization_id: string;
2082
+ project_id: string | null;
2083
+ reported_at: string;
2084
+ reporter_id: string | null;
2085
+ resolved_at: string | null;
2086
+ severity: string;
2087
+ source: string;
2088
+ status: string;
2089
+ task_id: string | null;
2090
+ title: string;
2091
+ updated_at: string;
2092
+ };
2093
+ Insert: {
2094
+ affected_page?: string | null;
2095
+ category: string;
2096
+ context?: Json | null;
2097
+ created_at?: string;
2098
+ description: string;
2099
+ evidence?: Json | null;
2100
+ id?: string;
2101
+ organization_id: string;
2102
+ project_id?: string | null;
2103
+ reported_at?: string;
2104
+ reporter_id?: string | null;
2105
+ resolved_at?: string | null;
2106
+ severity: string;
2107
+ source: string;
2108
+ status?: string;
2109
+ task_id?: string | null;
2110
+ title: string;
2111
+ updated_at?: string;
2112
+ };
2113
+ Update: {
2114
+ affected_page?: string | null;
2115
+ category?: string;
2116
+ context?: Json | null;
2117
+ created_at?: string;
2118
+ description?: string;
2119
+ evidence?: Json | null;
2120
+ id?: string;
2121
+ organization_id?: string;
2122
+ project_id?: string | null;
2123
+ reported_at?: string;
2124
+ reporter_id?: string | null;
2125
+ resolved_at?: string | null;
2126
+ severity?: string;
2127
+ source?: string;
2128
+ status?: string;
2129
+ task_id?: string | null;
2130
+ title?: string;
2131
+ updated_at?: string;
2132
+ };
2133
+ Relationships: [
2134
+ {
2135
+ foreignKeyName: "reported_issues_organization_id_fkey";
2136
+ columns: ["organization_id"];
2137
+ isOneToOne: false;
2138
+ referencedRelation: "organizations";
2139
+ referencedColumns: ["id"];
2140
+ },
2141
+ {
2142
+ foreignKeyName: "reported_issues_project_id_fkey";
2143
+ columns: ["project_id"];
2144
+ isOneToOne: false;
2145
+ referencedRelation: "prj_projects";
2146
+ referencedColumns: ["id"];
2147
+ },
2148
+ {
2149
+ foreignKeyName: "reported_issues_task_id_fkey";
2150
+ columns: ["task_id"];
2151
+ isOneToOne: false;
2152
+ referencedRelation: "prj_tasks";
2153
+ referencedColumns: ["id"];
2154
+ }
2155
+ ];
2156
+ };
2072
2157
  session_messages: {
2073
2158
  Row: {
2074
2159
  created_at: string | null;
@@ -4456,6 +4541,87 @@ declare const useSupabase: () => SupabaseClient<Database, "public", "public", {
4456
4541
  referencedColumns: ["id"];
4457
4542
  }];
4458
4543
  };
4544
+ reported_issues: {
4545
+ Row: {
4546
+ affected_page: string | null;
4547
+ category: string;
4548
+ context: Json | null;
4549
+ created_at: string;
4550
+ description: string;
4551
+ evidence: Json | null;
4552
+ id: string;
4553
+ organization_id: string;
4554
+ project_id: string | null;
4555
+ reported_at: string;
4556
+ reporter_id: string | null;
4557
+ resolved_at: string | null;
4558
+ severity: string;
4559
+ source: string;
4560
+ status: string;
4561
+ task_id: string | null;
4562
+ title: string;
4563
+ updated_at: string;
4564
+ };
4565
+ Insert: {
4566
+ affected_page?: string | null;
4567
+ category: string;
4568
+ context?: Json | null;
4569
+ created_at?: string;
4570
+ description: string;
4571
+ evidence?: Json | null;
4572
+ id?: string;
4573
+ organization_id: string;
4574
+ project_id?: string | null;
4575
+ reported_at?: string;
4576
+ reporter_id?: string | null;
4577
+ resolved_at?: string | null;
4578
+ severity: string;
4579
+ source: string;
4580
+ status?: string;
4581
+ task_id?: string | null;
4582
+ title: string;
4583
+ updated_at?: string;
4584
+ };
4585
+ Update: {
4586
+ affected_page?: string | null;
4587
+ category?: string;
4588
+ context?: Json | null;
4589
+ created_at?: string;
4590
+ description?: string;
4591
+ evidence?: Json | null;
4592
+ id?: string;
4593
+ organization_id?: string;
4594
+ project_id?: string | null;
4595
+ reported_at?: string;
4596
+ reporter_id?: string | null;
4597
+ resolved_at?: string | null;
4598
+ severity?: string;
4599
+ source?: string;
4600
+ status?: string;
4601
+ task_id?: string | null;
4602
+ title?: string;
4603
+ updated_at?: string;
4604
+ };
4605
+ Relationships: [{
4606
+ foreignKeyName: "reported_issues_organization_id_fkey";
4607
+ columns: ["organization_id"];
4608
+ isOneToOne: false;
4609
+ referencedRelation: "organizations";
4610
+ referencedColumns: ["id"];
4611
+ }, {
4612
+ foreignKeyName: "reported_issues_project_id_fkey";
4613
+ columns: ["project_id"];
4614
+ isOneToOne: false;
4615
+ referencedRelation: "prj_projects";
4616
+ referencedColumns: ["id"];
4617
+ }, {
4618
+ foreignKeyName: "reported_issues_task_id_fkey";
4619
+ columns: ["task_id"];
4620
+ isOneToOne: false;
4621
+ referencedRelation: "prj_tasks";
4622
+ referencedColumns: ["id"];
4623
+ }];
4624
+ };
4459
4625
  session_messages: {
4460
4626
  Row: {
4461
4627
  created_at: string | null;
@@ -1,47 +1,2 @@
1
- import { useAuthContext } from '../chunk-BRJ3QZ4E.js';
2
- import { createClient } from '@supabase/supabase-js';
3
- import { useMemo } from 'react';
4
-
5
- function getSupabaseConfig() {
6
- const url = import.meta.env?.VITE_SUPABASE_URL;
7
- const anonKey = import.meta.env?.VITE_SUPABASE_ANON_KEY;
8
- if (!url || !anonKey) {
9
- throw new Error("Missing Supabase environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)");
10
- }
11
- return { url, anonKey };
12
- }
13
- var _supabase = null;
14
- function getSupabaseClient() {
15
- if (!_supabase) {
16
- const { url, anonKey } = getSupabaseConfig();
17
- _supabase = createClient(url, anonKey);
18
- }
19
- return _supabase;
20
- }
21
- var useSupabase = () => {
22
- const { getAccessToken } = useAuthContext();
23
- const { url, anonKey } = getSupabaseConfig();
24
- return useMemo(
25
- () => createClient(url, anonKey, {
26
- global: {
27
- headers: {
28
- // Additional headers if needed
29
- }
30
- },
31
- accessToken: async () => {
32
- try {
33
- const token = await getAccessToken();
34
- if (!token) {
35
- return null;
36
- }
37
- return token;
38
- } catch {
39
- return null;
40
- }
41
- }
42
- }),
43
- [getAccessToken, url, anonKey]
44
- );
45
- };
46
-
47
- export { getSupabaseClient, useSupabase };
1
+ export { getSupabaseClient, useSupabase } from '../chunk-BRXELOHC.js';
2
+ import '../chunk-BRJ3QZ4E.js';
@@ -1,3 +1,3 @@
1
- export { useAvailablePresets } from '../chunk-KYOF6NYW.js';
2
- export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-6PNHW4X2.js';
1
+ export { useAvailablePresets } from '../chunk-ETWKPFOO.js';
2
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-TYWZABTP.js';
3
3
  import '../chunk-F4TPY6YL.js';
@@ -2511,6 +2511,91 @@ type Database = {
2511
2511
  }
2512
2512
  ];
2513
2513
  };
2514
+ reported_issues: {
2515
+ Row: {
2516
+ affected_page: string | null;
2517
+ category: string;
2518
+ context: Json | null;
2519
+ created_at: string;
2520
+ description: string;
2521
+ evidence: Json | null;
2522
+ id: string;
2523
+ organization_id: string;
2524
+ project_id: string | null;
2525
+ reported_at: string;
2526
+ reporter_id: string | null;
2527
+ resolved_at: string | null;
2528
+ severity: string;
2529
+ source: string;
2530
+ status: string;
2531
+ task_id: string | null;
2532
+ title: string;
2533
+ updated_at: string;
2534
+ };
2535
+ Insert: {
2536
+ affected_page?: string | null;
2537
+ category: string;
2538
+ context?: Json | null;
2539
+ created_at?: string;
2540
+ description: string;
2541
+ evidence?: Json | null;
2542
+ id?: string;
2543
+ organization_id: string;
2544
+ project_id?: string | null;
2545
+ reported_at?: string;
2546
+ reporter_id?: string | null;
2547
+ resolved_at?: string | null;
2548
+ severity: string;
2549
+ source: string;
2550
+ status?: string;
2551
+ task_id?: string | null;
2552
+ title: string;
2553
+ updated_at?: string;
2554
+ };
2555
+ Update: {
2556
+ affected_page?: string | null;
2557
+ category?: string;
2558
+ context?: Json | null;
2559
+ created_at?: string;
2560
+ description?: string;
2561
+ evidence?: Json | null;
2562
+ id?: string;
2563
+ organization_id?: string;
2564
+ project_id?: string | null;
2565
+ reported_at?: string;
2566
+ reporter_id?: string | null;
2567
+ resolved_at?: string | null;
2568
+ severity?: string;
2569
+ source?: string;
2570
+ status?: string;
2571
+ task_id?: string | null;
2572
+ title?: string;
2573
+ updated_at?: string;
2574
+ };
2575
+ Relationships: [
2576
+ {
2577
+ foreignKeyName: "reported_issues_organization_id_fkey";
2578
+ columns: ["organization_id"];
2579
+ isOneToOne: false;
2580
+ referencedRelation: "organizations";
2581
+ referencedColumns: ["id"];
2582
+ },
2583
+ {
2584
+ foreignKeyName: "reported_issues_project_id_fkey";
2585
+ columns: ["project_id"];
2586
+ isOneToOne: false;
2587
+ referencedRelation: "prj_projects";
2588
+ referencedColumns: ["id"];
2589
+ },
2590
+ {
2591
+ foreignKeyName: "reported_issues_task_id_fkey";
2592
+ columns: ["task_id"];
2593
+ isOneToOne: false;
2594
+ referencedRelation: "prj_tasks";
2595
+ referencedColumns: ["id"];
2596
+ }
2597
+ ];
2598
+ };
2514
2599
  session_messages: {
2515
2600
  Row: {
2516
2601
  created_at: string | null;
@@ -4668,7 +4753,7 @@ interface DomainDefinition {
4668
4753
  // ============================================================================
4669
4754
 
4670
4755
  /** Webhook provider identifiers */
4671
- type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify'
4756
+ type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify' | 'test'
4672
4757
 
4673
4758
  /** Webhook trigger configuration */
4674
4759
  interface WebhookTriggerConfig {
@@ -5,16 +5,12 @@ interface SSESliceState {
5
5
  notificationCount: number | null;
6
6
  notificationConnected: boolean;
7
7
  notificationError: string | null;
8
- activityConnected: boolean;
9
- activityError: string | null;
10
8
  commandQueueConnected: boolean;
11
9
  commandQueueError: string | null;
12
10
  };
13
11
  setNotificationCount: (count: number | null) => void;
14
12
  setNotificationConnected: (connected: boolean) => void;
15
13
  setNotificationError: (error: string | null) => void;
16
- setActivityConnected: (connected: boolean) => void;
17
- setActivityError: (error: string | null) => void;
18
14
  setCommandQueueConnected: (connected: boolean) => void;
19
15
  setCommandQueueError: (error: string | null) => void;
20
16
  }
@@ -3,8 +3,6 @@ function resetSSEState(state) {
3
3
  state.sse.notificationCount = null;
4
4
  state.sse.notificationConnected = false;
5
5
  state.sse.notificationError = null;
6
- state.sse.activityConnected = false;
7
- state.sse.activityError = null;
8
6
  state.sse.commandQueueConnected = false;
9
7
  state.sse.commandQueueError = null;
10
8
  }
@@ -14,8 +12,6 @@ function createSSESlice(set) {
14
12
  notificationCount: null,
15
13
  notificationConnected: false,
16
14
  notificationError: null,
17
- activityConnected: false,
18
- activityError: null,
19
15
  commandQueueConnected: false,
20
16
  commandQueueError: null
21
17
  },
@@ -28,12 +24,6 @@ function createSSESlice(set) {
28
24
  setNotificationError: (error) => set((state) => {
29
25
  state.sse.notificationError = error;
30
26
  }),
31
- setActivityConnected: (connected) => set((state) => {
32
- state.sse.activityConnected = connected;
33
- }),
34
- setActivityError: (error) => set((state) => {
35
- state.sse.activityError = error;
36
- }),
37
27
  setCommandQueueConnected: (connected) => set((state) => {
38
28
  state.sse.commandQueueConnected = connected;
39
29
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "2.10.2",
3
+ "version": "2.12.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",
@@ -202,9 +202,9 @@
202
202
  "tsup": "^8.0.0",
203
203
  "typescript": "5.9.2",
204
204
  "vite": "^7.0.0",
205
- "@repo/core": "0.4.0",
206
- "@repo/eslint-config": "0.0.0",
207
- "@repo/typescript-config": "0.0.0"
205
+ "@repo/core": "0.5.0",
206
+ "@repo/typescript-config": "0.0.0",
207
+ "@repo/eslint-config": "0.0.0"
208
208
  },
209
209
  "dependencies": {
210
210
  "@dagrejs/dagre": "^1.1.4",