@momo-kits/native-kits 0.162.1-beta.4-debug → 0.162.1-beta.5-debug

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.
@@ -26,7 +26,11 @@
26
26
  "Bash(python3 \"/Users/phuc/momo-native-kits-2/momo-native-kits/.claude/skills/migrate-screen-to-navigation-container/scripts/eval_migration.py\" 2>&1 | head -35)",
27
27
  "Bash(python3 \"/Users/phuc/momo-native-kits-2/momo-native-kits/.claude/skills/migrate-screen-to-navigation-container/scripts/eval_migration.py\" 2>&1 | grep -E \"^=|Files eval|Passed|Failed|A0[0-9]|Per-Group|Failures\" | head -40)",
28
28
  "Bash(find /Users/phuc/momo-kits -name \"*.kt\" 2>/dev/null | head -20)",
29
- "Bash(find /Users/phuc -name \"*PaymentConfirmScreenFull*\" 2>/dev/null | head -10)"
29
+ "Bash(find /Users/phuc -name \"*PaymentConfirmScreenFull*\" 2>/dev/null | head -10)",
30
+ "Bash(./gradlew :compose:compileCommonMainKotlinMetadata -q)",
31
+ "Bash(echo \"EXIT=$?\")",
32
+ "Read(//tmp/**)",
33
+ "Bash(git checkout *)"
30
34
  ]
31
35
  }
32
36
  }
@@ -23,7 +23,7 @@ import vn.momo.kits.application.IsShowBaseLineDebug
23
23
  import vn.momo.kits.const.*
24
24
  import vn.momo.kits.modifier.conditional
25
25
 
26
- internal const val MAX_LENGTH = 300
26
+ const val MAX_LENGTH = 300
27
27
  internal val DEFAULT_HEIGHT = 104.dp
28
28
 
29
29
  @Composable
@@ -52,8 +52,8 @@ class Navigator(
52
52
  }
53
53
 
54
54
  fun onBackSafe(callBack: (() -> Unit)? = null) {
55
- val latestScreen = currentScreen()
56
- val options = latestScreen?.options
55
+ val currentScreen = currentScreen()
56
+ val options = currentScreen?.options
57
57
  if (options?.onBackHandler != null) {
58
58
  options.onBackHandler.invoke()
59
59
  return
@@ -219,10 +219,6 @@ class DynamicScreenRegistry {
219
219
  screens.remove(id)
220
220
  }
221
221
 
222
- fun getLatestScreen(): DynamicScreen?{
223
- return screens.entries.lastOrNull()?.value
224
- }
225
-
226
222
  fun unregisterAll(){
227
223
  val ids = screens.keys.toList()
228
224
  for (id in ids) {
@@ -28,7 +28,7 @@ import vn.momo.kits.modifier.noFeedbackClickable
28
28
  import vn.momo.kits.platform.getScreenDimensions
29
29
 
30
30
  internal val floatingButtonWidth = 75.dp
31
- internal const val BOTTOM_TAB_BAR_HEIGHT = 64
31
+ const val BOTTOM_TAB_BAR_HEIGHT = 64
32
32
 
33
33
  @Composable
34
34
  internal fun BottomTabBar(
@@ -44,7 +44,7 @@ import vn.momo.kits.navigation.LocalOptions
44
44
  import vn.momo.kits.navigation.LocalScrollState
45
45
  import vn.momo.kits.navigation.getInputSearchType
46
46
 
47
- internal const val HEADER_HEIGHT = 52
47
+ const val HEADER_HEIGHT = 52
48
48
  internal enum class InputSearchType { None, Header, Animated }
49
49
  enum class TitlePosition { LEFT, CENTER }
50
50
 
@@ -109,7 +109,7 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
109
109
  backgroundButton = headerColor.backgroundButton,
110
110
  tintIconColor = headerColor.tintIconColor,
111
111
  onBackHandler = {
112
- onBackHandler?.invoke() ?: navigator.onBackSafe { }
112
+ navigator.onBackSafe { }
113
113
  }
114
114
  )
115
115
  Spacer(Modifier.width(Spacing.S))
package/gradle.properties CHANGED
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.162.1-beta.4
21
+ version=0.162.1-beta.5
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.162.1-beta.4-debug",
3
+ "version": "0.162.1-beta.5-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},