@elevasis/ui 2.21.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.
- package/dist/app/index.js +2 -2
- package/dist/{chunk-DMYELNGA.js → chunk-3HEUGBOT.js} +1 -1
- package/dist/{chunk-KVW56ERD.js → chunk-AXXTN44Z.js} +5 -3
- package/dist/{chunk-7GG6OSD7.js → chunk-B4FHWKEF.js} +3354 -2918
- package/dist/{chunk-XLZZOFGM.js → chunk-BSZRKBAW.js} +275 -76
- package/dist/{chunk-CZK67OHH.js → chunk-COG4ABRI.js} +3 -3
- package/dist/{chunk-S7RL77QS.js → chunk-DDZOHLHB.js} +1 -1
- package/dist/{chunk-I5WRKH25.js → chunk-GJ7EIABJ.js} +1 -1
- package/dist/{chunk-LQU62KHD.js → chunk-IBUYJXA3.js} +1209 -705
- package/dist/{chunk-EDX6WIN3.js → chunk-IOTLB6ND.js} +3 -3
- package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
- package/dist/{chunk-VQESMHQV.js → chunk-LJWV4TWV.js} +1 -2
- package/dist/{chunk-EGKNRM6P.js → chunk-LKVBEE63.js} +2 -2
- package/dist/{chunk-BJWIKEQG.js → chunk-LVJGPE6H.js} +6 -14
- package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
- package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
- package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
- package/dist/{chunk-ATEHYDL3.js → chunk-WWJ6S2HQ.js} +6 -2
- package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
- package/dist/{chunk-ULZ2B3NC.js → chunk-ZBCTB5CA.js} +1 -1
- package/dist/components/index.css +85 -85
- package/dist/components/index.d.ts +1646 -1381
- package/dist/components/index.js +236 -30
- package/dist/components/navigation/index.css +589 -0
- package/dist/components/navigation/index.js +3 -3
- package/dist/features/auth/index.css +2 -2
- package/dist/features/auth/index.d.ts +184 -3
- package/dist/features/crm/index.css +2 -2
- package/dist/features/crm/index.d.ts +189 -3
- package/dist/features/crm/index.js +10 -10
- package/dist/features/dashboard/index.css +2 -2
- package/dist/features/dashboard/index.js +9 -9
- package/dist/features/delivery/index.css +85 -85
- package/dist/features/delivery/index.d.ts +189 -3
- package/dist/features/delivery/index.js +10 -10
- package/dist/features/lead-gen/index.css +2 -2
- package/dist/features/lead-gen/index.d.ts +5 -0
- package/dist/features/lead-gen/index.js +10 -10
- package/dist/features/monitoring/index.css +85 -85
- package/dist/features/monitoring/index.d.ts +6 -1
- package/dist/features/monitoring/index.js +11 -11
- package/dist/features/monitoring/requests/index.css +2 -2
- package/dist/features/monitoring/requests/index.d.ts +5 -0
- package/dist/features/monitoring/requests/index.js +9 -9
- package/dist/features/operations/index.css +2 -2
- package/dist/features/operations/index.d.ts +7 -4
- package/dist/features/operations/index.js +12 -12
- package/dist/features/seo/index.d.ts +5 -0
- package/dist/features/settings/index.css +2 -2
- package/dist/features/settings/index.d.ts +210 -9
- package/dist/features/settings/index.js +11 -11
- package/dist/graph/index.css +2 -2
- package/dist/hooks/delivery/index.css +2 -2
- package/dist/hooks/delivery/index.d.ts +184 -3
- package/dist/hooks/index.css +85 -85
- package/dist/hooks/index.d.ts +1815 -1515
- package/dist/hooks/index.js +8 -8
- package/dist/hooks/published.css +85 -85
- package/dist/hooks/published.d.ts +1815 -1515
- package/dist/hooks/published.js +8 -8
- package/dist/index.css +12 -12
- package/dist/index.d.ts +322 -16
- package/dist/index.js +9 -9
- package/dist/initialization/index.d.ts +184 -3
- package/dist/layout/index.js +2 -2
- package/dist/organization/index.css +589 -0
- package/dist/organization/index.js +1 -1
- package/dist/profile/index.d.ts +184 -3
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +6 -0
- package/dist/provider/index.js +7 -7
- package/dist/provider/published.css +463 -0
- package/dist/provider/published.d.ts +6 -0
- package/dist/provider/published.js +4 -4
- package/dist/supabase/index.d.ts +359 -6
- package/dist/test-utils/index.d.ts +46 -2
- package/dist/test-utils/index.js +102 -1
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +195 -6
- package/package.json +2 -2
- /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -2261,6 +2261,7 @@ type Database = {
|
|
|
2261
2261
|
Row: {
|
|
2262
2262
|
config: Json;
|
|
2263
2263
|
created_at: string | null;
|
|
2264
|
+
effective_permissions: string[];
|
|
2264
2265
|
id: string;
|
|
2265
2266
|
membership_status: string | null;
|
|
2266
2267
|
organization_id: string;
|
|
@@ -2272,6 +2273,7 @@ type Database = {
|
|
|
2272
2273
|
Insert: {
|
|
2273
2274
|
config?: Json;
|
|
2274
2275
|
created_at?: string | null;
|
|
2276
|
+
effective_permissions?: string[];
|
|
2275
2277
|
id?: string;
|
|
2276
2278
|
membership_status?: string | null;
|
|
2277
2279
|
organization_id: string;
|
|
@@ -2283,6 +2285,7 @@ type Database = {
|
|
|
2283
2285
|
Update: {
|
|
2284
2286
|
config?: Json;
|
|
2285
2287
|
created_at?: string | null;
|
|
2288
|
+
effective_permissions?: string[];
|
|
2286
2289
|
id?: string;
|
|
2287
2290
|
membership_status?: string | null;
|
|
2288
2291
|
organization_id?: string;
|
|
@@ -2308,6 +2311,147 @@ type Database = {
|
|
|
2308
2311
|
}
|
|
2309
2312
|
];
|
|
2310
2313
|
};
|
|
2314
|
+
org_rol_assignments: {
|
|
2315
|
+
Row: {
|
|
2316
|
+
granted_at: string;
|
|
2317
|
+
granted_by: string | null;
|
|
2318
|
+
membership_id: string;
|
|
2319
|
+
role_id: string;
|
|
2320
|
+
};
|
|
2321
|
+
Insert: {
|
|
2322
|
+
granted_at?: string;
|
|
2323
|
+
granted_by?: string | null;
|
|
2324
|
+
membership_id: string;
|
|
2325
|
+
role_id: string;
|
|
2326
|
+
};
|
|
2327
|
+
Update: {
|
|
2328
|
+
granted_at?: string;
|
|
2329
|
+
granted_by?: string | null;
|
|
2330
|
+
membership_id?: string;
|
|
2331
|
+
role_id?: string;
|
|
2332
|
+
};
|
|
2333
|
+
Relationships: [
|
|
2334
|
+
{
|
|
2335
|
+
foreignKeyName: "org_rol_assignments_granted_by_fkey";
|
|
2336
|
+
columns: ["granted_by"];
|
|
2337
|
+
isOneToOne: false;
|
|
2338
|
+
referencedRelation: "users";
|
|
2339
|
+
referencedColumns: ["id"];
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
foreignKeyName: "org_rol_assignments_membership_id_fkey";
|
|
2343
|
+
columns: ["membership_id"];
|
|
2344
|
+
isOneToOne: false;
|
|
2345
|
+
referencedRelation: "org_memberships";
|
|
2346
|
+
referencedColumns: ["id"];
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
foreignKeyName: "org_rol_assignments_role_id_fkey";
|
|
2350
|
+
columns: ["role_id"];
|
|
2351
|
+
isOneToOne: false;
|
|
2352
|
+
referencedRelation: "org_rol_definitions";
|
|
2353
|
+
referencedColumns: ["id"];
|
|
2354
|
+
}
|
|
2355
|
+
];
|
|
2356
|
+
};
|
|
2357
|
+
org_rol_definitions: {
|
|
2358
|
+
Row: {
|
|
2359
|
+
created_at: string;
|
|
2360
|
+
description: string | null;
|
|
2361
|
+
id: string;
|
|
2362
|
+
is_system: boolean;
|
|
2363
|
+
name: string;
|
|
2364
|
+
organization_id: string | null;
|
|
2365
|
+
slug: string;
|
|
2366
|
+
updated_at: string;
|
|
2367
|
+
};
|
|
2368
|
+
Insert: {
|
|
2369
|
+
created_at?: string;
|
|
2370
|
+
description?: string | null;
|
|
2371
|
+
id?: string;
|
|
2372
|
+
is_system?: boolean;
|
|
2373
|
+
name: string;
|
|
2374
|
+
organization_id?: string | null;
|
|
2375
|
+
slug: string;
|
|
2376
|
+
updated_at?: string;
|
|
2377
|
+
};
|
|
2378
|
+
Update: {
|
|
2379
|
+
created_at?: string;
|
|
2380
|
+
description?: string | null;
|
|
2381
|
+
id?: string;
|
|
2382
|
+
is_system?: boolean;
|
|
2383
|
+
name?: string;
|
|
2384
|
+
organization_id?: string | null;
|
|
2385
|
+
slug?: string;
|
|
2386
|
+
updated_at?: string;
|
|
2387
|
+
};
|
|
2388
|
+
Relationships: [
|
|
2389
|
+
{
|
|
2390
|
+
foreignKeyName: "org_rol_definitions_organization_id_fkey";
|
|
2391
|
+
columns: ["organization_id"];
|
|
2392
|
+
isOneToOne: false;
|
|
2393
|
+
referencedRelation: "organizations";
|
|
2394
|
+
referencedColumns: ["id"];
|
|
2395
|
+
}
|
|
2396
|
+
];
|
|
2397
|
+
};
|
|
2398
|
+
org_rol_grants: {
|
|
2399
|
+
Row: {
|
|
2400
|
+
granted_at: string;
|
|
2401
|
+
permission_key: string;
|
|
2402
|
+
role_id: string;
|
|
2403
|
+
};
|
|
2404
|
+
Insert: {
|
|
2405
|
+
granted_at?: string;
|
|
2406
|
+
permission_key: string;
|
|
2407
|
+
role_id: string;
|
|
2408
|
+
};
|
|
2409
|
+
Update: {
|
|
2410
|
+
granted_at?: string;
|
|
2411
|
+
permission_key?: string;
|
|
2412
|
+
role_id?: string;
|
|
2413
|
+
};
|
|
2414
|
+
Relationships: [
|
|
2415
|
+
{
|
|
2416
|
+
foreignKeyName: "org_rol_grants_permission_key_fkey";
|
|
2417
|
+
columns: ["permission_key"];
|
|
2418
|
+
isOneToOne: false;
|
|
2419
|
+
referencedRelation: "org_rol_permissions";
|
|
2420
|
+
referencedColumns: ["key"];
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
foreignKeyName: "org_rol_grants_role_id_fkey";
|
|
2424
|
+
columns: ["role_id"];
|
|
2425
|
+
isOneToOne: false;
|
|
2426
|
+
referencedRelation: "org_rol_definitions";
|
|
2427
|
+
referencedColumns: ["id"];
|
|
2428
|
+
}
|
|
2429
|
+
];
|
|
2430
|
+
};
|
|
2431
|
+
org_rol_permissions: {
|
|
2432
|
+
Row: {
|
|
2433
|
+
created_at: string;
|
|
2434
|
+
description: string;
|
|
2435
|
+
is_org_grantable: boolean;
|
|
2436
|
+
key: string;
|
|
2437
|
+
updated_at: string;
|
|
2438
|
+
};
|
|
2439
|
+
Insert: {
|
|
2440
|
+
created_at?: string;
|
|
2441
|
+
description: string;
|
|
2442
|
+
is_org_grantable?: boolean;
|
|
2443
|
+
key: string;
|
|
2444
|
+
updated_at?: string;
|
|
2445
|
+
};
|
|
2446
|
+
Update: {
|
|
2447
|
+
created_at?: string;
|
|
2448
|
+
description?: string;
|
|
2449
|
+
is_org_grantable?: boolean;
|
|
2450
|
+
key?: string;
|
|
2451
|
+
updated_at?: string;
|
|
2452
|
+
};
|
|
2453
|
+
Relationships: [];
|
|
2454
|
+
};
|
|
2311
2455
|
organizations: {
|
|
2312
2456
|
Row: {
|
|
2313
2457
|
config: Json;
|
|
@@ -3065,7 +3209,8 @@ type Database = {
|
|
|
3065
3209
|
created_at: string;
|
|
3066
3210
|
description: string | null;
|
|
3067
3211
|
id: string;
|
|
3068
|
-
|
|
3212
|
+
key_hash: string;
|
|
3213
|
+
key_prefix: string | null;
|
|
3069
3214
|
last_triggered_at: string | null;
|
|
3070
3215
|
name: string;
|
|
3071
3216
|
organization_id: string;
|
|
@@ -3078,7 +3223,8 @@ type Database = {
|
|
|
3078
3223
|
created_at?: string;
|
|
3079
3224
|
description?: string | null;
|
|
3080
3225
|
id?: string;
|
|
3081
|
-
|
|
3226
|
+
key_hash: string;
|
|
3227
|
+
key_prefix?: string | null;
|
|
3082
3228
|
last_triggered_at?: string | null;
|
|
3083
3229
|
name: string;
|
|
3084
3230
|
organization_id: string;
|
|
@@ -3091,7 +3237,8 @@ type Database = {
|
|
|
3091
3237
|
created_at?: string;
|
|
3092
3238
|
description?: string | null;
|
|
3093
3239
|
id?: string;
|
|
3094
|
-
|
|
3240
|
+
key_hash?: string;
|
|
3241
|
+
key_prefix?: string | null;
|
|
3095
3242
|
last_triggered_at?: string | null;
|
|
3096
3243
|
name?: string;
|
|
3097
3244
|
organization_id?: string;
|
|
@@ -3137,6 +3284,13 @@ type Database = {
|
|
|
3137
3284
|
Args: never;
|
|
3138
3285
|
Returns: string;
|
|
3139
3286
|
};
|
|
3287
|
+
can_assign_role_in_org: {
|
|
3288
|
+
Args: {
|
|
3289
|
+
p_role_id: string;
|
|
3290
|
+
p_target_membership_id: string;
|
|
3291
|
+
};
|
|
3292
|
+
Returns: boolean;
|
|
3293
|
+
};
|
|
3140
3294
|
current_user_is_platform_admin: {
|
|
3141
3295
|
Args: never;
|
|
3142
3296
|
Returns: boolean;
|
|
@@ -3166,6 +3320,10 @@ type Database = {
|
|
|
3166
3320
|
user_id: string;
|
|
3167
3321
|
}[];
|
|
3168
3322
|
};
|
|
3323
|
+
get_platform_credential_kek: {
|
|
3324
|
+
Args: never;
|
|
3325
|
+
Returns: string;
|
|
3326
|
+
};
|
|
3169
3327
|
get_storage_org_id: {
|
|
3170
3328
|
Args: {
|
|
3171
3329
|
file_path: string;
|
|
@@ -3176,6 +3334,13 @@ type Database = {
|
|
|
3176
3334
|
Args: never;
|
|
3177
3335
|
Returns: string;
|
|
3178
3336
|
};
|
|
3337
|
+
has_org_permission: {
|
|
3338
|
+
Args: {
|
|
3339
|
+
org_id: string;
|
|
3340
|
+
perm_key: string;
|
|
3341
|
+
};
|
|
3342
|
+
Returns: boolean;
|
|
3343
|
+
};
|
|
3179
3344
|
is_org_admin: {
|
|
3180
3345
|
Args: {
|
|
3181
3346
|
org_id: string;
|
|
@@ -3208,6 +3373,22 @@ type Database = {
|
|
|
3208
3373
|
Args: never;
|
|
3209
3374
|
Returns: Json;
|
|
3210
3375
|
};
|
|
3376
|
+
recompute_all_memberships: {
|
|
3377
|
+
Args: never;
|
|
3378
|
+
Returns: undefined;
|
|
3379
|
+
};
|
|
3380
|
+
sync_all_memberships_with_role: {
|
|
3381
|
+
Args: {
|
|
3382
|
+
p_role_id: string;
|
|
3383
|
+
};
|
|
3384
|
+
Returns: undefined;
|
|
3385
|
+
};
|
|
3386
|
+
sync_one_membership: {
|
|
3387
|
+
Args: {
|
|
3388
|
+
p_membership_id: string;
|
|
3389
|
+
};
|
|
3390
|
+
Returns: undefined;
|
|
3391
|
+
};
|
|
3211
3392
|
upsert_user_profile: {
|
|
3212
3393
|
Args: never;
|
|
3213
3394
|
Returns: {
|
|
@@ -4658,7 +4839,7 @@ interface NotificationCountUpdatedEvent {
|
|
|
4658
4839
|
*/
|
|
4659
4840
|
type NotificationSSEEvent = NotificationCountUpdatedEvent;
|
|
4660
4841
|
|
|
4661
|
-
type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
|
|
4842
|
+
type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'credential_read' | 'api_key_change' | 'deployment_change' | 'membership_change';
|
|
4662
4843
|
type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
|
|
4663
4844
|
interface Activity {
|
|
4664
4845
|
id: string;
|
|
@@ -4927,8 +5108,15 @@ interface WebhookEndpoint {
|
|
|
4927
5108
|
* Unique opaque key used in the inbound URL.
|
|
4928
5109
|
* Format: `wh_` + 32 crypto-random hex chars (128 bits of entropy).
|
|
4929
5110
|
* This key IS the credential — it must be kept secret.
|
|
5111
|
+
* Set ONLY on the return value of `create()` — undefined on list/get/getEndpointByKey responses.
|
|
4930
5112
|
*/
|
|
4931
|
-
key
|
|
5113
|
+
key?: string;
|
|
5114
|
+
/**
|
|
5115
|
+
* First 8 characters of the plaintext key for display and grep hints.
|
|
5116
|
+
* Safe to show in list views — not sufficient to reconstruct the full key.
|
|
5117
|
+
* Null on legacy rows that predate the key_hash migration.
|
|
5118
|
+
*/
|
|
5119
|
+
keyPrefix: string | null;
|
|
4932
5120
|
/** User-facing label (e.g., "Zapier → Lead Intake") */
|
|
4933
5121
|
name: string;
|
|
4934
5122
|
/** Optional description for the endpoint */
|
|
@@ -4980,7 +5168,8 @@ type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestS
|
|
|
4980
5168
|
declare const WebhookEndpointResponseSchema: z.ZodObject<{
|
|
4981
5169
|
id: z.ZodString;
|
|
4982
5170
|
organizationId: z.ZodString;
|
|
4983
|
-
key: z.ZodString
|
|
5171
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
keyPrefix: z.ZodNullable<z.ZodString>;
|
|
4984
5173
|
name: z.ZodString;
|
|
4985
5174
|
description: z.ZodNullable<z.ZodString>;
|
|
4986
5175
|
resourceId: z.ZodNullable<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.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",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"@testing-library/jest-dom": "^6.9.1",
|
|
226
226
|
"msw": "^2.11.0",
|
|
227
227
|
"vitest": "^3.2.4",
|
|
228
|
-
"@repo/core": "0.
|
|
228
|
+
"@repo/core": "0.12.0",
|
|
229
229
|
"@repo/eslint-config": "0.0.0",
|
|
230
230
|
"@repo/typescript-config": "0.0.0"
|
|
231
231
|
},
|
|
File without changes
|