@imgly/editor-react-native 1.70.0 → 1.72.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.
@@ -142,7 +142,7 @@ repositories {
142
142
  }
143
143
 
144
144
  dependencies {
145
- implementation findProject(":editor") ?: "ly.img:editor:1.70.0"
145
+ implementation findProject(":editor") ?: "ly.img:editor:1.72.0"
146
146
  implementation platform("androidx.compose:compose-bom:2023.05.01")
147
147
  implementation "androidx.activity:activity-compose:1.6.1"
148
148
  implementation "androidx.activity:activity:1.7.0"
@@ -386,12 +386,13 @@ object EditorBuilderDefaults {
386
386
  val blob = engine.block.export(
387
387
  block = requireNotNull(engine.scene.get()),
388
388
  mimeType = mimeType,
389
- ) {
390
- scene.getPages().forEach {
391
- block.setScopeEnabled(it, key = "layer/visibility", enabled = true)
392
- block.setVisible(it, visible = true)
393
- }
394
- }
389
+ onPreExport = {
390
+ scene.getPages().forEach { page ->
391
+ block.setScopeEnabled(page, key = "layer/visibility", enabled = true)
392
+ block.setVisible(page, visible = true)
393
+ }
394
+ },
395
+ )
395
396
  val tempFile = EditorDefaults.writeToTempFile(blob, mimeType)
396
397
  val scene = engine.scene.get()
397
398
  val sceneString = scene?.let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imgly/editor-react-native",
3
- "version": "1.70.0",
3
+ "version": "1.72.0",
4
4
  "description": "CreativeEditor SDK for React Native - enable photo, video and design editing for your users on iOS and Android.",
5
5
  "react-native": "index.js",
6
6
  "source": "index.js",
@@ -96,7 +96,7 @@ export class EditorSettingsModel implements EditorSettings {
96
96
  * sources (stickers, filters, and more).
97
97
  */
98
98
  baseUri: string =
99
- 'https://cdn.img.ly/packages/imgly/cesdk-react-native/1.69.0/assets';
99
+ 'https://cdn.img.ly/packages/imgly/cesdk-react-native/1.72.0/assets';
100
100
 
101
101
  /**
102
102
  * Unique ID tied to your application's user.