@imgly/editor-react-native 1.84.0 → 1.85.0-rc.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.
@@ -171,7 +171,7 @@ repositories {
171
171
  }
172
172
 
173
173
  dependencies {
174
- api "ly.img:editor:1.84.0"
174
+ api "ly.img:editor:1.85.0-rc.1"
175
175
 
176
176
  implementation "androidx.activity:activity-ktx:1.9.0"
177
177
  implementation "androidx.appcompat:appcompat:1.7.1"
@@ -55,6 +55,8 @@ fun ApparelConfigurationBuilder.onPreCreateScene() {
55
55
  keypath = "ubq://page/dimOutOfPageAreas",
56
56
  value = false,
57
57
  )
58
+ // Press and hold an image, then drag it onto another image to exchange the two.
59
+ editorContext.engine.editor.setSettingBoolean(keypath = "dragToSwapFills/enabled", value = true)
58
60
  }
59
61
 
60
62
  /**
@@ -49,6 +49,8 @@ fun DesignConfigurationBuilder.onPreCreateScene() {
49
49
  keypath = "features/pageCarouselEnabled",
50
50
  value = true,
51
51
  )
52
+ // Press and hold an image, then drag it onto another image to exchange the two.
53
+ editorContext.engine.editor.setSettingBoolean(keypath = "dragToSwapFills/enabled", value = true)
52
54
  }
53
55
 
54
56
  /**
@@ -50,6 +50,8 @@ fun PhotoConfigurationBuilder.onPreCreateScene() {
50
50
  editorContext.engine.editor.setSettingBoolean(keypath = "page/selectWhenNoBlocksSelected", value = true)
51
51
  editorContext.engine.editor.setSettingBoolean(keypath = "page/highlightWhenCropping", value = true)
52
52
  editorContext.engine.editor.setSettingBoolean(keypath = "doubleClickToCropEnabled", value = false)
53
+ // Press and hold an image, then drag it onto another image to exchange the two.
54
+ editorContext.engine.editor.setSettingBoolean(keypath = "dragToSwapFills/enabled", value = true)
53
55
  }
54
56
 
55
57
  /**
@@ -47,6 +47,8 @@ suspend fun PostcardConfigurationBuilder.onCreate(
47
47
  fun PostcardConfigurationBuilder.onPreCreateScene() {
48
48
  showLoading = true
49
49
  editorContext.engine.editor.setGlobalScope("editor/add", GlobalScope.DEFER)
50
+ // Press and hold an image, then drag it onto another image to exchange the two.
51
+ editorContext.engine.editor.setSettingBoolean(keypath = "dragToSwapFills/enabled", value = true)
50
52
  }
51
53
 
52
54
  /**
@@ -64,6 +64,8 @@ fun VideoConfigurationBuilder.onPreCreateScene() {
64
64
  keypath = "page/innerBorderColor",
65
65
  value = Color.fromRGBA(0.67f, 0.67f, 0.67f, 0.5f),
66
66
  )
67
+ // Press and hold an image, then drag it onto another image to exchange the two.
68
+ engine.editor.setSettingBoolean(keypath = "dragToSwapFills/enabled", value = true)
67
69
  }
68
70
 
69
71
  /**
@@ -24,6 +24,7 @@ import ly.img.editor.core.component.rememberFormatText
24
24
  import ly.img.editor.core.component.rememberLayer
25
25
  import ly.img.editor.core.component.rememberReplace
26
26
  import ly.img.editor.core.component.rememberSelectGroup
27
+ import ly.img.editor.core.component.rememberSeparateAudio
27
28
  import ly.img.editor.core.component.rememberShape
28
29
  import ly.img.editor.core.component.rememberSplit
29
30
  import ly.img.editor.core.component.rememberTextBackground
@@ -61,6 +62,7 @@ fun VideoConfigurationBuilder.rememberInspectorBar() = InspectorBar.remember {
61
62
  add { InspectorBar.Button.rememberEffect() } // Video, Image
62
63
  add { InspectorBar.Button.rememberBlur() } // Video, Image
63
64
  add { InspectorBar.Button.rememberShape() } // Video, Image, Shape
65
+ add { InspectorBar.Button.rememberSeparateAudio() } // Video
64
66
  add { InspectorBar.Button.rememberSelectGroup() } // Video, Image, Sticker, Shape, Text
65
67
  add { InspectorBar.Button.rememberEnterGroup() } // Group
66
68
  add { InspectorBar.Button.rememberLayer() } // Video, Image, Sticker, Shape, Text
package/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './src/NativeIMGLYEditor';
2
2
  export { default } from './src/NativeIMGLYEditor';
3
-
package/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './src/NativeIMGLYEditor';
2
2
  export { default } from './src/NativeIMGLYEditor';
3
-
@@ -53,6 +53,9 @@ public extension ApparelEditorConfiguration {
53
53
  try engine.editor.setSettingEnum("touch/pinchAction", value: "Zoom")
54
54
  try engine.editor.setSettingEnum("touch/rotateAction", value: "None")
55
55
 
56
+ // Press and hold an image, then drag it onto another image to exchange the two.
57
+ try engine.editor.setSettingBool("dragToSwapFills/enabled", value: true)
58
+
56
59
  try ([
57
60
  "appearance/adjustments", "appearance/filter", "appearance/effect",
58
61
  "appearance/blur", "appearance/shadow",
@@ -52,6 +52,9 @@ public extension DesignEditorConfiguration {
52
52
  try engine.editor.setSettingEnum("touch/pinchAction", value: "Zoom")
53
53
  try engine.editor.setSettingEnum("touch/rotateAction", value: "None")
54
54
 
55
+ // Press and hold an image, then drag it onto another image to exchange the two.
56
+ try engine.editor.setSettingBool("dragToSwapFills/enabled", value: true)
57
+
55
58
  try ([
56
59
  "appearance/adjustments", "appearance/filter", "appearance/effect",
57
60
  "appearance/blur", "appearance/shadow",
@@ -52,6 +52,9 @@ public extension PhotoEditorConfiguration {
52
52
  try engine.editor.setSettingEnum("touch/pinchAction", value: "Zoom")
53
53
  try engine.editor.setSettingEnum("touch/rotateAction", value: "None")
54
54
 
55
+ // Press and hold an image, then drag it onto another image to exchange the two.
56
+ try engine.editor.setSettingBool("dragToSwapFills/enabled", value: true)
57
+
55
58
  try ([
56
59
  "appearance/adjustments", "appearance/filter", "appearance/effect",
57
60
  "appearance/blur", "appearance/shadow",
@@ -52,6 +52,9 @@ public extension PostcardEditorConfiguration {
52
52
  try engine.editor.setSettingEnum("touch/pinchAction", value: "Zoom")
53
53
  try engine.editor.setSettingEnum("touch/rotateAction", value: "None")
54
54
 
55
+ // Press and hold an image, then drag it onto another image to exchange the two.
56
+ try engine.editor.setSettingBool("dragToSwapFills/enabled", value: true)
57
+
55
58
  try ([
56
59
  "appearance/adjustments", "appearance/filter", "appearance/effect",
57
60
  "appearance/blur", "appearance/shadow",
@@ -52,6 +52,9 @@ public extension VideoEditorConfiguration {
52
52
  try engine.editor.setSettingBool("touch/dragStartCanSelect", value: false)
53
53
  try engine.editor.setSettingEnum("touch/pinchAction", value: "Scale")
54
54
 
55
+ // Press and hold an image, then drag it onto another image to exchange the two.
56
+ try engine.editor.setSettingBool("dragToSwapFills/enabled", value: true)
57
+
55
58
  try engine.editor.setSettingBool("controlGizmo/showMoveHandles", value: false)
56
59
  try engine.editor.setSettingBool("controlGizmo/showRotateHandles", value: false)
57
60
  try engine.editor.setSettingBool("controlGizmo/showScaleHandles", value: false)
@@ -36,6 +36,7 @@ extension VideoEditorConfiguration {
36
36
  InspectorBar.Buttons.selectGroup()
37
37
  InspectorBar.Buttons.enterGroup()
38
38
 
39
+ InspectorBar.Buttons.separateAudio()
39
40
  InspectorBar.Buttons.layer()
40
41
  InspectorBar.Buttons.split()
41
42
  InspectorBar.Buttons.duplicate()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imgly/editor-react-native",
3
- "version": "1.84.0",
3
+ "version": "1.85.0-rc.1",
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.84.0/assets';
99
+ 'https://cdn.img.ly/packages/imgly/cesdk-react-native/1.85.0-rc.1/assets';
100
100
 
101
101
  /**
102
102
  * Unique ID tied to your application's user.
@@ -216,12 +216,7 @@ class IMGLYEditor {
216
216
  // iOS Bridge (Old Architecture): Pass undefined, which the bridge handles
217
217
  // gracefully. Passing {} causes decoding errors.
218
218
 
219
- return NativeModule.openEditor(
220
- settings,
221
- modifiedSource,
222
- preset,
223
- metadata
224
- );
219
+ return NativeModule.openEditor(settings, modifiedSource, preset, metadata);
225
220
  }
226
221
  }
227
222