rampkit-expo-dev 0.0.97 → 0.0.99

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 CHANGED
@@ -299,13 +299,17 @@ 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
- id: s.id,
304
- html: s.html ||
305
- `<div style="padding:24px"><h1>${s.label || s.id}</h1><button onclick="window.ReactNativeWebView && window.ReactNativeWebView.postMessage('rampkit:tap')">Continue</button></div>`,
306
- css: s.css,
307
- js: s.js,
308
- }));
302
+ const screens = data.screens.map((s) => {
303
+ Logger_1.Logger.verbose(`Screen mapping - id: ${s.id}, label: ${s.label}`);
304
+ return {
305
+ id: s.id,
306
+ label: s.label,
307
+ html: s.html ||
308
+ `<div style="padding:24px"><h1>${s.label || s.id}</h1><button onclick="window.ReactNativeWebView && window.ReactNativeWebView.postMessage('rampkit:tap')">Continue</button></div>`,
309
+ css: s.css,
310
+ js: s.js,
311
+ };
312
+ });
309
313
  const requiredScripts = Array.isArray(data.requiredScripts)
310
314
  ? data.requiredScripts
311
315
  : [];
@@ -1498,8 +1498,11 @@ function Overlay(props) {
1498
1498
  // Track screen navigation event
1499
1499
  const fromScreen = props.screens[index];
1500
1500
  const toScreen = props.screens[nextIndex];
1501
- const fromScreenName = (fromScreen === null || fromScreen === void 0 ? void 0 : fromScreen.label) || (fromScreen === null || fromScreen === void 0 ? void 0 : fromScreen.id) || null;
1502
- const toScreenName = (toScreen === null || toScreen === void 0 ? void 0 : toScreen.label) || (toScreen === null || toScreen === void 0 ? void 0 : toScreen.id) || `screen_${nextIndex}`;
1501
+ Logger_1.Logger.verbose(`Navigation - fromScreen: ${JSON.stringify(fromScreen)}`);
1502
+ Logger_1.Logger.verbose(`Navigation - toScreen: ${JSON.stringify(toScreen)}`);
1503
+ const fromScreenName = (fromScreen === null || fromScreen === void 0 ? void 0 : fromScreen.label) || null;
1504
+ const toScreenName = (toScreen === null || toScreen === void 0 ? void 0 : toScreen.label) || "";
1505
+ Logger_1.Logger.verbose(`Navigation - fromScreenName: ${fromScreenName}, toScreenName: ${toScreenName}`);
1503
1506
  const navigationDirection = nextIndex > index ? "forward" : "back";
1504
1507
  EventManager_1.eventManager.trackScreenNavigated(fromScreenName, toScreenName, navigationDirection);
1505
1508
  // Parse animation type case-insensitively
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampkit-expo-dev",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "description": "The Expo SDK for RampKit. Build, test, and personalize app onboardings with instant updates.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",