@imgly/editor-react-native 1.80.0 → 1.81.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 +4 -1
- package/android/src/main/kotlin/ly/img/editor/configuration/video/callback/OnCreate.kt +0 -7
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/InspectorBar.kt +2 -0
- package/ios/StarterKits/Video/callbacks/OnCreate+Video.swift +1 -1
- package/ios/StarterKits/Video/components/Dock+Video.swift +1 -0
- package/ios/StarterKits/Video/components/InspectorBar+Video.swift +4 -0
- package/package.json +1 -1
- package/src/NativeIMGLYEditor.ts +1 -1
package/android/build.gradle
CHANGED
|
@@ -96,6 +96,9 @@ apply plugin: 'com.android.library'
|
|
|
96
96
|
apply plugin: 'com.facebook.react'
|
|
97
97
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
98
98
|
|
|
99
|
+
// This module builds only the presets EditorBuilder exposes.
|
|
100
|
+
ext.starterKitsInclude = ["apparel", "design", "photo", "postcard", "video"]
|
|
101
|
+
|
|
99
102
|
|
|
100
103
|
if (isKotlin2OrHigher()) {
|
|
101
104
|
try {
|
|
@@ -143,7 +146,7 @@ repositories {
|
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
dependencies {
|
|
146
|
-
api "ly.img:editor:1.
|
|
149
|
+
api "ly.img:editor:1.81.0-rc.1"
|
|
147
150
|
|
|
148
151
|
implementation "androidx.activity:activity-ktx:1.9.0"
|
|
149
152
|
implementation "androidx.appcompat:appcompat:1.7.1"
|
|
@@ -110,13 +110,6 @@ suspend fun VideoConfigurationBuilder.onLoadAssetSources() {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// Required for animations
|
|
114
|
-
editorContext.engine.block.setMetadata(
|
|
115
|
-
block = requireNotNull(editorContext.engine.scene.get()),
|
|
116
|
-
key = "ly.img.defaultAssetSourcesBaseUri",
|
|
117
|
-
value = editorContext.baseUri.toString(),
|
|
118
|
-
)
|
|
119
|
-
|
|
120
113
|
// Load local asset sources
|
|
121
114
|
editorContext.engine.asset.addLocalSource(
|
|
122
115
|
sourceId = "ly.img.image.upload",
|
|
@@ -27,6 +27,7 @@ import ly.img.editor.core.component.rememberSplit
|
|
|
27
27
|
import ly.img.editor.core.component.rememberTextBackground
|
|
28
28
|
import ly.img.editor.core.component.rememberTextOnPath
|
|
29
29
|
import ly.img.editor.core.component.rememberTextPresets
|
|
30
|
+
import ly.img.editor.core.component.rememberTransition
|
|
30
31
|
import ly.img.editor.core.component.rememberVoiceover
|
|
31
32
|
import ly.img.editor.core.component.rememberVolume
|
|
32
33
|
|
|
@@ -50,6 +51,7 @@ fun VideoConfigurationBuilder.rememberInspectorBar() = InspectorBar.remember {
|
|
|
50
51
|
add { InspectorBar.Button.rememberClipSpeed() } // Video
|
|
51
52
|
add { InspectorBar.Button.rememberCrop() } // Video, Image
|
|
52
53
|
add { InspectorBar.Button.rememberAnimations() } // Video, Image, Sticker, Shape, Text
|
|
54
|
+
add { InspectorBar.Button.rememberTransition() } // Video, Image
|
|
53
55
|
add { InspectorBar.Button.rememberAdjustments() } // Video, Image
|
|
54
56
|
add { InspectorBar.Button.rememberFilter() } // Video, Image
|
|
55
57
|
add { InspectorBar.Button.rememberEffect() } // Video, Image
|
|
@@ -93,7 +93,7 @@ public extension VideoEditorConfiguration {
|
|
|
93
93
|
"ly.img.sticker", "ly.img.vector.shape", "ly.img.filter", "ly.img.color.palette",
|
|
94
94
|
"ly.img.effect", "ly.img.blur", "ly.img.typeface", "ly.img.crop.presets",
|
|
95
95
|
"ly.img.page.presets", "ly.img.text", "ly.img.text.styles", "ly.img.text.curves", "ly.img.text.components",
|
|
96
|
-
"ly.img.image", "ly.img.video", "ly.img.audio",
|
|
96
|
+
"ly.img.image", "ly.img.video", "ly.img.audio", "ly.img.caption.presets",
|
|
97
97
|
]
|
|
98
98
|
try await withThrowingTaskGroup(of: String.self) { group in
|
|
99
99
|
for id in sourceIDs {
|
|
@@ -19,6 +19,7 @@ extension VideoEditorConfiguration {
|
|
|
19
19
|
Dock.Buttons.overlaysLibrary() // Video overlays
|
|
20
20
|
Dock.Buttons.textLibrary() // Text tools
|
|
21
21
|
Dock.Buttons.stickersAndShapesLibrary() // Stickers and shapes
|
|
22
|
+
Dock.Buttons.captions() // Caption creation, import and styling
|
|
22
23
|
Dock.Buttons.audioLibrary() // Audio tracks
|
|
23
24
|
Dock.Buttons.voiceover() // Voice recording
|
|
24
25
|
Dock.Buttons.resize() // Aspect ratio and canvas size
|
|
@@ -8,6 +8,10 @@ extension VideoEditorConfiguration {
|
|
|
8
8
|
InspectorBar.Configuration { builder in
|
|
9
9
|
// highlight-starter-kit-inspector-bar
|
|
10
10
|
builder.items { _ in
|
|
11
|
+
// Caption-only buttons, kept at the start so a caption selection leads with them.
|
|
12
|
+
InspectorBar.Buttons.editCaptions()
|
|
13
|
+
InspectorBar.Buttons.captionStyle()
|
|
14
|
+
|
|
11
15
|
InspectorBar.Buttons.replace()
|
|
12
16
|
|
|
13
17
|
InspectorBar.Buttons.editText()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/editor-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.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.81.0-rc.1/assets';
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Unique ID tied to your application's user.
|