@plusscommunities/pluss-newsletter-web-sharing 1.3.7 → 1.3.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +109 -92
- package/dist/index.esm.js +109 -92
- package/dist/index.umd.js +109 -92
- package/package.json +9 -7
- package/src/actions/types.js +1 -1
- package/src/components/ActivityText.js +1 -1
- package/src/components/PreviewFull.js +1 -1
- package/src/components/PreviewGrid.js +1 -1
- package/src/feature.config.js +2 -96
- package/src/index.js +1 -1
- package/src/screens/Newsletter/AddNewsletterEntry.js +1 -1
- package/src/screens/Newsletter/AvailableNews.js +1 -1
- package/src/screens/Newsletter/GenerateNewsletter.js +1 -1
- package/src/screens/Newsletter/ListNewsletterEntries.js +1 -1
- package/src/screens/Newsletter/NewsHub.js +1 -1
- package/src/screens/Newsletter/NewsHubAnalytics.js +1 -1
- package/src/screens/Newsletter/NewsletterAnalytics.js +1 -1
- package/src/screens/Newsletter/NewsletterSubmission.js +1 -1
- package/src/screens/Newsletter/NewsletterSubmissions.js +1 -1
- package/src/screens/Newsletter/NewsletterTemplate.js +1 -1
- package/src/screens/Newsletter/PublishAvailableNews.js +1 -1
- package/src/{feature.config.coaching.js → values.config.coaching.js} +1 -140
- package/src/{feature.config.curatedposts.js → values.config.curatedposts.js} +1 -140
- package/src/{feature.config.default.js → values.config.default.js} +1 -140
- package/src/{feature.config.headoffice.js → values.config.headoffice.js} +1 -140
- package/src/{feature.config.sharing.js → values.config.js} +1 -140
- package/src/{feature.config.menu.js → values.config.menu.js} +1 -140
- package/src/{feature.config.noticeboard.js → values.config.noticeboard.js} +1 -140
- package/src/{feature.config.personaldev.js → values.config.personaldev.js} +1 -140
- package/src/{feature.config.sales.js → values.config.sales.js} +1 -140
- package/src/values.config.sharing.js +96 -0
- package/src/values.config.shifts.js +96 -0
- package/src/{feature.config.training.js → values.config.training.js} +1 -140
- package/src/webapi/newsletterActions.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -67,97 +67,97 @@ var NewsletterPreview__default = /*#__PURE__*/_interopDefaultLegacy(NewsletterPr
|
|
|
67
67
|
|
|
68
68
|
// import * as PlussCore from '../../pluss-core/src';
|
|
69
69
|
var values = {
|
|
70
|
-
featureKey: '
|
|
71
|
-
serviceKey: '
|
|
72
|
-
reducerKey: '
|
|
73
|
-
analyticsKey: '
|
|
74
|
-
actionNewsLoaded: '
|
|
75
|
-
actionNewsUpdated: '
|
|
76
|
-
actionNewsRemoved: '
|
|
77
|
-
actionNewsSubmissionsLoaded: '
|
|
78
|
-
actionNewsSubmissionRemoved: '
|
|
79
|
-
actionNewsPurge: '
|
|
80
|
-
actionNewsDashboardLoading: '
|
|
81
|
-
actionNewsSubmissionsDashboardLoading: '
|
|
82
|
-
permissionNewsletter: '
|
|
83
|
-
permissionNewsletterSubmit: '
|
|
84
|
-
activityAddNewsSubmission: '
|
|
85
|
-
activityApproveNewsSubmission: '
|
|
86
|
-
activityRejectNewsSubmission: '
|
|
87
|
-
activityAddNews: '
|
|
88
|
-
activityEditNews: '
|
|
89
|
-
acitivtyDeleteNews: '
|
|
90
|
-
routeNewsHub: '/
|
|
91
|
-
routeAddNewsletterEntry: '/
|
|
92
|
-
routePublishAvailableNews: '/
|
|
93
|
-
routeNewsletterSubmission: '/
|
|
94
|
-
routeNewsletterAnalytics: '/
|
|
95
|
-
routeGenerateNewsletter: '/
|
|
96
|
-
routeNewsletterTemplate: '/embed/
|
|
97
|
-
screenNewsHub: '
|
|
98
|
-
screenAddNewsletterEntry: '
|
|
99
|
-
screenPublishAvailableNews: '
|
|
100
|
-
screenNewsletterSubmission: '
|
|
101
|
-
screenNewsletterAnalytics: '
|
|
102
|
-
screenGenerateNewsletter: '
|
|
103
|
-
screenNewsletterTemplate: '
|
|
104
|
-
svgPathGridIcon: '
|
|
105
|
-
svgPathGridIconViewBox: '0 0
|
|
106
|
-
optionForceNewsAuthorName: '
|
|
107
|
-
optionNewsComments: '
|
|
108
|
-
optionNewsNotifications: '
|
|
109
|
-
optionUseLargeNews: '
|
|
110
|
-
localStorageNewsletterBrandData: "
|
|
111
|
-
localStorageNewsletterMakerLastUpdate: "
|
|
112
|
-
localStorageNewsletterMakerData: "
|
|
113
|
-
stringPostfixSubmissionEmail: '
|
|
114
|
-
menuOrder: 3.
|
|
115
|
-
textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV
|
|
116
|
-
textFeaturedNews: 'Featured
|
|
117
|
-
textIsThisAFeaturedNewsArticle: 'Is this a featured
|
|
118
|
-
textFeaturedNewsArticlesWillBeHighlighted: 'Featured
|
|
119
|
-
textThisPostHasPreviouslyBeenPublished: "This
|
|
120
|
-
textNewsletterTitlePostfix: '
|
|
121
|
-
textCreateNewsletter: 'Create
|
|
122
|
-
textNoSelectedNews: 'No selected
|
|
123
|
-
textNewsletterTitle: '
|
|
124
|
-
textSelectNews: 'Select
|
|
125
|
-
textSelectedNews: 'Selected
|
|
126
|
-
textAddEditNewsPostfix: '
|
|
70
|
+
featureKey: 'shifts',
|
|
71
|
+
serviceKey: 'newsletterShifts',
|
|
72
|
+
reducerKey: 'newsShifts',
|
|
73
|
+
analyticsKey: 'newsShifts',
|
|
74
|
+
actionNewsLoaded: 'NEWS_LOADEDShifts',
|
|
75
|
+
actionNewsUpdated: 'NEWS_UPDATEDShifts',
|
|
76
|
+
actionNewsRemoved: 'NEWS_REMOVEDShifts',
|
|
77
|
+
actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDShifts',
|
|
78
|
+
actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDShifts',
|
|
79
|
+
actionNewsPurge: 'NEWS_PURGEShifts',
|
|
80
|
+
actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGShifts',
|
|
81
|
+
actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGShifts',
|
|
82
|
+
permissionNewsletter: 'newsletterShifts',
|
|
83
|
+
permissionNewsletterSubmit: 'newsletterSubmitShifts',
|
|
84
|
+
activityAddNewsSubmission: 'AddNewsSubmissionShifts',
|
|
85
|
+
activityApproveNewsSubmission: 'ApproveNewsSubmissionShifts',
|
|
86
|
+
activityRejectNewsSubmission: 'RejectNewsSubmissionShifts',
|
|
87
|
+
activityAddNews: 'AddNewsShifts',
|
|
88
|
+
activityEditNews: 'EditNewsShifts',
|
|
89
|
+
acitivtyDeleteNews: 'DeleteNewsShifts',
|
|
90
|
+
routeNewsHub: '/newsShifts',
|
|
91
|
+
routeAddNewsletterEntry: '/newsShifts/article',
|
|
92
|
+
routePublishAvailableNews: '/newsShifts/content/',
|
|
93
|
+
routeNewsletterSubmission: '/newsShifts/newslettersubmission/',
|
|
94
|
+
routeNewsletterAnalytics: '/newsShifts/analytics/',
|
|
95
|
+
routeGenerateNewsletter: '/newsletterShifts/generate',
|
|
96
|
+
routeNewsletterTemplate: '/embed/newsletterShifts',
|
|
97
|
+
screenNewsHub: 'NewsHubShifts',
|
|
98
|
+
screenAddNewsletterEntry: 'AddNewsletterEntryShifts',
|
|
99
|
+
screenPublishAvailableNews: 'PublishAvailableNewsShifts',
|
|
100
|
+
screenNewsletterSubmission: 'NewsletterSubmissionShifts',
|
|
101
|
+
screenNewsletterAnalytics: 'NewsletterAnalyticsShifts',
|
|
102
|
+
screenGenerateNewsletter: 'GenerateNewsletterShifts',
|
|
103
|
+
screenNewsletterTemplate: 'NewsletterTemplateShifts',
|
|
104
|
+
svgPathGridIcon: 'M8.625 4.5C7.18359 4.5 6 5.68359 6 7.125C6 8.56641 7.18359 9.75 8.625 9.75C10.0664 9.75 11.25 8.56641 11.25 7.125C11.25 5.68359 10.0664 4.5 8.625 4.5ZM15.375 4.5C13.9336 4.5 12.75 5.68359 12.75 7.125C12.75 8.56641 13.9336 9.75 15.375 9.75C16.8164 9.75 18 8.56641 18 7.125C18 5.68359 16.8164 4.5 15.375 4.5ZM8.625 6C9.25488 6 9.75 6.49512 9.75 7.125C9.75 7.75488 9.25488 8.25 8.625 8.25C7.99512 8.25 7.5 7.75488 7.5 7.125C7.5 6.49512 7.99512 6 8.625 6ZM15.375 6C16.0049 6 16.5 6.49512 16.5 7.125C16.5 7.75488 16.0049 8.25 15.375 8.25C14.7451 8.25 14.25 7.75488 14.25 7.125C14.25 6.49512 14.7451 6 15.375 6ZM5.25 9C3.60059 9 2.25 10.3506 2.25 12C2.25 12.835 2.60742 13.5879 3.16406 14.1328C2.16504 14.8096 1.5 15.9609 1.5 17.25H3C3 15.999 3.99902 15 5.25 15C6.50098 15 7.5 15.999 7.5 17.25H9C9 15.9609 8.33496 14.8096 7.33594 14.1328C7.89258 13.5879 8.25 12.835 8.25 12C8.25 10.3506 6.89941 9 5.25 9ZM9 17.25C8.53125 17.877 8.25 18.665 8.25 19.5H9.75C9.75 18.249 10.749 17.25 12 17.25C13.251 17.25 14.25 18.249 14.25 19.5H15.75C15.75 18.665 15.4688 17.877 15 17.25C14.7451 16.9102 14.4375 16.6201 14.0859 16.3828C14.6426 15.8379 15 15.085 15 14.25C15 12.6006 13.6494 11.25 12 11.25C10.3506 11.25 9 12.6006 9 14.25C9 15.085 9.35742 15.8379 9.91406 16.3828C9.5625 16.6201 9.25488 16.9102 9 17.25ZM15 17.25H16.5C16.5 15.999 17.499 15 18.75 15C20.001 15 21 15.999 21 17.25H22.5C22.5 15.9609 21.835 14.8096 20.8359 14.1328C21.3926 13.5879 21.75 12.835 21.75 12C21.75 10.3506 20.3994 9 18.75 9C17.1006 9 15.75 10.3506 15.75 12C15.75 12.835 16.1074 13.5879 16.6641 14.1328C15.665 14.8096 15 15.9609 15 17.25ZM5.25 10.5C6.08789 10.5 6.75 11.1621 6.75 12C6.75 12.8379 6.08789 13.5 5.25 13.5C4.41211 13.5 3.75 12.8379 3.75 12C3.75 11.1621 4.41211 10.5 5.25 10.5ZM18.75 10.5C19.5879 10.5 20.25 11.1621 20.25 12C20.25 12.8379 19.5879 13.5 18.75 13.5C17.9121 13.5 17.25 12.8379 17.25 12C17.25 11.1621 17.9121 10.5 18.75 10.5ZM12 12.75C12.8379 12.75 13.5 13.4121 13.5 14.25C13.5 15.0879 12.8379 15.75 12 15.75C11.1621 15.75 10.5 15.0879 10.5 14.25C10.5 13.4121 11.1621 12.75 12 12.75Z',
|
|
105
|
+
svgPathGridIconViewBox: '0 0 30 30',
|
|
106
|
+
optionForceNewsAuthorName: 'forceNewsAuthorNameShifts',
|
|
107
|
+
optionNewsComments: 'newsCommentsShifts',
|
|
108
|
+
optionNewsNotifications: 'newsNotificationsShifts',
|
|
109
|
+
optionUseLargeNews: 'useLargeNewsShifts',
|
|
110
|
+
localStorageNewsletterBrandData: "newsletterBrandDataShifts",
|
|
111
|
+
localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdateShifts",
|
|
112
|
+
localStorageNewsletterMakerData: "newsletterMakerDataShifts",
|
|
113
|
+
stringPostfixSubmissionEmail: 'newssubmissionemailShifts',
|
|
114
|
+
menuOrder: 3.4,
|
|
115
|
+
textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV Shifts feed active and current, but don’t flood\nit with so much content that important posts get lost.',
|
|
116
|
+
textFeaturedNews: 'Featured Shifts',
|
|
117
|
+
textIsThisAFeaturedNewsArticle: 'Is this a featured shift?',
|
|
118
|
+
textFeaturedNewsArticlesWillBeHighlighted: 'Featured shifts will be highlighted on the Home page.',
|
|
119
|
+
textThisPostHasPreviouslyBeenPublished: "This shift has previously been published to this village. Are you sure you want to continue?",
|
|
120
|
+
textNewsletterTitlePostfix: 'Shift',
|
|
121
|
+
textCreateNewsletter: 'Create Shift',
|
|
122
|
+
textNoSelectedNews: 'No selected shift yet',
|
|
123
|
+
textNewsletterTitle: 'Shift Title',
|
|
124
|
+
textSelectNews: 'Select Shift',
|
|
125
|
+
textSelectedNews: 'Selected Shift',
|
|
126
|
+
textAddEditNewsPostfix: 'shifts',
|
|
127
127
|
textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
|
|
128
|
-
return "Note: This will not ".concat(changeText, " the
|
|
128
|
+
return "Note: This will not ".concat(changeText, " the shift in the app");
|
|
129
129
|
},
|
|
130
|
-
textAreYouSureYouWantToDelete: "Are you sure you want to delete that
|
|
131
|
-
textThereAreNoNews: 'There are no
|
|
132
|
-
textTitleNews: '
|
|
133
|
-
textSubmitYourNewNewsPostHere: 'Submit your new
|
|
134
|
-
textPrintNewsletter: 'Print
|
|
135
|
-
textBackToNews: 'Back to
|
|
136
|
-
textNewsAnalytics: '
|
|
137
|
-
textNewsSubmission: '
|
|
138
|
-
textNewsPost: '
|
|
139
|
-
textNewsPostTitle: '
|
|
140
|
-
textWhenANewsletterSubmissionIsAdded: 'When a
|
|
141
|
-
textIsThisAFeaturedNewsPost: 'Is this a featured
|
|
142
|
-
textFeaturedNewsPostWillBeHighlighted: 'Featured
|
|
143
|
-
textSubmittedANewsletterPostForReview: 'submitted a
|
|
144
|
-
textApprovedANewsSubmission: 'approved a
|
|
145
|
-
textRejectedANewsSubmission: 'rejected a
|
|
146
|
-
textAddedANewsletterPost: 'added a
|
|
147
|
-
textEditedANewsletterPost: 'edited a
|
|
148
|
-
textDeletedANewsletterPost: 'deleted a
|
|
149
|
-
textSingularName: '
|
|
150
|
-
textThereIsNoNews: 'There is no
|
|
151
|
-
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a
|
|
152
|
-
textAllowNewsComments: 'Allow
|
|
153
|
-
textUsersCanPostCommentsOnNews: 'Users can post comments on
|
|
154
|
-
textAllowNewsNotification: 'Allow
|
|
155
|
-
textWhenSettingUpANewsPost: 'When setting up a
|
|
156
|
-
textCondensedNewsStyle: 'Condensed
|
|
157
|
-
textTheNewsSectionUsesCondensedNewsItems: 'The
|
|
158
|
-
textMenuTitle: '
|
|
159
|
-
textPermissionNewsletterManagement: '
|
|
160
|
-
textPermissionNewsletterSubmission: '
|
|
130
|
+
textAreYouSureYouWantToDelete: "Are you sure you want to delete that shift?",
|
|
131
|
+
textThereAreNoNews: 'There are no shifts',
|
|
132
|
+
textTitleNews: 'Shifts',
|
|
133
|
+
textSubmitYourNewNewsPostHere: 'Submit your new shift here. You will be notified once your post has been approved.',
|
|
134
|
+
textPrintNewsletter: 'Print Shifts',
|
|
135
|
+
textBackToNews: 'Back to Shifts',
|
|
136
|
+
textNewsAnalytics: 'SHIFTS ANALYTICS',
|
|
137
|
+
textNewsSubmission: 'SHIFTS SUBMISSION',
|
|
138
|
+
textNewsPost: 'SHIFT POST',
|
|
139
|
+
textNewsPostTitle: 'Shift title',
|
|
140
|
+
textWhenANewsletterSubmissionIsAdded: 'When a shift submission is added, the entered address will recieve an email notification.',
|
|
141
|
+
textIsThisAFeaturedNewsPost: 'Is this a featured shift?',
|
|
142
|
+
textFeaturedNewsPostWillBeHighlighted: 'Featured shifts will be highlighted on the Home page.',
|
|
143
|
+
textSubmittedANewsletterPostForReview: 'submitted a shift for review:',
|
|
144
|
+
textApprovedANewsSubmission: 'approved a shift submission:',
|
|
145
|
+
textRejectedANewsSubmission: 'rejected a shift submission:',
|
|
146
|
+
textAddedANewsletterPost: 'added a shift:',
|
|
147
|
+
textEditedANewsletterPost: 'edited a shift:',
|
|
148
|
+
textDeletedANewsletterPost: 'deleted a shift:',
|
|
149
|
+
textSingularName: 'Shift',
|
|
150
|
+
textThereIsNoNews: 'There is no Shift',
|
|
151
|
+
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a shift will always display.',
|
|
152
|
+
textAllowNewsComments: 'Allow Shift Comments',
|
|
153
|
+
textUsersCanPostCommentsOnNews: 'Users can post comments on Shifts within the app.',
|
|
154
|
+
textAllowNewsNotification: 'Allow Shifts Notifications',
|
|
155
|
+
textWhenSettingUpANewsPost: 'When setting up a shift, the creator may choose to send a push notification to users of the app.',
|
|
156
|
+
textCondensedNewsStyle: 'Condensed Shifts Style',
|
|
157
|
+
textTheNewsSectionUsesCondensedNewsItems: 'The Shifts section uses condensed Shifts items - smaller images, less information and less scrolling.',
|
|
158
|
+
textMenuTitle: 'Shifts',
|
|
159
|
+
textPermissionNewsletterManagement: 'Shifts Management',
|
|
160
|
+
textPermissionNewsletterSubmission: 'Shifts Submission (Approval Required)'
|
|
161
161
|
};
|
|
162
162
|
var FeatureConfig = {
|
|
163
163
|
key: values.featureKey,
|
|
@@ -988,6 +988,7 @@ var getSiteNameFromRoles = Helper.getSiteNameFromRoles;
|
|
|
988
988
|
var onlyAlphanumeric = Helper.onlyAlphanumeric;
|
|
989
989
|
var setLocalStorage = Helper.setLocalStorage;
|
|
990
990
|
var readJSONFromStorage = Helper.readJSONFromStorage;
|
|
991
|
+
var getSiteSettingFromState = Helper.getSiteSettingFromState;
|
|
991
992
|
|
|
992
993
|
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
|
993
994
|
|
|
@@ -2323,6 +2324,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2323
2324
|
differentPublish: false,
|
|
2324
2325
|
isTvMode: false,
|
|
2325
2326
|
allowComments: DEFAULT_ALLOW_COMMENTS,
|
|
2327
|
+
commentVisibilityLimited: _this.props.commentVisibilityLimited,
|
|
2326
2328
|
shouldNotify: false,
|
|
2327
2329
|
publishDate: moment__default['default']().format('YYYY-MM-DD'),
|
|
2328
2330
|
publishDateText: moment__default['default']().format('DD/MM/YYYY'),
|
|
@@ -2561,6 +2563,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2561
2563
|
isTvMode: Boolean(update.TVMode),
|
|
2562
2564
|
isFeatured: Boolean(update.IsFeatured),
|
|
2563
2565
|
allowComments: Boolean(update.AllowComments),
|
|
2566
|
+
commentVisibilityLimited: Boolean(update.CommentVisibilityLimited),
|
|
2564
2567
|
featuredExpiryDate: moment__default['default'](update.FeaturedExpiry || undefined).format('YYYY-MM-DD'),
|
|
2565
2568
|
featuredExpiryDateText: moment__default['default'](update.FeaturedExpiry || undefined).format('DD/MM/YYYY'),
|
|
2566
2569
|
authorDisplay: update.AuthorDisplay,
|
|
@@ -2916,6 +2919,10 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2916
2919
|
if (!___default['default'].isEmpty(result.Images)) {
|
|
2917
2920
|
result.Thumbnail = getThumb300(result.Images[0]);
|
|
2918
2921
|
result.Image = get1400(result.Images[0]);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
if (result.AllowComments) {
|
|
2925
|
+
result.CommentVisibilityLimited = this.state.commentVisibilityLimited;
|
|
2919
2926
|
} // if (baseClient === 'pluss60') {
|
|
2920
2927
|
// const publisherImage = this.refs.publisherImage.getWrappedInstance().getValue();
|
|
2921
2928
|
// if (!_.isEmpty(publisherImage) || !_.isEmpty(this.state.publisherTitleInput)) {
|
|
@@ -3514,7 +3521,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
3514
3521
|
var _this13 = this;
|
|
3515
3522
|
|
|
3516
3523
|
if (___default['default'].includes(this.props.auth.hidden, values.optionNewsComments)) return null;
|
|
3517
|
-
return /*#__PURE__*/React__default['default'].createElement(CheckBox, {
|
|
3524
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(CheckBox, {
|
|
3518
3525
|
className: "marginTop-16",
|
|
3519
3526
|
label: "Allow comments",
|
|
3520
3527
|
isActive: this.state.allowComments,
|
|
@@ -3523,7 +3530,16 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
3523
3530
|
allowComments: !_this13.state.allowComments
|
|
3524
3531
|
});
|
|
3525
3532
|
}
|
|
3526
|
-
})
|
|
3533
|
+
}), this.state.allowComments && /*#__PURE__*/React__default['default'].createElement(CheckBox, {
|
|
3534
|
+
className: "marginTop-16",
|
|
3535
|
+
label: "Users can only see their own comments",
|
|
3536
|
+
isActive: this.state.commentVisibilityLimited,
|
|
3537
|
+
onChange: function onChange() {
|
|
3538
|
+
_this13.setState({
|
|
3539
|
+
commentVisibilityLimited: !_this13.state.commentVisibilityLimited
|
|
3540
|
+
});
|
|
3541
|
+
}
|
|
3542
|
+
}));
|
|
3527
3543
|
}
|
|
3528
3544
|
}, {
|
|
3529
3545
|
key: "renderTags",
|
|
@@ -3850,7 +3866,8 @@ var mapStateToProps$4 = function mapStateToProps(state) {
|
|
|
3850
3866
|
return {
|
|
3851
3867
|
auth: auth,
|
|
3852
3868
|
users: allUsers,
|
|
3853
|
-
forceNewsAuthorName:
|
|
3869
|
+
forceNewsAuthorName: getSiteSettingFromState(state, values.optionForceNewsAuthorName),
|
|
3870
|
+
commentVisibilityLimited: getSiteSettingFromState(state, 'CommentVisibilityLimited')
|
|
3854
3871
|
};
|
|
3855
3872
|
};
|
|
3856
3873
|
|
package/dist/index.esm.js
CHANGED
|
@@ -23,97 +23,97 @@ import NewsletterPreview from 'make-pluss-newsletter';
|
|
|
23
23
|
|
|
24
24
|
// import * as PlussCore from '../../pluss-core/src';
|
|
25
25
|
var values = {
|
|
26
|
-
featureKey: '
|
|
27
|
-
serviceKey: '
|
|
28
|
-
reducerKey: '
|
|
29
|
-
analyticsKey: '
|
|
30
|
-
actionNewsLoaded: '
|
|
31
|
-
actionNewsUpdated: '
|
|
32
|
-
actionNewsRemoved: '
|
|
33
|
-
actionNewsSubmissionsLoaded: '
|
|
34
|
-
actionNewsSubmissionRemoved: '
|
|
35
|
-
actionNewsPurge: '
|
|
36
|
-
actionNewsDashboardLoading: '
|
|
37
|
-
actionNewsSubmissionsDashboardLoading: '
|
|
38
|
-
permissionNewsletter: '
|
|
39
|
-
permissionNewsletterSubmit: '
|
|
40
|
-
activityAddNewsSubmission: '
|
|
41
|
-
activityApproveNewsSubmission: '
|
|
42
|
-
activityRejectNewsSubmission: '
|
|
43
|
-
activityAddNews: '
|
|
44
|
-
activityEditNews: '
|
|
45
|
-
acitivtyDeleteNews: '
|
|
46
|
-
routeNewsHub: '/
|
|
47
|
-
routeAddNewsletterEntry: '/
|
|
48
|
-
routePublishAvailableNews: '/
|
|
49
|
-
routeNewsletterSubmission: '/
|
|
50
|
-
routeNewsletterAnalytics: '/
|
|
51
|
-
routeGenerateNewsletter: '/
|
|
52
|
-
routeNewsletterTemplate: '/embed/
|
|
53
|
-
screenNewsHub: '
|
|
54
|
-
screenAddNewsletterEntry: '
|
|
55
|
-
screenPublishAvailableNews: '
|
|
56
|
-
screenNewsletterSubmission: '
|
|
57
|
-
screenNewsletterAnalytics: '
|
|
58
|
-
screenGenerateNewsletter: '
|
|
59
|
-
screenNewsletterTemplate: '
|
|
60
|
-
svgPathGridIcon: '
|
|
61
|
-
svgPathGridIconViewBox: '0 0
|
|
62
|
-
optionForceNewsAuthorName: '
|
|
63
|
-
optionNewsComments: '
|
|
64
|
-
optionNewsNotifications: '
|
|
65
|
-
optionUseLargeNews: '
|
|
66
|
-
localStorageNewsletterBrandData: "
|
|
67
|
-
localStorageNewsletterMakerLastUpdate: "
|
|
68
|
-
localStorageNewsletterMakerData: "
|
|
69
|
-
stringPostfixSubmissionEmail: '
|
|
70
|
-
menuOrder: 3.
|
|
71
|
-
textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV
|
|
72
|
-
textFeaturedNews: 'Featured
|
|
73
|
-
textIsThisAFeaturedNewsArticle: 'Is this a featured
|
|
74
|
-
textFeaturedNewsArticlesWillBeHighlighted: 'Featured
|
|
75
|
-
textThisPostHasPreviouslyBeenPublished: "This
|
|
76
|
-
textNewsletterTitlePostfix: '
|
|
77
|
-
textCreateNewsletter: 'Create
|
|
78
|
-
textNoSelectedNews: 'No selected
|
|
79
|
-
textNewsletterTitle: '
|
|
80
|
-
textSelectNews: 'Select
|
|
81
|
-
textSelectedNews: 'Selected
|
|
82
|
-
textAddEditNewsPostfix: '
|
|
26
|
+
featureKey: 'shifts',
|
|
27
|
+
serviceKey: 'newsletterShifts',
|
|
28
|
+
reducerKey: 'newsShifts',
|
|
29
|
+
analyticsKey: 'newsShifts',
|
|
30
|
+
actionNewsLoaded: 'NEWS_LOADEDShifts',
|
|
31
|
+
actionNewsUpdated: 'NEWS_UPDATEDShifts',
|
|
32
|
+
actionNewsRemoved: 'NEWS_REMOVEDShifts',
|
|
33
|
+
actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDShifts',
|
|
34
|
+
actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDShifts',
|
|
35
|
+
actionNewsPurge: 'NEWS_PURGEShifts',
|
|
36
|
+
actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGShifts',
|
|
37
|
+
actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGShifts',
|
|
38
|
+
permissionNewsletter: 'newsletterShifts',
|
|
39
|
+
permissionNewsletterSubmit: 'newsletterSubmitShifts',
|
|
40
|
+
activityAddNewsSubmission: 'AddNewsSubmissionShifts',
|
|
41
|
+
activityApproveNewsSubmission: 'ApproveNewsSubmissionShifts',
|
|
42
|
+
activityRejectNewsSubmission: 'RejectNewsSubmissionShifts',
|
|
43
|
+
activityAddNews: 'AddNewsShifts',
|
|
44
|
+
activityEditNews: 'EditNewsShifts',
|
|
45
|
+
acitivtyDeleteNews: 'DeleteNewsShifts',
|
|
46
|
+
routeNewsHub: '/newsShifts',
|
|
47
|
+
routeAddNewsletterEntry: '/newsShifts/article',
|
|
48
|
+
routePublishAvailableNews: '/newsShifts/content/',
|
|
49
|
+
routeNewsletterSubmission: '/newsShifts/newslettersubmission/',
|
|
50
|
+
routeNewsletterAnalytics: '/newsShifts/analytics/',
|
|
51
|
+
routeGenerateNewsletter: '/newsletterShifts/generate',
|
|
52
|
+
routeNewsletterTemplate: '/embed/newsletterShifts',
|
|
53
|
+
screenNewsHub: 'NewsHubShifts',
|
|
54
|
+
screenAddNewsletterEntry: 'AddNewsletterEntryShifts',
|
|
55
|
+
screenPublishAvailableNews: 'PublishAvailableNewsShifts',
|
|
56
|
+
screenNewsletterSubmission: 'NewsletterSubmissionShifts',
|
|
57
|
+
screenNewsletterAnalytics: 'NewsletterAnalyticsShifts',
|
|
58
|
+
screenGenerateNewsletter: 'GenerateNewsletterShifts',
|
|
59
|
+
screenNewsletterTemplate: 'NewsletterTemplateShifts',
|
|
60
|
+
svgPathGridIcon: 'M8.625 4.5C7.18359 4.5 6 5.68359 6 7.125C6 8.56641 7.18359 9.75 8.625 9.75C10.0664 9.75 11.25 8.56641 11.25 7.125C11.25 5.68359 10.0664 4.5 8.625 4.5ZM15.375 4.5C13.9336 4.5 12.75 5.68359 12.75 7.125C12.75 8.56641 13.9336 9.75 15.375 9.75C16.8164 9.75 18 8.56641 18 7.125C18 5.68359 16.8164 4.5 15.375 4.5ZM8.625 6C9.25488 6 9.75 6.49512 9.75 7.125C9.75 7.75488 9.25488 8.25 8.625 8.25C7.99512 8.25 7.5 7.75488 7.5 7.125C7.5 6.49512 7.99512 6 8.625 6ZM15.375 6C16.0049 6 16.5 6.49512 16.5 7.125C16.5 7.75488 16.0049 8.25 15.375 8.25C14.7451 8.25 14.25 7.75488 14.25 7.125C14.25 6.49512 14.7451 6 15.375 6ZM5.25 9C3.60059 9 2.25 10.3506 2.25 12C2.25 12.835 2.60742 13.5879 3.16406 14.1328C2.16504 14.8096 1.5 15.9609 1.5 17.25H3C3 15.999 3.99902 15 5.25 15C6.50098 15 7.5 15.999 7.5 17.25H9C9 15.9609 8.33496 14.8096 7.33594 14.1328C7.89258 13.5879 8.25 12.835 8.25 12C8.25 10.3506 6.89941 9 5.25 9ZM9 17.25C8.53125 17.877 8.25 18.665 8.25 19.5H9.75C9.75 18.249 10.749 17.25 12 17.25C13.251 17.25 14.25 18.249 14.25 19.5H15.75C15.75 18.665 15.4688 17.877 15 17.25C14.7451 16.9102 14.4375 16.6201 14.0859 16.3828C14.6426 15.8379 15 15.085 15 14.25C15 12.6006 13.6494 11.25 12 11.25C10.3506 11.25 9 12.6006 9 14.25C9 15.085 9.35742 15.8379 9.91406 16.3828C9.5625 16.6201 9.25488 16.9102 9 17.25ZM15 17.25H16.5C16.5 15.999 17.499 15 18.75 15C20.001 15 21 15.999 21 17.25H22.5C22.5 15.9609 21.835 14.8096 20.8359 14.1328C21.3926 13.5879 21.75 12.835 21.75 12C21.75 10.3506 20.3994 9 18.75 9C17.1006 9 15.75 10.3506 15.75 12C15.75 12.835 16.1074 13.5879 16.6641 14.1328C15.665 14.8096 15 15.9609 15 17.25ZM5.25 10.5C6.08789 10.5 6.75 11.1621 6.75 12C6.75 12.8379 6.08789 13.5 5.25 13.5C4.41211 13.5 3.75 12.8379 3.75 12C3.75 11.1621 4.41211 10.5 5.25 10.5ZM18.75 10.5C19.5879 10.5 20.25 11.1621 20.25 12C20.25 12.8379 19.5879 13.5 18.75 13.5C17.9121 13.5 17.25 12.8379 17.25 12C17.25 11.1621 17.9121 10.5 18.75 10.5ZM12 12.75C12.8379 12.75 13.5 13.4121 13.5 14.25C13.5 15.0879 12.8379 15.75 12 15.75C11.1621 15.75 10.5 15.0879 10.5 14.25C10.5 13.4121 11.1621 12.75 12 12.75Z',
|
|
61
|
+
svgPathGridIconViewBox: '0 0 30 30',
|
|
62
|
+
optionForceNewsAuthorName: 'forceNewsAuthorNameShifts',
|
|
63
|
+
optionNewsComments: 'newsCommentsShifts',
|
|
64
|
+
optionNewsNotifications: 'newsNotificationsShifts',
|
|
65
|
+
optionUseLargeNews: 'useLargeNewsShifts',
|
|
66
|
+
localStorageNewsletterBrandData: "newsletterBrandDataShifts",
|
|
67
|
+
localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdateShifts",
|
|
68
|
+
localStorageNewsletterMakerData: "newsletterMakerDataShifts",
|
|
69
|
+
stringPostfixSubmissionEmail: 'newssubmissionemailShifts',
|
|
70
|
+
menuOrder: 3.4,
|
|
71
|
+
textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV Shifts feed active and current, but don’t flood\nit with so much content that important posts get lost.',
|
|
72
|
+
textFeaturedNews: 'Featured Shifts',
|
|
73
|
+
textIsThisAFeaturedNewsArticle: 'Is this a featured shift?',
|
|
74
|
+
textFeaturedNewsArticlesWillBeHighlighted: 'Featured shifts will be highlighted on the Home page.',
|
|
75
|
+
textThisPostHasPreviouslyBeenPublished: "This shift has previously been published to this village. Are you sure you want to continue?",
|
|
76
|
+
textNewsletterTitlePostfix: 'Shift',
|
|
77
|
+
textCreateNewsletter: 'Create Shift',
|
|
78
|
+
textNoSelectedNews: 'No selected shift yet',
|
|
79
|
+
textNewsletterTitle: 'Shift Title',
|
|
80
|
+
textSelectNews: 'Select Shift',
|
|
81
|
+
textSelectedNews: 'Selected Shift',
|
|
82
|
+
textAddEditNewsPostfix: 'shifts',
|
|
83
83
|
textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
|
|
84
|
-
return "Note: This will not ".concat(changeText, " the
|
|
84
|
+
return "Note: This will not ".concat(changeText, " the shift in the app");
|
|
85
85
|
},
|
|
86
|
-
textAreYouSureYouWantToDelete: "Are you sure you want to delete that
|
|
87
|
-
textThereAreNoNews: 'There are no
|
|
88
|
-
textTitleNews: '
|
|
89
|
-
textSubmitYourNewNewsPostHere: 'Submit your new
|
|
90
|
-
textPrintNewsletter: 'Print
|
|
91
|
-
textBackToNews: 'Back to
|
|
92
|
-
textNewsAnalytics: '
|
|
93
|
-
textNewsSubmission: '
|
|
94
|
-
textNewsPost: '
|
|
95
|
-
textNewsPostTitle: '
|
|
96
|
-
textWhenANewsletterSubmissionIsAdded: 'When a
|
|
97
|
-
textIsThisAFeaturedNewsPost: 'Is this a featured
|
|
98
|
-
textFeaturedNewsPostWillBeHighlighted: 'Featured
|
|
99
|
-
textSubmittedANewsletterPostForReview: 'submitted a
|
|
100
|
-
textApprovedANewsSubmission: 'approved a
|
|
101
|
-
textRejectedANewsSubmission: 'rejected a
|
|
102
|
-
textAddedANewsletterPost: 'added a
|
|
103
|
-
textEditedANewsletterPost: 'edited a
|
|
104
|
-
textDeletedANewsletterPost: 'deleted a
|
|
105
|
-
textSingularName: '
|
|
106
|
-
textThereIsNoNews: 'There is no
|
|
107
|
-
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a
|
|
108
|
-
textAllowNewsComments: 'Allow
|
|
109
|
-
textUsersCanPostCommentsOnNews: 'Users can post comments on
|
|
110
|
-
textAllowNewsNotification: 'Allow
|
|
111
|
-
textWhenSettingUpANewsPost: 'When setting up a
|
|
112
|
-
textCondensedNewsStyle: 'Condensed
|
|
113
|
-
textTheNewsSectionUsesCondensedNewsItems: 'The
|
|
114
|
-
textMenuTitle: '
|
|
115
|
-
textPermissionNewsletterManagement: '
|
|
116
|
-
textPermissionNewsletterSubmission: '
|
|
86
|
+
textAreYouSureYouWantToDelete: "Are you sure you want to delete that shift?",
|
|
87
|
+
textThereAreNoNews: 'There are no shifts',
|
|
88
|
+
textTitleNews: 'Shifts',
|
|
89
|
+
textSubmitYourNewNewsPostHere: 'Submit your new shift here. You will be notified once your post has been approved.',
|
|
90
|
+
textPrintNewsletter: 'Print Shifts',
|
|
91
|
+
textBackToNews: 'Back to Shifts',
|
|
92
|
+
textNewsAnalytics: 'SHIFTS ANALYTICS',
|
|
93
|
+
textNewsSubmission: 'SHIFTS SUBMISSION',
|
|
94
|
+
textNewsPost: 'SHIFT POST',
|
|
95
|
+
textNewsPostTitle: 'Shift title',
|
|
96
|
+
textWhenANewsletterSubmissionIsAdded: 'When a shift submission is added, the entered address will recieve an email notification.',
|
|
97
|
+
textIsThisAFeaturedNewsPost: 'Is this a featured shift?',
|
|
98
|
+
textFeaturedNewsPostWillBeHighlighted: 'Featured shifts will be highlighted on the Home page.',
|
|
99
|
+
textSubmittedANewsletterPostForReview: 'submitted a shift for review:',
|
|
100
|
+
textApprovedANewsSubmission: 'approved a shift submission:',
|
|
101
|
+
textRejectedANewsSubmission: 'rejected a shift submission:',
|
|
102
|
+
textAddedANewsletterPost: 'added a shift:',
|
|
103
|
+
textEditedANewsletterPost: 'edited a shift:',
|
|
104
|
+
textDeletedANewsletterPost: 'deleted a shift:',
|
|
105
|
+
textSingularName: 'Shift',
|
|
106
|
+
textThereIsNoNews: 'There is no Shift',
|
|
107
|
+
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a shift will always display.',
|
|
108
|
+
textAllowNewsComments: 'Allow Shift Comments',
|
|
109
|
+
textUsersCanPostCommentsOnNews: 'Users can post comments on Shifts within the app.',
|
|
110
|
+
textAllowNewsNotification: 'Allow Shifts Notifications',
|
|
111
|
+
textWhenSettingUpANewsPost: 'When setting up a shift, the creator may choose to send a push notification to users of the app.',
|
|
112
|
+
textCondensedNewsStyle: 'Condensed Shifts Style',
|
|
113
|
+
textTheNewsSectionUsesCondensedNewsItems: 'The Shifts section uses condensed Shifts items - smaller images, less information and less scrolling.',
|
|
114
|
+
textMenuTitle: 'Shifts',
|
|
115
|
+
textPermissionNewsletterManagement: 'Shifts Management',
|
|
116
|
+
textPermissionNewsletterSubmission: 'Shifts Submission (Approval Required)'
|
|
117
117
|
};
|
|
118
118
|
var FeatureConfig = {
|
|
119
119
|
key: values.featureKey,
|
|
@@ -944,6 +944,7 @@ var getSiteNameFromRoles = Helper.getSiteNameFromRoles;
|
|
|
944
944
|
var onlyAlphanumeric = Helper.onlyAlphanumeric;
|
|
945
945
|
var setLocalStorage = Helper.setLocalStorage;
|
|
946
946
|
var readJSONFromStorage = Helper.readJSONFromStorage;
|
|
947
|
+
var getSiteSettingFromState = Helper.getSiteSettingFromState;
|
|
947
948
|
|
|
948
949
|
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
949
950
|
|
|
@@ -2279,6 +2280,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2279
2280
|
differentPublish: false,
|
|
2280
2281
|
isTvMode: false,
|
|
2281
2282
|
allowComments: DEFAULT_ALLOW_COMMENTS,
|
|
2283
|
+
commentVisibilityLimited: _this.props.commentVisibilityLimited,
|
|
2282
2284
|
shouldNotify: false,
|
|
2283
2285
|
publishDate: moment().format('YYYY-MM-DD'),
|
|
2284
2286
|
publishDateText: moment().format('DD/MM/YYYY'),
|
|
@@ -2517,6 +2519,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2517
2519
|
isTvMode: Boolean(update.TVMode),
|
|
2518
2520
|
isFeatured: Boolean(update.IsFeatured),
|
|
2519
2521
|
allowComments: Boolean(update.AllowComments),
|
|
2522
|
+
commentVisibilityLimited: Boolean(update.CommentVisibilityLimited),
|
|
2520
2523
|
featuredExpiryDate: moment(update.FeaturedExpiry || undefined).format('YYYY-MM-DD'),
|
|
2521
2524
|
featuredExpiryDateText: moment(update.FeaturedExpiry || undefined).format('DD/MM/YYYY'),
|
|
2522
2525
|
authorDisplay: update.AuthorDisplay,
|
|
@@ -2872,6 +2875,10 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
2872
2875
|
if (!_.isEmpty(result.Images)) {
|
|
2873
2876
|
result.Thumbnail = getThumb300(result.Images[0]);
|
|
2874
2877
|
result.Image = get1400(result.Images[0]);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
if (result.AllowComments) {
|
|
2881
|
+
result.CommentVisibilityLimited = this.state.commentVisibilityLimited;
|
|
2875
2882
|
} // if (baseClient === 'pluss60') {
|
|
2876
2883
|
// const publisherImage = this.refs.publisherImage.getWrappedInstance().getValue();
|
|
2877
2884
|
// if (!_.isEmpty(publisherImage) || !_.isEmpty(this.state.publisherTitleInput)) {
|
|
@@ -3470,7 +3477,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
3470
3477
|
var _this13 = this;
|
|
3471
3478
|
|
|
3472
3479
|
if (_.includes(this.props.auth.hidden, values.optionNewsComments)) return null;
|
|
3473
|
-
return /*#__PURE__*/React.createElement(CheckBox, {
|
|
3480
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
|
|
3474
3481
|
className: "marginTop-16",
|
|
3475
3482
|
label: "Allow comments",
|
|
3476
3483
|
isActive: this.state.allowComments,
|
|
@@ -3479,7 +3486,16 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
|
|
|
3479
3486
|
allowComments: !_this13.state.allowComments
|
|
3480
3487
|
});
|
|
3481
3488
|
}
|
|
3482
|
-
})
|
|
3489
|
+
}), this.state.allowComments && /*#__PURE__*/React.createElement(CheckBox, {
|
|
3490
|
+
className: "marginTop-16",
|
|
3491
|
+
label: "Users can only see their own comments",
|
|
3492
|
+
isActive: this.state.commentVisibilityLimited,
|
|
3493
|
+
onChange: function onChange() {
|
|
3494
|
+
_this13.setState({
|
|
3495
|
+
commentVisibilityLimited: !_this13.state.commentVisibilityLimited
|
|
3496
|
+
});
|
|
3497
|
+
}
|
|
3498
|
+
}));
|
|
3483
3499
|
}
|
|
3484
3500
|
}, {
|
|
3485
3501
|
key: "renderTags",
|
|
@@ -3806,7 +3822,8 @@ var mapStateToProps$4 = function mapStateToProps(state) {
|
|
|
3806
3822
|
return {
|
|
3807
3823
|
auth: auth,
|
|
3808
3824
|
users: allUsers,
|
|
3809
|
-
forceNewsAuthorName:
|
|
3825
|
+
forceNewsAuthorName: getSiteSettingFromState(state, values.optionForceNewsAuthorName),
|
|
3826
|
+
commentVisibilityLimited: getSiteSettingFromState(state, 'CommentVisibilityLimited')
|
|
3810
3827
|
};
|
|
3811
3828
|
};
|
|
3812
3829
|
|