@plusscommunities/pluss-newsletter-web 1.4.21 → 1.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1375,7 +1375,8 @@ var NewsletterSubmissions$1 = reactRedux.connect(mapStateToProps$9, {
1375
1375
  newsSubmissionsLoaded: newsSubmissionsLoaded
1376
1376
  })(NewsletterSubmissions);
1377
1377
 
1378
- var Config = PlussCore__namespace.Config;
1378
+ var Config = PlussCore__namespace.Config,
1379
+ Urls = PlussCore__namespace.Urls;
1379
1380
  var UTC_OFFSET = Config.env.utcOffset;
1380
1381
  Config.env.hasAvailableNews;
1381
1382
  var newsHaveTags = Config.env.newsHaveTags;
@@ -2152,7 +2153,11 @@ var NewsHub = /*#__PURE__*/function (_Component) {
2152
2153
  sections: [{
2153
2154
  title: this.props.strings["".concat(values.featureKey, "_textTitleNews")] || values.textTitleNews,
2154
2155
  items: sectionItems
2155
- }]
2156
+ }],
2157
+ helpGuide: {
2158
+ text: 'Help with News',
2159
+ url: Urls.HelpGuide.News
2160
+ }
2156
2161
  });
2157
2162
  }
2158
2163
  }, {
package/dist/index.esm.js CHANGED
@@ -1329,7 +1329,8 @@ var NewsletterSubmissions$1 = connect(mapStateToProps$9, {
1329
1329
  newsSubmissionsLoaded: newsSubmissionsLoaded
1330
1330
  })(NewsletterSubmissions);
1331
1331
 
1332
- var Config = PlussCore.Config;
1332
+ var Config = PlussCore.Config,
1333
+ Urls = PlussCore.Urls;
1333
1334
  var UTC_OFFSET = Config.env.utcOffset;
1334
1335
  Config.env.hasAvailableNews;
1335
1336
  var newsHaveTags = Config.env.newsHaveTags;
@@ -2106,7 +2107,11 @@ var NewsHub = /*#__PURE__*/function (_Component) {
2106
2107
  sections: [{
2107
2108
  title: this.props.strings["".concat(values.featureKey, "_textTitleNews")] || values.textTitleNews,
2108
2109
  items: sectionItems
2109
- }]
2110
+ }],
2111
+ helpGuide: {
2112
+ text: 'Help with News',
2113
+ url: Urls.HelpGuide.News
2114
+ }
2110
2115
  });
2111
2116
  }
2112
2117
  }, {
package/dist/index.umd.js CHANGED
@@ -1351,7 +1351,8 @@
1351
1351
  newsSubmissionsLoaded: newsSubmissionsLoaded
1352
1352
  })(NewsletterSubmissions);
1353
1353
 
1354
- var Config = PlussCore__namespace.Config;
1354
+ var Config = PlussCore__namespace.Config,
1355
+ Urls = PlussCore__namespace.Urls;
1355
1356
  var UTC_OFFSET = Config.env.utcOffset;
1356
1357
  Config.env.hasAvailableNews;
1357
1358
  var newsHaveTags = Config.env.newsHaveTags;
@@ -2128,7 +2129,11 @@
2128
2129
  sections: [{
2129
2130
  title: this.props.strings["".concat(values.featureKey, "_textTitleNews")] || values.textTitleNews,
2130
2131
  items: sectionItems
2131
- }]
2132
+ }],
2133
+ helpGuide: {
2134
+ text: 'Help with News',
2135
+ url: Urls.HelpGuide.News
2136
+ }
2132
2137
  });
2133
2138
  }
2134
2139
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-newsletter-web",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "Extension package to enable newsletter on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.14.0",
38
- "@plusscommunities/pluss-core-web": "1.4.22",
38
+ "@plusscommunities/pluss-core-web": "1.4.30",
39
39
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
40
40
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
41
41
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -1,9 +1,10 @@
1
1
  import { PlussCore } from '../feature.config';
2
2
 
3
- const { Config } = PlussCore;
3
+ const { Config, Urls } = PlussCore;
4
4
 
5
5
  export const UTC_OFFSET = Config.env.utcOffset;
6
6
  export const hasAvailableNews = Config.env.hasAvailableNews;
7
7
  export const newsHaveTags = Config.env.newsHaveTags;
8
8
  export const DEFAULT_ALLOW_COMMENTS = Config.env.defaultAllowComments;
9
9
  export const logo = Config.env.logo;
10
+ export { Urls }
@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
3
3
  import _ from 'lodash';
4
4
  import moment from 'moment';
5
5
  import FontAwesome from 'react-fontawesome';
6
- import { Header, AddButton, Button, HubSidebar } from '../../components';
6
+ import { Header, AddButton, HubSidebar } from '../../components';
7
7
  import { isTheBest, validateAccess } from '../../session';
8
8
  import { newsLoaded, newsSubmissionsLoaded, setAuth } from '../../actions';
9
9
  import { newsletterActions } from '../../webapi';
@@ -13,7 +13,7 @@ import NewsletterSubmissions from './NewsletterSubmissions';
13
13
  import NewsHubAnalytics from './NewsHubAnalytics';
14
14
  import AvailableNews from './AvailableNews';
15
15
  import { getPluralS, getUrlParams } from '../../helper';
16
- import { hasAvailableNews } from '../../config';
16
+ import { Urls } from '../../config';
17
17
  import { Text } from '../../components/text';
18
18
  import { values } from '../../values.config';
19
19
 
@@ -212,6 +212,10 @@ class NewsHub extends Component {
212
212
  items: sectionItems,
213
213
  },
214
214
  ]}
215
+ helpGuide={{
216
+ text: 'Help with News',
217
+ url: Urls.HelpGuide.News
218
+ }}
215
219
  />
216
220
  );
217
221
  }