@apps-in-toss/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.
package/README.md CHANGED
@@ -1,6 +1,25 @@
1
1
  # @apps-in-toss/framework
2
2
 
3
- Hub package for Apps In Toss
3
+ react-native framework for building [apps in toss](https://toss.im/apps-in-toss) services.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ # yarn
9
+ yarn add @apps-in-toss/framework
10
+
11
+ # npm
12
+ npm install @apps-in-toss/framework
13
+
14
+ # pnpm
15
+ pnpm add @apps-in-toss/framework
16
+ ```
17
+
18
+ ## Links
19
+
20
+ - [Document](https://developers-apps-in-toss.toss.im)
21
+ - [Support](https://techchat-apps-in-toss.toss.im)
22
+ - [Examples](https://github.com/toss/apps-in-toss-examples)
4
23
 
5
24
  ## License
6
25
 
package/dist/index.cjs CHANGED
@@ -1083,11 +1083,11 @@ function HomeShortcutMenu() {
1083
1083
  );
1084
1084
  }
1085
1085
 
1086
- // src/core/hooks/useMoreButtonBottomSheet/PermissionsMenu.tsx
1086
+ // src/core/hooks/useMoreButtonBottomSheet/SettingsMenu.tsx
1087
1087
  var import_native_modules11 = require("@apps-in-toss/native-modules");
1088
1088
  var import_react_native20 = require("@granite-js/react-native");
1089
1089
  var import_jsx_runtime8 = require("react/jsx-runtime");
1090
- function PermissionsMenu() {
1090
+ function SettingsMenu() {
1091
1091
  const globals = getAppsInTossGlobals();
1092
1092
  if ((0, import_native_modules11.getOperationalEnvironment)() === "sandbox") {
1093
1093
  return null;
@@ -1095,10 +1095,10 @@ function PermissionsMenu() {
1095
1095
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1096
1096
  Menu,
1097
1097
  {
1098
- title: "\uAD8C\uD55C \uC124\uC815",
1098
+ title: "\uC124\uC815",
1099
1099
  iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
1100
1100
  onPress: () => (0, import_react_native20.openURL)(
1101
- `servicetoss://apps-in-toss-menu/permissions?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`
1101
+ `servicetoss://apps-in-toss-menu/settings?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`
1102
1102
  )
1103
1103
  }
1104
1104
  );
@@ -1128,7 +1128,7 @@ var MIN_VERSION = {
1128
1128
  android: "5.246.0",
1129
1129
  ios: "5.246.0"
1130
1130
  },
1131
- PERMISSIONS_MENU: {
1131
+ SETTINGS_MENU: {
1132
1132
  android: "5.238.0",
1133
1133
  ios: "5.237.0"
1134
1134
  }
@@ -1144,7 +1144,7 @@ function useMoreButtonBottomSheet() {
1144
1144
  const isHomeShortcutSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
1145
1145
  const isBottomSheetSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
1146
1146
  const isShareListMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
1147
- const [isPermissionsMenuSupported, setIsPermissionsMenuSupported] = (0, import_react15.useState)(false);
1147
+ const isSettingsMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
1148
1148
  (0, import_react15.useEffect)(() => {
1149
1149
  if (!isBottomSheetSupported) {
1150
1150
  return;
@@ -1157,16 +1157,6 @@ function useMoreButtonBottomSheet() {
1157
1157
  onError: (error) => console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error)
1158
1158
  }
1159
1159
  );
1160
- if ((0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
1161
- import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(
1162
- "getAllPermission",
1163
- {},
1164
- {
1165
- onSuccess: (permissions) => setIsPermissionsMenuSupported(permissions.length > 0),
1166
- onError: (error) => console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error)
1167
- }
1168
- );
1169
- }
1170
1160
  }, [isBottomSheetSupported]);
1171
1161
  const onClickHandler = async () => {
1172
1162
  logging.open();
@@ -1218,7 +1208,7 @@ function useMoreButtonBottomSheet() {
1218
1208
  )),
1219
1209
  isHomeShortcutSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}),
1220
1210
  isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}),
1221
- isPermissionsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PermissionsMenu, {})
1211
+ isSettingsMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SettingsMenu, {})
1222
1212
  ] })
1223
1213
  }
1224
1214
  ) });
package/dist/index.js CHANGED
@@ -1049,11 +1049,11 @@ function HomeShortcutMenu() {
1049
1049
  );
1050
1050
  }
1051
1051
 
1052
- // src/core/hooks/useMoreButtonBottomSheet/PermissionsMenu.tsx
1052
+ // src/core/hooks/useMoreButtonBottomSheet/SettingsMenu.tsx
1053
1053
  import { getOperationalEnvironment as getOperationalEnvironment3 } from "@apps-in-toss/native-modules";
1054
1054
  import { Granite as Granite6, openURL as openURL4 } from "@granite-js/react-native";
1055
1055
  import { jsx as jsx8 } from "react/jsx-runtime";
1056
- function PermissionsMenu() {
1056
+ function SettingsMenu() {
1057
1057
  const globals = getAppsInTossGlobals();
1058
1058
  if (getOperationalEnvironment3() === "sandbox") {
1059
1059
  return null;
@@ -1061,10 +1061,10 @@ function PermissionsMenu() {
1061
1061
  return /* @__PURE__ */ jsx8(
1062
1062
  Menu,
1063
1063
  {
1064
- title: "\uAD8C\uD55C \uC124\uC815",
1064
+ title: "\uC124\uC815",
1065
1065
  iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
1066
1066
  onPress: () => openURL4(
1067
- `servicetoss://apps-in-toss-menu/permissions?appName=${Granite6.appName}&displayAppName=${globals.brandDisplayName}`
1067
+ `servicetoss://apps-in-toss-menu/settings?appName=${Granite6.appName}&displayAppName=${globals.brandDisplayName}`
1068
1068
  )
1069
1069
  }
1070
1070
  );
@@ -1094,7 +1094,7 @@ var MIN_VERSION = {
1094
1094
  android: "5.246.0",
1095
1095
  ios: "5.246.0"
1096
1096
  },
1097
- PERMISSIONS_MENU: {
1097
+ SETTINGS_MENU: {
1098
1098
  android: "5.238.0",
1099
1099
  ios: "5.237.0"
1100
1100
  }
@@ -1110,7 +1110,7 @@ function useMoreButtonBottomSheet() {
1110
1110
  const isHomeShortcutSupported = isMinVersionSupported2(MIN_VERSION.HOME_SHORTCUT_MENU);
1111
1111
  const isBottomSheetSupported = isMinVersionSupported2(MIN_VERSION.BOTTOM_SHEET);
1112
1112
  const isShareListMenuSupported = isMinVersionSupported2(MIN_VERSION.SHARE_LIST_MENU);
1113
- const [isPermissionsMenuSupported, setIsPermissionsMenuSupported] = useState4(false);
1113
+ const isSettingsMenuSupported = isMinVersionSupported2(MIN_VERSION.SETTINGS_MENU);
1114
1114
  useEffect6(() => {
1115
1115
  if (!isBottomSheetSupported) {
1116
1116
  return;
@@ -1123,16 +1123,6 @@ function useMoreButtonBottomSheet() {
1123
1123
  onError: (error) => console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error)
1124
1124
  }
1125
1125
  );
1126
- if (isMinVersionSupported2(MIN_VERSION.PERMISSIONS_MENU)) {
1127
- INTERNAL__appBridgeHandler.invokeAppBridgeMethod(
1128
- "getAllPermission",
1129
- {},
1130
- {
1131
- onSuccess: (permissions) => setIsPermissionsMenuSupported(permissions.length > 0),
1132
- onError: (error) => console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error)
1133
- }
1134
- );
1135
- }
1136
1126
  }, [isBottomSheetSupported]);
1137
1127
  const onClickHandler = async () => {
1138
1128
  logging.open();
@@ -1184,7 +1174,7 @@ function useMoreButtonBottomSheet() {
1184
1174
  )),
1185
1175
  isHomeShortcutSupported && /* @__PURE__ */ jsx9(HomeShortcutMenu, {}),
1186
1176
  isShareListMenuSupported && /* @__PURE__ */ jsx9(AppShareListMenu, {}),
1187
- isPermissionsMenuSupported && /* @__PURE__ */ jsx9(PermissionsMenu, {})
1177
+ isSettingsMenuSupported && /* @__PURE__ */ jsx9(SettingsMenu, {})
1188
1178
  ] })
1189
1179
  }
1190
1180
  ) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/framework",
3
3
  "type": "module",
4
- "version": "1.12.0",
4
+ "version": "1.13.0",
5
5
  "description": "The framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -55,12 +55,12 @@
55
55
  "ait": "./bin/ait.js"
56
56
  },
57
57
  "dependencies": {
58
- "@apps-in-toss/analytics": "1.12.0",
59
- "@apps-in-toss/cli": "1.12.0",
60
- "@apps-in-toss/native-modules": "1.12.0",
61
- "@apps-in-toss/plugins": "1.12.0",
62
- "@apps-in-toss/types": "1.12.0",
63
- "@apps-in-toss/user-scripts": "^1.12.0",
58
+ "@apps-in-toss/analytics": "1.13.0",
59
+ "@apps-in-toss/cli": "1.13.0",
60
+ "@apps-in-toss/native-modules": "1.13.0",
61
+ "@apps-in-toss/plugins": "1.13.0",
62
+ "@apps-in-toss/types": "1.13.0",
63
+ "@apps-in-toss/user-scripts": "^1.13.0",
64
64
  "es-hangul": "^2.3.2"
65
65
  },
66
66
  "devDependencies": {