@tai42/studio-sdk 9.3.0 → 11.0.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/README.md +45 -6
- package/SECURITY.md +10 -2
- package/dist/components/components.css +18 -0
- package/dist/components/dirty-guard.d.ts +23 -10
- package/dist/components/dirty-guard.d.ts.map +1 -1
- package/dist/components/dirty-guard.js +22 -12
- package/dist/components/dirty-guard.js.map +1 -1
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/field.js.map +1 -1
- package/dist/components/fleet-report.d.ts +12 -3
- package/dist/components/fleet-report.d.ts.map +1 -1
- package/dist/components/fleet-report.js +28 -9
- package/dist/components/fleet-report.js.map +1 -1
- package/dist/components/icons.d.ts +4 -0
- package/dist/components/icons.d.ts.map +1 -1
- package/dist/components/icons.js +5 -0
- package/dist/components/icons.js.map +1 -1
- package/dist/hooks/useApi.d.ts +348 -2
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/host.d.ts +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/navigation/context.d.ts +6 -2
- package/dist/navigation/context.d.ts.map +1 -1
- package/dist/navigation/context.js +10 -2
- package/dist/navigation/context.js.map +1 -1
- package/dist/navigation/types.d.ts +1 -0
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/plugin/host-state.d.ts +16 -0
- package/dist/plugin/host-state.d.ts.map +1 -1
- package/dist/plugin/host-state.js +1 -0
- package/dist/plugin/host-state.js.map +1 -1
- package/dist/plugin/types.d.ts +17 -7
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/schema-form/SchemaForm.d.ts +4 -3
- package/dist/schema-form/SchemaForm.d.ts.map +1 -1
- package/dist/schema-form/SchemaForm.js.map +1 -1
- package/dist/schema-form/SecretRefField.d.ts.map +1 -1
- package/dist/schema-form/SecretRefField.js +3 -2
- package/dist/schema-form/SecretRefField.js.map +1 -1
- package/dist/schema-form/context.d.ts +2 -2
- package/dist/schema-form/default-value.d.ts +12 -0
- package/dist/schema-form/default-value.d.ts.map +1 -1
- package/dist/schema-form/default-value.js +34 -3
- package/dist/schema-form/default-value.js.map +1 -1
- package/dist/schema-form/field-node.d.ts +7 -0
- package/dist/schema-form/field-node.d.ts.map +1 -1
- package/dist/schema-form/field-node.js +3 -2
- package/dist/schema-form/field-node.js.map +1 -1
- package/dist/schema-form/index.d.ts +11 -11
- package/dist/schema-form/index.js +11 -11
- package/dist/schema-form/object-fields.d.ts +3 -1
- package/dist/schema-form/object-fields.d.ts.map +1 -1
- package/dist/schema-form/object-fields.js +2 -2
- package/dist/schema-form/object-fields.js.map +1 -1
- package/dist/schema-form/string-field.d.ts +3 -2
- package/dist/schema-form/string-field.d.ts.map +1 -1
- package/dist/schema-form/string-field.js.map +1 -1
- package/dist/schema-form/union-field.d.ts +5 -2
- package/dist/schema-form/union-field.d.ts.map +1 -1
- package/dist/schema-form/union-field.js +68 -15
- package/dist/schema-form/union-field.js.map +1 -1
- package/package.json +3 -3
- package/src/components/components.css +18 -0
- package/src/components/dirty-guard.tsx +23 -13
- package/src/components/field.tsx +10 -5
- package/src/components/fleet-report.tsx +44 -13
- package/src/components/icons.tsx +19 -0
- package/src/host.ts +5 -1
- package/src/index.ts +24 -31
- package/src/navigation/context.tsx +16 -1
- package/src/navigation/types.ts +3 -0
- package/src/plugin/host-state.ts +18 -0
- package/src/plugin/types.ts +17 -7
- package/src/schema-form/SchemaForm.tsx +4 -3
- package/src/schema-form/SecretRefField.tsx +3 -2
- package/src/schema-form/context.ts +2 -2
- package/src/schema-form/default-value.ts +36 -3
- package/src/schema-form/field-node.tsx +21 -2
- package/src/schema-form/index.ts +11 -11
- package/src/schema-form/object-fields.tsx +4 -0
- package/src/schema-form/string-field.tsx +3 -2
- package/src/schema-form/union-field.tsx +85 -19
- package/dist/jq.d.ts +0 -31
- package/dist/jq.d.ts.map +0 -1
- package/dist/jq.js +0 -41
- package/dist/jq.js.map +0 -1
- package/src/jq.ts +0 -61
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -13,6 +13,32 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
13
13
|
description: string | null;
|
|
14
14
|
}>>;
|
|
15
15
|
readonly runTool: (args: import("@tai42/api-client").RunToolArgs, signal?: AbortSignal) => Promise<unknown>;
|
|
16
|
+
readonly reloadTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
|
|
17
|
+
op: string;
|
|
18
|
+
reachable: boolean;
|
|
19
|
+
local_only: boolean;
|
|
20
|
+
results: {
|
|
21
|
+
name: string;
|
|
22
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
23
|
+
payload: unknown;
|
|
24
|
+
error: string | null;
|
|
25
|
+
detail: string | null;
|
|
26
|
+
}[];
|
|
27
|
+
error: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
readonly removeTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
|
|
30
|
+
op: string;
|
|
31
|
+
reachable: boolean;
|
|
32
|
+
local_only: boolean;
|
|
33
|
+
results: {
|
|
34
|
+
name: string;
|
|
35
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
36
|
+
payload: unknown;
|
|
37
|
+
error: string | null;
|
|
38
|
+
detail: string | null;
|
|
39
|
+
}[];
|
|
40
|
+
error: string | null;
|
|
41
|
+
}>;
|
|
16
42
|
readonly submitToolRun: (args: import("@tai42/api-client").SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
|
|
17
43
|
run_id: string;
|
|
18
44
|
}>;
|
|
@@ -325,6 +351,10 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
325
351
|
path: string;
|
|
326
352
|
deleted: true;
|
|
327
353
|
}>;
|
|
354
|
+
readonly deleteTemplateDir: (path: string) => Promise<{
|
|
355
|
+
path: string;
|
|
356
|
+
deleted: true;
|
|
357
|
+
}>;
|
|
328
358
|
readonly renderTemplate: (body: {
|
|
329
359
|
content?: string;
|
|
330
360
|
template_id?: string;
|
|
@@ -400,6 +430,215 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
400
430
|
}[];
|
|
401
431
|
error: string | null;
|
|
402
432
|
}>;
|
|
433
|
+
readonly addToolsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
|
|
434
|
+
status: string;
|
|
435
|
+
env_keys: number;
|
|
436
|
+
fanout: {
|
|
437
|
+
mode: "local-only";
|
|
438
|
+
note: string;
|
|
439
|
+
} | {
|
|
440
|
+
op: string;
|
|
441
|
+
reachable: boolean;
|
|
442
|
+
local_only: boolean;
|
|
443
|
+
results: {
|
|
444
|
+
name: string;
|
|
445
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
446
|
+
payload: unknown;
|
|
447
|
+
error: string | null;
|
|
448
|
+
detail: string | null;
|
|
449
|
+
}[];
|
|
450
|
+
error: string | null;
|
|
451
|
+
mode: "fleet";
|
|
452
|
+
} | {
|
|
453
|
+
op: string;
|
|
454
|
+
reachable: boolean;
|
|
455
|
+
local_only: boolean;
|
|
456
|
+
results: {
|
|
457
|
+
name: string;
|
|
458
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
459
|
+
payload: unknown;
|
|
460
|
+
error: string | null;
|
|
461
|
+
detail: string | null;
|
|
462
|
+
}[];
|
|
463
|
+
error: string | null;
|
|
464
|
+
mode: "unreachable";
|
|
465
|
+
};
|
|
466
|
+
}>;
|
|
467
|
+
readonly removeToolsEntry: (title: string) => Promise<{
|
|
468
|
+
status: string;
|
|
469
|
+
env_keys: number;
|
|
470
|
+
fanout: {
|
|
471
|
+
mode: "local-only";
|
|
472
|
+
note: string;
|
|
473
|
+
} | {
|
|
474
|
+
op: string;
|
|
475
|
+
reachable: boolean;
|
|
476
|
+
local_only: boolean;
|
|
477
|
+
results: {
|
|
478
|
+
name: string;
|
|
479
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
480
|
+
payload: unknown;
|
|
481
|
+
error: string | null;
|
|
482
|
+
detail: string | null;
|
|
483
|
+
}[];
|
|
484
|
+
error: string | null;
|
|
485
|
+
mode: "fleet";
|
|
486
|
+
} | {
|
|
487
|
+
op: string;
|
|
488
|
+
reachable: boolean;
|
|
489
|
+
local_only: boolean;
|
|
490
|
+
results: {
|
|
491
|
+
name: string;
|
|
492
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
493
|
+
payload: unknown;
|
|
494
|
+
error: string | null;
|
|
495
|
+
detail: string | null;
|
|
496
|
+
}[];
|
|
497
|
+
error: string | null;
|
|
498
|
+
mode: "unreachable";
|
|
499
|
+
};
|
|
500
|
+
}>;
|
|
501
|
+
readonly addAgentsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
|
|
502
|
+
status: string;
|
|
503
|
+
env_keys: number;
|
|
504
|
+
fanout: {
|
|
505
|
+
mode: "local-only";
|
|
506
|
+
note: string;
|
|
507
|
+
} | {
|
|
508
|
+
op: string;
|
|
509
|
+
reachable: boolean;
|
|
510
|
+
local_only: boolean;
|
|
511
|
+
results: {
|
|
512
|
+
name: string;
|
|
513
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
514
|
+
payload: unknown;
|
|
515
|
+
error: string | null;
|
|
516
|
+
detail: string | null;
|
|
517
|
+
}[];
|
|
518
|
+
error: string | null;
|
|
519
|
+
mode: "fleet";
|
|
520
|
+
} | {
|
|
521
|
+
op: string;
|
|
522
|
+
reachable: boolean;
|
|
523
|
+
local_only: boolean;
|
|
524
|
+
results: {
|
|
525
|
+
name: string;
|
|
526
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
527
|
+
payload: unknown;
|
|
528
|
+
error: string | null;
|
|
529
|
+
detail: string | null;
|
|
530
|
+
}[];
|
|
531
|
+
error: string | null;
|
|
532
|
+
mode: "unreachable";
|
|
533
|
+
};
|
|
534
|
+
}>;
|
|
535
|
+
readonly removeAgentsEntry: (title: string) => Promise<{
|
|
536
|
+
status: string;
|
|
537
|
+
env_keys: number;
|
|
538
|
+
fanout: {
|
|
539
|
+
mode: "local-only";
|
|
540
|
+
note: string;
|
|
541
|
+
} | {
|
|
542
|
+
op: string;
|
|
543
|
+
reachable: boolean;
|
|
544
|
+
local_only: boolean;
|
|
545
|
+
results: {
|
|
546
|
+
name: string;
|
|
547
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
548
|
+
payload: unknown;
|
|
549
|
+
error: string | null;
|
|
550
|
+
detail: string | null;
|
|
551
|
+
}[];
|
|
552
|
+
error: string | null;
|
|
553
|
+
mode: "fleet";
|
|
554
|
+
} | {
|
|
555
|
+
op: string;
|
|
556
|
+
reachable: boolean;
|
|
557
|
+
local_only: boolean;
|
|
558
|
+
results: {
|
|
559
|
+
name: string;
|
|
560
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
561
|
+
payload: unknown;
|
|
562
|
+
error: string | null;
|
|
563
|
+
detail: string | null;
|
|
564
|
+
}[];
|
|
565
|
+
error: string | null;
|
|
566
|
+
mode: "unreachable";
|
|
567
|
+
};
|
|
568
|
+
}>;
|
|
569
|
+
readonly updateApiTools: (body: import("@tai42/api-client").ApiToolsListsBody) => Promise<{
|
|
570
|
+
status: string;
|
|
571
|
+
env_keys: number;
|
|
572
|
+
fanout: {
|
|
573
|
+
mode: "local-only";
|
|
574
|
+
note: string;
|
|
575
|
+
} | {
|
|
576
|
+
op: string;
|
|
577
|
+
reachable: boolean;
|
|
578
|
+
local_only: boolean;
|
|
579
|
+
results: {
|
|
580
|
+
name: string;
|
|
581
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
582
|
+
payload: unknown;
|
|
583
|
+
error: string | null;
|
|
584
|
+
detail: string | null;
|
|
585
|
+
}[];
|
|
586
|
+
error: string | null;
|
|
587
|
+
mode: "fleet";
|
|
588
|
+
} | {
|
|
589
|
+
op: string;
|
|
590
|
+
reachable: boolean;
|
|
591
|
+
local_only: boolean;
|
|
592
|
+
results: {
|
|
593
|
+
name: string;
|
|
594
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
595
|
+
payload: unknown;
|
|
596
|
+
error: string | null;
|
|
597
|
+
detail: string | null;
|
|
598
|
+
}[];
|
|
599
|
+
error: string | null;
|
|
600
|
+
mode: "unreachable";
|
|
601
|
+
};
|
|
602
|
+
}>;
|
|
603
|
+
readonly listFailedMcps: (signal?: AbortSignal) => Promise<{
|
|
604
|
+
op: string;
|
|
605
|
+
reachable: boolean;
|
|
606
|
+
local_only: boolean;
|
|
607
|
+
results: {
|
|
608
|
+
name: string;
|
|
609
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
610
|
+
payload: unknown;
|
|
611
|
+
error: string | null;
|
|
612
|
+
detail: string | null;
|
|
613
|
+
}[];
|
|
614
|
+
error: string | null;
|
|
615
|
+
}>;
|
|
616
|
+
readonly reloadFailedMcps: () => Promise<{
|
|
617
|
+
op: string;
|
|
618
|
+
reachable: boolean;
|
|
619
|
+
local_only: boolean;
|
|
620
|
+
results: {
|
|
621
|
+
name: string;
|
|
622
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
623
|
+
payload: unknown;
|
|
624
|
+
error: string | null;
|
|
625
|
+
detail: string | null;
|
|
626
|
+
}[];
|
|
627
|
+
error: string | null;
|
|
628
|
+
}>;
|
|
629
|
+
readonly deregisterMcp: (title: string) => Promise<{
|
|
630
|
+
op: string;
|
|
631
|
+
reachable: boolean;
|
|
632
|
+
local_only: boolean;
|
|
633
|
+
results: {
|
|
634
|
+
name: string;
|
|
635
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
636
|
+
payload: unknown;
|
|
637
|
+
error: string | null;
|
|
638
|
+
detail: string | null;
|
|
639
|
+
}[];
|
|
640
|
+
error: string | null;
|
|
641
|
+
}>;
|
|
403
642
|
readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
|
|
404
643
|
tools: string[];
|
|
405
644
|
transport: string;
|
|
@@ -455,6 +694,19 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
455
694
|
config_mode: string;
|
|
456
695
|
read_only: boolean;
|
|
457
696
|
}>;
|
|
697
|
+
readonly reloadConfig: (targets?: string[] | null) => Promise<{
|
|
698
|
+
op: string;
|
|
699
|
+
reachable: boolean;
|
|
700
|
+
local_only: boolean;
|
|
701
|
+
results: {
|
|
702
|
+
name: string;
|
|
703
|
+
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
704
|
+
payload: unknown;
|
|
705
|
+
error: string | null;
|
|
706
|
+
detail: string | null;
|
|
707
|
+
}[];
|
|
708
|
+
error: string | null;
|
|
709
|
+
}>;
|
|
458
710
|
readonly listSettingsProfiles: (signal?: AbortSignal) => Promise<{
|
|
459
711
|
name: string;
|
|
460
712
|
description: string;
|
|
@@ -867,14 +1119,42 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
867
1119
|
target_name: string;
|
|
868
1120
|
payload_expr: string | null;
|
|
869
1121
|
reply_expr: string | null;
|
|
1122
|
+
initial_mode: "agent" | "manual";
|
|
870
1123
|
execution_key: string;
|
|
871
1124
|
channel: string | null;
|
|
872
1125
|
our_identity: string | null;
|
|
873
1126
|
callback_url: string | null;
|
|
1127
|
+
turns_per_hour_override: number | null;
|
|
1128
|
+
error_reply_text: string | null;
|
|
874
1129
|
execution_key_fingerprint: string;
|
|
875
1130
|
}[];
|
|
876
1131
|
total: number;
|
|
877
1132
|
}>;
|
|
1133
|
+
readonly createOrReplaceConversationRoute: (route: import("@tai42/api-client").ConversationRouteCreate) => Promise<{
|
|
1134
|
+
created: boolean;
|
|
1135
|
+
route_name: string;
|
|
1136
|
+
route: {
|
|
1137
|
+
route_name: string;
|
|
1138
|
+
door: "channel" | "api";
|
|
1139
|
+
target_kind: "tool" | "agent";
|
|
1140
|
+
target_name: string;
|
|
1141
|
+
payload_expr: string | null;
|
|
1142
|
+
reply_expr: string | null;
|
|
1143
|
+
initial_mode: "agent" | "manual";
|
|
1144
|
+
execution_key: string;
|
|
1145
|
+
channel: string | null;
|
|
1146
|
+
our_identity: string | null;
|
|
1147
|
+
callback_url: string | null;
|
|
1148
|
+
turns_per_hour_override: number | null;
|
|
1149
|
+
error_reply_text: string | null;
|
|
1150
|
+
execution_key_fingerprint: string;
|
|
1151
|
+
};
|
|
1152
|
+
callback_secret: string | null;
|
|
1153
|
+
}>;
|
|
1154
|
+
readonly deleteConversationRoute: (routeName: string) => Promise<{
|
|
1155
|
+
removed: boolean;
|
|
1156
|
+
route_name: string;
|
|
1157
|
+
}>;
|
|
878
1158
|
readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: import("@tai42/api-client").ConversationThreadFilters, signal?: AbortSignal) => Promise<{
|
|
879
1159
|
total: number;
|
|
880
1160
|
page: number;
|
|
@@ -954,11 +1234,77 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
954
1234
|
}>;
|
|
955
1235
|
readonly getConversationThreadMode: (routeName: string, threadId: string, signal?: AbortSignal) => Promise<{
|
|
956
1236
|
mode: "agent" | "manual";
|
|
957
|
-
source: "
|
|
1237
|
+
source: "route" | "thread";
|
|
958
1238
|
}>;
|
|
959
1239
|
readonly setConversationThreadMode: (routeName: string, threadId: string, mode: import("@tai42/api-client").ConversationThreadMode) => Promise<{
|
|
960
1240
|
mode: "agent" | "manual";
|
|
961
|
-
source: "
|
|
1241
|
+
source: "route" | "thread";
|
|
1242
|
+
}>;
|
|
1243
|
+
readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
|
|
1244
|
+
items: {
|
|
1245
|
+
target_kind: "tool" | "agent";
|
|
1246
|
+
target_name: string;
|
|
1247
|
+
multichannel: boolean;
|
|
1248
|
+
greeting_template: string | null;
|
|
1249
|
+
}[];
|
|
1250
|
+
total: number;
|
|
1251
|
+
}>;
|
|
1252
|
+
readonly getConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
|
|
1253
|
+
target_kind: "tool" | "agent";
|
|
1254
|
+
target_name: string;
|
|
1255
|
+
multichannel: boolean;
|
|
1256
|
+
greeting_template: string | null;
|
|
1257
|
+
}>;
|
|
1258
|
+
readonly setConversationConfig: (config: import("@tai42/api-client").TargetConversationConfig) => Promise<{
|
|
1259
|
+
created: boolean;
|
|
1260
|
+
target_kind: "tool" | "agent";
|
|
1261
|
+
target_name: string;
|
|
1262
|
+
config: {
|
|
1263
|
+
target_kind: "tool" | "agent";
|
|
1264
|
+
target_name: string;
|
|
1265
|
+
multichannel: boolean;
|
|
1266
|
+
greeting_template: string | null;
|
|
1267
|
+
};
|
|
1268
|
+
}>;
|
|
1269
|
+
readonly deleteConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string) => Promise<{
|
|
1270
|
+
removed: boolean;
|
|
1271
|
+
target_kind: "tool" | "agent";
|
|
1272
|
+
target_name: string;
|
|
1273
|
+
}>;
|
|
1274
|
+
readonly listFailedConversationMessages: (signal?: AbortSignal) => Promise<{
|
|
1275
|
+
items: {
|
|
1276
|
+
message_id: string;
|
|
1277
|
+
route_name: string;
|
|
1278
|
+
door: "channel" | "api";
|
|
1279
|
+
thread_id: string;
|
|
1280
|
+
client_address: string;
|
|
1281
|
+
caller_principal: string | null;
|
|
1282
|
+
inbound_text: string;
|
|
1283
|
+
answer_status: "error" | "silent" | "answered" | null;
|
|
1284
|
+
answer: string | null;
|
|
1285
|
+
origin: "client" | "operator";
|
|
1286
|
+
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
1287
|
+
created_at: number;
|
|
1288
|
+
updated_at: number;
|
|
1289
|
+
channel?: string | null | undefined;
|
|
1290
|
+
our_identity?: string | null | undefined;
|
|
1291
|
+
provider_message_id?: string | null | undefined;
|
|
1292
|
+
callback_url?: string | null | undefined;
|
|
1293
|
+
error?: string | null | undefined;
|
|
1294
|
+
outbound_message_ids?: string[] | undefined;
|
|
1295
|
+
attempts?: number | undefined;
|
|
1296
|
+
}[];
|
|
1297
|
+
total: number;
|
|
1298
|
+
}>;
|
|
1299
|
+
readonly deleteConversationThread: (routeName: string, threadId: string) => Promise<{
|
|
1300
|
+
removed: number;
|
|
1301
|
+
route_name: string;
|
|
1302
|
+
thread_id: string;
|
|
1303
|
+
}>;
|
|
1304
|
+
readonly deleteConversationPerson: (personId: string) => Promise<{
|
|
1305
|
+
person_id: string;
|
|
1306
|
+
removed: number;
|
|
1307
|
+
erased: boolean;
|
|
962
1308
|
}>;
|
|
963
1309
|
readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
|
|
964
1310
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+
|
|
1
|
+
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+BAW83d,CAAC;iDAAsF,CAAC;;;;;uCAAuM,CAAC;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CAAC;;;;sDAA2I,CAAC;;;;;;;;;;;wBAAqV,CAAC;;;;;kBAA0J,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAgrC,CAAC;;;eAA+F,CAAC;gBAAuC,CAAC;cAAyB,CAAC;YAAuB,CAAC;cAAuC,CAAC;;uCAAwF,CAAC;;;aAA6F,CAAC;cAAyB,CAAC;;;;;;;;6CAA2T,CAAC,kDAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA0vB,CAAC,+CAAmB,CAAC;;;;;;;;;;;;;;;;kDAAigB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA+xB,CAAC;;;aAA8H,CAAC;sCAAuE,CAAC,4DAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;mBAAqvB,CAAC;;;;;;2EAAsM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAq1B,CAAC;;;;;;;;4BAA+T,CAAC;;;;;;;;;;;;cAA2U,CAAC;gBAAiE,CAAC;eAA4C,CAAC;;+CAAqF,CAAC;0CAA+E,CAAC;qDAA0F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;gHAA21B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAg0F,CAAC;;;;;;;;;;;;+BAAkW,CAAC;oCAAuE,CAAC;;;;;;wCAAgoB,CAAC;SAXjmmF,CAAC;AAE/C,wBAAgB,MAAM,IAAI,SAAS,CAMlC;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/host.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { loadPlugin, getContributions } from './plugin/registry';
|
|
9
9
|
export { setPluginHostState, getPluginHostState, subscribePluginHost, usePluginContributions, } from './plugin/host-state';
|
|
10
|
-
export type { PluginLoaderState, PluginContributionsSnapshot } from './plugin/host-state';
|
|
10
|
+
export type { PluginLoaderState, LoadedPlugin, PluginContributionsSnapshot, } from './plugin/host-state';
|
|
11
11
|
//# sourceMappingURL=host.d.ts.map
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,9 +11,22 @@
|
|
|
11
11
|
* exported only from `@tai42/studio-sdk/host`, which the host bundle imports. See
|
|
12
12
|
* SECURITY.md for the trust boundary.
|
|
13
13
|
*
|
|
14
|
-
* The
|
|
15
|
-
* across the plugin boundary; this package imports nothing internal at
|
|
16
|
-
* (the `ApiClient`/`Interaction` types are type-only imports).
|
|
14
|
+
* The shared modules (react, react-dom, @tai42/studio-sdk, @tai42/jq-studio) are
|
|
15
|
+
* singletons across the plugin boundary; this package imports nothing internal at
|
|
16
|
+
* runtime (the `ApiClient`/`Interaction` types are type-only imports).
|
|
17
|
+
*
|
|
18
|
+
* NO JQ. The visual jq editor is `@tai42/jq-studio`, a separately published,
|
|
19
|
+
* client-agnostic package, and this barrel does not re-export it — not even as a
|
|
20
|
+
* thin pass-through. A bundler emits a package's Web Worker file and wasm engine
|
|
21
|
+
* from the mere PRESENCE of the module in the graph (the assets are emitted while
|
|
22
|
+
* the module is transformed, before tree-shaking can drop an unused re-export), so
|
|
23
|
+
* a pass-through here would put ~2.9MB of jq runtime into every consumer that
|
|
24
|
+
* imports this barrel for a Button. Consumers that want the editor import
|
|
25
|
+
* `@tai42/jq-studio` directly; the import map resolves that bare specifier to the
|
|
26
|
+
* one served copy, so the whole deployment still shares a single jq instance, a
|
|
27
|
+
* single primitives injection, and a single worker. What the SDK keeps is the
|
|
28
|
+
* INJECTION POINT — `ExpressionFieldContext` / `SchemaForm`'s `expressionField`
|
|
29
|
+
* prop, plus the mirrored contract types — which holds no edge to jq at all.
|
|
17
30
|
*/
|
|
18
31
|
import './components/tokens.css';
|
|
19
32
|
import './components/fonts.css';
|
|
@@ -21,8 +34,6 @@ import './components/components.css';
|
|
|
21
34
|
export type { PluginContext, PluginEntry, ToolPanelProps, PluginPageProps, PluginPageParamsSchema, SettingsTabProps, ToolPanelContribution, PageContribution, RegisteredPage, SettingsTabContribution, RegisteredSettingsTab, NavEntryContribution, NavEntrySection, RegisteredNavEntry, PluginContributions, RequiredCapabilities, } from './plugin/types';
|
|
22
35
|
export { STUDIO_PLUGIN_API_VERSION, checkPluginApiVersion } from './plugin/version';
|
|
23
36
|
export type { VersionGateResult } from './plugin/version';
|
|
24
|
-
export { JqField, JQEditorDialog, JqEditorDialog, preloadJq, installDefaultJqWorker, PrimitivesProvider, } from './jq';
|
|
25
|
-
export type { JqFieldProps, JQEditorDialogProps, JqEditorDialogProps, ExpressionLanguage, JqInputKey, JqInputShapeDescriptor, SampleInputProvider, ServerValidationResult, ServerValidateHook, JqFieldDeclaration, Primitives, } from './jq';
|
|
26
37
|
export { ApiProvider, useApi } from './hooks/useApi';
|
|
27
38
|
export type { ApiClient } from './hooks/useApi';
|
|
28
39
|
export { UnauthorizedProvider, useOnUnauthorized } from './hooks/useUnauthorized';
|
|
@@ -75,7 +86,7 @@ export { Dialog } from './components/dialog';
|
|
|
75
86
|
export type { DialogProps } from './components/dialog';
|
|
76
87
|
export { ConfirmDialog } from './components/confirm-dialog';
|
|
77
88
|
export type { ConfirmDialogProps } from './components/confirm-dialog';
|
|
78
|
-
export { GuardedTabs, useRegisterDirty } from './components/dirty-guard';
|
|
89
|
+
export { GuardedTabs, DirtyGuardBoundary, useRegisterDirty } from './components/dirty-guard';
|
|
79
90
|
export { FormDialog } from './components/form-dialog';
|
|
80
91
|
export type { FormDialogProps } from './components/form-dialog';
|
|
81
92
|
export { Drawer } from './components/drawer';
|
|
@@ -131,7 +142,7 @@ export { CopyField } from './components/copy-field';
|
|
|
131
142
|
export type { CopyFieldProps } from './components/copy-field';
|
|
132
143
|
export { TOKEN_NAMES } from './components/tokens';
|
|
133
144
|
export type { TokenName } from './components/tokens';
|
|
134
|
-
export { NAV_ICONS, DashboardIcon, ToolsIcon, AgentsIcon, PresetsIcon, ExtensionsIcon, TemplatesIcon, ConnectorsIcon, HooksIcon, StorageIcon, SchedulingIcon, InteractionsIcon, NotificationsIcon, ConversationsIcon, MarketplaceIcon, ManifestIcon, SettingsIcon, SystemIcon, SearchIcon, SignOutIcon, MenuIcon, CloseIcon, FolderIcon, GridIcon, FilterIcon, ArrowLeftIcon, ArrowUpIcon, ArrowDownIcon, ChevronDownIcon, ChevronRightIcon, CheckIcon, MinusIcon, CopyIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, SortAscIcon, SortDescIcon, SunIcon, MoonIcon, MonitorIcon, CheckCircleIcon, AlertTriangleIcon, XCircleIcon, PendingIcon, } from './components/icons';
|
|
145
|
+
export { NAV_ICONS, DashboardIcon, ToolsIcon, AgentsIcon, PresetsIcon, ExtensionsIcon, TemplatesIcon, ConnectorsIcon, ServedEndpointsIcon, PluginIcon, HooksIcon, StorageIcon, SchedulingIcon, InteractionsIcon, NotificationsIcon, ConversationsIcon, MarketplaceIcon, ManifestIcon, SettingsIcon, SystemIcon, SearchIcon, SignOutIcon, MenuIcon, CloseIcon, FolderIcon, GridIcon, FilterIcon, ArrowLeftIcon, ArrowUpIcon, ArrowDownIcon, ChevronDownIcon, ChevronRightIcon, CheckIcon, MinusIcon, CopyIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, SortAscIcon, SortDescIcon, SunIcon, MoonIcon, MonitorIcon, CheckCircleIcon, AlertTriangleIcon, XCircleIcon, PendingIcon, } from './components/icons';
|
|
135
146
|
export type { IconProps, IconComponent } from './components/icons';
|
|
136
147
|
export { SchemaForm, RecordEntryRendererContext, ExpressionFieldContext, SecretRefField, defaultValueForSchema, validateAgainstSchema, resolveRef, } from './schema-form';
|
|
137
148
|
export type { SchemaFormProps, CompletionProvider, RecordEntryRenderer, RecordEntryContext, ExpressionFieldComponent, ExpressionFieldProps, ExpressionInputShape, ExpressionInputKey, SecretRefFieldProps, SecretRef, JsonSchema, JsonSchemaType, Discriminator, SchemaFormErrors, } from './schema-form';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAQH,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AAGrC,YAAY,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,qBA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AM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,9 +11,22 @@
|
|
|
11
11
|
* exported only from `@tai42/studio-sdk/host`, which the host bundle imports. See
|
|
12
12
|
* SECURITY.md for the trust boundary.
|
|
13
13
|
*
|
|
14
|
-
* The
|
|
15
|
-
* across the plugin boundary; this package imports nothing internal at
|
|
16
|
-
* (the `ApiClient`/`Interaction` types are type-only imports).
|
|
14
|
+
* The shared modules (react, react-dom, @tai42/studio-sdk, @tai42/jq-studio) are
|
|
15
|
+
* singletons across the plugin boundary; this package imports nothing internal at
|
|
16
|
+
* runtime (the `ApiClient`/`Interaction` types are type-only imports).
|
|
17
|
+
*
|
|
18
|
+
* NO JQ. The visual jq editor is `@tai42/jq-studio`, a separately published,
|
|
19
|
+
* client-agnostic package, and this barrel does not re-export it — not even as a
|
|
20
|
+
* thin pass-through. A bundler emits a package's Web Worker file and wasm engine
|
|
21
|
+
* from the mere PRESENCE of the module in the graph (the assets are emitted while
|
|
22
|
+
* the module is transformed, before tree-shaking can drop an unused re-export), so
|
|
23
|
+
* a pass-through here would put ~2.9MB of jq runtime into every consumer that
|
|
24
|
+
* imports this barrel for a Button. Consumers that want the editor import
|
|
25
|
+
* `@tai42/jq-studio` directly; the import map resolves that bare specifier to the
|
|
26
|
+
* one served copy, so the whole deployment still shares a single jq instance, a
|
|
27
|
+
* single primitives injection, and a single worker. What the SDK keeps is the
|
|
28
|
+
* INJECTION POINT — `ExpressionFieldContext` / `SchemaForm`'s `expressionField`
|
|
29
|
+
* prop, plus the mirrored contract types — which holds no edge to jq at all.
|
|
17
30
|
*/
|
|
18
31
|
// The design system, delivered by the BARREL so each host app loads it once and a
|
|
19
32
|
// plugin never ships its own copy. These are bare side-effect imports, so they
|
|
@@ -26,8 +39,6 @@ import './components/tokens.css';
|
|
|
26
39
|
import './components/fonts.css';
|
|
27
40
|
import './components/components.css';
|
|
28
41
|
export { STUDIO_PLUGIN_API_VERSION, checkPluginApiVersion } from './plugin/version';
|
|
29
|
-
// -- jq fields (re-exported from @tai42/jq-studio; the platform owns no jq code) --
|
|
30
|
-
export { JqField, JQEditorDialog, JqEditorDialog, preloadJq, installDefaultJqWorker, PrimitivesProvider, } from './jq';
|
|
31
42
|
// -- Hooks -------------------------------------------------------------------
|
|
32
43
|
export { ApiProvider, useApi } from './hooks/useApi';
|
|
33
44
|
export { UnauthorizedProvider, useOnUnauthorized } from './hooks/useUnauthorized';
|
|
@@ -67,7 +78,7 @@ export { Badge } from './components/badge';
|
|
|
67
78
|
export { Tabs } from './components/tabs';
|
|
68
79
|
export { Dialog } from './components/dialog';
|
|
69
80
|
export { ConfirmDialog } from './components/confirm-dialog';
|
|
70
|
-
export { GuardedTabs, useRegisterDirty } from './components/dirty-guard';
|
|
81
|
+
export { GuardedTabs, DirtyGuardBoundary, useRegisterDirty } from './components/dirty-guard';
|
|
71
82
|
export { FormDialog } from './components/form-dialog';
|
|
72
83
|
export { Drawer } from './components/drawer';
|
|
73
84
|
export { Tooltip } from './components/tooltip';
|
|
@@ -101,14 +112,15 @@ export { RevealInput } from './components/reveal-input';
|
|
|
101
112
|
export { CopyField } from './components/copy-field';
|
|
102
113
|
export { TOKEN_NAMES } from './components/tokens';
|
|
103
114
|
// -- Iconography (the only sanctioned marks; Unicode glyphs are banned) -------
|
|
104
|
-
export { NAV_ICONS, DashboardIcon, ToolsIcon, AgentsIcon, PresetsIcon, ExtensionsIcon, TemplatesIcon, ConnectorsIcon, HooksIcon, StorageIcon, SchedulingIcon, InteractionsIcon, NotificationsIcon, ConversationsIcon, MarketplaceIcon, ManifestIcon, SettingsIcon, SystemIcon, SearchIcon, SignOutIcon, MenuIcon, CloseIcon, FolderIcon, GridIcon, FilterIcon, ArrowLeftIcon, ArrowUpIcon, ArrowDownIcon, ChevronDownIcon, ChevronRightIcon, CheckIcon, MinusIcon, CopyIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, SortAscIcon, SortDescIcon, SunIcon, MoonIcon, MonitorIcon, CheckCircleIcon, AlertTriangleIcon, XCircleIcon, PendingIcon, } from './components/icons';
|
|
115
|
+
export { NAV_ICONS, DashboardIcon, ToolsIcon, AgentsIcon, PresetsIcon, ExtensionsIcon, TemplatesIcon, ConnectorsIcon, ServedEndpointsIcon, PluginIcon, HooksIcon, StorageIcon, SchedulingIcon, InteractionsIcon, NotificationsIcon, ConversationsIcon, MarketplaceIcon, ManifestIcon, SettingsIcon, SystemIcon, SearchIcon, SignOutIcon, MenuIcon, CloseIcon, FolderIcon, GridIcon, FilterIcon, ArrowLeftIcon, ArrowUpIcon, ArrowDownIcon, ChevronDownIcon, ChevronRightIcon, CheckIcon, MinusIcon, CopyIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, SortAscIcon, SortDescIcon, SunIcon, MoonIcon, MonitorIcon, CheckCircleIcon, AlertTriangleIcon, XCircleIcon, PendingIcon, } from './components/icons';
|
|
105
116
|
// -- Schema-driven forms -----------------------------------------------------
|
|
106
117
|
export { SchemaForm, RecordEntryRendererContext,
|
|
107
118
|
// The expression-door injection point: a host that wants `x-tai42-expression`
|
|
108
|
-
// fields to author through the visual editor
|
|
109
|
-
// `
|
|
110
|
-
//
|
|
111
|
-
//
|
|
119
|
+
// fields to author through the visual editor imports `JqField` from
|
|
120
|
+
// `@tai42/jq-studio` and hands it to a form (the `expressionField` prop) or
|
|
121
|
+
// mounts this context above its tree. A form with no door renders those fields
|
|
122
|
+
// as plain string inputs and stays free of the jq subgraph — the editor, its
|
|
123
|
+
// worker, and its wasm — entirely.
|
|
112
124
|
ExpressionFieldContext, SecretRefField, defaultValueForSchema, validateAgainstSchema, resolveRef, } from './schema-form';
|
|
113
125
|
// -- Schema-editor (validated JSON-Schema authoring control) -----------------
|
|
114
126
|
export { SchemaEditor, lintSchemaText } from './schema-editor';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,kFAAkF;AAClF,+EAA+E;AAC/E,4EAA4E;AAC5E,iFAAiF;AACjF,iFAAiF;AACjF,+EAA+E;AAC/E,qEAAqE;AACrE,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AAqBrC,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGpF,+EAA+E;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,WAAW,GACZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,aAAa,EAA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cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAG5B,+EAA+E;AAC/E,OAAO,EACL,UAAU,EACV,0BAA0B;AAC1B,8EAA8E;AAC9E,oEAAoE;AACpE,4EAA4E;AAC5E,+EAA+E;AAC/E,6EAA6E;AAC7E,mCAAmC;AACnC,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,UAAU,GACX,MAAM,eAAe,CAAC;AAkBvB,+EAA+E;AAC/E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAG/D,+EAA+E;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AriaAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type AriaAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import type { NavigationContextValue, NavigationGuardHandler, RouteSearch, RouteToken } from './types';
|
|
3
3
|
export declare function NavigationProvider({ value, children, }: {
|
|
4
4
|
value: NavigationContextValue;
|
|
@@ -57,11 +57,15 @@ export interface AppLinkProps<T extends RouteToken> {
|
|
|
57
57
|
className?: string;
|
|
58
58
|
'aria-label'?: string;
|
|
59
59
|
'aria-current'?: AriaAttributes['aria-current'];
|
|
60
|
+
/** Native tooltip text (also a sensible non-AT hover hint). */
|
|
61
|
+
title?: string;
|
|
62
|
+
/** Inline styles for the anchor. */
|
|
63
|
+
style?: CSSProperties;
|
|
60
64
|
}
|
|
61
65
|
/**
|
|
62
66
|
* A real anchor (so middle-click / open-in-new-tab keep working) that drives a
|
|
63
67
|
* client-side transition on plain left-click. Modified clicks (new tab/window,
|
|
64
68
|
* download) fall through to the browser's default handling.
|
|
65
69
|
*/
|
|
66
|
-
export declare function AppLink<T extends RouteToken>({ to, search, children, className, 'aria-label': ariaLabel, 'aria-current': ariaCurrent, }: AppLinkProps<T>): ReactNode;
|
|
70
|
+
export declare function AppLink<T extends RouteToken>({ to, search, children, className, 'aria-label': ariaLabel, 'aria-current': ariaCurrent, title, style, }: AppLinkProps<T>): ReactNode;
|
|
67
71
|
//# sourceMappingURL=context.d.ts.map
|