@plusscommunities/pluss-webview-app 6.0.0 → 6.0.2-auth.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.
- package/dist/module/components/WidgetLarge.js +21 -20
- package/dist/module/components/WidgetLarge.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +21 -20
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/dist/module/core.config.js +2 -3
- package/dist/module/core.config.js.map +1 -1
- package/dist/module/feature.config.js +16 -16
- package/dist/module/feature.config.js.map +1 -1
- package/dist/module/index.js +5 -5
- package/dist/module/index.js.map +1 -1
- package/dist/module/screens/WebPage.js +2 -2
- package/dist/module/screens/WebPage.js.map +1 -1
- package/dist/module/screens/WebViewPage.js +7 -7
- package/dist/module/screens/WebViewPage.js.map +1 -1
- package/package.json +42 -39
- package/src/components/WidgetLarge.js +122 -102
- package/src/components/WidgetSmall.js +123 -103
- package/src/core.config.js +25 -3
- package/src/feature.config.js +33 -33
- package/src/index.js +5 -5
- package/src/screens/WebPage.js +5 -5
- package/src/screens/WebViewPage.js +40 -31
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { View,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, StyleSheet } from "react-native";
|
|
6
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
7
|
+
import { WebView } from "react-native-webview";
|
|
8
|
+
import { connect } from "react-redux";
|
|
9
|
+
import _ from "lodash";
|
|
10
|
+
import { Colours, Components } from "../core.config";
|
|
11
|
+
import { Services } from "../feature.config";
|
|
11
12
|
class WidgetLarge extends Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -17,8 +18,8 @@ class WidgetLarge extends Component {
|
|
|
17
18
|
const {
|
|
18
19
|
options
|
|
19
20
|
} = this.props;
|
|
20
|
-
Services.navigation.navigate(
|
|
21
|
-
url: options[
|
|
21
|
+
Services.navigation.navigate("webViewPage", {
|
|
22
|
+
url: options["webUrl"],
|
|
22
23
|
headerTitle: this.getTitle()
|
|
23
24
|
});
|
|
24
25
|
});
|
|
@@ -27,7 +28,7 @@ class WidgetLarge extends Component {
|
|
|
27
28
|
options
|
|
28
29
|
} = this.props;
|
|
29
30
|
if (options && !_.isEmpty(options.Title)) return options.Title;
|
|
30
|
-
return
|
|
31
|
+
return "Web View";
|
|
31
32
|
});
|
|
32
33
|
this.state = {};
|
|
33
34
|
}
|
|
@@ -78,7 +79,7 @@ class WidgetLarge extends Component {
|
|
|
78
79
|
style: styles.container
|
|
79
80
|
}, this.props.ListHeaderComponent, /*#__PURE__*/React.createElement(WebView, {
|
|
80
81
|
source: {
|
|
81
|
-
uri: options[
|
|
82
|
+
uri: options["webUrl"]
|
|
82
83
|
},
|
|
83
84
|
style: styles.webContainer,
|
|
84
85
|
onLoadStart: this.onLoadStart,
|
|
@@ -92,22 +93,22 @@ const styles = StyleSheet.create({
|
|
|
92
93
|
},
|
|
93
94
|
webContainer: {
|
|
94
95
|
flex: 1,
|
|
95
|
-
alignItems:
|
|
96
|
-
justifyContent:
|
|
96
|
+
alignItems: "center",
|
|
97
|
+
justifyContent: "center"
|
|
97
98
|
},
|
|
98
99
|
buttonContainer: {
|
|
99
|
-
width:
|
|
100
|
-
alignItems:
|
|
101
|
-
justifyContent:
|
|
100
|
+
width: "100%",
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
justifyContent: "center",
|
|
102
103
|
padding: 16
|
|
103
104
|
},
|
|
104
105
|
upperContainer: {
|
|
105
|
-
flexDirection:
|
|
106
|
-
alignItems:
|
|
107
|
-
justifyContent:
|
|
106
|
+
flexDirection: "row",
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
justifyContent: "space-between"
|
|
108
109
|
},
|
|
109
110
|
title: {
|
|
110
|
-
fontFamily:
|
|
111
|
+
fontFamily: "sf-semibold",
|
|
111
112
|
fontSize: 16
|
|
112
113
|
},
|
|
113
114
|
button: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","Text","WebView","connect","_","Colours","Components","Services","WidgetLarge","constructor","props","_defineProperty","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","createElement","style","styles","buttonContainer","backgroundColor","hexToRGBAstring","upperContainer","title","color","InlineButton","onPress","onGoToFullpage","button","large","buttonText","container","ListHeaderComponent","source","uri","webContainer","onLoadStart","onLoadEnd","create","flex","alignItems","justifyContent","width","padding","flexDirection","fontFamily","fontSize","paddingHorizontal","marginTop","mapStateToProps","getMainBrandingColourFromState","forwardRef"],"sources":["WidgetLarge.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, StyleSheet } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { WebView } from \"react-native-webview\";\nimport { connect } from \"react-redux\";\nimport _ from \"lodash\";\nimport { Colours, Components } from \"../core.config\";\nimport { Services } from \"../feature.config\";\n\nclass WidgetLarge extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {};\n\t}\n\n\tonLoadStart = () => {};\n\tonLoadEnd = () => {};\n\n\tonGoToFullpage = () => {\n\t\tconst { options } = this.props;\n\t\tServices.navigation.navigate(\"webViewPage\", {\n\t\t\turl: options[\"webUrl\"],\n\t\t\theaderTitle: this.getTitle(),\n\t\t});\n\t};\n\n\tgetTitle = () => {\n\t\tconst { options } = this.props;\n\t\tif (options && !_.isEmpty(options.Title)) return options.Title;\n\t\treturn \"Web View\";\n\t};\n\n\trender() {\n\t\tconst { options, colourBrandingMain } = this.props;\n\t\tif (options.isWebViewSeparatePage) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.buttonContainer,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2),\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<View style={styles.upperContainer}>\n\t\t\t\t\t\t<View>\n\t\t\t\t\t\t\t<Text style={[styles.title, { color: colourBrandingMain }]}>\n\t\t\t\t\t\t\t\t{this.getTitle()}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t\t<Components.InlineButton\n\t\t\t\t\t\tonPress={this.onGoToFullpage}\n\t\t\t\t\t\tcolor={colourBrandingMain}\n\t\t\t\t\t\tstyle={styles.button}\n\t\t\t\t\t\tlarge\n\t\t\t\t\t>\n\t\t\t\t\t\t{options.buttonText}\n\t\t\t\t\t</Components.InlineButton>\n\t\t\t\t</View>\n\t\t\t);\n\t\t\t// return (\n\t\t\t// <View style={styles.sectionContainer}>\n\t\t\t// <View style={styles.sectionPadding}>\n\t\t\t// <View style={styles.sectionHeading}>\n\t\t\t// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n\t\t\t// </View>\n\t\t\t// </View>\n\t\t\t// <View style={styles.buttonContainer}>\n\t\t\t// <Components.InlineButton\n\t\t\t// onPress={this.onGoToFullpage}\n\t\t\t// color={colourBrandingMain}\n\t\t\t// touchableStyle={{ paddingTop: 6 }}\n\t\t\t// textStyle={{ color: '#fff' }}\n\t\t\t// large\n\t\t\t// >\n\t\t\t// {options.buttonText}\n\t\t\t// </Components.InlineButton>\n\t\t\t// </View>\n\t\t\t// </View>\n\t\t\t// );\n\t\t}\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t{this.props.ListHeaderComponent}\n\t\t\t\t<WebView\n\t\t\t\t\tsource={{ uri: options[\"webUrl\"] }}\n\t\t\t\t\tstyle={styles.webContainer}\n\t\t\t\t\tonLoadStart={this.onLoadStart}\n\t\t\t\t\tonLoadEnd={this.onLoadEnd}\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tflex: 1,\n\t},\n\twebContainer: {\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tbuttonContainer: {\n\t\twidth: \"100%\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tpadding: 16,\n\t},\n\tupperContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\ttitle: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 16,\n\t},\n\tbutton: {\n\t\tpaddingHorizontal: 40,\n\t\tmarginTop: 16,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(\n\tWidgetLarge,\n);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC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cAAc,EAAE;IACfsB,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDlB,KAAK,EAAE;IACNsB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;EACX,CAAC;EACDlB,MAAM,EAAE;IACPmB,iBAAiB,EAAE,EAAE;IACrBC,SAAS,EAAE;EACZ;AACD,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAIrC,KAAK,IAAK;EAClC,OAAO;IACNE,kBAAkB,EAAEjB,OAAO,CAACqD,8BAA8B,CAACtC,KAAK;EACjE,CAAC;AACF,CAAC;AAED,eAAejB,OAAO,CAACsD,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;EAAEE,UAAU,EAAE;AAAK,CAAC,CAAC,CACtEnD,WACD,CAAC","ignoreList":[]}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { View,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, StyleSheet } from "react-native";
|
|
6
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
7
|
+
import { WebView } from "react-native-webview";
|
|
8
|
+
import { connect } from "react-redux";
|
|
9
|
+
import _ from "lodash";
|
|
10
|
+
import { Colours, Components } from "../core.config";
|
|
11
|
+
import { Services } from "../feature.config";
|
|
11
12
|
class WidgetSmall extends Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -17,8 +18,8 @@ class WidgetSmall extends Component {
|
|
|
17
18
|
const {
|
|
18
19
|
options
|
|
19
20
|
} = this.props;
|
|
20
|
-
Services.navigation.navigate(
|
|
21
|
-
url: options[
|
|
21
|
+
Services.navigation.navigate("webViewPage", {
|
|
22
|
+
url: options["webUrl"],
|
|
22
23
|
headerTitle: this.getTitle()
|
|
23
24
|
});
|
|
24
25
|
});
|
|
@@ -27,7 +28,7 @@ class WidgetSmall extends Component {
|
|
|
27
28
|
options
|
|
28
29
|
} = this.props;
|
|
29
30
|
if (options && !_.isEmpty(options.Title)) return options.Title;
|
|
30
|
-
return
|
|
31
|
+
return "Web View";
|
|
31
32
|
});
|
|
32
33
|
this.state = {};
|
|
33
34
|
}
|
|
@@ -78,7 +79,7 @@ class WidgetSmall extends Component {
|
|
|
78
79
|
style: styles.container
|
|
79
80
|
}, /*#__PURE__*/React.createElement(WebView, {
|
|
80
81
|
source: {
|
|
81
|
-
uri: options[
|
|
82
|
+
uri: options["webUrl"]
|
|
82
83
|
},
|
|
83
84
|
style: styles.webContainer,
|
|
84
85
|
onLoadStart: this.onLoadStart,
|
|
@@ -94,22 +95,22 @@ const styles = StyleSheet.create({
|
|
|
94
95
|
},
|
|
95
96
|
webContainer: {
|
|
96
97
|
flex: 1,
|
|
97
|
-
alignItems:
|
|
98
|
-
justifyContent:
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
justifyContent: "center"
|
|
99
100
|
},
|
|
100
101
|
buttonContainer: {
|
|
101
|
-
width:
|
|
102
|
-
alignItems:
|
|
103
|
-
justifyContent:
|
|
102
|
+
width: "100%",
|
|
103
|
+
alignItems: "center",
|
|
104
|
+
justifyContent: "center",
|
|
104
105
|
padding: 16
|
|
105
106
|
},
|
|
106
107
|
upperContainer: {
|
|
107
|
-
flexDirection:
|
|
108
|
-
alignItems:
|
|
109
|
-
justifyContent:
|
|
108
|
+
flexDirection: "row",
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
justifyContent: "space-between"
|
|
110
111
|
},
|
|
111
112
|
title: {
|
|
112
|
-
fontFamily:
|
|
113
|
+
fontFamily: "sf-semibold",
|
|
113
114
|
fontSize: 16
|
|
114
115
|
},
|
|
115
116
|
button: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","Text","WebView","connect","_","Colours","Components","Services","WidgetSmall","constructor","props","_defineProperty","options","navigation","navigate","url","headerTitle","getTitle","isEmpty","Title","state","render","colourBrandingMain","isWebViewSeparatePage","createElement","style","styles","buttonContainer","backgroundColor","hexToRGBAstring","upperContainer","title","color","InlineButton","onPress","onGoToFullpage","button","large","buttonText","container","source","uri","webContainer","onLoadStart","onLoadEnd","create","height","paddingTop","paddingBottom","flex","alignItems","justifyContent","width","padding","flexDirection","fontFamily","fontSize","paddingHorizontal","marginTop","mapStateToProps","getMainBrandingColourFromState","forwardRef"],"sources":["WidgetSmall.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, StyleSheet } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { WebView } from \"react-native-webview\";\nimport { connect } from \"react-redux\";\nimport _ from \"lodash\";\nimport { Colours, Components } from \"../core.config\";\nimport { Services } from \"../feature.config\";\n\nclass WidgetSmall extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {};\n\t}\n\n\tonLoadStart = () => {};\n\tonLoadEnd = () => {};\n\n\tonGoToFullpage = () => {\n\t\tconst { options } = this.props;\n\t\tServices.navigation.navigate(\"webViewPage\", {\n\t\t\turl: options[\"webUrl\"],\n\t\t\theaderTitle: this.getTitle(),\n\t\t});\n\t};\n\n\tgetTitle = () => {\n\t\tconst { options } = this.props;\n\t\tif (options && !_.isEmpty(options.Title)) return options.Title;\n\t\treturn \"Web View\";\n\t};\n\n\trender() {\n\t\tconst { options, colourBrandingMain } = this.props;\n\t\tif (options.isWebViewSeparatePage) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.buttonContainer,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2),\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<View style={styles.upperContainer}>\n\t\t\t\t\t\t<View>\n\t\t\t\t\t\t\t<Text style={[styles.title, { color: colourBrandingMain }]}>\n\t\t\t\t\t\t\t\t{this.getTitle()}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t\t<Components.InlineButton\n\t\t\t\t\t\tonPress={this.onGoToFullpage}\n\t\t\t\t\t\tcolor={colourBrandingMain}\n\t\t\t\t\t\tstyle={styles.button}\n\t\t\t\t\t\tlarge\n\t\t\t\t\t>\n\t\t\t\t\t\t{options.buttonText}\n\t\t\t\t\t</Components.InlineButton>\n\t\t\t\t</View>\n\t\t\t);\n\t\t\t// return (\n\t\t\t// <View style={styles.sectionContainer}>\n\t\t\t// <View style={styles.sectionPadding}>\n\t\t\t// <View style={styles.sectionHeading}>\n\t\t\t// <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n\t\t\t// </View>\n\t\t\t// </View>\n\t\t\t// <View style={styles.buttonContainer}>\n\t\t\t// <Components.InlineButton\n\t\t\t// onPress={this.onGoToFullpage}\n\t\t\t// color={colourBrandingMain}\n\t\t\t// touchableStyle={{ paddingTop: 6 }}\n\t\t\t// textStyle={{ color: '#fff' }}\n\t\t\t// large\n\t\t\t// >\n\t\t\t// {options.buttonText}\n\t\t\t// </Components.InlineButton>\n\t\t\t// </View>\n\t\t\t// </View>\n\t\t\t// );\n\t\t}\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t<WebView\n\t\t\t\t\tsource={{ uri: options[\"webUrl\"] }}\n\t\t\t\t\tstyle={styles.webContainer}\n\t\t\t\t\tonLoadStart={this.onLoadStart}\n\t\t\t\t\tonLoadEnd={this.onLoadEnd}\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\theight: 300,\n\t\tpaddingTop: 8,\n\t\tpaddingBottom: 8,\n\t},\n\twebContainer: {\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tbuttonContainer: {\n\t\twidth: \"100%\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tpadding: 16,\n\t},\n\tupperContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\ttitle: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 16,\n\t},\n\tbutton: {\n\t\tpaddingHorizontal: 40,\n\t\tmarginTop: 16,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(\n\tWidgetSmall,\n);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,OAAO,EAAEC,UAAU,QAAQ,gBAAgB;AACpD,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,MAAMC,WAAW,SAASV,SAAS,CAAC;EACnCW,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA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AAE;EACX,CAAC;EACDpB,MAAM,EAAE;IACPqB,iBAAiB,EAAE,EAAE;IACrBC,SAAS,EAAE;EACZ;AACD,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAIvC,KAAK,IAAK;EAClC,OAAO;IACNE,kBAAkB,EAAEjB,OAAO,CAACuD,8BAA8B,CAACxC,KAAK;EACjE,CAAC;AACF,CAAC;AAED,eAAejB,OAAO,CAACwD,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;EAAEE,UAAU,EAAE;AAAK,CAAC,CAAC,CACtErD,WACD,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
-
import * as PlussCore from
|
|
2
|
+
import * as PlussCore from "@plusscommunities/pluss-core-app";
|
|
3
3
|
const {
|
|
4
4
|
Apis,
|
|
5
|
-
Fonts,
|
|
6
5
|
Actions,
|
|
7
6
|
ActionTypes,
|
|
8
7
|
Config,
|
|
@@ -13,5 +12,5 @@ const {
|
|
|
13
12
|
Constants,
|
|
14
13
|
Colours
|
|
15
14
|
} = PlussCore;
|
|
16
|
-
export { Apis,
|
|
15
|
+
export { Apis, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };
|
|
17
16
|
//# sourceMappingURL=core.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlussCore","Apis","
|
|
1
|
+
{"version":3,"names":["PlussCore","Apis","Actions","ActionTypes","Config","Components","Styles","Session","Helper","Constants","Colours"],"sources":["core.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from \"@plusscommunities/pluss-core-app\";\n\nconst {\n\tApis,\n\tActions,\n\tActionTypes,\n\tConfig,\n\tComponents,\n\tStyles,\n\tSession,\n\tHelper,\n\tConstants,\n\tColours,\n} = PlussCore;\nexport {\n\tApis,\n\tActions,\n\tActionTypes,\n\tConfig,\n\tComponents,\n\tStyles,\n\tSession,\n\tHelper,\n\tConstants,\n\tColours,\n};\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAE7D,MAAM;EACLC,IAAI;EACJC,OAAO;EACPC,WAAW;EACXC,MAAM;EACNC,UAAU;EACVC,MAAM;EACNC,OAAO;EACPC,MAAM;EACNC,SAAS;EACTC;AACD,CAAC,GAAGV,SAAS;AACb,SACCC,IAAI,EACJC,OAAO,EACPC,WAAW,EACXC,MAAM,EACNC,UAAU,EACVC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,SAAS,EACTC,OAAO","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
-
import * as PlussCore from
|
|
2
|
+
import * as PlussCore from "@plusscommunities/pluss-core-app";
|
|
3
3
|
export const Services = {
|
|
4
4
|
navigation: null
|
|
5
5
|
};
|
|
@@ -7,28 +7,28 @@ export const BaseComponents = {
|
|
|
7
7
|
NotificationBell: null
|
|
8
8
|
};
|
|
9
9
|
const FeatureConfig = {
|
|
10
|
-
key:
|
|
11
|
-
title:
|
|
10
|
+
key: "web",
|
|
11
|
+
title: "Web",
|
|
12
12
|
gridMenu: {
|
|
13
|
-
icon:
|
|
14
|
-
viewBox:
|
|
15
|
-
navigate:
|
|
13
|
+
icon: "tab_news2",
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
navigate: "web"
|
|
16
16
|
},
|
|
17
|
-
hideTabBar: [
|
|
17
|
+
hideTabBar: ["webViewPage"],
|
|
18
18
|
env: {
|
|
19
|
-
baseStage:
|
|
20
|
-
baseAPIUrl:
|
|
19
|
+
baseStage: "",
|
|
20
|
+
baseAPIUrl: "",
|
|
21
21
|
hasGradientHeader: false,
|
|
22
|
-
defaultProfileImage:
|
|
23
|
-
tinyChatDefault:
|
|
24
|
-
baseUploadsUrl:
|
|
22
|
+
defaultProfileImage: "",
|
|
23
|
+
tinyChatDefault: "",
|
|
24
|
+
baseUploadsUrl: "",
|
|
25
25
|
allowMediaDownload: false,
|
|
26
26
|
allowMediaSharing: false,
|
|
27
|
-
awsUploadsBucket:
|
|
28
|
-
awsStorageBucket:
|
|
29
|
-
preferredSite:
|
|
27
|
+
awsUploadsBucket: "",
|
|
28
|
+
awsStorageBucket: "",
|
|
29
|
+
preferredSite: "",
|
|
30
30
|
strings: {},
|
|
31
|
-
newEventDefaults:
|
|
31
|
+
newEventDefaults: "",
|
|
32
32
|
defaultAllowComments: true
|
|
33
33
|
},
|
|
34
34
|
init: (environment, navigation, notificationBell) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlussCore","Services","navigation","BaseComponents","NotificationBell","FeatureConfig","key","title","gridMenu","icon","viewBox","navigate","hideTabBar","env","baseStage","baseAPIUrl","hasGradientHeader","defaultProfileImage","tinyChatDefault","baseUploadsUrl","allowMediaDownload","allowMediaSharing","awsUploadsBucket","awsStorageBucket","preferredSite","strings","newEventDefaults","defaultAllowComments","init","environment","notificationBell","Config"],"sources":["feature.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from
|
|
1
|
+
{"version":3,"names":["PlussCore","Services","navigation","BaseComponents","NotificationBell","FeatureConfig","key","title","gridMenu","icon","viewBox","navigate","hideTabBar","env","baseStage","baseAPIUrl","hasGradientHeader","defaultProfileImage","tinyChatDefault","baseUploadsUrl","allowMediaDownload","allowMediaSharing","awsUploadsBucket","awsStorageBucket","preferredSite","strings","newEventDefaults","defaultAllowComments","init","environment","notificationBell","Config"],"sources":["feature.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from \"@plusscommunities/pluss-core-app\";\n\nexport const Services = {\n\tnavigation: null,\n};\n\nexport const BaseComponents = {\n\tNotificationBell: null,\n};\n\nconst FeatureConfig = {\n\tkey: \"web\",\n\ttitle: \"Web\",\n\tgridMenu: {\n\t\ticon: \"tab_news2\",\n\t\tviewBox: \"0 0 24 24\",\n\t\tnavigate: \"web\",\n\t},\n\thideTabBar: [\"webViewPage\"],\n\tenv: {\n\t\tbaseStage: \"\",\n\t\tbaseAPIUrl: \"\",\n\t\thasGradientHeader: false,\n\t\tdefaultProfileImage: \"\",\n\t\ttinyChatDefault: \"\",\n\t\tbaseUploadsUrl: \"\",\n\t\tallowMediaDownload: false,\n\t\tallowMediaSharing: false,\n\t\tawsUploadsBucket: \"\",\n\t\tawsStorageBucket: \"\",\n\t\tpreferredSite: \"\",\n\t\tstrings: {},\n\t\tnewEventDefaults: \"\",\n\t\tdefaultAllowComments: true,\n\t},\n\tinit: (environment, navigation, notificationBell) => {\n\t\tBaseComponents.NotificationBell = notificationBell;\n\t\tPlussCore.Config.init(environment, navigation);\n\t\tFeatureConfig.env = environment;\n\t\tServices.navigation = navigation;\n\t},\n};\nexport default FeatureConfig;\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAE7D,OAAO,MAAMC,QAAQ,GAAG;EACvBC,UAAU,EAAE;AACb,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG;EAC7BC,gBAAgB,EAAE;AACnB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,GAAG,EAAE,KAAK;EACVC,KAAK,EAAE,KAAK;EACZC,QAAQ,EAAE;IACTC,IAAI,EAAE,WAAW;IACjBC,OAAO,EAAE,WAAW;IACpBC,QAAQ,EAAE;EACX,CAAC;EACDC,UAAU,EAAE,CAAC,aAAa,CAAC;EAC3BC,GAAG,EAAE;IACJC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE,KAAK;IACxBC,mBAAmB,EAAE,EAAE;IACvBC,eAAe,EAAE,EAAE;IACnBC,cAAc,EAAE,EAAE;IAClBC,kBAAkB,EAAE,KAAK;IACzBC,iBAAiB,EAAE,KAAK;IACxBC,gBAAgB,EAAE,EAAE;IACpBC,gBAAgB,EAAE,EAAE;IACpBC,aAAa,EAAE,EAAE;IACjBC,OAAO,EAAE,CAAC,CAAC;IACXC,gBAAgB,EAAE,EAAE;IACpBC,oBAAoB,EAAE;EACvB,CAAC;EACDC,IAAI,EAAEA,CAACC,WAAW,EAAE3B,UAAU,EAAE4B,gBAAgB,KAAK;IACpD3B,cAAc,CAACC,gBAAgB,GAAG0B,gBAAgB;IAClD9B,SAAS,CAAC+B,MAAM,CAACH,IAAI,CAACC,WAAW,EAAE3B,UAAU,CAAC;IAC9CG,aAAa,CAACQ,GAAG,GAAGgB,WAAW;IAC/B5B,QAAQ,CAACC,UAAU,GAAGA,UAAU;EACjC;AACD,CAAC;AACD,eAAeG,aAAa","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import WebPage from
|
|
2
|
-
import WebViewPage from
|
|
1
|
+
import WebPage from "./screens/WebPage";
|
|
2
|
+
import WebViewPage from "./screens/WebViewPage";
|
|
3
3
|
export const Screens = {
|
|
4
4
|
web: WebPage,
|
|
5
5
|
webViewPage: WebViewPage
|
|
6
6
|
};
|
|
7
|
-
export { default as Config } from
|
|
8
|
-
export { default as WidgetSmall } from
|
|
9
|
-
export { default as WidgetLarge } from
|
|
7
|
+
export { default as Config } from "./feature.config";
|
|
8
|
+
export { default as WidgetSmall } from "./components/WidgetSmall";
|
|
9
|
+
export { default as WidgetLarge } from "./components/WidgetLarge";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WebPage","WebViewPage","Screens","web","webViewPage","default","Config","WidgetSmall","WidgetLarge"],"sources":["index.js"],"sourcesContent":["import WebPage from
|
|
1
|
+
{"version":3,"names":["WebPage","WebViewPage","Screens","web","webViewPage","default","Config","WidgetSmall","WidgetLarge"],"sources":["index.js"],"sourcesContent":["import WebPage from \"./screens/WebPage\";\nimport WebViewPage from \"./screens/WebViewPage\";\n\nexport const Screens = { web: WebPage, webViewPage: WebViewPage };\nexport { default as Config } from \"./feature.config\";\nexport { default as WidgetSmall } from \"./components/WidgetSmall\";\nexport { default as WidgetLarge } from \"./components/WidgetLarge\";\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,mBAAmB;AACvC,OAAOC,WAAW,MAAM,uBAAuB;AAE/C,OAAO,MAAMC,OAAO,GAAG;EAAEC,GAAG,EAAEH,OAAO;EAAEI,WAAW,EAAEH;AAAY,CAAC;AACjE,SAASI,OAAO,IAAIC,MAAM,QAAQ,kBAAkB;AACpD,SAASD,OAAO,IAAIE,WAAW,QAAQ,0BAA0B;AACjE,SAASF,OAAO,IAAIG,WAAW,QAAQ,0BAA0B","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { PureComponent } from
|
|
2
|
-
import WidgetLarge from
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import WidgetLarge from "../components/WidgetLarge";
|
|
3
3
|
class WebPage extends PureComponent {
|
|
4
4
|
render() {
|
|
5
5
|
return /*#__PURE__*/React.createElement(WidgetLarge, this.props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","WidgetLarge","WebPage","render","createElement","props"],"sources":["WebPage.js"],"sourcesContent":["import React, { PureComponent } from
|
|
1
|
+
{"version":3,"names":["React","PureComponent","WidgetLarge","WebPage","render","createElement","props"],"sources":["WebPage.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport WidgetLarge from \"../components/WidgetLarge\";\n\nclass WebPage extends PureComponent {\n\trender() {\n\t\treturn <WidgetLarge {...this.props} />;\n\t}\n}\n\nexport default WebPage;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,OAAOC,WAAW,MAAM,2BAA2B;AAEnD,MAAMC,OAAO,SAASF,aAAa,CAAC;EACnCG,MAAMA,CAAA,EAAG;IACR,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,WAAW,EAAK,IAAI,CAACI,KAAQ,CAAC;EACvC;AACD;AAEA,eAAeH,OAAO","ignoreList":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { View, StyleSheet } from
|
|
6
|
-
import { WebView } from
|
|
7
|
-
import { Components } from
|
|
8
|
-
import { Services } from
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, StyleSheet } from "react-native";
|
|
6
|
+
import { WebView } from "react-native-webview";
|
|
7
|
+
import { Components } from "../core.config";
|
|
8
|
+
import { Services } from "../feature.config";
|
|
9
9
|
class WebViewPage extends Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
@@ -43,8 +43,8 @@ const styles = StyleSheet.create({
|
|
|
43
43
|
},
|
|
44
44
|
webContainer: {
|
|
45
45
|
flex: 1,
|
|
46
|
-
alignItems:
|
|
47
|
-
justifyContent:
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "center"
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export default WebViewPage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","StyleSheet","WebView","Components","Services","WebViewPage","constructor","props","_defineProperty","navigation","goBack","state","render","url","headerTitle","createElement","style","styles","container","Header","leftIcon","onPressLeft","onPressBack","text","source","uri","webContainer","onLoadStart","onLoadEnd","create","flex","alignItems","justifyContent"],"sources":["WebViewPage.js"],"sourcesContent":["import React, { Component } from
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","WebView","Components","Services","WebViewPage","constructor","props","_defineProperty","navigation","goBack","state","render","url","headerTitle","createElement","style","styles","container","Header","leftIcon","onPressLeft","onPressBack","text","source","uri","webContainer","onLoadStart","onLoadEnd","create","flex","alignItems","justifyContent"],"sources":["WebViewPage.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, StyleSheet } from \"react-native\";\nimport { WebView } from \"react-native-webview\";\nimport { Components } from \"../core.config\";\nimport { Services } from \"../feature.config\";\n\nclass WebViewPage extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {};\n\t}\n\n\tonLoadStart = () => {};\n\tonLoadEnd = () => {};\n\n\tonPressBack = () => {\n\t\tServices.navigation.goBack();\n\t};\n\n\trender() {\n\t\tconst { url, headerTitle } = this.props;\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t<Components.Header\n\t\t\t\t\tleftIcon=\"angle-left\"\n\t\t\t\t\tonPressLeft={this.onPressBack}\n\t\t\t\t\ttext={headerTitle}\n\t\t\t\t/>\n\t\t\t\t<WebView\n\t\t\t\t\tsource={{ uri: url }}\n\t\t\t\t\tstyle={styles.webContainer}\n\t\t\t\t\tonLoadStart={this.onLoadStart}\n\t\t\t\t\tonLoadEnd={this.onLoadEnd}\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tflex: 1,\n\t},\n\twebContainer: {\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n});\n\nexport default WebViewPage;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,UAAU,QAAQ,gBAAgB;AAC3C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|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
2
|
+
"name": "@plusscommunities/pluss-webview-app",
|
|
3
|
+
"version": "6.0.2-auth.0",
|
|
4
|
+
"description": "Extension package to enable webview on Pluss Communities Platform",
|
|
5
|
+
"main": "dist/module/index.js",
|
|
6
|
+
"module": "dist/module/index.js",
|
|
7
|
+
"react-native": "src/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/",
|
|
10
|
+
"src/"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm i --legacy-peer-deps && bob build",
|
|
14
|
+
"betapatch": "npm version prepatch --preid=beta",
|
|
15
|
+
"patch": "npm version patch",
|
|
16
|
+
"betaupload": "npm run build && npm publish --access public --tag beta",
|
|
17
|
+
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
18
|
+
"authpatch": "npm version prepatch --preid=auth",
|
|
19
|
+
"authupload": "npm run build && npm publish --access public --tag auth",
|
|
20
|
+
"authupload:p": "npm run authpatch && npm run authupload",
|
|
21
|
+
"upload": "npm run build && npm publish --access public",
|
|
22
|
+
"upload:p": "npm run patch && npm run upload"
|
|
23
|
+
},
|
|
24
|
+
"author": "Thorbjorn Kappel Davis",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"dependencies": {},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@plusscommunities/pluss-core-app": "6.1.8-auth.0",
|
|
29
|
+
"lodash": "^4.17.4",
|
|
30
|
+
"react": "18.2.0",
|
|
31
|
+
"react-native": "0.73.6",
|
|
32
|
+
"react-native-webview": "13.6.4"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"react-native-builder-bob": "^0.18.2"
|
|
36
|
+
},
|
|
37
|
+
"react-native-builder-bob": {
|
|
38
|
+
"source": "src",
|
|
39
|
+
"output": "dist",
|
|
40
|
+
"targets": [
|
|
41
|
+
"module"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
41
44
|
}
|