@oxy.so/bloom 4.13.1 → 4.13.3

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 (72) hide show
  1. package/docs/ai-chat.mdx +3 -3
  2. package/lib/commonjs/ai-chat/AiChat.js +5 -2
  3. package/lib/commonjs/ai-chat/AiChat.js.map +1 -1
  4. package/lib/commonjs/ai-chat/AiChat.web.js +8 -5
  5. package/lib/commonjs/ai-chat/AiChat.web.js.map +1 -1
  6. package/lib/commonjs/ai-chat/AiChatContainer.js +67 -38
  7. package/lib/commonjs/ai-chat/AiChatContainer.js.map +1 -1
  8. package/lib/commonjs/ai-chat/bindAiChat.js +12 -1
  9. package/lib/commonjs/ai-chat/bindAiChat.js.map +1 -1
  10. package/lib/commonjs/ai-chat/context.js.map +1 -1
  11. package/lib/commonjs/ai-chat/index.js +1 -1
  12. package/lib/commonjs/ai-chat/index.js.map +1 -1
  13. package/lib/commonjs/ai-chat/index.web.js +1 -1
  14. package/lib/commonjs/ai-chat/index.web.js.map +1 -1
  15. package/lib/commonjs/ai-chat/shared.js +12 -8
  16. package/lib/commonjs/ai-chat/shared.js.map +1 -1
  17. package/lib/module/ai-chat/AiChat.js +4 -1
  18. package/lib/module/ai-chat/AiChat.js.map +1 -1
  19. package/lib/module/ai-chat/AiChat.web.js +4 -1
  20. package/lib/module/ai-chat/AiChat.web.js.map +1 -1
  21. package/lib/module/ai-chat/AiChatContainer.js +68 -39
  22. package/lib/module/ai-chat/AiChatContainer.js.map +1 -1
  23. package/lib/module/ai-chat/bindAiChat.js +12 -1
  24. package/lib/module/ai-chat/bindAiChat.js.map +1 -1
  25. package/lib/module/ai-chat/context.js.map +1 -1
  26. package/lib/module/ai-chat/index.js +2 -2
  27. package/lib/module/ai-chat/index.js.map +1 -1
  28. package/lib/module/ai-chat/index.web.js +2 -2
  29. package/lib/module/ai-chat/index.web.js.map +1 -1
  30. package/lib/module/ai-chat/shared.js +11 -7
  31. package/lib/module/ai-chat/shared.js.map +1 -1
  32. package/lib/typescript/commonjs/ai-chat/AiChat.d.ts +4 -0
  33. package/lib/typescript/commonjs/ai-chat/AiChat.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/ai-chat/AiChat.web.d.ts +4 -0
  35. package/lib/typescript/commonjs/ai-chat/AiChat.web.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/ai-chat/AiChatContainer.d.ts +7 -5
  37. package/lib/typescript/commonjs/ai-chat/AiChatContainer.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/ai-chat/bindAiChat.d.ts +5 -1
  39. package/lib/typescript/commonjs/ai-chat/bindAiChat.d.ts.map +1 -1
  40. package/lib/typescript/commonjs/ai-chat/context.d.ts +6 -0
  41. package/lib/typescript/commonjs/ai-chat/context.d.ts.map +1 -1
  42. package/lib/typescript/commonjs/ai-chat/index.d.ts +2 -2
  43. package/lib/typescript/commonjs/ai-chat/index.d.ts.map +1 -1
  44. package/lib/typescript/commonjs/ai-chat/index.web.d.ts +2 -2
  45. package/lib/typescript/commonjs/ai-chat/index.web.d.ts.map +1 -1
  46. package/lib/typescript/commonjs/ai-chat/shared.d.ts +9 -6
  47. package/lib/typescript/commonjs/ai-chat/shared.d.ts.map +1 -1
  48. package/lib/typescript/module/ai-chat/AiChat.d.ts +4 -0
  49. package/lib/typescript/module/ai-chat/AiChat.d.ts.map +1 -1
  50. package/lib/typescript/module/ai-chat/AiChat.web.d.ts +4 -0
  51. package/lib/typescript/module/ai-chat/AiChat.web.d.ts.map +1 -1
  52. package/lib/typescript/module/ai-chat/AiChatContainer.d.ts +7 -5
  53. package/lib/typescript/module/ai-chat/AiChatContainer.d.ts.map +1 -1
  54. package/lib/typescript/module/ai-chat/bindAiChat.d.ts +5 -1
  55. package/lib/typescript/module/ai-chat/bindAiChat.d.ts.map +1 -1
  56. package/lib/typescript/module/ai-chat/context.d.ts +6 -0
  57. package/lib/typescript/module/ai-chat/context.d.ts.map +1 -1
  58. package/lib/typescript/module/ai-chat/index.d.ts +2 -2
  59. package/lib/typescript/module/ai-chat/index.d.ts.map +1 -1
  60. package/lib/typescript/module/ai-chat/index.web.d.ts +2 -2
  61. package/lib/typescript/module/ai-chat/index.web.d.ts.map +1 -1
  62. package/lib/typescript/module/ai-chat/shared.d.ts +9 -6
  63. package/lib/typescript/module/ai-chat/shared.d.ts.map +1 -1
  64. package/package.json +1 -1
  65. package/src/ai-chat/AiChat.tsx +3 -1
  66. package/src/ai-chat/AiChat.web.tsx +3 -1
  67. package/src/ai-chat/AiChatContainer.tsx +63 -39
  68. package/src/ai-chat/bindAiChat.tsx +12 -1
  69. package/src/ai-chat/context.ts +6 -0
  70. package/src/ai-chat/index.ts +2 -1
  71. package/src/ai-chat/index.web.ts +2 -1
  72. package/src/ai-chat/shared.ts +11 -7
@@ -7,6 +7,7 @@ import {
7
7
  type Ramp,
8
8
  } from '../button/shared';
9
9
  import { adoptStyleSheet } from '../styles/adopt-style-sheet';
10
+ import { borderRadius } from '../styles/tokens';
10
11
  import {
11
12
  WEB_POSITION_STICKY,
12
13
  webViewportHeightMinus,
@@ -130,19 +131,25 @@ export const DOCUMENT_RAIL: WebCssStyle = {
130
131
  flexShrink: 0,
131
132
  };
132
133
 
134
+ /**
135
+ * `scroll="document"`: the card is a `ContentPanel`, and this is its radius.
136
+ */
137
+ export const DOCUMENT_CARD_RADIUS = borderRadius._3xl;
138
+
133
139
  /**
134
140
  * `scroll="document"`: a layer the size of the visible card that takes no room
135
141
  * in the flow — pinned like the rail, then pulled back out of the layout by an
136
142
  * equal negative margin, so what follows it starts where it does. The card's
137
- * frame and its `background` slot are drawn on it: the card grows with the
138
- * conversation, the layer stays the size of the screen.
143
+ * `background` slot is drawn on it: the card grows with the conversation, the
144
+ * layer stays the size of the screen — the same geometry as the panel's own
145
+ * sticky frame.
139
146
  */
140
147
  export const DOCUMENT_LAYER: WebCssStyle = {
141
148
  position: WEB_POSITION_STICKY,
142
149
  top: SHELL_GUTTER,
143
150
  height: webViewportHeightMinus(SHELL_GUTTER * 2),
144
151
  marginBottom: `calc(-100dvh + ${SHELL_GUTTER * 2}px)` as ViewStyle['marginBottom'],
145
- borderRadius: CONTAINER_RADIUS,
152
+ borderRadius: DOCUMENT_CARD_RADIUS,
146
153
  };
147
154
 
148
155
  // ---------------------------------------------------------------------------
@@ -171,9 +178,7 @@ const STYLE_ID = 'bloom-ai-chat-web-css';
171
178
  * percentage transitioning 0% → 132% over 1550ms;
172
179
  * - the resize grip's hover reveal;
173
180
  * - the composer field's placeholder colour;
174
- * - the document-scrolled card's frame, clipped to its gutter (RN-web drops
175
- * `clip-path` from `style`), and its thread out of the browser's scroll
176
- * anchoring.
181
+ * - a document-scrolled thread out of the browser's scroll anchoring.
177
182
  */
178
183
  export const AI_CHAT_WEB_CSS = `
179
184
  @property --bloom-ai-reveal {
@@ -199,7 +204,6 @@ export const AI_CHAT_WEB_CSS = `
199
204
  [data-bloom-ai-chat-zoom="in"] { cursor: zoom-in; }
200
205
  [data-bloom-ai-chat-zoom="out"] { cursor: zoom-out; }
201
206
  [data-bloom-ai-chat-zoom]:focus-visible { box-shadow: inset 0 0 0 2px var(--bloom-ai-chat-ring); }
202
- [data-bloom-ai-chat-frame] { clip-path: inset(-${SHELL_GUTTER}px -1px); }
203
207
  [data-bloom-ai-chat-thread] { overflow-anchor: none; }
204
208
  [data-bloom-ai-chat-scroll="thin"] { scrollbar-width: thin; }
205
209
  [data-bloom-ai-chat-scroll="none"] { scrollbar-width: none; }