@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 CHANGED
@@ -4,7 +4,7 @@
4
4
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
5
  [![CI](https://github.com/fastlabai/design-editor/actions/workflows/ci.yml/badge.svg)](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
  ![Design Editor screenshot](./screenshot.png)
@@ -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) => uploadToS3(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
  ```