@apps-in-toss/web-framework 2.6.1 → 2.6.2

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.
@@ -139825,7 +139825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139825
139825
  showFullScreenAd,
139826
139826
  fetchTossAd,
139827
139827
  iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
139828
- requestSubscriptionPurchase: import_native_modules18.IAP.createSubscriptionPurchaseOrder,
139828
+ requestSubscriptionPurchase: import_native_modules18.requestSubscriptionPurchase,
139829
139829
  requestOneTimePurchase: import_native_modules18.requestOneTimePurchase,
139830
139830
  requestNotificationAgreement: import_native_modules18.requestNotificationAgreement
139831
139831
  },
@@ -142015,6 +142015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142015
142015
  requestNotificationAgreement: () => requestNotificationAgreement,
142016
142016
  requestOneTimePurchase: () => requestOneTimePurchase,
142017
142017
  requestReview: () => requestReview,
142018
+ requestSubscriptionPurchase: () => requestSubscriptionPurchase,
142018
142019
  requestTossPayPaysBilling: () => requestTossPayPaysBilling,
142019
142020
  safePostMessage: () => safePostMessage,
142020
142021
  safeSyncPostMessage: () => safeSyncPostMessage,
@@ -142749,6 +142750,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142749
142750
  });
142750
142751
  return unregisterCallbacks;
142751
142752
  }
142753
+ function requestSubscriptionPurchase(params) {
142754
+ var options = params.options,
142755
+ onEvent = params.onEvent,
142756
+ onError = params.onError;
142757
+ var sku = options.sku,
142758
+ offerId = options.offerId;
142759
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
142760
+ sku,
142761
+ offerId: offerId ?? null
142762
+ }, {
142763
+ onPurchased: params2 => {
142764
+ onEvent({
142765
+ type: "purchased",
142766
+ data: params2
142767
+ });
142768
+ },
142769
+ onSuccess: result => {
142770
+ onEvent({
142771
+ type: "success",
142772
+ data: result
142773
+ });
142774
+ },
142775
+ onError: error => {
142776
+ onError(error);
142777
+ }
142778
+ });
142779
+ return unregisterCallbacks;
142780
+ }
142752
142781
  function createOneTimePurchaseOrder(params) {
142753
142782
  var isIAPSupported = isMinVersionSupported({
142754
142783
  android: "5.219.0",
@@ -143460,6 +143489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143460
143489
  requestNotificationAgreement,
143461
143490
  requestOneTimePurchase,
143462
143491
  requestReview,
143492
+ requestSubscriptionPurchase,
143463
143493
  requestTossPayPaysBilling,
143464
143494
  safePostMessage,
143465
143495
  safeSyncPostMessage,
@@ -214038,6 +214068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214038
214068
  exports.iapCreateOneTimePurchaseOrder = iapCreateOneTimePurchaseOrder;
214039
214069
  exports.processProductGrant = processProductGrant;
214040
214070
  exports.requestOneTimePurchase = requestOneTimePurchase;
214071
+ exports.requestSubscriptionPurchase = requestSubscriptionPurchase;
214041
214072
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
214042
214073
  var _esToolkit = _$$_REQUIRE(_dependencyMap[2], "es-toolkit");
214043
214074
  var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
@@ -214081,6 +214112,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214081
214112
  });
214082
214113
  return unregisterCallbacks;
214083
214114
  }
214115
+ function requestSubscriptionPurchase(params) {
214116
+ var options = params.options,
214117
+ onEvent = params.onEvent,
214118
+ onError = params.onError;
214119
+ var sku = options.sku,
214120
+ offerId = options.offerId;
214121
+ var unregisterCallbacks = _appBridge.INTERNAL__appBridgeHandler.invokeAppBridgeMethod('requestSubscriptionPurchase', {
214122
+ sku,
214123
+ offerId: offerId ?? null
214124
+ }, {
214125
+ onPurchased: params => {
214126
+ onEvent({
214127
+ type: 'purchased',
214128
+ data: params
214129
+ });
214130
+ },
214131
+ onSuccess: result => {
214132
+ onEvent({
214133
+ type: 'success',
214134
+ data: result
214135
+ });
214136
+ },
214137
+ onError: error => {
214138
+ onError(error);
214139
+ }
214140
+ });
214141
+ return unregisterCallbacks;
214142
+ }
214084
214143
  function createOneTimePurchaseOrder(params) {
214085
214144
  var isIAPSupported = (0, _isMinVersionSupported.isMinVersionSupported)({
214086
214145
  android: '5.219.0',
@@ -139364,7 +139364,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139364
139364
  showFullScreenAd,
139365
139365
  fetchTossAd,
139366
139366
  iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
139367
- requestSubscriptionPurchase: import_native_modules18.IAP.createSubscriptionPurchaseOrder,
139367
+ requestSubscriptionPurchase: import_native_modules18.requestSubscriptionPurchase,
139368
139368
  requestOneTimePurchase: import_native_modules18.requestOneTimePurchase,
139369
139369
  requestNotificationAgreement: import_native_modules18.requestNotificationAgreement
139370
139370
  },
@@ -141554,6 +141554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141554
141554
  requestNotificationAgreement: () => requestNotificationAgreement,
141555
141555
  requestOneTimePurchase: () => requestOneTimePurchase,
141556
141556
  requestReview: () => requestReview,
141557
+ requestSubscriptionPurchase: () => requestSubscriptionPurchase,
141557
141558
  requestTossPayPaysBilling: () => requestTossPayPaysBilling,
141558
141559
  safePostMessage: () => safePostMessage,
141559
141560
  safeSyncPostMessage: () => safeSyncPostMessage,
@@ -142288,6 +142289,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142288
142289
  });
142289
142290
  return unregisterCallbacks;
142290
142291
  }
142292
+ function requestSubscriptionPurchase(params) {
142293
+ var options = params.options,
142294
+ onEvent = params.onEvent,
142295
+ onError = params.onError;
142296
+ var sku = options.sku,
142297
+ offerId = options.offerId;
142298
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
142299
+ sku,
142300
+ offerId: offerId ?? null
142301
+ }, {
142302
+ onPurchased: params2 => {
142303
+ onEvent({
142304
+ type: "purchased",
142305
+ data: params2
142306
+ });
142307
+ },
142308
+ onSuccess: result => {
142309
+ onEvent({
142310
+ type: "success",
142311
+ data: result
142312
+ });
142313
+ },
142314
+ onError: error => {
142315
+ onError(error);
142316
+ }
142317
+ });
142318
+ return unregisterCallbacks;
142319
+ }
142291
142320
  function createOneTimePurchaseOrder(params) {
142292
142321
  var isIAPSupported = isMinVersionSupported({
142293
142322
  android: "5.219.0",
@@ -142999,6 +143028,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142999
143028
  requestNotificationAgreement,
143000
143029
  requestOneTimePurchase,
143001
143030
  requestReview,
143031
+ requestSubscriptionPurchase,
143002
143032
  requestTossPayPaysBilling,
143003
143033
  safePostMessage,
143004
143034
  safeSyncPostMessage,
@@ -213466,6 +213496,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213466
213496
  exports.iapCreateOneTimePurchaseOrder = iapCreateOneTimePurchaseOrder;
213467
213497
  exports.processProductGrant = processProductGrant;
213468
213498
  exports.requestOneTimePurchase = requestOneTimePurchase;
213499
+ exports.requestSubscriptionPurchase = requestSubscriptionPurchase;
213469
213500
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
213470
213501
  var _esToolkit = _$$_REQUIRE(_dependencyMap[2], "es-toolkit");
213471
213502
  var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
@@ -213509,6 +213540,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213509
213540
  });
213510
213541
  return unregisterCallbacks;
213511
213542
  }
213543
+ function requestSubscriptionPurchase(params) {
213544
+ var options = params.options,
213545
+ onEvent = params.onEvent,
213546
+ onError = params.onError;
213547
+ var sku = options.sku,
213548
+ offerId = options.offerId;
213549
+ var unregisterCallbacks = _appBridge.INTERNAL__appBridgeHandler.invokeAppBridgeMethod('requestSubscriptionPurchase', {
213550
+ sku,
213551
+ offerId: offerId ?? null
213552
+ }, {
213553
+ onPurchased: params => {
213554
+ onEvent({
213555
+ type: 'purchased',
213556
+ data: params
213557
+ });
213558
+ },
213559
+ onSuccess: result => {
213560
+ onEvent({
213561
+ type: 'success',
213562
+ data: result
213563
+ });
213564
+ },
213565
+ onError: error => {
213566
+ onError(error);
213567
+ }
213568
+ });
213569
+ return unregisterCallbacks;
213570
+ }
213512
213571
  function createOneTimePurchaseOrder(params) {
213513
213572
  var isIAPSupported = (0, _isMinVersionSupported.isMinVersionSupported)({
213514
213573
  android: '5.219.0',
@@ -11781,6 +11781,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11781
11781
  });
11782
11782
  return unregisterCallbacks;
11783
11783
  }
11784
+ function requestSubscriptionPurchase(params) {
11785
+ var options = params.options, onEvent = params.onEvent, onError = params.onError;
11786
+ var sku = options.sku, offerId = options.offerId;
11787
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
11788
+ sku,
11789
+ offerId: offerId !== null && offerId !== void 0 ? offerId : null
11790
+ }, {
11791
+ onPurchased: function(params2) {
11792
+ onEvent({
11793
+ type: "purchased",
11794
+ data: params2
11795
+ });
11796
+ },
11797
+ onSuccess: function(result) {
11798
+ onEvent({
11799
+ type: "success",
11800
+ data: result
11801
+ });
11802
+ },
11803
+ onError: function(error) {
11804
+ onError(error);
11805
+ }
11806
+ });
11807
+ return unregisterCallbacks;
11808
+ }
11784
11809
  function createOneTimePurchaseOrder(params) {
11785
11810
  var _options_sku;
11786
11811
  var isIAPSupported = isMinVersionSupported({
@@ -47801,7 +47826,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47801
47826
  showFullScreenAd,
47802
47827
  fetchTossAd,
47803
47828
  iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
47804
- requestSubscriptionPurchase: IAP.createSubscriptionPurchaseOrder,
47829
+ requestSubscriptionPurchase,
47805
47830
  requestOneTimePurchase,
47806
47831
  requestNotificationAgreement
47807
47832
  }),
@@ -10865,6 +10865,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10865
10865
  });
10866
10866
  return unregisterCallbacks;
10867
10867
  }
10868
+ function requestSubscriptionPurchase(params) {
10869
+ var options = params.options, onEvent = params.onEvent, onError = params.onError;
10870
+ var sku = options.sku, offerId = options.offerId;
10871
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
10872
+ sku,
10873
+ offerId: offerId !== null && offerId !== void 0 ? offerId : null
10874
+ }, {
10875
+ onPurchased: function(params2) {
10876
+ onEvent({
10877
+ type: "purchased",
10878
+ data: params2
10879
+ });
10880
+ },
10881
+ onSuccess: function(result) {
10882
+ onEvent({
10883
+ type: "success",
10884
+ data: result
10885
+ });
10886
+ },
10887
+ onError: function(error) {
10888
+ onError(error);
10889
+ }
10890
+ });
10891
+ return unregisterCallbacks;
10892
+ }
10868
10893
  function createOneTimePurchaseOrder(params) {
10869
10894
  var _options_sku;
10870
10895
  var isIAPSupported = isMinVersionSupported({
@@ -46818,7 +46843,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46818
46843
  showFullScreenAd,
46819
46844
  fetchTossAd,
46820
46845
  iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
46821
- requestSubscriptionPurchase: IAP.createSubscriptionPurchaseOrder,
46846
+ requestSubscriptionPurchase,
46822
46847
  requestOneTimePurchase,
46823
46848
  requestNotificationAgreement
46824
46849
  }),
@@ -11790,6 +11790,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11790
11790
  });
11791
11791
  return unregisterCallbacks;
11792
11792
  }
11793
+ function requestSubscriptionPurchase(params) {
11794
+ var options = params.options, onEvent = params.onEvent, onError = params.onError;
11795
+ var sku = options.sku, offerId = options.offerId;
11796
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
11797
+ sku,
11798
+ offerId: offerId !== null && offerId !== void 0 ? offerId : null
11799
+ }, {
11800
+ onPurchased: function(params2) {
11801
+ onEvent({
11802
+ type: "purchased",
11803
+ data: params2
11804
+ });
11805
+ },
11806
+ onSuccess: function(result) {
11807
+ onEvent({
11808
+ type: "success",
11809
+ data: result
11810
+ });
11811
+ },
11812
+ onError: function(error) {
11813
+ onError(error);
11814
+ }
11815
+ });
11816
+ return unregisterCallbacks;
11817
+ }
11793
11818
  function createOneTimePurchaseOrder(params) {
11794
11819
  var _options_sku;
11795
11820
  var isIAPSupported = isMinVersionSupported({
@@ -47810,7 +47835,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47810
47835
  showFullScreenAd,
47811
47836
  fetchTossAd,
47812
47837
  iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
47813
- requestSubscriptionPurchase: IAP.createSubscriptionPurchaseOrder,
47838
+ requestSubscriptionPurchase,
47814
47839
  requestOneTimePurchase,
47815
47840
  requestNotificationAgreement
47816
47841
  }),
@@ -10874,6 +10874,31 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
10874
10874
  });
10875
10875
  return unregisterCallbacks;
10876
10876
  }
10877
+ function requestSubscriptionPurchase(params) {
10878
+ var options = params.options, onEvent = params.onEvent, onError = params.onError;
10879
+ var sku = options.sku, offerId = options.offerId;
10880
+ var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("requestSubscriptionPurchase", {
10881
+ sku,
10882
+ offerId: offerId !== null && offerId !== void 0 ? offerId : null
10883
+ }, {
10884
+ onPurchased: function(params2) {
10885
+ onEvent({
10886
+ type: "purchased",
10887
+ data: params2
10888
+ });
10889
+ },
10890
+ onSuccess: function(result) {
10891
+ onEvent({
10892
+ type: "success",
10893
+ data: result
10894
+ });
10895
+ },
10896
+ onError: function(error) {
10897
+ onError(error);
10898
+ }
10899
+ });
10900
+ return unregisterCallbacks;
10901
+ }
10877
10902
  function createOneTimePurchaseOrder(params) {
10878
10903
  var _options_sku;
10879
10904
  var isIAPSupported = isMinVersionSupported({
@@ -46827,7 +46852,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46827
46852
  showFullScreenAd,
46828
46853
  fetchTossAd,
46829
46854
  iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
46830
- requestSubscriptionPurchase: IAP.createSubscriptionPurchaseOrder,
46855
+ requestSubscriptionPurchase,
46831
46856
  requestOneTimePurchase,
46832
46857
  requestNotificationAgreement
46833
46858
  }),
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.6.1",
4
+ "version": "2.6.2",
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.6.1",
90
- "@apps-in-toss/cli": "2.6.1",
91
- "@apps-in-toss/framework": "2.6.1",
92
- "@apps-in-toss/plugins": "2.6.1",
93
- "@apps-in-toss/web-analytics": "2.6.1",
94
- "@apps-in-toss/web-bridge": "2.6.1",
95
- "@apps-in-toss/web-config": "2.6.1",
89
+ "@apps-in-toss/bridge-core": "2.6.2",
90
+ "@apps-in-toss/cli": "2.6.2",
91
+ "@apps-in-toss/framework": "2.6.2",
92
+ "@apps-in-toss/plugins": "2.6.2",
93
+ "@apps-in-toss/web-analytics": "2.6.2",
94
+ "@apps-in-toss/web-bridge": "2.6.2",
95
+ "@apps-in-toss/web-config": "2.6.2",
96
96
  "@babel/core": "7.23.9",
97
97
  "@granite-js/cli": "1.0.20",
98
98
  "@granite-js/mpack": "1.0.20",