@finsemble/finsemble-ui 10.0.0-iocd.1 → 10.0.0-iocd.8
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/clients/authenticationClient.d.ts +1 -0
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +2 -0
- package/clients/authenticationClient.js.map +1 -1
- package/clients/dialogManagerClient.d.ts +3 -3
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +6 -6
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +1 -0
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +2 -0
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/searchClient.d.ts +1 -0
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +2 -0
- package/clients/searchClient.js.map +1 -1
- package/clients/windowClient.d.ts +8 -0
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +38 -0
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +4 -2
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +10 -7
- package/clients/workspaceClient.js.map +1 -1
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +1 -2
- package/common/Monitors.js.map +1 -1
- package/common/constants.d.ts +1 -0
- package/common/constants.d.ts.map +1 -1
- package/common/constants.js +1 -0
- package/common/constants.js.map +1 -1
- package/package.json +2 -3
- package/platform/services/Interop/modules/types.d.ts +1 -0
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.js +1 -0
- package/platform/services/systemManager/_constants.js.map +1 -1
- package/platform/services/systemManager/types.d.ts +1 -1
- package/platform/services/systemManager/types.d.ts.map +1 -1
- package/platform/services/systemManager/types.js.map +1 -1
- package/platform/services/window/types.d.ts +1 -0
- package/platform/services/window/types.d.ts.map +1 -1
- package/react/assets/css/advancedAppLauncher.css +65 -52
- package/react/components/favorites/FavoriteMaker.d.ts.map +1 -1
- package/react/components/favorites/FavoriteMaker.js +5 -3
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js +0 -12
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +5 -4
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +0 -1
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +2 -5
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/system/System.d.ts.map +1 -1
- package/react/components/system/System.js +20 -5
- package/react/components/system/System.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +1 -4
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js +14 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts +2 -0
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js +22 -8
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts +5 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js +57 -25
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js +22 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +3 -15
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js +11 -28
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js +2 -6
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +91 -44
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +0 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +0 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts +17 -0
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts.map +1 -0
- package/react/components/userPreferences/FinsembleUserPreferences.js +28 -0
- package/react/components/userPreferences/FinsembleUserPreferences.js.map +1 -0
- package/react/components/userPreferences/UserPreferences.d.ts +1 -1
- package/react/components/userPreferences/UserPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferences.js +8 -11
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts +9 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.d.ts +3 -14
- package/react/components/userPreferences/components/ContentSection.d.ts.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +0 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/content/General.d.ts +2 -1
- package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/General.js +11 -30
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -5
- package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +36 -53
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js +2 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts +2 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.js +5 -12
- package/react/components/userPreferences/components/general/ResetPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts +5 -5
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +30 -84
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/iocdUserPreferences.d.ts +17 -0
- package/react/components/userPreferences/iocdUserPreferences.d.ts.map +1 -0
- package/react/components/userPreferences/iocdUserPreferences.js +49 -0
- package/react/components/userPreferences/iocdUserPreferences.js.map +1 -0
- package/react/components/userPreferences/utils.d.ts +3 -0
- package/react/components/userPreferences/utils.d.ts.map +1 -0
- package/react/components/userPreferences/utils.js +11 -0
- package/react/components/userPreferences/utils.js.map +1 -0
- package/react/components/utils.d.ts +2 -2
- package/react/components/utils.d.ts.map +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.d.ts.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.js +7 -10
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js +6 -3
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useFavoritesShell.d.ts.map +1 -1
- package/react/hooks/useFavoritesShell.js +6 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/typedefs/FDC3/api/DesktopAgent.d.ts +7 -5
- package/typedefs/FDC3/api/DesktopAgent.d.ts.map +1 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts +2 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts.map +1 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts +2 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts.map +1 -1
- package/typedefs/FDC3/api/Methods.d.ts +19 -5
- package/typedefs/FDC3/api/Methods.d.ts.map +1 -1
- package/typedefs/FDC3/api/Methods.js +19 -3
- package/typedefs/FDC3/api/Methods.js.map +1 -1
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts +519 -306
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts.map +1 -1
- package/typedefs/FDC3/bridging/BridgingTypes.js +1372 -1386
- package/typedefs/FDC3/bridging/BridgingTypes.js.map +1 -1
- package/typedefs/FDC3/context/ContextType.d.ts +19 -1
- package/typedefs/FDC3/context/ContextType.d.ts.map +1 -1
- package/typedefs/FDC3/context/ContextType.js +7 -0
- package/typedefs/FDC3/context/ContextType.js.map +1 -1
- package/typedefs/FDC3/context/ContextTypes.d.ts +1373 -135
- package/typedefs/FDC3/context/ContextTypes.d.ts.map +1 -1
- package/typedefs/FDC3/context/ContextTypes.js +590 -508
- package/typedefs/FDC3/context/ContextTypes.js.map +1 -1
- package/typedefs/FDC3/intents/Intents.d.ts +15 -0
- package/typedefs/FDC3/intents/Intents.d.ts.map +1 -1
- package/typedefs/FDC3/intents/Intents.js +7 -0
- package/typedefs/FDC3/intents/Intents.js.map +1 -1
- package/typedefs/FDC3/internal/contextConfiguration.d.ts +2 -0
- package/typedefs/FDC3/internal/contextConfiguration.d.ts.map +1 -0
- package/typedefs/FDC3/internal/contextConfiguration.js +5 -0
- package/typedefs/FDC3/internal/contextConfiguration.js.map +1 -0
- package/typedefs/FDC3/internal/intentConfiguration.d.ts +2 -0
- package/typedefs/FDC3/internal/intentConfiguration.d.ts.map +1 -0
- package/typedefs/FDC3/internal/intentConfiguration.js +5 -0
- package/typedefs/FDC3/internal/intentConfiguration.js.map +1 -0
- package/typedefs/FDC3/internal/typeHelpers.d.ts +7 -0
- package/typedefs/FDC3/internal/typeHelpers.d.ts.map +1 -0
- package/typedefs/FDC3/internal/typeHelpers.js +5 -0
- package/typedefs/FDC3/internal/typeHelpers.js.map +1 -0
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.d.ts +0 -43
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.js +0 -123
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.d.ts +0 -26
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.js +0 -34
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts +0 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.js +0 -27
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDispatch } from "../components/FinsembleProvider";
|
|
2
2
|
import { FavoriteActions } from "../actions/favoriteActions";
|
|
3
3
|
import { useFavorites } from "./useFavorites";
|
|
4
|
-
import { useEffect } from "react";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
5
|
import { FEAGlobals } from "../../common/Globals";
|
|
6
6
|
let storageIsInitialized = false;
|
|
7
7
|
/**
|
|
@@ -9,6 +9,7 @@ let storageIsInitialized = false;
|
|
|
9
9
|
* and storage.
|
|
10
10
|
*/
|
|
11
11
|
export const useFavoritesShell = () => {
|
|
12
|
+
const [favouritesInitialized, setFavouritesInitialised] = useState(false);
|
|
12
13
|
const dispatch = useDispatch();
|
|
13
14
|
const { favorites, removeFavorite } = useFavorites();
|
|
14
15
|
// Ideally in the future the following function will be decoupled from implementation, allowing Favorites to generically dispatch actions.
|
|
@@ -59,10 +60,14 @@ export const useFavoritesShell = () => {
|
|
|
59
60
|
return FEAGlobals.FSBL.Clients.Logger.system.error(`Favorite Hook -> Failed to retrieve favorites from StorageClient: ${err}`);
|
|
60
61
|
}
|
|
61
62
|
dispatch(FavoriteActions.INITIALIZE_FAVORITES(data));
|
|
63
|
+
setFavouritesInitialised(true);
|
|
62
64
|
});
|
|
63
65
|
}, [dispatch]);
|
|
64
66
|
// When the list of favorite items change, we want to persist that data to the store.
|
|
65
67
|
useEffect(() => {
|
|
68
|
+
if (!favouritesInitialized) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
66
71
|
FEAGlobals.FSBL.Clients.StorageClient.save({
|
|
67
72
|
topic: "favorites",
|
|
68
73
|
key: "allCurrentFavorites",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFavoritesShell.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useFavoritesShell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useFavoritesShell.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useFavoritesShell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;A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,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC,CAAC;IAEF;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,oBAAoB;YAAE,OAAO;QACjC,oBAAoB,GAAG,IAAI,CAAC;QAC5B,+DAA+D;QAC/D,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,eAAe,CACpD,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,qBAAqB,EAAE,EAClD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACb,IAAI,GAAG,EAAE;gBACR,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CACjD,qEAAqE,GAAG,EAAE,CAC1E,CAAC;aACF;YACD,QAAQ,CAAC,eAAe,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;YACrD,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CACD,CAAC;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,qFAAqF;IACrF,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,qBAAqB,EAAE;YAC3B,OAAO;SACP;QACD,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,qBAAqB;YAC1B,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO;QACN,SAAS;QACT,cAAc;QACd,eAAe;QACf,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -12,6 +12,8 @@ import { ImplementationMetadata } from './ImplementationMetadata';
|
|
|
12
12
|
import { PrivateChannel } from './PrivateChannel';
|
|
13
13
|
import { AppIdentifier } from './AppIdentifier';
|
|
14
14
|
import { AppMetadata } from './AppMetadata';
|
|
15
|
+
import { Intent } from '../intents/Intents';
|
|
16
|
+
import { ContextType } from '../context/ContextType';
|
|
15
17
|
/**
|
|
16
18
|
* A Desktop Agent is a desktop component (or aggregate of components) that serves as a
|
|
17
19
|
* launcher and message router (broker) for applications in its domain.
|
|
@@ -121,7 +123,7 @@ export interface DesktopAgent {
|
|
|
121
123
|
* // }
|
|
122
124
|
* ```
|
|
123
125
|
*/
|
|
124
|
-
findIntent(intent:
|
|
126
|
+
findIntent(intent: Intent, context?: Context, resultType?: string): Promise<AppIntent>;
|
|
125
127
|
/**
|
|
126
128
|
* Find all the available intents for a particular context, and optionally a desired result context type.
|
|
127
129
|
*
|
|
@@ -260,7 +262,7 @@ export interface DesktopAgent {
|
|
|
260
262
|
* }
|
|
261
263
|
* ```
|
|
262
264
|
*/
|
|
263
|
-
raiseIntent(intent:
|
|
265
|
+
raiseIntent(intent: Intent, context: Context, app?: AppIdentifier): Promise<IntentResolution>;
|
|
264
266
|
/**
|
|
265
267
|
* Finds and raises an intent against apps registered with the desktop agent based on the type of the specified context data example.
|
|
266
268
|
*
|
|
@@ -336,7 +338,7 @@ export interface DesktopAgent {
|
|
|
336
338
|
* });
|
|
337
339
|
* ```
|
|
338
340
|
*/
|
|
339
|
-
addIntentListener(intent:
|
|
341
|
+
addIntentListener(intent: Intent, handler: IntentHandler): Promise<Listener>;
|
|
340
342
|
/**
|
|
341
343
|
* Adds a listener for incoming context broadcasts from the Desktop Agent (via a User channel or `fdc3.open`API call. If the consumer is only interested in a context of a particular type, they can they can specify that type. If the consumer is able to receive context of any type or will inspect types received, then they can pass `null` as the `contextType` parameter to receive all context types.
|
|
342
344
|
*
|
|
@@ -360,7 +362,7 @@ export interface DesktopAgent {
|
|
|
360
362
|
* });
|
|
361
363
|
* ```
|
|
362
364
|
*/
|
|
363
|
-
addContextListener(contextType:
|
|
365
|
+
addContextListener(contextType: ContextType | null, handler: ContextHandler): Promise<Listener>;
|
|
364
366
|
/**
|
|
365
367
|
* Retrieves a list of the User channels available for the app to join.
|
|
366
368
|
*/
|
|
@@ -533,7 +535,7 @@ export interface DesktopAgent {
|
|
|
533
535
|
* await fdc3.raiseIntent("StartChat", context, appIntent.apps[0].name);
|
|
534
536
|
* ```
|
|
535
537
|
*/
|
|
536
|
-
raiseIntent(intent:
|
|
538
|
+
raiseIntent(intent: Intent, context: Context, name: string): Promise<IntentResolution>;
|
|
537
539
|
/**
|
|
538
540
|
* @deprecated version of `raiseIntentForContext` that targets an app by by name rather than `AppIdentifier`. Provided for backwards compatibility with versions FDC3 standard <2.0.
|
|
539
541
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopAgent.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/DesktopAgent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"DesktopAgent.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/DesktopAgent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WA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AO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAE7C;;;;;;;;;;;;;OAaG;IACH,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE3C;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAMzD;;;OAGG;IACH,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE/D;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7C;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;;;;OAOG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE9D;;;;;;;OAOG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEvF;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAClF"}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
* Copyright FINOS FDC3 contributors - see NOTICE file
|
|
4
4
|
*/
|
|
5
|
+
import { Intent } from '../intents/Intents';
|
|
5
6
|
/**
|
|
6
7
|
* Intent descriptor
|
|
7
8
|
*/
|
|
8
9
|
export interface IntentMetadata {
|
|
9
10
|
/** The unique name of the intent that can be invoked by the raiseIntent call */
|
|
10
|
-
readonly name:
|
|
11
|
+
readonly name: Intent;
|
|
11
12
|
/** Display name for the intent.
|
|
12
13
|
* @deprecated Use the intent name for display as display name may vary for
|
|
13
14
|
* each application as it is defined in the app's AppD record.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/IntentMetadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"IntentMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/IntentMetadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { IntentResult } from './Types';
|
|
6
6
|
import { AppIdentifier } from './AppIdentifier';
|
|
7
|
+
import { Intent } from '../intents/Intents';
|
|
7
8
|
/**
|
|
8
9
|
* IntentResolution provides a standard format for data returned upon resolving an intent.
|
|
9
10
|
*
|
|
@@ -41,7 +42,7 @@ export interface IntentResolution {
|
|
|
41
42
|
* The intent that was raised. May be used to determine which intent the user
|
|
42
43
|
* chose in response to `fdc3.raiseIntentForContext()`.
|
|
43
44
|
*/
|
|
44
|
-
readonly intent:
|
|
45
|
+
readonly intent: Intent;
|
|
45
46
|
/**
|
|
46
47
|
* The version number of the Intents schema being used.
|
|
47
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentResolution.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/IntentResolution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"IntentResolution.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/IntentResolution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;;;;;OAeG;IACH,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;CACpC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
* Copyright FINOS FDC3 contributors - see NOTICE file
|
|
4
|
+
*/
|
|
5
|
+
import { AppIdentifier, AppIntent, Channel, Context, ContextHandler, IntentHandler, IntentResolution, Listener, ImplementationMetadata, AppMetadata, PrivateChannel, Intent, StandardContextType, StandardIntent, ContextType } from '..';
|
|
2
6
|
/**
|
|
3
7
|
* Utility function that returns a promise that will resolve immeadiately
|
|
4
8
|
* if the desktop agent API is found at `window.fdc3`. If the API is found,
|
|
@@ -16,13 +20,13 @@ import { AppIdentifier, AppIntent, Channel, Context, ContextHandler, IntentHandl
|
|
|
16
20
|
*/
|
|
17
21
|
export declare const fdc3Ready: (waitForMs?: number) => Promise<void>;
|
|
18
22
|
export declare function open(app: AppIdentifier | string, context?: Context): Promise<AppIdentifier>;
|
|
19
|
-
export declare function findIntent(intent:
|
|
23
|
+
export declare function findIntent(intent: Intent, context?: Context, resultType?: string): Promise<AppIntent>;
|
|
20
24
|
export declare function findIntentsByContext(context: Context, resultType?: string): Promise<AppIntent[]>;
|
|
21
25
|
export declare function broadcast(context: Context): Promise<void>;
|
|
22
|
-
export declare function raiseIntent(intent:
|
|
26
|
+
export declare function raiseIntent(intent: Intent, context: Context, app?: AppIdentifier | string): Promise<IntentResolution>;
|
|
23
27
|
export declare function raiseIntentForContext(context: Context, app?: AppIdentifier | string): Promise<IntentResolution>;
|
|
24
|
-
export declare function addIntentListener(intent:
|
|
25
|
-
export declare function addContextListener(contextTypeOrHandler:
|
|
28
|
+
export declare function addIntentListener(intent: Intent, handler: IntentHandler): Promise<Listener>;
|
|
29
|
+
export declare function addContextListener(contextTypeOrHandler: ContextType | null | ContextHandler, handler?: ContextHandler): Promise<Listener>;
|
|
26
30
|
export declare function getUserChannels(): Promise<Channel[]>;
|
|
27
31
|
export declare function getSystemChannels(): Promise<Channel[]>;
|
|
28
32
|
export declare function joinUserChannel(channelId: string): Promise<void>;
|
|
@@ -34,6 +38,16 @@ export declare function createPrivateChannel(): Promise<PrivateChannel>;
|
|
|
34
38
|
export declare function getInfo(): Promise<ImplementationMetadata>;
|
|
35
39
|
export declare function getAppMetadata(app: AppIdentifier): Promise<AppMetadata>;
|
|
36
40
|
export declare function findInstances(app: AppIdentifier): Promise<AppIdentifier[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Check if the given context is a standard context type.
|
|
43
|
+
* @param contextType
|
|
44
|
+
*/
|
|
45
|
+
export declare function isStandardContextType(contextType: ContextType): contextType is StandardContextType;
|
|
46
|
+
/**
|
|
47
|
+
* Check if the given intent is a standard intent.
|
|
48
|
+
* @param intent
|
|
49
|
+
*/
|
|
50
|
+
export declare function isStandardIntent(intent: Intent): intent is StandardIntent;
|
|
37
51
|
/**
|
|
38
52
|
* Compare numeric semver version number strings (in the form `1.2.3`).
|
|
39
53
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Methods.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/Methods.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,EACtB,WAAW,EACX,cAAc,
|
|
1
|
+
{"version":3,"file":"Methods.d.ts","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/Methods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,EACtB,WAAW,EACX,cAAc,EACd,MAAM,EACN,mBAAmB,EACnB,cAAc,EACd,WAAW,EACZ,MAAM,IAAI,CAAC;AAcZ;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,0BAAwC,QAAQ,IAAI,CAmBzE,CAAC;AAMF,wBAAgB,IAAI,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAM3F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAErG;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,C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zD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAEvE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAE1E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,IAAI,mBAAmB,CAElG;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,IAkBtE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAAC,QAAQ,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,IAM/F,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { StandardContextsSet } from '../internal/contextConfiguration';
|
|
2
|
+
import { StandardIntentsSet } from '../internal/intentConfiguration';
|
|
1
3
|
const DEFAULT_TIMEOUT = 5000;
|
|
2
4
|
const UnavailableError = new Error('FDC3 DesktopAgent not available at `window.fdc3`.');
|
|
3
5
|
const TimeoutError = new Error('Timed out waiting for `fdc3Ready` event.');
|
|
@@ -136,6 +138,20 @@ export function getAppMetadata(app) {
|
|
|
136
138
|
export function findInstances(app) {
|
|
137
139
|
return rejectIfNoGlobal(() => window.fdc3.findInstances(app));
|
|
138
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Check if the given context is a standard context type.
|
|
143
|
+
* @param contextType
|
|
144
|
+
*/
|
|
145
|
+
export function isStandardContextType(contextType) {
|
|
146
|
+
return StandardContextsSet.has(contextType);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Check if the given intent is a standard intent.
|
|
150
|
+
* @param intent
|
|
151
|
+
*/
|
|
152
|
+
export function isStandardIntent(intent) {
|
|
153
|
+
return StandardIntentsSet.has(intent);
|
|
154
|
+
}
|
|
139
155
|
/**
|
|
140
156
|
* Compare numeric semver version number strings (in the form `1.2.3`).
|
|
141
157
|
*
|
|
@@ -148,8 +164,8 @@ export function findInstances(app) {
|
|
|
148
164
|
*/
|
|
149
165
|
export const compareVersionNumbers = (a, b) => {
|
|
150
166
|
try {
|
|
151
|
-
|
|
152
|
-
|
|
167
|
+
const aVerArr = a.split('.').map(Number);
|
|
168
|
+
const bVerArr = b.split('.').map(Number);
|
|
153
169
|
for (let index = 0; index < Math.max(aVerArr.length, bVerArr.length); index++) {
|
|
154
170
|
/* If one version number has more digits and the other does not, and they are otherwise equal,
|
|
155
171
|
assume the longer is greater. E.g. 1.1.1 > 1.1 */
|
|
@@ -177,7 +193,7 @@ export const compareVersionNumbers = (a, b) => {
|
|
|
177
193
|
* @param version
|
|
178
194
|
*/
|
|
179
195
|
export const versionIsAtLeast = (metadata, version) => {
|
|
180
|
-
|
|
196
|
+
const comparison = compareVersionNumbers(metadata.fdc3Version, version);
|
|
181
197
|
return comparison === null ? null : comparison >= 0 ? true : false;
|
|
182
198
|
};
|
|
183
199
|
//# sourceMappingURL=Methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Methods.js","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/Methods.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Methods.js","sourceRoot":"","sources":["../../../../../src/typedefs/FDC3/api/Methods.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,MAAM,gBAAgB,GAAG,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;AACxF,MAAM,YAAY,GAA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