Skip to content

Commit

Permalink
update: reexport enums
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Apr 6, 2024
1 parent afa6ad0 commit 8159649
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/other/jupyterlite/JupyterLiteSession.d.ts
@@ -1,6 +1,7 @@
import { IframeMessageSchema } from "@mat3ra/esse/dist/js/types";
import React from "react";
import IframeToFromHostMessageHandler from "../iframe-messaging/IframeToFromHostMessageHandler";
export { ActionEnum } from "../iframe-messaging/IframeToFromHostMessageHandler";
export interface IMessageHandlerConfigItem {
action: IframeMessageSchema["action"];
handlers: ((...args: any[]) => void)[];
Expand Down
1 change: 1 addition & 0 deletions dist/other/jupyterlite/JupyterLiteSession.js
@@ -1,5 +1,6 @@
import React from "react";
import IframeToFromHostMessageHandler from "../iframe-messaging/IframeToFromHostMessageHandler";
export { ActionEnum } from "../iframe-messaging/IframeToFromHostMessageHandler";
const defaultProps = {
// eslint-disable-next-line react/default-props-match-prop-types
originURL: "https://jupyterlite.mat3ra.com",
Expand Down
Expand Up @@ -5,6 +5,7 @@ type HandlerFunction = (...args: IframeMessageSchema["payload"][]) => void | any
type HandlersMap = {
[action in IframeMessageSchema["action"]]: HandlerFunction[];
};

export enum ActionEnum {
GetData = "get-data",
SetData = "set-data",
Expand Down
2 changes: 2 additions & 0 deletions src/other/jupyterlite/JupyterLiteSession.tsx
Expand Up @@ -3,6 +3,8 @@ import React from "react";

import IframeToFromHostMessageHandler from "../iframe-messaging/IframeToFromHostMessageHandler";

export { ActionEnum } from "../iframe-messaging/IframeToFromHostMessageHandler";

export interface IMessageHandlerConfigItem {
action: IframeMessageSchema["action"];
handlers: ((...args: any[]) => void)[];
Expand Down

0 comments on commit 8159649

Please sign in to comment.