@apps-in-toss/framework 2.10.0 → 2.10.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.
package/dist/index.cjs CHANGED
@@ -1366,7 +1366,7 @@ function AppTitle({ title, iconUrl, theme = "light" }) {
1366
1366
  }
1367
1367
  }
1368
1368
  ),
1369
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1369
+ title != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1370
1370
  import_react_native24.Text,
1371
1371
  {
1372
1372
  numberOfLines: 1,
@@ -1482,6 +1482,10 @@ function DefaultNavigationBar() {
1482
1482
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1483
1483
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1484
1484
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1485
+ const withIcon = parsedNavigationBar?.withIcon ?? true;
1486
+ const withTitle = parsedNavigationBar?.withTitle ?? true;
1487
+ const iconURL = withIcon ? globals.brandIcon : void 0;
1488
+ const title = withTitle ? globals.brandDisplayName : void 0;
1485
1489
  const theme = parsedNavigationBar?.theme ?? "light";
1486
1490
  const { navigationRightButton } = useNavigationBarContext();
1487
1491
  const navigationEvent = useNavigationEvent();
@@ -1490,7 +1494,7 @@ function DefaultNavigationBar() {
1490
1494
  TopNavigation,
1491
1495
  {
1492
1496
  left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
1493
- center: withHomeButton ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeButton, { theme, onPress: navigationEvent.handleHomeButtonClick, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }) }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }),
1497
+ center: title || iconURL ? withHomeButton ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeButton, { theme, onPress: navigationEvent.handleHomeButtonClick, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AppTitle, { theme, title, iconUrl: iconURL }) }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AppTitle, { theme, title, iconUrl: iconURL }) : null,
1494
1498
  right: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1495
1499
  Menu2,
1496
1500
  {
@@ -1748,6 +1752,10 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1748
1752
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1749
1753
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1750
1754
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1755
+ const withIcon = parsedNavigationBar?.withIcon ?? true;
1756
+ const withTitle = parsedNavigationBar?.withTitle ?? true;
1757
+ const iconURL = withIcon ? globals.brandIcon : void 0;
1758
+ const title = withTitle ? globals.brandDisplayName : void 0;
1751
1759
  const theme = parsedNavigationBar?.theme ?? "light";
1752
1760
  const { navigationRightButton } = useNavigationBarContext();
1753
1761
  const handleClose = (0, import_react20.useCallback)(async () => {
@@ -1758,7 +1766,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1758
1766
  TopNavigation,
1759
1767
  {
1760
1768
  left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BackButton, { theme, onPress: onBackButtonClick }) : null,
1761
- center: withHomeButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(HomeButton, { theme, onPress: onHomeButtonClick, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }) }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }),
1769
+ center: title || iconURL ? withHomeButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(HomeButton, { theme, onPress: onHomeButtonClick, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AppTitle, { theme, title, iconUrl: iconURL }) }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AppTitle, { theme, title, iconUrl: iconURL }) : null,
1762
1770
  right: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1763
1771
  Menu2,
1764
1772
  {
@@ -2938,6 +2946,7 @@ function WebView({ type, local, onMessage, ...props }) {
2938
2946
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
2939
2947
  getServerTime_isSupported: import_native_modules19.getServerTime.isSupported,
2940
2948
  requestReview_isSupported: import_native_modules19.requestReview.isSupported,
2949
+ getDeclaredAgeRange_isSupported: import_native_modules19.getDeclaredAgeRange.isSupported,
2941
2950
  /** AdMobV2 */
2942
2951
  loadAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob.isSupported,
2943
2952
  showAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.showAppsInTossAdMob.isSupported,
@@ -3264,7 +3273,7 @@ function resolveTossAppBundleId(os) {
3264
3273
  var package_default = {
3265
3274
  name: "@apps-in-toss/framework",
3266
3275
  type: "module",
3267
- version: "2.10.0",
3276
+ version: "2.10.2",
3268
3277
  description: "The framework for Apps In Toss",
3269
3278
  scripts: {
3270
3279
  typecheck: "tsc --noEmit",
package/dist/index.js CHANGED
@@ -1329,7 +1329,7 @@ function AppTitle({ title, iconUrl, theme = "light" }) {
1329
1329
  }
1330
1330
  }
1331
1331
  ),
1332
- /* @__PURE__ */ jsx13(
1332
+ title != null && /* @__PURE__ */ jsx13(
1333
1333
  Text,
1334
1334
  {
1335
1335
  numberOfLines: 1,
@@ -1445,6 +1445,10 @@ function DefaultNavigationBar() {
1445
1445
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1446
1446
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1447
1447
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1448
+ const withIcon = parsedNavigationBar?.withIcon ?? true;
1449
+ const withTitle = parsedNavigationBar?.withTitle ?? true;
1450
+ const iconURL = withIcon ? globals.brandIcon : void 0;
1451
+ const title = withTitle ? globals.brandDisplayName : void 0;
1448
1452
  const theme = parsedNavigationBar?.theme ?? "light";
1449
1453
  const { navigationRightButton } = useNavigationBarContext();
1450
1454
  const navigationEvent = useNavigationEvent();
@@ -1453,7 +1457,7 @@ function DefaultNavigationBar() {
1453
1457
  TopNavigation,
1454
1458
  {
1455
1459
  left: withBackButton ? /* @__PURE__ */ jsx16(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
1456
- center: withHomeButton ? /* @__PURE__ */ jsx16(HomeButton, { theme, onPress: navigationEvent.handleHomeButtonClick, children: /* @__PURE__ */ jsx16(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }) }) : /* @__PURE__ */ jsx16(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }),
1460
+ center: title || iconURL ? withHomeButton ? /* @__PURE__ */ jsx16(HomeButton, { theme, onPress: navigationEvent.handleHomeButtonClick, children: /* @__PURE__ */ jsx16(AppTitle, { theme, title, iconUrl: iconURL }) }) : /* @__PURE__ */ jsx16(AppTitle, { theme, title, iconUrl: iconURL }) : null,
1457
1461
  right: /* @__PURE__ */ jsx16(
1458
1462
  Menu2,
1459
1463
  {
@@ -1625,6 +1629,7 @@ import {
1625
1629
  IAP,
1626
1630
  Storage,
1627
1631
  appsInTossEvent,
1632
+ getDeclaredAgeRange,
1628
1633
  getServerTime,
1629
1634
  requestReview,
1630
1635
  requestNotificationAgreement,
@@ -1731,6 +1736,10 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1731
1736
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1732
1737
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1733
1738
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1739
+ const withIcon = parsedNavigationBar?.withIcon ?? true;
1740
+ const withTitle = parsedNavigationBar?.withTitle ?? true;
1741
+ const iconURL = withIcon ? globals.brandIcon : void 0;
1742
+ const title = withTitle ? globals.brandDisplayName : void 0;
1734
1743
  const theme = parsedNavigationBar?.theme ?? "light";
1735
1744
  const { navigationRightButton } = useNavigationBarContext();
1736
1745
  const handleClose = useCallback8(async () => {
@@ -1741,7 +1750,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1741
1750
  TopNavigation,
1742
1751
  {
1743
1752
  left: withBackButton ? /* @__PURE__ */ jsx22(BackButton, { theme, onPress: onBackButtonClick }) : null,
1744
- center: withHomeButton ? /* @__PURE__ */ jsx22(HomeButton, { theme, onPress: onHomeButtonClick, children: /* @__PURE__ */ jsx22(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }) }) : /* @__PURE__ */ jsx22(AppTitle, { theme, title: globals.brandDisplayName, iconUrl: globals.brandIcon }),
1753
+ center: title || iconURL ? withHomeButton ? /* @__PURE__ */ jsx22(HomeButton, { theme, onPress: onHomeButtonClick, children: /* @__PURE__ */ jsx22(AppTitle, { theme, title, iconUrl: iconURL }) }) : /* @__PURE__ */ jsx22(AppTitle, { theme, title, iconUrl: iconURL }) : null,
1745
1754
  right: /* @__PURE__ */ jsx22(
1746
1755
  Menu2,
1747
1756
  {
@@ -2929,6 +2938,7 @@ function WebView({ type, local, onMessage, ...props }) {
2929
2938
  ...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
2930
2939
  getServerTime_isSupported: getServerTime.isSupported,
2931
2940
  requestReview_isSupported: requestReview.isSupported,
2941
+ getDeclaredAgeRange_isSupported: getDeclaredAgeRange.isSupported,
2932
2942
  /** AdMobV2 */
2933
2943
  loadAppsInTossAdMob_isSupported: GoogleAdMob2.loadAppsInTossAdMob.isSupported,
2934
2944
  showAppsInTossAdMob_isSupported: GoogleAdMob2.showAppsInTossAdMob.isSupported,
@@ -3255,7 +3265,7 @@ function resolveTossAppBundleId(os) {
3255
3265
  var package_default = {
3256
3266
  name: "@apps-in-toss/framework",
3257
3267
  type: "module",
3258
- version: "2.10.0",
3268
+ version: "2.10.2",
3259
3269
  description: "The framework for Apps In Toss",
3260
3270
  scripts: {
3261
3271
  typecheck: "tsc --noEmit",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/framework",
3
3
  "type": "module",
4
- "version": "2.10.0",
4
+ "version": "2.10.2",
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": "2.10.0",
59
- "@apps-in-toss/cli": "2.10.0",
60
- "@apps-in-toss/native-modules": "2.10.0",
61
- "@apps-in-toss/plugins": "2.10.0",
62
- "@apps-in-toss/types": "2.10.0",
63
- "@apps-in-toss/user-scripts": "^2.10.0",
58
+ "@apps-in-toss/analytics": "2.10.2",
59
+ "@apps-in-toss/cli": "2.10.2",
60
+ "@apps-in-toss/native-modules": "2.10.2",
61
+ "@apps-in-toss/plugins": "2.10.2",
62
+ "@apps-in-toss/types": "2.10.2",
63
+ "@apps-in-toss/user-scripts": "^2.10.2",
64
64
  "es-hangul": "^2.3.2"
65
65
  },
66
66
  "devDependencies": {