diff --git a/.env b/.env
index 5e71768..3a4bd11 100644
--- a/.env
+++ b/.env
@@ -19,7 +19,7 @@
# Production Dev
# EXPO_PUBLIC_API_URL=https://api.acupedia.in/api
# EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store
-# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=false
+# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
# Local Dev
EXPO_PUBLIC_API_URL=http://localhost:8000/api
diff --git a/.gitignore b/.gitignore
index 7b18183..a590396 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,6 +34,7 @@ yarn-error.*
.env*.local
.idea/
.env
+package-locked.json
# typescript
*.tsbuildinfo
diff --git a/app.json b/app.json
index e29779d..8f52474 100644
--- a/app.json
+++ b/app.json
@@ -26,7 +26,6 @@
},
"predictiveBackGestureEnabled": false,
"package": "com.anonymous.acupedia",
- "usesCleartextTraffic": true,
"allowBackup": false
},
"web": {
@@ -42,6 +41,14 @@
"image": "./assets/images/splash-icon.png",
"imageWidth": 76
}
+ ],
+ [
+ "expo-build-properties",
+ {
+ "android": {
+ "usesCleartextTraffic": true
+ }
+ }
]
],
"experiments": {
@@ -49,4 +56,4 @@
"reactCompiler": true
}
}
-}
\ No newline at end of file
+}
diff --git a/package-lock.json b/package-lock.json
index edfe0a1..47de6ca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,35 +1,37 @@
{
- "name": "my-app",
+ "name": "AcuPedia",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "my-app",
+ "name": "AcuPedia",
"version": "1.0.0",
"dependencies": {
"@expo-google-fonts/inter": "^0.4.2",
"@expo/ui": "~57.0.16",
- "@expo/vector-icons": "^15.0.2",
- "@react-native-async-storage/async-storage": "2.2.0",
+ "@expo/vector-icons": "^15.1.1",
+ "@react-native-async-storage/async-storage": "~2.2.0",
"@react-native-community/netinfo": "12.0.1",
"@tanstack/react-query": "^5.101.2",
"axios": "^1.18.1",
- "expo": "~57.0.20",
- "expo-constants": "~57.0.17",
- "expo-device": "~57.0.1",
- "expo-font": "~57.0.3",
+ "expo": "~57.0.3",
+ "expo-build-properties": "~57.0.22",
+ "expo-constants": "~57.0.19",
+ "expo-device": "~57.0.2",
+ "expo-font": "~57.0.4",
"expo-glass-effect": "~57.0.1",
"expo-image": "~57.0.4",
- "expo-linear-gradient": "~57.0.1",
- "expo-linking": "~57.0.9",
- "expo-router": "~57.0.19",
- "expo-secure-store": "~57.0.2",
- "expo-splash-screen": "~57.0.8",
+ "expo-linear-gradient": "~57.0.2",
+ "expo-linking": "~57.0.11",
+ "expo-router": "~57.0.23",
+ "expo-screen-capture": "~57.0.3",
+ "expo-secure-store": "~57.0.4",
+ "expo-splash-screen": "~57.0.9",
"expo-status-bar": "~57.0.1",
"expo-symbols": "~57.0.2",
- "expo-system-ui": "~57.0.3",
- "expo-web-browser": "~57.0.2",
+ "expo-system-ui": "~57.0.4",
+ "expo-web-browser": "~57.0.3",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-native": "0.86.3",
@@ -39,7 +41,7 @@
"react-native-screens": "~4.26.0",
"react-native-size-matters": "^0.4.2",
"react-native-toast-message": "^2.3.3",
- "react-native-web": "~0.21.0",
+ "react-native-web": "~0.21.3",
"react-native-worklets": "0.10.1",
"zustand": "^4.5.7"
},
@@ -374,9 +376,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.29.8",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",
- "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
"license": "MIT",
"dependencies": {
"@babel/types": "^7.29.8"
@@ -1034,9 +1036,9 @@
}
},
"node_modules/@babel/plugin-transform-typescript": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.7.tgz",
- "integrity": "sha512-jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==",
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz",
+ "integrity": "sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==",
"license": "MIT",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.29.7",
@@ -1160,9 +1162,9 @@
"license": "MIT AND OFL-1.1"
},
"node_modules/@expo-google-fonts/material-symbols": {
- "version": "0.4.45",
- "resolved": "https://registry.npmjs.org/@expo-google-fonts/material-symbols/-/material-symbols-0.4.45.tgz",
- "integrity": "sha512-D5gd/uFa7KfMJX9S11hvej4GpQnBl27oKiUgyIq3cLTPtyDOWBwRgmeePIdV6+PGcedlDkaCND2BnRgAkxzNaA==",
+ "version": "0.4.48",
+ "resolved": "https://registry.npmjs.org/@expo-google-fonts/material-symbols/-/material-symbols-0.4.48.tgz",
+ "integrity": "sha512-aZztj44PyA/sj3TXSwwpLJwqMlTUJ49okbZJYURzEcuERxMQB0KbX7RrLBi8WJnuWz5HFOLlTRxORrJfNnUPNQ==",
"license": "MIT AND Apache-2.0"
},
"node_modules/@expo/code-signing-certificates": {
@@ -1315,9 +1317,9 @@
"license": "MIT"
},
"node_modules/@expo/fingerprint": {
- "version": "0.20.12",
- "resolved": "https://registry.npmjs.org/@expo/fingerprint/-/fingerprint-0.20.12.tgz",
- "integrity": "sha512-FIR5fkZYeFaLSowmjgyB6RPKl8AXeE8HuCBHHvyxK8UhOjpPfCAmzT4E7v2yub4qqDafKnfcOFCYxvpUEu+01w==",
+ "version": "0.20.13",
+ "resolved": "https://registry.npmjs.org/@expo/fingerprint/-/fingerprint-0.20.13.tgz",
+ "integrity": "sha512-h1x+w+JpNRu88a/5SMZRzJs9YDGR/f7R8ApCr7OdenhqmJ00hFxQMzvxajDLL+1P2Y2g/ND0xksusqvBqWSW5Q==",
"license": "MIT",
"dependencies": {
"@expo/env": "^2.4.3",
@@ -1483,9 +1485,9 @@
}
},
"node_modules/@expo/metro-file-map": {
- "version": "57.0.2",
- "resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-57.0.2.tgz",
- "integrity": "sha512-tb50nSIWwKpRufSkGuivOK0FbUxv1Uwqptb0SzFTk0bkmYmcy3gIwnCbOHTfmrQDVndRhPEiu2SYgh9Z0PCvGg==",
+ "version": "57.0.3",
+ "resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-57.0.3.tgz",
+ "integrity": "sha512-1OXy+uPYY5uc7Tm4VBsd2NRn+3wHhqeqNuEO/Xo4kmYgv8FjYgUAc+bUXON9FpC2ikcLn4EVlGM9ce2exx9Mlg==",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4",
@@ -1497,9 +1499,9 @@
}
},
"node_modules/@expo/metro-runtime": {
- "version": "57.0.15",
- "resolved": "https://registry.npmjs.org/@expo/metro-runtime/-/metro-runtime-57.0.15.tgz",
- "integrity": "sha512-9RaFkqIzRud6ol9fc5ZKHgNDYeDjQVBdAQC+rjSQ6RiKV0pY+SjDqGmKY5a4M9TaV0qLMCNNrp5R88BqC2xbuQ==",
+ "version": "57.0.16",
+ "resolved": "https://registry.npmjs.org/@expo/metro-runtime/-/metro-runtime-57.0.16.tgz",
+ "integrity": "sha512-x43WgZoICpp37BhDV7vixe0bNxbVPPGaBLHYc98ZJ8MU+UC2dk39Y2XvkfYMRRbAUSIkCIJiwdERnptlPg0Ckw==",
"license": "MIT",
"dependencies": {
"@expo/log-box": "^57.0.4",
@@ -1591,9 +1593,9 @@
}
},
"node_modules/@expo/prebuild-config": {
- "version": "57.0.15",
- "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-57.0.15.tgz",
- "integrity": "sha512-xTbWHroj0PDmlbqvmU+zF9ZZxveJkiuyiPoeRJYRGruFHebRAWnoTdw5S7d/UCzDBI8ropGGu9g2eb2nMxtvAw==",
+ "version": "57.0.16",
+ "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-57.0.16.tgz",
+ "integrity": "sha512-QA8oMZ7y70kjOzw+abhRl9uYC8Nu/abeUTHr0YVxb3pgIC14gc7w543bYtI+5gEDI3q55jKUViIauC76QvZN1w==",
"license": "MIT",
"dependencies": {
"@expo/config": "~57.0.9",
@@ -1603,7 +1605,7 @@
"@expo/json-file": "^11.0.1",
"@react-native/normalize-colors": "0.86.3",
"debug": "^4.3.1",
- "expo-modules-autolinking": "~57.0.12",
+ "expo-modules-autolinking": "~57.0.13",
"resolve-from": "^5.0.0",
"semver": "^7.6.0"
}
@@ -1670,9 +1672,9 @@
"license": "MIT"
},
"node_modules/@expo/ui": {
- "version": "57.0.16",
- "resolved": "https://registry.npmjs.org/@expo/ui/-/ui-57.0.16.tgz",
- "integrity": "sha512-3MK74dEPE4mwlv0VbyQKepmHigOs2bcOvay2SFqc1/QSywVTOjbkNPYUbq2H+LyOLP2sHMazrPBwfXGiYn3q7A==",
+ "version": "57.0.20",
+ "resolved": "https://registry.npmjs.org/@expo/ui/-/ui-57.0.20.tgz",
+ "integrity": "sha512-0ChmuyWBwEy3JHMR5wDkJGyvkTR5zH3BTwjJrv3f2ymtamhpU9hD5uH4GsLoWuB6MJFOPTuchq4zByZbtgPyNw==",
"license": "MIT",
"dependencies": {
"sf-symbols-typescript": "^2.1.0",
@@ -1710,9 +1712,9 @@
}
},
"node_modules/@expo/xcpretty": {
- "version": "4.4.4",
- "resolved": "https://registry.npmjs.org/@expo/xcpretty/-/xcpretty-4.4.4.tgz",
- "integrity": "sha512-4aQzz9vgxcNXFfo/iyNgDDYfsU5XGKKxWxZopw0cVotHiW+U8IJbIxMaxsINs6bHhtkG3StKNPcOrn3eBuxKPw==",
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/@expo/xcpretty/-/xcpretty-4.4.5.tgz",
+ "integrity": "sha512-J3eL4n4h5QTwfD0SIz8OIk6/+sOL/hFZAMacgCM07UNlxBQfJipEpIC2AQxvGkbYeStByJ0TVhQAJo+DeNgaSQ==",
"license": "BSD-3-Clause",
"dependencies": {
"@babel/code-frame": "^7.20.0",
@@ -1822,32 +1824,6 @@
"integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==",
"license": "MIT"
},
- "node_modules/@radix-ui/react-collection": {
- "version": "1.1.15",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.15.tgz",
- "integrity": "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-context": "1.2.2",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-slot": "1.3.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-compose-refs": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz",
@@ -1878,43 +1854,6 @@
}
}
},
- "node_modules/@radix-ui/react-dialog": {
- "version": "1.1.23",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.23.tgz",
- "integrity": "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-context": "1.2.2",
- "@radix-ui/react-dismissable-layer": "1.1.19",
- "@radix-ui/react-focus-guards": "1.1.6",
- "@radix-ui/react-focus-scope": "1.1.16",
- "@radix-ui/react-id": "1.1.4",
- "@radix-ui/react-portal": "1.1.17",
- "@radix-ui/react-presence": "1.1.10",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-slot": "1.3.3",
- "@radix-ui/react-use-controllable-state": "1.2.6",
- "@radix-ui/react-use-layout-effect": "1.1.4",
- "aria-hidden": "^1.2.4",
- "react-remove-scroll": "^2.7.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-direction": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.4.tgz",
@@ -1930,33 +1869,6 @@
}
}
},
- "node_modules/@radix-ui/react-dismissable-layer": {
- "version": "1.1.19",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz",
- "integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-callback-ref": "1.1.4",
- "@radix-ui/react-use-effect-event": "0.0.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-focus-guards": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.6.tgz",
@@ -1972,31 +1884,6 @@
}
}
},
- "node_modules/@radix-ui/react-focus-scope": {
- "version": "1.1.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.16.tgz",
- "integrity": "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-callback-ref": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-id": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz",
@@ -2015,109 +1902,6 @@
}
}
},
- "node_modules/@radix-ui/react-portal": {
- "version": "1.1.17",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz",
- "integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-presence": {
- "version": "1.1.10",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",
- "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-primitive": {
- "version": "2.1.10",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",
- "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-slot": "1.3.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-roving-focus": {
- "version": "1.1.19",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.19.tgz",
- "integrity": "sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-collection": "1.1.15",
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-context": "1.2.2",
- "@radix-ui/react-direction": "1.1.4",
- "@radix-ui/react-id": "1.1.4",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-callback-ref": "1.1.4",
- "@radix-ui/react-use-controllable-state": "1.2.6",
- "@radix-ui/react-use-is-hydrated": "0.1.3",
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-slot": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz",
@@ -2136,36 +1920,6 @@
}
}
},
- "node_modules/@radix-ui/react-tabs": {
- "version": "1.1.21",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.21.tgz",
- "integrity": "sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-context": "1.2.2",
- "@radix-ui/react-direction": "1.1.4",
- "@radix-ui/react-id": "1.1.4",
- "@radix-ui/react-presence": "1.1.10",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-roving-focus": "1.1.19",
- "@radix-ui/react-use-controllable-state": "1.2.6"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-use-callback-ref": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz",
@@ -2608,9 +2362,9 @@
"license": "MIT"
},
"node_modules/@tanstack/query-core": {
- "version": "5.102.8",
- "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.102.8.tgz",
- "integrity": "sha512-ZNjkJ33CqvPNec/6lZBnHqLc3EVGPZ9ySLhYahU9TcuRFdmwXewuj0c4hwSWcGHqEUwcSrKeZ+oGcvPBqXcQcg==",
+ "version": "5.104.0",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.104.0.tgz",
+ "integrity": "sha512-JrC2r/JQlXt7khBSdUpsgxNvybzOg+aITa+ARRMlP2AFo93Y8vIqz077rp+e61mJetSZ0T6AJbwW1JHer1vrPQ==",
"license": "MIT",
"funding": {
"type": "github",
@@ -2618,12 +2372,12 @@
}
},
"node_modules/@tanstack/react-query": {
- "version": "5.102.8",
- "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.102.8.tgz",
- "integrity": "sha512-TYBea4OuXWD7MhaSHq069TWbFe7rcwWN6kzT7JF0OKi1K6c1gTv2IzD6A6ExJsCMozdkqBWeuIUZmu4KQg0O5A==",
+ "version": "5.104.0",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.104.0.tgz",
+ "integrity": "sha512-e1TZmDCQnWIfiDVryIHeA6Idj+Lfx1hORLOhXS/l5wcgvtVD4yYqbTDl378sGQKIi2cSgb0TEMC9cKK8GGoJEw==",
"license": "MIT",
"dependencies": {
- "@tanstack/query-core": "5.102.8"
+ "@tanstack/query-core": "5.104.0"
},
"funding": {
"type": "github",
@@ -2664,12 +2418,12 @@
}
},
"node_modules/@types/node": {
- "version": "26.4.1",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.1.tgz",
- "integrity": "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA==",
+ "version": "26.6.3",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.3.tgz",
+ "integrity": "sha512-dsqMQQoeTLqu9wynDD00q573mNzso3IdQOAfHRJqLCcmCFPoGo9A1bDpUcv/9tnKpErQWv9uKeGfl37EIS02Yg==",
"license": "MIT",
"dependencies": {
- "undici-types": "~8.3.0"
+ "undici-types": "~8.9.0"
}
},
"node_modules/@types/react": {
@@ -2682,9 +2436,9 @@
}
},
"node_modules/@types/react-test-renderer": {
- "version": "19.1.0",
- "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-19.1.0.tgz",
- "integrity": "sha512-XD0WZrHqjNrxA/MaR9O22w/RNidWR9YZmBdRGI7wcnWGrv/3dA8wKCJ8m63Sn+tLJhcjmuhOi629N66W6kgWzQ==",
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-19.3.0.tgz",
+ "integrity": "sha512-TX4p2D4Z2oigM3SXU7+QyLSUnSR0vR1S1Pfxm/qFL9nHQ3jclgi6ioGoWQmlIr1DeKRVmPJrmNlhgM0JlWlLUg==",
"license": "MIT",
"dependencies": {
"@types/react": "*"
@@ -2745,6 +2499,31 @@
"node": ">= 0.6"
}
},
+ "node_modules/accepts/node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/accepts/node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/acorn": {
"version": "8.18.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",
@@ -2758,12 +2537,15 @@
}
},
"node_modules/agent-base": {
- "version": "7.1.4",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
- "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
"license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
"engines": {
- "node": ">= 14"
+ "node": ">= 6.0.0"
}
},
"node_modules/agent-cli-detector": {
@@ -2883,31 +2665,6 @@
"proxy-from-env": "^2.1.0"
}
},
- "node_modules/axios/node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "license": "MIT",
- "dependencies": {
- "debug": "4"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/axios/node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "license": "MIT",
- "dependencies": {
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/babel-plugin-polyfill-corejs2": {
"version": "0.4.17",
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.17.tgz",
@@ -2957,9 +2714,9 @@
}
},
"node_modules/babel-plugin-react-native-web": {
- "version": "0.21.2",
- "resolved": "https://registry.npmjs.org/babel-plugin-react-native-web/-/babel-plugin-react-native-web-0.21.2.tgz",
- "integrity": "sha512-SPD0J6qjJn8231i0HZhlAGH6NORe+QvRSQM2mwQEzJ2Fb3E4ruWTiiicPlHjmeWShDXLcvoorOCXjeR7k/lyWA==",
+ "version": "0.21.3",
+ "resolved": "https://registry.npmjs.org/babel-plugin-react-native-web/-/babel-plugin-react-native-web-0.21.3.tgz",
+ "integrity": "sha512-e4fG8NbyRvk5GwU/7G2U9WxzPYtpC4IQN28AyRDzKE0kvywgohq8vT2x0/xBfg8a0RfSkXLlHAtUAGlSy3VhAw==",
"license": "MIT"
},
"node_modules/babel-plugin-syntax-hermes-parser": {
@@ -2981,9 +2738,9 @@
}
},
"node_modules/babel-preset-expo": {
- "version": "57.0.10",
- "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.10.tgz",
- "integrity": "sha512-08bt6bqMZFoQuWO9gkt0EXotbqKHimELFGa1LlKJvY89iKsi4S0FJSFBFJ4pn9NZvofet48HIjYDQ0SZJ7bNrg==",
+ "version": "57.0.13",
+ "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.13.tgz",
+ "integrity": "sha512-OOl3lqNQ4IagJfsNgtxuna0wpTWt1BswdyktGTOJ5EJCgdQUk/B2vaj/jsl03+kMyuIvpxKioVtbTzxh3mdvvQ==",
"license": "MIT",
"dependencies": {
"@babel/generator": "^7.20.5",
@@ -3032,7 +2789,7 @@
"peerDependencies": {
"@babel/runtime": "^7.20.0",
"expo": "*",
- "expo-widgets": "^57.0.16",
+ "expo-widgets": "^57.0.21",
"react-refresh": ">=0.14.0 <1.0.0"
},
"peerDependenciesMeta": {
@@ -3077,9 +2834,9 @@
"license": "MIT"
},
"node_modules/baseline-browser-mapping": {
- "version": "2.11.21",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.21.tgz",
- "integrity": "sha512-uh8vpY/1/YyFkunIDFH/12p7/7VdPKA1hejMVEbdkEaWnUz0Hesvx5EbiU6XxjyHZIOju+ZMbQJkRh+es3/spQ==",
+ "version": "2.11.26",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.26.tgz",
+ "integrity": "sha512-GLQdD3y6UF8iVuMJl5fHgE4jdn/ua7n+toKfLgNlg3BqQtOZjpy68T8Tup8/wGWZCDlm7KMg7tPb4MPn7oN0TQ==",
"license": "Apache-2.0",
"bin": {
"baseline-browser-mapping": "dist/cli.cjs"
@@ -3119,9 +2876,9 @@
}
},
"node_modules/brace-expansion": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
- "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
@@ -3143,9 +2900,9 @@
}
},
"node_modules/browserslist": {
- "version": "4.28.9",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.9.tgz",
- "integrity": "sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg==",
+ "version": "4.29.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.2.tgz",
+ "integrity": "sha512-/u9r8k8ue4ZhHCw9ovDtltpWdXeXzjhdxCGj6vm1RGLPXb8lu33EMdoCHF5Sx8oYBS+Q/FYYNmAqlHncxR3RmA==",
"funding": [
{
"type": "opencollective",
@@ -3162,11 +2919,11 @@
],
"license": "MIT",
"dependencies": {
- "baseline-browser-mapping": "^2.11.20",
- "caniuse-lite": "^1.0.30001810",
- "electron-to-chromium": "^1.5.420",
- "node-releases": "^2.0.54",
- "update-browserslist-db": "^1.3.2"
+ "baseline-browser-mapping": "^2.11.26",
+ "caniuse-lite": "^1.0.30001812",
+ "electron-to-chromium": "^1.5.439",
+ "node-releases": "^2.0.57",
+ "update-browserslist-db": "^1.3.3"
},
"bin": {
"browserslist": "cli.js"
@@ -3225,9 +2982,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001810",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",
- "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",
+ "version": "1.0.30001812",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001812.tgz",
+ "integrity": "sha512-qN+QNNBr93TCmFrmte0bBCjSDMuRvt78VlHT99qIGPszm4QsqCX8lnyWUFkHi8B7ZBAPq8SH+UqyXNy/odMdng==",
"funding": [
{
"type": "opencollective",
@@ -3425,14 +3182,15 @@
}
},
"node_modules/compression": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz",
- "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==",
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.2.tgz",
+ "integrity": "sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==",
"license": "MIT",
"dependencies": {
"bytes": "3.1.2",
"compressible": "~2.0.18",
"debug": "2.6.9",
+ "destroy": "1.2.0",
"negotiator": "~0.6.4",
"on-headers": "~1.1.0",
"safe-buffer": "5.2.1",
@@ -3440,6 +3198,10 @@
},
"engines": {
"node": ">= 0.8.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
}
},
"node_modules/compression/node_modules/debug": {
@@ -3686,9 +3448,9 @@
"license": "MIT"
},
"node_modules/electron-to-chromium": {
- "version": "1.5.422",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.422.tgz",
- "integrity": "sha512-UvA/32XqrLDdZSn7Jllo1AYNcWji/G0d5M0GTViE7KoGBiMunw3a34Sb2KO4ZZyrSEhqsxFoVhWWJshdyfKqJA==",
+ "version": "1.5.439",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.439.tgz",
+ "integrity": "sha512-qu6QIPXhsb+CRcAiTMNjR4A1y/7tCYKkKjr5CZXRVih6qkDf79peZ2BpEU3qoDBNCRrcy3Mra3X9nG5oruuA7Q==",
"license": "ISC"
},
"node_modules/emoji-regex": {
@@ -3806,31 +3568,31 @@
}
},
"node_modules/expo": {
- "version": "57.0.20",
- "resolved": "https://registry.npmjs.org/expo/-/expo-57.0.20.tgz",
- "integrity": "sha512-H57GWLLpNPrltsrjvx6ROsMecoFQza7h9OzujUjBsaY+aDL+bj3GsZaH3T5v5B96R7txuidUwjUh5q5hi3qttg==",
+ "version": "57.0.25",
+ "resolved": "https://registry.npmjs.org/expo/-/expo-57.0.25.tgz",
+ "integrity": "sha512-oqtX4PekGgU+pBQfsbnbwxh5tKG58o27mN13wTmAhRPlQyK9SHICfCNHxBo+uQyT1BlI3OLhqTwu1qKmHYL5Ug==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.20.0",
- "@expo/cli": "^57.0.22",
+ "@expo/cli": "^57.0.27",
"@expo/config": "~57.0.9",
"@expo/config-plugins": "~57.0.9",
"@expo/devtools": "~57.0.1",
"@expo/dom-webview": "~57.0.1",
- "@expo/fingerprint": "^0.20.12",
+ "@expo/fingerprint": "^0.20.13",
"@expo/local-build-cache-provider": "^57.0.8",
"@expo/log-box": "^57.0.4",
"@expo/metro": "~56.0.2",
"@expo/metro-config": "~57.0.12",
"@ungap/structured-clone": "^1.3.0",
- "babel-preset-expo": "~57.0.10",
- "expo-asset": "~57.0.16",
- "expo-constants": "~57.0.17",
- "expo-file-system": "~57.0.6",
- "expo-font": "~57.0.3",
- "expo-keep-awake": "~57.0.1",
- "expo-modules-autolinking": "~57.0.12",
- "expo-modules-core": "~57.0.16",
+ "babel-preset-expo": "~57.0.13",
+ "expo-asset": "~57.0.18",
+ "expo-constants": "~57.0.19",
+ "expo-file-system": "~57.0.7",
+ "expo-font": "~57.0.4",
+ "expo-keep-awake": "~57.0.2",
+ "expo-modules-autolinking": "~57.0.13",
+ "expo-modules-core": "~57.0.19",
"pretty-format": "^29.7.0",
"react-refresh": "^0.14.2",
"whatwg-url-minimum": "^0.1.2"
@@ -3868,13 +3630,13 @@
}
},
"node_modules/expo-asset": {
- "version": "57.0.16",
- "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-57.0.16.tgz",
- "integrity": "sha512-IBRfQdW3iFT+GOBERMZLZM1MUNyrjMgMskuD0elVZ1ae44858UFlTJkHO3f8vi+u5zuv7O7KofsiN8NMG/uWzw==",
+ "version": "57.0.18",
+ "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-57.0.18.tgz",
+ "integrity": "sha512-zDIQkUr0NM2S7YRj98Zohf/OBuM1q0o4ctxLz1C1oe4/33lHNLjp+2v3qUtBWVwn0zKka8UGADmS8M+83Wi6pw==",
"license": "MIT",
"dependencies": {
"@expo/image-utils": "^0.11.5",
- "expo-constants": "~57.0.17"
+ "expo-constants": "~57.0.19"
},
"peerDependencies": {
"expo": "*",
@@ -3882,10 +3644,36 @@
"react-native": "*"
}
},
+ "node_modules/expo-build-properties": {
+ "version": "57.0.22",
+ "resolved": "https://registry.npmjs.org/expo-build-properties/-/expo-build-properties-57.0.22.tgz",
+ "integrity": "sha512-A5oRf2I02XDRu2NnqKo7Au5kUu244unvyoRMUsB+xvg/BOlsR+G/oyDFGkjbda1cJbeKm9eqposIXbA2ri5UrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@expo/schema-utils": "^57.0.2",
+ "resolve-from": "^5.0.0",
+ "semver": "^7.6.0"
+ },
+ "peerDependencies": {
+ "expo": "*"
+ }
+ },
+ "node_modules/expo-build-properties/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/expo-constants": {
- "version": "57.0.17",
- "resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-57.0.17.tgz",
- "integrity": "sha512-cPWYBKN1SEbg2lXg2f8VkePJqGZrJPLvVdQDCTfbFu9sQHO1M31Y1zILReUuGnmt/VKeUz40ze579vR00xGu/A==",
+ "version": "57.0.19",
+ "resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-57.0.19.tgz",
+ "integrity": "sha512-3eK1kZRwCdMizQLlM/PPlPwjaPnB5qKvdRDMBMnB1ZxmvWJBf9TB4uEO4DMMfIPaFUxYFs29dsR5fPr1gh3FTQ==",
"license": "MIT",
"dependencies": {
"@expo/env": "~2.4.3"
@@ -3896,9 +3684,9 @@
}
},
"node_modules/expo-device": {
- "version": "57.0.1",
- "resolved": "https://registry.npmjs.org/expo-device/-/expo-device-57.0.1.tgz",
- "integrity": "sha512-jyEMDUticH+dhcL3GHa2aiifOvGXJsmb3oVT2R2q4i8bN7Bddy61+NkpMmuS2VAZrvoLQwf0TJJ/1vi1ukvutA==",
+ "version": "57.0.2",
+ "resolved": "https://registry.npmjs.org/expo-device/-/expo-device-57.0.2.tgz",
+ "integrity": "sha512-1A0/FICR3CgrH43FeiDQP3l5eHDmiMoh4EjXfhfoHHkMgdBQdyD0kwDWskiGZlQ3E0Nd0LHkCFH6vJ1ofm/jow==",
"license": "MIT",
"dependencies": {
"ua-parser-js": "^0.7.33"
@@ -3908,9 +3696,9 @@
}
},
"node_modules/expo-file-system": {
- "version": "57.0.6",
- "resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-57.0.6.tgz",
- "integrity": "sha512-pm8PMYEW6BnVOCBJ7df9FcDmQtE1tqImuYphlfYe1ipQRLYtdCayRczJcbKIsnB3mqEyp4gC2gWmMbsAsAOjVg==",
+ "version": "57.0.7",
+ "resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-57.0.7.tgz",
+ "integrity": "sha512-1vkZRadOsIputFDBcclqBa1pO3iXOO6iIsdqJipQWw4V5TSnWgmRTuOF7ro8IzrVue+PHbum++KCG3Tawem4cg==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
@@ -3918,9 +3706,9 @@
}
},
"node_modules/expo-font": {
- "version": "57.0.3",
- "resolved": "https://registry.npmjs.org/expo-font/-/expo-font-57.0.3.tgz",
- "integrity": "sha512-kiVUnc2A8vAvO2FfDJTsQa5BwmY+PAkof/1wRb5MOkcX1jtiaSTwz9gCUAyscMBFLundZDmZrLy1P7LZVC+NvA==",
+ "version": "57.0.4",
+ "resolved": "https://registry.npmjs.org/expo-font/-/expo-font-57.0.4.tgz",
+ "integrity": "sha512-7WOMC2oA6xCfOm8bbofqWn2bIqyWFm7YLEnpc/gA1MJH0Ll0TfT/3+CqRkoW2eNRWMS8sxrz5WukUmSvmNquHA==",
"license": "MIT",
"dependencies": {
"fontfaceobserver": "^2.1.0"
@@ -3932,9 +3720,9 @@
}
},
"node_modules/expo-glass-effect": {
- "version": "57.0.1",
- "resolved": "https://registry.npmjs.org/expo-glass-effect/-/expo-glass-effect-57.0.1.tgz",
- "integrity": "sha512-m/n8maxqNcHk6ZDhuqXBfD5Kt1Iz3M8xykVgdB0iSCIXvF70IqWXmQhX8Psswhrp8eZ+3r0mAD0Jh/2gFA3QaA==",
+ "version": "57.0.4",
+ "resolved": "https://registry.npmjs.org/expo-glass-effect/-/expo-glass-effect-57.0.4.tgz",
+ "integrity": "sha512-/AG2Kljbqfgxu+GchI2YFIbxiF9cPsIpCy4iNDzlRiZk9rvR6BwRfB6gfQVu3V2ExaoGf2h5IsEnqVI5MYNBAg==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
@@ -3943,9 +3731,9 @@
}
},
"node_modules/expo-image": {
- "version": "57.0.4",
- "resolved": "https://registry.npmjs.org/expo-image/-/expo-image-57.0.4.tgz",
- "integrity": "sha512-DLVNjqIMLb71wh0F27kRv7nA9i4g80fvkVugiimVgGnO7Iot+gRSv5VhrFJCvX/OlSzbGQqd/3ktlEaPGFqP7g==",
+ "version": "57.0.5",
+ "resolved": "https://registry.npmjs.org/expo-image/-/expo-image-57.0.5.tgz",
+ "integrity": "sha512-jOm5lofaIKXhQ7i0Hz3I5JuNULw/aghmpIPZXddwQcEtw8+wUhlozq3M7LbsOrcsBEapcG4jFs85DsfuFoz1tQ==",
"license": "MIT",
"dependencies": {
"sf-symbols-typescript": "^2.2.0"
@@ -3963,9 +3751,9 @@
}
},
"node_modules/expo-keep-awake": {
- "version": "57.0.1",
- "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-57.0.1.tgz",
- "integrity": "sha512-28lkFImeXTS+bhAjuCFV7w7tW5bXg27BJVrxv+nC/nyYa86qEa0oFeHwqol6ha5k4pdVDQgBF09GM4A1k76Ssg==",
+ "version": "57.0.2",
+ "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-57.0.2.tgz",
+ "integrity": "sha512-GqgH746wtJImmsbyHmCQoi7cOslKuWQBbJHXr53S35Bpf5UvxCAztvnitUEd7D0QvFN2rvkOhylbZpgZZfBLlQ==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
@@ -3973,9 +3761,9 @@
}
},
"node_modules/expo-linear-gradient": {
- "version": "57.0.1",
- "resolved": "https://registry.npmjs.org/expo-linear-gradient/-/expo-linear-gradient-57.0.1.tgz",
- "integrity": "sha512-CpS8eMqoIWcHVGKV66zbDvzotCw9qYp3f8CuI9N+h1LaO0tMLUzBpkhAKePUsXlpN3yolYlHFSPkfVZ/uSh+iA==",
+ "version": "57.0.2",
+ "resolved": "https://registry.npmjs.org/expo-linear-gradient/-/expo-linear-gradient-57.0.2.tgz",
+ "integrity": "sha512-eGNSfcbdXYvw0B/TQ3nmXKQgj0jLUi3EgsXGlvI79rlXg5RR5dQTkY2yqkf7BQDM3PMd3tqBMZdsLhvBqSUaMg==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
@@ -3984,12 +3772,12 @@
}
},
"node_modules/expo-linking": {
- "version": "57.0.9",
- "resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-57.0.9.tgz",
- "integrity": "sha512-TQJe3NsnpZXApBg1n6DKaZ4TNhYm+iYWq7W9rTp+G44IBMZSUcI8ba+ffYC/LMY1qw+95AuBPIF1zTx1NQoTXw==",
+ "version": "57.0.11",
+ "resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-57.0.11.tgz",
+ "integrity": "sha512-bfTyiPb8szacs8XkGowXt5ssH/vbF26vFG8WUWQar8CcRpQcIzXY980ZkP7pK7Pcdy5MattwFdujrWOxwv5s3Q==",
"license": "MIT",
"dependencies": {
- "expo-constants": "~57.0.17",
+ "expo-constants": "~57.0.19",
"invariant": "^2.2.4"
},
"peerDependencies": {
@@ -3998,9 +3786,9 @@
}
},
"node_modules/expo-modules-autolinking": {
- "version": "57.0.12",
- "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-57.0.12.tgz",
- "integrity": "sha512-Q8KAlq37nLKsQ+HsS9NpQVpd5jCgqtu694TDUNHBUBpV9ViD82mRBh8Uug/h68RG9xnLS+kuL4nYaCuFRghHjg==",
+ "version": "57.0.13",
+ "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-57.0.13.tgz",
+ "integrity": "sha512-Hj5NjZRlfccazhKab+wK19leRVUr1Y/PUERaRvegIbUSkq4GVxKq6lU9QHlKQyC16MdD/VS4iwsiLivB4o7lvQ==",
"license": "MIT",
"dependencies": {
"@expo/require-utils": "^57.0.5",
@@ -4013,13 +3801,13 @@
}
},
"node_modules/expo-modules-core": {
- "version": "57.0.16",
- "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-57.0.16.tgz",
- "integrity": "sha512-vPbxDOdvG6Ucpws5ucdbQa+nNmdxKONS1fTg92sy0p4TnHX8hBiExtbrtUA/5+1t3FRCUuiy29/1nJEGdt3E4A==",
+ "version": "57.0.19",
+ "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-57.0.19.tgz",
+ "integrity": "sha512-eAJwa5u30r4BTT8cFAcrY3809qG1cPszmEci7//+RjWGA1OMXtwirhVY1H+YtCJPyVGs9MuwrIjqQDMReguG2g==",
"license": "MIT",
"dependencies": {
"@expo/expo-modules-macros-plugin": "0.6.1",
- "expo-modules-jsi": "~57.0.8",
+ "expo-modules-jsi": "~57.1.1",
"invariant": "^2.2.4"
},
"peerDependencies": {
@@ -4034,24 +3822,24 @@
}
},
"node_modules/expo-modules-jsi": {
- "version": "57.0.8",
- "resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-57.0.8.tgz",
- "integrity": "sha512-MFwvKP0FXLkEET27KsKvOh/L7Dpu2d00UgzAlmKozJgtI23WTKSyKPxu+EOSs9peSgkHzKI0vQOhWjOseGBMkQ==",
+ "version": "57.1.1",
+ "resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-57.1.1.tgz",
+ "integrity": "sha512-ssnwz3ZuIgCbZj5A3J6NlhQrXZojg+BjkeWrOWqVJhyMHlV/A/cRT7s986chKku97BFt6ucmDu6/BCzrV45Wcw==",
"license": "MIT",
"peerDependencies": {
"react-native": "*"
}
},
"node_modules/expo-router": {
- "version": "57.0.19",
- "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-57.0.19.tgz",
- "integrity": "sha512-JovzZ066+qhykyJLC4hSEJpM8ToVWnJqbxmTN7USzARM0HgRR/g05a75f/EIsY4S//hbPGm6wGl/ObcCVtAX+A==",
+ "version": "57.0.23",
+ "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-57.0.23.tgz",
+ "integrity": "sha512-u/iWSdQovEma/owymgz8etxGAif5ZrC8YdXYeGQhDRZwXpAvraordYV0SWej1QWWbYoIkgXcoqHVkgsAff8P4w==",
"license": "MIT",
"dependencies": {
"@expo/log-box": "^57.0.4",
- "@expo/metro-runtime": "^57.0.15",
+ "@expo/metro-runtime": "^57.0.16",
"@expo/schema-utils": "^57.0.2",
- "@expo/ui": "^57.0.16",
+ "@expo/ui": "^57.0.20",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-tabs": "^1.1.12",
"@react-native-masked-view/masked-view": "^0.3.2",
@@ -4059,12 +3847,12 @@
"color": "^4.2.3",
"debug": "^4.3.4",
"escape-string-regexp": "^4.0.0",
- "expo-glass-effect": "^57.0.1",
+ "expo-glass-effect": "^57.0.4",
"expo-server": "^57.0.3",
- "expo-symbols": "^57.0.2",
+ "expo-symbols": "^57.0.3",
"fast-deep-equal": "^3.1.3",
"invariant": "^2.2.4",
- "nanoid": "^3.3.8",
+ "nanoid": "^3.3.18",
"query-string": "^7.1.3",
"react-fast-compare": "^3.2.2",
"react-is": "^19.1.0",
@@ -4078,11 +3866,11 @@
},
"peerDependencies": {
"@expo/log-box": "^57.0.4",
- "@expo/metro-runtime": "^57.0.15",
+ "@expo/metro-runtime": "^57.0.16",
"@testing-library/react-native": ">= 13.2.0",
"expo": "*",
- "expo-constants": "^57.0.17",
- "expo-linking": "^57.0.9",
+ "expo-constants": "^57.0.19",
+ "expo-linking": "^57.0.11",
"react": "*",
"react-dom": "*",
"react-native": "*",
@@ -4114,10 +3902,155 @@
}
}
},
- "node_modules/expo-secure-store": {
+ "node_modules/expo-router/node_modules/@radix-ui/react-collection": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.15.tgz",
+ "integrity": "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.5",
+ "@radix-ui/react-context": "1.2.2",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-slot": "1.3.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/expo-router/node_modules/@radix-ui/react-presence": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",
+ "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.4"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/expo-router/node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",
+ "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.3.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/expo-router/node_modules/@radix-ui/react-roving-focus": {
+ "version": "1.1.19",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.19.tgz",
+ "integrity": "sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.7",
+ "@radix-ui/react-collection": "1.1.15",
+ "@radix-ui/react-compose-refs": "1.1.5",
+ "@radix-ui/react-context": "1.2.2",
+ "@radix-ui/react-direction": "1.1.4",
+ "@radix-ui/react-id": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-use-callback-ref": "1.1.4",
+ "@radix-ui/react-use-controllable-state": "1.2.6",
+ "@radix-ui/react-use-is-hydrated": "0.1.3",
+ "@radix-ui/react-use-layout-effect": "1.1.4"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/expo-router/node_modules/@radix-ui/react-tabs": {
+ "version": "1.1.21",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.21.tgz",
+ "integrity": "sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.7",
+ "@radix-ui/react-context": "1.2.2",
+ "@radix-ui/react-direction": "1.1.4",
+ "@radix-ui/react-id": "1.1.4",
+ "@radix-ui/react-presence": "1.1.10",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-roving-focus": "1.1.19",
+ "@radix-ui/react-use-controllable-state": "1.2.6"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/expo-screen-capture": {
"version": "57.0.3",
- "resolved": "https://registry.npmjs.org/expo-secure-store/-/expo-secure-store-57.0.3.tgz",
- "integrity": "sha512-w7XkSQeUiYXPoKXo1jSrQqql7pyCSyIzOp2k0apsZZBE+RkoLTQIMjcbqc181y6KgupfNnYxkaKe+4MEg94+SA==",
+ "resolved": "https://registry.npmjs.org/expo-screen-capture/-/expo-screen-capture-57.0.3.tgz",
+ "integrity": "sha512-EpTd6tBgX2nWKJUvYDIrnsC2xWGJnlOLqN48EzLwPTQlbbwDUeWwt+4RDZOyFkWCa67XiUbrzIEOJApNBVZSow==",
+ "license": "MIT",
+ "peerDependencies": {
+ "expo": "*",
+ "react": "*"
+ }
+ },
+ "node_modules/expo-secure-store": {
+ "version": "57.0.4",
+ "resolved": "https://registry.npmjs.org/expo-secure-store/-/expo-secure-store-57.0.4.tgz",
+ "integrity": "sha512-7zBA1RThURTXdP4w65kBzZNbcSsfArqVd+p+ETAnPRWXO8J296Qd0YaCVyRpJ0HSwlCnGdvOnqO+NgSreHsOhA==",
"license": "MIT",
"peerDependencies": {
"expo": "*"
@@ -4133,9 +4066,9 @@
}
},
"node_modules/expo-splash-screen": {
- "version": "57.0.8",
- "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-57.0.8.tgz",
- "integrity": "sha512-BEsrKg4niYBZa5AFzWRyGqxA4ZemtBOPwbCy+C336iGYYPuZYLEgWJGmm2xD1gRfCdrM/TP+l2ONd86Zvk3KyA==",
+ "version": "57.0.9",
+ "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-57.0.9.tgz",
+ "integrity": "sha512-7cKDn7uBwg0RkcmY015/5j9st4msWJ4zQiPmQdVZoppW3cFSbv05n7xhM6CjUU466Tx4VRTqDF21HuIHkmnEtA==",
"license": "MIT",
"dependencies": {
"@expo/config-plugins": "~57.0.9",
@@ -4158,9 +4091,9 @@
}
},
"node_modules/expo-symbols": {
- "version": "57.0.2",
- "resolved": "https://registry.npmjs.org/expo-symbols/-/expo-symbols-57.0.2.tgz",
- "integrity": "sha512-qZ0iqOflm5lZGwRsQ5Y8sDksw3GAUKwHSX1bJBoocXf7gu14vafIXXYWte+JT9VfXAUGyKodJhLHP/GoOrcNWg==",
+ "version": "57.0.3",
+ "resolved": "https://registry.npmjs.org/expo-symbols/-/expo-symbols-57.0.3.tgz",
+ "integrity": "sha512-uuK5yHLVR7kExUCrO/ItBvp/kp1maQ9Nkb6KvNy5ZUQnN0NMKwuhJ4GvbfS9N3ACmvCjTT4gKvg4yH5UuKIYNA==",
"license": "MIT",
"dependencies": {
"@expo-google-fonts/material-symbols": "^0.4.1",
@@ -4174,9 +4107,9 @@
}
},
"node_modules/expo-system-ui": {
- "version": "57.0.3",
- "resolved": "https://registry.npmjs.org/expo-system-ui/-/expo-system-ui-57.0.3.tgz",
- "integrity": "sha512-3N3BoagGojEvQw0h7kL0Lvv2LrVjqEvODSNS+Nc9lj/kzaTaVx4K1HI8qqxeALMf5jui3rLP2b3Ai2pXotoNuA==",
+ "version": "57.0.4",
+ "resolved": "https://registry.npmjs.org/expo-system-ui/-/expo-system-ui-57.0.4.tgz",
+ "integrity": "sha512-z//rxQJzhTNA1PcKrUtWmrd21jAS3nEDu1b0n8B/7LTTR933OcsZYP1HnbaZifuo2ZH/h7nce2Ow61WZ1Ig2bg==",
"license": "MIT",
"dependencies": {
"@react-native/normalize-colors": "0.86.3",
@@ -4194,9 +4127,9 @@
}
},
"node_modules/expo-web-browser": {
- "version": "57.0.2",
- "resolved": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-57.0.2.tgz",
- "integrity": "sha512-3vl5kvd7PB48ub6PpNIJUuPxO8xVa6D8RnIgNba6SXRwqFprOfeEZgwTgtm41kz0AAtvMOztUVNEUkwrHKjqMQ==",
+ "version": "57.0.3",
+ "resolved": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-57.0.3.tgz",
+ "integrity": "sha512-+ecvhyS/PdWkpv4ai6FF1Trd6Y/4kn/eQ3O86mie2ecU3w+I8bKZh13kppY/jw1uSL7yikt03L5W/iiHojrFwQ==",
"license": "MIT",
"peerDependencies": {
"expo": "*",
@@ -4204,9 +4137,9 @@
}
},
"node_modules/expo/node_modules/@expo/cli": {
- "version": "57.0.22",
- "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-57.0.22.tgz",
- "integrity": "sha512-MdToR0ZZ1yjfkqbP1jcA7viS9duMPGq/C+qQ/21dtq+en583Ghp+O11BP/wujHa9ZGRtXimzuKPZDpPresVE0g==",
+ "version": "57.0.27",
+ "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-57.0.27.tgz",
+ "integrity": "sha512-Jauk4chxmpVG5ElrMLTCwjFP20jbYU7PB4l3LYV8j+4e/3HU5jdl7qTQ4eVy1AaDUE9Ia2NCQ5A9kar2V1gaLg==",
"license": "MIT",
"dependencies": {
"@expo/code-signing-certificates": "^0.0.6",
@@ -4220,13 +4153,13 @@
"@expo/log-box": "^57.0.4",
"@expo/metro": "~56.0.2",
"@expo/metro-config": "~57.0.12",
- "@expo/metro-file-map": "^57.0.2",
+ "@expo/metro-file-map": "^57.0.3",
"@expo/osascript": "^2.7.1",
"@expo/package-manager": "^1.13.1",
"@expo/plist": "^0.8.1",
- "@expo/prebuild-config": "^57.0.15",
+ "@expo/prebuild-config": "^57.0.16",
"@expo/require-utils": "^57.0.5",
- "@expo/router-server": "^57.0.9",
+ "@expo/router-server": "^57.0.11",
"@expo/schema-utils": "^57.0.2",
"@expo/spawn-async": "^1.8.0",
"@expo/ws-tunnel": "^2.0.0",
@@ -4287,18 +4220,18 @@
}
},
"node_modules/expo/node_modules/@expo/cli/node_modules/@expo/router-server": {
- "version": "57.0.9",
- "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-57.0.9.tgz",
- "integrity": "sha512-/PxRQozFesIyCJZOAtrQE8XcmcojNiL5ctPMQnbE4ojC2EJPu0zc7c0Y4PuXsoRxrZxm8Usw76/lCVrXcfTZ2w==",
+ "version": "57.0.11",
+ "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-57.0.11.tgz",
+ "integrity": "sha512-0QxbqEkceb1WDeu5VqNdnTPVHlm3U183F7Y1t5LMohmGRAkHVL0PB4tCHBvEqKpLzOzHVObw3reGkJ1tX48h8Q==",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"peerDependencies": {
- "@expo/metro-runtime": "^57.0.15",
+ "@expo/metro-runtime": "^57.0.16",
"expo": "*",
- "expo-constants": "^57.0.17",
- "expo-font": "^57.0.3",
+ "expo-constants": "^57.0.19",
+ "expo-font": "^57.0.4",
"expo-router": "*",
"expo-server": "^57.0.3",
"react": "*",
@@ -4357,27 +4290,6 @@
"node": ">=8"
}
},
- "node_modules/expo/node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/expo/node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "license": "MIT",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
"node_modules/expo/node_modules/negotiator": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
@@ -4400,9 +4312,9 @@
}
},
"node_modules/expo/node_modules/ws": {
- "version": "8.21.3",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
- "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
+ "version": "8.22.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz",
+ "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
@@ -4634,27 +4546,6 @@
"node": ">= 6"
}
},
- "node_modules/form-data/node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/form-data/node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "license": "MIT",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
"node_modules/fresh": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
@@ -4913,16 +4804,16 @@
}
},
"node_modules/https-proxy-agent": {
- "version": "7.0.6",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
"license": "MIT",
"dependencies": {
- "agent-base": "^7.1.2",
+ "agent-base": "6",
"debug": "4"
},
"engines": {
- "node": ">= 14"
+ "node": ">= 6"
}
},
"node_modules/hyphenate-style-name": {
@@ -4971,12 +4862,12 @@
"license": "MIT"
},
"node_modules/is-core-module": {
- "version": "2.16.2",
- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz",
- "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
+ "version": "2.17.0",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz",
+ "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==",
"license": "MIT",
"dependencies": {
- "hasown": "^2.0.3"
+ "hasown": "^2.0.4"
},
"engines": {
"node": ">= 0.4"
@@ -5796,6 +5687,28 @@
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
}
},
+ "node_modules/metro-cache/node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/metro-cache/node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/metro-config": {
"version": "0.84.6",
"resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.84.6.tgz",
@@ -5815,6 +5728,15 @@
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
}
},
+ "node_modules/metro-config/node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/metro-config/node_modules/hermes-estree": {
"version": "0.35.0",
"resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.35.0.tgz",
@@ -5830,6 +5752,19 @@
"hermes-estree": "0.35.0"
}
},
+ "node_modules/metro-config/node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/metro-config/node_modules/metro": {
"version": "0.84.6",
"resolved": "https://registry.npmjs.org/metro/-/metro-0.84.6.tgz",
@@ -6065,6 +6000,31 @@
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
}
},
+ "node_modules/metro-config/node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/metro-config/node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/metro-config/node_modules/ob1": {
"version": "0.84.6",
"resolved": "https://registry.npmjs.org/ob1/-/ob1-0.84.6.tgz",
@@ -6277,6 +6237,31 @@
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
}
},
+ "node_modules/metro/node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/metro/node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/micromatch": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
@@ -6315,28 +6300,24 @@
}
},
"node_modules/mime-db": {
- "version": "1.54.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
- "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"license": "MIT",
"dependencies": {
- "mime-db": "^1.54.0"
+ "mime-db": "1.52.0"
},
"engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
+ "node": ">= 0.6"
}
},
"node_modules/mimic-fn": {
@@ -6397,9 +6378,9 @@
"license": "MIT"
},
"node_modules/nanoid": {
- "version": "3.3.18",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
- "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
+ "version": "3.3.19",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
"funding": [
{
"type": "github",
@@ -6466,9 +6447,9 @@
"license": "MIT"
},
"node_modules/node-releases": {
- "version": "2.0.54",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.54.tgz",
- "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==",
+ "version": "2.0.57",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz",
+ "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",
"license": "MIT",
"engines": {
"node": ">=18"
@@ -6739,9 +6720,9 @@
}
},
"node_modules/path-scurry/node_modules/lru-cache": {
- "version": "11.5.2",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz",
- "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==",
+ "version": "11.5.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",
+ "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==",
"license": "BlueOak-1.0.0",
"engines": {
"node": "20 || >=22"
@@ -6989,9 +6970,9 @@
}
},
"node_modules/react-is": {
- "version": "19.2.8",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.8.tgz",
- "integrity": "sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==",
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.3.0.tgz",
+ "integrity": "sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA==",
"license": "MIT"
},
"node_modules/react-native": {
@@ -7156,9 +7137,9 @@
}
},
"node_modules/react-native-toast-message": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/react-native-toast-message/-/react-native-toast-message-2.5.0.tgz",
- "integrity": "sha512-gQzICyDZ29Vn2r9ntJG4khW5fxolDNLWcItFJJZgm3cw4o62gUabWprmslVE3RUAkKjto2KZvIMheMbuyozjLQ==",
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/react-native-toast-message/-/react-native-toast-message-2.5.2.tgz",
+ "integrity": "sha512-jqCuWO3njXkdKn6Cs+3EI7Wdw1jvg9JCaSgeQ/hrRF83baeElZRicxv5suz3+igjnDPLFYnruUwpluCBYeWO8Q==",
"license": "MIT",
"peerDependencies": {
"react": "*",
@@ -7166,9 +7147,9 @@
}
},
"node_modules/react-native-web": {
- "version": "0.21.2",
- "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.21.2.tgz",
- "integrity": "sha512-SO2t9/17zM4iEnFvlu2DA9jqNbzNhoUP+AItkoCOyFmDMOhUnBBznBDCYN92fGdfAkfQlWzPoez6+zLxFNsZEg==",
+ "version": "0.21.3",
+ "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.21.3.tgz",
+ "integrity": "sha512-ozvZM0z8UWfduoKnYx03KUccM2LdHNaW8nNJu4Md0glyqWL+Ysa6dRZzMOO6Yp/hhTYT9yluwjknpd9l04uvDw==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.18.6",
@@ -7406,9 +7387,9 @@
"license": "MIT"
},
"node_modules/regjsparser": {
- "version": "0.13.2",
- "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.2.tgz",
- "integrity": "sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ==",
+ "version": "0.13.3",
+ "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.3.tgz",
+ "integrity": "sha512-ycwFAS14Jw4mppvmK4GR/J6u3WpWpjkEApehuHtLc/8VpPNpDMbQ4WjqwplXifGeyKOzHSFLmSPqzksDQE2Sfg==",
"license": "BSD-2-Clause",
"dependencies": {
"jsesc": "~3.1.0"
@@ -8069,9 +8050,9 @@
}
},
"node_modules/undici-types": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
- "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
+ "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
"license": "MIT"
},
"node_modules/unicode-canonical-property-names-ecmascript": {
@@ -8124,9 +8105,9 @@
}
},
"node_modules/update-browserslist-db": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz",
- "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==",
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",
+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
"funding": [
{
"type": "opencollective",
@@ -8206,9 +8187,9 @@
}
},
"node_modules/use-sync-external-store": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
- "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",
+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==",
"license": "MIT",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@@ -8264,6 +8245,165 @@
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"
}
},
+ "node_modules/vaul/node_modules/@radix-ui/react-dialog": {
+ "version": "1.1.23",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.23.tgz",
+ "integrity": "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.5",
+ "@radix-ui/react-context": "1.2.2",
+ "@radix-ui/react-dismissable-layer": "1.1.19",
+ "@radix-ui/react-focus-guards": "1.1.6",
+ "@radix-ui/react-focus-scope": "1.1.16",
+ "@radix-ui/react-id": "1.1.4",
+ "@radix-ui/react-portal": "1.1.17",
+ "@radix-ui/react-presence": "1.1.10",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-slot": "1.3.3",
+ "@radix-ui/react-use-controllable-state": "1.2.6",
+ "@radix-ui/react-use-layout-effect": "1.1.4",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.7.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer": {
+ "version": "1.1.19",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz",
+ "integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.5",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-use-callback-ref": "1.1.4",
+ "@radix-ui/react-use-effect-event": "0.0.5"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vaul/node_modules/@radix-ui/react-focus-scope": {
+ "version": "1.1.16",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.16.tgz",
+ "integrity": "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.5",
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-use-callback-ref": "1.1.4"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vaul/node_modules/@radix-ui/react-portal": {
+ "version": "1.1.17",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz",
+ "integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.10",
+ "@radix-ui/react-use-layout-effect": "1.1.4"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vaul/node_modules/@radix-ui/react-presence": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",
+ "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.4"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vaul/node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",
+ "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.3.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/vlq": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz",
@@ -8435,9 +8575,9 @@
"license": "ISC"
},
"node_modules/yaml": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
- "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
+ "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
"license": "ISC",
"bin": {
"yaml": "bin.mjs"
diff --git a/package.json b/package.json
index e09c599..c4eada5 100644
--- a/package.json
+++ b/package.json
@@ -1,22 +1,32 @@
{
- "name": "my-app",
+ "name": "AcuPedia",
"main": "expo-router/entry",
"version": "1.0.0",
"dependencies": {
+ "@expo-google-fonts/inter": "^0.4.2",
"@expo/ui": "~57.0.16",
- "expo": "~57.0.20",
- "expo-constants": "~57.0.17",
- "expo-device": "~57.0.1",
- "expo-font": "~57.0.3",
+ "@expo/vector-icons": "^15.1.1",
+ "@react-native-async-storage/async-storage": "~2.2.0",
+ "@react-native-community/netinfo": "12.0.1",
+ "@tanstack/react-query": "^5.101.2",
+ "axios": "^1.18.1",
+ "expo": "~57.0.3",
+ "expo-build-properties": "~57.0.22",
+ "expo-constants": "~57.0.19",
+ "expo-device": "~57.0.2",
+ "expo-font": "~57.0.4",
"expo-glass-effect": "~57.0.1",
"expo-image": "~57.0.4",
- "expo-linking": "~57.0.9",
- "expo-router": "~57.0.19",
- "expo-splash-screen": "~57.0.8",
+ "expo-linear-gradient": "~57.0.2",
+ "expo-linking": "~57.0.11",
+ "expo-router": "~57.0.23",
+ "expo-screen-capture": "~57.0.3",
+ "expo-secure-store": "~57.0.4",
+ "expo-splash-screen": "~57.0.9",
"expo-status-bar": "~57.0.1",
"expo-symbols": "~57.0.2",
- "expo-system-ui": "~57.0.3",
- "expo-web-browser": "~57.0.2",
+ "expo-system-ui": "~57.0.4",
+ "expo-web-browser": "~57.0.3",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-native": "0.86.3",
@@ -24,18 +34,10 @@
"react-native-reanimated": "4.5.1",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.26.0",
- "react-native-web": "~0.21.0",
- "react-native-worklets": "0.10.1",
- "@expo-google-fonts/inter": "^0.4.2",
- "@expo/vector-icons": "^15.0.2",
- "@react-native-async-storage/async-storage": "2.2.0",
- "@react-native-community/netinfo": "12.0.1",
- "@tanstack/react-query": "^5.101.2",
- "axios": "^1.18.1",
- "expo-linear-gradient": "~57.0.1",
- "expo-secure-store": "~57.0.2",
"react-native-size-matters": "^0.4.2",
"react-native-toast-message": "^2.3.3",
+ "react-native-web": "~0.21.3",
+ "react-native-worklets": "0.10.1",
"zustand": "^4.5.7"
},
"devDependencies": {
diff --git a/src/app/_layout.tsx b/src/app/_layout.tsx
index 64aaaa5..6611ac0 100644
--- a/src/app/_layout.tsx
+++ b/src/app/_layout.tsx
@@ -105,7 +105,10 @@ try {
// Silently ignore if module exports are immutable in web bundle environment
}
+import { useEffect } from "react";
+import { Alert, Platform } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
+import * as ScreenCapture from "expo-screen-capture";
export default function RootLayout() {
const [fontsLoaded] = useFonts({
@@ -115,6 +118,26 @@ export default function RootLayout() {
"Inter-Bold": Inter_700Bold,
});
+ useEffect(() => {
+ if (Platform.OS === "web") return;
+
+ let isMounted = true;
+ void ScreenCapture.preventScreenCaptureAsync();
+
+ const subscription = ScreenCapture.addScreenshotListener(() => {
+ if (!isMounted) return;
+ Alert.alert(
+ "Confidential Clinical Content",
+ "Acupedia clinical reference materials and diagrams are proprietary. Capturing screenshots is restricted to protect clinical data."
+ );
+ });
+
+ return () => {
+ isMounted = false;
+ subscription?.remove();
+ };
+ }, []);
+
if (!fontsLoaded) {
return null;
}
diff --git a/src/app/profile/change-password.tsx b/src/app/profile/change-password.tsx
new file mode 100644
index 0000000..6a39621
--- /dev/null
+++ b/src/app/profile/change-password.tsx
@@ -0,0 +1,186 @@
+import React, { useState } from "react";
+import {
+ KeyboardAvoidingView,
+ Platform,
+ ScrollView,
+ StyleSheet,
+ View,
+ Alert,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { router } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import PasswordInput from "@/components/forms/PasswordInput";
+import PrimaryButton from "@/components/buttons/PrimaryButton";
+import FieldLabel from "@/components/forms/FieldLabel";
+import { Colors } from "@/theme";
+import { apiClient } from "@/api";
+
+export default function ChangePasswordScreen() {
+ const [currentPassword, setCurrentPassword] = useState("");
+ const [newPassword, setNewPassword] = useState("");
+ const [confirmPassword, setConfirmPassword] = useState("");
+
+ const [currentError, setCurrentError] = useState("");
+ const [newError, setNewError] = useState("");
+ const [confirmError, setConfirmError] = useState("");
+ const [isLoading, setIsLoading] = useState(false);
+
+ const handleUpdatePassword = async () => {
+ let hasError = false;
+ setCurrentError("");
+ setNewError("");
+ setConfirmError("");
+
+ if (!currentPassword) {
+ setCurrentError("Current password is required");
+ hasError = true;
+ }
+
+ if (!newPassword) {
+ setNewError("New password is required");
+ hasError = true;
+ } else if (newPassword.length < 8) {
+ setNewError("New password must be at least 8 characters");
+ hasError = true;
+ } else if (!/[A-Z]/.test(newPassword)) {
+ setNewError("Must contain at least one uppercase letter");
+ hasError = true;
+ } else if (!/[0-9]/.test(newPassword)) {
+ setNewError("Must contain at least one number");
+ hasError = true;
+ } else if (!/[^A-Za-z0-9]/.test(newPassword)) {
+ setNewError("Must contain at least one special character");
+ hasError = true;
+ }
+
+ if (!confirmPassword) {
+ setConfirmError("Please confirm your new password");
+ hasError = true;
+ } else if (newPassword !== confirmPassword) {
+ setConfirmError("Passwords do not match");
+ hasError = true;
+ }
+
+ if (hasError) return;
+
+ setIsLoading(true);
+ try {
+ await apiClient.post("/auth/change-password", {
+ old_password: currentPassword,
+ new_password: newPassword,
+ });
+
+ const msg = "Password updated successfully!";
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ router.back();
+ } else {
+ Alert.alert("Success", msg, [
+ { text: "OK", onPress: () => router.back() },
+ ]);
+ }
+ } catch (err: any) {
+ const errMsg =
+ err?.response?.data?.detail ||
+ "Failed to update password. Please check your current password.";
+ setCurrentError(errMsg);
+ if (Platform.OS === "web") {
+ window.alert(errMsg);
+ } else {
+ Alert.alert("Error", errMsg);
+ }
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ keyboardContainer: {
+ flex: 1,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ form: {
+ marginTop: verticalScale(8),
+ },
+ field: {
+ marginBottom: verticalScale(16),
+ },
+ buttonSpacing: {
+ marginTop: verticalScale(12),
+ },
+});
diff --git a/src/app/profile/edit.tsx b/src/app/profile/edit.tsx
new file mode 100644
index 0000000..91936fc
--- /dev/null
+++ b/src/app/profile/edit.tsx
@@ -0,0 +1,5 @@
+import EditProfileScreen from "@/screens/profile/EditProfileScreen";
+
+export default function EditProfileRoute() {
+ return ;
+}
diff --git a/src/app/settings/about.tsx b/src/app/settings/about.tsx
new file mode 100644
index 0000000..8948797
--- /dev/null
+++ b/src/app/settings/about.tsx
@@ -0,0 +1,159 @@
+import React from "react";
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ Text,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { Ionicons } from "@expo/vector-icons";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import { Colors } from "@/theme";
+
+export default function AboutScreen() {
+ return (
+
+
+
+
+
+
+
+
+
+ Acupedia
+
+ Comprehensive Clinical Acupuncture Encyclopedia
+
+
+ Version 1.0.0 (Build 240)
+
+
+
+
+ About This Platform
+
+ Acupedia is a clinical reference application developed specifically for acupuncture practitioners, researchers, and healthcare professionals. It delivers evidence-based anatomical mappings, point categories, channel pathways, and clinical safety considerations.
+
+
+
+
+ Publisher & Organization
+
+ Published by Panacea Clinical Systems Pvt Ltd. All international rights reserved.
+
+
+
+
+ Medical & Clinical Disclaimer
+
+ The information provided in Acupedia is designed for accredited healthcare practitioners and educational reference only. It is not intended as a substitute for individualized clinical judgment, diagnosis, or emergency intervention.
+
+
+
+
+ © {new Date().getFullYear()} Panacea Clinical Systems. All Rights Reserved.
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ logoSection: {
+ alignItems: "center",
+ marginVertical: verticalScale(16),
+ },
+ logoWrapper: {
+ width: moderateScale(80),
+ height: moderateScale(80),
+ borderRadius: moderateScale(40),
+ backgroundColor: "#DCFCE7",
+ justifyContent: "center",
+ alignItems: "center",
+ marginBottom: verticalScale(12),
+ borderWidth: 1,
+ borderColor: "#BBF7D0",
+ },
+ appName: {
+ fontSize: moderateScale(22),
+ fontWeight: "800",
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(4),
+ },
+ appTagline: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ textAlign: "center",
+ marginBottom: verticalScale(10),
+ },
+ versionBadge: {
+ backgroundColor: "#F1F5F9",
+ paddingHorizontal: moderateScale(10),
+ paddingVertical: verticalScale(4),
+ borderRadius: moderateScale(12),
+ },
+ versionText: {
+ fontSize: moderateScale(11),
+ fontWeight: "600",
+ color: "#64748B",
+ },
+ card: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ padding: moderateScale(18),
+ marginBottom: verticalScale(20),
+ },
+ infoTitle: {
+ fontSize: moderateScale(14),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(6),
+ },
+ infoText: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ lineHeight: moderateScale(19),
+ },
+ disclaimerText: {
+ fontSize: moderateScale(12),
+ color: "#64748B",
+ lineHeight: moderateScale(18),
+ fontStyle: "italic",
+ },
+ separator: {
+ height: 1,
+ backgroundColor: "#F1F5F9",
+ marginVertical: verticalScale(14),
+ },
+ copyrightText: {
+ fontSize: moderateScale(11),
+ color: Colors.textSecondary,
+ textAlign: "center",
+ },
+});
diff --git a/src/app/settings/help-support.tsx b/src/app/settings/help-support.tsx
new file mode 100644
index 0000000..af463cb
--- /dev/null
+++ b/src/app/settings/help-support.tsx
@@ -0,0 +1,239 @@
+import React, { useState } from "react";
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ Text,
+ TouchableOpacity,
+ Alert,
+ Linking,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { Ionicons } from "@expo/vector-icons";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import { Colors } from "@/theme";
+
+interface FAQ {
+ question: string;
+ answer: string;
+}
+
+const FAQS: FAQ[] = [
+ {
+ question: "What is Acupedia?",
+ answer:
+ "Acupedia is a comprehensive clinical reference application designed for acupuncture practitioners, researchers, and students. It offers verified anatomical point mappings, therapeutic indications, needling depths, and clinical protocols.",
+ },
+ {
+ question: "How do I unlock additional clinical modules?",
+ answer:
+ "You can unlock full clinical libraries and specialized modules by visiting the Subscription tab or selecting any locked module to view tier plans.",
+ },
+ {
+ question: "How do I edit my profile information?",
+ answer:
+ "Navigate to the Profile tab or Settings > Edit Profile. You can update your Full Name, Phone Number, and Country.",
+ },
+ {
+ question: "Can I use Acupedia without an internet connection?",
+ answer:
+ "Yes. Once clinical modules and point definitions have been loaded, they remain cached on your device for offline reference in clinical settings.",
+ },
+ {
+ question: "How do I report clinical inaccuracies or suggestions?",
+ answer:
+ "We take clinical accuracy seriously. Please reach out to our editorial and clinical review team directly using the Email Support button below.",
+ },
+];
+
+export default function HelpSupportScreen() {
+ const [expandedIndex, setExpandedIndex] = useState(0);
+
+ const handleContact = () => {
+ Linking.openURL("mailto:support@acupedia.com").catch(() => {
+ Alert.alert(
+ "Contact Support",
+ "Please email our support desk at support@acupedia.com"
+ );
+ });
+ };
+
+ const toggleExpand = (index: number) => {
+ setExpandedIndex(expandedIndex === index ? null : index);
+ };
+
+ return (
+
+
+
+
+
+
+ Find quick answers to common clinical questions or contact our support team.
+
+
+ Frequently Asked Questions
+
+
+ {FAQS.map((faq, index) => {
+ const isExpanded = expandedIndex === index;
+ return (
+
+ toggleExpand(index)}
+ activeOpacity={0.7}
+ >
+ {faq.question}
+
+
+
+ {isExpanded && (
+
+ {faq.answer}
+
+ )}
+
+ {index < FAQS.length - 1 && }
+
+ );
+ })}
+
+
+ Contact Our Team
+
+
+
+
+
+
+ Email Clinical Support
+
+ Response typically within 24 hours (support@acupedia.com)
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ sectionSubtitle: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ marginBottom: verticalScale(16),
+ lineHeight: moderateScale(18),
+ },
+ sectionTitle: {
+ fontSize: moderateScale(13),
+ fontWeight: "700",
+ color: Colors.textSecondary,
+ textTransform: "uppercase",
+ letterSpacing: 0.5,
+ marginBottom: verticalScale(8),
+ marginLeft: moderateScale(4),
+ },
+ faqCard: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ paddingHorizontal: moderateScale(16),
+ marginBottom: verticalScale(24),
+ },
+ faqHeader: {
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "space-between",
+ paddingVertical: verticalScale(14),
+ },
+ questionText: {
+ fontSize: moderateScale(14),
+ fontWeight: "600",
+ color: Colors.textPrimary,
+ flex: 1,
+ marginRight: moderateScale(12),
+ lineHeight: moderateScale(19),
+ },
+ answerContainer: {
+ paddingBottom: verticalScale(14),
+ },
+ answerText: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ lineHeight: moderateScale(19),
+ },
+ separator: {
+ height: 1,
+ backgroundColor: "#F1F5F9",
+ },
+ contactCard: {
+ flexDirection: "row",
+ alignItems: "center",
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ padding: moderateScale(16),
+ },
+ contactIconWrapper: {
+ width: moderateScale(40),
+ height: moderateScale(40),
+ borderRadius: moderateScale(20),
+ backgroundColor: "#DCFCE7",
+ justifyContent: "center",
+ alignItems: "center",
+ },
+ contactTextContainer: {
+ marginLeft: moderateScale(12),
+ flex: 1,
+ },
+ contactLabel: {
+ fontSize: moderateScale(15),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(2),
+ },
+ contactSubLabel: {
+ fontSize: moderateScale(12),
+ color: Colors.textSecondary,
+ lineHeight: moderateScale(16),
+ },
+});
diff --git a/src/app/settings/index.tsx b/src/app/settings/index.tsx
new file mode 100644
index 0000000..b960147
--- /dev/null
+++ b/src/app/settings/index.tsx
@@ -0,0 +1,5 @@
+import SettingsScreen from "@/screens/settings/SettingsScreen";
+
+export default function SettingsRoute() {
+ return ;
+}
diff --git a/src/app/settings/language.tsx b/src/app/settings/language.tsx
new file mode 100644
index 0000000..63a7483
--- /dev/null
+++ b/src/app/settings/language.tsx
@@ -0,0 +1,232 @@
+import React from "react";
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ Text,
+ TouchableOpacity,
+ Alert,
+ Platform,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { router } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import PrimaryButton from "@/components/buttons/PrimaryButton";
+import { Colors } from "@/theme";
+import { useSettingsStore } from "@/store/settings.store";
+
+interface LanguageItem {
+ code: string;
+ label: string;
+ nativeLabel: string;
+ available: boolean;
+}
+
+const LANGUAGES: LanguageItem[] = [
+ {
+ code: "en",
+ label: "English",
+ nativeLabel: "English (US)",
+ available: true,
+ },
+ {
+ code: "hi",
+ label: "Hindi",
+ nativeLabel: "हिन्दी",
+ available: false,
+ },
+ {
+ code: "es",
+ label: "Spanish",
+ nativeLabel: "Español",
+ available: false,
+ },
+ {
+ code: "zh",
+ label: "Chinese",
+ nativeLabel: "中文 (Traditional & Simplified)",
+ available: false,
+ },
+ {
+ code: "fr",
+ label: "French",
+ nativeLabel: "Français",
+ available: false,
+ },
+];
+
+export default function LanguageScreen() {
+ const language = useSettingsStore((state) => state.language);
+ const setLanguage = useSettingsStore((state) => state.setLanguage);
+
+ const handleSelect = (lang: LanguageItem) => {
+ if (!lang.available) {
+ const msg = `${lang.label} translation is in progress and will be available in an upcoming clinical taxonomy release.`;
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ } else {
+ Alert.alert("Coming Soon", msg);
+ }
+ return;
+ }
+ setLanguage(lang.code);
+ };
+
+ const handleSave = () => {
+ const selected = LANGUAGES.find((l) => l.code === language);
+ const msg = `Language set to ${selected?.label || "English"}.`;
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ router.back();
+ } else {
+ Alert.alert("Success", msg, [
+ { text: "OK", onPress: () => router.back() },
+ ]);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Choose your preferred clinical taxonomy and interface language.
+
+
+
+ {LANGUAGES.map((lang, index) => {
+ const isSelected = language === lang.code;
+ return (
+ handleSelect(lang)}
+ activeOpacity={0.7}
+ >
+
+ {lang.label}
+ {lang.nativeLabel}
+
+
+ {!lang.available ? (
+
+ Coming Soon
+
+ ) : (
+
+ {isSelected && }
+
+ )}
+
+ );
+ })}
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ sectionSubtitle: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ marginBottom: verticalScale(16),
+ lineHeight: moderateScale(18),
+ },
+ card: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ overflow: "hidden",
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ },
+ optionRow: {
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "space-between",
+ padding: moderateScale(16),
+ },
+ border: {
+ borderBottomWidth: 1,
+ borderBottomColor: "#F1F5F9",
+ },
+ textContainer: {
+ flex: 1,
+ marginRight: moderateScale(12),
+ },
+ title: {
+ fontSize: moderateScale(14),
+ fontWeight: "600",
+ color: Colors.textPrimary,
+ },
+ nativeLabel: {
+ fontSize: moderateScale(12),
+ color: Colors.textSecondary,
+ marginTop: verticalScale(2),
+ },
+ comingSoonBadge: {
+ backgroundColor: "#F1F5F9",
+ paddingHorizontal: moderateScale(8),
+ paddingVertical: moderateScale(4),
+ borderRadius: moderateScale(6),
+ },
+ comingSoonText: {
+ fontSize: moderateScale(11),
+ fontWeight: "600",
+ color: "#64748B",
+ },
+ radio: {
+ width: moderateScale(20),
+ height: moderateScale(20),
+ borderRadius: moderateScale(10),
+ borderWidth: 2,
+ borderColor: "#CBD5E1",
+ justifyContent: "center",
+ alignItems: "center",
+ },
+ radioSelected: {
+ borderColor: Colors.primary,
+ },
+ radioInner: {
+ width: moderateScale(10),
+ height: moderateScale(10),
+ borderRadius: moderateScale(5),
+ backgroundColor: Colors.primary,
+ },
+ buttonWrapper: {
+ marginTop: verticalScale(24),
+ },
+});
diff --git a/src/app/settings/notifications.tsx b/src/app/settings/notifications.tsx
new file mode 100644
index 0000000..1a3b667
--- /dev/null
+++ b/src/app/settings/notifications.tsx
@@ -0,0 +1,144 @@
+import React from "react";
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ Text,
+ Alert,
+ Platform,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { router } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import ProfileMenuItem from "@/features/profile/components/ProfileMenuItem";
+import PrimaryButton from "@/components/buttons/PrimaryButton";
+import { Colors } from "@/theme";
+import { useSettingsStore } from "@/store/settings.store";
+
+export default function NotificationSettingsScreen() {
+ const notifications = useSettingsStore((state) => state.notifications);
+ const setNotificationPreference = useSettingsStore(
+ (state) => state.setNotificationPreference
+ );
+
+ const handleSave = () => {
+ const msg = "Notification preferences saved successfully!";
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ router.back();
+ } else {
+ Alert.alert("Success", msg, [
+ { text: "OK", onPress: () => router.back() },
+ ]);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Configure how and when you want to receive clinical notices and app updates.
+
+
+
+ setNotificationPreference("push", val)}
+ />
+
+
+ setNotificationPreference("clinicalUpdates", val)
+ }
+ />
+
+
+ setNotificationPreference("weeklyDigest", val)
+ }
+ />
+
+ setNotificationPreference("sound", val)}
+ />
+
+
+ setNotificationPreference("vibration", val)
+ }
+ />
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ sectionSubtitle: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ marginBottom: verticalScale(16),
+ lineHeight: moderateScale(18),
+ },
+ card: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ overflow: "hidden",
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ },
+ buttonWrapper: {
+ marginTop: verticalScale(24),
+ },
+});
diff --git a/src/app/settings/privacy.tsx b/src/app/settings/privacy.tsx
new file mode 100644
index 0000000..7226b6b
--- /dev/null
+++ b/src/app/settings/privacy.tsx
@@ -0,0 +1,171 @@
+import React, { useState } from "react";
+import {
+ ScrollView,
+ StyleSheet,
+ View,
+ Text,
+ Alert,
+ Platform,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { router } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import ProfileMenuItem from "@/features/profile/components/ProfileMenuItem";
+import PrimaryButton from "@/components/buttons/PrimaryButton";
+import { Colors } from "@/theme";
+
+export default function PrivacySettingsScreen() {
+ const [analyticsEnabled, setAnalyticsEnabled] = useState(true);
+ const [offlineCacheEnabled, setOfflineCacheEnabled] = useState(true);
+
+ const handleClearHistory = () => {
+ const doClear = () => {
+ const msg = "Search and navigation history cleared.";
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ } else {
+ Alert.alert("Success", msg);
+ }
+ };
+
+ if (Platform.OS === "web") {
+ if (window.confirm("Clear all local search history? This cannot be undone.")) {
+ doClear();
+ }
+ } else {
+ Alert.alert(
+ "Clear Search History",
+ "Are you sure you want to clear your local search history?",
+ [
+ { text: "Cancel", style: "cancel" },
+ { text: "Clear", style: "destructive", onPress: doClear },
+ ]
+ );
+ }
+ };
+
+ const handleSave = () => {
+ const msg = "Privacy preferences updated!";
+ if (Platform.OS === "web") {
+ window.alert(msg);
+ router.back();
+ } else {
+ Alert.alert("Success", msg, [
+ { text: "OK", onPress: () => router.back() },
+ ]);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ Manage your personal data storage, local history, and anonymized metrics.
+
+
+
+
+
+
+
+
+
+
+
+ Clinical Privacy & Content Protection
+
+ Acupedia is strictly compliant with privacy principles. We never sell your clinical search data, bookmarks, or account information to third parties.
+
+
+ Proprietary anatomical charts, point coordinates, and clinical needling depths are protected by hardware screen-capture and recording prevention on native mobile devices.
+
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+ sectionSubtitle: {
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ marginBottom: verticalScale(16),
+ lineHeight: moderateScale(18),
+ },
+ card: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ overflow: "hidden",
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ marginBottom: verticalScale(20),
+ },
+ infoBox: {
+ backgroundColor: "#F8FAFC",
+ borderRadius: moderateScale(14),
+ padding: moderateScale(16),
+ borderWidth: 1,
+ borderColor: "#E2E8F0",
+ },
+ infoTitle: {
+ fontSize: moderateScale(14),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(4),
+ },
+ infoText: {
+ fontSize: moderateScale(12),
+ color: Colors.textSecondary,
+ lineHeight: moderateScale(18),
+ },
+ buttonWrapper: {
+ marginTop: verticalScale(24),
+ },
+});
diff --git a/src/app/subscription/index.tsx b/src/app/subscription/index.tsx
index 6416c77..3e90f1e 100644
--- a/src/app/subscription/index.tsx
+++ b/src/app/subscription/index.tsx
@@ -1,13 +1,11 @@
-import React, { useCallback, useEffect, useMemo, useState } from "react";
+import React, { useCallback, useMemo, useState } from "react";
import {
- ActivityIndicator,
Alert,
Linking,
Platform,
ScrollView,
StyleSheet,
Text,
- TextInput,
TouchableOpacity,
View,
} from "react-native";
@@ -19,26 +17,12 @@ import Constants from "expo-constants";
import { Colors } from "@/theme";
import { useAuthStore } from "@/store/auth.store";
-import { calculateCart } from "@/features/commerce";
-import type { CartCalculationResponse } from "@/features/commerce";
import PrimaryButton from "@/components/buttons/PrimaryButton";
function param(value: string | string[] | undefined): string {
return typeof value === "string" ? value : "";
}
-function money(value: number, currency: string): string {
- try {
- return new Intl.NumberFormat("en-IN", {
- style: "currency",
- currency,
- maximumFractionDigits: 2,
- }).format(value);
- } catch {
- return `${currency} ${value.toFixed(2)}`;
- }
-}
-
function resolveStorefrontUrl(): string {
const envUrl = process.env.EXPO_PUBLIC_STOREFRONT_URL?.trim();
if (envUrl) return envUrl;
@@ -78,15 +62,10 @@ export default function SubscriptionScreen() {
const moduleId = param(params.moduleId);
const moduleCode = param(params.moduleCode);
const title = param(params.title) || "Clinical Module";
- const category = param(params.category);
const description = param(params.desc);
const planCode = param(params.planCode).trim().toUpperCase();
- const [couponCode, setCouponCode] = useState("");
- const [pricing, setPricing] = useState(null);
- const [loadingPricing, setLoadingPricing] = useState(false);
const [openingCheckout, setOpeningCheckout] = useState(false);
- const [error, setError] = useState(null);
const unlocked = useMemo(() => {
if (!accessToken) return false;
@@ -94,35 +73,6 @@ export default function SubscriptionScreen() {
return false;
}, [access, accessToken, moduleCode]);
- const loadPricing = useCallback(async (coupon?: string) => {
- if (!planCode) {
- setPricing(null);
- setError("This module does not have a commerce plan configured.");
- return;
- }
-
- setLoadingPricing(true);
- setError(null);
- try {
- const response = await calculateCart({
- cart_item_codes: [planCode],
- coupon_code: coupon?.trim() || null,
- currency: "INR",
- });
- setPricing(response);
- } catch (err: any) {
- const detail = err?.response?.data?.detail;
- setError(typeof detail === "string" ? detail : "Unable to load current subscription pricing.");
- setPricing(null);
- } finally {
- setLoadingPricing(false);
- }
- }, [planCode]);
-
- useEffect(() => {
- void loadPricing();
- }, [loadPricing]);
-
useFocusEffect(
useCallback(() => {
if (accessToken) {
@@ -160,7 +110,6 @@ export default function SubscriptionScreen() {
const query = new URLSearchParams();
query.set("token", accessToken);
query.set("planCode", planCode);
- if (couponCode.trim()) query.set("couponCode", couponCode.trim().toUpperCase());
const apiUrl = process.env.EXPO_PUBLIC_API_URL;
if (apiUrl) query.set("apiUrl", apiUrl);
if (moduleId) query.set("moduleId", moduleId);
@@ -180,102 +129,60 @@ export default function SubscriptionScreen() {
};
return (
-
+
- router.back()} style={styles.backButton}>
+ router.back()}
+ style={styles.backButton}
+ hitSlop={{ top: 12, bottom: 12, left: 12, right: 12 }}
+ >
- Subscription
+
+ {title}
+
-
-
-
+
+
+
+
+
+
+
+ {unlocked ? `${title} is Unlocked` : `Unlock ${title}`}
+
+
+ {description ? (
+ {description}
+ ) : null}
- {unlocked ? `${title} is unlocked` : `Unlock ${title}`}
-
- {unlocked
- ? "Your current entitlement already includes this module."
- : "Pricing and discounts below are calculated by the current commerce API."}
-
-
- {(category || description) ? (
-
-
-
- {category ? {category} : null}
- {description ? {description} : null}
- {planCode ? Plan: {planCode} : null}
-
-
- ) : null}
-
- {!unlocked ? (
- <>
-
- {loadingPricing ? (
-
-
- Loading current pricing…
-
- ) : pricing ? (
- <>
- {pricing.cart_items.map((item) => (
-
- {item.name}
- {money(item.price, pricing.currency)}
-
- ))}
-
- Subtotal{money(pricing.base_subtotal, pricing.currency)}
- {pricing.total_discounts > 0 ? Discounts− {money(pricing.total_discounts, pricing.currency)} : null}
- {pricing.convenience_fee > 0 ? Convenience fee{money(pricing.convenience_fee, pricing.currency)} : null}
- GST{money(pricing.gst_amount, pricing.currency)}
-
- Total{money(pricing.grand_total, pricing.currency)}
- {pricing.coupon_applied ? Coupon applied: {pricing.coupon_applied} : null}
- >
- ) : (
- {error ?? "Pricing is unavailable."}
- )}
-
-
-
-
- void loadPricing(couponCode)}
- disabled={loadingPricing}
- >
- Apply
-
-
-
- {error && pricing ? {error} : null}
-
-
- {openingCheckout ? : (
- void handleCheckout()}
- disabled={loadingPricing || !planCode}
- />
- )}
-
- >
- ) : (
-
- router.replace("/modules")} />
-
- )}
+
+
+ {!unlocked ? (
+ void handleCheckout()}
+ disabled={!planCode}
+ loading={openingCheckout}
+ />
+ ) : (
+ router.replace("/modules")}
+ />
+ )}
+
);
}
@@ -283,48 +190,73 @@ export default function SubscriptionScreen() {
const styles = StyleSheet.create({
safeArea: { flex: 1, backgroundColor: "#FFFFFF" },
header: {
- minHeight: 64,
+ height: moderateScale(56),
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
paddingHorizontal: moderateScale(16),
- paddingTop: Platform.OS === "web" ? 14 : moderateScale(8),
- paddingBottom: moderateScale(8),
borderBottomWidth: 1,
- borderBottomColor: "#ECECEC",
+ borderBottomColor: "#F1F5F9",
+ backgroundColor: "#FFFFFF",
+ },
+ backButton: {
+ width: moderateScale(36),
+ height: moderateScale(36),
+ alignItems: "center",
+ justifyContent: "center",
+ },
+ headerTitle: {
+ flex: 1,
+ fontSize: moderateScale(17),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ textAlign: "center",
+ marginHorizontal: moderateScale(8),
+ },
+ placeholder: { width: moderateScale(36) },
+ scrollContent: {
+ flexGrow: 1,
+ justifyContent: "center",
+ alignItems: "center",
+ paddingHorizontal: moderateScale(24),
+ paddingVertical: verticalScale(24),
+ },
+ centerContainer: {
+ alignItems: "center",
+ justifyContent: "center",
+ maxWidth: moderateScale(360),
+ width: "100%",
+ },
+ iconCircle: {
+ width: moderateScale(68),
+ height: moderateScale(68),
+ borderRadius: moderateScale(34),
+ backgroundColor: "#E8F5E9",
+ alignItems: "center",
+ justifyContent: "center",
+ marginBottom: verticalScale(20),
+ },
+ title: {
+ fontSize: moderateScale(22),
+ fontWeight: "800",
+ color: Colors.textPrimary,
+ textAlign: "center",
+ lineHeight: moderateScale(28),
+ },
+ descriptionText: {
+ fontSize: moderateScale(15),
+ color: Colors.textSecondary,
+ textAlign: "center",
+ lineHeight: moderateScale(23),
+ marginTop: verticalScale(12),
+ paddingHorizontal: moderateScale(8),
+ },
+ footer: {
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ paddingBottom: Platform.OS === "ios" ? verticalScale(8) : verticalScale(16),
+ borderTopWidth: 1,
+ borderTopColor: "#F1F5F9",
backgroundColor: "#FFFFFF",
},
- backButton: { padding: 4 },
- headerTitle: { fontSize: moderateScale(18), fontWeight: "700", color: Colors.textPrimary },
- placeholder: { width: 32 },
- content: { paddingHorizontal: moderateScale(24), paddingTop: verticalScale(28), paddingBottom: verticalScale(40) },
- iconContainer: { alignItems: "center", marginBottom: verticalScale(16) },
- title: { fontSize: moderateScale(24), fontWeight: "800", color: Colors.textPrimary, textAlign: "center" },
- subtitle: { fontSize: moderateScale(14), color: Colors.textSecondary, textAlign: "center", lineHeight: 20, marginTop: verticalScale(8), marginBottom: verticalScale(22) },
- infoBox: { flexDirection: "row", backgroundColor: "#EEF2FF", borderRadius: moderateScale(14), padding: moderateScale(14), marginBottom: verticalScale(18) },
- infoText: { flex: 1, marginLeft: moderateScale(10) },
- infoTitle: { fontSize: moderateScale(14), fontWeight: "700", color: Colors.textPrimary },
- infoDescription: { marginTop: 3, fontSize: moderateScale(12), color: Colors.textSecondary, lineHeight: 18 },
- planCode: { marginTop: 5, fontSize: moderateScale(11), color: Colors.primary, fontWeight: "600" },
- pricingCard: { backgroundColor: "#FFFFFF", borderRadius: moderateScale(16), borderWidth: 1, borderColor: "#E5E7EB", padding: moderateScale(16) },
- loadingRow: { flexDirection: "row", alignItems: "center", justifyContent: "center", paddingVertical: verticalScale(16) },
- loadingText: { marginLeft: moderateScale(10), color: Colors.textSecondary, fontSize: moderateScale(13) },
- priceRow: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", marginVertical: verticalScale(5) },
- priceLabel: { flex: 1, fontSize: moderateScale(14), fontWeight: "700", color: Colors.textPrimary, marginRight: 10 },
- priceValue: { fontSize: moderateScale(14), fontWeight: "700", color: Colors.textPrimary },
- secondaryLabel: { fontSize: moderateScale(13), color: Colors.textSecondary },
- secondaryValue: { fontSize: moderateScale(13), color: Colors.textPrimary },
- discountLabel: { fontSize: moderateScale(13), color: "#15803D" },
- discountValue: { fontSize: moderateScale(13), color: "#15803D", fontWeight: "600" },
- totalLabel: { fontSize: moderateScale(15), fontWeight: "800", color: Colors.textPrimary },
- totalValue: { fontSize: moderateScale(18), fontWeight: "800", color: Colors.primary },
- divider: { height: 1, backgroundColor: "#ECECEC", marginVertical: verticalScale(8) },
- appliedText: { marginTop: verticalScale(8), fontSize: moderateScale(12), color: "#15803D", fontWeight: "600" },
- errorText: { fontSize: moderateScale(13), color: "#B91C1C", textAlign: "center", paddingVertical: verticalScale(14) },
- couponRow: { flexDirection: "row", marginTop: verticalScale(14) },
- couponInput: { flex: 1, minHeight: 46, backgroundColor: "#FFFFFF", borderWidth: 1, borderColor: "#D1D5DB", borderRadius: moderateScale(12), paddingHorizontal: moderateScale(12), color: Colors.textPrimary },
- applyButton: { marginLeft: moderateScale(10), minWidth: 78, minHeight: 46, alignItems: "center", justifyContent: "center", backgroundColor: "#EEF2FF", borderRadius: moderateScale(12) },
- applyText: { fontSize: moderateScale(13), fontWeight: "700", color: Colors.primary },
- inlineError: { marginTop: verticalScale(8), fontSize: moderateScale(12), color: "#B91C1C" },
- buttonContainer: { marginTop: verticalScale(24) },
});
diff --git a/src/features/content/renderers/details/TcmPatternDetailRenderer.tsx b/src/features/content/renderers/details/TcmPatternDetailRenderer.tsx
new file mode 100644
index 0000000..5b56cad
--- /dev/null
+++ b/src/features/content/renderers/details/TcmPatternDetailRenderer.tsx
@@ -0,0 +1,54 @@
+import React from "react";
+import { ScrollView, StyleSheet } from "react-native";
+
+import type { DetailRendererProps } from "../../types/renderer.types";
+import { asString, humanizeKey } from "../helpers/value";
+import { ContentLinkAttributeSections } from "../shared/ContentLinkAttributeSections";
+import { ContentValue } from "../shared/ContentValue";
+import { Hero } from "../shared/Hero";
+import { SectionCard } from "../shared/SectionCard";
+
+const EXCLUDED_KEYS = new Set(["code"]);
+
+export function TcmPatternDetailRenderer({
+ content,
+ data,
+ presentationAttributes,
+}: DetailRendererProps) {
+ const title =
+ asString(data.name) ||
+ asString(data.title) ||
+ content.title ||
+ "TCM Pattern";
+
+ return (
+
+
+
+ {Object.entries(data)
+ .filter(([key]) => !EXCLUDED_KEYS.has(key))
+ .map(([key, value]) => (
+
+
+
+ ))}
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ content: {
+ paddingHorizontal: 18,
+ paddingTop: 16,
+ paddingBottom: 40,
+ gap: 14,
+ },
+});
diff --git a/src/features/content/renderers/registry.ts b/src/features/content/renderers/registry.ts
index 181fe65..cd0dc99 100644
--- a/src/features/content/renderers/registry.ts
+++ b/src/features/content/renderers/registry.ts
@@ -45,6 +45,7 @@ import { TwelveChannelsDetailRenderer } from "./details/TwelveChannelsDetailRend
import { ThreeBurnersCollectionRenderer, ThreeBurnersCardRenderer } from "./collections/ThreeBurnersRenderers";
import { ThreeBurnersDetailRenderer } from "./details/ThreeBurnersDetailRenderer";
import { SixStagesDetailRenderer } from "./details/SixStagesDetailRenderer";
+import { TcmPatternDetailRenderer } from "./details/TcmPatternDetailRenderer";
export const collectionRenderers: Readonly> = Object.freeze({
module_catalog_collection: ModuleCatalogCollectionRenderer,
@@ -172,6 +173,7 @@ export const detailRenderers: Readonly>
m0017_ct0001_detail: ThreeBurnersDetailRenderer,
m0017_ct0002_detail: ThreeBurnersDetailRenderer,
six_stages_detail: SixStagesDetailRenderer,
+ tcm_pattern_detail: TcmPatternDetailRenderer,
});
function reportMissingRenderer(kind: string, code?: string | null) {
if (__DEV__) {
@@ -337,6 +339,12 @@ export function resolveDetailRenderer(
) {
return SixStagesDetailRenderer;
}
+ if( normalizedTemplate === "m0012_ct0014" ||
+ (normalizedModule === "m0012" && (code === "tcm_pattern_detail" || code === "pattern_detail")) ||
+ code === "tcm_pattern_detail"
+ ) {
+ return TcmPatternDetailRenderer;
+ }
if (code && detailRenderers[code]) return detailRenderers[code];
reportMissingRenderer("detail", code);
diff --git a/src/features/content/renderers/shared/AccordionSection.tsx b/src/features/content/renderers/shared/AccordionSection.tsx
index 2ccd98d..e0308db 100644
--- a/src/features/content/renderers/shared/AccordionSection.tsx
+++ b/src/features/content/renderers/shared/AccordionSection.tsx
@@ -1,4 +1,4 @@
-import React, { type PropsWithChildren, useMemo, useState } from "react";
+import React, { type PropsWithChildren, useEffect, useMemo, useState } from "react";
import {
LayoutAnimation,
Platform,
@@ -30,6 +30,10 @@ export function AccordionSection({
const [expanded, setExpanded] = useState(defaultExpanded);
const tone = useMemo(() => readingToneForTitle(title), [title]);
+ useEffect(() => {
+ setExpanded(defaultExpanded);
+ }, [defaultExpanded]);
+
const toggle = () => {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setExpanded((value) => !value);
diff --git a/src/features/content/renderers/shared/SectionCard.tsx b/src/features/content/renderers/shared/SectionCard.tsx
index 2288449..3e6259f 100644
--- a/src/features/content/renderers/shared/SectionCard.tsx
+++ b/src/features/content/renderers/shared/SectionCard.tsx
@@ -2,6 +2,7 @@ import React, { type PropsWithChildren, isValidElement } from "react";
import { isEmptyValue } from "../../utils/attribute-presentation";
import { AccordionSection } from "./AccordionSection";
+import { useSettingsStore } from "@/store/settings.store";
export interface SectionCardProps {
title: string;
@@ -35,13 +36,20 @@ function hasRenderableContent(node: React.ReactNode): boolean {
export function SectionCard({
title,
- defaultExpanded = true,
+ defaultExpanded,
children,
}: PropsWithChildren) {
if (!hasRenderableContent(children)) return null;
+ const accordionDefaultExpanded = useSettingsStore(
+ (state) => state.accordionDefaultExpanded
+ );
+
+ const isExpanded =
+ defaultExpanded !== undefined ? defaultExpanded : accordionDefaultExpanded;
+
return (
-
+
{children}
);
diff --git a/src/features/profile/components/EditProfileAvatar.tsx b/src/features/profile/components/EditProfileAvatar.tsx
index e05af7e..6c6a4a2 100644
--- a/src/features/profile/components/EditProfileAvatar.tsx
+++ b/src/features/profile/components/EditProfileAvatar.tsx
@@ -1,11 +1,9 @@
import React from "react";
import {
- Pressable,
StyleSheet,
+ Text,
View,
} from "react-native";
-import { Image } from "expo-image";
-import { Ionicons } from "@expo/vector-icons";
import {
moderateScale,
scale,
@@ -13,46 +11,25 @@ import {
} from "react-native-size-matters";
interface EditProfileAvatarProps {
- imageUri?: string;
- onPress?: () => void;
+ name?: string;
}
-export default function EditProfileAvatar({
- imageUri,
- onPress,
-}: EditProfileAvatarProps) {
+function getInitials(nameString?: string): string {
+ if (!nameString || !nameString.trim()) return "U";
+ const parts = nameString.trim().split(/\s+/);
+ if (parts.length === 1) {
+ return parts[0].slice(0, 2).toUpperCase();
+ }
+ return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
+}
+
+export default function EditProfileAvatar({ name }: EditProfileAvatarProps) {
+ const initials = getInitials(name);
+
return (
-
- {imageUri ? (
-
- ) : (
-
-
-
- )}
-
-
-
-
+
+ {initials}
);
@@ -61,37 +38,24 @@ export default function EditProfileAvatar({
const styles = StyleSheet.create({
container: {
alignItems: "center",
- marginBottom: verticalScale(28),
+ marginBottom: verticalScale(16),
},
- avatarWrapper: {
- position: "relative",
- },
-
- avatar: {
- width: scale(108),
- height: scale(108),
- borderRadius: scale(54),
- backgroundColor: "#F2F3F7",
- justifyContent: "center",
- alignItems: "center",
- },
-
- cameraButton: {
- position: "absolute",
- right: scale(0),
- bottom: scale(2),
-
- width: scale(32),
- height: scale(32),
- borderRadius: scale(16),
-
- backgroundColor: "#5B3DF5",
-
- justifyContent: "center",
- alignItems: "center",
-
+ initialsContainer: {
+ width: scale(88),
+ height: scale(88),
+ borderRadius: scale(44),
+ backgroundColor: "#DCFCE7",
borderWidth: 2,
- borderColor: "#FFFFFF",
+ borderColor: "#BBF7D0",
+ justifyContent: "center",
+ alignItems: "center",
+ },
+
+ initialsText: {
+ fontSize: moderateScale(28),
+ fontWeight: "800",
+ color: "#15803D",
+ letterSpacing: 1,
},
});
\ No newline at end of file
diff --git a/src/features/profile/components/EditProfileForm.tsx b/src/features/profile/components/EditProfileForm.tsx
index 63f5238..f646441 100644
--- a/src/features/profile/components/EditProfileForm.tsx
+++ b/src/features/profile/components/EditProfileForm.tsx
@@ -1,9 +1,16 @@
import React, { useState, useEffect } from "react";
import {
+ Modal,
+ Pressable,
+ ScrollView,
StyleSheet,
+ Text,
View,
} from "react-native";
+import { Ionicons } from "@expo/vector-icons";
import {
+ moderateScale,
+ scale,
verticalScale,
} from "react-native-size-matters";
@@ -11,26 +18,48 @@ import BaseTextInput from "@/components/forms/BaseTextInput";
import DropdownField from "@/components/forms/DropdownField";
import FieldLabel from "@/components/forms/FieldLabel";
import PrimaryButton from "@/components/buttons/PrimaryButton";
+import { Colors } from "@/theme";
interface EditProfileFormProps {
initialName?: string;
initialEmail?: string;
initialPhone?: string;
- initialProfession?: string;
initialCountry?: string;
- onSave?: (updatedName: string, updatedPhone: string) => void;
+ onSave?: (updatedName: string, updatedPhone: string, updatedCountry: string) => void;
+ isLoading?: boolean;
}
+const COMMON_COUNTRIES = [
+ "India",
+ "United States",
+ "United Kingdom",
+ "Canada",
+ "Australia",
+ "Germany",
+ "Singapore",
+ "Malaysia",
+ "New Zealand",
+ "United Arab Emirates",
+ "South Africa",
+ "Ireland",
+ "Netherlands",
+ "Switzerland",
+ "France",
+ "Spain",
+];
+
export default function EditProfileForm({
initialName = "User Name",
initialEmail = "user@example.com",
initialPhone = "",
- initialProfession = "Practitioner",
initialCountry = "India",
onSave,
+ isLoading = false,
}: EditProfileFormProps) {
const [fullName, setFullName] = useState(initialName);
const [phone, setPhone] = useState(initialPhone);
+ const [country, setCountry] = useState(initialCountry);
+ const [showCountryModal, setShowCountryModal] = useState(false);
useEffect(() => {
setFullName(initialName);
@@ -40,35 +69,25 @@ export default function EditProfileForm({
setPhone(initialPhone);
}, [initialPhone]);
- const [profession, setProfession] =
- useState(initialProfession);
-
- const [country] =
- useState(initialCountry);
+ useEffect(() => {
+ setCountry(initialCountry);
+ }, [initialCountry]);
return (
-
-
+
-
-
+
+
+ Email address is tied to your account identity and subscriptions.
+
-
-
+
-
-
-
+ setShowCountryModal(true)}
/>
-
-
-
-
+ {
- // TODO:
- // Open Country Picker
+ onSave?.(fullName, phone, country);
}}
/>
- {
- onSave?.(fullName, phone);
- }}
- />
+ {/* Country Selection Modal */}
+ setShowCountryModal(false)}
+ >
+ setShowCountryModal(false)}
+ >
+
+
+ Select Country
+ setShowCountryModal(false)}
+ >
+
+
+
+
+
+ {COMMON_COUNTRIES.map((c) => {
+ const isSelected = country === c;
+ return (
+ [
+ styles.countryItem,
+ isSelected && styles.countryItemSelected,
+ pressed && styles.countryItemPressed,
+ ]}
+ onPress={() => {
+ setCountry(c);
+ setShowCountryModal(false);
+ }}
+ >
+
+ {c}
+
+ {isSelected && (
+
+ )}
+
+ );
+ })}
+
+
+
+
);
}
const styles = StyleSheet.create({
container: {
- marginTop: verticalScale(8),
+ marginTop: verticalScale(4),
},
field: {
- marginBottom: verticalScale(18),
+ marginBottom: verticalScale(16),
+ },
+
+ helperText: {
+ marginTop: verticalScale(4),
+ fontSize: moderateScale(11),
+ color: Colors.textSecondary,
+ lineHeight: moderateScale(15),
+ },
+
+ buttonWrapper: {
+ marginTop: verticalScale(10),
+ },
+
+ modalOverlay: {
+ flex: 1,
+ backgroundColor: "rgba(0, 0, 0, 0.4)",
+ justifyContent: "flex-end",
+ },
+
+ modalSheet: {
+ backgroundColor: "#FFFFFF",
+ borderTopLeftRadius: moderateScale(20),
+ borderTopRightRadius: moderateScale(20),
+ maxHeight: "70%",
+ paddingTop: verticalScale(16),
+ paddingBottom: verticalScale(32),
+ },
+
+ modalHeader: {
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "space-between",
+ paddingHorizontal: scale(20),
+ paddingBottom: verticalScale(12),
+ borderBottomWidth: 1,
+ borderBottomColor: "#F1F5F9",
+ },
+
+ modalTitle: {
+ fontSize: moderateScale(17),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ },
+
+ countryList: {
+ paddingHorizontal: scale(16),
+ paddingTop: verticalScale(8),
+ },
+
+ countryItem: {
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "space-between",
+ paddingVertical: verticalScale(12),
+ paddingHorizontal: scale(12),
+ borderRadius: moderateScale(10),
+ },
+
+ countryItemSelected: {
+ backgroundColor: "#DCFCE7",
+ },
+
+ countryItemPressed: {
+ backgroundColor: "#F1F5F9",
+ },
+
+ countryName: {
+ fontSize: moderateScale(14),
+ color: Colors.textPrimary,
+ fontWeight: "500",
+ },
+
+ countryNameSelected: {
+ fontWeight: "700",
+ color: "#15803D",
},
});
\ No newline at end of file
diff --git a/src/features/profile/components/ProfileAvatar.tsx b/src/features/profile/components/ProfileAvatar.tsx
index 989b9e4..f5966ca 100644
--- a/src/features/profile/components/ProfileAvatar.tsx
+++ b/src/features/profile/components/ProfileAvatar.tsx
@@ -1,13 +1,9 @@
import React from "react";
import {
- Pressable,
StyleSheet,
Text,
View,
} from "react-native";
-import { Image } from "expo-image";
-import { Ionicons } from "@expo/vector-icons";
-import { useRouter } from "expo-router";
import {
moderateScale,
scale,
@@ -19,71 +15,31 @@ import { Colors } from "@/theme";
interface ProfileAvatarProps {
name: string;
email: string;
- imageUri?: string;
- onEditPress?: () => void;
+}
+
+function getInitials(nameString: string): string {
+ if (!nameString || !nameString.trim()) return "U";
+ const parts = nameString.trim().split(/\s+/);
+ if (parts.length === 1) {
+ return parts[0].slice(0, 2).toUpperCase();
+ }
+ return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
}
export default function ProfileAvatar({
name,
email,
- imageUri,
- onEditPress,
}: ProfileAvatarProps) {
- const router = useRouter();
-
- const handleEditProfile = () => {
- onEditPress?.();
- router.push("/profile/edit");
- };
+ const initials = getInitials(name);
return (
-
- {imageUri ? (
-
- ) : (
-
-
-
- )}
-
-
-
-
+
+ {initials}
-
-
- {name}
-
-
-
-
- {email}
-
+ {name}
+ {email}
);
}
@@ -91,51 +47,40 @@ export default function ProfileAvatar({
const styles = StyleSheet.create({
container: {
alignItems: "center",
- marginTop: verticalScale(10),
- marginBottom: verticalScale(28),
- },
-
- avatarWrapper: {
- position: "relative",
+ marginTop: verticalScale(4),
marginBottom: verticalScale(16),
},
- avatar: {
- width: scale(96),
- height: scale(96),
- borderRadius: scale(48),
- backgroundColor: "#F2F3F7",
+ initialsContainer: {
+ width: scale(88),
+ height: scale(88),
+ borderRadius: scale(44),
+ backgroundColor: "#DCFCE7",
+ borderWidth: 2,
+ borderColor: "#BBF7D0",
justifyContent: "center",
alignItems: "center",
+ marginBottom: verticalScale(12),
},
- editButton: {
- position: "absolute",
- right: scale(-2),
- bottom: scale(-2),
-
- width: scale(30),
- height: scale(30),
- borderRadius: scale(15),
-
- backgroundColor: "#5B3DF5",
-
- justifyContent: "center",
- alignItems: "center",
-
- borderWidth: 2,
- borderColor: "#FFFFFF",
+ initialsText: {
+ fontSize: moderateScale(28),
+ fontWeight: "800",
+ color: "#15803D",
+ letterSpacing: 1,
},
name: {
fontSize: moderateScale(18),
fontWeight: "700",
- color: Colors.text,
+ color: Colors.textPrimary,
+ textAlign: "center",
},
email: {
- marginTop: verticalScale(6),
- fontSize: moderateScale(14),
- color: "#7A7A7A",
+ marginTop: verticalScale(3),
+ fontSize: moderateScale(13),
+ color: Colors.textSecondary,
+ textAlign: "center",
},
});
\ No newline at end of file
diff --git a/src/features/profile/components/ProfileHeader.tsx b/src/features/profile/components/ProfileHeader.tsx
index 66e7a08..fcda99f 100644
--- a/src/features/profile/components/ProfileHeader.tsx
+++ b/src/features/profile/components/ProfileHeader.tsx
@@ -17,55 +17,64 @@ import { Colors } from "@/theme";
interface ProfileHeaderProps {
title?: string;
+ showBackButton?: boolean;
onSettingsPress?: () => void;
}
export default function ProfileHeader({
title = "My Profile",
+ showBackButton = false,
onSettingsPress,
}: ProfileHeaderProps) {
const router = useRouter();
return (
- {
- if (router.canGoBack()) {
- router.back();
- } else {
- router.replace("/");
- }
- }}
- >
-
-
+ {showBackButton ? (
+ [
+ styles.iconButton,
+ pressed && styles.iconButtonPressed,
+ ]}
+ onPress={() => {
+ if (router.canGoBack()) {
+ router.back();
+ } else {
+ router.replace("/");
+ }
+ }}
+ >
+
+
+ ) : (
+
+ )}
-
+
{title}
[
+ styles.iconButton,
+ pressed && styles.iconButtonPressed,
+ ]}
onPress={onSettingsPress}
>
@@ -74,36 +83,36 @@ export default function ProfileHeader({
const styles = StyleSheet.create({
container: {
- height: verticalScale(56),
-
+ height: verticalScale(50),
flexDirection: "row",
-
alignItems: "center",
-
justifyContent: "space-between",
-
- marginBottom: verticalScale(24),
+ marginBottom: verticalScale(16),
},
iconButton: {
- width: scale(40),
-
- height: scale(40),
-
+ width: scale(38),
+ height: scale(38),
+ borderRadius: scale(19),
justifyContent: "center",
-
alignItems: "center",
+ backgroundColor: "#F1F5F9",
+ },
+
+ iconButtonPressed: {
+ backgroundColor: "#E2E8F0",
},
title: {
flex: 1,
-
textAlign: "center",
-
fontSize: moderateScale(18),
-
fontWeight: "700",
+ color: Colors.textPrimary,
+ },
- color: Colors.text,
+ placeholder: {
+ width: scale(38),
+ height: scale(38),
},
});
\ No newline at end of file
diff --git a/src/features/profile/components/ProfileMenuItem.tsx b/src/features/profile/components/ProfileMenuItem.tsx
index be3b248..6fefc8f 100644
--- a/src/features/profile/components/ProfileMenuItem.tsx
+++ b/src/features/profile/components/ProfileMenuItem.tsx
@@ -96,12 +96,14 @@ export default function ProfileMenuItem({
)}
{isSwitch ? (
-
+
+
+
) : showArrow ? (
{
if (accessToken) {
- void refreshAccess().catch((error) => console.warn("Unable to refresh profile access:", error));
+ void refreshAccess().catch((error) =>
+ console.warn("Unable to refresh profile access:", error)
+ );
}
}, [accessToken, refreshAccess]);
@@ -81,23 +84,17 @@ export default function ProfileOverviewCard() {
icon={item.icon}
title={item.title}
value={item.value}
+ showArrow={false}
isLast={index === accountOverviewItems.length - 1}
/>
))}
-
- Subscriptions
-
- {activeSubscriptions.length === 0 ? (
-
- No active paid subscription
-
- Free modules remain available. Paid access will appear here after checkout is verified.
-
-
- ) : (
- activeSubscriptions.map((subscription, index) => (
+ {activeSubscriptions.length > 0 && (
+
+ Active Subscriptions
+
+ {activeSubscriptions.map((subscription, index) => (
- {planLabel(subscription.plan_code)}
+
+ {planLabel(subscription.plan_code)}
+
Started: {formatDate(subscription.started_at)}
@@ -118,10 +117,10 @@ export default function ProfileOverviewCard() {
{subscription.status}
- ))
- )}
+ ))}
+
-
+ )}
{activeEntitlements.length > 0 ? (
@@ -154,45 +153,68 @@ export default function ProfileOverviewCard() {
}
const styles = StyleSheet.create({
- container: { marginTop: verticalScale(8) },
- section: { marginTop: verticalScale(24) },
- heading: {
- fontSize: moderateScale(16),
- fontWeight: "700",
- color: "#171717",
- marginBottom: verticalScale(12),
+ container: { marginTop: verticalScale(4) },
+ section: { marginTop: verticalScale(20) },
+
+ sectionHeaderRow: {
+ flexDirection: "row",
+ justifyContent: "space-between",
+ alignItems: "center",
+ marginBottom: verticalScale(8),
},
+
+ heading: {
+ fontSize: moderateScale(13),
+ fontWeight: "700",
+ color: Colors.textSecondary,
+ textTransform: "uppercase",
+ letterSpacing: 0.5,
+ marginLeft: moderateScale(4),
+ },
+
+ manageText: {
+ fontSize: moderateScale(13),
+ fontWeight: "600",
+ color: Colors.primary,
+ },
+
card: {
backgroundColor: "#FFFFFF",
borderRadius: moderateScale(16),
overflow: "hidden",
borderWidth: 1,
- borderColor: "#ECECEC",
+ borderColor: "#E5E7EB",
},
+
subRow: {
padding: moderateScale(16),
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
},
+
entitlementRow: {
padding: moderateScale(16),
flexDirection: "row",
alignItems: "center",
},
+
entitlementIcon: { marginRight: moderateScale(10) },
subLeft: { flex: 1 },
+
subTitle: {
fontSize: moderateScale(14),
fontWeight: "600",
- color: "#171717",
- marginBottom: verticalScale(4),
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(2),
},
+
subDateText: {
fontSize: moderateScale(12),
- color: "#737373",
+ color: Colors.textSecondary,
marginTop: verticalScale(2),
},
+
statusBadge: {
backgroundColor: "#DCFCE7",
paddingHorizontal: moderateScale(10),
@@ -200,23 +222,13 @@ const styles = StyleSheet.create({
borderRadius: moderateScale(12),
marginLeft: moderateScale(12),
},
+
statusText: {
fontSize: moderateScale(11),
- fontWeight: "600",
+ fontWeight: "700",
color: "#15803D",
textTransform: "capitalize",
},
- separator: { borderBottomWidth: 1, borderBottomColor: "#ECECEC" },
- emptyRow: { padding: moderateScale(16) },
- emptyTitle: {
- fontSize: moderateScale(14),
- fontWeight: "600",
- color: "#171717",
- },
- emptyText: {
- marginTop: verticalScale(5),
- fontSize: moderateScale(12),
- color: "#737373",
- lineHeight: moderateScale(18),
- },
+
+ separator: { borderBottomWidth: 1, borderBottomColor: "#F1F5F9" },
});
diff --git a/src/features/search/api/search.api.ts b/src/features/search/api/search.api.ts
index 7a1f7ce..f9d2649 100644
--- a/src/features/search/api/search.api.ts
+++ b/src/features/search/api/search.api.ts
@@ -8,8 +8,9 @@ import type {
SearchScope,
} from "../types/search.types";
-function capabilityQuery(scope?: SearchScope): string {
+function capabilityQuery(scope?: SearchScope, preview = false): string {
const params: string[] = [];
+ if (preview) params.push("preview=true");
if (scope?.module_codes?.length) {
params.push(`module_codes=${encodeURIComponent(scope.module_codes.join(","))}`);
}
@@ -21,9 +22,10 @@ function capabilityQuery(scope?: SearchScope): string {
export async function getSearchCapabilities(
scope?: SearchScope,
+ preview = false,
): Promise {
const response = await apiClient.get(
- `/search/capabilities${capabilityQuery(scope)}`,
+ `/search/capabilities${capabilityQuery(scope, preview)}`,
);
return response.data;
}
@@ -34,20 +36,24 @@ function apiFilters(filters: FacetValuesRequest["active_filters"]) {
export async function getFacetValues(
payload: FacetValuesRequest,
+ preview = false,
): Promise {
const response = await apiClient.post(
"/search/facet-values",
{ ...payload, active_filters: apiFilters(payload.active_filters) },
+ { params: { preview } },
);
return response.data;
}
export async function searchContents(
payload: FacetedSearchRequest,
+ preview = false,
): Promise {
const response = await apiClient.post(
"/search/contents",
{ ...payload, filters: apiFilters(payload.filters) },
+ { params: { preview } },
);
return response.data;
}
diff --git a/src/features/search/hooks/use-facet-values.ts b/src/features/search/hooks/use-facet-values.ts
index 14264d8..feed639 100644
--- a/src/features/search/hooks/use-facet-values.ts
+++ b/src/features/search/hooks/use-facet-values.ts
@@ -1,4 +1,5 @@
import { useQuery } from "@tanstack/react-query";
+import { useSettingsStore } from "@/store/settings.store";
import { getFacetValues } from "../api/search.api";
import type { FacetValuesRequest } from "../types/search.types";
@@ -6,6 +7,7 @@ export function useFacetValues(
request: FacetValuesRequest | null,
enabled = true,
) {
+ const preview = useSettingsStore((state) => state.contentPreviewEnabled);
return useQuery({
queryKey: [
"search",
@@ -17,8 +19,9 @@ export function useFacetValues(
request?.filter_logic ?? "and",
request?.active_filters ?? [],
request?.limit ?? 25,
+ preview,
],
- queryFn: () => getFacetValues(request!),
+ queryFn: () => getFacetValues(request!, preview),
enabled: enabled && request !== null,
staleTime: 30 * 1000,
});
diff --git a/src/features/search/hooks/use-faceted-search.ts b/src/features/search/hooks/use-faceted-search.ts
index 673831e..f87636e 100644
--- a/src/features/search/hooks/use-faceted-search.ts
+++ b/src/features/search/hooks/use-faceted-search.ts
@@ -1,4 +1,5 @@
import { useInfiniteQuery } from "@tanstack/react-query";
+import { useSettingsStore } from "@/store/settings.store";
import { searchContents } from "../api/search.api";
import type { FacetedSearchRequest } from "../types/search.types";
@@ -6,6 +7,7 @@ export function useFacetedSearch(
request: Omit,
enabled = true,
) {
+ const preview = useSettingsStore((state) => state.contentPreviewEnabled);
return useInfiniteQuery({
queryKey: [
"search",
@@ -17,8 +19,10 @@ export function useFacetedSearch(
request.filter_logic,
request.sort,
request.page_size,
+ preview,
],
- queryFn: ({ pageParam }) => searchContents({ ...request, page: pageParam }),
+ queryFn: ({ pageParam }) =>
+ searchContents({ ...request, page: pageParam }, preview),
initialPageParam: 1,
enabled,
getNextPageParam: (last) =>
diff --git a/src/features/search/hooks/use-search-capabilities.ts b/src/features/search/hooks/use-search-capabilities.ts
index 0945a77..782dd4b 100644
--- a/src/features/search/hooks/use-search-capabilities.ts
+++ b/src/features/search/hooks/use-search-capabilities.ts
@@ -1,16 +1,19 @@
import { useQuery } from "@tanstack/react-query";
+import { useSettingsStore } from "@/store/settings.store";
import { getSearchCapabilities } from "../api/search.api";
import type { SearchScope } from "../types/search.types";
export function useSearchCapabilities(scope?: SearchScope) {
+ const preview = useSettingsStore((state) => state.contentPreviewEnabled);
return useQuery({
queryKey: [
"search",
"capabilities",
scope?.module_codes ?? null,
scope?.content_kinds ?? null,
+ preview,
],
- queryFn: () => getSearchCapabilities(scope),
+ queryFn: () => getSearchCapabilities(scope, preview),
staleTime: 30 * 60 * 1000,
});
}
diff --git a/src/features/settings/components/LogoutButton.tsx b/src/features/settings/components/LogoutButton.tsx
new file mode 100644
index 0000000..6abde33
--- /dev/null
+++ b/src/features/settings/components/LogoutButton.tsx
@@ -0,0 +1,62 @@
+import React from "react";
+import {
+ Pressable,
+ StyleSheet,
+ Text,
+} from "react-native";
+import { Ionicons } from "@expo/vector-icons";
+import {
+ moderateScale,
+ scale,
+ verticalScale,
+} from "react-native-size-matters";
+
+interface LogoutButtonProps {
+ onPress: () => void;
+}
+
+export default function LogoutButton({ onPress }: LogoutButtonProps) {
+ return (
+ [
+ styles.container,
+ pressed && styles.pressed,
+ ]}
+ >
+
+ Log Out
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ height: verticalScale(50),
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "center",
+ marginTop: verticalScale(8),
+ marginBottom: verticalScale(24),
+ borderRadius: moderateScale(14),
+ borderWidth: 1,
+ borderColor: "#FECACA",
+ backgroundColor: "#FEF2F2",
+ },
+ text: {
+ marginLeft: scale(8),
+ fontSize: moderateScale(15),
+ fontWeight: "700",
+ color: "#DC2626",
+ },
+ pressed: {
+ opacity: 0.8,
+ backgroundColor: "#FEE2E2",
+ },
+});
diff --git a/src/features/settings/components/SettingsHeader.tsx b/src/features/settings/components/SettingsHeader.tsx
new file mode 100644
index 0000000..e1e1860
--- /dev/null
+++ b/src/features/settings/components/SettingsHeader.tsx
@@ -0,0 +1,118 @@
+import React from "react";
+import {
+ Pressable,
+ StyleSheet,
+ Text,
+ View,
+} from "react-native";
+import { Ionicons } from "@expo/vector-icons";
+import { useRouter } from "expo-router";
+import {
+ moderateScale,
+ scale,
+ verticalScale,
+} from "react-native-size-matters";
+
+import { Colors } from "@/theme";
+
+interface SettingsHeaderProps {
+ title?: string;
+ onBackPress?: () => void;
+ rightAction?: React.ReactNode;
+}
+
+export default function SettingsHeader({
+ title = "Settings",
+ onBackPress,
+ rightAction,
+}: SettingsHeaderProps) {
+ const router = useRouter();
+
+ const handleBack = () => {
+ if (onBackPress) {
+ onBackPress();
+ return;
+ }
+
+ if (router.canGoBack()) {
+ router.back();
+ } else {
+ router.replace("/(tabs)/profile");
+ }
+ };
+
+ return (
+
+ [
+ styles.backButton,
+ pressed && styles.backButtonPressed,
+ ]}
+ onPress={handleBack}
+ >
+
+
+
+
+ {title}
+
+
+ {rightAction ? (
+ {rightAction}
+ ) : (
+
+ )}
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ height: verticalScale(50),
+ flexDirection: "row",
+ alignItems: "center",
+ justifyContent: "space-between",
+ marginBottom: verticalScale(16),
+ },
+
+ backButton: {
+ width: scale(38),
+ height: scale(38),
+ borderRadius: scale(19),
+ justifyContent: "center",
+ alignItems: "center",
+ backgroundColor: "#F1F5F9",
+ },
+
+ backButtonPressed: {
+ backgroundColor: "#E2E8F0",
+ },
+
+ title: {
+ flex: 1,
+ textAlign: "center",
+ fontSize: moderateScale(17),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ marginHorizontal: scale(8),
+ },
+
+ placeholder: {
+ width: scale(38),
+ height: scale(38),
+ },
+
+ rightActionContainer: {
+ width: scale(38),
+ height: scale(38),
+ justifyContent: "center",
+ alignItems: "center",
+ },
+});
diff --git a/src/features/settings/components/SettingsSection.tsx b/src/features/settings/components/SettingsSection.tsx
new file mode 100644
index 0000000..422ed60
--- /dev/null
+++ b/src/features/settings/components/SettingsSection.tsx
@@ -0,0 +1,75 @@
+import React from "react";
+import { StyleSheet, Text, View } from "react-native";
+import { useRouter } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import ProfileMenuItem from "@/features/profile/components/ProfileMenuItem";
+import { Colors } from "@/theme";
+import { SettingsSectionProps, SettingsItem } from "../types";
+
+export default function SettingsSection({
+ title,
+ items,
+}: SettingsSectionProps) {
+ const router = useRouter();
+
+ const handlePress = (item: SettingsItem) => {
+ if (item.onPress) {
+ item.onPress();
+ return;
+ }
+ if (item.route) {
+ router.push(item.route as never);
+ }
+ };
+
+ if (!items || items.length === 0) return null;
+
+ return (
+
+ {title}
+
+
+ {items.map((item, index) => (
+ handlePress(item)}
+ />
+ ))}
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ marginBottom: verticalScale(20),
+ },
+
+ sectionTitle: {
+ fontSize: moderateScale(13),
+ fontWeight: "700",
+ color: Colors.textSecondary,
+ textTransform: "uppercase",
+ letterSpacing: 0.5,
+ marginBottom: verticalScale(8),
+ marginLeft: moderateScale(4),
+ },
+
+ card: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ overflow: "hidden",
+ borderWidth: 1,
+ borderColor: "#E5E7EB",
+ },
+});
diff --git a/src/features/settings/constants/settingsData.ts b/src/features/settings/constants/settingsData.ts
new file mode 100644
index 0000000..618c62f
--- /dev/null
+++ b/src/features/settings/constants/settingsData.ts
@@ -0,0 +1,61 @@
+import { Ionicons } from "@expo/vector-icons";
+import { SettingsItem } from "../types";
+
+export const ACCOUNT_SETTINGS: SettingsItem[] = [
+ {
+ id: "edit-profile",
+ title: "Edit Profile",
+ subtitle: "Update name, phone number & country",
+ icon: "person-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/profile/edit",
+ },
+ {
+ id: "change-password",
+ title: "Change Password",
+ subtitle: "Manage login credentials & security",
+ icon: "lock-closed-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/profile/change-password",
+ },
+ {
+ id: "notification-settings",
+ title: "Notification Settings",
+ subtitle: "Clinical updates & reminder alerts",
+ icon: "notifications-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/settings/notifications",
+ },
+ {
+ id: "privacy-settings",
+ title: "Privacy & Data",
+ subtitle: "Search cache & data governance",
+ icon: "shield-checkmark-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/settings/privacy",
+ },
+];
+
+export const PREFERENCE_SETTINGS: SettingsItem[] = [
+ {
+ id: "language",
+ title: "Language",
+ subtitle: "Interface localized language",
+ icon: "language-outline" as keyof typeof Ionicons.glyphMap,
+ value: "English",
+ route: "/settings/language",
+ },
+];
+
+export const SUPPORT_SETTINGS: SettingsItem[] = [
+ {
+ id: "help-support",
+ title: "Help & Support",
+ subtitle: "FAQs, user guide & clinical inquiries",
+ icon: "help-circle-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/settings/help-support",
+ },
+ {
+ id: "about-acupedia",
+ title: "About Acupedia",
+ subtitle: "Version, disclaimer & publisher info",
+ icon: "information-circle-outline" as keyof typeof Ionicons.glyphMap,
+ route: "/settings/about",
+ },
+];
diff --git a/src/features/settings/types.ts b/src/features/settings/types.ts
new file mode 100644
index 0000000..1d327bb
--- /dev/null
+++ b/src/features/settings/types.ts
@@ -0,0 +1,19 @@
+import { Ionicons } from "@expo/vector-icons";
+
+export interface SettingsItem {
+ id: string;
+ title: string;
+ subtitle?: string;
+ icon: keyof typeof Ionicons.glyphMap;
+ route?: string;
+ value?: string;
+ isSwitch?: boolean;
+ switchValue?: boolean;
+ onSwitchChange?: (val: boolean) => void;
+ onPress?: () => void;
+}
+
+export interface SettingsSectionProps {
+ title: string;
+ items: SettingsItem[];
+}
diff --git a/src/screens/profile/EditProfileScreen.tsx b/src/screens/profile/EditProfileScreen.tsx
index bff9bee..3b8406d 100644
--- a/src/screens/profile/EditProfileScreen.tsx
+++ b/src/screens/profile/EditProfileScreen.tsx
@@ -1,5 +1,6 @@
-import React from "react";
+import React, { useState } from "react";
import {
+ Alert,
KeyboardAvoidingView,
Platform,
ScrollView,
@@ -12,7 +13,8 @@ import {
verticalScale,
} from "react-native-size-matters";
import { router } from "expo-router";
-import EditProfileHeader from "@/features/profile/components/EditProfileHeader";
+
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
import { Colors } from "@/theme";
import EditProfileForm from "@/features/profile/components/EditProfileForm";
import EditProfileAvatar from "@/features/profile/components/EditProfileAvatar";
@@ -22,22 +24,51 @@ import { apiClient } from "@/api";
export default function EditProfileScreen() {
const user = useAuthStore((state) => state.user);
const refreshIdentity = useAuthStore((state) => state.refreshIdentity);
+ const [saving, setSaving] = useState(false);
- const handleSave = async (updatedName: string, updatedPhone: string) => {
- if (user) {
- try {
- await apiClient.put("/auth/profile", {
- full_name: updatedName,
- phone_number: updatedPhone,
- });
-
- await refreshIdentity();
- } catch (err: any) {
- console.warn("Failed to update profile:", err);
- alert("Failed to save changes. Please try again.");
- }
+ const handleSave = async (
+ updatedName: string,
+ updatedPhone: string,
+ updatedCountry: string
+ ) => {
+ if (!user) {
+ router.back();
+ return;
+ }
+
+ setSaving(true);
+ try {
+ await apiClient.put("/auth/profile", {
+ full_name: updatedName.trim(),
+ phone_number: updatedPhone.trim() || null,
+ country: updatedCountry.trim() || null,
+ });
+
+ await refreshIdentity();
+
+ const successMsg = "Profile updated successfully!";
+ if (Platform.OS === "web") {
+ window.alert(successMsg);
+ router.back();
+ } else {
+ Alert.alert("Success", successMsg, [
+ { text: "OK", onPress: () => router.back() },
+ ]);
+ }
+ } catch (err: any) {
+ const errMsg =
+ err?.response?.data?.detail ||
+ err?.message ||
+ "Failed to save profile changes. Please try again.";
+ console.warn("Failed to update profile:", err);
+ if (Platform.OS === "web") {
+ window.alert(errMsg);
+ } else {
+ Alert.alert("Error", errMsg);
+ }
+ } finally {
+ setSaving(false);
}
- router.back();
};
return (
@@ -52,27 +83,18 @@ export default function EditProfileScreen() {
contentContainerStyle={styles.contentContainer}
>
-
-
+
+
+
- {
- // TODO: Open image picker
- }}
- />
-
-
- {/* Step 4 */}
- {/* EditProfileForm */}
-
- {/* Step 5 */}
- {/* Save Button */}
@@ -92,12 +114,12 @@ const styles = StyleSheet.create({
contentContainer: {
flexGrow: 1,
- paddingBottom: verticalScale(24),
+ paddingBottom: verticalScale(32),
},
container: {
flex: 1,
- paddingHorizontal: moderateScale(24),
- paddingTop: verticalScale(20),
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
},
});
\ No newline at end of file
diff --git a/src/screens/profile/ProfileOverviewScreen.tsx b/src/screens/profile/ProfileOverviewScreen.tsx
index be8e8d7..1c089f2 100644
--- a/src/screens/profile/ProfileOverviewScreen.tsx
+++ b/src/screens/profile/ProfileOverviewScreen.tsx
@@ -17,10 +17,10 @@ import { router } from "expo-router";
import { Ionicons } from "@expo/vector-icons";
import { Colors } from "@/theme";
-
import ProfileHeader from "@/features/profile/components/ProfileHeader";
import ProfileAvatar from "@/features/profile/components/ProfileAvatar";
import ProfileOverviewCard from "@/features/profile/components/ProfileOverviewCard";
+import LogoutButton from "@/features/settings/components/LogoutButton";
import { useAuthStore } from "@/store/auth.store";
export default function ProfileOverviewScreen() {
@@ -45,7 +45,7 @@ export default function ProfileOverviewScreen() {
} else {
Alert.alert(
"Log Out",
- "Are you sure you want to log out?",
+ "Are you sure you want to log out of Acupedia?",
[
{ text: "Cancel", style: "cancel" },
{
@@ -54,7 +54,7 @@ export default function ProfileOverviewScreen() {
onPress: doLogout,
},
],
- { cancelable: true },
+ { cancelable: true }
);
}
};
@@ -68,23 +68,29 @@ export default function ProfileOverviewScreen() {
>
-
+
- Join AcuPedia
+ Join Acupedia
- Sign in or create an account to unlock premium clinical modules, track your learning progress, and customize your profile references.
+ Sign in or create an account to unlock clinical point pathways, track your learning progress, and customize your clinical references.
-
- router.push("/login")}
+ activeOpacity={0.85}
>
Log In
- router.push("/register")}
+ activeOpacity={0.85}
>
Create Account
@@ -102,6 +108,8 @@ export default function ProfileOverviewScreen() {
>
{
router.push("/settings");
}}
@@ -110,21 +118,11 @@ export default function ProfileOverviewScreen() {
{
- router.push("/profile/edit");
- }}
/>
-
-
- Log Out
-
+
@@ -142,40 +140,25 @@ const styles = StyleSheet.create({
paddingBottom: verticalScale(24),
},
- logoutButton: {
- flexDirection: "row",
- alignItems: "center",
- justifyContent: "center",
- gap: moderateScale(8),
- backgroundColor: "#FEE2E2",
- borderRadius: moderateScale(14),
- paddingVertical: verticalScale(14),
- marginTop: verticalScale(24),
- },
- logoutButtonText: {
- fontSize: moderateScale(15),
- fontWeight: "700",
- color: "#DC2626",
- },
-
container: {
flex: 1,
- paddingHorizontal: moderateScale(24),
- paddingTop: verticalScale(20),
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
},
guestContentContainer: {
flexGrow: 1,
justifyContent: "center",
- paddingHorizontal: moderateScale(24),
+ paddingHorizontal: moderateScale(20),
paddingBottom: verticalScale(40),
},
+
guestCard: {
backgroundColor: "#FFFFFF",
- borderRadius: moderateScale(24),
+ borderRadius: moderateScale(20),
borderWidth: 1,
borderColor: "#E5E7EB",
- padding: moderateScale(28),
+ padding: moderateScale(26),
alignItems: "center",
shadowColor: "#000000",
shadowOffset: { width: 0, height: 4 },
@@ -183,44 +166,51 @@ const styles = StyleSheet.create({
shadowRadius: 10,
elevation: 2,
},
+
guestIconWrapper: {
- marginBottom: verticalScale(16),
+ marginBottom: verticalScale(14),
},
+
guestTitle: {
fontSize: moderateScale(22),
fontWeight: "800",
color: Colors.textPrimary,
- marginBottom: verticalScale(8),
+ marginBottom: verticalScale(6),
},
+
guestSubtitle: {
- fontSize: moderateScale(14),
+ fontSize: moderateScale(13),
color: Colors.textSecondary,
textAlign: "center",
- lineHeight: 20,
- marginBottom: verticalScale(28),
+ lineHeight: 19,
+ marginBottom: verticalScale(24),
},
+
guestLoginButton: {
width: "100%",
backgroundColor: Colors.primary,
- borderRadius: moderateScale(14),
+ borderRadius: moderateScale(12),
paddingVertical: verticalScale(13),
alignItems: "center",
- marginBottom: verticalScale(12),
+ marginBottom: verticalScale(10),
},
+
guestLoginButtonText: {
fontSize: moderateScale(15),
fontWeight: "700",
color: "#FFFFFF",
},
+
guestSignupButton: {
width: "100%",
backgroundColor: "#FFFFFF",
- borderWidth: 2,
+ borderWidth: 1.5,
borderColor: Colors.primary,
- borderRadius: moderateScale(14),
+ borderRadius: moderateScale(12),
paddingVertical: verticalScale(12),
alignItems: "center",
},
+
guestSignupButtonText: {
fontSize: moderateScale(15),
fontWeight: "700",
diff --git a/src/screens/settings/SettingsScreen.tsx b/src/screens/settings/SettingsScreen.tsx
new file mode 100644
index 0000000..61a7d42
--- /dev/null
+++ b/src/screens/settings/SettingsScreen.tsx
@@ -0,0 +1,150 @@
+import React from "react";
+import {
+ Alert,
+ Platform,
+ ScrollView,
+ StyleSheet,
+ View,
+} from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+import { router } from "expo-router";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import { Colors } from "@/theme";
+import SettingsHeader from "@/features/settings/components/SettingsHeader";
+import SettingsSection from "@/features/settings/components/SettingsSection";
+import LogoutButton from "@/features/settings/components/LogoutButton";
+import {
+ ACCOUNT_SETTINGS,
+ PREFERENCE_SETTINGS,
+ SUPPORT_SETTINGS,
+} from "@/features/settings/constants/settingsData";
+import { SettingsItem } from "@/features/settings/types";
+import { useAuthStore } from "@/store/auth.store";
+import { useSettingsStore } from "@/store/settings.store";
+
+export default function SettingsScreen() {
+ const user = useAuthStore((state) => state.user);
+ const logout = useAuthStore((state) => state.logout);
+
+ const accordionDefaultExpanded = useSettingsStore(
+ (state) => state.accordionDefaultExpanded
+ );
+ const setAccordionDefaultExpanded = useSettingsStore(
+ (state) => state.setAccordionDefaultExpanded
+ );
+
+ const contentPreviewEnabled = useSettingsStore(
+ (state) => state.contentPreviewEnabled
+ );
+ const setContentPreviewEnabled = useSettingsStore(
+ (state) => state.setContentPreviewEnabled
+ );
+
+ // Clinical Preview Mode is strictly gated to admin role
+ const isAdmin = user?.roles?.includes("admin") ?? false;
+
+ const appPreferenceItems: SettingsItem[] = [
+ {
+ id: "expand-accordions",
+ title: "Expand Sections by Default",
+ subtitle: "Keep all detail accordions open while reading",
+ icon: "list-outline",
+ isSwitch: true,
+ switchValue: accordionDefaultExpanded,
+ onSwitchChange: (val) => setAccordionDefaultExpanded(val),
+ },
+ ...(isAdmin
+ ? [
+ {
+ id: "clinical-preview",
+ title: "Clinical Draft / Preview Mode",
+ subtitle: "View unpublished modules & draft revisions",
+ icon: "flask-outline" as const,
+ isSwitch: true,
+ switchValue: contentPreviewEnabled,
+ onSwitchChange: (val: boolean) => setContentPreviewEnabled(val),
+ },
+ ]
+ : []),
+ ...PREFERENCE_SETTINGS,
+ ];
+
+ const handleLogout = () => {
+ const doLogout = () => {
+ logout();
+ router.replace("/login");
+ };
+
+ if (Platform.OS === "web") {
+ const confirmed =
+ typeof window !== "undefined"
+ ? window.confirm("Are you sure you want to log out?")
+ : true;
+ if (confirmed) {
+ doLogout();
+ }
+ } else {
+ Alert.alert(
+ "Log Out",
+ "Are you sure you want to log out of Acupedia?",
+ [
+ { text: "Cancel", style: "cancel" },
+ {
+ text: "Log Out",
+ style: "destructive",
+ onPress: doLogout,
+ },
+ ],
+ { cancelable: true }
+ );
+ }
+ };
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ safeArea: {
+ flex: 1,
+ backgroundColor: Colors.background,
+ },
+ contentContainer: {
+ flexGrow: 1,
+ paddingBottom: verticalScale(32),
+ },
+ container: {
+ flex: 1,
+ paddingHorizontal: moderateScale(20),
+ paddingTop: verticalScale(12),
+ },
+});
diff --git a/src/store/auth.store.ts b/src/store/auth.store.ts
index 819f14a..ea3100a 100644
--- a/src/store/auth.store.ts
+++ b/src/store/auth.store.ts
@@ -7,7 +7,7 @@ import {
setApiAccessToken,
} from "@/api/access-token";
import { getAccessMe } from "@/features/access/api/access.api";
-import { isUnauthorizedApiError } from "@/api/error-utils";
+import { getApiErrorStatus, isUnauthorizedApiError } from "@/api/error-utils";
import { setUnauthorizedHandler } from "@/api/session-events";
import { getMe } from "@/features/auth/api/auth.api";
@@ -167,8 +167,11 @@ export const useAuthStore = create()(
get().refreshAccess(),
]);
+ const isSessionInvalid = (reason: unknown) =>
+ isUnauthorizedApiError(reason) || getApiErrorStatus(reason) === 404;
+
const unauthorized =
- (identityResult.status === "rejected" && isUnauthorizedApiError(identityResult.reason)) ||
+ (identityResult.status === "rejected" && isSessionInvalid(identityResult.reason)) ||
(accessResult.status === "rejected" && isUnauthorizedApiError(accessResult.reason));
if (unauthorized) {
@@ -223,10 +226,14 @@ export const useAuthStore = create()(
get().refreshAccess(),
]);
- // Identity 401/invalid-token is handled conservatively by clearing the
+ // Identity 401/404/invalid-token is handled conservatively by clearing the
// local session. Access failures are non-fatal and leave prior access
// state intact for transient-network resilience.
- if (identityResult.status === "rejected" && isUnauthorizedApiError(identityResult.reason)) {
+ if (
+ identityResult.status === "rejected" &&
+ (isUnauthorizedApiError(identityResult.reason) ||
+ getApiErrorStatus(identityResult.reason) === 404)
+ ) {
get().logout();
return;
}
diff --git a/src/store/settings.store.ts b/src/store/settings.store.ts
index 9e77e8e..35f9766 100644
--- a/src/store/settings.store.ts
+++ b/src/store/settings.store.ts
@@ -1,21 +1,71 @@
+import AsyncStorage from "@react-native-async-storage/async-storage";
import { create } from "zustand";
+import { createJSONStorage, persist } from "zustand/middleware";
-import { SettingsState } from "./types";
+import { NotificationPreferences, SettingsState } from "./types";
interface SettingsStore extends SettingsState {
- setTheme: (theme: "light" | "dark") => void;
+ setTheme: (theme: "light" | "dark" | "system") => void;
setContentPreviewEnabled: (enabled: boolean) => void;
+ setAccordionDefaultExpanded: (expanded: boolean) => void;
+ toggleAccordionDefaultExpanded: () => void;
+ setNotificationPreference: (
+ key: keyof NotificationPreferences,
+ value: boolean
+ ) => void;
+ setLanguage: (language: string) => void;
+ resetSettings: () => void;
}
-export const useSettingsStore = create((set) => ({
+const DEFAULT_NOTIFICATIONS: NotificationPreferences = {
+ push: true,
+ clinicalUpdates: true,
+ weeklyDigest: false,
+ sound: true,
+ vibration: true,
+};
+
+const DEFAULT_SETTINGS: SettingsState = {
theme: "light",
contentPreviewEnabled: false,
+ accordionDefaultExpanded: false,
+ notifications: DEFAULT_NOTIFICATIONS,
+ language: "en",
+};
- setTheme: (theme) =>
- set({
- theme,
+export const useSettingsStore = create()(
+ persist(
+ (set) => ({
+ ...DEFAULT_SETTINGS,
+
+ setTheme: (theme) => set({ theme }),
+
+ setContentPreviewEnabled: (contentPreviewEnabled) =>
+ set({ contentPreviewEnabled }),
+
+ setAccordionDefaultExpanded: (accordionDefaultExpanded) =>
+ set({ accordionDefaultExpanded }),
+
+ toggleAccordionDefaultExpanded: () =>
+ set((state) => ({
+ accordionDefaultExpanded: !state.accordionDefaultExpanded,
+ })),
+
+ setNotificationPreference: (key, value) =>
+ set((state) => ({
+ notifications: {
+ ...state.notifications,
+ [key]: value,
+ },
+ })),
+
+ setLanguage: (language) => set({ language }),
+
+ resetSettings: () => set(DEFAULT_SETTINGS),
}),
-
- setContentPreviewEnabled: (contentPreviewEnabled) =>
- set({ contentPreviewEnabled }),
-}));
\ No newline at end of file
+ {
+ name: "acupedia-settings-storage",
+ storage: createJSONStorage(() => AsyncStorage),
+ }
+ )
+);
\ No newline at end of file
diff --git a/src/store/types.ts b/src/store/types.ts
index 8ad997e..bef6c95 100644
--- a/src/store/types.ts
+++ b/src/store/types.ts
@@ -108,7 +108,18 @@ export interface AppState {
isLoading: boolean;
}
-export interface SettingsState {
- theme: "light" | "dark";
- contentPreviewEnabled: boolean;
+export interface NotificationPreferences {
+ push: boolean;
+ clinicalUpdates: boolean;
+ weeklyDigest: boolean;
+ sound: boolean;
+ vibration: boolean;
+}
+
+export interface SettingsState {
+ theme: "light" | "dark" | "system";
+ contentPreviewEnabled: boolean;
+ accordionDefaultExpanded: boolean;
+ notifications: NotificationPreferences;
+ language: string;
}