@openfin/workspace 24.0.18 → 24.0.19

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/notifications.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={78(e,t,n){n.d(t,{XI:()=>r,kz:()=>s});var a=n(438),o=(n(102),n(70));const r="of-workspace-notifications-sync";var i;async function s(){const e=await async function(){try{const e=await(0,a.S8)(),t=e?.notifications?.customManifest?.manifestUuid;return t||o.ct.uuid}catch(e){return console.warn("Could not get manifest options for notifications, defaulting to standard notification center uuid.",e),o.ct.uuid}}();return e!==o.ct.uuid?`${e}-${r}`:r}!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(i||(i={}))},79(e,t,n){var a;n.d(t,{N:()=>i,OF:()=>a}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetGeneratedPalettes="getGeneratedPalettes",e.GetThemePaletteSheet="getThemePaletteSheet",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal",e.ShowApplyAndPublishModalInternal="showApplyAndPublishModalInternal",e.GetNotificationIndicatorColorsInternal="getNotificationIndicatorColorsInternal",e.GetIsLegacySinglePaletteTheme="getIsLegacySinglePaletteTheme",e.GetLegacyNotificationsThemeInternal="getLegacyNotificationsThemeInternal"}(a||(a={}));const o=async e=>fin.Platform.wrapSync(e).getClient(),r=async e=>{const t=await o(e),n="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let a;try{a=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(n)}if("boolean"==typeof a&&a)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),a;if("object"==typeof a&&a.isWorkspacePlatform)return a;throw new Error(n)},i=async e=>(await r(e),o(e))},438(e,t,n){n.d(t,{MW:()=>a,S8:()=>s});var a,o,r=n(723);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(a||(a={})),function(e){e.FinProtocol="fin-protocol"}(o||(o={}));r.$h,a.Workspace;let i=null;const s=async()=>(i||(i=fin.Application.getCurrentSync().getManifest()),i)},102(e,t,n){n(723).YY&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}))},723(e,t,n){var a;n.d(t,{$h:()=>s,YY:()=>r,et:()=>l,vL:()=>c}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(a||(a={}));const o="undefined"!=typeof window&&"undefined"!=typeof fin,r=("undefined"==typeof process||process.env,"undefined"!=typeof window),i=r?window.origin:a.Local,s=o&&fin.me.uuid,c=o&&fin.me.name,d=(o&&fin.me.entityType,a.Local,a.Dev,a.Staging,a.Prod,e=>e.startsWith("http://")||e.startsWith("https://")?e:i+e),l=(d("https://workspace.openfin.co/workspace/24.0.18"),d("https://workspace.openfin.co/workspace/24.0.18"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&d(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&d(WORKSPACE_DOCS_CLIENT_URL),"24.0.18");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},277(e,t,n){n.d(t,{os:()=>i});var a,o=n(723);n(70);!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(a||(a={}));const r=async(e,t,n="workspace-licensing")=>{const a={apiVersion:t.apiVersion||o.et,componentName:e,componentVersion:t.componentVersion||o.et,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:a})};const i=e=>{r(a.Notification,e)};new Map},70(e,t,n){n.d(t,{ct:()=>i});n(78);var a,o=n(438),r=n(723);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.TabSearchMenu="openfin-browser-tab-search-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.ApplyAndPublishModal="here-apply-and-publish-modal",e.PublishOnCloseModal="here-publish-on-close-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(a||(a={}));r.vL,r.$h;a.Home,o.MW.Workspace,a.Dock,o.MW.Workspace;const i={name:"Notification-Center",uuid:"notifications-service"};a.Storefront,o.MW.Workspace,o.MW.Workspace,o.MW.Workspace},812(e){e.exports=require("@openfin/notifications")}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{deregister:()=>v,isLegacyNotifications:()=>f,register:()=>m});var o=n(277),r=n(78),i=n(79),s=n(812),c={};for(const e in s)["default","isLegacyNotifications","register","deregister"].indexOf(e)<0&&(c[e]=()=>s[e]);n.d(a,c);const d=async e=>{if(e instanceof Error){let t=e.message;if(e.message.includes("register-notifications-platform")){if(t="Notifications platforms are not supported in versions below 1.13.0, try updating your notifications-service.",s?.provider?.getStatus){const{version:e}=await s.provider.getStatus();t+=` Your version is: ${e}`}return t}return e.message}return"string"==typeof e?e:"unknown error registering Notifications"},l=async e=>{if(e instanceof Error&&e.message.includes("register-notifications-platform"))throw new Error(await d(e));throw e},p="of-notifications-service-v1",f=e=>{const[t,n]=e.split(".").map(Number);return t<2||2===t&&n<=13},u={channelName:r.XI},g=async(e,t,n=!1)=>{const a=t.notificationsVersion.startsWith("2")?u.channelName:p,o=await fin.InterApplicationBus.Channel.connect(a,{wait:n}),r=t.notificationsVersion.startsWith("2")?"register-platform":"register-notifications-platform";await o.dispatch(r,e)};async function m(e){try{const t=await(0,r.kz)(),n=e&&"notificationsCustomManifest"in e?{customManifest:e.notificationsCustomManifest}:void 0;let a=!1;t!==r.XI?(u.channelName=t,a=!0):n&&n.customManifest?.manifestUuid&&(u.channelName=`${n.customManifest.manifestUuid}-${r.XI}`,console.warn("Using 'notificationsCustomManifest' is deprecated. Please include custom manifest in platform manifest."));const c=await s.register(n),d=await(0,i.N)(fin.me.identity),l=await d.dispatch(i.OF.GetThemePaletteSheet,void 0),p=await d.dispatch(i.OF.GetNotificationIndicatorColorsInternal,void 0);if(e){const t=await d.dispatch(i.OF.GetSelectedScheme,void 0),n=f(c.notificationsVersion),o=n?await d.dispatch(i.OF.GetLegacyNotificationsThemeInternal,void 0):null,r="notificationsPlatformOptions"in e?e.notificationsPlatformOptions:e,s=o??l;await g({theme:s,...n?{}:{notificationsIndicatorColors:p},scheme:t,...r,workspacePlatform:{identity:fin.Platform.getCurrentSync().identity,analytics:{isSupported:!0}}},{notificationsVersion:c.notificationsVersion},a)}return(0,o.os)({allowed:!0,apiVersion:s.VERSION,componentVersion:c.notificationsVersion}),c}catch(e){(0,o.os)({allowed:!1,rejectionCode:await d(e),apiVersion:s.VERSION}),await l(e)}}const v=async e=>{try{const{version:t}=await s.provider.getStatus();if(null===t)throw new Error("Notifications service is not currently running.");await(async(e,t)=>{const n=t.notificationsVersion.startsWith("2")?u.channelName:p,a=await fin.InterApplicationBus.Channel.connect(n,{wait:!1}),o=t.notificationsVersion.startsWith("2")?"deregister-platform":"deregister-notifications-platform";await a.dispatch(o,e)})({id:e},{notificationsVersion:t})}catch(e){await l(e)}};module.exports=a})();
1
+ (()=>{"use strict";var e={78(e,t,n){n.d(t,{XI:()=>r,kz:()=>s});var a=n(438),o=(n(102),n(70));const r="of-workspace-notifications-sync";var i;async function s(){const e=await async function(){try{const e=await(0,a.S8)(),t=e?.notifications?.customManifest?.manifestUuid;return t||o.ct.uuid}catch(e){return console.warn("Could not get manifest options for notifications, defaulting to standard notification center uuid.",e),o.ct.uuid}}();return e!==o.ct.uuid?`${e}-${r}`:r}!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(i||(i={}))},79(e,t,n){var a;n.d(t,{N:()=>i,OF:()=>a}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetGeneratedPalettes="getGeneratedPalettes",e.GetThemePaletteSheet="getThemePaletteSheet",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal",e.ShowApplyAndPublishModalInternal="showApplyAndPublishModalInternal",e.GetNotificationIndicatorColorsInternal="getNotificationIndicatorColorsInternal",e.GetIsLegacySinglePaletteTheme="getIsLegacySinglePaletteTheme",e.GetLegacyNotificationsThemeInternal="getLegacyNotificationsThemeInternal"}(a||(a={}));const o=async e=>fin.Platform.wrapSync(e).getClient(),r=async e=>{const t=await o(e),n="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let a;try{a=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(n)}if("boolean"==typeof a&&a)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),a;if("object"==typeof a&&a.isWorkspacePlatform)return a;throw new Error(n)},i=async e=>(await r(e),o(e))},438(e,t,n){n.d(t,{MW:()=>a,S8:()=>s});var a,o,r=n(723);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(a||(a={})),function(e){e.FinProtocol="fin-protocol"}(o||(o={}));r.$h,a.Workspace;let i=null;const s=async()=>(i||(i=fin.Application.getCurrentSync().getManifest()),i)},102(e,t,n){n(723).YY&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}))},723(e,t,n){var a;n.d(t,{$h:()=>s,YY:()=>r,et:()=>l,vL:()=>c}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(a||(a={}));const o="undefined"!=typeof window&&"undefined"!=typeof fin,r=("undefined"==typeof process||process.env,"undefined"!=typeof window),i=r?window.origin:a.Local,s=o&&fin.me.uuid,c=o&&fin.me.name,d=(o&&fin.me.entityType,a.Local,a.Dev,a.Staging,a.Prod,e=>e.startsWith("http://")||e.startsWith("https://")?e:i+e),l=(d("https://workspace.openfin.co/workspace/24.0.19"),d("https://workspace.openfin.co/workspace/24.0.19"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&d(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&d(WORKSPACE_DOCS_CLIENT_URL),"24.0.19");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},277(e,t,n){n.d(t,{os:()=>i});var a,o=n(723);n(70);!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(a||(a={}));const r=async(e,t,n="workspace-licensing")=>{const a={apiVersion:t.apiVersion||o.et,componentName:e,componentVersion:t.componentVersion||o.et,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:a})};const i=e=>{r(a.Notification,e)};new Map},70(e,t,n){n.d(t,{ct:()=>i});n(78);var a,o=n(438),r=n(723);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.TabSearchMenu="openfin-browser-tab-search-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.ApplyAndPublishModal="here-apply-and-publish-modal",e.PublishOnCloseModal="here-publish-on-close-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(a||(a={}));r.vL,r.$h;a.Home,o.MW.Workspace,a.Dock,o.MW.Workspace;const i={name:"Notification-Center",uuid:"notifications-service"};a.Storefront,o.MW.Workspace,o.MW.Workspace,o.MW.Workspace},812(e){e.exports=require("@openfin/notifications")}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{deregister:()=>v,isLegacyNotifications:()=>f,register:()=>m});var o=n(277),r=n(78),i=n(79),s=n(812),c={};for(const e in s)["default","isLegacyNotifications","register","deregister"].indexOf(e)<0&&(c[e]=()=>s[e]);n.d(a,c);const d=async e=>{if(e instanceof Error){let t=e.message;if(e.message.includes("register-notifications-platform")){if(t="Notifications platforms are not supported in versions below 1.13.0, try updating your notifications-service.",s?.provider?.getStatus){const{version:e}=await s.provider.getStatus();t+=` Your version is: ${e}`}return t}return e.message}return"string"==typeof e?e:"unknown error registering Notifications"},l=async e=>{if(e instanceof Error&&e.message.includes("register-notifications-platform"))throw new Error(await d(e));throw e},p="of-notifications-service-v1",f=e=>{const[t,n]=e.split(".").map(Number);return t<2||2===t&&n<=13},u={channelName:r.XI},g=async(e,t,n=!1)=>{const a=t.notificationsVersion.startsWith("2")?u.channelName:p,o=await fin.InterApplicationBus.Channel.connect(a,{wait:n}),r=t.notificationsVersion.startsWith("2")?"register-platform":"register-notifications-platform";await o.dispatch(r,e)};async function m(e){try{const t=await(0,r.kz)(),n=e&&"notificationsCustomManifest"in e?{customManifest:e.notificationsCustomManifest}:void 0;let a=!1;t!==r.XI?(u.channelName=t,a=!0):n&&n.customManifest?.manifestUuid&&(u.channelName=`${n.customManifest.manifestUuid}-${r.XI}`,console.warn("Using 'notificationsCustomManifest' is deprecated. Please include custom manifest in platform manifest."));const c=await s.register(n),d=await(0,i.N)(fin.me.identity),l=await d.dispatch(i.OF.GetThemePaletteSheet,void 0),p=await d.dispatch(i.OF.GetNotificationIndicatorColorsInternal,void 0);if(e){const t=await d.dispatch(i.OF.GetSelectedScheme,void 0),n=f(c.notificationsVersion),o=n?await d.dispatch(i.OF.GetLegacyNotificationsThemeInternal,void 0):null,r="notificationsPlatformOptions"in e?e.notificationsPlatformOptions:e,s=o??l;await g({theme:s,...n?{}:{notificationsIndicatorColors:p},scheme:t,...r,workspacePlatform:{identity:fin.Platform.getCurrentSync().identity,analytics:{isSupported:!0}}},{notificationsVersion:c.notificationsVersion},a)}return(0,o.os)({allowed:!0,apiVersion:s.VERSION,componentVersion:c.notificationsVersion}),c}catch(e){(0,o.os)({allowed:!1,rejectionCode:await d(e),apiVersion:s.VERSION}),await l(e)}}const v=async e=>{try{const{version:t}=await s.provider.getStatus();if(null===t)throw new Error("Notifications service is not currently running.");await(async(e,t)=>{const n=t.notificationsVersion.startsWith("2")?u.channelName:p,a=await fin.InterApplicationBus.Channel.connect(n,{wait:!1}),o=t.notificationsVersion.startsWith("2")?"deregister-platform":"deregister-notifications-platform";await a.dispatch(o,e)})({id:e},{notificationsVersion:t})}catch(e){await l(e)}};module.exports=a})();
2
2
  //# sourceMappingURL=notifications.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openfin/workspace",
3
3
  "description": "An API for integrating with OpenFin Workspace.",
4
4
  "main": "index.js",
5
- "version": "24.0.18",
5
+ "version": "24.0.19",
6
6
  "sideEffects": false,
7
7
  "keywords": [
8
8
  "client api"
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@openfin/microsoft365": "^1.1.0",
16
- "@openfin/notifications": "2.15.0-alpha-4794",
16
+ "@openfin/notifications": "2.15.0",
17
17
  "dexie": "^4.0.11",
18
18
  "i18next": "^23.7.16",
19
- "lodash.debounce": "^4.0.8",
20
19
  "lodash.clonedeep": "4.5.0",
20
+ "lodash.debounce": "^4.0.8",
21
21
  "react-i18next": "15.4.0",
22
22
  "title-case": "3.0.3"
23
23
  }