rampkit-expo-dev 0.0.99 → 0.0.101
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/build/RampKit.js +8 -11
- package/build/RampkitOverlay.js +0 -3
- package/build/TargetingContext.js +2 -1
- package/build/constants.d.ts +2 -1
- package/build/constants.js +2 -1
- package/package.json +1 -1
package/build/RampKit.js
CHANGED
|
@@ -299,17 +299,14 @@ class RampKitCore {
|
|
|
299
299
|
})();
|
|
300
300
|
// Initialize storage with initial values
|
|
301
301
|
OnboardingResponseStorage_1.OnboardingResponseStorage.initializeVariables(variables);
|
|
302
|
-
const screens = data.screens.map((s) => {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
label
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
js: s.js,
|
|
311
|
-
};
|
|
312
|
-
});
|
|
302
|
+
const screens = data.screens.map((s) => ({
|
|
303
|
+
id: s.id,
|
|
304
|
+
label: s.label,
|
|
305
|
+
html: s.html ||
|
|
306
|
+
`<div style="padding:24px"><h1>${s.label || s.id}</h1><button onclick="window.ReactNativeWebView && window.ReactNativeWebView.postMessage('rampkit:tap')">Continue</button></div>`,
|
|
307
|
+
css: s.css,
|
|
308
|
+
js: s.js,
|
|
309
|
+
}));
|
|
313
310
|
const requiredScripts = Array.isArray(data.requiredScripts)
|
|
314
311
|
? data.requiredScripts
|
|
315
312
|
: [];
|
package/build/RampkitOverlay.js
CHANGED
|
@@ -1498,11 +1498,8 @@ function Overlay(props) {
|
|
|
1498
1498
|
// Track screen navigation event
|
|
1499
1499
|
const fromScreen = props.screens[index];
|
|
1500
1500
|
const toScreen = props.screens[nextIndex];
|
|
1501
|
-
Logger_1.Logger.verbose(`Navigation - fromScreen: ${JSON.stringify(fromScreen)}`);
|
|
1502
|
-
Logger_1.Logger.verbose(`Navigation - toScreen: ${JSON.stringify(toScreen)}`);
|
|
1503
1501
|
const fromScreenName = (fromScreen === null || fromScreen === void 0 ? void 0 : fromScreen.label) || null;
|
|
1504
1502
|
const toScreenName = (toScreen === null || toScreen === void 0 ? void 0 : toScreen.label) || "";
|
|
1505
|
-
Logger_1.Logger.verbose(`Navigation - fromScreenName: ${fromScreenName}, toScreenName: ${toScreenName}`);
|
|
1506
1503
|
const navigationDirection = nextIndex > index ? "forward" : "back";
|
|
1507
1504
|
EventManager_1.eventManager.trackScreenNavigated(fromScreenName, toScreenName, navigationDirection);
|
|
1508
1505
|
// Parse animation type case-insensitively
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.buildTargetingContext = buildTargetingContext;
|
|
8
|
+
const constants_1 = require("./constants");
|
|
8
9
|
/**
|
|
9
10
|
* Calculate days since install from install date string
|
|
10
11
|
*/
|
|
@@ -48,7 +49,7 @@ function buildTargetingContext(deviceInfo) {
|
|
|
48
49
|
app: {
|
|
49
50
|
version: "1.0.0",
|
|
50
51
|
buildNumber: "1",
|
|
51
|
-
sdkVersion:
|
|
52
|
+
sdkVersion: constants_1.SDK_VERSION,
|
|
52
53
|
},
|
|
53
54
|
asa: {
|
|
54
55
|
keyword: null,
|
package/build/constants.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* RampKit SDK Constants
|
|
3
|
+
* Note: SDK_VERSION is updated by sync-versions.sh from package.json
|
|
3
4
|
*/
|
|
4
|
-
export declare const SDK_VERSION = "
|
|
5
|
+
export declare const SDK_VERSION = "0.0.100";
|
|
5
6
|
export declare const ENDPOINTS: {
|
|
6
7
|
readonly BASE_URL: "https://uustlzuvjmochxkxatfx.supabase.co/functions/v1";
|
|
7
8
|
readonly APP_USERS: "/app-users";
|
package/build/constants.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RampKit SDK Constants
|
|
4
|
+
* Note: SDK_VERSION is updated by sync-versions.sh from package.json
|
|
4
5
|
*/
|
|
5
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
exports.SUPABASE_ANON_KEY = exports.CAPABILITIES = exports.STORAGE_KEYS = exports.MANIFEST_BASE_URL = exports.ENDPOINTS = exports.SDK_VERSION = void 0;
|
|
7
|
-
exports.SDK_VERSION = "
|
|
8
|
+
exports.SDK_VERSION = "0.0.100";
|
|
8
9
|
exports.ENDPOINTS = {
|
|
9
10
|
BASE_URL: "https://uustlzuvjmochxkxatfx.supabase.co/functions/v1",
|
|
10
11
|
APP_USERS: "/app-users",
|
package/package.json
CHANGED