@yogiswara/honcho-editor-ui 1.0.19 → 1.1.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.
@@ -310,6 +310,11 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
310
310
  }
311
311
  }
312
312
  }, [imageList, currentImageId]);
313
+ useEffect(() => {
314
+ if (initImageId) {
315
+ setCurrentImageId(initImageId);
316
+ }
317
+ }, [initImageId]);
313
318
  useEffect(() => {
314
319
  if (currentImageId && firebaseUid) {
315
320
  loadImageFromId(firebaseUid, currentImageId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "1.0.19",
3
+ "version": "1.1.0",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",