@apps-in-toss/framework 2.10.3 → 2.10.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
@@ -1327,8 +1327,6 @@ function HomeButton({ theme = "light", onPress, children }) {
1327
1327
  alignItems: "center",
1328
1328
  gap: 6,
1329
1329
  height: 34,
1330
- paddingLeft: 10,
1331
- paddingRight: 10,
1332
1330
  backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
1333
1331
  borderRadius: 99
1334
1332
  },
@@ -1351,7 +1349,8 @@ function AppTitle({ title, iconUrl, theme = "light" }) {
1351
1349
  style: {
1352
1350
  flexDirection: "row",
1353
1351
  alignItems: "center",
1354
- gap: 6
1352
+ gap: 6,
1353
+ paddingHorizontal: 10
1355
1354
  },
1356
1355
  children: [
1357
1356
  iconUrl != null && iconUrl !== "" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -1489,10 +1488,7 @@ function DefaultNavigationBar() {
1489
1488
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1490
1489
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1491
1490
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1492
- const withIcon = parsedNavigationBar?.withIcon ?? true;
1493
1491
  const withTitle = parsedNavigationBar?.withTitle ?? true;
1494
- const iconURL = withIcon ? globals.brandIcon : void 0;
1495
- const title = withTitle ? globals.brandDisplayName : void 0;
1496
1492
  const theme = parsedNavigationBar?.theme ?? "light";
1497
1493
  const { navigationRightButton } = useNavigationBarContext();
1498
1494
  const navigationEvent = useNavigationEvent();
@@ -1501,7 +1497,7 @@ function DefaultNavigationBar() {
1501
1497
  TopNavigation,
1502
1498
  {
1503
1499
  left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
1504
- 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,
1500
+ center: withTitle ? 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 }) : null,
1505
1501
  right: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1506
1502
  Menu2,
1507
1503
  {
@@ -1759,10 +1755,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1759
1755
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1760
1756
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1761
1757
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1762
- const withIcon = parsedNavigationBar?.withIcon ?? true;
1763
1758
  const withTitle = parsedNavigationBar?.withTitle ?? true;
1764
- const iconURL = withIcon ? globals.brandIcon : void 0;
1765
- const title = withTitle ? globals.brandDisplayName : void 0;
1766
1759
  const theme = parsedNavigationBar?.theme ?? "light";
1767
1760
  const { navigationRightButton } = useNavigationBarContext();
1768
1761
  const handleClose = (0, import_react20.useCallback)(async () => {
@@ -1773,7 +1766,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1773
1766
  TopNavigation,
1774
1767
  {
1775
1768
  left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BackButton, { theme, onPress: onBackButtonClick }) : null,
1776
- 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,
1769
+ center: withTitle ? 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 }) : null,
1777
1770
  right: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1778
1771
  Menu2,
1779
1772
  {
@@ -3280,7 +3273,7 @@ function resolveTossAppBundleId(os) {
3280
3273
  var package_default = {
3281
3274
  name: "@apps-in-toss/framework",
3282
3275
  type: "module",
3283
- version: "2.10.3",
3276
+ version: "2.10.4",
3284
3277
  description: "The framework for Apps In Toss",
3285
3278
  scripts: {
3286
3279
  typecheck: "tsc --noEmit",
package/dist/index.js CHANGED
@@ -1290,8 +1290,6 @@ function HomeButton({ theme = "light", onPress, children }) {
1290
1290
  alignItems: "center",
1291
1291
  gap: 6,
1292
1292
  height: 34,
1293
- paddingLeft: 10,
1294
- paddingRight: 10,
1295
1293
  backgroundColor: theme === "light" ? colors2.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
1296
1294
  borderRadius: 99
1297
1295
  },
@@ -1314,7 +1312,8 @@ function AppTitle({ title, iconUrl, theme = "light" }) {
1314
1312
  style: {
1315
1313
  flexDirection: "row",
1316
1314
  alignItems: "center",
1317
- gap: 6
1315
+ gap: 6,
1316
+ paddingHorizontal: 10
1318
1317
  },
1319
1318
  children: [
1320
1319
  iconUrl != null && iconUrl !== "" && /* @__PURE__ */ jsx13(
@@ -1452,10 +1451,7 @@ function DefaultNavigationBar() {
1452
1451
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1453
1452
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1454
1453
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1455
- const withIcon = parsedNavigationBar?.withIcon ?? true;
1456
1454
  const withTitle = parsedNavigationBar?.withTitle ?? true;
1457
- const iconURL = withIcon ? globals.brandIcon : void 0;
1458
- const title = withTitle ? globals.brandDisplayName : void 0;
1459
1455
  const theme = parsedNavigationBar?.theme ?? "light";
1460
1456
  const { navigationRightButton } = useNavigationBarContext();
1461
1457
  const navigationEvent = useNavigationEvent();
@@ -1464,7 +1460,7 @@ function DefaultNavigationBar() {
1464
1460
  TopNavigation,
1465
1461
  {
1466
1462
  left: withBackButton ? /* @__PURE__ */ jsx16(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
1467
- 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,
1463
+ center: withTitle ? 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 }) : null,
1468
1464
  right: /* @__PURE__ */ jsx16(
1469
1465
  Menu2,
1470
1466
  {
@@ -1743,10 +1739,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1743
1739
  const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
1744
1740
  const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
1745
1741
  const withBackButton = parsedNavigationBar?.withBackButton ?? true;
1746
- const withIcon = parsedNavigationBar?.withIcon ?? true;
1747
1742
  const withTitle = parsedNavigationBar?.withTitle ?? true;
1748
- const iconURL = withIcon ? globals.brandIcon : void 0;
1749
- const title = withTitle ? globals.brandDisplayName : void 0;
1750
1743
  const theme = parsedNavigationBar?.theme ?? "light";
1751
1744
  const { navigationRightButton } = useNavigationBarContext();
1752
1745
  const handleClose = useCallback8(async () => {
@@ -1757,7 +1750,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
1757
1750
  TopNavigation,
1758
1751
  {
1759
1752
  left: withBackButton ? /* @__PURE__ */ jsx22(BackButton, { theme, onPress: onBackButtonClick }) : null,
1760
- 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,
1753
+ center: withTitle ? 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 }) : null,
1761
1754
  right: /* @__PURE__ */ jsx22(
1762
1755
  Menu2,
1763
1756
  {
@@ -3272,7 +3265,7 @@ function resolveTossAppBundleId(os) {
3272
3265
  var package_default = {
3273
3266
  name: "@apps-in-toss/framework",
3274
3267
  type: "module",
3275
- version: "2.10.3",
3268
+ version: "2.10.4",
3276
3269
  description: "The framework for Apps In Toss",
3277
3270
  scripts: {
3278
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.3",
4
+ "version": "2.10.4",
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.3",
59
- "@apps-in-toss/cli": "2.10.3",
60
- "@apps-in-toss/native-modules": "2.10.3",
61
- "@apps-in-toss/plugins": "2.10.3",
62
- "@apps-in-toss/types": "2.10.3",
63
- "@apps-in-toss/user-scripts": "^2.10.3",
58
+ "@apps-in-toss/analytics": "2.10.4",
59
+ "@apps-in-toss/cli": "2.10.4",
60
+ "@apps-in-toss/native-modules": "2.10.4",
61
+ "@apps-in-toss/plugins": "2.10.4",
62
+ "@apps-in-toss/types": "2.10.4",
63
+ "@apps-in-toss/user-scripts": "^2.10.4",
64
64
  "es-hangul": "^2.3.2"
65
65
  },
66
66
  "devDependencies": {