rename Editor -> ExprBlock
This commit is contained in:
parent
fe83532261
commit
93f665ba8f
9 changed files with 55 additions and 56 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import type { EditorState } from "./Editor";
|
||||
import type { ExprBlockState } from "./ExprBlock";
|
||||
|
||||
export const initialEditorState: EditorState = {
|
||||
export const initialEditorState: ExprBlockState = {
|
||||
kind: "input",
|
||||
text: "",
|
||||
value: { kind: "text" },
|
||||
focus: true,
|
||||
};
|
||||
|
||||
export const nonEmptyEditorState: EditorState = {
|
||||
export const nonEmptyEditorState: ExprBlockState = {
|
||||
kind: "call",
|
||||
fn: {
|
||||
kind: "call",
|
||||
|
|
@ -32,7 +32,7 @@ export const nonEmptyEditorState: EditorState = {
|
|||
},
|
||||
};
|
||||
|
||||
export const tripleFunctionCallEditorState: EditorState = {
|
||||
export const tripleFunctionCallEditorState: ExprBlockState = {
|
||||
kind: "call",
|
||||
fn: {
|
||||
kind: "call",
|
||||
|
|
@ -75,7 +75,7 @@ export const tripleFunctionCallEditorState: EditorState = {
|
|||
},
|
||||
};
|
||||
|
||||
export const biggerExample: EditorState = {
|
||||
export const biggerExample: ExprBlockState = {
|
||||
"kind": "let",
|
||||
"inner": {
|
||||
"kind": "let",
|
||||
|
|
@ -254,7 +254,7 @@ export const biggerExample: EditorState = {
|
|||
}
|
||||
};
|
||||
|
||||
export const lambda2Params: EditorState = {
|
||||
export const lambda2Params: ExprBlockState = {
|
||||
"kind": "let",
|
||||
"inner": {
|
||||
"kind": "input",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue