Skip to content

Commit

Permalink
chore: import esse from commit hash with updated
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Apr 9, 2024
1 parent e85ab81 commit 6519e28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions dist/other/iframe-messaging/IframeToFromHostMessageHandler.js
@@ -1,9 +1,10 @@
import { Action as ActionEnum, Type as TypeEnum, } from "@mat3ra/esse/dist/js/types";
class IframeToFromHostMessageHandler {
constructor() {
this.handlers = {
["get-data" /* ActionEnum.getData */]: [],
["set-data" /* ActionEnum.setData */]: [],
["info" /* ActionEnum.info */]: [],
[ActionEnum.getData]: [],
[ActionEnum.setData]: [],
[ActionEnum.info]: [],
};
// Default values for the origin URLs to pass the CORS policy, if not provided from the parent component
this.iframeOriginURL = "*";
Expand All @@ -16,7 +17,7 @@ class IframeToFromHostMessageHandler {
event.origin !== this.hostOriginURL) {
return;
}
if (event.data.type === "from-iframe-to-host" /* TypeEnum.fromIframeToHost */) {
if (event.data.type === TypeEnum.fromIframeToHost) {
const { action, payload } = event.data;
if (this.handlers[action]) {
this.handlers[action].forEach((handler) => {
Expand Down Expand Up @@ -52,7 +53,7 @@ class IframeToFromHostMessageHandler {
}
sendData(data) {
const message = {
type: "from-host-to-iframe" /* TypeEnum.fromHostToIframe */,
type: TypeEnum.fromHostToIframe,
action: "set-data",
payload: data,
};
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -78,7 +78,7 @@
"devDependencies": {
"@exabyte-io/eslint-config": "^2023.8.29-1",
"@mat3ra/code": "2024.3.25-3",
"@mat3ra/esse": "https://github.com/Exabyte-io/esse.git#22e5a36a03fa02de21eefe43186840a239e015de",
"@mat3ra/esse": "https://github.com/Exabyte-io/esse.git#39a2199aecf0c496a9c8fdb4786ca5042c05f65c",
"@mui/icons-material": "^5.11.9",
"@mui/lab": "^5.0.0-alpha.120",
"@mui/material": "^5.11.9",
Expand Down

0 comments on commit 6519e28

Please sign in to comment.