-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(checkout): CHECKOUT-7538 Introduce extension messenger and comma…
…nd handler (#2050) * feat(checkout): CHECKOUT-7538 Introduce extension messenger * feat(checkout): CHECKOUT-7538 Remove client side code * feat(checkout): CHECKOUT-7538 Remove unnecessary actions * feat(checkout): CHECKOUT-7538 Apply HostOriginEvent * feat(checkout): CHECKOUT-7538 Rework extensionMessenger * feat(checkout): CHECKOUT-7538 handleExtensionCommand * feat(checkout): CHECKOUT-7538 Rework extensionMessenger.listen() * feat(checkout): CHECKOUT-7538 Use ReadableCheckoutStore * feat(checkout): CHECKOUT-7538 Update import path
- Loading branch information
Showing
21 changed files
with
490 additions
and
76 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { InvalidExtensionConfigError } from './invalid-extension-config-error'; | ||
export { ExtensionNotFoundError } from './extension-not-found-error'; |
12 changes: 0 additions & 12 deletions
12
packages/core/src/extension/errors/invalid-extension-config-error.ts
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
packages/core/src/extension/errors/unsupported-extension-command-error.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,10 @@ | ||
import { StandardError } from '../../common/error/errors'; | ||
|
||
export class UnsupportedExtensionCommandError extends StandardError { | ||
constructor(message?: string) { | ||
super(message || 'Unable to proceed due to unsupported extension command.'); | ||
|
||
this.name = 'UnsupportedExtensionCommandError'; | ||
this.type = 'unsupported_extension_command_error'; | ||
} | ||
} |
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
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,3 @@ | ||
import { ExtensionOriginEvent } from './extension-origin-event'; | ||
|
||
export type ExtensionCommandHandler = (data: ExtensionOriginEvent) => void; |
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.