Skip to main content

@journeyapps/reactor-mod-editor

Enumerations

EnumerationDescription
EditorEntities-
MonacoLanguages-
MonacoLanguageScopes-

Classes

ClassDescription
EditorModule-
EditorThemeControl-
EditorThemeEntityDefinition-
MonacoShortcut-
MonacoShortcutHandler-
MonacoStore-
MonacoSystemThemeStore-
MonacoThemeStore-

Interfaces

BranchFile

Properties

PropertyType
appIDstring
branchstring
pathstring

DualEditorWidgetProps

Extends

  • MonacoDiffEditorProps

Properties

PropertyType
getLeftHeaderContent() => Element
getRightHeaderContent() => Element

EditorTheme

Properties

PropertyType
compatibilityboolean
keystring
labelstring
systemboolean
themeIStandaloneThemeData

EditorWidgetProps

Properties

PropertyType
events?OxideEditorEvents
forwardRef?RefObject<HTMLDivElement>
modelITextModel
options?Partial<monaco.editor.IEditorConstructionOptions>
patchOxideShortcuts?boolean

GrammerMappingEntry

Properties

PropertyType
format"json" | "plist"
hook?() => any
language?Partial<monaco.languages.ILanguageExtensionPoint>
monaco?MonacoLanguages
urlstring

GrammerMappingType

Indexable

[key: string]: GrammerMappingEntry

MonacoEditorType

Extends

  • IStandaloneCodeEditor

Properties

PropertyType
_actionsMap<string, { id: string; label: string; }>
_commandService{ executeCommand: Promise<any>; }
_commandService.executeCommandPromise<any>
_standaloneKeybindingService{ updateResolver: any; }
_standaloneKeybindingService.updateResolverany

MonacoJsonPathLocation

Properties

PropertyType
columnnumber
linenumber
offsetEndnumber
offsetStartnumber

MonacoJsonPathLocationFromDocumentOptions

Extends

Properties

PropertyTypeInherited from
documentJSONDocument-
modelITextModel-
pathMonacoJsonPathInput-
target?MonacoJsonPathLocationTargetMonacoJsonPathLocationOptions.target

MonacoJsonPathLocationOptions

Extended by

Properties

PropertyType
target?MonacoJsonPathLocationTarget

MonacoJsonPathLocationRequest

Extends

Properties

PropertyTypeInherited from
modelITextModel-
pathMonacoJsonPathInput-
target?MonacoJsonPathLocationTargetMonacoJsonPathLocationOptions.target

MonacoJsonPathResult

Properties

PropertyType
nodeASTNode
propertyNode?PropertyASTNode

MonacoShortcutHandlerOptions

Properties

PropertyType
keybindingStoreMonacoKeybindingStore

MonacoStoreListener

Extends

  • AbstractStoreListener

Properties

PropertyTypeInherited from
gotEditor(editor) => any-
initialized() => anyAbstractStoreListener.initialized

MonacoSuggestIconOverrideResult

Properties

PropertyType
iconClassstring
iconColor?string

MonacoSuggestRendererPatchEvent

Properties

PropertyType
dataany
elementany
indexnumber

OxideEditorEvents

Properties

PropertyType
getEditor?(editor) => any
gotFocus?(editor) => any

ReactorSuggestCompletionItem

Properties

PropertyType
reactorIcon?ReactorIcon
reactorIconColor?string

SimpleEditorWidgetProps

Properties

PropertyType
className?any
langstring
pathstring
textstring

UseEditorStickyHeaderOptions

Properties

PropertyType
editorIStandaloneCodeEditor

Type Aliases

ColorContribution

type ColorContribution = {
defaults: {
dark: string;
hc: string;
light: string;
};
deprecationMessage: string;
description: string;
id: string;
needsTransparency: boolean;
};

Properties

PropertyType
defaults{ dark: string; hc: string; light: string; }
defaults.darkstring
defaults.hcstring
defaults.lightstring
deprecationMessagestring
descriptionstring
idstring
needsTransparencyboolean

ColorRegistry

type ColorRegistry = {
colorsById: {
[id: string]: ColorContribution;
};
colorSchema: {
properties: {
[id: string]: ColorSchema;
};
};
};

Properties

PropertyType
colorsById{ [id: string]: ColorContribution; }
colorSchema{ properties: { [id: string]: ColorSchema; }; }
colorSchema.properties{ [id: string]: ColorSchema; }

ColorSchema

type ColorSchema = {
description: string;
};

Properties

PropertyType
descriptionstring

MonacoJsonPathInput

type MonacoJsonPathInput = string | MonacoJsonPathSegment[];

MonacoJsonPathLocationTarget

type MonacoJsonPathLocationTarget = "node" | "key" | "value" | "property";

MonacoJsonPathSegment

type MonacoJsonPathSegment = string | number;

MonacoSuggestIconOverrideTransform

type MonacoSuggestIconOverrideTransform<T> = (completion) =>
| MonacoSuggestIconOverrideResult
| null
| undefined;

Type Parameters

Type ParameterDefault type
T extends ReactorSuggestCompletionItemReactorSuggestCompletionItem

Parameters

ParameterType
completionT

Returns

| MonacoSuggestIconOverrideResult | null | undefined


MonacoSuggestRendererPatch

type MonacoSuggestRendererPatch = (event) => void;

Parameters

ParameterType
eventMonacoSuggestRendererPatchEvent

Returns

void


MonacoSystemTheme

type MonacoSystemTheme = {
coupledIDEThemeKey: string;
editorTheme: EditorTheme;
};

Properties

PropertyType
coupledIDEThemeKeystring
editorThemeEditorTheme

TokenColor

type TokenColor = {
name: string;
scope: string;
settings: {
background: string;
fontStyle: string;
foreground: string;
};
};

Properties

PropertyType
namestring
scopestring
settings{ background: string; fontStyle: string; foreground: string; }
settings.backgroundstring
settings.fontStylestring
settings.foregroundstring

VSIXPackage

type VSIXPackage = {
contributes: {
themes: {
label: string;
path: string;
uiTheme: string;
}[];
};
};

Properties

PropertyType
contributes{ themes: { label: string; path: string; uiTheme: string; }[]; }
contributes.themes{ label: string; path: string; uiTheme: string; }[]

VSIXTheme

type VSIXTheme = {
base?: monaco.editor.BuiltinTheme;
colors: {
[key: string]: string;
};
inherit?: boolean;
name: string;
tokenColors: TokenColor[];
};

Properties

PropertyType
base?monaco.editor.BuiltinTheme
colors{ [key: string]: string; }
inherit?boolean
namestring
tokenColorsTokenColor[]

Variables

colorRegistry

const colorRegistry: ColorRegistry;

COUPLED_IDE_THEMES

const COUPLED_IDE_THEMES: {
bunny: IStandaloneThemeData;
hexagon: IStandaloneThemeData;
journey: IStandaloneThemeData;
oxide: IStandaloneThemeData;
reactor: IStandaloneThemeData;
reactor-dark: IStandaloneThemeData;
reactor-light: IStandaloneThemeData;
scarlet: IStandaloneThemeData;
};

Type Declaration

NameType
bunnyIStandaloneThemeData
hexagonIStandaloneThemeData
journeyIStandaloneThemeData
oxideIStandaloneThemeData
reactorIStandaloneThemeData
reactor-darkIStandaloneThemeData
reactor-lightIStandaloneThemeData
scarletIStandaloneThemeData

DARK_THEME

const DARK_THEME: "journey-dark" = 'journey-dark';

DualEditorWidget

const DualEditorWidget: React.FC<DualEditorWidgetProps>;

EditorWidget

const EditorWidget: React.FC<EditorWidgetProps>;

GrammerMapping

const GrammerMapping: GrammerMappingType;

LOGS_LANGUAGE

const LOGS_LANGUAGE: IMonarchLanguage;

MonacoInternals

const MonacoInternals: {
ICodeEditorService: any;
StandaloneServices: any;
};

Type Declaration

NameType
ICodeEditorServiceany
StandaloneServicesany

Scarlet

const Scarlet: ThemeColors<{
editor: {
colors: {
backgroundSticky: string;
};
label: string;
};
}>;

SimpleEditorWidget

const SimpleEditorWidget: React.FC<SimpleEditorWidgetProps>;

styled

const styled: CreateStyled<ThemeColors<{
editor: {
colors: {
backgroundSticky: string;
};
label: string;
};
}> & {
light: boolean;
}>;

theme

const theme: ThemeFragment<{
editor: {
colors: {
backgroundSticky: string;
};
label: string;
};
}>;

themed

const themed: CreateStyled<ThemeColors<{
editor: {
colors: {
backgroundSticky: string;
};
label: string;
};
}> & {
light: boolean;
}>;

Functions

FunctionDescription
clearMonacoJsonPathCache-
findMonacoJsonPathNode-
getLanguageFromFileGiven a path or filename return a language based on the file extension. Optionally accepts a file_length parameter (1 char = 2 bytes) which, if too large, will result in 'text' being returned regardless of language
getMonacoJsonPathLocation-
getMonacoJsonPathLocationFromDocument-
normalizeVSCodeTheme-
parseMonacoJsonPath-
pathToUriGiven a local filename, return a monaco Uri.
registerMonacoSuggestIconOverride-
registerMonacoSuggestRendererPatch-
uriToPathTake a Monaco model URI, and covert it to a path in the local repo. If the URI does not reference a valid local path, null is returned. No checks are performed on whether or not the referenced file exists.
useEditorStickyHeader-

References

default

Renames and re-exports EditorModule