@momo-kits/native-kits 0.113.3-rc.2 → 0.113.3-webview.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/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +13 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +5 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +1 -1
- package/local.properties +2 -2
- package/package.json +1 -1
|
@@ -128,7 +128,11 @@ fun ToolkitHeaderRight(headerRight: HeaderRightData? = null) {
|
|
|
128
128
|
"code" to context?.appCode,
|
|
129
129
|
"name" to context?.appName,
|
|
130
130
|
"icon" to context?.appIcon,
|
|
131
|
-
"description" to context?.description
|
|
131
|
+
"description" to context?.description,
|
|
132
|
+
"support" to context?.support,
|
|
133
|
+
"toolkitConfig" to context?.toolkitConfig,
|
|
134
|
+
"providerId" to context?.providerId,
|
|
135
|
+
"permissions" to context?.permissions
|
|
132
136
|
)
|
|
133
137
|
)
|
|
134
138
|
) { response ->
|
|
@@ -182,10 +186,17 @@ fun ToolkitHeaderRight(headerRight: HeaderRightData? = null) {
|
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
val toolkitWidth = if (context !== null) 65.dp else 28.dp
|
|
189
|
+
|
|
190
|
+
var isShowShortcut = headerRight?.useShortcut == true
|
|
191
|
+
//backup case context null of more icon
|
|
192
|
+
if (headerRight?.useMore == true && context == null) {
|
|
193
|
+
isShowShortcut = false
|
|
194
|
+
}
|
|
195
|
+
|
|
185
196
|
Row(
|
|
186
197
|
verticalAlignment = Alignment.CenterVertically
|
|
187
198
|
) {
|
|
188
|
-
if (
|
|
199
|
+
if (isShowShortcut) {
|
|
189
200
|
NavigationButton(
|
|
190
201
|
disabled = isLoading,
|
|
191
202
|
icon = navButtonConfig.icon,
|
|
@@ -9,6 +9,7 @@ import androidx.compose.runtime.remember
|
|
|
9
9
|
import androidx.compose.runtime.setValue
|
|
10
10
|
import androidx.compose.runtime.staticCompositionLocalOf
|
|
11
11
|
import androidx.compose.ui.unit.Dp
|
|
12
|
+
import kotlinx.serialization.Serializable
|
|
12
13
|
import vn.momo.kits.components.TrustBannerData
|
|
13
14
|
import vn.momo.kits.const.AppStatusBar
|
|
14
15
|
import vn.momo.kits.const.AppTheme
|
|
@@ -48,6 +49,10 @@ data class MiniAppContext(
|
|
|
48
49
|
val appId: String = "",
|
|
49
50
|
val appCode: String = "",
|
|
50
51
|
val description: Any? = null,
|
|
52
|
+
val support: Map<String, Any?> = emptyMap(),
|
|
53
|
+
val toolkitConfig: Map<String, Any?> = emptyMap(),
|
|
54
|
+
val providerId: String = "",
|
|
55
|
+
val permissions: List<Map<String, Any>>? = emptyList()
|
|
51
56
|
)
|
|
52
57
|
|
|
53
58
|
val PlatformApi = staticCompositionLocalOf<Any?> { null }
|
|
@@ -143,7 +143,7 @@ fun PopupNotify(
|
|
|
143
143
|
Modifier
|
|
144
144
|
.width(22.dp)
|
|
145
145
|
.height(22.dp)
|
|
146
|
-
.offset(x =
|
|
146
|
+
.offset(x = Spacing.M / 2, y = -Spacing.M)
|
|
147
147
|
.background(
|
|
148
148
|
color = AppTheme.current.colors.text.default,
|
|
149
149
|
shape = RoundedCornerShape(Radius.M)
|
package/local.properties
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
# Location of the SDK. This is only used by Gradle.
|
|
5
5
|
# For customization when using a Version Control System, please read the
|
|
6
6
|
# header note.
|
|
7
|
-
#
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Sun Mar 02 11:30:14 ICT 2025
|
|
8
|
+
sdk.dir=/Users/nguyenhoangson/Library/Android/sdk
|