Variables
Const ACCEPT_PAYLOAD_MESSAGE
ACCEPT_PAYLOAD_MESSAGE: "ACCEPT_PAYLOAD_MESSAGE" = "ACCEPT_PAYLOAD_MESSAGE"
Const ADD_HOST
ADD_HOST: "CORE/ADD_HOST" = "CORE/ADD_HOST"
Const ADD_TRANSFORM
ADD_TRANSFORM: "ADD_TRANSFORM" = "ADD_TRANSFORM"
Const APPEND_OUTPUT
APPEND_OUTPUT: "APPEND_OUTPUT" = "APPEND_OUTPUT"
Const CHANGE_CELL_TYPE
CHANGE_CELL_TYPE: "CHANGE_CELL_TYPE" = "CHANGE_CELL_TYPE"
Const CHANGE_CONTENT_NAME
CHANGE_CONTENT_NAME: "CORE/CHANGE_CONTENT_NAME" = "CORE/CHANGE_CONTENT_NAME"
Const CHANGE_CONTENT_NAME_FAILED
CHANGE_CONTENT_NAME_FAILED: "CORE/CHANGE_CONTENT_NAME_FAILED" = "CORE/CHANGE_CONTENT_NAME_FAILED"
Const CHANGE_CONTENT_NAME_FULFILLED
CHANGE_CONTENT_NAME_FULFILLED: "CORE/CHANGE_CONTENT_NAME_FULFILLED" = "CORE/CHANGE_CONTENT_NAME_FULFILLED"
Const CHANGE_FILENAME
CHANGE_FILENAME: "CHANGE_FILENAME" = "CHANGE_FILENAME"
Const CHANGE_KERNEL_BY_NAME
CHANGE_KERNEL_BY_NAME: "CHANGE_KERNEL_BY_NAME" = "CHANGE_KERNEL_BY_NAME"
Const CLEAR_ALL_OUTPUTS
CLEAR_ALL_OUTPUTS: "CLEAR_ALL_OUTPUTS" = "CLEAR_ALL_OUTPUTS"
Const CLEAR_OUTPUTS
CLEAR_OUTPUTS: "CLEAR_OUTPUTS" = "CLEAR_OUTPUTS"
Const CLOSE_MODAL
CLOSE_MODAL: "CORE/CLOSE_MODAL" = "CORE/CLOSE_MODAL"
Const CLOSE_NOTEBOOK
CLOSE_NOTEBOOK: "CLOSE_NOTEBOOK" = "CLOSE_NOTEBOOK"
Const COMM_MESSAGE
COMM_MESSAGE: "COMM_MESSAGE" = "COMM_MESSAGE"
Const COMM_OPEN
COMM_OPEN: "COMM_OPEN" = "COMM_OPEN"
Const COPY_CELL
COPY_CELL: "COPY_CELL" = "COPY_CELL"
Const CREATE_CELL_ABOVE
CREATE_CELL_ABOVE: "CREATE_CELL_ABOVE" = "CREATE_CELL_ABOVE"
Const CREATE_CELL_AFTER
CREATE_CELL_AFTER: "CREATE_CELL_AFTER" = "CREATE_CELL_AFTER"
Const CREATE_CELL_APPEND
CREATE_CELL_APPEND: "CREATE_CELL_APPEND" = "CREATE_CELL_APPEND"
Const CREATE_CELL_BEFORE
CREATE_CELL_BEFORE: "CREATE_CELL_BEFORE" = "CREATE_CELL_BEFORE"
Const CREATE_CELL_BELOW
CREATE_CELL_BELOW: "CREATE_CELL_BELOW" = "CREATE_CELL_BELOW"
Const CUT_CELL
CUT_CELL: "CUT_CELL" = "CUT_CELL"
Const DELETE_CELL
DELETE_CELL: "DELETE_CELL" = "DELETE_CELL"
Const DELETE_CONNECTION_FILE_FAILED
DELETE_CONNECTION_FILE_FAILED: "DELETE_CONNECTION_FILE_FAILED" = "DELETE_CONNECTION_FILE_FAILED"
Const DELETE_CONNECTION_FILE_SUCCESSFUL
DELETE_CONNECTION_FILE_SUCCESSFUL: "DELETE_CONNECTION_FILE_SUCCESSFUL" = "DELETE_CONNECTION_FILE_SUCCESSFUL"
Const DELETE_METADATA_FIELD
DELETE_METADATA_FIELD: "DELETE_METADATA_FIELD" = "DELETE_METADATA_FIELD"
Const DISPOSE_CONTENT
DISPOSE_CONTENT: "DISPOSE_CONTENT" = "DISPOSE_CONTENT"
Const DISPOSE_KERNEL
DISPOSE_KERNEL: "DISPOSE_KERNEL" = "DISPOSE_KERNEL"
Const DONE_SAVING_CONFIG
DONE_SAVING_CONFIG: "DONE_SAVING_CONFIG" = "DONE_SAVING_CONFIG"
Const DOWNLOAD_CONTENT
DOWNLOAD_CONTENT: "CORE/DOWNLOAD_CONTENT" = "CORE/DOWNLOAD_CONTENT"
Const DOWNLOAD_CONTENT_FAILED
DOWNLOAD_CONTENT_FAILED: "CORE/DOWNLOAD_CONTENT_FAILED" = "CORE/DOWNLOAD_CONTENT_FAILED"
Const DOWNLOAD_CONTENT_FULFILLED
DOWNLOAD_CONTENT_FULFILLED: "CORE/DOWNLOAD_CONTENT_FULFILLED" = "CORE/DOWNLOAD_CONTENT_FULFILLED"
Const ERROR
ERROR: "CORE/ERROR" = "CORE/ERROR"
Const EXECUTE_ALL_CELLS
EXECUTE_ALL_CELLS: "EXECUTE_ALL_CELLS" = "EXECUTE_ALL_CELLS"
Const EXECUTE_ALL_CELLS_BELOW
EXECUTE_ALL_CELLS_BELOW: "EXECUTE_ALL_CELLS_BELOW" = "EXECUTE_ALL_CELLS_BELOW"
Const EXECUTE_CANCELED
EXECUTE_CANCELED: "EXECUTE_CANCELED" = "EXECUTE_CANCELED"
Const EXECUTE_CELL
EXECUTE_CELL: "EXECUTE_CELL" = "EXECUTE_CELL"
Const EXECUTE_FAILED
EXECUTE_FAILED: "EXECUTE_FAILED" = "EXECUTE_FAILED"
Const EXECUTE_FOCUSED_CELL
EXECUTE_FOCUSED_CELL: "EXECUTE_FOCUSED_CELL" = "EXECUTE_FOCUSED_CELL"
Const FETCH_CONTENT
FETCH_CONTENT: "CORE/FETCH_CONTENT" = "CORE/FETCH_CONTENT"
Const FETCH_CONTENT_FAILED
FETCH_CONTENT_FAILED: "CORE/FETCH_CONTENT_FAILED" = "CORE/FETCH_CONTENT_FAILED"
Const FETCH_CONTENT_FULFILLED
FETCH_CONTENT_FULFILLED: "CORE/FETCH_CONTENT_FULFILLED" = "CORE/FETCH_CONTENT_FULFILLED"
Const FETCH_KERNELSPECS
FETCH_KERNELSPECS: "CORE/FETCH_KERNELSPECS" = "CORE/FETCH_KERNELSPECS"
Const FETCH_KERNELSPECS_FAILED
FETCH_KERNELSPECS_FAILED: "CORE/FETCH_KERNELSPECS_FAILED" = "CORE/FETCH_KERNELSPECS_FAILED"
Const FETCH_KERNELSPECS_FULFILLED
FETCH_KERNELSPECS_FULFILLED: "CORE/FETCH_KERNELSPECS_FULFILLED" = "CORE/FETCH_KERNELSPECS_FULFILLED"
Const FOCUS_CELL
FOCUS_CELL: "FOCUS_CELL" = "FOCUS_CELL"
Const FOCUS_CELL_EDITOR
FOCUS_CELL_EDITOR: "FOCUS_CELL_EDITOR" = "FOCUS_CELL_EDITOR"
Const FOCUS_NEXT_CELL
FOCUS_NEXT_CELL: "FOCUS_NEXT_CELL" = "FOCUS_NEXT_CELL"
Const FOCUS_NEXT_CELL_EDITOR
FOCUS_NEXT_CELL_EDITOR: "FOCUS_NEXT_CELL_EDITOR" = "FOCUS_NEXT_CELL_EDITOR"
Const FOCUS_PREVIOUS_CELL
FOCUS_PREVIOUS_CELL: "FOCUS_PREVIOUS_CELL" = "FOCUS_PREVIOUS_CELL"
Const FOCUS_PREVIOUS_CELL_EDITOR
FOCUS_PREVIOUS_CELL_EDITOR: "FOCUS_PREVIOUS_CELL_EDITOR" = "FOCUS_PREVIOUS_CELL_EDITOR"
Const INTERRUPT_KERNEL
INTERRUPT_KERNEL: "INTERRUPT_KERNEL" = "INTERRUPT_KERNEL"
Const INTERRUPT_KERNEL_FAILED
INTERRUPT_KERNEL_FAILED: "INTERRUPT_KERNEL_FAILED" = "INTERRUPT_KERNEL_FAILED"
Const INTERRUPT_KERNEL_SUCCESSFUL
INTERRUPT_KERNEL_SUCCESSFUL: "INTERRUPT_KERNEL_SUCCESSFUL" = "INTERRUPT_KERNEL_SUCCESSFUL"
Const KERNEL_RAW_STDERR
KERNEL_RAW_STDERR: "KERNEL_RAW_STDERR" = "KERNEL_RAW_STDERR"
Const KERNEL_RAW_STDOUT
KERNEL_RAW_STDOUT: "KERNEL_RAW_STDOUT" = "KERNEL_RAW_STDOUT"
Const KILL_KERNEL
KILL_KERNEL: "KILL_KERNEL" = "KILL_KERNEL"
Const KILL_KERNEL_FAILED
KILL_KERNEL_FAILED: "KILL_KERNEL_FAILED" = "KILL_KERNEL_FAILED"
Const KILL_KERNEL_SUCCESSFUL
KILL_KERNEL_SUCCESSFUL: "KILL_KERNEL_SUCCESSFUL" = "KILL_KERNEL_SUCCESSFUL"
Const LAUNCH_KERNEL
LAUNCH_KERNEL: "LAUNCH_KERNEL" = "LAUNCH_KERNEL"
Const LAUNCH_KERNEL_BY_NAME
LAUNCH_KERNEL_BY_NAME: "LAUNCH_KERNEL_BY_NAME" = "LAUNCH_KERNEL_BY_NAME"
Const LAUNCH_KERNEL_FAILED
LAUNCH_KERNEL_FAILED: "LAUNCH_KERNEL_FAILED" = "LAUNCH_KERNEL_FAILED"
Const LAUNCH_KERNEL_SUCCESSFUL
LAUNCH_KERNEL_SUCCESSFUL: "LAUNCH_KERNEL_SUCCESSFUL" = "LAUNCH_KERNEL_SUCCESSFUL"
Const LOAD_CONFIG
LOAD_CONFIG: "LOAD_CONFIG" = "LOAD_CONFIG"
Const MARK_CELL_AS_DELETING
MARK_CELL_AS_DELETING: "MARK_CELL_AS_DELETING" = "MARK_CELL_AS_DELETING"
Const MERGE_CONFIG
MERGE_CONFIG: "MERGE_CONFIG" = "MERGE_CONFIG"
Const MOVE_CELL
MOVE_CELL: "MOVE_CELL" = "MOVE_CELL"
Const NEW_NOTEBOOK
NEW_NOTEBOOK: "NEW_NOTEBOOK" = "NEW_NOTEBOOK"
Const OPEN_MODAL
OPEN_MODAL: "CORE/OPEN_MODAL" = "CORE/OPEN_MODAL"
Const OVERWRITE_METADATA_FIELD
OVERWRITE_METADATA_FIELD: "OVERWRITE_METADATA_FIELD" = "OVERWRITE_METADATA_FIELD"
Const OVERWRITE_METADATA_FIELDS
OVERWRITE_METADATA_FIELDS: "CORE/OVERWRITE_METADATA_FIELDS" = "CORE/OVERWRITE_METADATA_FIELDS"
Const PASTE_CELL
PASTE_CELL: "PASTE_CELL" = "PASTE_CELL"
Const PROMPT_INPUT_REQUEST
PROMPT_INPUT_REQUEST: "PROMPT_INPUT_REQUEST" = "PROMPT_INPUT_REQUEST"
Const PUBLISH_GIST
PUBLISH_GIST: "CORE/PUBLISH_GIST" = "CORE/PUBLISH_GIST"
Const PUBLISH_TO_BOOKSTORE
PUBLISH_TO_BOOKSTORE: "CORE/PUBLISH_TO_BOOKSTORE" = "CORE/PUBLISH_TO_BOOKSTORE"
Const PUBLISH_TO_BOOKSTORE_AFTER_SAVE
PUBLISH_TO_BOOKSTORE_AFTER_SAVE: "CORE/PUBLISH_TO_BOOKSTORE_AFTER_SAVE" = "CORE/PUBLISH_TO_BOOKSTORE_AFTER_SAVE"
Const PUBLISH_TO_BOOKSTORE_FAILED
PUBLISH_TO_BOOKSTORE_FAILED: "CORE/PUBLISH_TO_BOOKSTORE_FAILED" = "CORE/PUBLISH_TO_BOOKSTORE_FAILED"
Const PUBLISH_TO_BOOKSTORE_SUCCEEDED
PUBLISH_TO_BOOKSTORE_SUCCEEDED: "CORE/PUBLISH_TO_BOOKSTORE_SUCCEEDED" = "CORE/PUBLISH_TO_BOOKSTORE_SUCCEEDED"
Const REGISTER_COMM_TARGET
REGISTER_COMM_TARGET: "REGISTER_COMM_TARGET" = "REGISTER_COMM_TARGET"
Const REMOVE_CELL
REMOVE_CELL: "REMOVE_CELL" = "REMOVE_CELL"
Const REMOVE_HOST
REMOVE_HOST: "CORE/REMOVE_HOST" = "CORE/REMOVE_HOST"
Const REMOVE_TRANSFORM
REMOVE_TRANSFORM: "REMOVE_TRANSFORM" = "REMOVE_TRANSFORM"
Const RESTART_KERNEL
RESTART_KERNEL: "RESTART_KERNEL" = "RESTART_KERNEL"
Const RESTART_KERNEL_FAILED
RESTART_KERNEL_FAILED: "RESTART_KERNEL_FAILED" = "RESTART_KERNEL_FAILED"
Const RESTART_KERNEL_SUCCESSFUL
RESTART_KERNEL_SUCCESSFUL: "RESTART_KERNEL_SUCCESSFUL" = "RESTART_KERNEL_SUCCESSFUL"
Const SAVE
SAVE: "SAVE" = "SAVE"
Const SAVE_AS
SAVE_AS: "SAVE_AS" = "SAVE_AS"
Const SAVE_AS_FAILED
SAVE_AS_FAILED: "SAVE_AS_FAILED" = "SAVE_AS_FAILED"
Const SAVE_AS_FULFILLED
SAVE_AS_FULFILLED: "SAVE_AS_FULFILLED" = "SAVE_AS_FULFILLED"
Const SAVE_CONFIG
SAVE_CONFIG: "SAVE_CONFIG" = "SAVE_CONFIG"
Const SAVE_FAILED
SAVE_FAILED: "SAVE_FAILED" = "SAVE_FAILED"
Const SAVE_FULFILLED
SAVE_FULFILLED: "SAVE_FULFILLED" = "SAVE_FULFILLED"
Const SEND_EXECUTE_REQUEST
SEND_EXECUTE_REQUEST: "SEND_EXECUTE_REQUEST" = "SEND_EXECUTE_REQUEST"
Const SEND_INPUT_REPLY
SEND_INPUT_REPLY: "SEND_INPUT_REPLY" = "SEND_INPUT_REPLY"
Const SET_APP_HOST
SET_APP_HOST: "SET_APP_HOST" = "SET_APP_HOST"
Const SET_CONFIG_AT_KEY
SET_CONFIG_AT_KEY: "SET_CONFIG_AT_KEY" = "SET_CONFIG_AT_KEY"
Const SET_EXECUTION_STATE
SET_EXECUTION_STATE: "SET_EXECUTION_STATE" = "SET_EXECUTION_STATE"
Const SET_GITHUB_TOKEN
SET_GITHUB_TOKEN: "SET_GITHUB_TOKEN" = "SET_GITHUB_TOKEN"
Const SET_IN_CELL
SET_IN_CELL: "SET_IN_CELL" = "SET_IN_CELL"
Const SET_KERNEL_INFO
SET_KERNEL_INFO: "CORE/SET_KERNEL_INFO" = "CORE/SET_KERNEL_INFO"
Const SET_KERNEL_METADATA
SET_KERNEL_METADATA: "SET_KERNEL_METADATA" = "SET_KERNEL_METADATA"
Const SET_LANGUAGE_INFO
SET_LANGUAGE_INFO: "SET_LANGUAGE_INFO" = "SET_LANGUAGE_INFO"
Const SET_NOTIFICATION_SYSTEM
SET_NOTIFICATION_SYSTEM: "SET_NOTIFICATION_SYSTEM" = "SET_NOTIFICATION_SYSTEM"
Const SHUTDOWN_REPLY_SUCCEEDED
SHUTDOWN_REPLY_SUCCEEDED: "SHUTDOWN_REPLY_SUCCEEDED" = "SHUTDOWN_REPLY_SUCCEEDED"
Const SHUTDOWN_REPLY_TIMED_OUT
SHUTDOWN_REPLY_TIMED_OUT: "SHUTDOWN_REPLY_TIMED_OUT" = "SHUTDOWN_REPLY_TIMED_OUT"
Const TOGGLE_CELL_INPUT_VISIBILITY
TOGGLE_CELL_INPUT_VISIBILITY: "TOGGLE_CELL_INPUT_VISIBILITY" = "TOGGLE_CELL_INPUT_VISIBILITY"
Const TOGGLE_CELL_OUTPUT_VISIBILITY
TOGGLE_CELL_OUTPUT_VISIBILITY: "TOGGLE_CELL_OUTPUT_VISIBILITY" = "TOGGLE_CELL_OUTPUT_VISIBILITY"
Const TOGGLE_HEADER_EDITOR
TOGGLE_HEADER_EDITOR: "CORE/TOGGLE_HEADER_EDITOR" = "CORE/TOGGLE_HEADER_EDITOR"
Const TOGGLE_OUTPUT_EXPANSION
TOGGLE_OUTPUT_EXPANSION: "TOGGLE_OUTPUT_EXPANSION" = "TOGGLE_OUTPUT_EXPANSION"
Const TOGGLE_TAG_IN_CELL
TOGGLE_TAG_IN_CELL: "CORE/TOGGLE_TAG_IN_CELL" = "CORE/TOGGLE_TAG_IN_CELL"
Const UNHIDE_ALL
UNHIDE_ALL: "UNHIDE_ALL" = "UNHIDE_ALL"
Const UNMARK_CELL_AS_DELETING
UNMARK_CELL_AS_DELETING: "UNMARK_CELL_AS_DELETING" = "UNMARK_CELL_AS_DELETING"
Const UPDATE_CELL_STATUS
UPDATE_CELL_STATUS: "UPDATE_CELL_STATUS" = "UPDATE_CELL_STATUS"
Const UPDATE_DISPLAY
UPDATE_DISPLAY: "UPDATE_DISPLAY" = "UPDATE_DISPLAY"
Const UPDATE_DISPLAY_FAILED
UPDATE_DISPLAY_FAILED: "UPDATE_DISPLAY_FAILED" = "UPDATE_DISPLAY_FAILED"
Const UPDATE_FILE_TEXT
UPDATE_FILE_TEXT: "UPDATE_FILE_TEXT" = "UPDATE_FILE_TEXT"
Const UPDATE_OUTPUT_METADATA
UPDATE_OUTPUT_METADATA: "UPDATE_OUTPUT_METADATA" = "UPDATE_OUTPUT_METADATA"
@nteract/actions
This package contains definitions of constants and action creators that can be used to create Redux actions in your nteract application. These actions can be dispatch to create new cells, launch kernels, create new notebooks, execute cells, and much more. To see this package in action, you can view the source code for the @nteract/epics and @nteract/core packages.
Installation
$ yarn add @nteract/actions
$ npm install --save @nteract/actions
Usage
The Redux reducer below shows how we can leverage the actions and action types in this package to create a reducer for managing the status of a save event.
import actions from "@nteract/actions";
export default function myReducer( state: MyState, action: actions.Save | actions.SaveFulfilled | actions.SaveFailed ) { switch (action.type) { case actions.SAVE: return { ...state, status: "saving" }; case actions.SAVE_FULFILLED: return { ...state, status: "success" }; case actions.SAVE_FAILED: return { ...state, status: "failed" }; default: return state; } }
Documentation
You can view the reference documentation for
@nteract/actions
in the package docs.Support
If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the
pkg:actions
label.License
BSD-3-Clause