@fastlabai/design-editor 1.0.0-beta.1 → 1.0.0-beta.2
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 +6 -2
- package/dist/index.cjs +373 -322
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +373 -322
- package/dist/index.js.map +1 -1
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://github.com/fastlabai/design-editor/actions/workflows/ci.yml)
|
|
6
6
|
|
|
7
|
-
An open-source image design editor for React and Next.js. Plug in your own
|
|
7
|
+
An open-source image design editor for React and Next.js, brought to you by [FastlabAI](https://fastlab.ai). Plug in your own
|
|
8
8
|
media library, fonts, and storage backend via simple provider interfaces.
|
|
9
9
|
|
|
10
10
|

|
|
@@ -42,10 +42,14 @@ export default function App() {
|
|
|
42
42
|
|
|
43
43
|
```tsx
|
|
44
44
|
<DesignEditor
|
|
45
|
+
title="My Custom Studio Title"
|
|
45
46
|
mediaProvider={myMediaProvider}
|
|
46
47
|
fontProvider={myFontProvider}
|
|
47
48
|
persistenceProvider={myPersistenceProvider}
|
|
48
|
-
onExport={async (blob) =>
|
|
49
|
+
onExport={async (blob, format, scene) => {
|
|
50
|
+
const url = await uploadToS3(blob)
|
|
51
|
+
await saveToDatabase(scene) // Save raw JSON to re-edit later
|
|
52
|
+
}}
|
|
49
53
|
onBack={() => router.push('/dashboard')}
|
|
50
54
|
/>
|
|
51
55
|
```
|