@apps-in-toss/web-framework 1.12.0 → 1.13.0

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.
@@ -45628,16 +45628,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45628
45628
  }
45629
45629
  });
45630
45630
  }
45631
- function PermissionsMenu() {
45631
+ function SettingsMenu() {
45632
45632
  var globals = getAppsInTossGlobals();
45633
45633
  if (getOperationalEnvironment() === "sandbox") {
45634
45634
  return null;
45635
45635
  }
45636
45636
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Menu, {
45637
- title: "\uAD8C\uD55C \uC124\uC815",
45637
+ title: "\uC124\uC815",
45638
45638
  iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
45639
45639
  onPress: function() {
45640
- return openURL("servicetoss://apps-in-toss-menu/permissions?appName=".concat(Granite.appName, "&displayAppName=").concat(globals.brandDisplayName));
45640
+ return openURL("servicetoss://apps-in-toss-menu/settings?appName=".concat(Granite.appName, "&displayAppName=").concat(globals.brandDisplayName));
45641
45641
  }
45642
45642
  });
45643
45643
  }
@@ -45658,7 +45658,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45658
45658
  var isHomeShortcutSupported = isMinVersionSupported(MIN_VERSION.HOME_SHORTCUT_MENU);
45659
45659
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45660
45660
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45661
- var _useState41 = _sliced_to_array((0, import_react224.useState)(false), 2), isPermissionsMenuSupported = _useState41[0], setIsPermissionsMenuSupported = _useState41[1];
45661
+ var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION.SETTINGS_MENU);
45662
45662
  (0, import_react224.useEffect)(function() {
45663
45663
  if (!isBottomSheetSupported) {
45664
45664
  return;
@@ -45672,16 +45672,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45672
45672
  return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45673
45673
  }
45674
45674
  });
45675
- if (isMinVersionSupported(MIN_VERSION.PERMISSIONS_MENU)) {
45676
- INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
45677
- onSuccess: function(permissions) {
45678
- return setIsPermissionsMenuSupported(permissions.length > 0);
45679
- },
45680
- onError: function(error) {
45681
- return console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45682
- }
45683
- });
45684
- }
45685
45675
  }, [
45686
45676
  isBottomSheetSupported
45687
45677
  ]);
@@ -45750,7 +45740,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45750
45740
  }),
45751
45741
  isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(HomeShortcutMenu, {}),
45752
45742
  isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppShareListMenu, {}),
45753
- isPermissionsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(PermissionsMenu, {})
45743
+ isSettingsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SettingsMenu, {})
45754
45744
  ]
45755
45745
  })
45756
45746
  })
@@ -48150,7 +48140,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48150
48140
  android: "5.246.0",
48151
48141
  ios: "5.246.0"
48152
48142
  },
48153
- PERMISSIONS_MENU: {
48143
+ SETTINGS_MENU: {
48154
48144
  android: "5.238.0",
48155
48145
  ios: "5.237.0"
48156
48146
  }
@@ -45637,16 +45637,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45637
45637
  }
45638
45638
  });
45639
45639
  }
45640
- function PermissionsMenu() {
45640
+ function SettingsMenu() {
45641
45641
  var globals = getAppsInTossGlobals();
45642
45642
  if (getOperationalEnvironment() === "sandbox") {
45643
45643
  return null;
45644
45644
  }
45645
45645
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Menu, {
45646
- title: "\uAD8C\uD55C \uC124\uC815",
45646
+ title: "\uC124\uC815",
45647
45647
  iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
45648
45648
  onPress: function() {
45649
- return openURL("servicetoss://apps-in-toss-menu/permissions?appName=".concat(Granite.appName, "&displayAppName=").concat(globals.brandDisplayName));
45649
+ return openURL("servicetoss://apps-in-toss-menu/settings?appName=".concat(Granite.appName, "&displayAppName=").concat(globals.brandDisplayName));
45650
45650
  }
45651
45651
  });
45652
45652
  }
@@ -45667,7 +45667,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45667
45667
  var isHomeShortcutSupported = isMinVersionSupported(MIN_VERSION.HOME_SHORTCUT_MENU);
45668
45668
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45669
45669
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45670
- var _useState41 = _sliced_to_array((0, import_react225.useState)(false), 2), isPermissionsMenuSupported = _useState41[0], setIsPermissionsMenuSupported = _useState41[1];
45670
+ var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION.SETTINGS_MENU);
45671
45671
  (0, import_react225.useEffect)(function() {
45672
45672
  if (!isBottomSheetSupported) {
45673
45673
  return;
@@ -45681,16 +45681,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45681
45681
  return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45682
45682
  }
45683
45683
  });
45684
- if (isMinVersionSupported(MIN_VERSION.PERMISSIONS_MENU)) {
45685
- INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
45686
- onSuccess: function(permissions) {
45687
- return setIsPermissionsMenuSupported(permissions.length > 0);
45688
- },
45689
- onError: function(error) {
45690
- return console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45691
- }
45692
- });
45693
- }
45694
45684
  }, [
45695
45685
  isBottomSheetSupported
45696
45686
  ]);
@@ -45759,7 +45749,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45759
45749
  }),
45760
45750
  isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(HomeShortcutMenu, {}),
45761
45751
  isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppShareListMenu, {}),
45762
- isPermissionsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(PermissionsMenu, {})
45752
+ isSettingsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SettingsMenu, {})
45763
45753
  ]
45764
45754
  })
45765
45755
  })
@@ -48159,7 +48149,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48159
48149
  android: "5.246.0",
48160
48150
  ios: "5.246.0"
48161
48151
  },
48162
- PERMISSIONS_MENU: {
48152
+ SETTINGS_MENU: {
48163
48153
  android: "5.238.0",
48164
48154
  ios: "5.237.0"
48165
48155
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "1.12.0",
4
+ "version": "1.13.0",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -87,12 +87,12 @@
87
87
  "zod": "3.24.4"
88
88
  },
89
89
  "dependencies": {
90
- "@apps-in-toss/bridge-core": "1.12.0",
91
- "@apps-in-toss/cli": "1.12.0",
92
- "@apps-in-toss/framework": "1.12.0",
93
- "@apps-in-toss/plugins": "1.12.0",
94
- "@apps-in-toss/web-analytics": "1.12.0",
95
- "@apps-in-toss/web-bridge": "1.12.0",
90
+ "@apps-in-toss/bridge-core": "1.13.0",
91
+ "@apps-in-toss/cli": "1.13.0",
92
+ "@apps-in-toss/framework": "1.13.0",
93
+ "@apps-in-toss/plugins": "1.13.0",
94
+ "@apps-in-toss/web-analytics": "1.13.0",
95
+ "@apps-in-toss/web-bridge": "1.13.0",
96
96
  "@babel/core": "7.23.9",
97
97
  "@granite-js/cli": "0.1.31",
98
98
  "@granite-js/mpack": "0.1.31",