-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also broke out source maps and have added two useful commands to generate overviews of the provider.bundle.js file and all modules.
- Loading branch information
Showing
12 changed files
with
172 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
how-to/workspace-platform-starter/client/src/framework/fdc3/errors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** Constants representing the errors that can be encountered when calling the `open` method on the DesktopAgent object (`fdc3`). */ | ||
export const OPEN_ERROR = { | ||
/** Returned if the specified application is not found.*/ | ||
AppNotFound: "AppNotFound", | ||
/** Returned if the specified application fails to launch correctly.*/ | ||
ErrorOnLaunch: "ErrorOnLaunch", | ||
/** Returned if the specified application launches but fails to add a context listener in order to receive the context passed to the `fdc3.open` call.*/ | ||
AppTimeout: "AppTimeout", | ||
/** Returned if the FDC3 desktop agent implementation is not currently able to handle the request.*/ | ||
ResolverUnavailable: "ResolverUnavailable", | ||
/** Returned if a call to the `open` function is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/ | ||
MalformedContext: "MalformedContext" | ||
}; | ||
/** Constants representing the errors that can be encountered when calling the `findIntent`, `findIntentsByContext`, `raiseIntent` or `raiseIntentForContext` methods on the DesktopAgent (`fdc3`). */ | ||
export const RESOLVE_ERROR = { | ||
/** SHOULD be returned if no apps are available that can resolve the intent and context combination.*/ | ||
NoAppsFound: "NoAppsFound", | ||
/** Returned if the FDC3 desktop agent implementation is not currently able to handle the request.*/ | ||
ResolverUnavailable: "ResolverUnavailable", | ||
/** Returned if the user cancelled the resolution request, for example by closing or cancelling a resolver UI.*/ | ||
UserCancelled: "UserCancelledResolution", | ||
/** SHOULD be returned if a timeout cancels an intent resolution that required user interaction. Please use `ResolverUnavailable` instead for situations where a resolver UI or similar fails.*/ | ||
ResolverTimeout: "ResolverTimeout", | ||
/** Returned if a specified target application is not available or a new instance of it cannot be opened. */ | ||
TargetAppUnavailable: "TargetAppUnavailable", | ||
/** Returned if a specified target application instance is not available, for example because it has been closed. */ | ||
TargetInstanceUnavailable: "TargetInstanceUnavailable", | ||
/** Returned if the intent and context could not be delivered to the selected application or instance, for example because it has not added an intent handler within a timeout.*/ | ||
IntentDeliveryFailed: "IntentDeliveryFailed", | ||
/** Returned if a call to one of the `raiseIntent` functions is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/ | ||
MalformedContext: "MalformedContext" | ||
}; |
3 changes: 2 additions & 1 deletion
3
...space-platform-starter/client/src/framework/platform/broker/client-registration-helper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...workspace-platform-starter/client/src/framework/platform/broker/intent-resolver-helper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.