@equinor/mad-core 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +3 -456
  3. package/dist/{chunk-LSCWXRAR.js → chunk-4B6Z33WD.js} +14 -11
  4. package/dist/{chunk-VFLAXR3V.js → chunk-7TSQIIGU.js} +4 -4
  5. package/dist/{chunk-N443DTFE.js → chunk-CRICOQIB.js} +2 -2
  6. package/dist/chunk-DEVBLCRV.js +17 -0
  7. package/dist/{chunk-C3VF3WPU.js → chunk-G5FM7D6M.js} +4 -4
  8. package/dist/{chunk-2MPM3JZD.js → chunk-GBLKZ47S.js} +1 -1
  9. package/dist/{chunk-QCUUIP5W.js → chunk-GBOOMGQT.js} +1 -1
  10. package/dist/{chunk-H5ZG24IA.js → chunk-GZ724MTU.js} +2 -1
  11. package/dist/{chunk-2OQBD2JH.js → chunk-KOARSQKK.js} +3 -3
  12. package/dist/{chunk-MGETTUQA.js → chunk-N5UAX7DA.js} +4 -2
  13. package/dist/chunk-NA7ZYOXW.js +9 -0
  14. package/dist/{chunk-RIWMGRXW.js → chunk-QKUSNQOJ.js} +3 -3
  15. package/dist/{chunk-JYYVDGBI.js → chunk-TR4KTTGP.js} +1 -1
  16. package/dist/components/ToastEmitter.d.ts +2 -0
  17. package/dist/components/ToastEmitter.js +8 -0
  18. package/dist/components/createCoreStackNavigator.js +18 -16
  19. package/dist/components/index.js +20 -18
  20. package/dist/components/screens/AboutScreen.js +1 -1
  21. package/dist/components/screens/LoginScreen.js +1 -1
  22. package/dist/components/screens/create-incident/CreateIncidentScreen.js +2 -2
  23. package/dist/components/screens/language/SelectLanguageScreen.js +2 -2
  24. package/dist/components/screens/release-notes/ReleaseNotesScreen.js +4 -4
  25. package/dist/components/screens/release-notes/WhatsNewScreen.js +3 -3
  26. package/dist/components/screens/release-notes/fetchReleaseNotes.js +1 -1
  27. package/dist/components/screens/settings/Section.js +1 -1
  28. package/dist/components/screens/settings/SettingsScreen.js +3 -3
  29. package/dist/components/screens/settings/index.js +4 -4
  30. package/dist/hooks/UseReleaseNotes.js +2 -2
  31. package/dist/hooks/index.js +1 -1
  32. package/dist/hooks/useAccountOrDemoAccount.js +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +29 -20
  35. package/dist/store/mad-config/hooks.d.ts +1 -1
  36. package/dist/types.d.ts +1 -1
  37. package/dist/utils/createMadCoreNavigator.js +16 -14
  38. package/dist/utils/getTopOffsetForToast.d.ts +1 -0
  39. package/dist/utils/getTopOffsetForToast.js +7 -0
  40. package/package.json +5 -5
  41. package/dist/{chunk-LYU7NQBB.js → chunk-OACYJHTV.js} +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-core",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Core library for the Mobile App Delivery team",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -35,16 +35,16 @@
35
35
  "react-dom": ">=18.0",
36
36
  "react-native": ">=0.70",
37
37
  "react-native-gesture-handler": "^2.14.0",
38
- "react-native-msal": "*"
38
+ "react-native-msal": "*",
39
+ "react-native-safe-area-context": "^4.10.1"
39
40
  },
40
41
  "dependencies": {
41
42
  "@equinor/mad-auth": "*",
42
43
  "@equinor/mad-components": "*",
43
44
  "@equinor/mad-insights": "*",
44
45
  "@equinor/mad-navigation": "*",
46
+ "@equinor/mad-toast": "*",
45
47
  "@react-navigation/elements": "1.3.21",
46
- "expo-auth-session": "~5.0.2",
47
- "expo-crypto": "~12.4.1",
48
48
  "markdown-it": "^14.0.0",
49
49
  "react-native-markdown-display": "^7.0.2",
50
50
  "zustand": "^4.4.1"
@@ -64,4 +64,4 @@
64
64
  "CHANGELOG.md",
65
65
  "dist"
66
66
  ]
67
- }
67
+ }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SelectLanguageCellGroup
3
3
  } from "./chunk-SSSTWTHP.js";
4
- import {
5
- useNavigateFromLanguageSelectScreen
6
- } from "./chunk-YH46KAXB.js";
7
4
  import {
8
5
  useScreenTitleFromDictionary
9
6
  } from "./chunk-XMRWZHBV.js";
7
+ import {
8
+ useNavigateFromLanguageSelectScreen
9
+ } from "./chunk-YH46KAXB.js";
10
10
  import {
11
11
  useDictionary,
12
12
  useLanguage