@plusscommunities/pluss-newsletter-web-sharing 1.4.35 → 1.4.37

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
@@ -67,98 +67,104 @@ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray)
67
67
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
68
68
 
69
69
  var values = {
70
- featureKey: 'news',
71
- serviceKey: 'newsletter',
72
- reducerKey: 'news',
73
- analyticsKey: 'news',
74
- actionNewsLoaded: 'NEWS_LOADED',
75
- actionNewsUpdated: 'NEWS_UPDATED',
76
- actionNewsRemoved: 'NEWS_REMOVED',
77
- actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADED',
78
- actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVED',
79
- actionNewsPurge: 'NEWS_PURGE',
80
- actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADING',
81
- actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADING',
82
- permissionNewsletter: 'newsletter',
83
- permissionNewsletterSubmit: 'newsletterSubmit',
84
- activityAddNewsSubmission: 'AddNewsSubmission',
85
- activityApproveNewsSubmission: 'ApproveNewsSubmission',
86
- activityRejectNewsSubmission: 'RejectNewsSubmission',
87
- activityAddNews: 'AddNews',
88
- activityEditNews: 'EditNews',
89
- acitivtyDeleteNews: 'DeleteNews',
90
- routeNewsHub: '/news',
91
- routeAddNewsletterEntry: '/news/article',
92
- routePublishAvailableNews: '/news/content/',
93
- routeNewsletterSubmission: '/news/newslettersubmission/',
94
- routeNewsletterAnalytics: '/news/analytics/',
95
- routeGenerateNewsletter: '/newsletter/generate',
96
- routeNewsletterTemplate: '/embed/newsletter',
97
- screenNewsHub: 'NewsHub',
98
- screenAddNewsletterEntry: 'AddNewsletterEntry',
99
- screenPublishAvailableNews: 'PublishAvailableNews',
100
- screenNewsletterSubmission: 'NewsletterSubmission',
101
- screenNewsletterAnalytics: 'NewsletterAnalytics',
102
- screenGenerateNewsletter: 'GenerateNewsletter',
103
- screenNewsletterTemplate: 'NewsletterTemplate',
104
- svgPathGridIcon: 'M3.28125 1.875C2.50671 1.875 1.875 2.50671 1.875 3.28125V24.8438C1.875 26.6528 3.34717 28.125 5.15625 28.125H25.7812C27.5903 28.125 29.0625 26.6528 29.0625 24.8438V13.125C29.0625 12.0905 28.222 11.25 27.1875 11.25H23.4375V3.28125C23.4375 2.50671 22.8058 1.875 22.0312 1.875H3.28125ZM3.28125 2.8125H22.0312C22.2894 2.8125 22.5 3.02307 22.5 3.28125V24.8438C22.5 25.7794 22.8534 26.6016 23.4412 27.1875H5.15625C3.86353 27.1875 2.8125 26.1365 2.8125 24.8438V23.4375H17.3438C17.6038 23.4375 17.8125 23.2288 17.8125 22.9688C17.8125 22.7087 17.6038 22.5 17.3438 22.5H2.8125V3.28125C2.8125 3.02307 3.02307 2.8125 3.28125 2.8125ZM6.09375 5.625C5.83374 5.625 5.625 5.83374 5.625 6.09375C5.625 6.35376 5.83374 6.5625 6.09375 6.5625H13.5938C13.8538 6.5625 14.0625 6.35376 14.0625 6.09375C14.0625 5.83374 13.8538 5.625 13.5938 5.625H6.09375ZM15.4688 5.625C15.2087 5.625 15 5.83374 15 6.09375C15 6.35376 15.2087 6.5625 15.4688 6.5625H18.2812C18.5413 6.5625 18.75 6.35376 18.75 6.09375C18.75 5.83374 18.5413 5.625 18.2812 5.625H15.4688ZM6.09375 7.5C5.83374 7.5 5.625 7.70874 5.625 7.96875C5.625 8.22876 5.83374 8.4375 6.09375 8.4375H10.7812C11.0413 8.4375 11.25 8.22876 11.25 7.96875C11.25 7.70874 11.0413 7.5 10.7812 7.5H6.09375ZM12.6562 7.5C12.3962 7.5 12.1875 7.70874 12.1875 7.96875C12.1875 8.22876 12.3962 8.4375 12.6562 8.4375H18.2812C18.5413 8.4375 18.75 8.22876 18.75 7.96875C18.75 7.70874 18.5413 7.5 18.2812 7.5H12.6562ZM6.09375 11.25C5.83374 11.25 5.625 11.4587 5.625 11.7188C5.625 11.9788 5.83374 12.1875 6.09375 12.1875H10.7812C11.0413 12.1875 11.25 11.9788 11.25 11.7188C11.25 11.4587 11.0413 11.25 10.7812 11.25H6.09375ZM13.5938 11.25C13.3337 11.25 13.125 11.4587 13.125 11.7188C13.125 11.9788 13.3337 12.1875 13.5938 12.1875H18.2812C18.5413 12.1875 18.75 11.9788 18.75 11.7188C18.75 11.4587 18.5413 11.25 18.2812 11.25H13.5938ZM23.4375 12.1875H25.5743C25.4114 12.464 25.3125 12.7826 25.3125 13.125V21.0938C25.3125 21.3538 25.5212 21.5625 25.7812 21.5625C26.0413 21.5625 26.25 21.3538 26.25 21.0938V13.125C26.25 12.6086 26.6711 12.1875 27.1875 12.1875C27.7039 12.1875 28.125 12.6086 28.125 13.125V24.8438C28.125 26.1365 27.074 27.1875 25.7812 27.1875C24.4226 27.1875 23.4375 26.2024 23.4375 24.8438V12.1875ZM6.09375 13.125C5.83374 13.125 5.625 13.3337 5.625 13.5938C5.625 13.8538 5.83374 14.0625 6.09375 14.0625H10.7812C11.0413 14.0625 11.25 13.8538 11.25 13.5938C11.25 13.3337 11.0413 13.125 10.7812 13.125H6.09375ZM13.5938 13.125C13.3337 13.125 13.125 13.3337 13.125 13.5938C13.125 13.8538 13.3337 14.0625 13.5938 14.0625H18.2812C18.5413 14.0625 18.75 13.8538 18.75 13.5938C18.75 13.3337 18.5413 13.125 18.2812 13.125H13.5938ZM6.09375 15C5.83374 15 5.625 15.2087 5.625 15.4688C5.625 15.7288 5.83374 15.9375 6.09375 15.9375H10.7812C11.0413 15.9375 11.25 15.7288 11.25 15.4688C11.25 15.2087 11.0413 15 10.7812 15H6.09375ZM13.5938 15C13.3337 15 13.125 15.2087 13.125 15.4688C13.125 15.7288 13.3337 15.9375 13.5938 15.9375H18.2812C18.5413 15.9375 18.75 15.7288 18.75 15.4688C18.75 15.2087 18.5413 15 18.2812 15H13.5938ZM6.09375 16.875C5.83374 16.875 5.625 17.0837 5.625 17.3438C5.625 17.6038 5.83374 17.8125 6.09375 17.8125H10.7812C11.0413 17.8125 11.25 17.6038 11.25 17.3438C11.25 17.0837 11.0413 16.875 10.7812 16.875H6.09375ZM13.5938 16.875C13.3337 16.875 13.125 17.0837 13.125 17.3438C13.125 17.6038 13.3337 17.8125 13.5938 17.8125H18.2812C18.5413 17.8125 18.75 17.6038 18.75 17.3438C18.75 17.0837 18.5413 16.875 18.2812 16.875H13.5938ZM6.09375 18.75C5.83374 18.75 5.625 18.9587 5.625 19.2188C5.625 19.4788 5.83374 19.6875 6.09375 19.6875H10.7812C11.0413 19.6875 11.25 19.4788 11.25 19.2188C11.25 18.9587 11.0413 18.75 10.7812 18.75H6.09375ZM19.2188 22.5C18.9587 22.5 18.75 22.7087 18.75 22.9688C18.75 23.2288 18.9587 23.4375 19.2188 23.4375H21.0938C21.3538 23.4375 21.5625 23.2288 21.5625 22.9688C21.5625 22.7087 21.3538 22.5 21.0938 22.5H19.2188ZM4.6875 24.375C4.42749 24.375 4.21875 24.5837 4.21875 24.8438V25.7812C4.21875 26.0413 4.42749 26.25 4.6875 26.25C4.94751 26.25 5.15625 26.0413 5.15625 25.7812V24.8438C5.15625 24.5837 4.94751 24.375 4.6875 24.375ZM7.03125 24.375C6.77124 24.375 6.5625 24.5837 6.5625 24.8438V25.7812C6.5625 26.0413 6.77124 26.25 7.03125 26.25C7.29126 26.25 7.5 26.0413 7.5 25.7812V24.8438C7.5 24.5837 7.29126 24.375 7.03125 24.375ZM9.375 24.375C9.11499 24.375 8.90625 24.5837 8.90625 24.8438V25.7812C8.90625 26.0413 9.11499 26.25 9.375 26.25C9.63501 26.25 9.84375 26.0413 9.84375 25.7812V24.8438C9.84375 24.5837 9.63501 24.375 9.375 24.375ZM11.7188 24.375C11.4587 24.375 11.25 24.5837 11.25 24.8438V25.7812C11.25 26.0413 11.4587 26.25 11.7188 26.25C11.9788 26.25 12.1875 26.0413 12.1875 25.7812V24.8438C12.1875 24.5837 11.9788 24.375 11.7188 24.375ZM14.0625 24.375C13.8025 24.375 13.5938 24.5837 13.5938 24.8438V25.7812C13.5938 26.0413 13.8025 26.25 14.0625 26.25C14.3225 26.25 14.5312 26.0413 14.5312 25.7812V24.8438C14.5312 24.5837 14.3225 24.375 14.0625 24.375ZM16.4062 24.375C16.1462 24.375 15.9375 24.5837 15.9375 24.8438V25.7812C15.9375 26.0413 16.1462 26.25 16.4062 26.25C16.6663 26.25 16.875 26.0413 16.875 25.7812V24.8438C16.875 24.5837 16.6663 24.375 16.4062 24.375ZM18.75 24.375C18.49 24.375 18.2812 24.5837 18.2812 24.8438V25.7812C18.2812 26.0413 18.49 26.25 18.75 26.25C19.01 26.25 19.2188 26.0413 19.2188 25.7812V24.8438C19.2188 24.5837 19.01 24.375 18.75 24.375ZM21.0938 24.375C20.8337 24.375 20.625 24.5837 20.625 24.8438V25.7812C20.625 26.0413 20.8337 26.25 21.0938 26.25C21.3538 26.25 21.5625 26.0413 21.5625 25.7812V24.8438C21.5625 24.5837 21.3538 24.375 21.0938 24.375Z',
105
- svgPathGridIconViewBox: '0 0 30 30',
106
- optionHideTimestamp: 'newsHideTimestamp',
107
- optionForceNewsAuthorName: 'forceNewsAuthorName',
108
- optionNewsComments: 'newsComments',
109
- optionNewsNotifications: 'newsNotifications',
110
- optionUseLargeNews: 'useLargeNews',
111
- localStorageNewsletterBrandData: "newsletterBrandData",
112
- localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdate",
113
- localStorageNewsletterMakerData: "newsletterMakerData",
114
- stringPostfixSubmissionEmail: 'newssubmissionemail',
115
- menuOrder: 3,
116
- textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV News feed active and current, but don’t flood\nit with so much content that important posts get lost.',
117
- textFeaturedNews: 'Featured News',
118
- textIsThisAFeaturedNewsArticle: 'Is this a featured news article?',
119
- textFeaturedNewsArticlesWillBeHighlighted: 'Featured news articles will be highlighted on the Home page.',
120
- textThisPostHasPreviouslyBeenPublished: "This post has previously been published to this village. Are you sure you want to continue?",
121
- textNewsletterTitlePostfix: 'Newsletter',
122
- textCreateNewsletter: 'Create Newsletter',
123
- textNoSelectedNews: 'No selected news yet',
124
- textNewsletterTitle: 'Newsletter Title',
125
- textSelectNews: 'Select News',
126
- textSelectedNews: 'Selected News',
127
- textAddEditNewsPostfix: 'news',
70
+ featureKey: 'sharing',
71
+ serviceKey: 'newsletterSharing',
72
+ reducerKey: 'newsSharing',
73
+ analyticsKey: 'newsSharing',
74
+ actionNewsLoaded: 'NEWS_LOADEDSharing',
75
+ actionNewsUpdated: 'NEWS_UPDATEDSharing',
76
+ actionNewsRemoved: 'NEWS_REMOVEDSharing',
77
+ actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDSharing',
78
+ actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDSharing',
79
+ actionNewsPurge: 'NEWS_PURGESharing',
80
+ actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGSharing',
81
+ actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGSharing',
82
+ permissionNewsletter: 'newsletterSharing',
83
+ permissionNewsletterSubmit: 'newsletterSubmitSharing',
84
+ activityAddNewsSubmission: 'AddNewsSubmissionSharing',
85
+ activityApproveNewsSubmission: 'ApproveNewsSubmissionSharing',
86
+ activityRejectNewsSubmission: 'RejectNewsSubmissionSharing',
87
+ activityAddNews: 'AddNewsSharing',
88
+ activityEditNews: 'EditNewsSharing',
89
+ acitivtyDeleteNews: 'DeleteNewsSharing',
90
+ routeNewsHub: '/newsSharing',
91
+ routeAddNewsletterEntry: '/newsSharing/article',
92
+ routePublishAvailableNews: '/newsSharing/content/',
93
+ routeNewsletterSubmission: '/newsSharing/newslettersubmission/',
94
+ routeNewsletterAnalytics: '/newsSharing/analytics/',
95
+ routeGenerateNewsletter: '/newsletterSharing/generate',
96
+ routeNewsletterTemplate: '/embed/newsletterSharing',
97
+ screenNewsHub: 'NewsHubSharing',
98
+ screenAddNewsletterEntry: 'AddNewsletterEntrySharing',
99
+ screenPublishAvailableNews: 'PublishAvailableNewsSharing',
100
+ screenNewsletterSubmission: 'NewsletterSubmissionSharing',
101
+ screenNewsletterAnalytics: 'NewsletterAnalyticsSharing',
102
+ screenGenerateNewsletter: 'GenerateNewsletterSharing',
103
+ screenNewsletterTemplate: 'NewsletterTemplateSharing',
104
+ svgPathGridIcon: 'M6.9375 5.25C5.59802 5.25 4.5 6.34802 4.5 7.6875V13.6875V15.9507C4.5 16.6825 5.39622 17.1394 5.98828 16.7095C5.98853 16.7095 5.98877 16.7095 5.98901 16.7095L7.60913 15.531C7.91811 16.5231 8.84788 17.25 9.9375 17.25H14.6294L18.011 19.7095C18.0112 19.7095 18.0115 19.7095 18.0117 19.7095C18.6038 20.1394 19.5 19.6825 19.5 18.9507V16.6875V10.6875C19.5 9.34802 18.402 8.25 17.0625 8.25H16.5V7.6875C16.5 6.34802 15.402 5.25 14.0625 5.25H6.9375ZM6.9375 6.375H14.0625C14.7938 6.375 15.375 6.95623 15.375 7.6875V11.8125C15.375 12.5438 14.7938 13.125 14.0625 13.125H9.1875C9.06854 13.125 8.95264 13.1627 8.85645 13.2327L5.625 15.583V13.6875V7.6875C5.625 6.95623 6.20623 6.375 6.9375 6.375ZM16.5 9.375H17.0625C17.7938 9.375 18.375 9.95623 18.375 10.6875V16.6875V18.583L15.1436 16.2327C15.0474 16.1627 14.9315 16.125 14.8125 16.125H9.9375C9.20623 16.125 8.625 15.5438 8.625 14.8125V14.792L9.37061 14.25H14.0625C15.402 14.25 16.5 13.152 16.5 11.8125V9.375Z',
105
+ svgPathGridIconViewBox: '0 0 24 24',
106
+ optionHideTimestamp: 'newsHideTimestampSharing',
107
+ optionForceNewsAuthorName: 'forceNewsAuthorNameSharing',
108
+ optionNewsComments: 'newsCommentsSharing',
109
+ optionNewsNotifications: 'newsNotificationsSharing',
110
+ optionUseLargeNews: 'useLargeNewsSharing',
111
+ localStorageNewsletterBrandData: "newsletterBrandDataSharing",
112
+ localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdateSharing",
113
+ localStorageNewsletterMakerData: "newsletterMakerDataSharing",
114
+ stringPostfixSubmissionEmail: 'newssubmissionemailSharing',
115
+ menuOrder: 3.5,
116
+ textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV Sharing feed active and current, but don’t flood\nit with so much content that important posts get lost.',
117
+ textFeaturedNews: 'Featured Sharing',
118
+ textIsThisAFeaturedNewsArticle: 'Is this a featured sharing?',
119
+ textFeaturedNewsArticlesWillBeHighlighted: 'Featured sharings will be highlighted on the Home page.',
120
+ textThisPostHasPreviouslyBeenPublished: "This sharing has previously been published. Are you sure you want to continue?",
121
+ textNewsletterTitlePostfix: 'Sharing',
122
+ textCreateNewsletter: 'Create Sharing',
123
+ textNoSelectedNews: 'No selected sharing yet',
124
+ textNewsletterTitle: 'Sharing Title',
125
+ textSelectNews: 'Select Sharing',
126
+ textSelectedNews: 'Selected Sharing',
127
+ textAddEditNewsPostfix: 'sharing',
128
128
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
129
- return "Note: This will not ".concat(changeText, " the news in the app");
129
+ return "Note: This will not ".concat(changeText, " the sharing in the app");
130
130
  },
131
- textAreYouSureYouWantToDelete: "Are you sure you want to delete that newsletter?",
132
- textThereAreNoNews: 'There are no news',
133
- textTitleNews: 'News',
134
- textSubmitYourNewNewsPostHere: 'Submit your new news post here. You will be notified once your post has been approved.',
135
- textPrintNewsletter: 'Print Newsletter',
136
- textBackToNews: 'Back to News',
137
- textNewsAnalytics: 'NEWS ANALYTICS',
138
- textNewsSubmission: 'NEWS SUBMISSION',
139
- textNewsPost: 'NEWS POST',
140
- textNewsPostTitle: 'News post title',
141
- textWhenANewsletterSubmissionIsAdded: 'When a newsletter submission is added, the entered address will recieve an email notification.',
142
- textIsThisAFeaturedNewsPost: 'Is this a featured news post?',
143
- textFeaturedNewsPostWillBeHighlighted: 'Featured news posts will be highlighted on the Home page.',
144
- textSubmittedANewsletterPostForReview: 'submitted a newsletter post for review:',
145
- textApprovedANewsSubmission: 'approved a news submission:',
146
- textRejectedANewsSubmission: 'rejected a news submission:',
147
- textAddedANewsletterPost: 'added a newsletter post:',
148
- textEditedANewsletterPost: 'edited a newsletter post:',
149
- textDeletedANewsletterPost: 'deleted a newsletter post:',
150
- textSingularName: 'News',
151
- textThereIsNoNews: 'There is no News',
152
- textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a news post will always display.',
153
- textAllowNewsComments: 'Allow News Comments',
154
- textUsersCanPostCommentsOnNews: 'Users can post comments on News within the app.',
155
- textAllowNewsNotification: 'Allow News Notifications',
156
- textWhenSettingUpANewsPost: 'When setting up a news post, the creator may choose to send a push notification to users of the app.',
157
- textCondensedNewsStyle: 'Condensed News Style',
158
- textTheNewsSectionUsesCondensedNewsItems: 'The News section uses condensed News items - smaller images, less information and less scrolling.',
159
- textMenuTitle: 'News',
160
- textPermissionNewsletterManagement: 'Newsletter Management',
161
- textPermissionNewsletterSubmission: 'Newsletter Submission (Approval Required)'
131
+ textAreYouSureYouWantToDelete: "Are you sure you want to delete that sharing?",
132
+ textThereAreNoNews: 'There are no sharings',
133
+ textTitleNews: 'Sharing',
134
+ textSubmitYourNewNewsPostHere: 'Submit your new sharing here. You will be notified once your sharing has been approved.',
135
+ textPrintNewsletter: 'Print Sharing',
136
+ textBackToNews: 'Back to Sharing',
137
+ textNewsAnalytics: 'SHARING ANALYTICS',
138
+ textNewsSubmission: 'SHARING SUBMISSION',
139
+ textNewsPost: 'SHARING POST',
140
+ textNewsPostTitle: 'Sharing title',
141
+ textWhenANewsletterSubmissionIsAdded: 'When a sharing submission is added, the entered address will recieve an email notification.',
142
+ textIsThisAFeaturedNewsPost: 'Is this a featured sharing?',
143
+ textFeaturedNewsPostWillBeHighlighted: 'Featured sharing will be highlighted on the Home page.',
144
+ textSubmittedANewsletterPostForReview: 'submitted a sharing for review:',
145
+ textApprovedANewsSubmission: 'approved a sharing submission:',
146
+ textRejectedANewsSubmission: 'rejected a sharing submission:',
147
+ textAddedANewsletterPost: 'added a sharing:',
148
+ textEditedANewsletterPost: 'edited a sharing:',
149
+ textDeletedANewsletterPost: 'deleted a sharing:',
150
+ textSingularName: 'Sharing',
151
+ textThereIsNoNews: 'There is no Sharing',
152
+ textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a sharing will always display.',
153
+ textAllowNewsComments: 'Allow Sharing Comments',
154
+ textUsersCanPostCommentsOnNews: 'Users can post comments on Sharing within the app.',
155
+ textAllowNewsNotification: 'Allow Sharing Notifications',
156
+ textWhenSettingUpANewsPost: 'When setting up a sharing, the creator may choose to send a push notification to users of the app.',
157
+ textCondensedNewsStyle: 'Condensed Sharing Style',
158
+ textTheNewsSectionUsesCondensedNewsItems: 'The Sharing section uses condensed Sharing items - smaller images, less information and less scrolling.',
159
+ textMenuTitle: 'Sharing',
160
+ textPermissionNewsletterManagement: 'Sharing Management',
161
+ textPermissionNewsletterSubmission: 'Sharing Submission (Approval Required)',
162
+ // Comment subscription notification preference
163
+ notificationPreference: {
164
+ key: 'newsSharingComments',
165
+ label: 'Sharing comments',
166
+ permission: 'newsletterSharing'
167
+ }
162
168
  };
163
169
 
164
170
  // import * as PlussCore from '../../pluss-core/src';
@@ -322,7 +328,8 @@ var FeatureConfig = {
322
328
  init: function init(environment) {
323
329
  FeatureConfig.env = environment;
324
330
  PlussCore__namespace.Config.init(environment);
325
- }
331
+ },
332
+ notificationPreference: values.notificationPreference
326
333
  };
327
334
 
328
335
  var Components$2 = PlussCore__namespace.Components;
package/dist/index.esm.js CHANGED
@@ -23,98 +23,104 @@ import _regeneratorRuntime from '@babel/runtime/regenerator';
23
23
  import { faNewspaper, faEye, faUser, faComment, faFaceSmile } from '@fortawesome/free-solid-svg-icons';
24
24
 
25
25
  var values = {
26
- featureKey: 'news',
27
- serviceKey: 'newsletter',
28
- reducerKey: 'news',
29
- analyticsKey: 'news',
30
- actionNewsLoaded: 'NEWS_LOADED',
31
- actionNewsUpdated: 'NEWS_UPDATED',
32
- actionNewsRemoved: 'NEWS_REMOVED',
33
- actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADED',
34
- actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVED',
35
- actionNewsPurge: 'NEWS_PURGE',
36
- actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADING',
37
- actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADING',
38
- permissionNewsletter: 'newsletter',
39
- permissionNewsletterSubmit: 'newsletterSubmit',
40
- activityAddNewsSubmission: 'AddNewsSubmission',
41
- activityApproveNewsSubmission: 'ApproveNewsSubmission',
42
- activityRejectNewsSubmission: 'RejectNewsSubmission',
43
- activityAddNews: 'AddNews',
44
- activityEditNews: 'EditNews',
45
- acitivtyDeleteNews: 'DeleteNews',
46
- routeNewsHub: '/news',
47
- routeAddNewsletterEntry: '/news/article',
48
- routePublishAvailableNews: '/news/content/',
49
- routeNewsletterSubmission: '/news/newslettersubmission/',
50
- routeNewsletterAnalytics: '/news/analytics/',
51
- routeGenerateNewsletter: '/newsletter/generate',
52
- routeNewsletterTemplate: '/embed/newsletter',
53
- screenNewsHub: 'NewsHub',
54
- screenAddNewsletterEntry: 'AddNewsletterEntry',
55
- screenPublishAvailableNews: 'PublishAvailableNews',
56
- screenNewsletterSubmission: 'NewsletterSubmission',
57
- screenNewsletterAnalytics: 'NewsletterAnalytics',
58
- screenGenerateNewsletter: 'GenerateNewsletter',
59
- screenNewsletterTemplate: 'NewsletterTemplate',
60
- svgPathGridIcon: 'M3.28125 1.875C2.50671 1.875 1.875 2.50671 1.875 3.28125V24.8438C1.875 26.6528 3.34717 28.125 5.15625 28.125H25.7812C27.5903 28.125 29.0625 26.6528 29.0625 24.8438V13.125C29.0625 12.0905 28.222 11.25 27.1875 11.25H23.4375V3.28125C23.4375 2.50671 22.8058 1.875 22.0312 1.875H3.28125ZM3.28125 2.8125H22.0312C22.2894 2.8125 22.5 3.02307 22.5 3.28125V24.8438C22.5 25.7794 22.8534 26.6016 23.4412 27.1875H5.15625C3.86353 27.1875 2.8125 26.1365 2.8125 24.8438V23.4375H17.3438C17.6038 23.4375 17.8125 23.2288 17.8125 22.9688C17.8125 22.7087 17.6038 22.5 17.3438 22.5H2.8125V3.28125C2.8125 3.02307 3.02307 2.8125 3.28125 2.8125ZM6.09375 5.625C5.83374 5.625 5.625 5.83374 5.625 6.09375C5.625 6.35376 5.83374 6.5625 6.09375 6.5625H13.5938C13.8538 6.5625 14.0625 6.35376 14.0625 6.09375C14.0625 5.83374 13.8538 5.625 13.5938 5.625H6.09375ZM15.4688 5.625C15.2087 5.625 15 5.83374 15 6.09375C15 6.35376 15.2087 6.5625 15.4688 6.5625H18.2812C18.5413 6.5625 18.75 6.35376 18.75 6.09375C18.75 5.83374 18.5413 5.625 18.2812 5.625H15.4688ZM6.09375 7.5C5.83374 7.5 5.625 7.70874 5.625 7.96875C5.625 8.22876 5.83374 8.4375 6.09375 8.4375H10.7812C11.0413 8.4375 11.25 8.22876 11.25 7.96875C11.25 7.70874 11.0413 7.5 10.7812 7.5H6.09375ZM12.6562 7.5C12.3962 7.5 12.1875 7.70874 12.1875 7.96875C12.1875 8.22876 12.3962 8.4375 12.6562 8.4375H18.2812C18.5413 8.4375 18.75 8.22876 18.75 7.96875C18.75 7.70874 18.5413 7.5 18.2812 7.5H12.6562ZM6.09375 11.25C5.83374 11.25 5.625 11.4587 5.625 11.7188C5.625 11.9788 5.83374 12.1875 6.09375 12.1875H10.7812C11.0413 12.1875 11.25 11.9788 11.25 11.7188C11.25 11.4587 11.0413 11.25 10.7812 11.25H6.09375ZM13.5938 11.25C13.3337 11.25 13.125 11.4587 13.125 11.7188C13.125 11.9788 13.3337 12.1875 13.5938 12.1875H18.2812C18.5413 12.1875 18.75 11.9788 18.75 11.7188C18.75 11.4587 18.5413 11.25 18.2812 11.25H13.5938ZM23.4375 12.1875H25.5743C25.4114 12.464 25.3125 12.7826 25.3125 13.125V21.0938C25.3125 21.3538 25.5212 21.5625 25.7812 21.5625C26.0413 21.5625 26.25 21.3538 26.25 21.0938V13.125C26.25 12.6086 26.6711 12.1875 27.1875 12.1875C27.7039 12.1875 28.125 12.6086 28.125 13.125V24.8438C28.125 26.1365 27.074 27.1875 25.7812 27.1875C24.4226 27.1875 23.4375 26.2024 23.4375 24.8438V12.1875ZM6.09375 13.125C5.83374 13.125 5.625 13.3337 5.625 13.5938C5.625 13.8538 5.83374 14.0625 6.09375 14.0625H10.7812C11.0413 14.0625 11.25 13.8538 11.25 13.5938C11.25 13.3337 11.0413 13.125 10.7812 13.125H6.09375ZM13.5938 13.125C13.3337 13.125 13.125 13.3337 13.125 13.5938C13.125 13.8538 13.3337 14.0625 13.5938 14.0625H18.2812C18.5413 14.0625 18.75 13.8538 18.75 13.5938C18.75 13.3337 18.5413 13.125 18.2812 13.125H13.5938ZM6.09375 15C5.83374 15 5.625 15.2087 5.625 15.4688C5.625 15.7288 5.83374 15.9375 6.09375 15.9375H10.7812C11.0413 15.9375 11.25 15.7288 11.25 15.4688C11.25 15.2087 11.0413 15 10.7812 15H6.09375ZM13.5938 15C13.3337 15 13.125 15.2087 13.125 15.4688C13.125 15.7288 13.3337 15.9375 13.5938 15.9375H18.2812C18.5413 15.9375 18.75 15.7288 18.75 15.4688C18.75 15.2087 18.5413 15 18.2812 15H13.5938ZM6.09375 16.875C5.83374 16.875 5.625 17.0837 5.625 17.3438C5.625 17.6038 5.83374 17.8125 6.09375 17.8125H10.7812C11.0413 17.8125 11.25 17.6038 11.25 17.3438C11.25 17.0837 11.0413 16.875 10.7812 16.875H6.09375ZM13.5938 16.875C13.3337 16.875 13.125 17.0837 13.125 17.3438C13.125 17.6038 13.3337 17.8125 13.5938 17.8125H18.2812C18.5413 17.8125 18.75 17.6038 18.75 17.3438C18.75 17.0837 18.5413 16.875 18.2812 16.875H13.5938ZM6.09375 18.75C5.83374 18.75 5.625 18.9587 5.625 19.2188C5.625 19.4788 5.83374 19.6875 6.09375 19.6875H10.7812C11.0413 19.6875 11.25 19.4788 11.25 19.2188C11.25 18.9587 11.0413 18.75 10.7812 18.75H6.09375ZM19.2188 22.5C18.9587 22.5 18.75 22.7087 18.75 22.9688C18.75 23.2288 18.9587 23.4375 19.2188 23.4375H21.0938C21.3538 23.4375 21.5625 23.2288 21.5625 22.9688C21.5625 22.7087 21.3538 22.5 21.0938 22.5H19.2188ZM4.6875 24.375C4.42749 24.375 4.21875 24.5837 4.21875 24.8438V25.7812C4.21875 26.0413 4.42749 26.25 4.6875 26.25C4.94751 26.25 5.15625 26.0413 5.15625 25.7812V24.8438C5.15625 24.5837 4.94751 24.375 4.6875 24.375ZM7.03125 24.375C6.77124 24.375 6.5625 24.5837 6.5625 24.8438V25.7812C6.5625 26.0413 6.77124 26.25 7.03125 26.25C7.29126 26.25 7.5 26.0413 7.5 25.7812V24.8438C7.5 24.5837 7.29126 24.375 7.03125 24.375ZM9.375 24.375C9.11499 24.375 8.90625 24.5837 8.90625 24.8438V25.7812C8.90625 26.0413 9.11499 26.25 9.375 26.25C9.63501 26.25 9.84375 26.0413 9.84375 25.7812V24.8438C9.84375 24.5837 9.63501 24.375 9.375 24.375ZM11.7188 24.375C11.4587 24.375 11.25 24.5837 11.25 24.8438V25.7812C11.25 26.0413 11.4587 26.25 11.7188 26.25C11.9788 26.25 12.1875 26.0413 12.1875 25.7812V24.8438C12.1875 24.5837 11.9788 24.375 11.7188 24.375ZM14.0625 24.375C13.8025 24.375 13.5938 24.5837 13.5938 24.8438V25.7812C13.5938 26.0413 13.8025 26.25 14.0625 26.25C14.3225 26.25 14.5312 26.0413 14.5312 25.7812V24.8438C14.5312 24.5837 14.3225 24.375 14.0625 24.375ZM16.4062 24.375C16.1462 24.375 15.9375 24.5837 15.9375 24.8438V25.7812C15.9375 26.0413 16.1462 26.25 16.4062 26.25C16.6663 26.25 16.875 26.0413 16.875 25.7812V24.8438C16.875 24.5837 16.6663 24.375 16.4062 24.375ZM18.75 24.375C18.49 24.375 18.2812 24.5837 18.2812 24.8438V25.7812C18.2812 26.0413 18.49 26.25 18.75 26.25C19.01 26.25 19.2188 26.0413 19.2188 25.7812V24.8438C19.2188 24.5837 19.01 24.375 18.75 24.375ZM21.0938 24.375C20.8337 24.375 20.625 24.5837 20.625 24.8438V25.7812C20.625 26.0413 20.8337 26.25 21.0938 26.25C21.3538 26.25 21.5625 26.0413 21.5625 25.7812V24.8438C21.5625 24.5837 21.3538 24.375 21.0938 24.375Z',
61
- svgPathGridIconViewBox: '0 0 30 30',
62
- optionHideTimestamp: 'newsHideTimestamp',
63
- optionForceNewsAuthorName: 'forceNewsAuthorName',
64
- optionNewsComments: 'newsComments',
65
- optionNewsNotifications: 'newsNotifications',
66
- optionUseLargeNews: 'useLargeNews',
67
- localStorageNewsletterBrandData: "newsletterBrandData",
68
- localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdate",
69
- localStorageNewsletterMakerData: "newsletterMakerData",
70
- stringPostfixSubmissionEmail: 'newssubmissionemail',
71
- menuOrder: 3,
72
- textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV News feed active and current, but don’t flood\nit with so much content that important posts get lost.',
73
- textFeaturedNews: 'Featured News',
74
- textIsThisAFeaturedNewsArticle: 'Is this a featured news article?',
75
- textFeaturedNewsArticlesWillBeHighlighted: 'Featured news articles will be highlighted on the Home page.',
76
- textThisPostHasPreviouslyBeenPublished: "This post has previously been published to this village. Are you sure you want to continue?",
77
- textNewsletterTitlePostfix: 'Newsletter',
78
- textCreateNewsletter: 'Create Newsletter',
79
- textNoSelectedNews: 'No selected news yet',
80
- textNewsletterTitle: 'Newsletter Title',
81
- textSelectNews: 'Select News',
82
- textSelectedNews: 'Selected News',
83
- textAddEditNewsPostfix: 'news',
26
+ featureKey: 'sharing',
27
+ serviceKey: 'newsletterSharing',
28
+ reducerKey: 'newsSharing',
29
+ analyticsKey: 'newsSharing',
30
+ actionNewsLoaded: 'NEWS_LOADEDSharing',
31
+ actionNewsUpdated: 'NEWS_UPDATEDSharing',
32
+ actionNewsRemoved: 'NEWS_REMOVEDSharing',
33
+ actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDSharing',
34
+ actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDSharing',
35
+ actionNewsPurge: 'NEWS_PURGESharing',
36
+ actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGSharing',
37
+ actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGSharing',
38
+ permissionNewsletter: 'newsletterSharing',
39
+ permissionNewsletterSubmit: 'newsletterSubmitSharing',
40
+ activityAddNewsSubmission: 'AddNewsSubmissionSharing',
41
+ activityApproveNewsSubmission: 'ApproveNewsSubmissionSharing',
42
+ activityRejectNewsSubmission: 'RejectNewsSubmissionSharing',
43
+ activityAddNews: 'AddNewsSharing',
44
+ activityEditNews: 'EditNewsSharing',
45
+ acitivtyDeleteNews: 'DeleteNewsSharing',
46
+ routeNewsHub: '/newsSharing',
47
+ routeAddNewsletterEntry: '/newsSharing/article',
48
+ routePublishAvailableNews: '/newsSharing/content/',
49
+ routeNewsletterSubmission: '/newsSharing/newslettersubmission/',
50
+ routeNewsletterAnalytics: '/newsSharing/analytics/',
51
+ routeGenerateNewsletter: '/newsletterSharing/generate',
52
+ routeNewsletterTemplate: '/embed/newsletterSharing',
53
+ screenNewsHub: 'NewsHubSharing',
54
+ screenAddNewsletterEntry: 'AddNewsletterEntrySharing',
55
+ screenPublishAvailableNews: 'PublishAvailableNewsSharing',
56
+ screenNewsletterSubmission: 'NewsletterSubmissionSharing',
57
+ screenNewsletterAnalytics: 'NewsletterAnalyticsSharing',
58
+ screenGenerateNewsletter: 'GenerateNewsletterSharing',
59
+ screenNewsletterTemplate: 'NewsletterTemplateSharing',
60
+ svgPathGridIcon: 'M6.9375 5.25C5.59802 5.25 4.5 6.34802 4.5 7.6875V13.6875V15.9507C4.5 16.6825 5.39622 17.1394 5.98828 16.7095C5.98853 16.7095 5.98877 16.7095 5.98901 16.7095L7.60913 15.531C7.91811 16.5231 8.84788 17.25 9.9375 17.25H14.6294L18.011 19.7095C18.0112 19.7095 18.0115 19.7095 18.0117 19.7095C18.6038 20.1394 19.5 19.6825 19.5 18.9507V16.6875V10.6875C19.5 9.34802 18.402 8.25 17.0625 8.25H16.5V7.6875C16.5 6.34802 15.402 5.25 14.0625 5.25H6.9375ZM6.9375 6.375H14.0625C14.7938 6.375 15.375 6.95623 15.375 7.6875V11.8125C15.375 12.5438 14.7938 13.125 14.0625 13.125H9.1875C9.06854 13.125 8.95264 13.1627 8.85645 13.2327L5.625 15.583V13.6875V7.6875C5.625 6.95623 6.20623 6.375 6.9375 6.375ZM16.5 9.375H17.0625C17.7938 9.375 18.375 9.95623 18.375 10.6875V16.6875V18.583L15.1436 16.2327C15.0474 16.1627 14.9315 16.125 14.8125 16.125H9.9375C9.20623 16.125 8.625 15.5438 8.625 14.8125V14.792L9.37061 14.25H14.0625C15.402 14.25 16.5 13.152 16.5 11.8125V9.375Z',
61
+ svgPathGridIconViewBox: '0 0 24 24',
62
+ optionHideTimestamp: 'newsHideTimestampSharing',
63
+ optionForceNewsAuthorName: 'forceNewsAuthorNameSharing',
64
+ optionNewsComments: 'newsCommentsSharing',
65
+ optionNewsNotifications: 'newsNotificationsSharing',
66
+ optionUseLargeNews: 'useLargeNewsSharing',
67
+ localStorageNewsletterBrandData: "newsletterBrandDataSharing",
68
+ localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdateSharing",
69
+ localStorageNewsletterMakerData: "newsletterMakerDataSharing",
70
+ stringPostfixSubmissionEmail: 'newssubmissionemailSharing',
71
+ menuOrder: 3.5,
72
+ textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV Sharing feed active and current, but don’t flood\nit with so much content that important posts get lost.',
73
+ textFeaturedNews: 'Featured Sharing',
74
+ textIsThisAFeaturedNewsArticle: 'Is this a featured sharing?',
75
+ textFeaturedNewsArticlesWillBeHighlighted: 'Featured sharings will be highlighted on the Home page.',
76
+ textThisPostHasPreviouslyBeenPublished: "This sharing has previously been published. Are you sure you want to continue?",
77
+ textNewsletterTitlePostfix: 'Sharing',
78
+ textCreateNewsletter: 'Create Sharing',
79
+ textNoSelectedNews: 'No selected sharing yet',
80
+ textNewsletterTitle: 'Sharing Title',
81
+ textSelectNews: 'Select Sharing',
82
+ textSelectedNews: 'Selected Sharing',
83
+ textAddEditNewsPostfix: 'sharing',
84
84
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
85
- return "Note: This will not ".concat(changeText, " the news in the app");
85
+ return "Note: This will not ".concat(changeText, " the sharing in the app");
86
86
  },
87
- textAreYouSureYouWantToDelete: "Are you sure you want to delete that newsletter?",
88
- textThereAreNoNews: 'There are no news',
89
- textTitleNews: 'News',
90
- textSubmitYourNewNewsPostHere: 'Submit your new news post here. You will be notified once your post has been approved.',
91
- textPrintNewsletter: 'Print Newsletter',
92
- textBackToNews: 'Back to News',
93
- textNewsAnalytics: 'NEWS ANALYTICS',
94
- textNewsSubmission: 'NEWS SUBMISSION',
95
- textNewsPost: 'NEWS POST',
96
- textNewsPostTitle: 'News post title',
97
- textWhenANewsletterSubmissionIsAdded: 'When a newsletter submission is added, the entered address will recieve an email notification.',
98
- textIsThisAFeaturedNewsPost: 'Is this a featured news post?',
99
- textFeaturedNewsPostWillBeHighlighted: 'Featured news posts will be highlighted on the Home page.',
100
- textSubmittedANewsletterPostForReview: 'submitted a newsletter post for review:',
101
- textApprovedANewsSubmission: 'approved a news submission:',
102
- textRejectedANewsSubmission: 'rejected a news submission:',
103
- textAddedANewsletterPost: 'added a newsletter post:',
104
- textEditedANewsletterPost: 'edited a newsletter post:',
105
- textDeletedANewsletterPost: 'deleted a newsletter post:',
106
- textSingularName: 'News',
107
- textThereIsNoNews: 'There is no News',
108
- textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a news post will always display.',
109
- textAllowNewsComments: 'Allow News Comments',
110
- textUsersCanPostCommentsOnNews: 'Users can post comments on News within the app.',
111
- textAllowNewsNotification: 'Allow News Notifications',
112
- textWhenSettingUpANewsPost: 'When setting up a news post, the creator may choose to send a push notification to users of the app.',
113
- textCondensedNewsStyle: 'Condensed News Style',
114
- textTheNewsSectionUsesCondensedNewsItems: 'The News section uses condensed News items - smaller images, less information and less scrolling.',
115
- textMenuTitle: 'News',
116
- textPermissionNewsletterManagement: 'Newsletter Management',
117
- textPermissionNewsletterSubmission: 'Newsletter Submission (Approval Required)'
87
+ textAreYouSureYouWantToDelete: "Are you sure you want to delete that sharing?",
88
+ textThereAreNoNews: 'There are no sharings',
89
+ textTitleNews: 'Sharing',
90
+ textSubmitYourNewNewsPostHere: 'Submit your new sharing here. You will be notified once your sharing has been approved.',
91
+ textPrintNewsletter: 'Print Sharing',
92
+ textBackToNews: 'Back to Sharing',
93
+ textNewsAnalytics: 'SHARING ANALYTICS',
94
+ textNewsSubmission: 'SHARING SUBMISSION',
95
+ textNewsPost: 'SHARING POST',
96
+ textNewsPostTitle: 'Sharing title',
97
+ textWhenANewsletterSubmissionIsAdded: 'When a sharing submission is added, the entered address will recieve an email notification.',
98
+ textIsThisAFeaturedNewsPost: 'Is this a featured sharing?',
99
+ textFeaturedNewsPostWillBeHighlighted: 'Featured sharing will be highlighted on the Home page.',
100
+ textSubmittedANewsletterPostForReview: 'submitted a sharing for review:',
101
+ textApprovedANewsSubmission: 'approved a sharing submission:',
102
+ textRejectedANewsSubmission: 'rejected a sharing submission:',
103
+ textAddedANewsletterPost: 'added a sharing:',
104
+ textEditedANewsletterPost: 'edited a sharing:',
105
+ textDeletedANewsletterPost: 'deleted a sharing:',
106
+ textSingularName: 'Sharing',
107
+ textThereIsNoNews: 'There is no Sharing',
108
+ textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a sharing will always display.',
109
+ textAllowNewsComments: 'Allow Sharing Comments',
110
+ textUsersCanPostCommentsOnNews: 'Users can post comments on Sharing within the app.',
111
+ textAllowNewsNotification: 'Allow Sharing Notifications',
112
+ textWhenSettingUpANewsPost: 'When setting up a sharing, the creator may choose to send a push notification to users of the app.',
113
+ textCondensedNewsStyle: 'Condensed Sharing Style',
114
+ textTheNewsSectionUsesCondensedNewsItems: 'The Sharing section uses condensed Sharing items - smaller images, less information and less scrolling.',
115
+ textMenuTitle: 'Sharing',
116
+ textPermissionNewsletterManagement: 'Sharing Management',
117
+ textPermissionNewsletterSubmission: 'Sharing Submission (Approval Required)',
118
+ // Comment subscription notification preference
119
+ notificationPreference: {
120
+ key: 'newsSharingComments',
121
+ label: 'Sharing comments',
122
+ permission: 'newsletterSharing'
123
+ }
118
124
  };
119
125
 
120
126
  // import * as PlussCore from '../../pluss-core/src';
@@ -278,7 +284,8 @@ var FeatureConfig = {
278
284
  init: function init(environment) {
279
285
  FeatureConfig.env = environment;
280
286
  PlussCore.Config.init(environment);
281
- }
287
+ },
288
+ notificationPreference: values.notificationPreference
282
289
  };
283
290
 
284
291
  var Components$2 = PlussCore.Components;
package/dist/index.umd.js CHANGED
@@ -45,98 +45,104 @@
45
45
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
46
46
 
47
47
  var values = {
48
- featureKey: 'news',
49
- serviceKey: 'newsletter',
50
- reducerKey: 'news',
51
- analyticsKey: 'news',
52
- actionNewsLoaded: 'NEWS_LOADED',
53
- actionNewsUpdated: 'NEWS_UPDATED',
54
- actionNewsRemoved: 'NEWS_REMOVED',
55
- actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADED',
56
- actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVED',
57
- actionNewsPurge: 'NEWS_PURGE',
58
- actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADING',
59
- actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADING',
60
- permissionNewsletter: 'newsletter',
61
- permissionNewsletterSubmit: 'newsletterSubmit',
62
- activityAddNewsSubmission: 'AddNewsSubmission',
63
- activityApproveNewsSubmission: 'ApproveNewsSubmission',
64
- activityRejectNewsSubmission: 'RejectNewsSubmission',
65
- activityAddNews: 'AddNews',
66
- activityEditNews: 'EditNews',
67
- acitivtyDeleteNews: 'DeleteNews',
68
- routeNewsHub: '/news',
69
- routeAddNewsletterEntry: '/news/article',
70
- routePublishAvailableNews: '/news/content/',
71
- routeNewsletterSubmission: '/news/newslettersubmission/',
72
- routeNewsletterAnalytics: '/news/analytics/',
73
- routeGenerateNewsletter: '/newsletter/generate',
74
- routeNewsletterTemplate: '/embed/newsletter',
75
- screenNewsHub: 'NewsHub',
76
- screenAddNewsletterEntry: 'AddNewsletterEntry',
77
- screenPublishAvailableNews: 'PublishAvailableNews',
78
- screenNewsletterSubmission: 'NewsletterSubmission',
79
- screenNewsletterAnalytics: 'NewsletterAnalytics',
80
- screenGenerateNewsletter: 'GenerateNewsletter',
81
- screenNewsletterTemplate: 'NewsletterTemplate',
82
- svgPathGridIcon: 'M3.28125 1.875C2.50671 1.875 1.875 2.50671 1.875 3.28125V24.8438C1.875 26.6528 3.34717 28.125 5.15625 28.125H25.7812C27.5903 28.125 29.0625 26.6528 29.0625 24.8438V13.125C29.0625 12.0905 28.222 11.25 27.1875 11.25H23.4375V3.28125C23.4375 2.50671 22.8058 1.875 22.0312 1.875H3.28125ZM3.28125 2.8125H22.0312C22.2894 2.8125 22.5 3.02307 22.5 3.28125V24.8438C22.5 25.7794 22.8534 26.6016 23.4412 27.1875H5.15625C3.86353 27.1875 2.8125 26.1365 2.8125 24.8438V23.4375H17.3438C17.6038 23.4375 17.8125 23.2288 17.8125 22.9688C17.8125 22.7087 17.6038 22.5 17.3438 22.5H2.8125V3.28125C2.8125 3.02307 3.02307 2.8125 3.28125 2.8125ZM6.09375 5.625C5.83374 5.625 5.625 5.83374 5.625 6.09375C5.625 6.35376 5.83374 6.5625 6.09375 6.5625H13.5938C13.8538 6.5625 14.0625 6.35376 14.0625 6.09375C14.0625 5.83374 13.8538 5.625 13.5938 5.625H6.09375ZM15.4688 5.625C15.2087 5.625 15 5.83374 15 6.09375C15 6.35376 15.2087 6.5625 15.4688 6.5625H18.2812C18.5413 6.5625 18.75 6.35376 18.75 6.09375C18.75 5.83374 18.5413 5.625 18.2812 5.625H15.4688ZM6.09375 7.5C5.83374 7.5 5.625 7.70874 5.625 7.96875C5.625 8.22876 5.83374 8.4375 6.09375 8.4375H10.7812C11.0413 8.4375 11.25 8.22876 11.25 7.96875C11.25 7.70874 11.0413 7.5 10.7812 7.5H6.09375ZM12.6562 7.5C12.3962 7.5 12.1875 7.70874 12.1875 7.96875C12.1875 8.22876 12.3962 8.4375 12.6562 8.4375H18.2812C18.5413 8.4375 18.75 8.22876 18.75 7.96875C18.75 7.70874 18.5413 7.5 18.2812 7.5H12.6562ZM6.09375 11.25C5.83374 11.25 5.625 11.4587 5.625 11.7188C5.625 11.9788 5.83374 12.1875 6.09375 12.1875H10.7812C11.0413 12.1875 11.25 11.9788 11.25 11.7188C11.25 11.4587 11.0413 11.25 10.7812 11.25H6.09375ZM13.5938 11.25C13.3337 11.25 13.125 11.4587 13.125 11.7188C13.125 11.9788 13.3337 12.1875 13.5938 12.1875H18.2812C18.5413 12.1875 18.75 11.9788 18.75 11.7188C18.75 11.4587 18.5413 11.25 18.2812 11.25H13.5938ZM23.4375 12.1875H25.5743C25.4114 12.464 25.3125 12.7826 25.3125 13.125V21.0938C25.3125 21.3538 25.5212 21.5625 25.7812 21.5625C26.0413 21.5625 26.25 21.3538 26.25 21.0938V13.125C26.25 12.6086 26.6711 12.1875 27.1875 12.1875C27.7039 12.1875 28.125 12.6086 28.125 13.125V24.8438C28.125 26.1365 27.074 27.1875 25.7812 27.1875C24.4226 27.1875 23.4375 26.2024 23.4375 24.8438V12.1875ZM6.09375 13.125C5.83374 13.125 5.625 13.3337 5.625 13.5938C5.625 13.8538 5.83374 14.0625 6.09375 14.0625H10.7812C11.0413 14.0625 11.25 13.8538 11.25 13.5938C11.25 13.3337 11.0413 13.125 10.7812 13.125H6.09375ZM13.5938 13.125C13.3337 13.125 13.125 13.3337 13.125 13.5938C13.125 13.8538 13.3337 14.0625 13.5938 14.0625H18.2812C18.5413 14.0625 18.75 13.8538 18.75 13.5938C18.75 13.3337 18.5413 13.125 18.2812 13.125H13.5938ZM6.09375 15C5.83374 15 5.625 15.2087 5.625 15.4688C5.625 15.7288 5.83374 15.9375 6.09375 15.9375H10.7812C11.0413 15.9375 11.25 15.7288 11.25 15.4688C11.25 15.2087 11.0413 15 10.7812 15H6.09375ZM13.5938 15C13.3337 15 13.125 15.2087 13.125 15.4688C13.125 15.7288 13.3337 15.9375 13.5938 15.9375H18.2812C18.5413 15.9375 18.75 15.7288 18.75 15.4688C18.75 15.2087 18.5413 15 18.2812 15H13.5938ZM6.09375 16.875C5.83374 16.875 5.625 17.0837 5.625 17.3438C5.625 17.6038 5.83374 17.8125 6.09375 17.8125H10.7812C11.0413 17.8125 11.25 17.6038 11.25 17.3438C11.25 17.0837 11.0413 16.875 10.7812 16.875H6.09375ZM13.5938 16.875C13.3337 16.875 13.125 17.0837 13.125 17.3438C13.125 17.6038 13.3337 17.8125 13.5938 17.8125H18.2812C18.5413 17.8125 18.75 17.6038 18.75 17.3438C18.75 17.0837 18.5413 16.875 18.2812 16.875H13.5938ZM6.09375 18.75C5.83374 18.75 5.625 18.9587 5.625 19.2188C5.625 19.4788 5.83374 19.6875 6.09375 19.6875H10.7812C11.0413 19.6875 11.25 19.4788 11.25 19.2188C11.25 18.9587 11.0413 18.75 10.7812 18.75H6.09375ZM19.2188 22.5C18.9587 22.5 18.75 22.7087 18.75 22.9688C18.75 23.2288 18.9587 23.4375 19.2188 23.4375H21.0938C21.3538 23.4375 21.5625 23.2288 21.5625 22.9688C21.5625 22.7087 21.3538 22.5 21.0938 22.5H19.2188ZM4.6875 24.375C4.42749 24.375 4.21875 24.5837 4.21875 24.8438V25.7812C4.21875 26.0413 4.42749 26.25 4.6875 26.25C4.94751 26.25 5.15625 26.0413 5.15625 25.7812V24.8438C5.15625 24.5837 4.94751 24.375 4.6875 24.375ZM7.03125 24.375C6.77124 24.375 6.5625 24.5837 6.5625 24.8438V25.7812C6.5625 26.0413 6.77124 26.25 7.03125 26.25C7.29126 26.25 7.5 26.0413 7.5 25.7812V24.8438C7.5 24.5837 7.29126 24.375 7.03125 24.375ZM9.375 24.375C9.11499 24.375 8.90625 24.5837 8.90625 24.8438V25.7812C8.90625 26.0413 9.11499 26.25 9.375 26.25C9.63501 26.25 9.84375 26.0413 9.84375 25.7812V24.8438C9.84375 24.5837 9.63501 24.375 9.375 24.375ZM11.7188 24.375C11.4587 24.375 11.25 24.5837 11.25 24.8438V25.7812C11.25 26.0413 11.4587 26.25 11.7188 26.25C11.9788 26.25 12.1875 26.0413 12.1875 25.7812V24.8438C12.1875 24.5837 11.9788 24.375 11.7188 24.375ZM14.0625 24.375C13.8025 24.375 13.5938 24.5837 13.5938 24.8438V25.7812C13.5938 26.0413 13.8025 26.25 14.0625 26.25C14.3225 26.25 14.5312 26.0413 14.5312 25.7812V24.8438C14.5312 24.5837 14.3225 24.375 14.0625 24.375ZM16.4062 24.375C16.1462 24.375 15.9375 24.5837 15.9375 24.8438V25.7812C15.9375 26.0413 16.1462 26.25 16.4062 26.25C16.6663 26.25 16.875 26.0413 16.875 25.7812V24.8438C16.875 24.5837 16.6663 24.375 16.4062 24.375ZM18.75 24.375C18.49 24.375 18.2812 24.5837 18.2812 24.8438V25.7812C18.2812 26.0413 18.49 26.25 18.75 26.25C19.01 26.25 19.2188 26.0413 19.2188 25.7812V24.8438C19.2188 24.5837 19.01 24.375 18.75 24.375ZM21.0938 24.375C20.8337 24.375 20.625 24.5837 20.625 24.8438V25.7812C20.625 26.0413 20.8337 26.25 21.0938 26.25C21.3538 26.25 21.5625 26.0413 21.5625 25.7812V24.8438C21.5625 24.5837 21.3538 24.375 21.0938 24.375Z',
83
- svgPathGridIconViewBox: '0 0 30 30',
84
- optionHideTimestamp: 'newsHideTimestamp',
85
- optionForceNewsAuthorName: 'forceNewsAuthorName',
86
- optionNewsComments: 'newsComments',
87
- optionNewsNotifications: 'newsNotifications',
88
- optionUseLargeNews: 'useLargeNews',
89
- localStorageNewsletterBrandData: "newsletterBrandData",
90
- localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdate",
91
- localStorageNewsletterMakerData: "newsletterMakerData",
92
- stringPostfixSubmissionEmail: 'newssubmissionemail',
93
- menuOrder: 3,
94
- textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV News feed active and current, but don’t flood\nit with so much content that important posts get lost.',
95
- textFeaturedNews: 'Featured News',
96
- textIsThisAFeaturedNewsArticle: 'Is this a featured news article?',
97
- textFeaturedNewsArticlesWillBeHighlighted: 'Featured news articles will be highlighted on the Home page.',
98
- textThisPostHasPreviouslyBeenPublished: "This post has previously been published to this village. Are you sure you want to continue?",
99
- textNewsletterTitlePostfix: 'Newsletter',
100
- textCreateNewsletter: 'Create Newsletter',
101
- textNoSelectedNews: 'No selected news yet',
102
- textNewsletterTitle: 'Newsletter Title',
103
- textSelectNews: 'Select News',
104
- textSelectedNews: 'Selected News',
105
- textAddEditNewsPostfix: 'news',
48
+ featureKey: 'sharing',
49
+ serviceKey: 'newsletterSharing',
50
+ reducerKey: 'newsSharing',
51
+ analyticsKey: 'newsSharing',
52
+ actionNewsLoaded: 'NEWS_LOADEDSharing',
53
+ actionNewsUpdated: 'NEWS_UPDATEDSharing',
54
+ actionNewsRemoved: 'NEWS_REMOVEDSharing',
55
+ actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDSharing',
56
+ actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDSharing',
57
+ actionNewsPurge: 'NEWS_PURGESharing',
58
+ actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGSharing',
59
+ actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGSharing',
60
+ permissionNewsletter: 'newsletterSharing',
61
+ permissionNewsletterSubmit: 'newsletterSubmitSharing',
62
+ activityAddNewsSubmission: 'AddNewsSubmissionSharing',
63
+ activityApproveNewsSubmission: 'ApproveNewsSubmissionSharing',
64
+ activityRejectNewsSubmission: 'RejectNewsSubmissionSharing',
65
+ activityAddNews: 'AddNewsSharing',
66
+ activityEditNews: 'EditNewsSharing',
67
+ acitivtyDeleteNews: 'DeleteNewsSharing',
68
+ routeNewsHub: '/newsSharing',
69
+ routeAddNewsletterEntry: '/newsSharing/article',
70
+ routePublishAvailableNews: '/newsSharing/content/',
71
+ routeNewsletterSubmission: '/newsSharing/newslettersubmission/',
72
+ routeNewsletterAnalytics: '/newsSharing/analytics/',
73
+ routeGenerateNewsletter: '/newsletterSharing/generate',
74
+ routeNewsletterTemplate: '/embed/newsletterSharing',
75
+ screenNewsHub: 'NewsHubSharing',
76
+ screenAddNewsletterEntry: 'AddNewsletterEntrySharing',
77
+ screenPublishAvailableNews: 'PublishAvailableNewsSharing',
78
+ screenNewsletterSubmission: 'NewsletterSubmissionSharing',
79
+ screenNewsletterAnalytics: 'NewsletterAnalyticsSharing',
80
+ screenGenerateNewsletter: 'GenerateNewsletterSharing',
81
+ screenNewsletterTemplate: 'NewsletterTemplateSharing',
82
+ svgPathGridIcon: 'M6.9375 5.25C5.59802 5.25 4.5 6.34802 4.5 7.6875V13.6875V15.9507C4.5 16.6825 5.39622 17.1394 5.98828 16.7095C5.98853 16.7095 5.98877 16.7095 5.98901 16.7095L7.60913 15.531C7.91811 16.5231 8.84788 17.25 9.9375 17.25H14.6294L18.011 19.7095C18.0112 19.7095 18.0115 19.7095 18.0117 19.7095C18.6038 20.1394 19.5 19.6825 19.5 18.9507V16.6875V10.6875C19.5 9.34802 18.402 8.25 17.0625 8.25H16.5V7.6875C16.5 6.34802 15.402 5.25 14.0625 5.25H6.9375ZM6.9375 6.375H14.0625C14.7938 6.375 15.375 6.95623 15.375 7.6875V11.8125C15.375 12.5438 14.7938 13.125 14.0625 13.125H9.1875C9.06854 13.125 8.95264 13.1627 8.85645 13.2327L5.625 15.583V13.6875V7.6875C5.625 6.95623 6.20623 6.375 6.9375 6.375ZM16.5 9.375H17.0625C17.7938 9.375 18.375 9.95623 18.375 10.6875V16.6875V18.583L15.1436 16.2327C15.0474 16.1627 14.9315 16.125 14.8125 16.125H9.9375C9.20623 16.125 8.625 15.5438 8.625 14.8125V14.792L9.37061 14.25H14.0625C15.402 14.25 16.5 13.152 16.5 11.8125V9.375Z',
83
+ svgPathGridIconViewBox: '0 0 24 24',
84
+ optionHideTimestamp: 'newsHideTimestampSharing',
85
+ optionForceNewsAuthorName: 'forceNewsAuthorNameSharing',
86
+ optionNewsComments: 'newsCommentsSharing',
87
+ optionNewsNotifications: 'newsNotificationsSharing',
88
+ optionUseLargeNews: 'useLargeNewsSharing',
89
+ localStorageNewsletterBrandData: "newsletterBrandDataSharing",
90
+ localStorageNewsletterMakerLastUpdate: "newsletterMakerLastUpdateSharing",
91
+ localStorageNewsletterMakerData: "newsletterMakerDataSharing",
92
+ stringPostfixSubmissionEmail: 'newssubmissionemailSharing',
93
+ menuOrder: 3.5,
94
+ textTipKeepYourTVNewsFeedActiveAndCurrent: 'Tip: Keep your TV Sharing feed active and current, but don’t flood\nit with so much content that important posts get lost.',
95
+ textFeaturedNews: 'Featured Sharing',
96
+ textIsThisAFeaturedNewsArticle: 'Is this a featured sharing?',
97
+ textFeaturedNewsArticlesWillBeHighlighted: 'Featured sharings will be highlighted on the Home page.',
98
+ textThisPostHasPreviouslyBeenPublished: "This sharing has previously been published. Are you sure you want to continue?",
99
+ textNewsletterTitlePostfix: 'Sharing',
100
+ textCreateNewsletter: 'Create Sharing',
101
+ textNoSelectedNews: 'No selected sharing yet',
102
+ textNewsletterTitle: 'Sharing Title',
103
+ textSelectNews: 'Select Sharing',
104
+ textSelectedNews: 'Selected Sharing',
105
+ textAddEditNewsPostfix: 'sharing',
106
106
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
107
- return "Note: This will not ".concat(changeText, " the news in the app");
107
+ return "Note: This will not ".concat(changeText, " the sharing in the app");
108
108
  },
109
- textAreYouSureYouWantToDelete: "Are you sure you want to delete that newsletter?",
110
- textThereAreNoNews: 'There are no news',
111
- textTitleNews: 'News',
112
- textSubmitYourNewNewsPostHere: 'Submit your new news post here. You will be notified once your post has been approved.',
113
- textPrintNewsletter: 'Print Newsletter',
114
- textBackToNews: 'Back to News',
115
- textNewsAnalytics: 'NEWS ANALYTICS',
116
- textNewsSubmission: 'NEWS SUBMISSION',
117
- textNewsPost: 'NEWS POST',
118
- textNewsPostTitle: 'News post title',
119
- textWhenANewsletterSubmissionIsAdded: 'When a newsletter submission is added, the entered address will recieve an email notification.',
120
- textIsThisAFeaturedNewsPost: 'Is this a featured news post?',
121
- textFeaturedNewsPostWillBeHighlighted: 'Featured news posts will be highlighted on the Home page.',
122
- textSubmittedANewsletterPostForReview: 'submitted a newsletter post for review:',
123
- textApprovedANewsSubmission: 'approved a news submission:',
124
- textRejectedANewsSubmission: 'rejected a news submission:',
125
- textAddedANewsletterPost: 'added a newsletter post:',
126
- textEditedANewsletterPost: 'edited a newsletter post:',
127
- textDeletedANewsletterPost: 'deleted a newsletter post:',
128
- textSingularName: 'News',
129
- textThereIsNoNews: 'There is no News',
130
- textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a news post will always display.',
131
- textAllowNewsComments: 'Allow News Comments',
132
- textUsersCanPostCommentsOnNews: 'Users can post comments on News within the app.',
133
- textAllowNewsNotification: 'Allow News Notifications',
134
- textWhenSettingUpANewsPost: 'When setting up a news post, the creator may choose to send a push notification to users of the app.',
135
- textCondensedNewsStyle: 'Condensed News Style',
136
- textTheNewsSectionUsesCondensedNewsItems: 'The News section uses condensed News items - smaller images, less information and less scrolling.',
137
- textMenuTitle: 'News',
138
- textPermissionNewsletterManagement: 'Newsletter Management',
139
- textPermissionNewsletterSubmission: 'Newsletter Submission (Approval Required)'
109
+ textAreYouSureYouWantToDelete: "Are you sure you want to delete that sharing?",
110
+ textThereAreNoNews: 'There are no sharings',
111
+ textTitleNews: 'Sharing',
112
+ textSubmitYourNewNewsPostHere: 'Submit your new sharing here. You will be notified once your sharing has been approved.',
113
+ textPrintNewsletter: 'Print Sharing',
114
+ textBackToNews: 'Back to Sharing',
115
+ textNewsAnalytics: 'SHARING ANALYTICS',
116
+ textNewsSubmission: 'SHARING SUBMISSION',
117
+ textNewsPost: 'SHARING POST',
118
+ textNewsPostTitle: 'Sharing title',
119
+ textWhenANewsletterSubmissionIsAdded: 'When a sharing submission is added, the entered address will recieve an email notification.',
120
+ textIsThisAFeaturedNewsPost: 'Is this a featured sharing?',
121
+ textFeaturedNewsPostWillBeHighlighted: 'Featured sharing will be highlighted on the Home page.',
122
+ textSubmittedANewsletterPostForReview: 'submitted a sharing for review:',
123
+ textApprovedANewsSubmission: 'approved a sharing submission:',
124
+ textRejectedANewsSubmission: 'rejected a sharing submission:',
125
+ textAddedANewsletterPost: 'added a sharing:',
126
+ textEditedANewsletterPost: 'edited a sharing:',
127
+ textDeletedANewsletterPost: 'deleted a sharing:',
128
+ textSingularName: 'Sharing',
129
+ textThereIsNoNews: 'There is no Sharing',
130
+ textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a sharing will always display.',
131
+ textAllowNewsComments: 'Allow Sharing Comments',
132
+ textUsersCanPostCommentsOnNews: 'Users can post comments on Sharing within the app.',
133
+ textAllowNewsNotification: 'Allow Sharing Notifications',
134
+ textWhenSettingUpANewsPost: 'When setting up a sharing, the creator may choose to send a push notification to users of the app.',
135
+ textCondensedNewsStyle: 'Condensed Sharing Style',
136
+ textTheNewsSectionUsesCondensedNewsItems: 'The Sharing section uses condensed Sharing items - smaller images, less information and less scrolling.',
137
+ textMenuTitle: 'Sharing',
138
+ textPermissionNewsletterManagement: 'Sharing Management',
139
+ textPermissionNewsletterSubmission: 'Sharing Submission (Approval Required)',
140
+ // Comment subscription notification preference
141
+ notificationPreference: {
142
+ key: 'newsSharingComments',
143
+ label: 'Sharing comments',
144
+ permission: 'newsletterSharing'
145
+ }
140
146
  };
141
147
 
142
148
  // import * as PlussCore from '../../pluss-core/src';
@@ -300,7 +306,8 @@
300
306
  init: function init(environment) {
301
307
  FeatureConfig.env = environment;
302
308
  PlussCore__namespace.Config.init(environment);
303
- }
309
+ },
310
+ notificationPreference: values.notificationPreference
304
311
  };
305
312
 
306
313
  var Components$2 = PlussCore__namespace.Components;
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "@plusscommunities/pluss-newsletter-web-sharing",
3
- "version": "1.4.35",
4
- "description": "Extension package to enable newsletter on Pluss Communities Platform",
5
- "main": "dist/index.cjs.js",
6
- "scripts": {
7
- "build": "npm i && rollup -c",
8
- "betapatch": "npm version prepatch --preid=beta",
9
- "patch": "npm version patch",
10
- "betaupload": "npm run build && npm publish --access public --tag beta && rm -rf node_modules",
11
- "betaupload:p": "npm run betapatch && npm run betaupload",
12
- "upload": "npm run build && npm publish --access public && rm -rf node_modules",
13
- "upload:p": "npm run patch && npm run upload",
14
- "copy:add": "run(){ ext=${1:-default}; test -f src/values.config.$ext.js || cp src/values.config.default.js src/values.config.$ext.js; }; run",
15
- "copy:get": "echo $npm_package_name",
16
- "copy:set": "run(){ target='\\@plusscommunities\\/pluss-newsletter-web'; ext=${1:-default}; [ $ext == 'default' ] && replace=$target || replace=$target'-'$ext; echo 'Setting target to '$replace; test -f src/values.config.$ext.js && cp -f src/values.config.$ext.js src/values.config.js; sed -i '' -e 's/'$target'.*\"/'$replace'\"/g' package.json; }; run",
17
- "copy:betaupload": "npm run betapatch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run betaupload; done; npm run copy:set;",
18
- "copy:upload": "npm run patch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run upload; done; npm run copy:set;"
19
- },
20
- "author": "Phillip Suh",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@babel/cli": "^7.14.3",
24
- "@babel/core": "^7.14.3",
25
- "@babel/plugin-transform-runtime": "^7.14.3",
26
- "@babel/preset-env": "^7.14.2",
27
- "@babel/preset-react": "^7.13.13",
28
- "@rollup/plugin-babel": "^5.3.0",
29
- "@rollup/plugin-image": "^2.0.6",
30
- "@rollup/plugin-json": "^4.1.0",
31
- "autoprefixer": "^10.2.6",
32
- "rollup": "^2.50.1",
33
- "rollup-plugin-local-resolve": "^1.0.7",
34
- "rollup-plugin-styles": "^3.14.1"
35
- },
36
- "dependencies": {
37
- "@babel/runtime": "^7.14.0"
38
- },
39
- "peerDependencies": {
40
- "@plusscommunities/pluss-core-web": "^1.6.13",
41
- "@fortawesome/fontawesome-svg-core": "^6.4.0",
42
- "@fortawesome/free-solid-svg-icons": "^6.4.0",
43
- "@fortawesome/react-fontawesome": "^0.2.0",
44
- "lodash": "^4.17.4",
45
- "moment": "^2.30.1",
46
- "react": "^16.14.0",
47
- "react-bootstrap": "^0.31.2",
48
- "react-dom": "^16.14.0",
49
- "react-fontawesome": "^1.6.1"
50
- },
51
- "keywords": []
2
+ "name": "@plusscommunities/pluss-newsletter-web-sharing",
3
+ "version": "1.4.37",
4
+ "description": "Extension package to enable newsletter on Pluss Communities Platform",
5
+ "main": "dist/index.cjs.js",
6
+ "scripts": {
7
+ "build": "npm i && rollup -c",
8
+ "betapatch": "npm version prepatch --preid=beta",
9
+ "patch": "npm version patch",
10
+ "betaupload": "npm run build && npm publish --access public --tag beta && rm -rf node_modules",
11
+ "betaupload:p": "npm run betapatch && npm run betaupload",
12
+ "upload": "npm run build && npm publish --access public && rm -rf node_modules",
13
+ "upload:p": "npm run patch && npm run upload",
14
+ "copy:add": "run(){ ext=${1:-default}; test -f src/values.config.$ext.js || cp src/values.config.default.js src/values.config.$ext.js; }; run",
15
+ "copy:get": "echo $npm_package_name",
16
+ "copy:set": "run(){ target='\\@plusscommunities\\/pluss-newsletter-web'; ext=${1:-default}; [ $ext == 'default' ] && replace=$target || replace=$target'-'$ext; echo 'Setting target to '$replace; test -f src/values.config.$ext.js && cp -f src/values.config.$ext.js src/values.config.js; sed -i '' -e 's/'$target'.*\"/'$replace'\"/g' package.json; }; run",
17
+ "copy:betaupload": "npm run betapatch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run betaupload; done; npm run copy:set;",
18
+ "copy:upload": "npm run patch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run upload; done; npm run copy:set;"
19
+ },
20
+ "author": "Phillip Suh",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@babel/cli": "^7.14.3",
24
+ "@babel/core": "^7.14.3",
25
+ "@babel/plugin-transform-runtime": "^7.14.3",
26
+ "@babel/preset-env": "^7.14.2",
27
+ "@babel/preset-react": "^7.13.13",
28
+ "@rollup/plugin-babel": "^5.3.0",
29
+ "@rollup/plugin-image": "^2.0.6",
30
+ "@rollup/plugin-json": "^4.1.0",
31
+ "autoprefixer": "^10.2.6",
32
+ "rollup": "^2.50.1",
33
+ "rollup-plugin-local-resolve": "^1.0.7",
34
+ "rollup-plugin-styles": "^3.14.1"
35
+ },
36
+ "dependencies": {
37
+ "@babel/runtime": "^7.14.0"
38
+ },
39
+ "peerDependencies": {
40
+ "@plusscommunities/pluss-core-web": "*",
41
+ "@fortawesome/fontawesome-svg-core": "*",
42
+ "@fortawesome/free-solid-svg-icons": "*",
43
+ "@fortawesome/react-fontawesome": "*",
44
+ "lodash": "*",
45
+ "moment": "*",
46
+ "react": "*",
47
+ "react-bootstrap": "*",
48
+ "react-dom": "*",
49
+ "react-fontawesome": "*"
50
+ },
51
+ "keywords": []
52
52
  }
@@ -164,5 +164,6 @@ const FeatureConfig = {
164
164
  FeatureConfig.env = environment;
165
165
  PlussCore.Config.init(environment);
166
166
  },
167
+ notificationPreference: values.notificationPreference,
167
168
  };
168
169
  export default FeatureConfig;
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Awards',
93
93
  textPermissionNewsletterManagement: 'Awards Management',
94
94
  textPermissionNewsletterSubmission: 'Awards Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsAwardsComments',
98
+ label: 'Awards comments',
99
+ permission: 'newsletterAwards',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Coaching',
93
93
  textPermissionNewsletterManagement: 'Coaching Management',
94
94
  textPermissionNewsletterSubmission: 'Coaching Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsCoachingComments',
98
+ label: 'Coaching comments',
99
+ permission: 'newsletterCoaching',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -93,6 +93,12 @@ const values = {
93
93
  textMenuTitle: 'Curated Posts',
94
94
  textPermissionNewsletterManagement: 'Curated Post Management',
95
95
  textPermissionNewsletterSubmission: 'Curated Post Submission (Approval Required)',
96
+ // Comment subscription notification preference
97
+ notificationPreference: {
98
+ key: 'newsCuratedPostsComments',
99
+ label: 'Curated Posts comments',
100
+ permission: 'newsletterCuratedPosts',
101
+ },
96
102
  };
97
103
 
98
104
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News',
93
93
  textPermissionNewsletterManagement: 'Newsletter Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsComments',
98
+ label: 'News comments',
99
+ permission: 'newsletter',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -94,6 +94,12 @@ const values = {
94
94
  textMenuTitle: 'Head Office',
95
95
  textPermissionNewsletterManagement: 'Head Office News Management',
96
96
  textPermissionNewsletterSubmission: 'Head Office News Submission (Approval Required)',
97
+ // Comment subscription notification preference
98
+ notificationPreference: {
99
+ key: 'newsHeadOfficeComments',
100
+ label: 'Head Office comments',
101
+ permission: 'newsletterHeadOffice',
102
+ },
97
103
  };
98
104
 
99
105
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Sharing',
93
93
  textPermissionNewsletterManagement: 'Sharing Management',
94
94
  textPermissionNewsletterSubmission: 'Sharing Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsSharingComments',
98
+ label: 'Sharing comments',
99
+ permission: 'newsletterSharing',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Menu',
93
93
  textPermissionNewsletterManagement: 'Menu Management',
94
94
  textPermissionNewsletterSubmission: 'Menu Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsMenuComments',
98
+ label: 'Menu comments',
99
+ permission: 'newsletterMenu',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News 2',
93
93
  textPermissionNewsletterManagement: 'Newsletter 2 Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter 2 Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsTwoComments',
98
+ label: 'News 2 comments',
99
+ permission: 'newsletterTwo',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News A',
93
93
  textPermissionNewsletterManagement: 'Newsletter A Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter A Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsAComments',
98
+ label: 'News A comments',
99
+ permission: 'newsletterA',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News B',
93
93
  textPermissionNewsletterManagement: 'Newsletter B Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter B Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsBComments',
98
+ label: 'News B comments',
99
+ permission: 'newsletterB',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News C',
93
93
  textPermissionNewsletterManagement: 'Newsletter C Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter C Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsCComments',
98
+ label: 'News C comments',
99
+ permission: 'newsletterC',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'News D',
93
93
  textPermissionNewsletterManagement: 'Newsletter D Management',
94
94
  textPermissionNewsletterSubmission: 'Newsletter D Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsDComments',
98
+ label: 'News D comments',
99
+ permission: 'newsletterD',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -93,6 +93,12 @@ const values = {
93
93
  textMenuTitle: 'Notice Board',
94
94
  textPermissionNewsletterManagement: 'Notice Board Management',
95
95
  textPermissionNewsletterSubmission: 'Notice Board Submission (Approval Required)',
96
+ // Comment subscription notification preference
97
+ notificationPreference: {
98
+ key: 'newsNoticeBoardComments',
99
+ label: 'Notice Board comments',
100
+ permission: 'newsletterNoticeBoard',
101
+ },
96
102
  };
97
103
 
98
104
  export { values };
@@ -94,6 +94,12 @@ const values = {
94
94
  textMenuTitle: 'Personal Development Hub',
95
95
  textPermissionNewsletterManagement: 'Personal Development Management',
96
96
  textPermissionNewsletterSubmission: 'Personal Development Submission (Approval Required)',
97
+ // Comment subscription notification preference
98
+ notificationPreference: {
99
+ key: 'newsPersonalDevComments',
100
+ label: 'Personal Development comments',
101
+ permission: 'newsletterPersonalDev',
102
+ },
97
103
  };
98
104
 
99
105
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Products',
93
93
  textPermissionNewsletterManagement: 'Product Management',
94
94
  textPermissionNewsletterSubmission: 'Product Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsProductsComments',
98
+ label: 'Products comments',
99
+ permission: 'newsletterProducts',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -96,6 +96,12 @@ const values = {
96
96
  textMenuTitle: 'Projects',
97
97
  textPermissionNewsletterManagement: 'Projects Management',
98
98
  textPermissionNewsletterSubmission: 'Projects Submission (Approval Required)',
99
+ // Comment subscription notification preference
100
+ notificationPreference: {
101
+ key: 'newsProjectsComments',
102
+ label: 'Projects comments',
103
+ permission: 'newsletterProjects',
104
+ },
99
105
  };
100
106
 
101
107
  export { values };
@@ -94,6 +94,12 @@ const values = {
94
94
  textMenuTitle: 'Sales',
95
95
  textPermissionNewsletterManagement: 'Sales Management',
96
96
  textPermissionNewsletterSubmission: 'Sales Submission (Approval Required)',
97
+ // Comment subscription notification preference
98
+ notificationPreference: {
99
+ key: 'newsSalesComments',
100
+ label: 'Sales comments',
101
+ permission: 'newsletterSales',
102
+ },
97
103
  };
98
104
 
99
105
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Sharing',
93
93
  textPermissionNewsletterManagement: 'Sharing Management',
94
94
  textPermissionNewsletterSubmission: 'Sharing Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsSharingComments',
98
+ label: 'Sharing comments',
99
+ permission: 'newsletterSharing',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Shifts',
93
93
  textPermissionNewsletterManagement: 'Shifts Management',
94
94
  textPermissionNewsletterSubmission: 'Shifts Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsShiftsComments',
98
+ label: 'Shifts comments',
99
+ permission: 'newsletterShifts',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };
@@ -92,6 +92,12 @@ const values = {
92
92
  textMenuTitle: 'Training',
93
93
  textPermissionNewsletterManagement: 'Training Management',
94
94
  textPermissionNewsletterSubmission: 'Training Submission (Approval Required)',
95
+ // Comment subscription notification preference
96
+ notificationPreference: {
97
+ key: 'newsTrainingComments',
98
+ label: 'Training comments',
99
+ permission: 'newsletterTraining',
100
+ },
95
101
  };
96
102
 
97
103
  export { values };