@nteract/types
Advanced tools
Comparing version 1.3.0 to 1.3.3
@@ -58,5 +58,5 @@ This document attempts to specify the goal for an nteract core package that can | ||
type state = { | ||
// The top level of core state can be considered a notebook, but we formalize | ||
// that by nesting it under `notebook`.. | ||
notebook: { | ||
// The top level of core state can be considered a entry (which can be a | ||
// "notebook", "directory", or plain "file"). | ||
app: { | ||
// On desktop we'll have the one built-in local host that connects to | ||
@@ -67,5 +67,3 @@ // zeromq directly. On jupyterhub backed apps, you'll be able to switch to | ||
hostRefs: Array<Ref>, | ||
lastSaved: Date | ||
// TODO: language information? Does this belong at the notebook level? | ||
selectedContentRef: Ref | ||
}, | ||
@@ -234,6 +232,13 @@ | ||
created: Date, | ||
last_modified: Date, | ||
lastSaved: Date, | ||
modified: boolean, | ||
writable: bool, | ||
format: null | "json" | "text" | "base64" // "json" for dir / nb | ||
content: ?Array<Ref> | string // Array<Ref> is for directory-type | ||
format: null | "json" | "text" | "base64", // "json" for dir / nb | ||
// The model is a little confusing. Think of it as the in-memory, app | ||
// version of the content string that you get back from the contents | ||
// api. So, for a plain file, which we don't necessarily know how to | ||
// handle, the model will just be a string still. However, for a | ||
// notebook, we basically flesh out all the references to cells in | ||
// here. | ||
model: ?Object, // null | DirectoryModel | NotebookModel | FileModel | ||
} | ||
@@ -240,0 +245,0 @@ } |
{ | ||
"name": "@nteract/types", | ||
"version": "1.3.0", | ||
"version": "1.3.3", | ||
"description": "collection of types for nteract components", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
25714