@apps-in-toss/framework 1.4.2 → 1.4.4

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/dist/index.cjs CHANGED
@@ -1175,6 +1175,7 @@ function DefaultNavigationBar() {
1175
1175
  }
1176
1176
 
1177
1177
  // src/components/NavigationBar/RNNavigationBar/Game.tsx
1178
+ var import_react_native_safe_area_context = require("@granite-js/native/react-native-safe-area-context");
1178
1179
  var import_tds_react_native9 = require("@toss/tds-react-native");
1179
1180
  var import_private6 = require("@toss/tds-react-native/private");
1180
1181
  var import_react_native19 = require("react-native");
@@ -1184,6 +1185,7 @@ function GameNavigationBar() {
1184
1185
  const global2 = getAppsInTossGlobals();
1185
1186
  const { open: openMoreButtonBottomSheet } = useMoreButtonBottomSheet();
1186
1187
  const navigationEvent = useNavigationEvent();
1188
+ const { right: safeAreaRight } = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
1187
1189
  useHardwareBackPress(navigationEvent.handleBack);
1188
1190
  const parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
1189
1191
  const initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
@@ -1202,7 +1204,7 @@ function GameNavigationBar() {
1202
1204
  position: "absolute",
1203
1205
  zIndex: Z_INDEX.CLOSE_BUTTON,
1204
1206
  marginTop: safeAreaTop,
1205
- paddingRight: 10
1207
+ paddingRight: safeAreaRight + 10
1206
1208
  },
1207
1209
  pointerEvents: "box-none",
1208
1210
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
@@ -1356,6 +1358,7 @@ var import_react19 = require("react");
1356
1358
  var import_react_native25 = require("react-native");
1357
1359
 
1358
1360
  // src/components/NavigationBar/GameWebviewNavigationBar.tsx
1361
+ var import_react_native_safe_area_context2 = require("@granite-js/native/react-native-safe-area-context");
1359
1362
  var import_react_native23 = require("@granite-js/react-native");
1360
1363
  var import_tds_react_native11 = require("@toss/tds-react-native");
1361
1364
  var import_private7 = require("@toss/tds-react-native/private");
@@ -1370,6 +1373,7 @@ function GameWebviewNavigationBar() {
1370
1373
  const global2 = getAppsInTossGlobals();
1371
1374
  const logging = useNavigationBarLogging();
1372
1375
  const { open: openMoreButtonBottomSheet } = useMoreButtonBottomSheet();
1376
+ const { right: safeAreaRight } = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
1373
1377
  const parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
1374
1378
  const initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
1375
1379
  const handleGameWebviewClose = (0, import_react18.useCallback)(async () => {
@@ -1402,7 +1406,7 @@ function GameWebviewNavigationBar() {
1402
1406
  position: "absolute",
1403
1407
  zIndex: Z_INDEX.CLOSE_BUTTON,
1404
1408
  marginTop: safeAreaTop,
1405
- paddingRight: 10
1409
+ paddingRight: safeAreaRight + 10
1406
1410
  },
1407
1411
  pointerEvents: "box-none",
1408
1412
  children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -1927,7 +1931,7 @@ function useCreateUserAgent({
1927
1931
  const platform = (0, import_native_modules15.getPlatformOS)();
1928
1932
  const appVersion = (0, import_native_modules15.getTossAppVersion)();
1929
1933
  const { fontScale } = (0, import_react_native28.useWindowDimensions)();
1930
- const platformString = platform === "ios" ? "iPhone" : "Android";
1934
+ const platformString = platform === "ios" ? "iPhone" : "Android phone";
1931
1935
  const fontA11y = mapFontScaleToCategory(fontScale, platform);
1932
1936
  const normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
1933
1937
  return [
package/dist/index.js CHANGED
@@ -1144,6 +1144,7 @@ function DefaultNavigationBar() {
1144
1144
  }
1145
1145
 
1146
1146
  // src/components/NavigationBar/RNNavigationBar/Game.tsx
1147
+ import { useSafeAreaInsets } from "@granite-js/native/react-native-safe-area-context";
1147
1148
  import { PageNavbar } from "@toss/tds-react-native";
1148
1149
  import { NavigationRightContent, useSafeAreaTop } from "@toss/tds-react-native/private";
1149
1150
  import { Platform as Platform2, View as View2 } from "react-native";
@@ -1153,6 +1154,7 @@ function GameNavigationBar() {
1153
1154
  const global2 = getAppsInTossGlobals();
1154
1155
  const { open: openMoreButtonBottomSheet } = useMoreButtonBottomSheet();
1155
1156
  const navigationEvent = useNavigationEvent();
1157
+ const { right: safeAreaRight } = useSafeAreaInsets();
1156
1158
  useHardwareBackPress(navigationEvent.handleBack);
1157
1159
  const parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
1158
1160
  const initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
@@ -1171,7 +1173,7 @@ function GameNavigationBar() {
1171
1173
  position: "absolute",
1172
1174
  zIndex: Z_INDEX.CLOSE_BUTTON,
1173
1175
  marginTop: safeAreaTop,
1174
- paddingRight: 10
1176
+ paddingRight: safeAreaRight + 10
1175
1177
  },
1176
1178
  pointerEvents: "box-none",
1177
1179
  children: /* @__PURE__ */ jsx8(
@@ -1312,10 +1314,10 @@ var AppsInToss = {
1312
1314
 
1313
1315
  // src/components/WebView.tsx
1314
1316
  import {
1317
+ AppsInTossModule,
1315
1318
  GoogleAdMob,
1316
1319
  IAP,
1317
1320
  Storage,
1318
- AppsInTossModule,
1319
1321
  appsInTossEvent as appsInTossEvent4,
1320
1322
  iapCreateOneTimePurchaseOrder,
1321
1323
  processProductGrant,
@@ -1339,6 +1341,7 @@ import { forwardRef, useEffect as useEffect10, useState as useState5 } from "rea
1339
1341
  import { Platform as Platform5 } from "react-native";
1340
1342
 
1341
1343
  // src/components/NavigationBar/GameWebviewNavigationBar.tsx
1344
+ import { useSafeAreaInsets as useSafeAreaInsets2 } from "@granite-js/native/react-native-safe-area-context";
1342
1345
  import { closeView as closeView4 } from "@granite-js/react-native";
1343
1346
  import { PageNavbar as PageNavbar2, useDialog as useDialog5 } from "@toss/tds-react-native";
1344
1347
  import { NavigationRightContent as NavigationRightContent2, useSafeAreaTop as useSafeAreaTop2 } from "@toss/tds-react-native/private";
@@ -1353,6 +1356,7 @@ function GameWebviewNavigationBar() {
1353
1356
  const global2 = getAppsInTossGlobals();
1354
1357
  const logging = useNavigationBarLogging();
1355
1358
  const { open: openMoreButtonBottomSheet } = useMoreButtonBottomSheet();
1359
+ const { right: safeAreaRight } = useSafeAreaInsets2();
1356
1360
  const parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
1357
1361
  const initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
1358
1362
  const handleGameWebviewClose = useCallback8(async () => {
@@ -1385,7 +1389,7 @@ function GameWebviewNavigationBar() {
1385
1389
  position: "absolute",
1386
1390
  zIndex: Z_INDEX.CLOSE_BUTTON,
1387
1391
  marginTop: safeAreaTop,
1388
- paddingRight: 10
1392
+ paddingRight: safeAreaRight + 10
1389
1393
  },
1390
1394
  pointerEvents: "box-none",
1391
1395
  children: /* @__PURE__ */ jsx11(
@@ -1912,7 +1916,7 @@ function useCreateUserAgent({
1912
1916
  const platform = getPlatformOS();
1913
1917
  const appVersion = getTossAppVersion();
1914
1918
  const { fontScale } = useWindowDimensions();
1915
- const platformString = platform === "ios" ? "iPhone" : "Android";
1919
+ const platformString = platform === "ios" ? "iPhone" : "Android phone";
1916
1920
  const fontA11y = mapFontScaleToCategory(fontScale, platform);
1917
1921
  const normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
1918
1922
  return [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/framework",
3
3
  "type": "module",
4
- "version": "1.4.2",
4
+ "version": "1.4.4",
5
5
  "description": "The framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -56,11 +56,11 @@
56
56
  "ait": "./bin/ait.js"
57
57
  },
58
58
  "dependencies": {
59
- "@apps-in-toss/analytics": "1.4.2",
60
- "@apps-in-toss/cli": "1.4.2",
61
- "@apps-in-toss/native-modules": "1.4.2",
62
- "@apps-in-toss/plugins": "1.4.2",
63
- "@apps-in-toss/types": "1.4.2",
59
+ "@apps-in-toss/analytics": "1.4.4",
60
+ "@apps-in-toss/cli": "1.4.4",
61
+ "@apps-in-toss/native-modules": "1.4.4",
62
+ "@apps-in-toss/plugins": "1.4.4",
63
+ "@apps-in-toss/types": "1.4.4",
64
64
  "es-hangul": "^2.3.2"
65
65
  },
66
66
  "devDependencies": {
@@ -96,5 +96,5 @@
96
96
  "publishConfig": {
97
97
  "access": "public"
98
98
  },
99
- "gitHead": "992572077564048b34db9f6a0d9217612178c276"
99
+ "gitHead": "1bc251a4943ff0fa455fad020ff54b60929f4964"
100
100
  }