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

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,98 @@ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray)
67
67
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
68
68
 
69
69
  var values = {
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',
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',
128
128
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
129
- return "Note: This will not ".concat(changeText, " the sharing in the app");
129
+ return "Note: This will not ".concat(changeText, " the news in the app");
130
130
  },
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)'
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)'
162
162
  };
163
163
 
164
164
  // import * as PlussCore from '../../pluss-core/src';
@@ -2888,7 +2888,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
2888
2888
  var result = {
2889
2889
  Title: this.state.titleInput,
2890
2890
  Image: "",
2891
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
2891
+ Images: this.refs.imageInput.getValue().map(function (url) {
2892
2892
  return isVideo(url) ? url : get1400(url);
2893
2893
  }),
2894
2894
  Text: this.state.textInput,
@@ -4621,7 +4621,7 @@ var NewsletterSubmission = /*#__PURE__*/function (_Component) {
4621
4621
  value: function compileJson() {
4622
4622
  var result = _objectSpread$6(_objectSpread$6({}, this.state.newUpdate), {}, {
4623
4623
  Image: "",
4624
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
4624
+ Images: this.refs.imageInput.getValue().map(function (url) {
4625
4625
  return get1400(url);
4626
4626
  }),
4627
4627
  Thumbnail: ""
@@ -5345,7 +5345,7 @@ var GenerateNewsletter = /*#__PURE__*/function (_Component) {
5345
5345
  }
5346
5346
 
5347
5347
  var newEntry = _objectSpread$4(_objectSpread$4({}, _this.state.editingNews), {}, {
5348
- Images: _this.refs.newsImageInput.getWrappedInstance().getValue().map(function (url) {
5348
+ Images: _this.refs.newsImageInput.getValue().map(function (url) {
5349
5349
  return get1400(url);
5350
5350
  }),
5351
5351
  isNew: null
package/dist/index.esm.js CHANGED
@@ -23,98 +23,98 @@ 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: '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',
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',
84
84
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
85
- return "Note: This will not ".concat(changeText, " the sharing in the app");
85
+ return "Note: This will not ".concat(changeText, " the news in the app");
86
86
  },
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)'
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)'
118
118
  };
119
119
 
120
120
  // import * as PlussCore from '../../pluss-core/src';
@@ -2844,7 +2844,7 @@ var AddNewsletterEntry = /*#__PURE__*/function (_Component) {
2844
2844
  var result = {
2845
2845
  Title: this.state.titleInput,
2846
2846
  Image: "",
2847
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
2847
+ Images: this.refs.imageInput.getValue().map(function (url) {
2848
2848
  return isVideo(url) ? url : get1400(url);
2849
2849
  }),
2850
2850
  Text: this.state.textInput,
@@ -4577,7 +4577,7 @@ var NewsletterSubmission = /*#__PURE__*/function (_Component) {
4577
4577
  value: function compileJson() {
4578
4578
  var result = _objectSpread$6(_objectSpread$6({}, this.state.newUpdate), {}, {
4579
4579
  Image: "",
4580
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
4580
+ Images: this.refs.imageInput.getValue().map(function (url) {
4581
4581
  return get1400(url);
4582
4582
  }),
4583
4583
  Thumbnail: ""
@@ -5301,7 +5301,7 @@ var GenerateNewsletter = /*#__PURE__*/function (_Component) {
5301
5301
  }
5302
5302
 
5303
5303
  var newEntry = _objectSpread$4(_objectSpread$4({}, _this.state.editingNews), {}, {
5304
- Images: _this.refs.newsImageInput.getWrappedInstance().getValue().map(function (url) {
5304
+ Images: _this.refs.newsImageInput.getValue().map(function (url) {
5305
5305
  return get1400(url);
5306
5306
  }),
5307
5307
  isNew: null
package/dist/index.umd.js CHANGED
@@ -45,98 +45,98 @@
45
45
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
46
46
 
47
47
  var values = {
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',
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',
106
106
  textNoteThisWillNotChangeInTheApp: function textNoteThisWillNotChangeInTheApp(changeText) {
107
- return "Note: This will not ".concat(changeText, " the sharing in the app");
107
+ return "Note: This will not ".concat(changeText, " the news in the app");
108
108
  },
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)'
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)'
140
140
  };
141
141
 
142
142
  // import * as PlussCore from '../../pluss-core/src';
@@ -2866,7 +2866,7 @@
2866
2866
  var result = {
2867
2867
  Title: this.state.titleInput,
2868
2868
  Image: "",
2869
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
2869
+ Images: this.refs.imageInput.getValue().map(function (url) {
2870
2870
  return isVideo(url) ? url : get1400(url);
2871
2871
  }),
2872
2872
  Text: this.state.textInput,
@@ -4599,7 +4599,7 @@
4599
4599
  value: function compileJson() {
4600
4600
  var result = _objectSpread$6(_objectSpread$6({}, this.state.newUpdate), {}, {
4601
4601
  Image: "",
4602
- Images: this.refs.imageInput.getWrappedInstance().getValue().map(function (url) {
4602
+ Images: this.refs.imageInput.getValue().map(function (url) {
4603
4603
  return get1400(url);
4604
4604
  }),
4605
4605
  Thumbnail: ""
@@ -5323,7 +5323,7 @@
5323
5323
  }
5324
5324
 
5325
5325
  var newEntry = _objectSpread$4(_objectSpread$4({}, _this.state.editingNews), {}, {
5326
- Images: _this.refs.newsImageInput.getWrappedInstance().getValue().map(function (url) {
5326
+ Images: _this.refs.newsImageInput.getValue().map(function (url) {
5327
5327
  return get1400(url);
5328
5328
  }),
5329
5329
  isNew: null
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "@plusscommunities/pluss-newsletter-web-sharing",
3
- "version": "1.4.34",
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": []
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": []
52
52
  }
@@ -531,7 +531,6 @@ class AddNewsletterEntry extends Component {
531
531
  Title: this.state.titleInput,
532
532
  Image: "",
533
533
  Images: this.refs.imageInput
534
- .getWrappedInstance()
535
534
  .getValue()
536
535
  .map((url) => {
537
536
  return isVideo(url) ? url : get1400(url);
@@ -410,7 +410,6 @@ class GenerateNewsletter extends Component {
410
410
  const newEntry = {
411
411
  ...this.state.editingNews,
412
412
  Images: this.refs.newsImageInput
413
- .getWrappedInstance()
414
413
  .getValue()
415
414
  .map((url) => {
416
415
  return get1400(url);
@@ -200,7 +200,6 @@ class NewsletterSubmission extends Component {
200
200
  ...this.state.newUpdate,
201
201
  Image: "",
202
202
  Images: this.refs.imageInput
203
- .getWrappedInstance()
204
203
  .getValue()
205
204
  .map((url) => {
206
205
  return get1400(url);