@apps-in-toss/web-framework 2.5.0 → 2.5.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.
@@ -138599,6 +138599,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138599
138599
  var isRNApp = getAppsInTossGlobals().webViewType == null;
138600
138600
  return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
138601
138601
  children: isRNApp ? (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
138602
+ onLog: params => sendLog({
138603
+ log_type: params.log_type,
138604
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
138605
+ params: {
138606
+ ...params.params,
138607
+ schema_id: 5175906,
138608
+ app_name: import_react_native21.Granite.appName,
138609
+ log_name: params.log_name
138610
+ }
138611
+ }, {
138612
+ pipelines: ["core"]
138613
+ }),
138602
138614
  children: (0, import_jsx_runtime14.jsx)(RNAppContainer, {
138603
138615
  children
138604
138616
  })
@@ -138616,7 +138628,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138616
138628
  var AppsInToss = {
138617
138629
  registerApp
138618
138630
  };
138619
- var import_native_modules19 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138631
+ var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138620
138632
  var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
138621
138633
  var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
138622
138634
  var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
@@ -139752,7 +139764,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139752
139764
  console.log("[webViewDebugLog]", event);
139753
139765
  }
139754
139766
  }
139755
- var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139756
139767
  var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139757
139768
  var extractDateFromUUIDv7 = uuid => {
139758
139769
  var timestampHex = uuid.split("-").join("").slice(0, 12);
@@ -139785,18 +139796,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139785
139796
  var _getGroupId = getGroupId(url),
139786
139797
  groupId = _getGroupId.groupId,
139787
139798
  search = _getGroupId.search;
139788
- var log = {
139789
- log_type: "screen",
139790
- log_name: `${groupId}::screen`,
139799
+ var logType = "screen";
139800
+ var logName = `${groupId}::screen`;
139801
+ var params = {
139802
+ search,
139803
+ referrer: getReferrer2(),
139804
+ document_title: title,
139805
+ app_name: import_react_native35.Granite.appName,
139806
+ deployment_id: env.getDeploymentId(),
139807
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
139808
+ };
139809
+ sendLog({
139810
+ log_type: logType,
139811
+ log_name: logName,
139812
+ params
139813
+ }, {
139814
+ pipelines: ["partner"]
139815
+ });
139816
+ sendLog({
139817
+ log_type: logType,
139818
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
139791
139819
  params: {
139792
- search,
139793
- referrer: getReferrer2(),
139794
- document_title: title,
139795
- deployment_id: env.getDeploymentId(),
139796
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
139820
+ ...params,
139821
+ schema_id: 5175906,
139822
+ log_name: logName
139797
139823
  }
139798
- };
139799
- return (0, import_native_modules18.eventLog)(log);
139824
+ }, {
139825
+ pipelines: ["core"]
139826
+ });
139800
139827
  };
139801
139828
  var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
139802
139829
  var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
@@ -139829,7 +139856,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139829
139856
  var devUrl = `http://${local.host}:${local.port}`;
139830
139857
  return mergeSchemeQueryParamsInto(devUrl);
139831
139858
  }
139832
- var _ref49 = (0, import_native_modules19.safeSyncPostMessage)("getWebBundleURL", {}),
139859
+ var _ref49 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
139833
139860
  rawUrl = _ref49.url;
139834
139861
  var url = mergeSchemeQueryParamsInto(rawUrl);
139835
139862
  var deploymentId = env.getDeploymentId();
@@ -139886,7 +139913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139886
139913
  onEvent,
139887
139914
  onError,
139888
139915
  options
139889
- }) => import_native_modules19.appsInTossEvent.addEventListener("updateLocationEvent", {
139916
+ }) => import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
139890
139917
  onEvent,
139891
139918
  onError,
139892
139919
  options
@@ -139898,20 +139925,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139898
139925
  onEvent,
139899
139926
  onError,
139900
139927
  options
139901
- }) => import_native_modules19.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
139928
+ }) => import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
139902
139929
  onEvent,
139903
139930
  onError,
139904
139931
  options
139905
139932
  }),
139906
- loadAppsInTossAdMob: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob,
139907
- showAppsInTossAdMob: import_native_modules19.GoogleAdMob.showAppsInTossAdMob,
139933
+ loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
139934
+ showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
139908
139935
  loadFullScreenAd: loadFullScreenAdForWeb,
139909
139936
  showFullScreenAd,
139910
139937
  fetchTossAd,
139911
- iapCreateOneTimePurchaseOrder: import_native_modules19.IAP.createOneTimePurchaseOrder,
139912
- requestSubscriptionPurchase: import_native_modules19.IAP.createSubscriptionPurchaseOrder,
139913
- requestOneTimePurchase: import_native_modules19.requestOneTimePurchase,
139914
- requestNotificationAgreement: import_native_modules19.requestNotificationAgreement
139938
+ iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
139939
+ requestSubscriptionPurchase: import_native_modules18.IAP.createSubscriptionPurchaseOrder,
139940
+ requestOneTimePurchase: import_native_modules18.requestOneTimePurchase,
139941
+ requestNotificationAgreement: import_native_modules18.requestNotificationAgreement
139915
139942
  },
139916
139943
  constantHandlerMap: {
139917
139944
  ...appsInTossConstantBridges,
@@ -139922,11 +139949,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139922
139949
  right: insets.right
139923
139950
  }),
139924
139951
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
139925
- getServerTime_isSupported: import_native_modules19.getServerTime.isSupported,
139926
- requestReview_isSupported: import_native_modules19.requestReview.isSupported,
139927
- loadAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob.isSupported,
139928
- showAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.showAppsInTossAdMob.isSupported,
139929
- isAppsInTossAdMobLoaded_isSupported: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
139952
+ getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
139953
+ requestReview_isSupported: import_native_modules18.requestReview.isSupported,
139954
+ loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
139955
+ showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
139956
+ isAppsInTossAdMobLoaded_isSupported: import_native_modules18.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
139930
139957
  loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
139931
139958
  showFullScreenAd_isSupported: showFullScreenAd.isSupported,
139932
139959
  fetchTossAd_isSupported: fetchTossAd.isSupported,
@@ -139936,7 +139963,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139936
139963
  },
139937
139964
  asyncHandlerMap: {
139938
139965
  ...appsInTossAsyncBridges,
139939
- getServerTime: import_native_modules19.getServerTime,
139966
+ getServerTime: import_native_modules18.getServerTime,
139940
139967
  setIosSwipeGestureEnabled: options => {
139941
139968
  setAllowsBackForwardNavigationGestures(options.isEnabled);
139942
139969
  return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
@@ -139966,18 +139993,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139966
139993
  fetchContacts: appsInTossAsyncBridges.fetchContacts,
139967
139994
  getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
139968
139995
  openCamera: appsInTossAsyncBridges.openCamera,
139969
- getStorageItem: import_native_modules19.Storage.getItem,
139970
- setStorageItem: import_native_modules19.Storage.setItem,
139971
- removeStorageItem: import_native_modules19.Storage.removeItem,
139972
- clearItems: import_native_modules19.Storage.clearItems,
139973
- iapGetProductItemList: import_native_modules19.IAP.getProductItemList,
139974
- iapCreateOneTimePurchaseOrder: import_native_modules19.iapCreateOneTimePurchaseOrder,
139975
- processProductGrant: import_native_modules19.processProductGrant,
139976
- getPendingOrders: import_native_modules19.IAP.getPendingOrders,
139977
- getCompletedOrRefundedOrders: import_native_modules19.IAP.getCompletedOrRefundedOrders,
139978
- completeProductGrant: import_native_modules19.IAP.completeProductGrant,
139979
- getSubscriptionInfo: import_native_modules19.IAP.getSubscriptionInfo,
139980
- isAppsInTossAdMobLoaded: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded,
139996
+ getStorageItem: import_native_modules18.Storage.getItem,
139997
+ setStorageItem: import_native_modules18.Storage.setItem,
139998
+ removeStorageItem: import_native_modules18.Storage.removeItem,
139999
+ clearItems: import_native_modules18.Storage.clearItems,
140000
+ iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
140001
+ iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
140002
+ processProductGrant: import_native_modules18.processProductGrant,
140003
+ getPendingOrders: import_native_modules18.IAP.getPendingOrders,
140004
+ getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
140005
+ completeProductGrant: import_native_modules18.IAP.completeProductGrant,
140006
+ getSubscriptionInfo: import_native_modules18.IAP.getSubscriptionInfo,
140007
+ isAppsInTossAdMobLoaded: import_native_modules18.GoogleAdMob.isAppsInTossAdMobLoaded,
139981
140008
  tossAdEventLog,
139982
140009
  memoryDebugLog: webViewMemoryDebugLog,
139983
140010
  debugLog: function () {
@@ -141509,12 +141536,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141509
141536
  loggerFunction = _config?.logger;
141510
141537
  }
141511
141538
  return {
141512
- screen: (groupId, params = {}) => {
141513
- loggerFunction?.({
141539
+ screen: (groupId, params = {}, onLog) => {
141540
+ var payload = {
141514
141541
  log_type: "screen",
141515
141542
  log_name: createLogName(groupId, "screen"),
141516
141543
  params
141517
- });
141544
+ };
141545
+ loggerFunction?.(payload);
141546
+ onLog?.(payload);
141518
141547
  },
141519
141548
  event: (groupId, params) => {
141520
141549
  var log_name = params.log_name,
@@ -141552,8 +141581,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141552
141581
  return LOGGER_SHIM;
141553
141582
  }
141554
141583
  return {
141555
- screen: (_groupId, params2) => {
141556
- getLogger().screen(_groupId, params2);
141584
+ screen: (_groupId, params2, onLog) => {
141585
+ getLogger().screen(_groupId, params2, onLog);
141557
141586
  },
141558
141587
  event: _params => {
141559
141588
  getLogger().event(groupId, {
@@ -141827,10 +141856,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141827
141856
  var session = useVisibilitySession();
141828
141857
  var logger = useLogger();
141829
141858
  return (0, import_react12.useMemo)(() => ({
141830
- log: (groupId, params) => {
141859
+ log: (groupId, params, onLog) => {
141831
141860
  var canConsume = session.consume();
141832
141861
  if (canConsume) {
141833
- logger.screen(groupId, params);
141862
+ logger.screen(groupId, params, onLog);
141834
141863
  }
141835
141864
  }
141836
141865
  }), [logger, session]);
@@ -141868,14 +141897,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141868
141897
  children,
141869
141898
  groupId,
141870
141899
  params,
141871
- log = true
141900
+ log = true,
141901
+ onLog
141872
141902
  }) {
141873
141903
  var logger = useScreenLogger();
141874
141904
  (0, import_react13.useEffect)(() => {
141875
141905
  if (log) {
141876
- logger.log(groupId, params);
141906
+ logger.log(groupId, params, onLog);
141877
141907
  }
141878
- }, [groupId, params, log, logger]);
141908
+ }, [groupId, params, log, logger, onLog]);
141879
141909
  return (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {
141880
141910
  children
141881
141911
  });
@@ -138138,6 +138138,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138138
138138
  var isRNApp = getAppsInTossGlobals().webViewType == null;
138139
138139
  return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
138140
138140
  children: isRNApp ? (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
138141
+ onLog: params => sendLog({
138142
+ log_type: params.log_type,
138143
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
138144
+ params: {
138145
+ ...params.params,
138146
+ schema_id: 5175906,
138147
+ app_name: import_react_native21.Granite.appName,
138148
+ log_name: params.log_name
138149
+ }
138150
+ }, {
138151
+ pipelines: ["core"]
138152
+ }),
138141
138153
  children: (0, import_jsx_runtime14.jsx)(RNAppContainer, {
138142
138154
  children
138143
138155
  })
@@ -138155,7 +138167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138155
138167
  var AppsInToss = {
138156
138168
  registerApp
138157
138169
  };
138158
- var import_native_modules19 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138170
+ var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138159
138171
  var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
138160
138172
  var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
138161
138173
  var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
@@ -139291,7 +139303,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139291
139303
  console.log("[webViewDebugLog]", event);
139292
139304
  }
139293
139305
  }
139294
- var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139295
139306
  var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139296
139307
  var extractDateFromUUIDv7 = uuid => {
139297
139308
  var timestampHex = uuid.split("-").join("").slice(0, 12);
@@ -139324,18 +139335,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139324
139335
  var _getGroupId = getGroupId(url),
139325
139336
  groupId = _getGroupId.groupId,
139326
139337
  search = _getGroupId.search;
139327
- var log = {
139328
- log_type: "screen",
139329
- log_name: `${groupId}::screen`,
139338
+ var logType = "screen";
139339
+ var logName = `${groupId}::screen`;
139340
+ var params = {
139341
+ search,
139342
+ referrer: getReferrer2(),
139343
+ document_title: title,
139344
+ app_name: import_react_native35.Granite.appName,
139345
+ deployment_id: env.getDeploymentId(),
139346
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
139347
+ };
139348
+ sendLog({
139349
+ log_type: logType,
139350
+ log_name: logName,
139351
+ params
139352
+ }, {
139353
+ pipelines: ["partner"]
139354
+ });
139355
+ sendLog({
139356
+ log_type: logType,
139357
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
139330
139358
  params: {
139331
- search,
139332
- referrer: getReferrer2(),
139333
- document_title: title,
139334
- deployment_id: env.getDeploymentId(),
139335
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
139359
+ ...params,
139360
+ schema_id: 5175906,
139361
+ log_name: logName
139336
139362
  }
139337
- };
139338
- return (0, import_native_modules18.eventLog)(log);
139363
+ }, {
139364
+ pipelines: ["core"]
139365
+ });
139339
139366
  };
139340
139367
  var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
139341
139368
  var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
@@ -139368,7 +139395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139368
139395
  var devUrl = `http://${local.host}:${local.port}`;
139369
139396
  return mergeSchemeQueryParamsInto(devUrl);
139370
139397
  }
139371
- var _ref49 = (0, import_native_modules19.safeSyncPostMessage)("getWebBundleURL", {}),
139398
+ var _ref49 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
139372
139399
  rawUrl = _ref49.url;
139373
139400
  var url = mergeSchemeQueryParamsInto(rawUrl);
139374
139401
  var deploymentId = env.getDeploymentId();
@@ -139425,7 +139452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139425
139452
  onEvent,
139426
139453
  onError,
139427
139454
  options
139428
- }) => import_native_modules19.appsInTossEvent.addEventListener("updateLocationEvent", {
139455
+ }) => import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
139429
139456
  onEvent,
139430
139457
  onError,
139431
139458
  options
@@ -139437,20 +139464,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139437
139464
  onEvent,
139438
139465
  onError,
139439
139466
  options
139440
- }) => import_native_modules19.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
139467
+ }) => import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
139441
139468
  onEvent,
139442
139469
  onError,
139443
139470
  options
139444
139471
  }),
139445
- loadAppsInTossAdMob: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob,
139446
- showAppsInTossAdMob: import_native_modules19.GoogleAdMob.showAppsInTossAdMob,
139472
+ loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
139473
+ showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
139447
139474
  loadFullScreenAd: loadFullScreenAdForWeb,
139448
139475
  showFullScreenAd,
139449
139476
  fetchTossAd,
139450
- iapCreateOneTimePurchaseOrder: import_native_modules19.IAP.createOneTimePurchaseOrder,
139451
- requestSubscriptionPurchase: import_native_modules19.IAP.createSubscriptionPurchaseOrder,
139452
- requestOneTimePurchase: import_native_modules19.requestOneTimePurchase,
139453
- requestNotificationAgreement: import_native_modules19.requestNotificationAgreement
139477
+ iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
139478
+ requestSubscriptionPurchase: import_native_modules18.IAP.createSubscriptionPurchaseOrder,
139479
+ requestOneTimePurchase: import_native_modules18.requestOneTimePurchase,
139480
+ requestNotificationAgreement: import_native_modules18.requestNotificationAgreement
139454
139481
  },
139455
139482
  constantHandlerMap: {
139456
139483
  ...appsInTossConstantBridges,
@@ -139461,11 +139488,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139461
139488
  right: insets.right
139462
139489
  }),
139463
139490
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
139464
- getServerTime_isSupported: import_native_modules19.getServerTime.isSupported,
139465
- requestReview_isSupported: import_native_modules19.requestReview.isSupported,
139466
- loadAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob.isSupported,
139467
- showAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.showAppsInTossAdMob.isSupported,
139468
- isAppsInTossAdMobLoaded_isSupported: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
139491
+ getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
139492
+ requestReview_isSupported: import_native_modules18.requestReview.isSupported,
139493
+ loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
139494
+ showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
139495
+ isAppsInTossAdMobLoaded_isSupported: import_native_modules18.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
139469
139496
  loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
139470
139497
  showFullScreenAd_isSupported: showFullScreenAd.isSupported,
139471
139498
  fetchTossAd_isSupported: fetchTossAd.isSupported,
@@ -139475,7 +139502,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139475
139502
  },
139476
139503
  asyncHandlerMap: {
139477
139504
  ...appsInTossAsyncBridges,
139478
- getServerTime: import_native_modules19.getServerTime,
139505
+ getServerTime: import_native_modules18.getServerTime,
139479
139506
  setIosSwipeGestureEnabled: options => {
139480
139507
  setAllowsBackForwardNavigationGestures(options.isEnabled);
139481
139508
  return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
@@ -139505,18 +139532,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139505
139532
  fetchContacts: appsInTossAsyncBridges.fetchContacts,
139506
139533
  getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
139507
139534
  openCamera: appsInTossAsyncBridges.openCamera,
139508
- getStorageItem: import_native_modules19.Storage.getItem,
139509
- setStorageItem: import_native_modules19.Storage.setItem,
139510
- removeStorageItem: import_native_modules19.Storage.removeItem,
139511
- clearItems: import_native_modules19.Storage.clearItems,
139512
- iapGetProductItemList: import_native_modules19.IAP.getProductItemList,
139513
- iapCreateOneTimePurchaseOrder: import_native_modules19.iapCreateOneTimePurchaseOrder,
139514
- processProductGrant: import_native_modules19.processProductGrant,
139515
- getPendingOrders: import_native_modules19.IAP.getPendingOrders,
139516
- getCompletedOrRefundedOrders: import_native_modules19.IAP.getCompletedOrRefundedOrders,
139517
- completeProductGrant: import_native_modules19.IAP.completeProductGrant,
139518
- getSubscriptionInfo: import_native_modules19.IAP.getSubscriptionInfo,
139519
- isAppsInTossAdMobLoaded: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded,
139535
+ getStorageItem: import_native_modules18.Storage.getItem,
139536
+ setStorageItem: import_native_modules18.Storage.setItem,
139537
+ removeStorageItem: import_native_modules18.Storage.removeItem,
139538
+ clearItems: import_native_modules18.Storage.clearItems,
139539
+ iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
139540
+ iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
139541
+ processProductGrant: import_native_modules18.processProductGrant,
139542
+ getPendingOrders: import_native_modules18.IAP.getPendingOrders,
139543
+ getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
139544
+ completeProductGrant: import_native_modules18.IAP.completeProductGrant,
139545
+ getSubscriptionInfo: import_native_modules18.IAP.getSubscriptionInfo,
139546
+ isAppsInTossAdMobLoaded: import_native_modules18.GoogleAdMob.isAppsInTossAdMobLoaded,
139520
139547
  tossAdEventLog,
139521
139548
  memoryDebugLog: webViewMemoryDebugLog,
139522
139549
  debugLog: function () {
@@ -141048,12 +141075,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141048
141075
  loggerFunction = _config?.logger;
141049
141076
  }
141050
141077
  return {
141051
- screen: (groupId, params = {}) => {
141052
- loggerFunction?.({
141078
+ screen: (groupId, params = {}, onLog) => {
141079
+ var payload = {
141053
141080
  log_type: "screen",
141054
141081
  log_name: createLogName(groupId, "screen"),
141055
141082
  params
141056
- });
141083
+ };
141084
+ loggerFunction?.(payload);
141085
+ onLog?.(payload);
141057
141086
  },
141058
141087
  event: (groupId, params) => {
141059
141088
  var log_name = params.log_name,
@@ -141091,8 +141120,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141091
141120
  return LOGGER_SHIM;
141092
141121
  }
141093
141122
  return {
141094
- screen: (_groupId, params2) => {
141095
- getLogger().screen(_groupId, params2);
141123
+ screen: (_groupId, params2, onLog) => {
141124
+ getLogger().screen(_groupId, params2, onLog);
141096
141125
  },
141097
141126
  event: _params => {
141098
141127
  getLogger().event(groupId, {
@@ -141366,10 +141395,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141366
141395
  var session = useVisibilitySession();
141367
141396
  var logger = useLogger();
141368
141397
  return (0, import_react12.useMemo)(() => ({
141369
- log: (groupId, params) => {
141398
+ log: (groupId, params, onLog) => {
141370
141399
  var canConsume = session.consume();
141371
141400
  if (canConsume) {
141372
- logger.screen(groupId, params);
141401
+ logger.screen(groupId, params, onLog);
141373
141402
  }
141374
141403
  }
141375
141404
  }), [logger, session]);
@@ -141407,14 +141436,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141407
141436
  children,
141408
141437
  groupId,
141409
141438
  params,
141410
- log = true
141439
+ log = true,
141440
+ onLog
141411
141441
  }) {
141412
141442
  var logger = useScreenLogger();
141413
141443
  (0, import_react13.useEffect)(() => {
141414
141444
  if (log) {
141415
- logger.log(groupId, params);
141445
+ logger.log(groupId, params, onLog);
141416
141446
  }
141417
- }, [groupId, params, log, logger]);
141447
+ }, [groupId, params, log, logger, onLog]);
141418
141448
  return (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {
141419
141449
  children
141420
141450
  });
@@ -10789,12 +10789,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10789
10789
  }
10790
10790
  return {
10791
10791
  screen: function(groupId) {
10792
- var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10793
- loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction({
10792
+ var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, onLog = arguments.length > 2 ? arguments[2] : void 0;
10793
+ var payload = {
10794
10794
  log_type: "screen",
10795
10795
  log_name: createLogName(groupId, "screen"),
10796
10796
  params
10797
- });
10797
+ };
10798
+ loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction(payload);
10799
+ onLog === null || onLog === void 0 ? void 0 : onLog(payload);
10798
10800
  },
10799
10801
  event: function(groupId, params) {
10800
10802
  var log_name = params.log_name, otherParams = _object_without_properties(params, [
@@ -10827,8 +10829,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10827
10829
  return LOGGER_SHIM;
10828
10830
  }
10829
10831
  return {
10830
- screen: function(_groupId, params2) {
10831
- getLogger().screen(_groupId, params2);
10832
+ screen: function(_groupId, params2, onLog) {
10833
+ getLogger().screen(_groupId, params2, onLog);
10832
10834
  },
10833
10835
  event: function(_params) {
10834
10836
  getLogger().event(groupId, _object_spread({}, params, _params));
@@ -11090,10 +11092,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11090
11092
  var logger = useLogger();
11091
11093
  return (0, import_react41.useMemo)(function() {
11092
11094
  return {
11093
- log: function(groupId, params) {
11095
+ log: function(groupId, params, onLog) {
11094
11096
  var canConsume = session.consume();
11095
11097
  if (canConsume) {
11096
- logger.screen(groupId, params);
11098
+ logger.screen(groupId, params, onLog);
11097
11099
  }
11098
11100
  }
11099
11101
  };
@@ -11206,17 +11208,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11206
11208
  }
11207
11209
  }();
11208
11210
  LoggingScreen.onMount = function LoggingScreenOnMount(param) {
11209
- var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log;
11211
+ var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log, onLog = param.onLog;
11210
11212
  var logger = useScreenLogger();
11211
11213
  (0, import_react40.useEffect)(function() {
11212
11214
  if (log) {
11213
- logger.log(groupId, params);
11215
+ logger.log(groupId, params, onLog);
11214
11216
  }
11215
11217
  }, [
11216
11218
  groupId,
11217
11219
  params,
11218
11220
  log,
11219
- logger
11221
+ logger,
11222
+ onLog
11220
11223
  ]);
11221
11224
  return (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {
11222
11225
  children
@@ -46630,6 +46633,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46630
46633
  var isRNApp = getAppsInTossGlobals().webViewType == null;
46631
46634
  return (0, import_jsx_runtime229.jsx)(NavigationBarContextProvider, {
46632
46635
  children: isRNApp ? (0, import_jsx_runtime229.jsx)(Analytics.Screen, {
46636
+ onLog: function(params) {
46637
+ return sendLog({
46638
+ log_type: params.log_type,
46639
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
46640
+ params: _object_spread_props(_object_spread({}, params.params), {
46641
+ schema_id: 5175906,
46642
+ app_name: Granite.appName,
46643
+ log_name: params.log_name
46644
+ })
46645
+ }, {
46646
+ pipelines: [
46647
+ "core"
46648
+ ]
46649
+ });
46650
+ },
46633
46651
  children: (0, import_jsx_runtime229.jsx)(RNAppContainer, {
46634
46652
  children
46635
46653
  })
@@ -48219,7 +48237,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48219
48237
  init_dist5();
48220
48238
  init_src3();
48221
48239
  init_esm7();
48222
- init_dist5();
48223
48240
  init_src3();
48224
48241
  import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
48225
48242
  init_dist2();
@@ -48988,18 +49005,37 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48988
49005
  };
48989
49006
  trackScreen = function(url, title) {
48990
49007
  var _getGroupId = getGroupId2(url), groupId = _getGroupId.groupId, search = _getGroupId.search;
48991
- var log = {
48992
- log_type: "screen",
48993
- log_name: "".concat(groupId, "::screen"),
48994
- params: {
48995
- search,
48996
- referrer: getReferrer22(),
48997
- document_title: title,
48998
- deployment_id: env.getDeploymentId(),
48999
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
49000
- }
49008
+ var logType = "screen";
49009
+ var logName = "".concat(groupId, "::screen");
49010
+ var params = {
49011
+ search,
49012
+ referrer: getReferrer22(),
49013
+ document_title: title,
49014
+ app_name: Granite.appName,
49015
+ deployment_id: env.getDeploymentId(),
49016
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
49001
49017
  };
49002
- return eventLog(log);
49018
+ sendLog({
49019
+ log_type: logType,
49020
+ log_name: logName,
49021
+ params
49022
+ }, {
49023
+ pipelines: [
49024
+ "partner"
49025
+ ]
49026
+ });
49027
+ sendLog({
49028
+ log_type: logType,
49029
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
49030
+ params: _object_spread_props(_object_spread({}, params), {
49031
+ schema_id: 5175906,
49032
+ log_name: logName
49033
+ })
49034
+ }, {
49035
+ pipelines: [
49036
+ "core"
49037
+ ]
49038
+ });
49003
49039
  };
49004
49040
  operationalEnvironment = getOperationalEnvironment2();
49005
49041
  TYPES = [
@@ -9873,12 +9873,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
9873
9873
  }
9874
9874
  return {
9875
9875
  screen: function(groupId) {
9876
- var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9877
- loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction({
9876
+ var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, onLog = arguments.length > 2 ? arguments[2] : void 0;
9877
+ var payload = {
9878
9878
  log_type: "screen",
9879
9879
  log_name: createLogName(groupId, "screen"),
9880
9880
  params
9881
- });
9881
+ };
9882
+ loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction(payload);
9883
+ onLog === null || onLog === void 0 ? void 0 : onLog(payload);
9882
9884
  },
9883
9885
  event: function(groupId, params) {
9884
9886
  var log_name = params.log_name, otherParams = _object_without_properties(params, [
@@ -9911,8 +9913,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
9911
9913
  return LOGGER_SHIM;
9912
9914
  }
9913
9915
  return {
9914
- screen: function(_groupId, params2) {
9915
- getLogger().screen(_groupId, params2);
9916
+ screen: function(_groupId, params2, onLog) {
9917
+ getLogger().screen(_groupId, params2, onLog);
9916
9918
  },
9917
9919
  event: function(_params) {
9918
9920
  getLogger().event(groupId, _object_spread({}, params, _params));
@@ -10174,10 +10176,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10174
10176
  var logger = useLogger();
10175
10177
  return (0, import_react41.useMemo)(function() {
10176
10178
  return {
10177
- log: function(groupId, params) {
10179
+ log: function(groupId, params, onLog) {
10178
10180
  var canConsume = session.consume();
10179
10181
  if (canConsume) {
10180
- logger.screen(groupId, params);
10182
+ logger.screen(groupId, params, onLog);
10181
10183
  }
10182
10184
  }
10183
10185
  };
@@ -10290,17 +10292,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10290
10292
  }
10291
10293
  }();
10292
10294
  LoggingScreen.onMount = function LoggingScreenOnMount(param) {
10293
- var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log;
10295
+ var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log, onLog = param.onLog;
10294
10296
  var logger = useScreenLogger();
10295
10297
  (0, import_react40.useEffect)(function() {
10296
10298
  if (log) {
10297
- logger.log(groupId, params);
10299
+ logger.log(groupId, params, onLog);
10298
10300
  }
10299
10301
  }, [
10300
10302
  groupId,
10301
10303
  params,
10302
10304
  log,
10303
- logger
10305
+ logger,
10306
+ onLog
10304
10307
  ]);
10305
10308
  return (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {
10306
10309
  children
@@ -45647,6 +45650,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45647
45650
  var isRNApp = getAppsInTossGlobals().webViewType == null;
45648
45651
  return (0, import_jsx_runtime229.jsx)(NavigationBarContextProvider, {
45649
45652
  children: isRNApp ? (0, import_jsx_runtime229.jsx)(Analytics.Screen, {
45653
+ onLog: function(params) {
45654
+ return sendLog({
45655
+ log_type: params.log_type,
45656
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
45657
+ params: _object_spread_props(_object_spread({}, params.params), {
45658
+ schema_id: 5175906,
45659
+ app_name: Granite.appName,
45660
+ log_name: params.log_name
45661
+ })
45662
+ }, {
45663
+ pipelines: [
45664
+ "core"
45665
+ ]
45666
+ });
45667
+ },
45650
45668
  children: (0, import_jsx_runtime229.jsx)(RNAppContainer, {
45651
45669
  children
45652
45670
  })
@@ -47236,7 +47254,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47236
47254
  init_dist5();
47237
47255
  init_src3();
47238
47256
  init_esm7();
47239
- init_dist5();
47240
47257
  init_src3();
47241
47258
  import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
47242
47259
  init_dist2();
@@ -48005,18 +48022,37 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48005
48022
  };
48006
48023
  trackScreen = function(url, title) {
48007
48024
  var _getGroupId = getGroupId2(url), groupId = _getGroupId.groupId, search = _getGroupId.search;
48008
- var log = {
48009
- log_type: "screen",
48010
- log_name: "".concat(groupId, "::screen"),
48011
- params: {
48012
- search,
48013
- referrer: getReferrer22(),
48014
- document_title: title,
48015
- deployment_id: env.getDeploymentId(),
48016
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
48017
- }
48025
+ var logType = "screen";
48026
+ var logName = "".concat(groupId, "::screen");
48027
+ var params = {
48028
+ search,
48029
+ referrer: getReferrer22(),
48030
+ document_title: title,
48031
+ app_name: Granite.appName,
48032
+ deployment_id: env.getDeploymentId(),
48033
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
48018
48034
  };
48019
- return eventLog(log);
48035
+ sendLog({
48036
+ log_type: logType,
48037
+ log_name: logName,
48038
+ params
48039
+ }, {
48040
+ pipelines: [
48041
+ "partner"
48042
+ ]
48043
+ });
48044
+ sendLog({
48045
+ log_type: logType,
48046
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
48047
+ params: _object_spread_props(_object_spread({}, params), {
48048
+ schema_id: 5175906,
48049
+ log_name: logName
48050
+ })
48051
+ }, {
48052
+ pipelines: [
48053
+ "core"
48054
+ ]
48055
+ });
48020
48056
  };
48021
48057
  operationalEnvironment = getOperationalEnvironment2();
48022
48058
  TYPES = [
@@ -10798,12 +10798,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10798
10798
  }
10799
10799
  return {
10800
10800
  screen: function(groupId) {
10801
- var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10802
- loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction({
10801
+ var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, onLog = arguments.length > 2 ? arguments[2] : void 0;
10802
+ var payload = {
10803
10803
  log_type: "screen",
10804
10804
  log_name: createLogName(groupId, "screen"),
10805
10805
  params
10806
- });
10806
+ };
10807
+ loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction(payload);
10808
+ onLog === null || onLog === void 0 ? void 0 : onLog(payload);
10807
10809
  },
10808
10810
  event: function(groupId, params) {
10809
10811
  var log_name = params.log_name, otherParams = _object_without_properties(params, [
@@ -10836,8 +10838,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10836
10838
  return LOGGER_SHIM;
10837
10839
  }
10838
10840
  return {
10839
- screen: function(_groupId, params2) {
10840
- getLogger().screen(_groupId, params2);
10841
+ screen: function(_groupId, params2, onLog) {
10842
+ getLogger().screen(_groupId, params2, onLog);
10841
10843
  },
10842
10844
  event: function(_params) {
10843
10845
  getLogger().event(groupId, _object_spread({}, params, _params));
@@ -11099,10 +11101,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11099
11101
  var logger = useLogger();
11100
11102
  return (0, import_react42.useMemo)(function() {
11101
11103
  return {
11102
- log: function(groupId, params) {
11104
+ log: function(groupId, params, onLog) {
11103
11105
  var canConsume = session.consume();
11104
11106
  if (canConsume) {
11105
- logger.screen(groupId, params);
11107
+ logger.screen(groupId, params, onLog);
11106
11108
  }
11107
11109
  }
11108
11110
  };
@@ -11215,17 +11217,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11215
11217
  }
11216
11218
  }();
11217
11219
  LoggingScreen.onMount = function LoggingScreenOnMount(param) {
11218
- var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log;
11220
+ var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log, onLog = param.onLog;
11219
11221
  var logger = useScreenLogger();
11220
11222
  (0, import_react41.useEffect)(function() {
11221
11223
  if (log) {
11222
- logger.log(groupId, params);
11224
+ logger.log(groupId, params, onLog);
11223
11225
  }
11224
11226
  }, [
11225
11227
  groupId,
11226
11228
  params,
11227
11229
  log,
11228
- logger
11230
+ logger,
11231
+ onLog
11229
11232
  ]);
11230
11233
  return (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {
11231
11234
  children
@@ -46639,6 +46642,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46639
46642
  var isRNApp = getAppsInTossGlobals().webViewType == null;
46640
46643
  return (0, import_jsx_runtime229.jsx)(NavigationBarContextProvider, {
46641
46644
  children: isRNApp ? (0, import_jsx_runtime229.jsx)(Analytics.Screen, {
46645
+ onLog: function(params) {
46646
+ return sendLog({
46647
+ log_type: params.log_type,
46648
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
46649
+ params: _object_spread_props(_object_spread({}, params.params), {
46650
+ schema_id: 5175906,
46651
+ app_name: Granite.appName,
46652
+ log_name: params.log_name
46653
+ })
46654
+ }, {
46655
+ pipelines: [
46656
+ "core"
46657
+ ]
46658
+ });
46659
+ },
46642
46660
  children: (0, import_jsx_runtime229.jsx)(RNAppContainer, {
46643
46661
  children
46644
46662
  })
@@ -48228,7 +48246,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48228
48246
  init_dist5();
48229
48247
  init_src3();
48230
48248
  init_esm7();
48231
- init_dist5();
48232
48249
  init_src3();
48233
48250
  import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
48234
48251
  init_dist2();
@@ -48997,18 +49014,37 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48997
49014
  };
48998
49015
  trackScreen = function(url, title) {
48999
49016
  var _getGroupId = getGroupId2(url), groupId = _getGroupId.groupId, search = _getGroupId.search;
49000
- var log = {
49001
- log_type: "screen",
49002
- log_name: "".concat(groupId, "::screen"),
49003
- params: {
49004
- search,
49005
- referrer: getReferrer22(),
49006
- document_title: title,
49007
- deployment_id: env.getDeploymentId(),
49008
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
49009
- }
49017
+ var logType = "screen";
49018
+ var logName = "".concat(groupId, "::screen");
49019
+ var params = {
49020
+ search,
49021
+ referrer: getReferrer22(),
49022
+ document_title: title,
49023
+ app_name: Granite.appName,
49024
+ deployment_id: env.getDeploymentId(),
49025
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
49010
49026
  };
49011
- return eventLog(log);
49027
+ sendLog({
49028
+ log_type: logType,
49029
+ log_name: logName,
49030
+ params
49031
+ }, {
49032
+ pipelines: [
49033
+ "partner"
49034
+ ]
49035
+ });
49036
+ sendLog({
49037
+ log_type: logType,
49038
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
49039
+ params: _object_spread_props(_object_spread({}, params), {
49040
+ schema_id: 5175906,
49041
+ log_name: logName
49042
+ })
49043
+ }, {
49044
+ pipelines: [
49045
+ "core"
49046
+ ]
49047
+ });
49012
49048
  };
49013
49049
  operationalEnvironment = getOperationalEnvironment2();
49014
49050
  TYPES = [
@@ -9882,12 +9882,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
9882
9882
  }
9883
9883
  return {
9884
9884
  screen: function(groupId) {
9885
- var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9886
- loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction({
9885
+ var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, onLog = arguments.length > 2 ? arguments[2] : void 0;
9886
+ var payload = {
9887
9887
  log_type: "screen",
9888
9888
  log_name: createLogName(groupId, "screen"),
9889
9889
  params
9890
- });
9890
+ };
9891
+ loggerFunction === null || loggerFunction === void 0 ? void 0 : loggerFunction(payload);
9892
+ onLog === null || onLog === void 0 ? void 0 : onLog(payload);
9891
9893
  },
9892
9894
  event: function(groupId, params) {
9893
9895
  var log_name = params.log_name, otherParams = _object_without_properties(params, [
@@ -9920,8 +9922,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
9920
9922
  return LOGGER_SHIM;
9921
9923
  }
9922
9924
  return {
9923
- screen: function(_groupId, params2) {
9924
- getLogger().screen(_groupId, params2);
9925
+ screen: function(_groupId, params2, onLog) {
9926
+ getLogger().screen(_groupId, params2, onLog);
9925
9927
  },
9926
9928
  event: function(_params) {
9927
9929
  getLogger().event(groupId, _object_spread({}, params, _params));
@@ -10183,10 +10185,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10183
10185
  var logger = useLogger();
10184
10186
  return (0, import_react42.useMemo)(function() {
10185
10187
  return {
10186
- log: function(groupId, params) {
10188
+ log: function(groupId, params, onLog) {
10187
10189
  var canConsume = session.consume();
10188
10190
  if (canConsume) {
10189
- logger.screen(groupId, params);
10191
+ logger.screen(groupId, params, onLog);
10190
10192
  }
10191
10193
  }
10192
10194
  };
@@ -10299,17 +10301,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10299
10301
  }
10300
10302
  }();
10301
10303
  LoggingScreen.onMount = function LoggingScreenOnMount(param) {
10302
- var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log;
10304
+ var children = param.children, groupId = param.groupId, params = param.params, _param_log = param.log, log = _param_log === void 0 ? true : _param_log, onLog = param.onLog;
10303
10305
  var logger = useScreenLogger();
10304
10306
  (0, import_react41.useEffect)(function() {
10305
10307
  if (log) {
10306
- logger.log(groupId, params);
10308
+ logger.log(groupId, params, onLog);
10307
10309
  }
10308
10310
  }, [
10309
10311
  groupId,
10310
10312
  params,
10311
10313
  log,
10312
- logger
10314
+ logger,
10315
+ onLog
10313
10316
  ]);
10314
10317
  return (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {
10315
10318
  children
@@ -45656,6 +45659,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45656
45659
  var isRNApp = getAppsInTossGlobals().webViewType == null;
45657
45660
  return (0, import_jsx_runtime229.jsx)(NavigationBarContextProvider, {
45658
45661
  children: isRNApp ? (0, import_jsx_runtime229.jsx)(Analytics.Screen, {
45662
+ onLog: function(params) {
45663
+ return sendLog({
45664
+ log_type: params.log_type,
45665
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
45666
+ params: _object_spread_props(_object_spread({}, params.params), {
45667
+ schema_id: 5175906,
45668
+ app_name: Granite.appName,
45669
+ log_name: params.log_name
45670
+ })
45671
+ }, {
45672
+ pipelines: [
45673
+ "core"
45674
+ ]
45675
+ });
45676
+ },
45659
45677
  children: (0, import_jsx_runtime229.jsx)(RNAppContainer, {
45660
45678
  children
45661
45679
  })
@@ -47245,7 +47263,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47245
47263
  init_dist5();
47246
47264
  init_src3();
47247
47265
  init_esm7();
47248
- init_dist5();
47249
47266
  init_src3();
47250
47267
  import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
47251
47268
  init_dist2();
@@ -48014,18 +48031,37 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48014
48031
  };
48015
48032
  trackScreen = function(url, title) {
48016
48033
  var _getGroupId = getGroupId2(url), groupId = _getGroupId.groupId, search = _getGroupId.search;
48017
- var log = {
48018
- log_type: "screen",
48019
- log_name: "".concat(groupId, "::screen"),
48020
- params: {
48021
- search,
48022
- referrer: getReferrer22(),
48023
- document_title: title,
48024
- deployment_id: env.getDeploymentId(),
48025
- deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
48026
- }
48034
+ var logType = "screen";
48035
+ var logName = "".concat(groupId, "::screen");
48036
+ var params = {
48037
+ search,
48038
+ referrer: getReferrer22(),
48039
+ document_title: title,
48040
+ app_name: Granite.appName,
48041
+ deployment_id: env.getDeploymentId(),
48042
+ deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
48027
48043
  };
48028
- return eventLog(log);
48044
+ sendLog({
48045
+ log_type: logType,
48046
+ log_name: logName,
48047
+ params
48048
+ }, {
48049
+ pipelines: [
48050
+ "partner"
48051
+ ]
48052
+ });
48053
+ sendLog({
48054
+ log_type: logType,
48055
+ log_name: "appsintoss_app_visit__appssintoss_systemlog",
48056
+ params: _object_spread_props(_object_spread({}, params), {
48057
+ schema_id: 5175906,
48058
+ log_name: logName
48059
+ })
48060
+ }, {
48061
+ pipelines: [
48062
+ "core"
48063
+ ]
48064
+ });
48029
48065
  };
48030
48066
  operationalEnvironment = getOperationalEnvironment2();
48031
48067
  TYPES = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -86,13 +86,13 @@
86
86
  "zod": "3.24.4"
87
87
  },
88
88
  "dependencies": {
89
- "@apps-in-toss/bridge-core": "2.5.0",
90
- "@apps-in-toss/cli": "2.5.0",
91
- "@apps-in-toss/framework": "2.5.0",
92
- "@apps-in-toss/plugins": "2.5.0",
93
- "@apps-in-toss/web-analytics": "2.5.0",
94
- "@apps-in-toss/web-bridge": "2.5.0",
95
- "@apps-in-toss/web-config": "2.5.0",
89
+ "@apps-in-toss/bridge-core": "2.5.1",
90
+ "@apps-in-toss/cli": "2.5.1",
91
+ "@apps-in-toss/framework": "2.5.1",
92
+ "@apps-in-toss/plugins": "2.5.1",
93
+ "@apps-in-toss/web-analytics": "2.5.1",
94
+ "@apps-in-toss/web-bridge": "2.5.1",
95
+ "@apps-in-toss/web-config": "2.5.1",
96
96
  "@babel/core": "7.23.9",
97
97
  "@granite-js/cli": "1.0.20",
98
98
  "@granite-js/mpack": "1.0.20",