@frontera-sdk/chat-ui 1.50.40

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 (148) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +348 -0
  3. package/dist/af-DK_CjRn6-OPBHDTNZ.js +197 -0
  4. package/dist/agent-picker.d.ts +38 -0
  5. package/dist/agent-picker.js +8 -0
  6. package/dist/as-BPtSu6VN-O4ZZEAJG.js +11 -0
  7. package/dist/be-CrQ0smca-5HIE5K27.js +11 -0
  8. package/dist/bg-CrQqGwni-3IRVPZQ7.js +11 -0
  9. package/dist/bn-NCLZcWHi-XOZJFNIB.js +11 -0
  10. package/dist/ca-SUf6Y2Om-V6F2EBCA.js +38 -0
  11. package/dist/capture-NO5ZIGP6.js +1652 -0
  12. package/dist/chat.css +3555 -0
  13. package/dist/chat.d.ts +161 -0
  14. package/dist/chat.js +60498 -0
  15. package/dist/chunk-2KEBRV3W.js +191 -0
  16. package/dist/chunk-6BPHEBCF.js +639 -0
  17. package/dist/chunk-6HYPVNVA.js +25 -0
  18. package/dist/chunk-7ADM3CKD.js +10 -0
  19. package/dist/chunk-AFVU5VT6.js +5601 -0
  20. package/dist/chunk-BEJ3HQG4.js +93 -0
  21. package/dist/chunk-CCVPZVFK.js +28 -0
  22. package/dist/chunk-DGDHKMDB.js +10 -0
  23. package/dist/chunk-FXKXDR5K.js +2166 -0
  24. package/dist/chunk-GTQH7MPF.js +129 -0
  25. package/dist/chunk-I7SXWUAN.js +1258 -0
  26. package/dist/chunk-IQRPGFLI.js +234 -0
  27. package/dist/chunk-IXDM5R55.js +23 -0
  28. package/dist/chunk-JD6ETTXC.js +178 -0
  29. package/dist/chunk-OP4MLJDA.js +215 -0
  30. package/dist/chunk-PQZ2CS26.js +2315 -0
  31. package/dist/chunk-PR4QN5HX.js +38 -0
  32. package/dist/chunk-PUIVKDV5.js +271 -0
  33. package/dist/chunk-QSSFBZAS.js +6914 -0
  34. package/dist/chunk-RAKKA3WU.js +5896 -0
  35. package/dist/chunk-RB2Y4NYC.js +681 -0
  36. package/dist/chunk-VDZH5Z3K.js +72 -0
  37. package/dist/chunk-WMN6BPPS.js +49 -0
  38. package/dist/chunk-WO6DJLFE.js +10857 -0
  39. package/dist/chunk-X5E2DJVO.js +47634 -0
  40. package/dist/chunk-XJFTVKLW.js +2687 -0
  41. package/dist/chunk-ZS6PXIZP.js +187 -0
  42. package/dist/client.d.ts +89 -0
  43. package/dist/client.js +20 -0
  44. package/dist/composer.d.ts +23 -0
  45. package/dist/composer.js +89 -0
  46. package/dist/cop-C3sk0IUo-CIZA2H43.js +11 -0
  47. package/dist/credential.d.ts +75 -0
  48. package/dist/credential.js +3 -0
  49. package/dist/cs-CmAteokq-HAKEQPB4.js +17 -0
  50. package/dist/cu-CBUlrW6Y-QTZ6ZLA4.js +32 -0
  51. package/dist/cy-BBPa6z2x-MX6DGDNW.js +11 -0
  52. package/dist/da-CCDXfXtG-5YEOHMG3.js +11 -0
  53. package/dist/de-1901-CWoAOigE-63QFSF2A.js +11 -0
  54. package/dist/de-1996-BL6awyxG-R2PHKMAB.js +11 -0
  55. package/dist/de-ch-1901-hVThVHVb-JSDB53OZ.js +11 -0
  56. package/dist/el-monoton-D3aKqTz2-2V4OOFBB.js +11 -0
  57. package/dist/el-polyton-ogVWcTzh-3U7NGQMT.js +11 -0
  58. package/dist/en-gb-B7Al27b_-UKCBQFSU.js +21 -0
  59. package/dist/es-DcaaHPU_-NOBXSOZK.js +11 -0
  60. package/dist/esm-MHF25KDL.js +3 -0
  61. package/dist/et-B_spaleu-5UAYIW62.js +11 -0
  62. package/dist/eu-Ctv_kq9Z-V5DREOPN.js +11 -0
  63. package/dist/fi-RW5VB8Yp-YSXBK7LW.js +11 -0
  64. package/dist/fr-BC2onEz9-7KH5T76G.js +11 -0
  65. package/dist/frame.d.ts +59 -0
  66. package/dist/frame.js +111 -0
  67. package/dist/fur-AC12wySk-4PD2Y72H.js +11 -0
  68. package/dist/ga-Cn6LkudM-RRAAJT3N.js +58 -0
  69. package/dist/gl-DZGc-K_G-KYSXXTCY.js +11 -0
  70. package/dist/grc-DOlGgO8T-2HXBZVJ5.js +11 -0
  71. package/dist/gu-Bjl0l-cf-4CFSVZHZ.js +11 -0
  72. package/dist/header.d.ts +78 -0
  73. package/dist/header.js +18 -0
  74. package/dist/hi-DsAaTPCC-KMCFBWK7.js +11 -0
  75. package/dist/hr-DT1SBBes-X2TIX6EI.js +11 -0
  76. package/dist/hsb-DC_ITc1e-PXLERA7R.js +46 -0
  77. package/dist/hu-DVk7Y_ka-PJPVU54B.js +11 -0
  78. package/dist/hy-e995ysyO-MZBRFX52.js +11 -0
  79. package/dist/ia-Cr4TJH0c-D3O2FHGP.js +22 -0
  80. package/dist/id-DifDyWg9-MZ2BGHWI.js +58 -0
  81. package/dist/is-BT8UVRze-CZZCKEFI.js +11 -0
  82. package/dist/it-Bt_Meacx-T4Y5JYV6.js +11 -0
  83. package/dist/ka-jyoLzyDE-ES6EXZLW.js +11 -0
  84. package/dist/kmr-Cfwhwuff-TSW2R2KS.js +11 -0
  85. package/dist/kn-C6Lov-DP-B4BL47CE.js +11 -0
  86. package/dist/la-DuvHjUWw-6K7TFU6X.js +11 -0
  87. package/dist/la-x-classic-yTyAOQEt-YWTKMM2L.js +11 -0
  88. package/dist/la-x-liturgic-CXeQb4FY-B772L5E7.js +11 -0
  89. package/dist/lib-3ZKX25RJ.js +4511 -0
  90. package/dist/lt-BBe8DlDF-4YINVOZR.js +11 -0
  91. package/dist/lv-Q2BBHnzp-TMVQ3MX2.js +11 -0
  92. package/dist/message.d.ts +64 -0
  93. package/dist/message.js +18 -0
  94. package/dist/ml-2xLVYkVY-NGZLAPIN.js +11 -0
  95. package/dist/mn-cyrl-lHM4n0oC-DGBYYUT3.js +11 -0
  96. package/dist/mn-cyrl-x-lmc-3aetruI8-QHJABMOO.js +11 -0
  97. package/dist/mr-CjWJPVmH-X5UHV65O.js +11 -0
  98. package/dist/mul-ethi-D_CMSMEq-H7UMQSOQ.js +11 -0
  99. package/dist/nb-DI8u59ch-J4CAVI4Y.js +122 -0
  100. package/dist/new-session-Dw7JOgzu.d.ts +141 -0
  101. package/dist/new-session.d.ts +4 -0
  102. package/dist/new-session.js +10 -0
  103. package/dist/nl-BHQJ6Gvn-7BH55RA7.js +52 -0
  104. package/dist/nn-ntZvarUK-KKNCHHJ4.js +122 -0
  105. package/dist/no-B8ItS0F3-3ZXIRJ6U.js +120 -0
  106. package/dist/oauth-callback.d.ts +35 -0
  107. package/dist/oauth-callback.js +18 -0
  108. package/dist/oc-P_i3-xLA-XZM6E5YZ.js +11 -0
  109. package/dist/or-50rxpoq4-5VELAFMJ.js +11 -0
  110. package/dist/pa-C54UG8eN-WEJPMZ6Z.js +11 -0
  111. package/dist/parts.d.ts +49 -0
  112. package/dist/parts.js +106 -0
  113. package/dist/pdf-cover-thumbnail-inner-4N2Q5AAG.js +36 -0
  114. package/dist/pdf-deck-view-inner-FZVLAEQR.js +575 -0
  115. package/dist/pdf-document-view-inner-6DF54JWK.js +585 -0
  116. package/dist/pdf-viewer-inner-GPES3KG2.js +256 -0
  117. package/dist/pending-cards.d.ts +26 -0
  118. package/dist/pending-cards.js +9 -0
  119. package/dist/pi-B9cgjyG1-GD5ASDDU.js +11 -0
  120. package/dist/pl-9fg-ESVt-UMX7MCJM.js +32 -0
  121. package/dist/platform.css +4013 -0
  122. package/dist/pms-BRGfm5gS-SSE3AUW5.js +11 -0
  123. package/dist/pt-Cum2_NUC-W35JYVR4.js +11 -0
  124. package/dist/rm-C0MIK9N4-IWL4YTNT.js +11 -0
  125. package/dist/ro-0fmdH0HA-46WUTOYH.js +11 -0
  126. package/dist/ru-v4l-ayaq-BUGK6XCN.js +196 -0
  127. package/dist/sa-CKY9c_Vq-4KIJOI5Y.js +11 -0
  128. package/dist/sh-cyrl-BpCRFOmq-DSLQ4UY2.js +128 -0
  129. package/dist/sh-latn-sRy4Tuaj-UNQOR63V.js +128 -0
  130. package/dist/sk-_iOeDNrQ-NCTQKH25.js +17 -0
  131. package/dist/sl-DpiklF-D-6GG5TDVN.js +11 -0
  132. package/dist/sr-cyrl-Dpzrbd0W-4Q5226YJ.js +142 -0
  133. package/dist/sv-CFm5y56M-VTWNPZ7I.js +11 -0
  134. package/dist/ta-BcghgTbD-NRT35DW6.js +11 -0
  135. package/dist/te-B5Spl2Jk-5VE6CLN4.js +11 -0
  136. package/dist/th-DWX5iPSo-N5GMOQOP.js +11 -0
  137. package/dist/theme.d.ts +49 -0
  138. package/dist/theme.js +3 -0
  139. package/dist/tk-BMbKB10q-HGWWY5L3.js +11 -0
  140. package/dist/tr-CIHIuzqc-6ISBNYLV.js +11 -0
  141. package/dist/types-BDqLaBfH.d.ts +60 -0
  142. package/dist/uk-Dir3oxLs-YQ3QZRI4.js +11 -0
  143. package/dist/univer-workbook-BSSUE5TG.css +3555 -0
  144. package/dist/univer-workbook-N5IIN7CH.js +290849 -0
  145. package/dist/vega-chart-block-NQADYNWQ.js +2857 -0
  146. package/dist/zh-latn-pinyin-BdYb-Ey_-RB542AHF.js +11 -0
  147. package/package.json +137 -0
  148. package/src/styles.css +996 -0
@@ -0,0 +1,141 @@
1
+ import * as react from 'react';
2
+ import { a as AgentAvatarConfig, A as AgentAvatarConfig$1 } from './types-BDqLaBfH.js';
3
+
4
+ /**
5
+ * Wire shapes the copied hooks reference but never inspect structurally.
6
+ *
7
+ * Left permissive on purpose: policing the service's internal payloads from
8
+ * here would mean mirroring them by hand and re-mirroring on every change,
9
+ * for types that only travel between copied files. The wire is the contract,
10
+ * and it is already agreed.
11
+ */
12
+ /**
13
+ * A model mode as the composer reads it.
14
+ *
15
+ * Mirrored structurally rather than left permissive: the composer maps this
16
+ * record into `ModeManifestEntry`, touching each field by name. The `model`
17
+ * binding the platform stores alongside is deliberately absent — an embedded
18
+ * chat has no business knowing which checkpoint the deployment runs.
19
+ */
20
+ /** Per-model reasoning capability, as the effort selector reads it. */
21
+ interface ReasoningConfig {
22
+ style: 'effort' | 'budget' | 'none';
23
+ supportedEfforts?: string[];
24
+ defaultEffort?: string;
25
+ defaultBudget?: number;
26
+ /** Reasoning cannot be disabled for this model. */
27
+ mandatory?: boolean;
28
+ }
29
+ interface ModelConfig {
30
+ name?: string;
31
+ description?: string;
32
+ icon?: string;
33
+ style?: 'default' | 'premium' | 'accent';
34
+ thinking?: unknown;
35
+ modelId?: string;
36
+ provider?: string;
37
+ model?: unknown;
38
+ reasoning?: ReasoningConfig;
39
+ [key: string]: unknown;
40
+ }
41
+ type ModelModes = Record<string, ModelConfig>;
42
+ /**
43
+ * Mirrored in full, unlike its permissive neighbours: the model selector reads
44
+ * these fields directly, so a `Record<string, unknown>` would type-error at
45
+ * every use rather than merely losing precision.
46
+ */
47
+ interface ModeManifestEntry {
48
+ key: string;
49
+ name?: string;
50
+ description?: string;
51
+ icon?: string;
52
+ style?: 'default' | 'premium' | 'accent';
53
+ thinking?: boolean;
54
+ modelId?: string;
55
+ /** Provider id (e.g. vertex, openrouter) — used for brand icon resolution. */
56
+ provider?: string;
57
+ /** API model id — alias of modelId for manifest clients. */
58
+ model?: string;
59
+ reasoning?: ReasoningConfig;
60
+ }
61
+ /**
62
+ * One agent as the manifest describes it.
63
+ *
64
+ * Mirrored from the service's `AgentManifestEntry`. The chat-scoped
65
+ * `/v1/chat-agents` answers a deliberately narrower projection of the same
66
+ * shape — no prompts, no model identifiers — so the copied selector reads it
67
+ * unchanged while an end-user token still sees only what it is allowed to.
68
+ */
69
+ interface AgentManifestEntry {
70
+ id: string;
71
+ name: string;
72
+ description?: string;
73
+ /** Orb seed; absent → the orb is derived from `name`. */
74
+ avatarSeed?: string | null;
75
+ avatarConfig?: AgentAvatarConfig;
76
+ modes: ModeManifestEntry[];
77
+ defaultMode: string;
78
+ }
79
+
80
+ interface NewSessionAgent extends AgentManifestEntry {
81
+ slug?: string;
82
+ kind?: "conversation" | "work";
83
+ workspaceId?: string;
84
+ features?: Record<string, boolean>;
85
+ }
86
+
87
+ /**
88
+ * What a conversation looks like before it has anything in it.
89
+ *
90
+ * The platform does not open on an empty scroll area — it asks a question and
91
+ * offers a few things the agent is good at. That matters more than it sounds:
92
+ * an empty chat box is a blank page, and the first thing most people do with a
93
+ * blank page is close it.
94
+ *
95
+ * Copy comes from the platform's own strings, so an embedded chat greets
96
+ * someone in the same words and the same language the product would.
97
+ */
98
+ interface Shortcut {
99
+ id: string;
100
+ label: string;
101
+ description: string;
102
+ /** Dropped into the composer, for the person to finish in their own words. */
103
+ prompt: string;
104
+ }
105
+ /** The platform's own shortcut set, in its order. */
106
+ declare const DEFAULT_SHORTCUTS: ReadonlyArray<Omit<Shortcut, 'label' | 'description' | 'prompt'>>;
107
+ /**
108
+ * The platform's four starter cards, translated.
109
+ *
110
+ * Exported rather than defaulted: a host whose agent can produce documents
111
+ * passes `shortcuts={buildDefaultShortcuts(t)}`, and one whose agent answers
112
+ * support questions passes its own — or none.
113
+ */
114
+ declare function buildDefaultShortcuts(translate: (key: string) => string): Shortcut[];
115
+ interface NewSessionPromptProps {
116
+ /** Shown in the greeting: "What should we work on with <agent>?" */
117
+ agentName?: string;
118
+ /**
119
+ * Makes the agent's name in the greeting a picker.
120
+ *
121
+ * This is where the platform puts agent selection — the name inside the
122
+ * headline, dotted-underlined — and `NewSessionGreeting` is its own
123
+ * component, copied. Omitted, the name renders locked: same orb, same type,
124
+ * without an affordance that would invite a click doing nothing.
125
+ */
126
+ switcher?: {
127
+ agents: NewSessionAgent[];
128
+ selectedAgent?: NewSessionAgent;
129
+ onSelect: (agentId: string) => void;
130
+ };
131
+ /** The agent's orb identity, so the greeting shows the same one as the thread. */
132
+ avatarConfig?: AgentAvatarConfig$1;
133
+ avatarSeed?: string | null;
134
+ /** Replace or extend the offered actions. */
135
+ shortcuts?: Shortcut[];
136
+ /** A card was chosen — put its prompt in the composer. */
137
+ onPick?: (shortcut: Shortcut) => void;
138
+ }
139
+ declare function NewSessionPrompt({ agentName, switcher, avatarConfig, avatarSeed, shortcuts, onPick, }: NewSessionPromptProps): react.JSX.Element;
140
+
141
+ export { DEFAULT_SHORTCUTS as D, type ModelModes as M, NewSessionPrompt as N, type Shortcut as S, type NewSessionPromptProps as a, buildDefaultShortcuts as b };
@@ -0,0 +1,4 @@
1
+ import 'react';
2
+ export { D as DEFAULT_SHORTCUTS, N as NewSessionPrompt, a as NewSessionPromptProps, S as Shortcut, b as buildDefaultShortcuts } from './new-session-Dw7JOgzu.js';
3
+ import './types-BDqLaBfH.js';
4
+ import 'zod';
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ export { DEFAULT_SHORTCUTS, NewSessionPrompt, buildDefaultShortcuts } from './chunk-RB2Y4NYC.js';
3
+ import './chunk-2KEBRV3W.js';
4
+ import './chunk-QSSFBZAS.js';
5
+ import './chunk-IQRPGFLI.js';
6
+ import './chunk-IXDM5R55.js';
7
+ import './chunk-FXKXDR5K.js';
8
+ import './chunk-DGDHKMDB.js';
9
+ import './chunk-AFVU5VT6.js';
10
+ import './chunk-PR4QN5HX.js';