@livetiles/reach-components-react 0.4.0-preview.156 → 0.4.0-preview.158

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/index.esm2.js CHANGED
@@ -50934,7 +50934,7 @@ function setMomentLocale(locale) {
50934
50934
  // ORDER MATTERS - must always be the same as in the API
50935
50935
 
50936
50936
 
50937
- var orderedFeatureSet = ['news', 'comments', 'multiLanguage', 'keywords', 'pushNotifications', 'mailNotification', 'teamsNotifications', 'themes', 'webHooks', 'reporting', 'likes', 'confirmation', 'customLogo', 'customName', 'avatars', 'manualChannelSubscription', 'bannerImages', 'bannerVideos', 'editorInlineFiles', 'editorInlineImages', 'editorInlineGallery', 'editorInlineVideos', 'editorInlineMarkup', 'editorInlineTable', 'editorInlineContact', 'expiryDate', 'onBehalfOf', 'editorConversations', 'targetAudienceRules', 'unreadTracking', 'editorInlineQuotes', 'selfRegistration', 'people', 'posts', 'newsAlerts', 'pages', 'inPageNavigation', 'automaticTranslation', 'polls', 'events', 'teams', 'userInvitation', 'languageDetection', 'postKeywords', 'hyperfish', 'canva', 'allowUserImpersonation', 'directoryGroupMemberCaching', 'inAppBrowser', 'externalNews', 'termsAndConditions', 'chat', 'recurringEvents', 'publicAccess', 'allowUserPropertiesUpdate', 'showMyNews', 'allowToUnpinMandatoryChannels', 'allowToReorderMandatoryChannels', 'useDirectoryUserPropertiesForTargetAudience', 'giphy', 'replyToComments', 'enableUserflow', 'reportingPreview', 'preventContentRedirectForBrandedApps', 'browserPushNotifications', 'contentHeadline', 'popularNewsReport', 'notificationFeed', 'unsplash', 'externalPages', 'showLikers', 'pageDocuments', 'unifiedPostView', 'stream', 'showAllNews', 'customFavicon', 'editorPreview', 'editorAutomaticTranslation', 'editorYouTubeVideos', 'editorVimeoVideos', 'editorKalturaVideos', 'editorMicrosoftVideos', 'searchEverywhere']; // ########### WARNING #############
50937
+ var orderedFeatureSet = ['news', 'comments', 'multiLanguage', 'keywords', 'pushNotifications', 'mailNotification', 'teamsNotifications', 'themes', 'webHooks', 'reporting', 'likes', 'confirmation', 'customLogo', 'customName', 'avatars', 'manualChannelSubscription', 'bannerImages', 'bannerVideos', 'editorInlineFiles', 'editorInlineImages', 'editorInlineGallery', 'editorInlineVideos', 'editorInlineMarkup', 'editorInlineTable', 'editorInlineContact', 'expiryDate', 'onBehalfOf', 'editorConversations', 'targetAudienceRules', 'unreadTracking', 'editorInlineQuotes', 'selfRegistration', 'people', 'posts', 'newsAlerts', 'pages', 'inPageNavigation', 'automaticTranslation', 'polls', 'events', 'teams', 'userInvitation', 'languageDetection', 'postKeywords', 'hyperfish', 'canva', 'allowUserImpersonation', 'directoryGroupMemberCaching', 'inAppBrowser', 'externalNews', 'termsAndConditions', 'chat', 'recurringEvents', 'publicAccess', 'allowUserPropertiesUpdate', 'showMyNews', 'allowToUnpinMandatoryChannels', 'allowToReorderMandatoryChannels', 'useDirectoryUserPropertiesForTargetAudience', 'giphy', 'replyToComments', 'enableUserflow', 'reportingPreview', 'preventContentRedirectForBrandedApps', 'browserPushNotifications', 'contentHeadline', 'popularNewsReport', 'notificationFeed', 'unsplash', 'externalPages', 'showLikers', 'pageDocuments', 'unifiedPostView', 'stream', 'showAllNews', 'customFavicon', 'editorPreview', 'editorAutomaticTranslation', 'editorYouTubeVideos', 'editorVimeoVideos', 'editorKalturaVideos', 'editorMicrosoftVideos', 'searchEverywhere', 'zendesk']; // ########### WARNING #############
50938
50938
  // ORDER MATTERS - must always be the same as in the API
50939
50939
 
50940
50940
  var FeatureSet =
@@ -50957,7 +50957,7 @@ function useCurrentUser() {
50957
50957
 
50958
50958
  function useFeatures() {
50959
50959
  var user = useCurrentUser();
50960
- return getEnabledFeatures(user.subscription);
50960
+ return getEnabledFeatures(user === null || user === void 0 ? void 0 : user.subscription);
50961
50961
  }
50962
50962
 
50963
50963
  function getEnabledFeatures(summary) {
@@ -50965,6 +50965,10 @@ function getEnabledFeatures(summary) {
50965
50965
 
50966
50966
  var features = new FeatureSet();
50967
50967
 
50968
+ if (!summary) {
50969
+ return features;
50970
+ }
50971
+
50968
50972
  for (var i = 0; i < orderedFeatureSet.length; i++) {
50969
50973
  var featureName = orderedFeatureSet[i];
50970
50974
 
@@ -87419,9 +87423,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
87419
87423
  }), void 0);
87420
87424
  };
87421
87425
 
87422
- var version$1 = "0.4.0-preview.156";
87423
- var buildId = "97419";
87424
- var commitId = "2ab6129e7293d2ef7af6bf80090d3b050249d4f6";
87426
+ var version$1 = "0.4.0-preview.158";
87427
+ var buildId = "97431";
87428
+ var commitId = "aac504c1e2ebb4e532ae7cde89547859b38ab84a";
87425
87429
  var isCustomerBuild = false;
87426
87430
  var buildInfo = {
87427
87431
  version: version$1,
package/index.umd.js CHANGED
@@ -50791,7 +50791,7 @@
50791
50791
  // ORDER MATTERS - must always be the same as in the API
50792
50792
 
50793
50793
 
50794
- var orderedFeatureSet = ['news', 'comments', 'multiLanguage', 'keywords', 'pushNotifications', 'mailNotification', 'teamsNotifications', 'themes', 'webHooks', 'reporting', 'likes', 'confirmation', 'customLogo', 'customName', 'avatars', 'manualChannelSubscription', 'bannerImages', 'bannerVideos', 'editorInlineFiles', 'editorInlineImages', 'editorInlineGallery', 'editorInlineVideos', 'editorInlineMarkup', 'editorInlineTable', 'editorInlineContact', 'expiryDate', 'onBehalfOf', 'editorConversations', 'targetAudienceRules', 'unreadTracking', 'editorInlineQuotes', 'selfRegistration', 'people', 'posts', 'newsAlerts', 'pages', 'inPageNavigation', 'automaticTranslation', 'polls', 'events', 'teams', 'userInvitation', 'languageDetection', 'postKeywords', 'hyperfish', 'canva', 'allowUserImpersonation', 'directoryGroupMemberCaching', 'inAppBrowser', 'externalNews', 'termsAndConditions', 'chat', 'recurringEvents', 'publicAccess', 'allowUserPropertiesUpdate', 'showMyNews', 'allowToUnpinMandatoryChannels', 'allowToReorderMandatoryChannels', 'useDirectoryUserPropertiesForTargetAudience', 'giphy', 'replyToComments', 'enableUserflow', 'reportingPreview', 'preventContentRedirectForBrandedApps', 'browserPushNotifications', 'contentHeadline', 'popularNewsReport', 'notificationFeed', 'unsplash', 'externalPages', 'showLikers', 'pageDocuments', 'unifiedPostView', 'stream', 'showAllNews', 'customFavicon', 'editorPreview', 'editorAutomaticTranslation', 'editorYouTubeVideos', 'editorVimeoVideos', 'editorKalturaVideos', 'editorMicrosoftVideos', 'searchEverywhere']; // ########### WARNING #############
50794
+ var orderedFeatureSet = ['news', 'comments', 'multiLanguage', 'keywords', 'pushNotifications', 'mailNotification', 'teamsNotifications', 'themes', 'webHooks', 'reporting', 'likes', 'confirmation', 'customLogo', 'customName', 'avatars', 'manualChannelSubscription', 'bannerImages', 'bannerVideos', 'editorInlineFiles', 'editorInlineImages', 'editorInlineGallery', 'editorInlineVideos', 'editorInlineMarkup', 'editorInlineTable', 'editorInlineContact', 'expiryDate', 'onBehalfOf', 'editorConversations', 'targetAudienceRules', 'unreadTracking', 'editorInlineQuotes', 'selfRegistration', 'people', 'posts', 'newsAlerts', 'pages', 'inPageNavigation', 'automaticTranslation', 'polls', 'events', 'teams', 'userInvitation', 'languageDetection', 'postKeywords', 'hyperfish', 'canva', 'allowUserImpersonation', 'directoryGroupMemberCaching', 'inAppBrowser', 'externalNews', 'termsAndConditions', 'chat', 'recurringEvents', 'publicAccess', 'allowUserPropertiesUpdate', 'showMyNews', 'allowToUnpinMandatoryChannels', 'allowToReorderMandatoryChannels', 'useDirectoryUserPropertiesForTargetAudience', 'giphy', 'replyToComments', 'enableUserflow', 'reportingPreview', 'preventContentRedirectForBrandedApps', 'browserPushNotifications', 'contentHeadline', 'popularNewsReport', 'notificationFeed', 'unsplash', 'externalPages', 'showLikers', 'pageDocuments', 'unifiedPostView', 'stream', 'showAllNews', 'customFavicon', 'editorPreview', 'editorAutomaticTranslation', 'editorYouTubeVideos', 'editorVimeoVideos', 'editorKalturaVideos', 'editorMicrosoftVideos', 'searchEverywhere', 'zendesk']; // ########### WARNING #############
50795
50795
  // ORDER MATTERS - must always be the same as in the API
50796
50796
 
50797
50797
  var FeatureSet =
@@ -50814,7 +50814,7 @@
50814
50814
 
50815
50815
  function useFeatures() {
50816
50816
  var user = useCurrentUser();
50817
- return getEnabledFeatures(user.subscription);
50817
+ return getEnabledFeatures(user === null || user === void 0 ? void 0 : user.subscription);
50818
50818
  }
50819
50819
 
50820
50820
  function getEnabledFeatures(summary) {
@@ -50822,6 +50822,10 @@
50822
50822
 
50823
50823
  var features = new FeatureSet();
50824
50824
 
50825
+ if (!summary) {
50826
+ return features;
50827
+ }
50828
+
50825
50829
  for (var i = 0; i < orderedFeatureSet.length; i++) {
50826
50830
  var featureName = orderedFeatureSet[i];
50827
50831
 
@@ -87276,9 +87280,9 @@
87276
87280
  }), void 0);
87277
87281
  };
87278
87282
 
87279
- var version$1 = "0.4.0-preview.156";
87280
- var buildId = "97419";
87281
- var commitId = "2ab6129e7293d2ef7af6bf80090d3b050249d4f6";
87283
+ var version$1 = "0.4.0-preview.158";
87284
+ var buildId = "97431";
87285
+ var commitId = "aac504c1e2ebb4e532ae7cde89547859b38ab84a";
87282
87286
  var isCustomerBuild = false;
87283
87287
  var buildInfo = {
87284
87288
  version: version$1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@livetiles/reach-components-react",
3
3
  "description": "Provides React components to consume LiveTiles Reach data",
4
- "version": "0.4.0-preview.156",
4
+ "version": "0.4.0-preview.158",
5
5
  "peerDependencies": {
6
6
  "react": "^16.14.0 || ^17",
7
7
  "react-dom": "^16.14.0 || ^17",