Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crt-terminal

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crt-terminal - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

3

dist/cjs/types/components/Terminal/Terminal.d.ts

@@ -23,5 +23,6 @@ /// <reference types="react" />

};
focusOnMount?: boolean;
}
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, }: TerminalProps) => JSX.Element;
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, focusOnMount }: TerminalProps) => JSX.Element;
export type { TerminalProps };
export default Terminal;

@@ -35,5 +35,6 @@ import { PreventProps } from '../API/keyboard';

};
focusOnMount: boolean;
}
declare type TerminalControllerReturnType = ReturnType<typeof useTerminalController>;
declare function useTerminalController({ terminalApp: { state: { inputLocked }, handlers: { lock: lockApp }, }, input: { handlers: { setInputCursor, focus: focusInput }, }, commandScreen: { handlers: { print: printOnScreen, clear: clearScreen }, }, commandLine: { state: { cursorPosition, inputValue }, handlers: { preventDefault, addCharacter, removeCharacter, moveCommandCursor, submitCommand, provideCommandService, }, }, commandHistory: { handlers: { addCommand, nextCommand, prevCommand }, }, loaderComponent: { isLoading: loaderLoading, handlers: { startLoading: startComponentLoading, endLoading: endComponentLoading }, }, interface: { onCommand, prompt, banner, queue: { api: { enqueue }, }, }, }: TerminalControllerProps): {
declare function useTerminalController({ terminalApp: { state: { inputLocked }, handlers: { lock: lockApp }, }, input: { handlers: { setInputCursor, focus: focusInput }, }, commandScreen: { handlers: { print: printOnScreen, clear: clearScreen }, }, commandLine: { state: { cursorPosition, inputValue }, handlers: { preventDefault, addCharacter, removeCharacter, moveCommandCursor, submitCommand, provideCommandService, }, }, commandHistory: { handlers: { addCommand, nextCommand, prevCommand }, }, loaderComponent: { isLoading: loaderLoading, handlers: { startLoading: startComponentLoading, endLoading: endComponentLoading }, }, interface: { onCommand, prompt, banner, queue: { api: { enqueue }, }, }, focusOnMount, }: TerminalControllerProps): {
handlers: {

@@ -40,0 +41,0 @@ focus: () => void;

@@ -23,5 +23,6 @@ /// <reference types="react" />

};
focusOnMount?: boolean;
}
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, }: TerminalProps) => JSX.Element;
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, focusOnMount }: TerminalProps) => JSX.Element;
export type { TerminalProps };
export default Terminal;

@@ -35,5 +35,6 @@ import { PreventProps } from '../API/keyboard';

};
focusOnMount: boolean;
}
declare type TerminalControllerReturnType = ReturnType<typeof useTerminalController>;
declare function useTerminalController({ terminalApp: { state: { inputLocked }, handlers: { lock: lockApp }, }, input: { handlers: { setInputCursor, focus: focusInput }, }, commandScreen: { handlers: { print: printOnScreen, clear: clearScreen }, }, commandLine: { state: { cursorPosition, inputValue }, handlers: { preventDefault, addCharacter, removeCharacter, moveCommandCursor, submitCommand, provideCommandService, }, }, commandHistory: { handlers: { addCommand, nextCommand, prevCommand }, }, loaderComponent: { isLoading: loaderLoading, handlers: { startLoading: startComponentLoading, endLoading: endComponentLoading }, }, interface: { onCommand, prompt, banner, queue: { api: { enqueue }, }, }, }: TerminalControllerProps): {
declare function useTerminalController({ terminalApp: { state: { inputLocked }, handlers: { lock: lockApp }, }, input: { handlers: { setInputCursor, focus: focusInput }, }, commandScreen: { handlers: { print: printOnScreen, clear: clearScreen }, }, commandLine: { state: { cursorPosition, inputValue }, handlers: { preventDefault, addCharacter, removeCharacter, moveCommandCursor, submitCommand, provideCommandService, }, }, commandHistory: { handlers: { addCommand, nextCommand, prevCommand }, }, loaderComponent: { isLoading: loaderLoading, handlers: { startLoading: startComponentLoading, endLoading: endComponentLoading }, }, interface: { onCommand, prompt, banner, queue: { api: { enqueue }, }, }, focusOnMount, }: TerminalControllerProps): {
handlers: {

@@ -40,0 +41,0 @@ focus: () => void;

@@ -147,5 +147,6 @@ /// <reference types="react" />

};
focusOnMount?: boolean;
}
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, }: TerminalProps) => JSX.Element;
declare const Terminal: ({ onCommand, queue, banner, prompt, cursorSymbol, maxHistoryCommands, loader: { slides, loaderSpeed }, printer: { printerSpeed, charactersPerTick }, effects: { scanner, pixels, screenEffects, textEffects }, focusOnMount }: TerminalProps) => JSX.Element;
export { AnchorWord, ButtonWord, CommandLine, EventQueue, EventQueueReturnType, InterfaceEvent, LineTypes, Lines, PrinterEvents, Terminal, TerminalEvents, TerminalProps, TextLine, TextWord, WordTypes, Words, anchorWord, buttonWord, commandLine, commandWord, textLine, textWord, useEventQueue };
{
"name": "crt-terminal",
"version": "1.0.10",
"version": "1.0.11",
"description": "Retro looking CRT terminal for web",

@@ -20,6 +20,7 @@ "repository": "https://github.com/essserrr/crt-terminal",

"scripts": {
"build": "rollup -c",
"build": "rm -rf dist && rollup -c",
"dev": "rollup -cw",
"lint": "eslint . --ext .tsx,.ts --fix",
"lint": "eslint . --ext .tsx,.ts --fix --max-warnings=0",
"stylelint": "stylelint \"**/*.scss\" --fix",
"prepush": "yarn stylelint && yarn lint",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",

@@ -52,3 +53,2 @@ "test": "jest --coverage",

"@typescript-eslint/parser": "^5.7.0",
"airbnb": "^0.0.2",
"autoprefixer": "^10.4.2",

@@ -55,0 +55,0 @@ "babel-jest": "^27.3.1",

@@ -98,2 +98,4 @@ [![NPM](https://img.shields.io/npm/v/react-select.svg)](https://www.npmjs.com/package/crt-terminal)

8. `focusOnMount?: boolean` - Should we focus the console on mount (defaults to true)
## Event Queue

@@ -100,0 +102,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc