@equinor/mad-core 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/{chunk-JPVO5SH5.js → chunk-35THIGVH.js} +10 -1
- package/dist/chunk-3LDWV3SJ.js +41 -0
- package/dist/chunk-4VKFRNU7.js +10 -0
- package/dist/{chunk-QU6EUUQS.js → chunk-5QALP2TZ.js} +5 -5
- package/dist/chunk-635YONGY.js +0 -0
- package/dist/chunk-7SJM4NDH.js +12 -0
- package/dist/chunk-AK7PA4BE.js +0 -0
- package/dist/{chunk-ICIPJG6P.js → chunk-CXOQFGMM.js} +21 -5
- package/dist/chunk-DOHQX5XC.js +50 -0
- package/dist/chunk-E36MLVBD.js +19 -0
- package/dist/chunk-EQYL7INQ.js +22 -0
- package/dist/chunk-FUGJZRIR.js +36 -0
- package/dist/chunk-GCBWBANV.js +10 -0
- package/dist/chunk-GUKC6UGZ.js +0 -0
- package/dist/{chunk-SDIKBCFE.js → chunk-HOPDSUAE.js} +1 -1
- package/dist/chunk-KXAIAYE4.js +44 -0
- package/dist/chunk-PEFOX6JA.js +70 -0
- package/dist/{chunk-JRIQBUIT.js → chunk-TLJLKQRN.js} +36 -14
- package/dist/chunk-UVQ3Z5PG.js +0 -0
- package/dist/chunk-VBEIVB4R.js +10 -0
- package/dist/components/createCoreStackNavigator.d.ts +6 -6
- package/dist/components/createCoreStackNavigator.js +17 -12
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +30 -13
- package/dist/components/screens/AboutScreen.d.ts +2 -0
- package/dist/components/screens/AboutScreen.js +7 -0
- package/dist/components/screens/CreateIncidentScreen.d.ts +2 -0
- package/dist/components/screens/CreateIncidentScreen.js +7 -0
- package/dist/components/screens/LoginScreen.js +6 -5
- package/dist/components/screens/release-notes/ChangeLog.d.ts +2 -3
- package/dist/components/screens/release-notes/ChangeLog.js +1 -1
- package/dist/components/screens/release-notes/ReleaseNotesScreen.d.ts +2 -0
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +7 -0
- package/dist/components/screens/release-notes/WhatsNewScreen.js +9 -7
- package/dist/components/screens/settings/Section.d.ts +3 -0
- package/dist/components/screens/settings/Section.js +13 -0
- package/dist/components/screens/settings/SettingsScreen.d.ts +15 -0
- package/dist/components/screens/settings/SettingsScreen.js +20 -0
- package/dist/components/screens/settings/index.d.ts +2 -0
- package/dist/components/screens/settings/index.js +22 -0
- package/dist/components/screens/settings/renderCell.d.ts +5 -0
- package/dist/components/screens/settings/renderCell.js +7 -0
- package/dist/components/screens/settings/types.d.ts +22 -0
- package/dist/components/screens/settings/types.js +1 -0
- package/dist/components/screens/settings/useSignOut.d.ts +1 -0
- package/dist/components/screens/settings/useSignOut.js +10 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +14 -0
- package/dist/hooks/useAccountOrDemoAccount.d.ts +7 -0
- package/dist/hooks/useAccountOrDemoAccount.js +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +38 -15
- package/dist/store/language/index.js +2 -1
- package/dist/store/language/language.js +2 -1
- package/dist/store/mad-config/hooks.d.ts +5 -1
- package/dist/store/mad-config/hooks.js +6 -3
- package/dist/store/mad-config/index.js +6 -3
- package/dist/store/release-notes/index.js +1 -0
- package/dist/types.d.ts +13 -0
- package/dist/utils/createMadCoreNavigator.js +16 -11
- package/dist/utils/getFinalSettingsConfig.d.ts +3 -0
- package/dist/utils/getFinalSettingsConfig.js +7 -0
- package/dist/utils/getPremadeSettings.d.ts +7 -0
- package/dist/utils/getPremadeSettings.js +7 -0
- package/package.json +4 -4
- package/dist/chunk-3DI7YERU.js +0 -80
- /package/dist/{chunk-HAB34YS7.js → chunk-5GBNULIT.js} +0 -0
package/dist/chunk-3DI7YERU.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getShortDate
|
|
3
|
-
} from "./chunk-OCWASWDK.js";
|
|
4
|
-
|
|
5
|
-
// src/components/screens/release-notes/ChangeLog.tsx
|
|
6
|
-
import React, { useState } from "react";
|
|
7
|
-
import { View, ScrollView, StyleSheet } from "react-native";
|
|
8
|
-
import RenderHtml, { defaultSystemFonts } from "react-native-render-html";
|
|
9
|
-
import * as showdown from "showdown";
|
|
10
|
-
import { Typography, Button } from "@equinor/mad-components";
|
|
11
|
-
var featureTitle = "What's new";
|
|
12
|
-
var affirmText = "OK";
|
|
13
|
-
var converter = new showdown.Converter();
|
|
14
|
-
var systemFonts = [...defaultSystemFonts, "Equinor-Regular", "Equinor-Medium"];
|
|
15
|
-
var ChangeLog = ({ release, onPressAffirm }) => {
|
|
16
|
-
const [width, setWidth] = useState(0);
|
|
17
|
-
const html = { html: converter.makeHtml(release.releaseNote) };
|
|
18
|
-
const date = new Date(release.releaseDate);
|
|
19
|
-
const shortDate = getShortDate(date);
|
|
20
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(Typography, { style: styles.titleHeader, variant: "h4" }, featureTitle), /* @__PURE__ */ React.createElement(ScrollView, { style: styles.changelogItem }, /* @__PURE__ */ React.createElement(Typography, { style: styles.versionHeader }, release.version), /* @__PURE__ */ React.createElement(Typography, { style: styles.subtitleHeader }, shortDate), /* @__PURE__ */ React.createElement(
|
|
21
|
-
View,
|
|
22
|
-
{
|
|
23
|
-
onLayout: (event) => {
|
|
24
|
-
const { width: width2 } = event.nativeEvent.layout;
|
|
25
|
-
setWidth(width2);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
/* @__PURE__ */ React.createElement(
|
|
29
|
-
RenderHtml,
|
|
30
|
-
{
|
|
31
|
-
contentWidth: width,
|
|
32
|
-
source: html,
|
|
33
|
-
systemFonts,
|
|
34
|
-
tagsStyles: {
|
|
35
|
-
li: {
|
|
36
|
-
marginBottom: 10,
|
|
37
|
-
fontFamily: "Equinor-Medium",
|
|
38
|
-
fontSize: 18,
|
|
39
|
-
color: "#333333"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
)), /* @__PURE__ */ React.createElement(View, { style: styles.footer }, /* @__PURE__ */ React.createElement(Button, { title: affirmText, onPress: onPressAffirm })));
|
|
45
|
-
};
|
|
46
|
-
var styles = StyleSheet.create({
|
|
47
|
-
container: {
|
|
48
|
-
flex: 1,
|
|
49
|
-
paddingTop: 50,
|
|
50
|
-
justifyContent: "center"
|
|
51
|
-
},
|
|
52
|
-
titleHeader: {
|
|
53
|
-
marginVertical: 15
|
|
54
|
-
},
|
|
55
|
-
changelogItem: {
|
|
56
|
-
marginBottom: 15,
|
|
57
|
-
marginTop: 20,
|
|
58
|
-
paddingHorizontal: 20
|
|
59
|
-
},
|
|
60
|
-
versionHeader: {
|
|
61
|
-
marginVertical: 15
|
|
62
|
-
},
|
|
63
|
-
subtitleHeader: {
|
|
64
|
-
fontSize: 18,
|
|
65
|
-
marginVertical: 5,
|
|
66
|
-
color: "#333333"
|
|
67
|
-
},
|
|
68
|
-
footer: {
|
|
69
|
-
height: 80,
|
|
70
|
-
flexDirection: "row",
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
justifyContent: "center",
|
|
73
|
-
borderColor: "#808080",
|
|
74
|
-
borderTopWidth: 0.5
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
ChangeLog
|
|
80
|
-
};
|
|
File without changes
|