@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.
@@ -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 '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, 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('webViewPage', {
21
- url: options['webUrl'],
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 'Web View';
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['webUrl']
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: 'center',
96
- justifyContent: 'center'
96
+ alignItems: "center",
97
+ justifyContent: "center"
97
98
  },
98
99
  buttonContainer: {
99
- width: '100%',
100
- alignItems: 'center',
101
- justifyContent: 'center',
100
+ width: "100%",
101
+ alignItems: "center",
102
+ justifyContent: "center",
102
103
  padding: 16
103
104
  },
104
105
  upperContainer: {
105
- flexDirection: 'row',
106
- alignItems: 'center',
107
- justifyContent: 'space-between'
106
+ flexDirection: "row",
107
+ alignItems: "center",
108
+ justifyContent: "space-between"
108
109
  },
109
110
  title: {
110
- fontFamily: 'sf-semibold',
111
+ fontFamily: "sf-semibold",
111
112
  fontSize: 16
112
113
  },
113
114
  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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AK,EAAEC,MAAM,CAACiB,YAAa;MAC3BC,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","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,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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QAAQ;MAAE,CAAE;MACnCa,KAAK,EAAEC,MAAM,CAACiB,YAAa;MAC3BC,WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BC,SAAS,EAAE,IAAI,CAACA;IAAU,CAC1B,CACI,CAAC;EAET;AACD;AAEA,MAAMnB,MAAM,GAAG1B,UAAU,CAAC8C,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,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 '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, 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('webViewPage', {
21
- url: options['webUrl'],
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 'Web View';
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['webUrl']
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: 'center',
98
- justifyContent: 'center'
98
+ alignItems: "center",
99
+ justifyContent: "center"
99
100
  },
100
101
  buttonContainer: {
101
- width: '100%',
102
- alignItems: 'center',
103
- justifyContent: 'center',
102
+ width: "100%",
103
+ alignItems: "center",
104
+ justifyContent: "center",
104
105
  padding: 16
105
106
  },
106
107
  upperContainer: {
107
- flexDirection: 'row',
108
- alignItems: 'center',
109
- justifyContent: 'space-between'
108
+ flexDirection: "row",
109
+ alignItems: "center",
110
+ justifyContent: "space-between"
110
111
  },
111
112
  title: {
112
- fontFamily: 'sf-semibold',
113
+ fontFamily: "sf-semibold",
113
114
  fontSize: 16
114
115
  },
115
116
  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,EAA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E;EAClB,CAAC;EACDxB,eAAe,EAAE;IACfyB,KAAK,EAAE,MAAM;IACbF,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,OAAO,EAAE;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","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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C;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDxB,eAAe,EAAE;IAChByB,KAAK,EAAE,MAAM;IACbF,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,OAAO,EAAE;EACV,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,8 +1,7 @@
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
- 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, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };
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","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","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 '@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,44 @@
1
1
  {
2
- "name": "@plusscommunities/pluss-webview-app",
3
- "version": "6.0.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
- "upload": "npm run build && npm publish --access public",
19
- "upload:p": "npm run patch && npm run upload"
20
- },
21
- "author": "Phillip Suh",
22
- "license": "ISC",
23
- "dependencies": {},
24
- "peerDependencies": {
25
- "@plusscommunities/pluss-core-app": "^6.0.0",
26
- "lodash": "^4.17.4",
27
- "react": "18.2.0",
28
- "react-native": "0.73.6",
29
- "react-native-webview": "13.6.4"
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": "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
  }