@apps-in-toss/web-framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765878631929

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.
@@ -155791,8 +155791,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155791
155791
  processProductGrant: import_native_modules18.processProductGrant,
155792
155792
  getPendingOrders: import_native_modules18.IAP.getPendingOrders,
155793
155793
  getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
155794
- completeProductGrant: import_native_modules18.IAP.completeProductGrant,
155795
- memoryDebugEventLog: webViewMemoryDebugLog
155794
+ completeProductGrant: import_native_modules18.IAP.completeProductGrant
155796
155795
  })
155797
155796
  });
155798
155797
  var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
@@ -155870,49 +155869,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155870
155869
  return false;
155871
155870
  }
155872
155871
  },
155873
- originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"],
155874
- onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
155875
- var _webViewRef$current3;
155876
- webViewProcessDidTerminateEventLog(event.nativeEvent.url);
155877
- (_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
155878
- },
155879
- onRenderProcessGone: function onRenderProcessGone() {
155880
- var _webViewRef$current4;
155881
- webViewProcessDidTerminateEventLog();
155882
- (_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
155883
- }
155872
+ originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
155884
155873
  }));
155885
155874
  }
155886
- function webViewMemoryDebugLog(_x6) {
155887
- return _webViewMemoryDebugLog.apply(this, arguments);
155888
- }
155889
- function _webViewMemoryDebugLog() {
155890
- _webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
155891
- webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
155892
- });
155893
- return _webViewMemoryDebugLog.apply(this, arguments);
155894
- }
155895
- function webViewProcessDidTerminateEventLog(url) {
155896
- webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
155897
- url: url
155898
- });
155899
- }
155900
- function webViewDebugLog(logName, params) {
155901
- var global2 = getAppsInTossGlobals();
155902
- var event = {
155903
- log_name: logName,
155904
- log_type: "debug",
155905
- params: Object.assign({}, params, {
155906
- app_name: import_react_native34.Granite.appName,
155907
- deployment_id: global2.deploymentId
155908
- })
155909
- };
155910
- if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
155911
- import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
155912
- } else {
155913
- console.log("[webViewDebugLog]", event);
155914
- }
155915
- }
155916
155875
  function useGlobalScripts() {
155917
155876
  var global2 = getAppsInTossGlobals();
155918
155877
  var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
@@ -157546,19 +157505,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157546
157505
  function _getTossAppVersion() {
157547
157506
  return _AppsInTossModule.tossAppVersion;
157548
157507
  }
157549
- function _getTossShareLink(_x7) {
157508
+ var V2_MIN_VERSION = {
157509
+ android: "5.240.0",
157510
+ ios: "5.239.0"
157511
+ };
157512
+ function _getTossShareLink(_x7, _x8) {
157550
157513
  return _getTossShareLink2.apply(this, arguments);
157551
157514
  }
157552
157515
  function _getTossShareLink2() {
157553
- _getTossShareLink2 = _asyncToGenerator(function* (path) {
157554
- var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink({}),
157516
+ _getTossShareLink2 = _asyncToGenerator(function* (path, ogImageUrl) {
157517
+ if (!_isMinVersionSupported(V2_MIN_VERSION)) {
157518
+ return yield getTossShareLinkV1(path);
157519
+ }
157520
+ var params = {
157521
+ params: {
157522
+ url: path,
157523
+ ogImageUrl: ogImageUrl
157524
+ }
157525
+ };
157526
+ var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink(params),
157555
157527
  shareLink = _yield$_AppsInTossMod.shareLink;
157528
+ return shareLink;
157529
+ });
157530
+ return _getTossShareLink2.apply(this, arguments);
157531
+ }
157532
+ function getTossShareLinkV1(_x9) {
157533
+ return _getTossShareLinkV.apply(this, arguments);
157534
+ }
157535
+ function _getTossShareLinkV() {
157536
+ _getTossShareLinkV = _asyncToGenerator(function* (path) {
157537
+ var _yield$_AppsInTossMod2 = yield _AppsInTossModule.getTossShareLink({}),
157538
+ shareLink = _yield$_AppsInTossMod2.shareLink;
157556
157539
  var shareUrl = new URL(shareLink);
157557
157540
  shareUrl.searchParams.set("deep_link_value", path);
157558
157541
  shareUrl.searchParams.set("af_dp", path);
157559
157542
  return shareUrl.toString();
157560
157543
  });
157561
- return _getTossShareLink2.apply(this, arguments);
157544
+ return _getTossShareLinkV.apply(this, arguments);
157562
157545
  }
157563
157546
  var import_es_toolkit3 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
157564
157547
  function _iapCreateOneTimePurchaseOrder(params) {
@@ -157651,7 +157634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157651
157634
  isProductGranted: isProductGranted
157652
157635
  });
157653
157636
  });
157654
- function onPurchased(_x8) {
157637
+ function onPurchased(_x10) {
157655
157638
  return _onPurchased.apply(this, arguments);
157656
157639
  }
157657
157640
  return onPurchased;
@@ -157700,7 +157683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157700
157683
  });
157701
157684
  return _getPendingOrders.apply(this, arguments);
157702
157685
  }
157703
- function getCompletedOrRefundedOrders(_x9) {
157686
+ function getCompletedOrRefundedOrders(_x11) {
157704
157687
  return _getCompletedOrRefundedOrders.apply(this, arguments);
157705
157688
  }
157706
157689
  function _getCompletedOrRefundedOrders() {
@@ -157718,7 +157701,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157718
157701
  });
157719
157702
  return _getCompletedOrRefundedOrders.apply(this, arguments);
157720
157703
  }
157721
- function completeProductGrant(_x10) {
157704
+ function completeProductGrant(_x12) {
157722
157705
  return _completeProductGrant.apply(this, arguments);
157723
157706
  }
157724
157707
  function _completeProductGrant() {
@@ -157741,7 +157724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157741
157724
  getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
157742
157725
  completeProductGrant: completeProductGrant
157743
157726
  };
157744
- function _saveBase64Data(_x11) {
157727
+ function _saveBase64Data(_x13) {
157745
157728
  return _saveBase64Data2.apply(this, arguments);
157746
157729
  }
157747
157730
  function _saveBase64Data2() {
@@ -157758,7 +157741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157758
157741
  });
157759
157742
  return _saveBase64Data2.apply(this, arguments);
157760
157743
  }
157761
- function _setDeviceOrientation(_x12) {
157744
+ function _setDeviceOrientation(_x14) {
157762
157745
  return _setDeviceOrientation2.apply(this, arguments);
157763
157746
  }
157764
157747
  function _setDeviceOrientation2() {
@@ -157849,7 +157832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157849
157832
  });
157850
157833
  return _getGameCenterGameProfile2.apply(this, arguments);
157851
157834
  }
157852
- function _submitGameCenterLeaderBoardScore(_x13) {
157835
+ function _submitGameCenterLeaderBoardScore(_x15) {
157853
157836
  return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
157854
157837
  }
157855
157838
  function _submitGameCenterLeaderBoardScore2() {
@@ -157889,7 +157872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157889
157872
  function isGrantPromotionRewardForGameError(error) {
157890
157873
  return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
157891
157874
  }
157892
- function _grantPromotionRewardForGame(_x14) {
157875
+ function _grantPromotionRewardForGame(_x16) {
157893
157876
  return _grantPromotionRewardForGame2.apply(this, arguments);
157894
157877
  }
157895
157878
  function _grantPromotionRewardForGame2() {
@@ -157961,15 +157944,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157961
157944
  });
157962
157945
  return unregisterCallbacks;
157963
157946
  }
157964
- function _appsInTossSignTossCert(_x15) {
157947
+ var MIN_VERSION_BY_USER_TYPE = {
157948
+ USER_PERSONAL: {
157949
+ android: "5.233.0",
157950
+ ios: "5.233.0"
157951
+ },
157952
+ USER_NONE: {
157953
+ android: "5.236.0",
157954
+ ios: "5.236.0"
157955
+ }
157956
+ };
157957
+ function _appsInTossSignTossCert(_x17) {
157965
157958
  return _appsInTossSignTossCert2.apply(this, arguments);
157966
157959
  }
157967
157960
  function _appsInTossSignTossCert2() {
157968
157961
  _appsInTossSignTossCert2 = _asyncToGenerator(function* (params) {
157969
- var isSupported = _isMinVersionSupported({
157970
- android: "5.233.0",
157971
- ios: "5.233.0"
157972
- });
157962
+ var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
157963
+ var isSupported = _isMinVersionSupported(minVersion);
157973
157964
  if (!isSupported) {
157974
157965
  console.warn("appsInTossSignTossCert is not supported in this app version");
157975
157966
  return;
@@ -158029,7 +158020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
158029
158020
  function _generateHapticFeedback(options) {
158030
158021
  return _BedrockModule.generateHapticFeedback(options);
158031
158022
  }
158032
- function _share(_x16) {
158023
+ function _share(_x18) {
158033
158024
  return _share2.apply(this, arguments);
158034
158025
  }
158035
158026
  function _share2() {
@@ -158041,7 +158032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
158041
158032
  function _setSecureScreen(options) {
158042
158033
  return _BedrockModule.setSecureScreen(options);
158043
158034
  }
158044
- function _setScreenAwakeMode(_x17) {
158035
+ function _setScreenAwakeMode(_x19) {
158045
158036
  return _setScreenAwakeMode2.apply(this, arguments);
158046
158037
  }
158047
158038
  function _setScreenAwakeMode2() {
@@ -158053,7 +158044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
158053
158044
  function _getNetworkStatus() {
158054
158045
  return _BedrockModule.getNetworkStatus();
158055
158046
  }
158056
- function _setIosSwipeGestureEnabled(_x18) {
158047
+ function _setIosSwipeGestureEnabled(_x20) {
158057
158048
  return _setIosSwipeGestureEnabled2.apply(this, arguments);
158058
158049
  }
158059
158050
  function _setIosSwipeGestureEnabled2() {
@@ -232540,21 +232531,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
232540
232531
  exports.getTossShareLink = getTossShareLink;
232541
232532
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
232542
232533
  var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
232543
- function getTossShareLink(_x) {
232534
+ var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
232535
+ var V2_MIN_VERSION = {
232536
+ android: '5.240.0',
232537
+ ios: '5.239.0'
232538
+ };
232539
+ function getTossShareLink(_x, _x2) {
232544
232540
  return _getTossShareLink.apply(this, arguments);
232545
232541
  }
232546
232542
  function _getTossShareLink() {
232547
- _getTossShareLink = (0, _asyncToGenerator2.default)(function* (path) {
232548
- var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
232543
+ _getTossShareLink = (0, _asyncToGenerator2.default)(function* (path, ogImageUrl) {
232544
+ if (!(0, _isMinVersionSupported.isMinVersionSupported)(V2_MIN_VERSION)) {
232545
+ return yield getTossShareLinkV1(path);
232546
+ }
232547
+ var params = {
232548
+ params: {
232549
+ url: path,
232550
+ ogImageUrl: ogImageUrl
232551
+ }
232552
+ };
232553
+ var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink(params),
232549
232554
  shareLink = _yield$AppsInTossModu.shareLink;
232555
+ return shareLink;
232556
+ });
232557
+ return _getTossShareLink.apply(this, arguments);
232558
+ }
232559
+ function getTossShareLinkV1(_x3) {
232560
+ return _getTossShareLinkV.apply(this, arguments);
232561
+ }
232562
+ function _getTossShareLinkV() {
232563
+ _getTossShareLinkV = (0, _asyncToGenerator2.default)(function* (path) {
232564
+ var _yield$AppsInTossModu2 = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
232565
+ shareLink = _yield$AppsInTossModu2.shareLink;
232550
232566
  var shareUrl = new URL(shareLink);
232551
232567
  shareUrl.searchParams.set('deep_link_value', path);
232552
232568
  shareUrl.searchParams.set('af_dp', path);
232553
232569
  return shareUrl.toString();
232554
232570
  });
232555
- return _getTossShareLink.apply(this, arguments);
232571
+ return _getTossShareLinkV.apply(this, arguments);
232556
232572
  }
232557
- },2594,[1,16,2580],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
232573
+ },2594,[1,16,2580,2592],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
232558
232574
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
232559
232575
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
232560
232576
  Object.defineProperty(exports, "__esModule", {
@@ -232637,15 +232653,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
232637
232653
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
232638
232654
  var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
232639
232655
  var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
232656
+ var MIN_VERSION_BY_USER_TYPE = {
232657
+ USER_PERSONAL: {
232658
+ android: '5.233.0',
232659
+ ios: '5.233.0'
232660
+ },
232661
+ USER_NONE: {
232662
+ android: '5.236.0',
232663
+ ios: '5.236.0'
232664
+ }
232665
+ };
232640
232666
  function appsInTossSignTossCert(_x) {
232641
232667
  return _appsInTossSignTossCert.apply(this, arguments);
232642
232668
  }
232643
232669
  function _appsInTossSignTossCert() {
232644
232670
  _appsInTossSignTossCert = (0, _asyncToGenerator2.default)(function* (params) {
232645
- var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)({
232646
- android: '5.233.0',
232647
- ios: '5.233.0'
232648
- });
232671
+ var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
232672
+ var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(minVersion);
232649
232673
  if (!isSupported) {
232650
232674
  console.warn('appsInTossSignTossCert is not supported in this app version');
232651
232675
  return;
@@ -155612,8 +155612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155612
155612
  processProductGrant: import_native_modules18.processProductGrant,
155613
155613
  getPendingOrders: import_native_modules18.IAP.getPendingOrders,
155614
155614
  getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
155615
- completeProductGrant: import_native_modules18.IAP.completeProductGrant,
155616
- memoryDebugEventLog: webViewMemoryDebugLog
155615
+ completeProductGrant: import_native_modules18.IAP.completeProductGrant
155617
155616
  })
155618
155617
  });
155619
155618
  var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
@@ -155691,49 +155690,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155691
155690
  return false;
155692
155691
  }
155693
155692
  },
155694
- originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"],
155695
- onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
155696
- var _webViewRef$current3;
155697
- webViewProcessDidTerminateEventLog(event.nativeEvent.url);
155698
- (_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
155699
- },
155700
- onRenderProcessGone: function onRenderProcessGone() {
155701
- var _webViewRef$current4;
155702
- webViewProcessDidTerminateEventLog();
155703
- (_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
155704
- }
155693
+ originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
155705
155694
  }));
155706
155695
  }
155707
- function webViewMemoryDebugLog(_x6) {
155708
- return _webViewMemoryDebugLog.apply(this, arguments);
155709
- }
155710
- function _webViewMemoryDebugLog() {
155711
- _webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
155712
- webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
155713
- });
155714
- return _webViewMemoryDebugLog.apply(this, arguments);
155715
- }
155716
- function webViewProcessDidTerminateEventLog(url) {
155717
- webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
155718
- url: url
155719
- });
155720
- }
155721
- function webViewDebugLog(logName, params) {
155722
- var global2 = getAppsInTossGlobals();
155723
- var event = {
155724
- log_name: logName,
155725
- log_type: "debug",
155726
- params: Object.assign({}, params, {
155727
- app_name: import_react_native34.Granite.appName,
155728
- deployment_id: global2.deploymentId
155729
- })
155730
- };
155731
- if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
155732
- import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
155733
- } else {
155734
- console.log("[webViewDebugLog]", event);
155735
- }
155736
- }
155737
155696
  function useGlobalScripts() {
155738
155697
  var global2 = getAppsInTossGlobals();
155739
155698
  var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
@@ -157367,19 +157326,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157367
157326
  function _getTossAppVersion() {
157368
157327
  return _AppsInTossModule.tossAppVersion;
157369
157328
  }
157370
- function _getTossShareLink(_x7) {
157329
+ var V2_MIN_VERSION = {
157330
+ android: "5.240.0",
157331
+ ios: "5.239.0"
157332
+ };
157333
+ function _getTossShareLink(_x7, _x8) {
157371
157334
  return _getTossShareLink2.apply(this, arguments);
157372
157335
  }
157373
157336
  function _getTossShareLink2() {
157374
- _getTossShareLink2 = _asyncToGenerator(function* (path) {
157375
- var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink({}),
157337
+ _getTossShareLink2 = _asyncToGenerator(function* (path, ogImageUrl) {
157338
+ if (!_isMinVersionSupported(V2_MIN_VERSION)) {
157339
+ return yield getTossShareLinkV1(path);
157340
+ }
157341
+ var params = {
157342
+ params: {
157343
+ url: path,
157344
+ ogImageUrl: ogImageUrl
157345
+ }
157346
+ };
157347
+ var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink(params),
157376
157348
  shareLink = _yield$_AppsInTossMod.shareLink;
157349
+ return shareLink;
157350
+ });
157351
+ return _getTossShareLink2.apply(this, arguments);
157352
+ }
157353
+ function getTossShareLinkV1(_x9) {
157354
+ return _getTossShareLinkV.apply(this, arguments);
157355
+ }
157356
+ function _getTossShareLinkV() {
157357
+ _getTossShareLinkV = _asyncToGenerator(function* (path) {
157358
+ var _yield$_AppsInTossMod2 = yield _AppsInTossModule.getTossShareLink({}),
157359
+ shareLink = _yield$_AppsInTossMod2.shareLink;
157377
157360
  var shareUrl = new URL(shareLink);
157378
157361
  shareUrl.searchParams.set("deep_link_value", path);
157379
157362
  shareUrl.searchParams.set("af_dp", path);
157380
157363
  return shareUrl.toString();
157381
157364
  });
157382
- return _getTossShareLink2.apply(this, arguments);
157365
+ return _getTossShareLinkV.apply(this, arguments);
157383
157366
  }
157384
157367
  var import_es_toolkit3 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
157385
157368
  function _iapCreateOneTimePurchaseOrder(params) {
@@ -157472,7 +157455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157472
157455
  isProductGranted: isProductGranted
157473
157456
  });
157474
157457
  });
157475
- function onPurchased(_x8) {
157458
+ function onPurchased(_x10) {
157476
157459
  return _onPurchased.apply(this, arguments);
157477
157460
  }
157478
157461
  return onPurchased;
@@ -157521,7 +157504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157521
157504
  });
157522
157505
  return _getPendingOrders.apply(this, arguments);
157523
157506
  }
157524
- function getCompletedOrRefundedOrders(_x9) {
157507
+ function getCompletedOrRefundedOrders(_x11) {
157525
157508
  return _getCompletedOrRefundedOrders.apply(this, arguments);
157526
157509
  }
157527
157510
  function _getCompletedOrRefundedOrders() {
@@ -157539,7 +157522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157539
157522
  });
157540
157523
  return _getCompletedOrRefundedOrders.apply(this, arguments);
157541
157524
  }
157542
- function completeProductGrant(_x10) {
157525
+ function completeProductGrant(_x12) {
157543
157526
  return _completeProductGrant.apply(this, arguments);
157544
157527
  }
157545
157528
  function _completeProductGrant() {
@@ -157562,7 +157545,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157562
157545
  getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
157563
157546
  completeProductGrant: completeProductGrant
157564
157547
  };
157565
- function _saveBase64Data(_x11) {
157548
+ function _saveBase64Data(_x13) {
157566
157549
  return _saveBase64Data2.apply(this, arguments);
157567
157550
  }
157568
157551
  function _saveBase64Data2() {
@@ -157579,7 +157562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157579
157562
  });
157580
157563
  return _saveBase64Data2.apply(this, arguments);
157581
157564
  }
157582
- function _setDeviceOrientation(_x12) {
157565
+ function _setDeviceOrientation(_x14) {
157583
157566
  return _setDeviceOrientation2.apply(this, arguments);
157584
157567
  }
157585
157568
  function _setDeviceOrientation2() {
@@ -157670,7 +157653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157670
157653
  });
157671
157654
  return _getGameCenterGameProfile2.apply(this, arguments);
157672
157655
  }
157673
- function _submitGameCenterLeaderBoardScore(_x13) {
157656
+ function _submitGameCenterLeaderBoardScore(_x15) {
157674
157657
  return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
157675
157658
  }
157676
157659
  function _submitGameCenterLeaderBoardScore2() {
@@ -157710,7 +157693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157710
157693
  function isGrantPromotionRewardForGameError(error) {
157711
157694
  return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
157712
157695
  }
157713
- function _grantPromotionRewardForGame(_x14) {
157696
+ function _grantPromotionRewardForGame(_x16) {
157714
157697
  return _grantPromotionRewardForGame2.apply(this, arguments);
157715
157698
  }
157716
157699
  function _grantPromotionRewardForGame2() {
@@ -157782,15 +157765,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157782
157765
  });
157783
157766
  return unregisterCallbacks;
157784
157767
  }
157785
- function _appsInTossSignTossCert(_x15) {
157768
+ var MIN_VERSION_BY_USER_TYPE = {
157769
+ USER_PERSONAL: {
157770
+ android: "5.233.0",
157771
+ ios: "5.233.0"
157772
+ },
157773
+ USER_NONE: {
157774
+ android: "5.236.0",
157775
+ ios: "5.236.0"
157776
+ }
157777
+ };
157778
+ function _appsInTossSignTossCert(_x17) {
157786
157779
  return _appsInTossSignTossCert2.apply(this, arguments);
157787
157780
  }
157788
157781
  function _appsInTossSignTossCert2() {
157789
157782
  _appsInTossSignTossCert2 = _asyncToGenerator(function* (params) {
157790
- var isSupported = _isMinVersionSupported({
157791
- android: "5.233.0",
157792
- ios: "5.233.0"
157793
- });
157783
+ var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
157784
+ var isSupported = _isMinVersionSupported(minVersion);
157794
157785
  if (!isSupported) {
157795
157786
  console.warn("appsInTossSignTossCert is not supported in this app version");
157796
157787
  return;
@@ -157850,7 +157841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157850
157841
  function _generateHapticFeedback(options) {
157851
157842
  return _BedrockModule.generateHapticFeedback(options);
157852
157843
  }
157853
- function _share(_x16) {
157844
+ function _share(_x18) {
157854
157845
  return _share2.apply(this, arguments);
157855
157846
  }
157856
157847
  function _share2() {
@@ -157862,7 +157853,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157862
157853
  function _setSecureScreen(options) {
157863
157854
  return _BedrockModule.setSecureScreen(options);
157864
157855
  }
157865
- function _setScreenAwakeMode(_x17) {
157856
+ function _setScreenAwakeMode(_x19) {
157866
157857
  return _setScreenAwakeMode2.apply(this, arguments);
157867
157858
  }
157868
157859
  function _setScreenAwakeMode2() {
@@ -157874,7 +157865,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
157874
157865
  function _getNetworkStatus() {
157875
157866
  return _BedrockModule.getNetworkStatus();
157876
157867
  }
157877
- function _setIosSwipeGestureEnabled(_x18) {
157868
+ function _setIosSwipeGestureEnabled(_x20) {
157878
157869
  return _setIosSwipeGestureEnabled2.apply(this, arguments);
157879
157870
  }
157880
157871
  function _setIosSwipeGestureEnabled2() {
@@ -232380,21 +232371,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
232380
232371
  exports.getTossShareLink = getTossShareLink;
232381
232372
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
232382
232373
  var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
232383
- function getTossShareLink(_x) {
232374
+ var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
232375
+ var V2_MIN_VERSION = {
232376
+ android: '5.240.0',
232377
+ ios: '5.239.0'
232378
+ };
232379
+ function getTossShareLink(_x, _x2) {
232384
232380
  return _getTossShareLink.apply(this, arguments);
232385
232381
  }
232386
232382
  function _getTossShareLink() {
232387
- _getTossShareLink = (0, _asyncToGenerator2.default)(function* (path) {
232388
- var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
232383
+ _getTossShareLink = (0, _asyncToGenerator2.default)(function* (path, ogImageUrl) {
232384
+ if (!(0, _isMinVersionSupported.isMinVersionSupported)(V2_MIN_VERSION)) {
232385
+ return yield getTossShareLinkV1(path);
232386
+ }
232387
+ var params = {
232388
+ params: {
232389
+ url: path,
232390
+ ogImageUrl: ogImageUrl
232391
+ }
232392
+ };
232393
+ var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink(params),
232389
232394
  shareLink = _yield$AppsInTossModu.shareLink;
232395
+ return shareLink;
232396
+ });
232397
+ return _getTossShareLink.apply(this, arguments);
232398
+ }
232399
+ function getTossShareLinkV1(_x3) {
232400
+ return _getTossShareLinkV.apply(this, arguments);
232401
+ }
232402
+ function _getTossShareLinkV() {
232403
+ _getTossShareLinkV = (0, _asyncToGenerator2.default)(function* (path) {
232404
+ var _yield$AppsInTossModu2 = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
232405
+ shareLink = _yield$AppsInTossModu2.shareLink;
232390
232406
  var shareUrl = new URL(shareLink);
232391
232407
  shareUrl.searchParams.set('deep_link_value', path);
232392
232408
  shareUrl.searchParams.set('af_dp', path);
232393
232409
  return shareUrl.toString();
232394
232410
  });
232395
- return _getTossShareLink.apply(this, arguments);
232411
+ return _getTossShareLinkV.apply(this, arguments);
232396
232412
  }
232397
- },2593,[1,16,2579],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
232413
+ },2593,[1,16,2579,2591],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
232398
232414
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
232399
232415
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
232400
232416
  Object.defineProperty(exports, "__esModule", {
@@ -232477,15 +232493,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
232477
232493
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
232478
232494
  var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
232479
232495
  var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
232496
+ var MIN_VERSION_BY_USER_TYPE = {
232497
+ USER_PERSONAL: {
232498
+ android: '5.233.0',
232499
+ ios: '5.233.0'
232500
+ },
232501
+ USER_NONE: {
232502
+ android: '5.236.0',
232503
+ ios: '5.236.0'
232504
+ }
232505
+ };
232480
232506
  function appsInTossSignTossCert(_x) {
232481
232507
  return _appsInTossSignTossCert.apply(this, arguments);
232482
232508
  }
232483
232509
  function _appsInTossSignTossCert() {
232484
232510
  _appsInTossSignTossCert = (0, _asyncToGenerator2.default)(function* (params) {
232485
- var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)({
232486
- android: '5.233.0',
232487
- ios: '5.233.0'
232488
- });
232511
+ var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
232512
+ var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(minVersion);
232489
232513
  if (!isSupported) {
232490
232514
  console.warn('appsInTossSignTossCert is not supported in this app version');
232491
232515
  return;
@@ -43439,11 +43439,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43439
43439
  });
43440
43440
 
43441
43441
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts
43442
- function getTossShareLink(path) {
43442
+ function getTossShareLink(path, ogImageUrl) {
43443
43443
  return _getTossShareLink.apply(this, arguments);
43444
43444
  }
43445
43445
  function _getTossShareLink() {
43446
- _getTossShareLink = _async_to_generator(function(path) {
43446
+ _getTossShareLink = _async_to_generator(function(path, ogImageUrl) {
43447
+ var params, shareLink;
43448
+ return __generator(this, function(_state) {
43449
+ switch (_state.label) {
43450
+ case 0:
43451
+ if (!!isMinVersionSupported2(V2_MIN_VERSION)) return [
43452
+ 3,
43453
+ 2
43454
+ ];
43455
+ return [
43456
+ 4,
43457
+ getTossShareLinkV1(path)
43458
+ ];
43459
+ case 1:
43460
+ return [
43461
+ 2,
43462
+ _state.sent()
43463
+ ];
43464
+ case 2:
43465
+ params = {
43466
+ params: {
43467
+ url: path,
43468
+ ogImageUrl
43469
+ }
43470
+ };
43471
+ return [
43472
+ 4,
43473
+ AppsInTossModule2.getTossShareLink(params)
43474
+ ];
43475
+ case 3:
43476
+ shareLink = _state.sent().shareLink;
43477
+ return [
43478
+ 2,
43479
+ shareLink
43480
+ ];
43481
+ }
43482
+ });
43483
+ });
43484
+ return _getTossShareLink.apply(this, arguments);
43485
+ }
43486
+ function getTossShareLinkV1(path) {
43487
+ return _getTossShareLinkV1.apply(this, arguments);
43488
+ }
43489
+ function _getTossShareLinkV1() {
43490
+ _getTossShareLinkV1 = _async_to_generator(function(path) {
43447
43491
  var shareLink, shareUrl;
43448
43492
  return __generator(this, function(_state) {
43449
43493
  switch (_state.label) {
@@ -43464,14 +43508,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43464
43508
  }
43465
43509
  });
43466
43510
  });
43467
- return _getTossShareLink.apply(this, arguments);
43511
+ return _getTossShareLinkV1.apply(this, arguments);
43468
43512
  }
43513
+ var V2_MIN_VERSION;
43469
43514
  var init_getTossShareLink = __esm({
43470
43515
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts"() {
43471
43516
  "use strict";
43472
43517
  init_async_to_generator();
43473
43518
  init_ts_generator();
43474
43519
  init_AppsInTossModule();
43520
+ init_isMinVersionSupported();
43521
+ V2_MIN_VERSION = {
43522
+ android: "5.240.0",
43523
+ ios: "5.239.0"
43524
+ };
43475
43525
  }
43476
43526
  });
43477
43527
 
@@ -43586,14 +43636,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43586
43636
  }
43587
43637
  function _appsInTossSignTossCert() {
43588
43638
  _appsInTossSignTossCert = _async_to_generator(function(params) {
43589
- var isSupported;
43639
+ var minVersion, isSupported;
43590
43640
  return __generator(this, function(_state) {
43591
43641
  switch (_state.label) {
43592
43642
  case 0:
43593
- isSupported = isMinVersionSupported2({
43594
- android: "5.233.0",
43595
- ios: "5.233.0"
43596
- });
43643
+ minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
43644
+ isSupported = isMinVersionSupported2(minVersion);
43597
43645
  if (!isSupported) {
43598
43646
  console.warn("appsInTossSignTossCert is not supported in this app version");
43599
43647
  return [
@@ -43616,6 +43664,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43616
43664
  });
43617
43665
  return _appsInTossSignTossCert.apply(this, arguments);
43618
43666
  }
43667
+ var MIN_VERSION_BY_USER_TYPE;
43619
43668
  var init_appsInTossSignTossCert = __esm({
43620
43669
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/appsInTossSignTossCert.ts"() {
43621
43670
  "use strict";
@@ -43623,6 +43672,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43623
43672
  init_ts_generator();
43624
43673
  init_AppsInTossModule();
43625
43674
  init_isMinVersionSupported();
43675
+ MIN_VERSION_BY_USER_TYPE = {
43676
+ USER_PERSONAL: {
43677
+ android: "5.233.0",
43678
+ ios: "5.233.0"
43679
+ },
43680
+ USER_NONE: {
43681
+ android: "5.236.0",
43682
+ ios: "5.236.0"
43683
+ }
43684
+ };
43626
43685
  }
43627
43686
  });
43628
43687
 
@@ -46842,9 +46901,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46842
46901
  processProductGrant,
46843
46902
  getPendingOrders: IAP.getPendingOrders,
46844
46903
  getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
46845
- completeProductGrant: IAP.completeProductGrant,
46846
- /* Private */
46847
- memoryDebugEventLog: webViewMemoryDebugLog
46904
+ completeProductGrant: IAP.completeProductGrant
46848
46905
  })
46849
46906
  });
46850
46907
  var headerPropForExternalWebView = (0, import_react225.useMemo)(function() {
@@ -46940,54 +46997,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46940
46997
  "servicetoss://*",
46941
46998
  "supertoss://*",
46942
46999
  "intent://*"
46943
- ],
46944
- onContentProcessDidTerminate: function(event) {
46945
- var _webViewRef_current;
46946
- webViewProcessDidTerminateEventLog(event.nativeEvent.url);
46947
- (_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
46948
- },
46949
- onRenderProcessGone: function() {
46950
- var _webViewRef_current;
46951
- webViewProcessDidTerminateEventLog();
46952
- (_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
46953
- }
47000
+ ]
46954
47001
  }));
46955
47002
  }
46956
- function webViewMemoryDebugLog(params) {
46957
- return _webViewMemoryDebugLog.apply(this, arguments);
46958
- }
46959
- function _webViewMemoryDebugLog() {
46960
- _webViewMemoryDebugLog = _async_to_generator(function(params) {
46961
- return __generator(this, function(_state) {
46962
- webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
46963
- return [
46964
- 2
46965
- ];
46966
- });
46967
- });
46968
- return _webViewMemoryDebugLog.apply(this, arguments);
46969
- }
46970
- function webViewProcessDidTerminateEventLog(url) {
46971
- webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
46972
- url
46973
- });
46974
- }
46975
- function webViewDebugLog(logName, params) {
46976
- var global2 = getAppsInTossGlobals();
46977
- var event = {
46978
- log_name: logName,
46979
- log_type: "debug",
46980
- params: _object_spread_props(_object_spread({}, params), {
46981
- app_name: Granite.appName,
46982
- deployment_id: global2.deploymentId
46983
- })
46984
- };
46985
- if (getOperationalEnvironment() === "toss") {
46986
- INTERNAL__module.tossCoreEventLog(event);
46987
- } else {
46988
- console.log("[webViewDebugLog]", event);
46989
- }
46990
- }
46991
47003
  function useGlobalScripts() {
46992
47004
  var global2 = getAppsInTossGlobals();
46993
47005
  var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
@@ -43448,11 +43448,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43448
43448
  });
43449
43449
 
43450
43450
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts
43451
- function getTossShareLink(path) {
43451
+ function getTossShareLink(path, ogImageUrl) {
43452
43452
  return _getTossShareLink.apply(this, arguments);
43453
43453
  }
43454
43454
  function _getTossShareLink() {
43455
- _getTossShareLink = _async_to_generator(function(path) {
43455
+ _getTossShareLink = _async_to_generator(function(path, ogImageUrl) {
43456
+ var params, shareLink;
43457
+ return __generator(this, function(_state) {
43458
+ switch (_state.label) {
43459
+ case 0:
43460
+ if (!!isMinVersionSupported2(V2_MIN_VERSION)) return [
43461
+ 3,
43462
+ 2
43463
+ ];
43464
+ return [
43465
+ 4,
43466
+ getTossShareLinkV1(path)
43467
+ ];
43468
+ case 1:
43469
+ return [
43470
+ 2,
43471
+ _state.sent()
43472
+ ];
43473
+ case 2:
43474
+ params = {
43475
+ params: {
43476
+ url: path,
43477
+ ogImageUrl
43478
+ }
43479
+ };
43480
+ return [
43481
+ 4,
43482
+ AppsInTossModule2.getTossShareLink(params)
43483
+ ];
43484
+ case 3:
43485
+ shareLink = _state.sent().shareLink;
43486
+ return [
43487
+ 2,
43488
+ shareLink
43489
+ ];
43490
+ }
43491
+ });
43492
+ });
43493
+ return _getTossShareLink.apply(this, arguments);
43494
+ }
43495
+ function getTossShareLinkV1(path) {
43496
+ return _getTossShareLinkV1.apply(this, arguments);
43497
+ }
43498
+ function _getTossShareLinkV1() {
43499
+ _getTossShareLinkV1 = _async_to_generator(function(path) {
43456
43500
  var shareLink, shareUrl;
43457
43501
  return __generator(this, function(_state) {
43458
43502
  switch (_state.label) {
@@ -43473,14 +43517,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43473
43517
  }
43474
43518
  });
43475
43519
  });
43476
- return _getTossShareLink.apply(this, arguments);
43520
+ return _getTossShareLinkV1.apply(this, arguments);
43477
43521
  }
43522
+ var V2_MIN_VERSION;
43478
43523
  var init_getTossShareLink = __esm({
43479
43524
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts"() {
43480
43525
  "use strict";
43481
43526
  init_async_to_generator();
43482
43527
  init_ts_generator();
43483
43528
  init_AppsInTossModule();
43529
+ init_isMinVersionSupported();
43530
+ V2_MIN_VERSION = {
43531
+ android: "5.240.0",
43532
+ ios: "5.239.0"
43533
+ };
43484
43534
  }
43485
43535
  });
43486
43536
 
@@ -43595,14 +43645,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43595
43645
  }
43596
43646
  function _appsInTossSignTossCert() {
43597
43647
  _appsInTossSignTossCert = _async_to_generator(function(params) {
43598
- var isSupported;
43648
+ var minVersion, isSupported;
43599
43649
  return __generator(this, function(_state) {
43600
43650
  switch (_state.label) {
43601
43651
  case 0:
43602
- isSupported = isMinVersionSupported2({
43603
- android: "5.233.0",
43604
- ios: "5.233.0"
43605
- });
43652
+ minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
43653
+ isSupported = isMinVersionSupported2(minVersion);
43606
43654
  if (!isSupported) {
43607
43655
  console.warn("appsInTossSignTossCert is not supported in this app version");
43608
43656
  return [
@@ -43625,6 +43673,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43625
43673
  });
43626
43674
  return _appsInTossSignTossCert.apply(this, arguments);
43627
43675
  }
43676
+ var MIN_VERSION_BY_USER_TYPE;
43628
43677
  var init_appsInTossSignTossCert = __esm({
43629
43678
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/appsInTossSignTossCert.ts"() {
43630
43679
  "use strict";
@@ -43632,6 +43681,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43632
43681
  init_ts_generator();
43633
43682
  init_AppsInTossModule();
43634
43683
  init_isMinVersionSupported();
43684
+ MIN_VERSION_BY_USER_TYPE = {
43685
+ USER_PERSONAL: {
43686
+ android: "5.233.0",
43687
+ ios: "5.233.0"
43688
+ },
43689
+ USER_NONE: {
43690
+ android: "5.236.0",
43691
+ ios: "5.236.0"
43692
+ }
43693
+ };
43635
43694
  }
43636
43695
  });
43637
43696
 
@@ -46851,9 +46910,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46851
46910
  processProductGrant,
46852
46911
  getPendingOrders: IAP.getPendingOrders,
46853
46912
  getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
46854
- completeProductGrant: IAP.completeProductGrant,
46855
- /* Private */
46856
- memoryDebugEventLog: webViewMemoryDebugLog
46913
+ completeProductGrant: IAP.completeProductGrant
46857
46914
  })
46858
46915
  });
46859
46916
  var headerPropForExternalWebView = (0, import_react226.useMemo)(function() {
@@ -46949,54 +47006,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46949
47006
  "servicetoss://*",
46950
47007
  "supertoss://*",
46951
47008
  "intent://*"
46952
- ],
46953
- onContentProcessDidTerminate: function(event) {
46954
- var _webViewRef_current;
46955
- webViewProcessDidTerminateEventLog(event.nativeEvent.url);
46956
- (_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
46957
- },
46958
- onRenderProcessGone: function() {
46959
- var _webViewRef_current;
46960
- webViewProcessDidTerminateEventLog();
46961
- (_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
46962
- }
47009
+ ]
46963
47010
  }));
46964
47011
  }
46965
- function webViewMemoryDebugLog(params) {
46966
- return _webViewMemoryDebugLog.apply(this, arguments);
46967
- }
46968
- function _webViewMemoryDebugLog() {
46969
- _webViewMemoryDebugLog = _async_to_generator(function(params) {
46970
- return __generator(this, function(_state) {
46971
- webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
46972
- return [
46973
- 2
46974
- ];
46975
- });
46976
- });
46977
- return _webViewMemoryDebugLog.apply(this, arguments);
46978
- }
46979
- function webViewProcessDidTerminateEventLog(url) {
46980
- webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
46981
- url
46982
- });
46983
- }
46984
- function webViewDebugLog(logName, params) {
46985
- var global2 = getAppsInTossGlobals();
46986
- var event = {
46987
- log_name: logName,
46988
- log_type: "debug",
46989
- params: _object_spread_props(_object_spread({}, params), {
46990
- app_name: Granite.appName,
46991
- deployment_id: global2.deploymentId
46992
- })
46993
- };
46994
- if (getOperationalEnvironment() === "toss") {
46995
- INTERNAL__module.tossCoreEventLog(event);
46996
- } else {
46997
- console.log("[webViewDebugLog]", event);
46998
- }
46999
- }
47000
47012
  function useGlobalScripts() {
47001
47013
  var global2 = getAppsInTossGlobals();
47002
47014
  var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1765732023607",
4
+ "version": "0.0.0-dev.1765878631929",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -87,12 +87,12 @@
87
87
  "zod": "3.24.4"
88
88
  },
89
89
  "dependencies": {
90
- "@apps-in-toss/bridge-core": "0.0.0-dev.1765732023607",
91
- "@apps-in-toss/cli": "0.0.0-dev.1765732023607",
92
- "@apps-in-toss/framework": "0.0.0-dev.1765732023607",
93
- "@apps-in-toss/plugins": "0.0.0-dev.1765732023607",
94
- "@apps-in-toss/web-analytics": "0.0.0-dev.1765732023607",
95
- "@apps-in-toss/web-bridge": "0.0.0-dev.1765732023607",
90
+ "@apps-in-toss/bridge-core": "0.0.0-dev.1765878631929",
91
+ "@apps-in-toss/cli": "0.0.0-dev.1765878631929",
92
+ "@apps-in-toss/framework": "0.0.0-dev.1765878631929",
93
+ "@apps-in-toss/plugins": "0.0.0-dev.1765878631929",
94
+ "@apps-in-toss/web-analytics": "0.0.0-dev.1765878631929",
95
+ "@apps-in-toss/web-bridge": "0.0.0-dev.1765878631929",
96
96
  "@babel/core": "7.23.9",
97
97
  "@granite-js/cli": "0.1.31",
98
98
  "@granite-js/mpack": "0.1.31",
@@ -104,5 +104,5 @@
104
104
  "publishConfig": {
105
105
  "access": "public"
106
106
  },
107
- "gitHead": "e45c1308eb7d471b4873b1d92b7570e11bc85ae3"
107
+ "gitHead": "f54ad0a6526e1b4752239cb0670dedbab5170c67"
108
108
  }