@appboxo/expo-boxo-sdk 0.12.0 → 0.13.0
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/CHANGELOG.md +6 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/boxo/expo/ConfigOptions.kt +3 -0
- package/android/src/main/java/io/boxo/expo/ExpoBoxoSdkModule.kt +8 -0
- package/android/src/main/java/io/boxo/expo/LottieProgressOptions.kt +19 -0
- package/build/ExpoBoxoSdk.types.d.ts +10 -0
- package/build/ExpoBoxoSdk.types.d.ts.map +1 -1
- package/build/ExpoBoxoSdk.types.js.map +1 -1
- package/ios/ConfigOptions.swift +4 -0
- package/ios/ExpoBoxoSdk.podspec +1 -1
- package/ios/ExpoBoxoSdkModule.swift +11 -0
- package/ios/LottieProgressOptions.swift +20 -0
- package/package.json +1 -1
- package/src/ExpoBoxoSdk.types.ts +12 -0
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -74,6 +74,14 @@ class ExpoBoxoSdkModule : Module() {
|
|
|
74
74
|
dark = Color.parseColor(options.darkBackground)
|
|
75
75
|
)
|
|
76
76
|
}
|
|
77
|
+
options.lottieProgressOptions?.also { options->
|
|
78
|
+
setProgressBarLottieFromAssets(
|
|
79
|
+
lightAssetPath = options.light,
|
|
80
|
+
darkAssetPath = options.dark,
|
|
81
|
+
widthDp = options.width,
|
|
82
|
+
heightDp = options.height
|
|
83
|
+
)
|
|
84
|
+
}
|
|
77
85
|
}
|
|
78
86
|
.build()
|
|
79
87
|
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
package io.boxo.expo
|
|
2
|
+
|
|
3
|
+
import expo.modules.kotlin.records.Field
|
|
4
|
+
import expo.modules.kotlin.records.Record
|
|
5
|
+
|
|
6
|
+
class LottieProgressOptions : Record {
|
|
7
|
+
@Field
|
|
8
|
+
val light: String = ""
|
|
9
|
+
|
|
10
|
+
@Field
|
|
11
|
+
val dark: String? = null
|
|
12
|
+
|
|
13
|
+
@Field
|
|
14
|
+
val width: Int? = null
|
|
15
|
+
|
|
16
|
+
@Field
|
|
17
|
+
val height: Int? = null
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -81,6 +81,10 @@ export type ConfigOptions = {
|
|
|
81
81
|
* use it to customize the splash screen
|
|
82
82
|
*/
|
|
83
83
|
splashScreenOptions?: SplashScreenOptions;
|
|
84
|
+
/**
|
|
85
|
+
* use it to customize miniapp progress with lottie
|
|
86
|
+
*/
|
|
87
|
+
lottieProgressOptions?: LottieProgressOptions;
|
|
84
88
|
};
|
|
85
89
|
export type MiniappOptions = {
|
|
86
90
|
/**
|
|
@@ -146,4 +150,10 @@ export type SplashScreenOptions = {
|
|
|
146
150
|
darkProgressIndicator: string;
|
|
147
151
|
darkProgressTrack: string;
|
|
148
152
|
};
|
|
153
|
+
export type LottieProgressOptions = {
|
|
154
|
+
light: string;
|
|
155
|
+
dark?: string;
|
|
156
|
+
width?: number;
|
|
157
|
+
height?: number;
|
|
158
|
+
};
|
|
149
159
|
//# sourceMappingURL=ExpoBoxoSdk.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoBoxoSdk.types.d.ts","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CA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BAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoBoxoSdk.types.js","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["export type AuthEventPayload = {\n appId: string;\n};\n\nexport type PaymentData = {\n appId: string;\n transactionToken?: string;\n miniappOrderId?: string;\n amount?: number;\n currency?: string;\n extraParams?: Record<string, any>;\n hostappOrderId?: string;\n status?: string;\n};\n\nexport type CustomEventData = {\n appId: string;\n requestId?: number;\n type?: string;\n errorType?: string;\n payload?: Record<string, any>;\n};\n\nexport type LifecycleData = {\n appId: string;\n /**\n * onLaunch - Called when the miniapp will launch with Boxo.open(...)\n * onResume - Called when the miniapp will start interacting with the user\n * onPause - Called when the miniapp loses foreground state\n * onClose - Called when clicked close button in miniapp or when destroyed miniapp page\n * onError - Called when miniapp fails to launch due to internet connection issues\n * onUserInteraction - Called whenever touch event is dispatched to the miniapp page.\n */\n lifecycle: string;\n error?: string\n};\n\nexport type ConfigOptions = {\n /**\n * your client id from dashboard\n */\n clientId: string;\n /**\n * hostapp userId, will be used for the Consent Management\n */\n userId?: string;\n /**\n * language value will be passed to the miniapp\n */\n language?: string;\n /**\n * switch to sandbox mode\n */\n sandboxMode?: boolean;\n /**\n * Each miniapp appears as a task in the Recents screen.\n * !It works only on android devices.\n */\n multitaskMode?: boolean;\n /**\n * theme for splash screen and other native components used inside miniapp.\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * enables webview debugging\n */\n isDebug?: boolean;\n /**\n * use it to hide \"Settings\" from Miniapp menu\n */\n showPermissionsPage?: boolean;\n /**\n * use it to hide \"Clear cache\" from Miniapp menu\n */\n showClearCache?: boolean;\n\n /**\n * use it to hide \"About Page\" from Miniapp menu\n */\n showAboutPage?: boolean;\n\n /**\n * use it to customize the consent screen\n */\n consentScreenConfig?: ConsentScreenConfig;\n\n /**\n * use it to customize the splash screen\n */\n splashScreenOptions?: SplashScreenOptions;\n};\n\nexport type MiniappOptions = {\n /**\n * miniapp id\n */\n appId: string;\n /**\n * (optional) data as Map that is sent to miniapp\n */\n data?: Record<string, any>;\n /**\n * (optional) miniapp theme 'dark' | 'light' | 'system' (by default is system theme)\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * (optional) extra query params to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n extraUrlParams?: Record<string, string>;\n /**\n * (optional) suffix to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n urlSuffix?: string;\n /**\n * (optional) provide colors to miniapp if miniapp supports\n */\n colors?: Record<string, string>;\n /**\n * (optional) use to skip miniapp splash screen\n */\n enableSplash?: boolean;\n /**\n * (optional) use to save state on close miniapp\n */\n saveState?: boolean;\n /**\n * (optional) use to change launch animation for miniapp.\n */\n pageAnimation?: 'BOTTOM_TO_TOP' | 'TOP_TO_BOTTOM' | 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT' | 'FADE_IN';\n};\n\nexport type MiniappListResult = {\n miniapps?: Array<MiniappData>;\n error?: string;\n}\n\nexport type MiniappData = {\n appId: string;\n name: string;\n category: string;\n description: string;\n logo: string;\n}\n\nexport type ConsentScreenConfig = {\n title?: string;\n noRequiredFieldsDescription?: string;\n requiredFieldsDescription?: string;\n allowButtonTitle?: string;\n cancelButtonTitle?: string;\n};\n\nexport type SplashScreenOptions = {\n lightBackground: string;\n darkBackground: string;\n lightProgressIndicator: string;\n lightProgressTrack: string;\n darkProgressIndicator: string;\n darkProgressTrack: string;\n};"]}
|
|
1
|
+
{"version":3,"file":"ExpoBoxoSdk.types.js","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["export type AuthEventPayload = {\n appId: string;\n};\n\nexport type PaymentData = {\n appId: string;\n transactionToken?: string;\n miniappOrderId?: string;\n amount?: number;\n currency?: string;\n extraParams?: Record<string, any>;\n hostappOrderId?: string;\n status?: string;\n};\n\nexport type CustomEventData = {\n appId: string;\n requestId?: number;\n type?: string;\n errorType?: string;\n payload?: Record<string, any>;\n};\n\nexport type LifecycleData = {\n appId: string;\n /**\n * onLaunch - Called when the miniapp will launch with Boxo.open(...)\n * onResume - Called when the miniapp will start interacting with the user\n * onPause - Called when the miniapp loses foreground state\n * onClose - Called when clicked close button in miniapp or when destroyed miniapp page\n * onError - Called when miniapp fails to launch due to internet connection issues\n * onUserInteraction - Called whenever touch event is dispatched to the miniapp page.\n */\n lifecycle: string;\n error?: string\n};\n\nexport type ConfigOptions = {\n /**\n * your client id from dashboard\n */\n clientId: string;\n /**\n * hostapp userId, will be used for the Consent Management\n */\n userId?: string;\n /**\n * language value will be passed to the miniapp\n */\n language?: string;\n /**\n * switch to sandbox mode\n */\n sandboxMode?: boolean;\n /**\n * Each miniapp appears as a task in the Recents screen.\n * !It works only on android devices.\n */\n multitaskMode?: boolean;\n /**\n * theme for splash screen and other native components used inside miniapp.\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * enables webview debugging\n */\n isDebug?: boolean;\n /**\n * use it to hide \"Settings\" from Miniapp menu\n */\n showPermissionsPage?: boolean;\n /**\n * use it to hide \"Clear cache\" from Miniapp menu\n */\n showClearCache?: boolean;\n\n /**\n * use it to hide \"About Page\" from Miniapp menu\n */\n showAboutPage?: boolean;\n\n /**\n * use it to customize the consent screen\n */\n consentScreenConfig?: ConsentScreenConfig;\n\n /**\n * use it to customize the splash screen\n */\n splashScreenOptions?: SplashScreenOptions;\n\n /**\n * use it to customize miniapp progress with lottie\n */\n lottieProgressOptions?: LottieProgressOptions;\n};\n\nexport type MiniappOptions = {\n /**\n * miniapp id\n */\n appId: string;\n /**\n * (optional) data as Map that is sent to miniapp\n */\n data?: Record<string, any>;\n /**\n * (optional) miniapp theme 'dark' | 'light' | 'system' (by default is system theme)\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * (optional) extra query params to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n extraUrlParams?: Record<string, string>;\n /**\n * (optional) suffix to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n urlSuffix?: string;\n /**\n * (optional) provide colors to miniapp if miniapp supports\n */\n colors?: Record<string, string>;\n /**\n * (optional) use to skip miniapp splash screen\n */\n enableSplash?: boolean;\n /**\n * (optional) use to save state on close miniapp\n */\n saveState?: boolean;\n /**\n * (optional) use to change launch animation for miniapp.\n */\n pageAnimation?: 'BOTTOM_TO_TOP' | 'TOP_TO_BOTTOM' | 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT' | 'FADE_IN';\n};\n\nexport type MiniappListResult = {\n miniapps?: Array<MiniappData>;\n error?: string;\n}\n\nexport type MiniappData = {\n appId: string;\n name: string;\n category: string;\n description: string;\n logo: string;\n}\n\nexport type ConsentScreenConfig = {\n title?: string;\n noRequiredFieldsDescription?: string;\n requiredFieldsDescription?: string;\n allowButtonTitle?: string;\n cancelButtonTitle?: string;\n};\n\nexport type SplashScreenOptions = {\n lightBackground: string;\n darkBackground: string;\n lightProgressIndicator: string;\n lightProgressTrack: string;\n darkProgressIndicator: string;\n darkProgressTrack: string;\n};\n\nexport type LottieProgressOptions = {\n light: string;\n dark?: string;\n width?: number;\n height?: number;\n};"]}
|
package/ios/ConfigOptions.swift
CHANGED
package/ios/ExpoBoxoSdk.podspec
CHANGED
|
@@ -52,6 +52,17 @@ public class ExpoBoxoSdkModule: Module {
|
|
|
52
52
|
config.progressBarColors = ProgressBarColors(lightIndicator: lightProgressIndicatorColor, lightTrack: lightProgressTrackColor, darkIndicator: darkProgressIndicatorColor, darkTrack: darkProgressTrackColor)
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
if let lottie = options.lottieProgressOptions {
|
|
57
|
+
let width = Double(lottie.width ?? 80)
|
|
58
|
+
let height = Double(lottie.height ?? 80)
|
|
59
|
+
config.progressBarLottieAssets = .init(
|
|
60
|
+
lightAssetPath: lottie.light,
|
|
61
|
+
darkAssetPath: lottie.dark ?? "",
|
|
62
|
+
width: width,
|
|
63
|
+
height: height
|
|
64
|
+
)
|
|
65
|
+
}
|
|
55
66
|
|
|
56
67
|
Boxo.shared.setConfig(config: config)
|
|
57
68
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// LottieProgressOptions.swift
|
|
3
|
+
// ExpoBoxoSdk
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
import ExpoModulesCore
|
|
7
|
+
|
|
8
|
+
struct LottieProgressOptions: Record {
|
|
9
|
+
@Field
|
|
10
|
+
var light: String = ""
|
|
11
|
+
|
|
12
|
+
@Field
|
|
13
|
+
var dark: String?
|
|
14
|
+
|
|
15
|
+
@Field
|
|
16
|
+
var width: Int?
|
|
17
|
+
|
|
18
|
+
@Field
|
|
19
|
+
var height: Int?
|
|
20
|
+
}
|
package/package.json
CHANGED
package/src/ExpoBoxoSdk.types.ts
CHANGED
|
@@ -88,6 +88,11 @@ export type ConfigOptions = {
|
|
|
88
88
|
* use it to customize the splash screen
|
|
89
89
|
*/
|
|
90
90
|
splashScreenOptions?: SplashScreenOptions;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* use it to customize miniapp progress with lottie
|
|
94
|
+
*/
|
|
95
|
+
lottieProgressOptions?: LottieProgressOptions;
|
|
91
96
|
};
|
|
92
97
|
|
|
93
98
|
export type MiniappOptions = {
|
|
@@ -157,4 +162,11 @@ export type SplashScreenOptions = {
|
|
|
157
162
|
lightProgressTrack: string;
|
|
158
163
|
darkProgressIndicator: string;
|
|
159
164
|
darkProgressTrack: string;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type LottieProgressOptions = {
|
|
168
|
+
light: string;
|
|
169
|
+
dark?: string;
|
|
170
|
+
width?: number;
|
|
171
|
+
height?: number;
|
|
160
172
|
};
|