@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.
- package/android/build.gradle +1 -1
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/callback/OnCreate.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/callback/OnCreate.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/callback/OnCreate.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/callback/OnCreate.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/callback/OnCreate.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/InspectorBar.kt +2 -0
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/ios/StarterKits/Apparel/callbacks/OnCreate+Apparel.swift +3 -0
- package/ios/StarterKits/Design/callbacks/OnCreate+Design.swift +3 -0
- package/ios/StarterKits/Photo/callbacks/OnCreate+Photo.swift +3 -0
- package/ios/StarterKits/Postcard/callbacks/OnCreate+Postcard.swift +3 -0
- package/ios/StarterKits/Video/callbacks/OnCreate+Video.swift +3 -0
- package/ios/StarterKits/Video/components/InspectorBar+Video.swift +1 -0
- package/package.json +1 -1
- package/src/NativeIMGLYEditor.ts +2 -7
package/android/build.gradle
CHANGED
|
@@ -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
package/index.js
CHANGED
|
@@ -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)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/editor-react-native",
|
|
3
|
-
"version": "1.
|
|
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",
|
package/src/NativeIMGLYEditor.ts
CHANGED
|
@@ -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.
|
|
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
|
|