@apps-in-toss/framework 2.10.2 → 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 +17 -17
- package/dist/index.js +17 -17
- package/package.json +7 -7
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,19 +1349,27 @@ 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)(
|
|
1358
|
-
|
|
1357
|
+
import_react_native24.View,
|
|
1359
1358
|
{
|
|
1360
|
-
source: { uri: iconUrl },
|
|
1361
1359
|
style: {
|
|
1362
|
-
width: 18,
|
|
1363
|
-
height: 18,
|
|
1364
1360
|
borderRadius: 6,
|
|
1365
1361
|
overflow: "hidden"
|
|
1366
|
-
}
|
|
1362
|
+
},
|
|
1363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1364
|
+
import_react_native23.Image,
|
|
1365
|
+
{
|
|
1366
|
+
source: { uri: iconUrl },
|
|
1367
|
+
style: {
|
|
1368
|
+
width: 18,
|
|
1369
|
+
height: 18
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
)
|
|
1367
1373
|
}
|
|
1368
1374
|
),
|
|
1369
1375
|
title != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -1482,10 +1488,7 @@ function DefaultNavigationBar() {
|
|
|
1482
1488
|
const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
1483
1489
|
const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
1484
1490
|
const withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
1485
|
-
const withIcon = parsedNavigationBar?.withIcon ?? true;
|
|
1486
1491
|
const withTitle = parsedNavigationBar?.withTitle ?? true;
|
|
1487
|
-
const iconURL = withIcon ? globals.brandIcon : void 0;
|
|
1488
|
-
const title = withTitle ? globals.brandDisplayName : void 0;
|
|
1489
1492
|
const theme = parsedNavigationBar?.theme ?? "light";
|
|
1490
1493
|
const { navigationRightButton } = useNavigationBarContext();
|
|
1491
1494
|
const navigationEvent = useNavigationEvent();
|
|
@@ -1494,7 +1497,7 @@ function DefaultNavigationBar() {
|
|
|
1494
1497
|
TopNavigation,
|
|
1495
1498
|
{
|
|
1496
1499
|
left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
|
|
1497
|
-
center:
|
|
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,
|
|
1498
1501
|
right: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1499
1502
|
Menu2,
|
|
1500
1503
|
{
|
|
@@ -1752,10 +1755,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
|
|
|
1752
1755
|
const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
1753
1756
|
const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
1754
1757
|
const withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
1755
|
-
const withIcon = parsedNavigationBar?.withIcon ?? true;
|
|
1756
1758
|
const withTitle = parsedNavigationBar?.withTitle ?? true;
|
|
1757
|
-
const iconURL = withIcon ? globals.brandIcon : void 0;
|
|
1758
|
-
const title = withTitle ? globals.brandDisplayName : void 0;
|
|
1759
1759
|
const theme = parsedNavigationBar?.theme ?? "light";
|
|
1760
1760
|
const { navigationRightButton } = useNavigationBarContext();
|
|
1761
1761
|
const handleClose = (0, import_react20.useCallback)(async () => {
|
|
@@ -1766,7 +1766,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
|
|
|
1766
1766
|
TopNavigation,
|
|
1767
1767
|
{
|
|
1768
1768
|
left: withBackButton ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(BackButton, { theme, onPress: onBackButtonClick }) : null,
|
|
1769
|
-
center:
|
|
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,
|
|
1770
1770
|
right: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1771
1771
|
Menu2,
|
|
1772
1772
|
{
|
|
@@ -3273,7 +3273,7 @@ function resolveTossAppBundleId(os) {
|
|
|
3273
3273
|
var package_default = {
|
|
3274
3274
|
name: "@apps-in-toss/framework",
|
|
3275
3275
|
type: "module",
|
|
3276
|
-
version: "2.10.
|
|
3276
|
+
version: "2.10.4",
|
|
3277
3277
|
description: "The framework for Apps In Toss",
|
|
3278
3278
|
scripts: {
|
|
3279
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,19 +1312,27 @@ 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(
|
|
1321
|
-
|
|
1320
|
+
View5,
|
|
1322
1321
|
{
|
|
1323
|
-
source: { uri: iconUrl },
|
|
1324
1322
|
style: {
|
|
1325
|
-
width: 18,
|
|
1326
|
-
height: 18,
|
|
1327
1323
|
borderRadius: 6,
|
|
1328
1324
|
overflow: "hidden"
|
|
1329
|
-
}
|
|
1325
|
+
},
|
|
1326
|
+
children: /* @__PURE__ */ jsx13(
|
|
1327
|
+
Image,
|
|
1328
|
+
{
|
|
1329
|
+
source: { uri: iconUrl },
|
|
1330
|
+
style: {
|
|
1331
|
+
width: 18,
|
|
1332
|
+
height: 18
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
)
|
|
1330
1336
|
}
|
|
1331
1337
|
),
|
|
1332
1338
|
title != null && /* @__PURE__ */ jsx13(
|
|
@@ -1445,10 +1451,7 @@ function DefaultNavigationBar() {
|
|
|
1445
1451
|
const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
1446
1452
|
const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
1447
1453
|
const withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
1448
|
-
const withIcon = parsedNavigationBar?.withIcon ?? true;
|
|
1449
1454
|
const withTitle = parsedNavigationBar?.withTitle ?? true;
|
|
1450
|
-
const iconURL = withIcon ? globals.brandIcon : void 0;
|
|
1451
|
-
const title = withTitle ? globals.brandDisplayName : void 0;
|
|
1452
1455
|
const theme = parsedNavigationBar?.theme ?? "light";
|
|
1453
1456
|
const { navigationRightButton } = useNavigationBarContext();
|
|
1454
1457
|
const navigationEvent = useNavigationEvent();
|
|
@@ -1457,7 +1460,7 @@ function DefaultNavigationBar() {
|
|
|
1457
1460
|
TopNavigation,
|
|
1458
1461
|
{
|
|
1459
1462
|
left: withBackButton ? /* @__PURE__ */ jsx16(BackButton, { theme, onPress: navigationEvent.handleBack }) : null,
|
|
1460
|
-
center:
|
|
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,
|
|
1461
1464
|
right: /* @__PURE__ */ jsx16(
|
|
1462
1465
|
Menu2,
|
|
1463
1466
|
{
|
|
@@ -1736,10 +1739,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
|
|
|
1736
1739
|
const parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
1737
1740
|
const withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
1738
1741
|
const withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
1739
|
-
const withIcon = parsedNavigationBar?.withIcon ?? true;
|
|
1740
1742
|
const withTitle = parsedNavigationBar?.withTitle ?? true;
|
|
1741
|
-
const iconURL = withIcon ? globals.brandIcon : void 0;
|
|
1742
|
-
const title = withTitle ? globals.brandDisplayName : void 0;
|
|
1743
1743
|
const theme = parsedNavigationBar?.theme ?? "light";
|
|
1744
1744
|
const { navigationRightButton } = useNavigationBarContext();
|
|
1745
1745
|
const handleClose = useCallback8(async () => {
|
|
@@ -1750,7 +1750,7 @@ function PartnerWebviewNavigationBar({ onBackButtonClick, onHomeButtonClick }) {
|
|
|
1750
1750
|
TopNavigation,
|
|
1751
1751
|
{
|
|
1752
1752
|
left: withBackButton ? /* @__PURE__ */ jsx22(BackButton, { theme, onPress: onBackButtonClick }) : null,
|
|
1753
|
-
center:
|
|
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,
|
|
1754
1754
|
right: /* @__PURE__ */ jsx22(
|
|
1755
1755
|
Menu2,
|
|
1756
1756
|
{
|
|
@@ -3265,7 +3265,7 @@ function resolveTossAppBundleId(os) {
|
|
|
3265
3265
|
var package_default = {
|
|
3266
3266
|
name: "@apps-in-toss/framework",
|
|
3267
3267
|
type: "module",
|
|
3268
|
-
version: "2.10.
|
|
3268
|
+
version: "2.10.4",
|
|
3269
3269
|
description: "The framework for Apps In Toss",
|
|
3270
3270
|
scripts: {
|
|
3271
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.
|
|
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.
|
|
59
|
-
"@apps-in-toss/cli": "2.10.
|
|
60
|
-
"@apps-in-toss/native-modules": "2.10.
|
|
61
|
-
"@apps-in-toss/plugins": "2.10.
|
|
62
|
-
"@apps-in-toss/types": "2.10.
|
|
63
|
-
"@apps-in-toss/user-scripts": "^2.10.
|
|
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": {
|