@plusscommunities/pluss-webview-app 7.0.1 → 8.0.1

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.
@@ -1,13 +1,13 @@
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 'react';
5
- import { View, Text, StyleSheet } from 'react-native';
6
- import { WebView } from 'react-native-webview';
7
- import { connect } from 'react-redux';
8
- import _ from 'lodash';
9
- import { Colours, Components } from '../core.config';
10
- import { Services } from '../feature.config';
4
+ import React, { Component } from "react";
5
+ import { View, Text, StyleSheet } from "react-native";
6
+ import { WebView } from "react-native-webview";
7
+ import { connect } from "react-redux";
8
+ import _ from "lodash";
9
+ import { Colours, Components } from "../core.config";
10
+ import { Services } from "../feature.config";
11
11
  class WidgetLarge extends Component {
12
12
  constructor(props) {
13
13
  super(props);
@@ -17,8 +17,8 @@ class WidgetLarge extends Component {
17
17
  const {
18
18
  options
19
19
  } = this.props;
20
- Services.navigation.navigate('webViewPage', {
21
- url: options['webUrl'],
20
+ Services.navigation.navigate("webViewPage", {
21
+ url: options["webUrl"],
22
22
  headerTitle: this.getTitle()
23
23
  });
24
24
  });
@@ -27,7 +27,7 @@ class WidgetLarge extends Component {
27
27
  options
28
28
  } = this.props;
29
29
  if (options && !_.isEmpty(options.Title)) return options.Title;
30
- return 'Web View';
30
+ return "Web View";
31
31
  });
32
32
  this.state = {};
33
33
  }
@@ -78,7 +78,7 @@ class WidgetLarge extends Component {
78
78
  style: styles.container
79
79
  }, this.props.ListHeaderComponent, /*#__PURE__*/React.createElement(WebView, {
80
80
  source: {
81
- uri: options['webUrl']
81
+ uri: options["webUrl"]
82
82
  },
83
83
  style: styles.webContainer,
84
84
  onLoadStart: this.onLoadStart,
@@ -92,22 +92,22 @@ const styles = StyleSheet.create({
92
92
  },
93
93
  webContainer: {
94
94
  flex: 1,
95
- alignItems: 'center',
96
- justifyContent: 'center'
95
+ alignItems: "center",
96
+ justifyContent: "center"
97
97
  },
98
98
  buttonContainer: {
99
- width: '100%',
100
- alignItems: 'center',
101
- justifyContent: 'center',
99
+ width: "100%",
100
+ alignItems: "center",
101
+ justifyContent: "center",
102
102
  padding: 16
103
103
  },
104
104
  upperContainer: {
105
- flexDirection: 'row',
106
- alignItems: 'center',
107
- justifyContent: 'space-between'
105
+ flexDirection: "row",
106
+ alignItems: "center",
107
+ justifyContent: "space-between"
108
108
  },
109
109
  title: {
110
- fontFamily: 'sf-semibold',
110
+ fontFamily: "sf-semibold",
111
111
  fontSize: 16
112
112
  },
113
113
  button: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","View","Text","StyleSheet","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, Text, StyleSheet } from 'react-native';\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 constructor(props) {\n super(props);\n this.state = {};\n }\n\n onLoadStart = () => {};\n onLoadEnd = () => {};\n\n onGoToFullpage = () => {\n const { options } = this.props;\n Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });\n };\n\n getTitle = () => {\n const { options } = this.props;\n if (options && !_.isEmpty(options.Title)) return options.Title;\n return 'Web View';\n };\n\n render() {\n const { options, colourBrandingMain } = this.props;\n if (options.isWebViewSeparatePage) {\n return (\n <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>\n <View style={styles.upperContainer}>\n <View>\n <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>\n </View>\n </View>\n <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>\n {options.buttonText}\n </Components.InlineButton>\n </View>\n );\n // return (\n // <View style={styles.sectionContainer}>\n // <View style={styles.sectionPadding}>\n // <View style={styles.sectionHeading}>\n // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n // </View>\n // </View>\n // <View style={styles.buttonContainer}>\n // <Components.InlineButton\n // onPress={this.onGoToFullpage}\n // color={colourBrandingMain}\n // touchableStyle={{ paddingTop: 6 }}\n // textStyle={{ color: '#fff' }}\n // large\n // >\n // {options.buttonText}\n // </Components.InlineButton>\n // </View>\n // </View>\n // );\n }\n return (\n <View style={styles.container}>\n {this.props.ListHeaderComponent}\n <WebView\n source={{ uri: options['webUrl'] }}\n style={styles.webContainer}\n onLoadStart={this.onLoadStart}\n onLoadEnd={this.onLoadEnd}\n />\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n webContainer: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n buttonContainer: {\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center',\n padding: 16,\n },\n upperContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n title: {\n fontFamily: 'sf-semibold',\n fontSize: 16,\n },\n button: {\n paddingHorizontal: 40,\n marginTop: 16,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetLarge);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,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;EAClCW,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,sBAID,MAAM,CAAC,CAAC;IAAAA,eAAA,oBACV,MAAM,CAAC,CAAC;IAAAA,eAAA,yBAEH,MAAM;MACrB,MAAM;QAAEC;MAAQ,CAAC,GAAG,IAAI,CAACF,KAAK;MAC9BH,QAAQ,CAACM,UAAU,CAACC,QAAQ,CAAC,aAAa,EAAE;QAAEC,GAAG,EAAEH,OAAO,CAAC,QAAQ,CAAC;QAAEI,WAAW,EAAE,IAAI,CAACC,QAAQ,CAAC;MAAE,CAAC,CAAC;IACvG,CAAC;IAAAN,eAAA,mBAEU,MAAM;MACf,MAAM;QAAEC;MAAQ,CAAC,GAAG,IAAI,CAACF,KAAK;MAC9B,IAAIE,OAAO,IAAI,CAACR,CAAC,CAACc,OAAO,CAACN,OAAO,CAACO,KAAK,CAAC,EAAE,OAAOP,OAAO,CAACO,KAAK;MAC9D,OAAO,UAAU;IACnB,CAAC;IAfC,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EAgBAC,MAAM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WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BC,SAAS,EAAE,IAAI,CAACA;IAAU,CAC3B,CACG,CAAC;EAEX;AACF;AAEA,MAAMnB,MAAM,GAAGzB,UAAU,CAAC6C,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,IAAI,EAAE;EACR,CAAC;EACDJ,YAAY,EAAE;IACZI,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDtB,eAAe,EAAE;IACfuB,KAAK,EAAE,MAAM;IACbF,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,OAAO,EAAE;EACX,CAAC;EACDrB,cAAc,EAAE;IACdsB,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDlB,KAAK,EAAE;IACLsB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;EACZ,CAAC;EACDlB,MAAM,EAAE;IACNmB,iBAAiB,EAAE,EAAE;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAGrC,KAAK,IAAI;EAC/B,OAAO;IACLE,kBAAkB,EAAEjB,OAAO,CAACqD,8BAA8B,CAACtC,KAAK;EAClE,CAAC;AACH,CAAC;AAED,eAAejB,OAAO,CAACsD,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;EAAEE,UAAU,EAAE;AAAK,CAAC,CAAC,CAACnD,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Component","View","Text","StyleSheet","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, Text, StyleSheet } from \"react-native\";\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,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,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,KAAK,CAAC;IAACC,eAAA,sBAIA,MAAM,CAAC,CAAC;IAAAA,eAAA,oBACV,MAAM,CAAC,CAAC;IAAAA,eAAA,yBAEH,MAAM;MACtB,MAAM;QAAEC;MAAQ,CAAC,GAAG,IAAI,CAACF,KAAK;MAC9BH,QAAQ,CAACM,UAAU,CAACC,QAAQ,CAAC,aAAa,EAAE;QAC3CC,GAAG,EAAEH,OAAO,CAAC,QAAQ,CAAC;QACtBI,WAAW,EAAE,IAAI,CAACC,QAAQ,CAAC;MAC5B,CAAC,CAAC;IACH,CAAC;IAAAN,eAAA,mBAEU,MAAM;MAChB,MAAM;QAAEC;MAAQ,CAAC,GAAG,IAAI,CAACF,KAAK;MAC9B,IAAIE,OAAO,IAAI,CAACR,CAAC,CAACc,OAAO,CAACN,OAAO,CAACO,KAAK,CAAC,EAAE,OAAOP,OAAO,CAACO,KAAK;MAC9D,OAAO,UAAU;IAClB,CAAC;IAlBA,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EAChB;EAmBAC,MAAMA,CAAA,EAAG;IACR,MAA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AAY;MAC9BC,SAAS,EAAE,IAAI,CAACA;IAAU,CAC1B,CACI,CAAC;EAET;AACD;AAEA,MAAMnB,MAAM,GAAGzB,UAAU,CAAC6C,MAAM,CAAC;EAChCP,SAAS,EAAE;IACVQ,IAAI,EAAE;EACP,CAAC;EACDJ,YAAY,EAAE;IACbI,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDtB,eAAe,EAAE;IAChBuB,KAAK,EAAE,MAAM;IACbF,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,OAAO,EAAE;EACV,CAAC;EACDrB,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,13 @@
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 'react';
5
- import { View, Text, StyleSheet } from 'react-native';
6
- import { WebView } from 'react-native-webview';
7
- import { connect } from 'react-redux';
8
- import _ from 'lodash';
9
- import { Colours, Components } from '../core.config';
10
- import { Services } from '../feature.config';
4
+ import React, { Component } from "react";
5
+ import { View, Text, StyleSheet } from "react-native";
6
+ import { WebView } from "react-native-webview";
7
+ import { connect } from "react-redux";
8
+ import _ from "lodash";
9
+ import { Colours, Components } from "../core.config";
10
+ import { Services } from "../feature.config";
11
11
  class WidgetSmall extends Component {
12
12
  constructor(props) {
13
13
  super(props);
@@ -17,8 +17,8 @@ class WidgetSmall extends Component {
17
17
  const {
18
18
  options
19
19
  } = this.props;
20
- Services.navigation.navigate('webViewPage', {
21
- url: options['webUrl'],
20
+ Services.navigation.navigate("webViewPage", {
21
+ url: options["webUrl"],
22
22
  headerTitle: this.getTitle()
23
23
  });
24
24
  });
@@ -27,7 +27,7 @@ class WidgetSmall extends Component {
27
27
  options
28
28
  } = this.props;
29
29
  if (options && !_.isEmpty(options.Title)) return options.Title;
30
- return 'Web View';
30
+ return "Web View";
31
31
  });
32
32
  this.state = {};
33
33
  }
@@ -78,7 +78,7 @@ class WidgetSmall extends Component {
78
78
  style: styles.container
79
79
  }, /*#__PURE__*/React.createElement(WebView, {
80
80
  source: {
81
- uri: options['webUrl']
81
+ uri: options["webUrl"]
82
82
  },
83
83
  style: styles.webContainer,
84
84
  onLoadStart: this.onLoadStart,
@@ -94,22 +94,22 @@ const styles = StyleSheet.create({
94
94
  },
95
95
  webContainer: {
96
96
  flex: 1,
97
- alignItems: 'center',
98
- justifyContent: 'center'
97
+ alignItems: "center",
98
+ justifyContent: "center"
99
99
  },
100
100
  buttonContainer: {
101
- width: '100%',
102
- alignItems: 'center',
103
- justifyContent: 'center',
101
+ width: "100%",
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
104
  padding: 16
105
105
  },
106
106
  upperContainer: {
107
- flexDirection: 'row',
108
- alignItems: 'center',
109
- justifyContent: 'space-between'
107
+ flexDirection: "row",
108
+ alignItems: "center",
109
+ justifyContent: "space-between"
110
110
  },
111
111
  title: {
112
- fontFamily: 'sf-semibold',
112
+ fontFamily: "sf-semibold",
113
113
  fontSize: 16
114
114
  },
115
115
  button: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","View","Text","StyleSheet","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, Text, StyleSheet } from 'react-native';\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 constructor(props) {\n super(props);\n this.state = {};\n }\n\n onLoadStart = () => {};\n onLoadEnd = () => {};\n\n onGoToFullpage = () => {\n const { options } = this.props;\n Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });\n };\n\n getTitle = () => {\n const { options } = this.props;\n if (options && !_.isEmpty(options.Title)) return options.Title;\n return 'Web View';\n };\n\n render() {\n const { options, colourBrandingMain } = this.props;\n if (options.isWebViewSeparatePage) {\n return (\n <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>\n <View style={styles.upperContainer}>\n <View>\n <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>\n </View>\n </View>\n <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>\n {options.buttonText}\n </Components.InlineButton>\n </View>\n );\n // return (\n // <View style={styles.sectionContainer}>\n // <View style={styles.sectionPadding}>\n // <View style={styles.sectionHeading}>\n // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n // </View>\n // </View>\n // <View style={styles.buttonContainer}>\n // <Components.InlineButton\n // onPress={this.onGoToFullpage}\n // color={colourBrandingMain}\n // touchableStyle={{ paddingTop: 6 }}\n // textStyle={{ color: '#fff' }}\n // large\n // >\n // {options.buttonText}\n // </Components.InlineButton>\n // </View>\n // </View>\n // );\n }\n return (\n <View style={styles.container}>\n <WebView\n source={{ uri: options['webUrl'] }}\n style={styles.webContainer}\n onLoadStart={this.onLoadStart}\n onLoadEnd={this.onLoadEnd}\n />\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n height: 300,\n paddingTop: 8,\n paddingBottom: 8,\n },\n webContainer: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n buttonContainer: {\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center',\n padding: 16,\n },\n upperContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n title: {\n fontFamily: 'sf-semibold',\n fontSize: 16,\n },\n button: {\n paddingHorizontal: 40,\n marginTop: 16,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetSmall);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAA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AAE;EACX,CAAC;EACDvB,cAAc,EAAE;IACdwB,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDpB,KAAK,EAAE;IACLwB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;EACZ,CAAC;EACDpB,MAAM,EAAE;IACNqB,iBAAiB,EAAE,EAAE;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAGvC,KAAK,IAAI;EAC/B,OAAO;IACLE,kBAAkB,EAAEjB,OAAO,CAACuD,8BAA8B,CAACxC,KAAK;EAClE,CAAC;AACH,CAAC;AAED,eAAejB,OAAO,CAACwD,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;EAAEE,UAAU,EAAE;AAAK,CAAC,CAAC,CAACrD,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Component","View","Text","StyleSheet","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, Text, StyleSheet } from \"react-native\";\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,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAAM,QAAQ;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CAAC;EACDvB,cAAc,EAAE;IACfwB,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDpB,KAAK,EAAE;IACNwB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;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,5 +1,5 @@
1
1
  // import * as PlussCore from '../../pluss-core/src';
2
- import * as PlussCore from '@plusscommunities/pluss-core-app';
2
+ import * as PlussCore from "@plusscommunities/pluss-core-app";
3
3
  const {
4
4
  Apis,
5
5
  Fonts,
@@ -1 +1 @@
1
- {"version":3,"names":["PlussCore","Apis","Fonts","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 { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours } = PlussCore;\nexport { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAE7D,MAAM;EAAEC,IAAI;EAAEC,KAAK;EAAEC,OAAO;EAAEC,WAAW;EAAEC,MAAM;EAAEC,UAAU;EAAEC,MAAM;EAAEC,OAAO;EAAEC,MAAM;EAAEC,SAAS;EAAEC;AAAQ,CAAC,GAAGX,SAAS;AACxH,SAASC,IAAI,EAAEC,KAAK,EAAEC,OAAO,EAAEC,WAAW,EAAEC,MAAM,EAAEC,UAAU,EAAEC,MAAM,EAAEC,OAAO,EAAEC,MAAM,EAAEC,SAAS,EAAEC,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["PlussCore","Apis","Fonts","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\tFonts,\n\tActions,\n\tActionTypes,\n\tConfig,\n\tComponents,\n\tStyles,\n\tSession,\n\tHelper,\n\tConstants,\n\tColours,\n} = PlussCore;\nexport {\n\tApis,\n\tFonts,\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,KAAK;EACLC,OAAO;EACPC,WAAW;EACXC,MAAM;EACNC,UAAU;EACVC,MAAM;EACNC,OAAO;EACPC,MAAM;EACNC,SAAS;EACTC;AACD,CAAC,GAAGX,SAAS;AACb,SACCC,IAAI,EACJC,KAAK,EACLC,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 '@plusscommunities/pluss-core-app';
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: 'web',
11
- title: 'Web',
10
+ key: "web",
11
+ title: "Web",
12
12
  gridMenu: {
13
- icon: 'tab_news2',
14
- viewBox: '0 0 24 24',
15
- navigate: 'web'
13
+ icon: "tab_news2",
14
+ viewBox: "0 0 24 24",
15
+ navigate: "web"
16
16
  },
17
- hideTabBar: ['webViewPage'],
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 '@plusscommunities/pluss-core-app';\n\nexport const Services = {\n navigation: null,\n};\n\nexport const BaseComponents = {\n NotificationBell: null,\n};\n\nconst FeatureConfig = {\n key: 'web',\n title: 'Web',\n gridMenu: {\n icon: 'tab_news2',\n viewBox: '0 0 24 24',\n navigate: 'web',\n },\n hideTabBar: ['webViewPage'],\n env: {\n baseStage: '',\n baseAPIUrl: '',\n hasGradientHeader: false,\n defaultProfileImage: '',\n tinyChatDefault: '',\n baseUploadsUrl: '',\n allowMediaDownload: false,\n allowMediaSharing: false,\n awsUploadsBucket: '',\n awsStorageBucket: '',\n preferredSite: '',\n strings: {},\n newEventDefaults: '',\n defaultAllowComments: true,\n },\n init: (environment, navigation, notificationBell) => {\n BaseComponents.NotificationBell = notificationBell;\n PlussCore.Config.init(environment, navigation);\n FeatureConfig.env = environment;\n Services.navigation = navigation;\n },\n};\nexport default FeatureConfig;\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAE7D,OAAO,MAAMC,QAAQ,GAAG;EACtBC,UAAU,EAAE;AACd,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG;EAC5BC,gBAAgB,EAAE;AACpB,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,GAAG,EAAE,KAAK;EACVC,KAAK,EAAE,KAAK;EACZC,QAAQ,EAAE;IACRC,IAAI,EAAE,WAAW;IACjBC,OAAO,EAAE,WAAW;IACpBC,QAAQ,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE,CAAC,aAAa,CAAC;EAC3BC,GAAG,EAAE;IACHC,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;EACxB,CAAC;EACDC,IAAI,EAAEA,CAACC,WAAW,EAAE3B,UAAU,EAAE4B,gBAAgB,KAAK;IACnD3B,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;EAClC;AACF,CAAC;AACD,eAAeG,aAAa","ignoreList":[]}
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":[]}
@@ -1,10 +1,10 @@
1
- import WebPage from './screens/WebPage';
2
- import WebViewPage from './screens/WebViewPage';
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 './feature.config';
8
- export { default as WidgetSmall } from './components/WidgetSmall';
9
- export { default as WidgetLarge } from './components/WidgetLarge';
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
@@ -1 +1 @@
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
+ {"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 'react';
2
- import WidgetLarge from '../components/WidgetLarge';
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 'react';\nimport WidgetLarge from '../components/WidgetLarge';\n\nclass WebPage extends PureComponent {\n render() {\n return <WidgetLarge {...this.props} />;\n }\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;EAClCG,MAAMA,CAAA,EAAG;IACP,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,WAAW,EAAK,IAAI,CAACI,KAAQ,CAAC;EACxC;AACF;AAEA,eAAeH,OAAO","ignoreList":[]}
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 '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';
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: 'center',
47
- justifyContent: 'center'
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 '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 constructor(props) {\n super(props);\n this.state = {};\n }\n\n onLoadStart = () => {};\n onLoadEnd = () => {};\n\n onPressBack = () => {\n Services.navigation.goBack();\n };\n\n render() {\n const { url, headerTitle } = this.props;\n return (\n <View style={styles.container}>\n <Components.Header leftIcon=\"angle-left\" onPressLeft={this.onPressBack} text={headerTitle} />\n <WebView source={{ uri: url }} style={styles.webContainer} onLoadStart={this.onLoadStart} onLoadEnd={this.onLoadEnd} />\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n webContainer: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\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,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,MAAMC,WAAW,SAASN,SAAS,CAAC;EAClCO,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,sBAID,MAAM,CAAC,CAAC;IAAAA,eAAA,oBACV,MAAM,CAAC,CAAC;IAAAA,eAAA,sBAEN,MAAM;MAClBJ,QAAQ,CAACK,UAAU,CAACC,MAAM,CAAC,CAAC;IAC9B,CAAC;IARC,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EASAC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,GAAG;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACP,KAAK;IACvC,oBACET,KAAA,CAAAiB,aAAA,CAACf,IAAI;MAACgB,KAAK,EAAEC,MAAM,CAACC;IAAU,gBAC5BpB,KAAA,CAAAiB,aAAA,CAACZ,UAAU,CAACgB,MAAM;MAACC,QAAQ,EAAC,YAAY;MAACC,WAAW,EAAE,IAAI,CAACC,WAAY;MAACC,IAAI,EAAET;IAAY,CAAE,CAAC,eAC7FhB,KAAA,CAAAiB,aAAA,CAACb,OAAO;MAACsB,MAAM,EAAE;QAAEC,GAAG,EAAEZ;MAAI,CAAE;MAACG,KAAK,EAAEC,MAAM,CAACS,YAAa;MAACC,WAAW,EAAE,IAAI,CAACA,WAAY;MAACC,SAAS,EAAE,IAAI,CAACA;IAAU,CAAE,CAClH,CAAC;EAEX;AACF;AAEA,MAAMX,MAAM,GAAGhB,UAAU,CAAC4B,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,IAAI,EAAE;EACR,CAAC;EACDJ,YAAY,EAAE;IACZI,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAe3B,WAAW","ignoreList":[]}
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,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,MAAMC,WAAW,SAASN,SAAS,CAAC;EACnCO,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,sBAIA,MAAM,CAAC,CAAC;IAAAA,eAAA,oBACV,MAAM,CAAC,CAAC;IAAAA,eAAA,sBAEN,MAAM;MACnBJ,QAAQ,CAACK,UAAU,CAACC,MAAM,CAAC,CAAC;IAC7B,CAAC;IARA,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EAChB;EASAC,MAAMA,CAAA,EAAG;IACR,MAAM;MAAEC,GAAG;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACP,KAAK;IACvC,oBACCT,KAAA,CAAAiB,aAAA,CAACf,IAAI;MAACgB,KAAK,EAAEC,MAAM,CAACC;IAAU,gBAC7BpB,KAAA,CAAAiB,aAAA,CAACZ,UAAU,CAACgB,MAAM;MACjBC,QAAQ,EAAC,YAAY;MACrBC,WAAW,EAAE,IAAI,CAACC,WAAY;MAC9BC,IAAI,EAAET;IAAY,CAClB,CAAC,eACFhB,KAAA,CAAAiB,aAAA,CAACb,OAAO;MACPsB,MAAM,EAAE;QAAEC,GAAG,EAAEZ;MAAI,CAAE;MACrBG,KAAK,EAAEC,MAAM,CAACS,YAAa;MAC3BC,WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BC,SAAS,EAAE,IAAI,CAACA;IAAU,CAC1B,CACI,CAAC;EAET;AACD;AAEA,MAAMX,MAAM,GAAGhB,UAAU,CAAC4B,MAAM,CAAC;EAChCX,SAAS,EAAE;IACVY,IAAI,EAAE;EACP,CAAC;EACDJ,YAAY,EAAE;IACbI,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB;AACD,CAAC,CAAC;AAEF,eAAe3B,WAAW","ignoreList":[]}
package/package.json CHANGED
@@ -1,41 +1,41 @@
1
1
  {
2
- "name": "@plusscommunities/pluss-webview-app",
3
- "version": "7.0.1",
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 && 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
- "upload": "npm run build && npm publish --access public",
19
- "upload:p": "npm run patch && npm run upload"
20
- },
21
- "author": "Thorbjorn Kappel Davis",
22
- "license": "ISC",
23
- "dependencies": {},
24
- "peerDependencies": {
25
- "@plusscommunities/pluss-core-app": "^7.0.0",
26
- "lodash": "^4.17.4",
27
- "react": "18.3.1",
28
- "react-native": "0.76.9",
29
- "react-native-webview": "13.12.5"
30
- },
31
- "devDependencies": {
32
- "react-native-builder-bob": "^0.18.2"
33
- },
34
- "react-native-builder-bob": {
35
- "source": "src",
36
- "output": "dist",
37
- "targets": [
38
- "module"
39
- ]
40
- }
2
+ "name": "@plusscommunities/pluss-webview-app",
3
+ "version": "8.0.1",
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 && 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
+ "upload": "npm run build && npm publish --access public",
19
+ "upload:p": "npm run patch && npm run upload"
20
+ },
21
+ "author": "Thorbjorn Kappel Davis",
22
+ "license": "ISC",
23
+ "dependencies": {},
24
+ "peerDependencies": {
25
+ "@plusscommunities/pluss-core-app": "*",
26
+ "lodash": "*",
27
+ "react": "*",
28
+ "react-native": "*",
29
+ "react-native-webview": "*"
30
+ },
31
+ "devDependencies": {
32
+ "react-native-builder-bob": "^0.18.2"
33
+ },
34
+ "react-native-builder-bob": {
35
+ "source": "src",
36
+ "output": "dist",
37
+ "targets": [
38
+ "module"
39
+ ]
40
+ }
41
41
  }
@@ -1,115 +1,134 @@
1
- import React, { Component } from 'react';
2
- import { View, Text, StyleSheet } from 'react-native';
3
- import { WebView } from 'react-native-webview';
4
- import { connect } from 'react-redux';
5
- import _ from 'lodash';
6
- import { Colours, Components } from '../core.config';
7
- import { Services } from '../feature.config';
1
+ import React, { Component } from "react";
2
+ import { View, Text, StyleSheet } from "react-native";
3
+ import { WebView } from "react-native-webview";
4
+ import { connect } from "react-redux";
5
+ import _ from "lodash";
6
+ import { Colours, Components } from "../core.config";
7
+ import { Services } from "../feature.config";
8
8
 
9
9
  class WidgetLarge extends Component {
10
- constructor(props) {
11
- super(props);
12
- this.state = {};
13
- }
10
+ constructor(props) {
11
+ super(props);
12
+ this.state = {};
13
+ }
14
14
 
15
- onLoadStart = () => {};
16
- onLoadEnd = () => {};
15
+ onLoadStart = () => {};
16
+ onLoadEnd = () => {};
17
17
 
18
- onGoToFullpage = () => {
19
- const { options } = this.props;
20
- Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });
21
- };
18
+ onGoToFullpage = () => {
19
+ const { options } = this.props;
20
+ Services.navigation.navigate("webViewPage", {
21
+ url: options["webUrl"],
22
+ headerTitle: this.getTitle(),
23
+ });
24
+ };
22
25
 
23
- getTitle = () => {
24
- const { options } = this.props;
25
- if (options && !_.isEmpty(options.Title)) return options.Title;
26
- return 'Web View';
27
- };
26
+ getTitle = () => {
27
+ const { options } = this.props;
28
+ if (options && !_.isEmpty(options.Title)) return options.Title;
29
+ return "Web View";
30
+ };
28
31
 
29
- render() {
30
- const { options, colourBrandingMain } = this.props;
31
- if (options.isWebViewSeparatePage) {
32
- return (
33
- <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>
34
- <View style={styles.upperContainer}>
35
- <View>
36
- <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>
37
- </View>
38
- </View>
39
- <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>
40
- {options.buttonText}
41
- </Components.InlineButton>
42
- </View>
43
- );
44
- // return (
45
- // <View style={styles.sectionContainer}>
46
- // <View style={styles.sectionPadding}>
47
- // <View style={styles.sectionHeading}>
48
- // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
49
- // </View>
50
- // </View>
51
- // <View style={styles.buttonContainer}>
52
- // <Components.InlineButton
53
- // onPress={this.onGoToFullpage}
54
- // color={colourBrandingMain}
55
- // touchableStyle={{ paddingTop: 6 }}
56
- // textStyle={{ color: '#fff' }}
57
- // large
58
- // >
59
- // {options.buttonText}
60
- // </Components.InlineButton>
61
- // </View>
62
- // </View>
63
- // );
64
- }
65
- return (
66
- <View style={styles.container}>
67
- {this.props.ListHeaderComponent}
68
- <WebView
69
- source={{ uri: options['webUrl'] }}
70
- style={styles.webContainer}
71
- onLoadStart={this.onLoadStart}
72
- onLoadEnd={this.onLoadEnd}
73
- />
74
- </View>
75
- );
76
- }
32
+ render() {
33
+ const { options, colourBrandingMain } = this.props;
34
+ if (options.isWebViewSeparatePage) {
35
+ return (
36
+ <View
37
+ style={[
38
+ styles.buttonContainer,
39
+ {
40
+ backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2),
41
+ },
42
+ ]}
43
+ >
44
+ <View style={styles.upperContainer}>
45
+ <View>
46
+ <Text style={[styles.title, { color: colourBrandingMain }]}>
47
+ {this.getTitle()}
48
+ </Text>
49
+ </View>
50
+ </View>
51
+ <Components.InlineButton
52
+ onPress={this.onGoToFullpage}
53
+ color={colourBrandingMain}
54
+ style={styles.button}
55
+ large
56
+ >
57
+ {options.buttonText}
58
+ </Components.InlineButton>
59
+ </View>
60
+ );
61
+ // return (
62
+ // <View style={styles.sectionContainer}>
63
+ // <View style={styles.sectionPadding}>
64
+ // <View style={styles.sectionHeading}>
65
+ // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
66
+ // </View>
67
+ // </View>
68
+ // <View style={styles.buttonContainer}>
69
+ // <Components.InlineButton
70
+ // onPress={this.onGoToFullpage}
71
+ // color={colourBrandingMain}
72
+ // touchableStyle={{ paddingTop: 6 }}
73
+ // textStyle={{ color: '#fff' }}
74
+ // large
75
+ // >
76
+ // {options.buttonText}
77
+ // </Components.InlineButton>
78
+ // </View>
79
+ // </View>
80
+ // );
81
+ }
82
+ return (
83
+ <View style={styles.container}>
84
+ {this.props.ListHeaderComponent}
85
+ <WebView
86
+ source={{ uri: options["webUrl"] }}
87
+ style={styles.webContainer}
88
+ onLoadStart={this.onLoadStart}
89
+ onLoadEnd={this.onLoadEnd}
90
+ />
91
+ </View>
92
+ );
93
+ }
77
94
  }
78
95
 
79
96
  const styles = StyleSheet.create({
80
- container: {
81
- flex: 1,
82
- },
83
- webContainer: {
84
- flex: 1,
85
- alignItems: 'center',
86
- justifyContent: 'center',
87
- },
88
- buttonContainer: {
89
- width: '100%',
90
- alignItems: 'center',
91
- justifyContent: 'center',
92
- padding: 16,
93
- },
94
- upperContainer: {
95
- flexDirection: 'row',
96
- alignItems: 'center',
97
- justifyContent: 'space-between',
98
- },
99
- title: {
100
- fontFamily: 'sf-semibold',
101
- fontSize: 16,
102
- },
103
- button: {
104
- paddingHorizontal: 40,
105
- marginTop: 16,
106
- },
97
+ container: {
98
+ flex: 1,
99
+ },
100
+ webContainer: {
101
+ flex: 1,
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
+ },
105
+ buttonContainer: {
106
+ width: "100%",
107
+ alignItems: "center",
108
+ justifyContent: "center",
109
+ padding: 16,
110
+ },
111
+ upperContainer: {
112
+ flexDirection: "row",
113
+ alignItems: "center",
114
+ justifyContent: "space-between",
115
+ },
116
+ title: {
117
+ fontFamily: "sf-semibold",
118
+ fontSize: 16,
119
+ },
120
+ button: {
121
+ paddingHorizontal: 40,
122
+ marginTop: 16,
123
+ },
107
124
  });
108
125
 
109
- const mapStateToProps = state => {
110
- return {
111
- colourBrandingMain: Colours.getMainBrandingColourFromState(state),
112
- };
126
+ const mapStateToProps = (state) => {
127
+ return {
128
+ colourBrandingMain: Colours.getMainBrandingColourFromState(state),
129
+ };
113
130
  };
114
131
 
115
- export default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetLarge);
132
+ export default connect(mapStateToProps, {}, null, { forwardRef: true })(
133
+ WidgetLarge,
134
+ );
@@ -1,116 +1,135 @@
1
- import React, { Component } from 'react';
2
- import { View, Text, StyleSheet } from 'react-native';
3
- import { WebView } from 'react-native-webview';
4
- import { connect } from 'react-redux';
5
- import _ from 'lodash';
6
- import { Colours, Components } from '../core.config';
7
- import { Services } from '../feature.config';
1
+ import React, { Component } from "react";
2
+ import { View, Text, StyleSheet } from "react-native";
3
+ import { WebView } from "react-native-webview";
4
+ import { connect } from "react-redux";
5
+ import _ from "lodash";
6
+ import { Colours, Components } from "../core.config";
7
+ import { Services } from "../feature.config";
8
8
 
9
9
  class WidgetSmall extends Component {
10
- constructor(props) {
11
- super(props);
12
- this.state = {};
13
- }
10
+ constructor(props) {
11
+ super(props);
12
+ this.state = {};
13
+ }
14
14
 
15
- onLoadStart = () => {};
16
- onLoadEnd = () => {};
15
+ onLoadStart = () => {};
16
+ onLoadEnd = () => {};
17
17
 
18
- onGoToFullpage = () => {
19
- const { options } = this.props;
20
- Services.navigation.navigate('webViewPage', { url: options['webUrl'], headerTitle: this.getTitle() });
21
- };
18
+ onGoToFullpage = () => {
19
+ const { options } = this.props;
20
+ Services.navigation.navigate("webViewPage", {
21
+ url: options["webUrl"],
22
+ headerTitle: this.getTitle(),
23
+ });
24
+ };
22
25
 
23
- getTitle = () => {
24
- const { options } = this.props;
25
- if (options && !_.isEmpty(options.Title)) return options.Title;
26
- return 'Web View';
27
- };
26
+ getTitle = () => {
27
+ const { options } = this.props;
28
+ if (options && !_.isEmpty(options.Title)) return options.Title;
29
+ return "Web View";
30
+ };
28
31
 
29
- render() {
30
- const { options, colourBrandingMain } = this.props;
31
- if (options.isWebViewSeparatePage) {
32
- return (
33
- <View style={[styles.buttonContainer, { backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2) }]}>
34
- <View style={styles.upperContainer}>
35
- <View>
36
- <Text style={[styles.title, { color: colourBrandingMain }]}>{this.getTitle()}</Text>
37
- </View>
38
- </View>
39
- <Components.InlineButton onPress={this.onGoToFullpage} color={colourBrandingMain} style={styles.button} large>
40
- {options.buttonText}
41
- </Components.InlineButton>
42
- </View>
43
- );
44
- // return (
45
- // <View style={styles.sectionContainer}>
46
- // <View style={styles.sectionPadding}>
47
- // <View style={styles.sectionHeading}>
48
- // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
49
- // </View>
50
- // </View>
51
- // <View style={styles.buttonContainer}>
52
- // <Components.InlineButton
53
- // onPress={this.onGoToFullpage}
54
- // color={colourBrandingMain}
55
- // touchableStyle={{ paddingTop: 6 }}
56
- // textStyle={{ color: '#fff' }}
57
- // large
58
- // >
59
- // {options.buttonText}
60
- // </Components.InlineButton>
61
- // </View>
62
- // </View>
63
- // );
64
- }
65
- return (
66
- <View style={styles.container}>
67
- <WebView
68
- source={{ uri: options['webUrl'] }}
69
- style={styles.webContainer}
70
- onLoadStart={this.onLoadStart}
71
- onLoadEnd={this.onLoadEnd}
72
- />
73
- </View>
74
- );
75
- }
32
+ render() {
33
+ const { options, colourBrandingMain } = this.props;
34
+ if (options.isWebViewSeparatePage) {
35
+ return (
36
+ <View
37
+ style={[
38
+ styles.buttonContainer,
39
+ {
40
+ backgroundColor: Colours.hexToRGBAstring(colourBrandingMain, 0.2),
41
+ },
42
+ ]}
43
+ >
44
+ <View style={styles.upperContainer}>
45
+ <View>
46
+ <Text style={[styles.title, { color: colourBrandingMain }]}>
47
+ {this.getTitle()}
48
+ </Text>
49
+ </View>
50
+ </View>
51
+ <Components.InlineButton
52
+ onPress={this.onGoToFullpage}
53
+ color={colourBrandingMain}
54
+ style={styles.button}
55
+ large
56
+ >
57
+ {options.buttonText}
58
+ </Components.InlineButton>
59
+ </View>
60
+ );
61
+ // return (
62
+ // <View style={styles.sectionContainer}>
63
+ // <View style={styles.sectionPadding}>
64
+ // <View style={styles.sectionHeading}>
65
+ // <Text style={styles.sectionTitle}>{this.getTitle()}</Text>
66
+ // </View>
67
+ // </View>
68
+ // <View style={styles.buttonContainer}>
69
+ // <Components.InlineButton
70
+ // onPress={this.onGoToFullpage}
71
+ // color={colourBrandingMain}
72
+ // touchableStyle={{ paddingTop: 6 }}
73
+ // textStyle={{ color: '#fff' }}
74
+ // large
75
+ // >
76
+ // {options.buttonText}
77
+ // </Components.InlineButton>
78
+ // </View>
79
+ // </View>
80
+ // );
81
+ }
82
+ return (
83
+ <View style={styles.container}>
84
+ <WebView
85
+ source={{ uri: options["webUrl"] }}
86
+ style={styles.webContainer}
87
+ onLoadStart={this.onLoadStart}
88
+ onLoadEnd={this.onLoadEnd}
89
+ />
90
+ </View>
91
+ );
92
+ }
76
93
  }
77
94
 
78
95
  const styles = StyleSheet.create({
79
- container: {
80
- height: 300,
81
- paddingTop: 8,
82
- paddingBottom: 8,
83
- },
84
- webContainer: {
85
- flex: 1,
86
- alignItems: 'center',
87
- justifyContent: 'center',
88
- },
89
- buttonContainer: {
90
- width: '100%',
91
- alignItems: 'center',
92
- justifyContent: 'center',
93
- padding: 16,
94
- },
95
- upperContainer: {
96
- flexDirection: 'row',
97
- alignItems: 'center',
98
- justifyContent: 'space-between',
99
- },
100
- title: {
101
- fontFamily: 'sf-semibold',
102
- fontSize: 16,
103
- },
104
- button: {
105
- paddingHorizontal: 40,
106
- marginTop: 16,
107
- },
96
+ container: {
97
+ height: 300,
98
+ paddingTop: 8,
99
+ paddingBottom: 8,
100
+ },
101
+ webContainer: {
102
+ flex: 1,
103
+ alignItems: "center",
104
+ justifyContent: "center",
105
+ },
106
+ buttonContainer: {
107
+ width: "100%",
108
+ alignItems: "center",
109
+ justifyContent: "center",
110
+ padding: 16,
111
+ },
112
+ upperContainer: {
113
+ flexDirection: "row",
114
+ alignItems: "center",
115
+ justifyContent: "space-between",
116
+ },
117
+ title: {
118
+ fontFamily: "sf-semibold",
119
+ fontSize: 16,
120
+ },
121
+ button: {
122
+ paddingHorizontal: 40,
123
+ marginTop: 16,
124
+ },
108
125
  });
109
126
 
110
- const mapStateToProps = state => {
111
- return {
112
- colourBrandingMain: Colours.getMainBrandingColourFromState(state),
113
- };
127
+ const mapStateToProps = (state) => {
128
+ return {
129
+ colourBrandingMain: Colours.getMainBrandingColourFromState(state),
130
+ };
114
131
  };
115
132
 
116
- export default connect(mapStateToProps, {}, null, { forwardRef: true })(WidgetSmall);
133
+ export default connect(mapStateToProps, {}, null, { forwardRef: true })(
134
+ WidgetSmall,
135
+ );
@@ -1,5 +1,29 @@
1
1
  // import * as PlussCore from '../../pluss-core/src';
2
- import * as PlussCore from '@plusscommunities/pluss-core-app';
2
+ import * as PlussCore from "@plusscommunities/pluss-core-app";
3
3
 
4
- const { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours } = PlussCore;
5
- export { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };
4
+ const {
5
+ Apis,
6
+ Fonts,
7
+ Actions,
8
+ ActionTypes,
9
+ Config,
10
+ Components,
11
+ Styles,
12
+ Session,
13
+ Helper,
14
+ Constants,
15
+ Colours,
16
+ } = PlussCore;
17
+ export {
18
+ Apis,
19
+ Fonts,
20
+ Actions,
21
+ ActionTypes,
22
+ Config,
23
+ Components,
24
+ Styles,
25
+ Session,
26
+ Helper,
27
+ Constants,
28
+ Colours,
29
+ };
@@ -1,44 +1,44 @@
1
1
  // import * as PlussCore from '../../pluss-core/src';
2
- import * as PlussCore from '@plusscommunities/pluss-core-app';
2
+ import * as PlussCore from "@plusscommunities/pluss-core-app";
3
3
 
4
4
  export const Services = {
5
- navigation: null,
5
+ navigation: null,
6
6
  };
7
7
 
8
8
  export const BaseComponents = {
9
- NotificationBell: null,
9
+ NotificationBell: null,
10
10
  };
11
11
 
12
12
  const FeatureConfig = {
13
- key: 'web',
14
- title: 'Web',
15
- gridMenu: {
16
- icon: 'tab_news2',
17
- viewBox: '0 0 24 24',
18
- navigate: 'web',
19
- },
20
- hideTabBar: ['webViewPage'],
21
- env: {
22
- baseStage: '',
23
- baseAPIUrl: '',
24
- hasGradientHeader: false,
25
- defaultProfileImage: '',
26
- tinyChatDefault: '',
27
- baseUploadsUrl: '',
28
- allowMediaDownload: false,
29
- allowMediaSharing: false,
30
- awsUploadsBucket: '',
31
- awsStorageBucket: '',
32
- preferredSite: '',
33
- strings: {},
34
- newEventDefaults: '',
35
- defaultAllowComments: true,
36
- },
37
- init: (environment, navigation, notificationBell) => {
38
- BaseComponents.NotificationBell = notificationBell;
39
- PlussCore.Config.init(environment, navigation);
40
- FeatureConfig.env = environment;
41
- Services.navigation = navigation;
42
- },
13
+ key: "web",
14
+ title: "Web",
15
+ gridMenu: {
16
+ icon: "tab_news2",
17
+ viewBox: "0 0 24 24",
18
+ navigate: "web",
19
+ },
20
+ hideTabBar: ["webViewPage"],
21
+ env: {
22
+ baseStage: "",
23
+ baseAPIUrl: "",
24
+ hasGradientHeader: false,
25
+ defaultProfileImage: "",
26
+ tinyChatDefault: "",
27
+ baseUploadsUrl: "",
28
+ allowMediaDownload: false,
29
+ allowMediaSharing: false,
30
+ awsUploadsBucket: "",
31
+ awsStorageBucket: "",
32
+ preferredSite: "",
33
+ strings: {},
34
+ newEventDefaults: "",
35
+ defaultAllowComments: true,
36
+ },
37
+ init: (environment, navigation, notificationBell) => {
38
+ BaseComponents.NotificationBell = notificationBell;
39
+ PlussCore.Config.init(environment, navigation);
40
+ FeatureConfig.env = environment;
41
+ Services.navigation = navigation;
42
+ },
43
43
  };
44
44
  export default FeatureConfig;
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import WebPage from './screens/WebPage';
2
- import WebViewPage from './screens/WebViewPage';
1
+ import WebPage from "./screens/WebPage";
2
+ import WebViewPage from "./screens/WebViewPage";
3
3
 
4
4
  export const Screens = { web: WebPage, webViewPage: WebViewPage };
5
- export { default as Config } from './feature.config';
6
- export { default as WidgetSmall } from './components/WidgetSmall';
7
- export { default as WidgetLarge } from './components/WidgetLarge';
5
+ export { default as Config } from "./feature.config";
6
+ export { default as WidgetSmall } from "./components/WidgetSmall";
7
+ export { default as WidgetLarge } from "./components/WidgetLarge";
@@ -1,10 +1,10 @@
1
- import React, { PureComponent } from 'react';
2
- import WidgetLarge from '../components/WidgetLarge';
1
+ import React, { PureComponent } from "react";
2
+ import WidgetLarge from "../components/WidgetLarge";
3
3
 
4
4
  class WebPage extends PureComponent {
5
- render() {
6
- return <WidgetLarge {...this.props} />;
7
- }
5
+ render() {
6
+ return <WidgetLarge {...this.props} />;
7
+ }
8
8
  }
9
9
 
10
10
  export default WebPage;
@@ -1,42 +1,51 @@
1
- import React, { Component } from 'react';
2
- import { View, StyleSheet } from 'react-native';
3
- import { WebView } from 'react-native-webview';
4
- import { Components } from '../core.config';
5
- import { Services } from '../feature.config';
1
+ import React, { Component } from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ import { WebView } from "react-native-webview";
4
+ import { Components } from "../core.config";
5
+ import { Services } from "../feature.config";
6
6
 
7
7
  class WebViewPage extends Component {
8
- constructor(props) {
9
- super(props);
10
- this.state = {};
11
- }
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = {};
11
+ }
12
12
 
13
- onLoadStart = () => {};
14
- onLoadEnd = () => {};
13
+ onLoadStart = () => {};
14
+ onLoadEnd = () => {};
15
15
 
16
- onPressBack = () => {
17
- Services.navigation.goBack();
18
- };
16
+ onPressBack = () => {
17
+ Services.navigation.goBack();
18
+ };
19
19
 
20
- render() {
21
- const { url, headerTitle } = this.props;
22
- return (
23
- <View style={styles.container}>
24
- <Components.Header leftIcon="angle-left" onPressLeft={this.onPressBack} text={headerTitle} />
25
- <WebView source={{ uri: url }} style={styles.webContainer} onLoadStart={this.onLoadStart} onLoadEnd={this.onLoadEnd} />
26
- </View>
27
- );
28
- }
20
+ render() {
21
+ const { url, headerTitle } = this.props;
22
+ return (
23
+ <View style={styles.container}>
24
+ <Components.Header
25
+ leftIcon="angle-left"
26
+ onPressLeft={this.onPressBack}
27
+ text={headerTitle}
28
+ />
29
+ <WebView
30
+ source={{ uri: url }}
31
+ style={styles.webContainer}
32
+ onLoadStart={this.onLoadStart}
33
+ onLoadEnd={this.onLoadEnd}
34
+ />
35
+ </View>
36
+ );
37
+ }
29
38
  }
30
39
 
31
40
  const styles = StyleSheet.create({
32
- container: {
33
- flex: 1,
34
- },
35
- webContainer: {
36
- flex: 1,
37
- alignItems: 'center',
38
- justifyContent: 'center',
39
- },
41
+ container: {
42
+ flex: 1,
43
+ },
44
+ webContainer: {
45
+ flex: 1,
46
+ alignItems: "center",
47
+ justifyContent: "center",
48
+ },
40
49
  });
41
50
 
42
51
  export default WebViewPage;