@nteract/types
Advanced tools
Comparing version 4.2.1 to 4.3.0
@@ -10,3 +10,3 @@ /** | ||
import * as Immutable from "immutable"; | ||
import { KernelRef } from "../.."; | ||
import { InputRequestMessage, KernelRef } from "../.."; | ||
export interface BookstoreDataModel { | ||
@@ -56,2 +56,3 @@ /** | ||
cellPagers: any; | ||
cellPrompts: Immutable.Map<CellId, InputRequestMessage>; | ||
editorFocused?: CellId | null; | ||
@@ -58,0 +59,0 @@ cellFocused?: CellId | null; |
@@ -27,2 +27,3 @@ "use strict"; | ||
cellPagers: Immutable.Map(), | ||
cellPrompts: Immutable.Map(), | ||
editorFocused: null, | ||
@@ -29,0 +30,0 @@ cellFocused: null, |
@@ -21,2 +21,18 @@ /// <reference types="node" /> | ||
export declare const makeKernelNotStartedRecord: Immutable.Record.Factory<KernelNotStartedProps>; | ||
export declare enum KernelStatus { | ||
/** Kernel is currently executing code. */ | ||
Busy = "busy", | ||
/** Kernel is currently not executing code. */ | ||
Idle = "idle", | ||
/** Kernel process is being launched. */ | ||
Starting = "starting", | ||
/** Kernel is being shut down. */ | ||
ShuttingDown = "shutting down", | ||
/** Kernel is restarting. */ | ||
Restarting = "restarting", | ||
/** Kernel's current execution process has been interrupted. */ | ||
Interrupted = "interrupted", | ||
/** Kernel is not connected to current notebook. */ | ||
NotConnected = "not connected" | ||
} | ||
export interface LocalKernelProps { | ||
@@ -23,0 +39,0 @@ kernelSpecName?: string | null; |
@@ -20,2 +20,19 @@ "use strict"; | ||
}); | ||
var KernelStatus; | ||
(function (KernelStatus) { | ||
/** Kernel is currently executing code. */ | ||
KernelStatus["Busy"] = "busy"; | ||
/** Kernel is currently not executing code. */ | ||
KernelStatus["Idle"] = "idle"; | ||
/** Kernel process is being launched. */ | ||
KernelStatus["Starting"] = "starting"; | ||
/** Kernel is being shut down. */ | ||
KernelStatus["ShuttingDown"] = "shutting down"; | ||
/** Kernel is restarting. */ | ||
KernelStatus["Restarting"] = "restarting"; | ||
/** Kernel's current execution process has been interrupted. */ | ||
KernelStatus["Interrupted"] = "interrupted"; | ||
/** Kernel is not connected to current notebook. */ | ||
KernelStatus["NotConnected"] = "not connected"; | ||
})(KernelStatus = exports.KernelStatus || (exports.KernelStatus = {})); | ||
exports.makeLocalKernelRecord = Immutable.Record({ | ||
@@ -22,0 +39,0 @@ type: "zeromq", |
@@ -62,2 +62,6 @@ /** | ||
} | ||
export interface InputRequestMessage { | ||
prompt: string; | ||
password: boolean; | ||
} | ||
export declare type PayloadMessage = PagePayloadMessage | SetNextInputPayloadMessage | EditPayloadMessage | AskExitPayloadMessage; | ||
@@ -64,0 +68,0 @@ export interface CommsRecordProps { |
{ | ||
"name": "@nteract/types", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "A collection of type definitions used within core nteract packages", | ||
@@ -21,3 +21,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "d79aa32a6da0b437afb230fe69068ab49b017389" | ||
"gitHead": "9d91e272e62d450647f01ec62747cbe2503e5fa9" | ||
} |
@@ -20,3 +20,3 @@ /** | ||
// Local modules | ||
import { KernelRef } from "../.."; | ||
import { InputRequestMessage, KernelRef } from "../.."; | ||
@@ -74,2 +74,3 @@ // The data model that `nteract/bookstore` accepts. For more info, see: | ||
cellPagers: any; | ||
cellPrompts: Immutable.Map<CellId, InputRequestMessage>; | ||
editorFocused?: CellId | null; | ||
@@ -89,2 +90,3 @@ cellFocused?: CellId | null; | ||
cellPagers: Immutable.Map(), | ||
cellPrompts: Immutable.Map(), | ||
editorFocused: null, | ||
@@ -91,0 +93,0 @@ cellFocused: null, |
@@ -43,2 +43,19 @@ /** | ||
export enum KernelStatus { | ||
/** Kernel is currently executing code. */ | ||
Busy = "busy", | ||
/** Kernel is currently not executing code. */ | ||
Idle = "idle", | ||
/** Kernel process is being launched. */ | ||
Starting = "starting", | ||
/** Kernel is being shut down. */ | ||
ShuttingDown = "shutting down", | ||
/** Kernel is restarting. */ | ||
Restarting = "restarting", | ||
/** Kernel's current execution process has been interrupted. */ | ||
Interrupted = "interrupted", | ||
/** Kernel is not connected to current notebook. */ | ||
NotConnected = "not connected" | ||
} | ||
export interface LocalKernelProps { | ||
@@ -45,0 +62,0 @@ kernelSpecName?: string | null; |
@@ -89,2 +89,7 @@ /** | ||
export interface InputRequestMessage { | ||
prompt: string; | ||
password: boolean; | ||
} | ||
export type PayloadMessage = | ||
@@ -91,0 +96,0 @@ | PagePayloadMessage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62169
49
1884