@elevasis/ui 2.20.0 → 2.22.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 (100) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.js +5 -5
  3. package/dist/charts/index.js +3 -3
  4. package/dist/{chunk-TO7QXDBX.js → chunk-3HEUGBOT.js} +3 -3
  5. package/dist/chunk-AXXTN44Z.js +26 -0
  6. package/dist/{chunk-FMFX4K6E.js → chunk-B4FHWKEF.js} +3390 -2929
  7. package/dist/{chunk-AL23U6C3.js → chunk-BIWHHWCJ.js} +1 -2
  8. package/dist/{chunk-MZFJWCPH.js → chunk-BSZRKBAW.js} +277 -92
  9. package/dist/{chunk-GP3AFJYG.js → chunk-COG4ABRI.js} +8 -13
  10. package/dist/chunk-DDZOHLHB.js +48 -0
  11. package/dist/{chunk-ZE2KQSHL.js → chunk-GJ7EIABJ.js} +4 -4
  12. package/dist/{chunk-YP6T426C.js → chunk-IBUYJXA3.js} +1326 -1110
  13. package/dist/{chunk-2CFOFSSG.js → chunk-IOTLB6ND.js} +8 -13
  14. package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
  15. package/dist/chunk-LJWV4TWV.js +335 -0
  16. package/dist/{chunk-PJVG3ISO.js → chunk-LKVBEE63.js} +7 -9
  17. package/dist/{chunk-JR5WNTLA.js → chunk-LVJGPE6H.js} +11 -24
  18. package/dist/{chunk-OUYH2SBS.js → chunk-LVUCBY7X.js} +2 -2
  19. package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
  20. package/dist/{chunk-OD7GWIZS.js → chunk-SGXXJE52.js} +1 -121
  21. package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
  22. package/dist/{chunk-R7OJCNL3.js → chunk-T6INEVX6.js} +1 -1
  23. package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
  24. package/dist/{chunk-CTTY6FUT.js → chunk-TSSKOQBX.js} +2 -2
  25. package/dist/{chunk-GTYUP7MB.js → chunk-WWJ6S2HQ.js} +10 -22
  26. package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
  27. package/dist/{chunk-BHR7IV72.js → chunk-XUYBOO32.js} +1 -1
  28. package/dist/{chunk-M7W7CGPL.js → chunk-Z6FAH4XV.js} +1 -1
  29. package/dist/{chunk-Q4QJOSVS.js → chunk-ZBCTB5CA.js} +1 -1
  30. package/dist/components/index.css +85 -85
  31. package/dist/components/index.d.ts +970 -746
  32. package/dist/components/index.js +246 -39
  33. package/dist/components/navigation/index.css +589 -0
  34. package/dist/components/navigation/index.d.ts +1 -13
  35. package/dist/components/navigation/index.js +11 -1
  36. package/dist/execution/index.d.ts +27 -0
  37. package/dist/features/auth/index.css +2 -2
  38. package/dist/features/auth/index.d.ts +184 -3
  39. package/dist/features/crm/index.css +2 -2
  40. package/dist/features/crm/index.d.ts +201 -38
  41. package/dist/features/crm/index.js +15 -14
  42. package/dist/features/dashboard/index.css +2 -2
  43. package/dist/features/dashboard/index.d.ts +25 -27
  44. package/dist/features/dashboard/index.js +15 -14
  45. package/dist/features/delivery/index.css +85 -85
  46. package/dist/features/delivery/index.d.ts +201 -38
  47. package/dist/features/delivery/index.js +15 -14
  48. package/dist/features/lead-gen/index.css +2 -2
  49. package/dist/features/lead-gen/index.d.ts +19 -37
  50. package/dist/features/lead-gen/index.js +15 -14
  51. package/dist/features/monitoring/index.css +85 -85
  52. package/dist/features/monitoring/index.d.ts +18 -36
  53. package/dist/features/monitoring/index.js +17 -16
  54. package/dist/features/monitoring/requests/index.css +2 -2
  55. package/dist/features/monitoring/requests/index.d.ts +18 -36
  56. package/dist/features/monitoring/requests/index.js +15 -14
  57. package/dist/features/operations/index.css +2 -2
  58. package/dist/features/operations/index.d.ts +49 -67
  59. package/dist/features/operations/index.js +18 -17
  60. package/dist/features/seo/index.d.ts +17 -35
  61. package/dist/features/seo/index.js +1 -1
  62. package/dist/features/settings/index.css +2 -2
  63. package/dist/features/settings/index.d.ts +222 -44
  64. package/dist/features/settings/index.js +16 -15
  65. package/dist/graph/index.css +2 -2
  66. package/dist/hooks/delivery/index.css +2 -2
  67. package/dist/hooks/delivery/index.d.ts +184 -3
  68. package/dist/hooks/delivery/index.js +2 -2
  69. package/dist/hooks/index.css +85 -85
  70. package/dist/hooks/index.d.ts +1862 -1582
  71. package/dist/hooks/index.js +13 -12
  72. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +92 -121
  73. package/dist/hooks/published.css +85 -85
  74. package/dist/hooks/published.d.ts +1862 -1582
  75. package/dist/hooks/published.js +13 -12
  76. package/dist/index.css +12 -12
  77. package/dist/index.d.ts +689 -470
  78. package/dist/index.js +14 -13
  79. package/dist/initialization/index.d.ts +184 -3
  80. package/dist/layout/index.js +2 -2
  81. package/dist/organization/index.css +589 -0
  82. package/dist/organization/index.js +1 -1
  83. package/dist/profile/index.d.ts +184 -3
  84. package/dist/provider/index.css +384 -0
  85. package/dist/provider/index.d.ts +68 -125
  86. package/dist/provider/index.js +11 -10
  87. package/dist/provider/published.css +463 -0
  88. package/dist/provider/published.d.ts +68 -125
  89. package/dist/provider/published.js +8 -7
  90. package/dist/supabase/index.d.ts +359 -6
  91. package/dist/test-utils/index.d.ts +46 -2
  92. package/dist/test-utils/index.js +104 -3
  93. package/dist/theme/index.js +2 -2
  94. package/dist/types/index.d.ts +303 -141
  95. package/dist/utils/index.d.ts +26 -59
  96. package/dist/utils/index.js +1 -1
  97. package/package.json +4 -4
  98. package/dist/chunk-LR5CRY5A.js +0 -514
  99. package/dist/chunk-MG3NF7QL.js +0 -63
  100. /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
@@ -1671,6 +1671,7 @@ type Database = {
1671
1671
  Row: {
1672
1672
  config: Json;
1673
1673
  created_at: string | null;
1674
+ effective_permissions: string[];
1674
1675
  id: string;
1675
1676
  membership_status: string | null;
1676
1677
  organization_id: string;
@@ -1682,6 +1683,7 @@ type Database = {
1682
1683
  Insert: {
1683
1684
  config?: Json;
1684
1685
  created_at?: string | null;
1686
+ effective_permissions?: string[];
1685
1687
  id?: string;
1686
1688
  membership_status?: string | null;
1687
1689
  organization_id: string;
@@ -1693,6 +1695,7 @@ type Database = {
1693
1695
  Update: {
1694
1696
  config?: Json;
1695
1697
  created_at?: string | null;
1698
+ effective_permissions?: string[];
1696
1699
  id?: string;
1697
1700
  membership_status?: string | null;
1698
1701
  organization_id?: string;
@@ -1718,6 +1721,147 @@ type Database = {
1718
1721
  }
1719
1722
  ];
1720
1723
  };
1724
+ org_rol_assignments: {
1725
+ Row: {
1726
+ granted_at: string;
1727
+ granted_by: string | null;
1728
+ membership_id: string;
1729
+ role_id: string;
1730
+ };
1731
+ Insert: {
1732
+ granted_at?: string;
1733
+ granted_by?: string | null;
1734
+ membership_id: string;
1735
+ role_id: string;
1736
+ };
1737
+ Update: {
1738
+ granted_at?: string;
1739
+ granted_by?: string | null;
1740
+ membership_id?: string;
1741
+ role_id?: string;
1742
+ };
1743
+ Relationships: [
1744
+ {
1745
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
1746
+ columns: ["granted_by"];
1747
+ isOneToOne: false;
1748
+ referencedRelation: "users";
1749
+ referencedColumns: ["id"];
1750
+ },
1751
+ {
1752
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
1753
+ columns: ["membership_id"];
1754
+ isOneToOne: false;
1755
+ referencedRelation: "org_memberships";
1756
+ referencedColumns: ["id"];
1757
+ },
1758
+ {
1759
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
1760
+ columns: ["role_id"];
1761
+ isOneToOne: false;
1762
+ referencedRelation: "org_rol_definitions";
1763
+ referencedColumns: ["id"];
1764
+ }
1765
+ ];
1766
+ };
1767
+ org_rol_definitions: {
1768
+ Row: {
1769
+ created_at: string;
1770
+ description: string | null;
1771
+ id: string;
1772
+ is_system: boolean;
1773
+ name: string;
1774
+ organization_id: string | null;
1775
+ slug: string;
1776
+ updated_at: string;
1777
+ };
1778
+ Insert: {
1779
+ created_at?: string;
1780
+ description?: string | null;
1781
+ id?: string;
1782
+ is_system?: boolean;
1783
+ name: string;
1784
+ organization_id?: string | null;
1785
+ slug: string;
1786
+ updated_at?: string;
1787
+ };
1788
+ Update: {
1789
+ created_at?: string;
1790
+ description?: string | null;
1791
+ id?: string;
1792
+ is_system?: boolean;
1793
+ name?: string;
1794
+ organization_id?: string | null;
1795
+ slug?: string;
1796
+ updated_at?: string;
1797
+ };
1798
+ Relationships: [
1799
+ {
1800
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
1801
+ columns: ["organization_id"];
1802
+ isOneToOne: false;
1803
+ referencedRelation: "organizations";
1804
+ referencedColumns: ["id"];
1805
+ }
1806
+ ];
1807
+ };
1808
+ org_rol_grants: {
1809
+ Row: {
1810
+ granted_at: string;
1811
+ permission_key: string;
1812
+ role_id: string;
1813
+ };
1814
+ Insert: {
1815
+ granted_at?: string;
1816
+ permission_key: string;
1817
+ role_id: string;
1818
+ };
1819
+ Update: {
1820
+ granted_at?: string;
1821
+ permission_key?: string;
1822
+ role_id?: string;
1823
+ };
1824
+ Relationships: [
1825
+ {
1826
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
1827
+ columns: ["permission_key"];
1828
+ isOneToOne: false;
1829
+ referencedRelation: "org_rol_permissions";
1830
+ referencedColumns: ["key"];
1831
+ },
1832
+ {
1833
+ foreignKeyName: "org_rol_grants_role_id_fkey";
1834
+ columns: ["role_id"];
1835
+ isOneToOne: false;
1836
+ referencedRelation: "org_rol_definitions";
1837
+ referencedColumns: ["id"];
1838
+ }
1839
+ ];
1840
+ };
1841
+ org_rol_permissions: {
1842
+ Row: {
1843
+ created_at: string;
1844
+ description: string;
1845
+ is_org_grantable: boolean;
1846
+ key: string;
1847
+ updated_at: string;
1848
+ };
1849
+ Insert: {
1850
+ created_at?: string;
1851
+ description: string;
1852
+ is_org_grantable?: boolean;
1853
+ key: string;
1854
+ updated_at?: string;
1855
+ };
1856
+ Update: {
1857
+ created_at?: string;
1858
+ description?: string;
1859
+ is_org_grantable?: boolean;
1860
+ key?: string;
1861
+ updated_at?: string;
1862
+ };
1863
+ Relationships: [];
1864
+ };
1721
1865
  organizations: {
1722
1866
  Row: {
1723
1867
  config: Json;
@@ -2475,7 +2619,8 @@ type Database = {
2475
2619
  created_at: string;
2476
2620
  description: string | null;
2477
2621
  id: string;
2478
- key: string;
2622
+ key_hash: string;
2623
+ key_prefix: string | null;
2479
2624
  last_triggered_at: string | null;
2480
2625
  name: string;
2481
2626
  organization_id: string;
@@ -2488,7 +2633,8 @@ type Database = {
2488
2633
  created_at?: string;
2489
2634
  description?: string | null;
2490
2635
  id?: string;
2491
- key: string;
2636
+ key_hash: string;
2637
+ key_prefix?: string | null;
2492
2638
  last_triggered_at?: string | null;
2493
2639
  name: string;
2494
2640
  organization_id: string;
@@ -2501,7 +2647,8 @@ type Database = {
2501
2647
  created_at?: string;
2502
2648
  description?: string | null;
2503
2649
  id?: string;
2504
- key?: string;
2650
+ key_hash?: string;
2651
+ key_prefix?: string | null;
2505
2652
  last_triggered_at?: string | null;
2506
2653
  name?: string;
2507
2654
  organization_id?: string;
@@ -2547,6 +2694,13 @@ type Database = {
2547
2694
  Args: never;
2548
2695
  Returns: string;
2549
2696
  };
2697
+ can_assign_role_in_org: {
2698
+ Args: {
2699
+ p_role_id: string;
2700
+ p_target_membership_id: string;
2701
+ };
2702
+ Returns: boolean;
2703
+ };
2550
2704
  current_user_is_platform_admin: {
2551
2705
  Args: never;
2552
2706
  Returns: boolean;
@@ -2576,6 +2730,10 @@ type Database = {
2576
2730
  user_id: string;
2577
2731
  }[];
2578
2732
  };
2733
+ get_platform_credential_kek: {
2734
+ Args: never;
2735
+ Returns: string;
2736
+ };
2579
2737
  get_storage_org_id: {
2580
2738
  Args: {
2581
2739
  file_path: string;
@@ -2586,6 +2744,13 @@ type Database = {
2586
2744
  Args: never;
2587
2745
  Returns: string;
2588
2746
  };
2747
+ has_org_permission: {
2748
+ Args: {
2749
+ org_id: string;
2750
+ perm_key: string;
2751
+ };
2752
+ Returns: boolean;
2753
+ };
2589
2754
  is_org_admin: {
2590
2755
  Args: {
2591
2756
  org_id: string;
@@ -2618,6 +2783,22 @@ type Database = {
2618
2783
  Args: never;
2619
2784
  Returns: Json;
2620
2785
  };
2786
+ recompute_all_memberships: {
2787
+ Args: never;
2788
+ Returns: undefined;
2789
+ };
2790
+ sync_all_memberships_with_role: {
2791
+ Args: {
2792
+ p_role_id: string;
2793
+ };
2794
+ Returns: undefined;
2795
+ };
2796
+ sync_one_membership: {
2797
+ Args: {
2798
+ p_membership_id: string;
2799
+ };
2800
+ Returns: undefined;
2801
+ };
2621
2802
  upsert_user_profile: {
2622
2803
  Args: never;
2623
2804
  Returns: {
@@ -1,5 +1,5 @@
1
- export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } from '../../chunk-M7W7CGPL.js';
2
- import '../../chunk-OD7GWIZS.js';
1
+ export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } from '../../chunk-Z6FAH4XV.js';
2
+ import '../../chunk-SGXXJE52.js';
3
3
  import '../../chunk-KRWALB24.js';
4
4
  import '../../chunk-IRW7JMQ4.js';
5
5
  import '../../chunk-I2KLQ2HA.js';
@@ -125,83 +125,14 @@
125
125
  }
126
126
  }
127
127
 
128
- /* src/theme/custom.css */
129
- .mantine-Button-root[data-variant=default] {
130
- background-color: var(--color-surface);
131
- backdrop-filter: var(--glass-blur);
132
- -webkit-backdrop-filter: var(--glass-blur);
133
- border: 1px solid var(--color-border);
134
- color: var(--color-text);
135
- }
136
- .mantine-Button-root[data-variant=default]:hover {
137
- background-color: var(--color-surface-hover);
138
- }
139
- .mantine-Accordion-control:hover {
140
- background-color: var(--color-surface-hover);
141
- }
142
- .mantine-Menu-item:hover:not([data-disabled]) {
143
- background-color: var(--color-surface-hover);
144
- }
145
- .mantine-Select-option:hover {
146
- background-color: var(--color-surface-hover) !important;
147
- }
148
- [data-mantine-color-scheme=dark] .mantine-Tabs-root {
149
- --tab-border-color: var(--color-border);
150
- }
151
- .mantine-Tabs-tab:hover {
152
- background-color: var(--color-surface-hover);
153
- }
154
- .mantine-Pagination-control:not([data-active]) {
155
- background: var(--color-surface);
156
- }
157
- ::-webkit-scrollbar {
158
- width: 5px;
159
- height: 5px;
160
- }
161
- ::-webkit-scrollbar-track {
162
- background: transparent;
163
- }
164
- ::-webkit-scrollbar-thumb {
165
- background: color-mix(in srgb, var(--color-text-subtle) 50%, var(--color-border));
166
- border-radius: 4px;
167
- }
168
- ::-webkit-scrollbar-thumb:hover {
169
- background: var(--color-text-subtle);
170
- }
171
- .mantine-Checkbox-input {
172
- background-color: var(--color-surface);
173
- border-color: var(--color-border);
174
- }
175
- .mantine-Checkbox-input:checked {
176
- background-color: var(--color-primary);
177
- border-color: var(--color-primary);
178
- }
179
- .mantine-Switch-root:has(input:not(:checked)) .mantine-Switch-track {
180
- background-color: var(--color-surface-hover);
181
- border-color: var(--color-border);
182
- }
183
- .mantine-Timeline-root {
184
- --tl-color: var(--color-primary);
185
- }
186
- .mantine-Timeline-item {
187
- --item-border-color: var(--color-border);
188
- }
189
- .mantine-Timeline-itemBullet {
190
- border-color: var(--color-border);
191
- }
192
- .mantine-Timeline-itemBullet:where([data-with-child]) {
193
- background-color: var(--color-primary);
194
- border-color: var(--color-primary);
195
- }
196
- .recharts-surface:focus {
197
- outline: none;
198
- }
199
- .hide-scrollbar {
200
- scrollbar-width: none;
201
- -ms-overflow-style: none;
128
+ /* src/graph/Graph.globals.css */
129
+ .elevasis-graph-root .react-flow__node.selected,
130
+ .elevasis-graph-root .react-flow__node:focus,
131
+ .elevasis-graph-root .react-flow__node:focus-visible {
132
+ outline: none !important;
202
133
  }
203
- .hide-scrollbar::-webkit-scrollbar {
204
- display: none;
134
+ .elevasis-graph-root .react-flow__node.selected > * {
135
+ box-shadow: none;
205
136
  }
206
137
 
207
138
  /* src/graph/Graph.module.css */
@@ -309,7 +240,7 @@
309
240
  transparent 1px),
310
241
  radial-gradient(
311
242
  ellipse at 50% 50%,
312
- color-mix(in srgb, var(--color-primary) 5%, transparent) 0%,
243
+ color-mix(in srgb, var(--color-primary) 1.25%, transparent) 0%,
313
244
  transparent 70%);
314
245
  background-color: color-mix(in srgb, var(--color-background) 50%, var(--glass-background));
315
246
  backdrop-filter: var(--glass-blur);
@@ -328,7 +259,7 @@
328
259
  transparent 1px),
329
260
  radial-gradient(
330
261
  ellipse at 50% 50%,
331
- color-mix(in srgb, var(--color-primary) 9%, transparent) 0%,
262
+ color-mix(in srgb, var(--color-primary) 2.25%, transparent) 0%,
332
263
  transparent 70%);
333
264
  background-size:
334
265
  40px 40px,
@@ -578,12 +509,81 @@
578
509
  }
579
510
  }
580
511
 
581
- /* src/graph/Graph.globals.css */
582
- .elevasis-graph-root .react-flow__node.selected,
583
- .elevasis-graph-root .react-flow__node:focus,
584
- .elevasis-graph-root .react-flow__node:focus-visible {
585
- outline: none !important;
512
+ /* src/theme/custom.css */
513
+ .mantine-Button-root[data-variant=default] {
514
+ background-color: var(--color-surface);
515
+ backdrop-filter: var(--glass-blur);
516
+ -webkit-backdrop-filter: var(--glass-blur);
517
+ border: 1px solid var(--color-border);
518
+ color: var(--color-text);
586
519
  }
587
- .elevasis-graph-root .react-flow__node.selected > * {
588
- box-shadow: none;
520
+ .mantine-Button-root[data-variant=default]:hover {
521
+ background-color: var(--color-surface-hover);
522
+ }
523
+ .mantine-Accordion-control:hover {
524
+ background-color: var(--color-surface-hover);
525
+ }
526
+ .mantine-Menu-item:hover:not([data-disabled]) {
527
+ background-color: var(--color-surface-hover);
528
+ }
529
+ .mantine-Select-option:hover {
530
+ background-color: var(--color-surface-hover) !important;
531
+ }
532
+ [data-mantine-color-scheme=dark] .mantine-Tabs-root {
533
+ --tab-border-color: var(--color-border);
534
+ }
535
+ .mantine-Tabs-tab:hover {
536
+ background-color: var(--color-surface-hover);
537
+ }
538
+ .mantine-Pagination-control:not([data-active]) {
539
+ background: var(--color-surface);
540
+ }
541
+ ::-webkit-scrollbar {
542
+ width: 5px;
543
+ height: 5px;
544
+ }
545
+ ::-webkit-scrollbar-track {
546
+ background: transparent;
547
+ }
548
+ ::-webkit-scrollbar-thumb {
549
+ background: color-mix(in srgb, var(--color-text-subtle) 50%, var(--color-border));
550
+ border-radius: 4px;
551
+ }
552
+ ::-webkit-scrollbar-thumb:hover {
553
+ background: var(--color-text-subtle);
554
+ }
555
+ .mantine-Checkbox-input {
556
+ background-color: var(--color-surface);
557
+ border-color: var(--color-border);
558
+ }
559
+ .mantine-Checkbox-input:checked {
560
+ background-color: var(--color-primary);
561
+ border-color: var(--color-primary);
562
+ }
563
+ .mantine-Switch-root:has(input:not(:checked)) .mantine-Switch-track {
564
+ background-color: var(--color-surface-hover);
565
+ border-color: var(--color-border);
566
+ }
567
+ .mantine-Timeline-root {
568
+ --tl-color: var(--color-primary);
569
+ }
570
+ .mantine-Timeline-item {
571
+ --item-border-color: var(--color-border);
572
+ }
573
+ .mantine-Timeline-itemBullet {
574
+ border-color: var(--color-border);
575
+ }
576
+ .mantine-Timeline-itemBullet:where([data-with-child]) {
577
+ background-color: var(--color-primary);
578
+ border-color: var(--color-primary);
579
+ }
580
+ .recharts-surface:focus {
581
+ outline: none;
582
+ }
583
+ .hide-scrollbar {
584
+ scrollbar-width: none;
585
+ -ms-overflow-style: none;
586
+ }
587
+ .hide-scrollbar::-webkit-scrollbar {
588
+ display: none;
589
589
  }