@chai-ui/react 0.11.4 → 0.12.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 +13 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -193,6 +193,19 @@ If routing can't run (no `ChaiProvider`, a failed reasoning call, an
|
|
|
193
193
|
unlisted reply), the request runs on the first listed model and
|
|
194
194
|
`onRoutingFallback` says why.
|
|
195
195
|
|
|
196
|
+
### Attached images and the picked ratio
|
|
197
|
+
|
|
198
|
+
Attaching images doesn't change the Model menu or hide Aspect ratio. Each
|
|
199
|
+
suggested model names its image-taking Fal endpoint (`withImages`), and the
|
|
200
|
+
Fal engine calls it when images are attached. The picked ratio always
|
|
201
|
+
wins: image models take it directly, and a video's start image is fitted
|
|
202
|
+
to it before it's sent, cropped around its center by default or padded
|
|
203
|
+
with black bars:
|
|
204
|
+
|
|
205
|
+
```tsx
|
|
206
|
+
const { submit } = useComposer({ engine, startImageFit: "pad" }); // default "crop"
|
|
207
|
+
```
|
|
208
|
+
|
|
196
209
|
### Where the bar sits: `menuPlacement`
|
|
197
210
|
|
|
198
211
|
Every menu in the bar (the `+` menu, Model, Aspect ratio, Voice, Genre,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chai-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Chai UI React components — smart, drop-in UI for AI apps: Composer, Media Analyzer, Result Card, and the useComposer hook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "kazarazat",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@fontsource/roboto": "^5.3.0",
|
|
50
50
|
"@lit/react": "^1.0.8",
|
|
51
51
|
"@material/web": "^2.5.0",
|
|
52
|
-
"@chai-ui/
|
|
53
|
-
"@chai-ui/
|
|
52
|
+
"@chai-ui/core": "0.12.0",
|
|
53
|
+
"@chai-ui/tokens": "0.12.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@material-symbols/svg-400": "^0.47.5",
|