@apps-in-toss/web-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.
@@ -46174,6 +46174,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46174
46174
  var global2 = getAppsInTossGlobals();
46175
46175
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46176
46176
  var navigationEvent = useNavigationEvent();
46177
+ var _useSafeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets.right;
46177
46178
  useHardwareBackPress(navigationEvent.handleBack);
46178
46179
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46179
46180
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
@@ -46195,7 +46196,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46195
46196
  position: "absolute",
46196
46197
  zIndex: Z_INDEX.CLOSE_BUTTON,
46197
46198
  marginTop: safeAreaTop,
46198
- paddingRight: 10
46199
+ paddingRight: safeAreaRight + 10
46199
46200
  },
46200
46201
  pointerEvents: "box-none",
46201
46202
  children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
@@ -46360,6 +46361,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46360
46361
  var global2 = getAppsInTossGlobals();
46361
46362
  var logging = useNavigationBarLogging();
46362
46363
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46364
+ var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
46363
46365
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46364
46366
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46365
46367
  var handleGameWebviewClose = (0, import_react228.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
@@ -46414,7 +46416,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46414
46416
  position: "absolute",
46415
46417
  zIndex: Z_INDEX.CLOSE_BUTTON,
46416
46418
  marginTop: safeAreaTop,
46417
- paddingRight: 10
46419
+ paddingRight: safeAreaRight + 10
46418
46420
  },
46419
46421
  pointerEvents: "box-none",
46420
46422
  children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationRightContent, {
@@ -47025,7 +47027,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47025
47027
  var platform = getPlatformOS();
47026
47028
  var appVersion = getTossAppVersion();
47027
47029
  var fontScale = (0, import_react_native227.useWindowDimensions)().fontScale;
47028
- var platformString = platform === "ios" ? "iPhone" : "Android";
47030
+ var platformString = platform === "ios" ? "iPhone" : "Android phone";
47029
47031
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
47030
47032
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
47031
47033
  return [
@@ -47395,6 +47397,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47395
47397
  import_react225 = __toESM(require_react(), 1);
47396
47398
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
47397
47399
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47400
+ init_react_native_safe_area_context();
47398
47401
  init_esm8();
47399
47402
  init_private2();
47400
47403
  import_react_native219 = __toESM(require_react_native(), 1);
@@ -47417,6 +47420,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47417
47420
  init_react_native_webview();
47418
47421
  import_react227 = __toESM(require_react(), 1);
47419
47422
  import_react_native222 = __toESM(require_react_native(), 1);
47423
+ init_react_native_safe_area_context();
47420
47424
  init_src3();
47421
47425
  init_esm8();
47422
47426
  init_private2();
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.4.2",
4
+ "version": "1.4.4",
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": "1.4.2",
91
- "@apps-in-toss/cli": "1.4.2",
92
- "@apps-in-toss/framework": "1.4.2",
93
- "@apps-in-toss/plugins": "1.4.2",
94
- "@apps-in-toss/web-analytics": "1.4.2",
95
- "@apps-in-toss/web-bridge": "1.4.2",
90
+ "@apps-in-toss/bridge-core": "1.4.4",
91
+ "@apps-in-toss/cli": "1.4.4",
92
+ "@apps-in-toss/framework": "1.4.4",
93
+ "@apps-in-toss/plugins": "1.4.4",
94
+ "@apps-in-toss/web-analytics": "1.4.4",
95
+ "@apps-in-toss/web-bridge": "1.4.4",
96
96
  "@babel/core": "7.23.9",
97
97
  "@granite-js/cli": "0.1.28",
98
98
  "@granite-js/mpack": "0.1.28",
@@ -104,5 +104,5 @@
104
104
  "publishConfig": {
105
105
  "access": "public"
106
106
  },
107
- "gitHead": "992572077564048b34db9f6a0d9217612178c276"
107
+ "gitHead": "1bc251a4943ff0fa455fad020ff54b60929f4964"
108
108
  }