@aicut/react 0.4.0 → 0.4.1
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 +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -174,6 +174,12 @@ function Relight() {
|
|
|
174
174
|
apiRef={apiRef}
|
|
175
175
|
subjectImageUrl="/frames/subject.jpg"
|
|
176
176
|
onChange={(cfg: LightingConfig) => console.log(cfg)}
|
|
177
|
+
// Reset / Generate / save-preset / etc. buttons go into the
|
|
178
|
+
// controls column's footer slot — the only host-supplied
|
|
179
|
+
// surface the library reserves space for.
|
|
180
|
+
controlsFooter={
|
|
181
|
+
<button onClick={() => apiRef.current?.reset()}>Reset</button>
|
|
182
|
+
}
|
|
177
183
|
/>
|
|
178
184
|
<aside>
|
|
179
185
|
<textarea placeholder="Describe the mood…" />
|
|
@@ -184,7 +190,11 @@ function Relight() {
|
|
|
184
190
|
}
|
|
185
191
|
```
|
|
186
192
|
|
|
187
|
-
Props: `subjectImageUrl`, `defaultConfig`, `defaultView`, `theme`, `locale`, `onChange`.
|
|
193
|
+
Props: `subjectImageUrl`, `defaultConfig`, `defaultView`, `theme`, `locale`, `controlsFooter`, `onChange`.
|
|
194
|
+
|
|
195
|
+
Imperative API (`apiRef.current`): `setConfig`, `getConfig`, `setSubjectImage`, `setView`, `getView`, `reset`.
|
|
196
|
+
|
|
197
|
+
The library is intentionally focused on the picker — Smart mode UI, Generate buttons, close handling, layout all live in host code.
|
|
188
198
|
|
|
189
199
|
## Standalone `<Timeline>`
|
|
190
200
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aicut/react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "React wrapper for the AiCut video editor + lighting picker — thin declarative shells over @aicut/core.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ziqiang <ziqiangytu@gmail.com>",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"README.md"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@aicut/core": "0.4.
|
|
62
|
+
"@aicut/core": "0.4.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^18.0.0 || ^19.0.0",
|