@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
23 lines (22 loc) • 2.52 kB
TypeScript
import { IDictionary } from "@kwiz/common";
import { Monaco } from '@monaco-editor/react';
export interface iCodeEditorProps {
value: string;
onChange: (newValue: string) => void;
defaultLanguage: "apex" | "azcli" | "bat" | "c" | "clojure" | "coffeescript" | "cpp" | "csharp" | "csp" | "css" | "dockerfile" | "fsharp" | "go" | "graphql" | "handlebars" | "html" | "ini" | "java" | "javascript" | "json" | "kotlin" | "less" | "lua" | "markdown" | "msdax" | "mysql" | "objective-c" | "pascal" | "perl" | "pgsql" | "php" | "plaintext" | "postiats" | "powerquery" | "powershell" | "pug" | "python" | "r" | "razor" | "redis" | "redshift" | "ruby" | "rust" | "sb" | "scheme" | "scss" | "shell" | "sol" | "sql" | "st" | "swift" | "tcl" | "typescript" | "vb" | "xml" | "yaml" | "Default Themes" | "vs-dark" | "light" | "hc-black" | "Custom Themes" | "active4d" | "all-hallows-eve" | "amy" | "birds-of-paradise" | "blackboard" | "brilliance-black" | "brilliance-dull" | "chrome-devtools" | "clouds-midnight" | "clouds" | "cobalt" | "cobalt2" | "dawn" | "dracula" | "dreamweaver" | "eiffel" | "espresso-libre" | "github-dark" | "github-light" | "github" | "idle" | "katzenmilch" | "kuroir-theme" | "lazy" | "magicwb--amiga-" | "merbivore-soft" | "merbivore" | "monokai-bright" | "monokai" | "night-owl" | "nord" | "oceanic-next" | "pastels-on-dark" | "slush-and-poppies" | "solarized-dark" | "solarized-light" | "spacecadet" | "sunburst" | "textmate--mac-classic-" | "tomorrow-night-blue" | "tomorrow-night-bright" | "tomorrow-night-eighties" | "tomorrow-night" | "tomorrow" | "twilight" | "upstream-sunburst" | "vibrant-ink" | "xcode-default" | "zenburnesque" | "iplastic" | "idlefingers" | "krtheme" | "monoindustrial";
/** key: name of library/module, value: types, enums, interfaces and declare global variables */
extraLibs?: IDictionary<string>;
hideLineNumbers?: boolean;
jsonSchemaValidations?: {
/** https://your-app/license-blob-schema.json */
uri: string;
/** ["*"], // Apply to all JSON models or use a specific model URI */
fileMatch: string[];
/** json schema */
schema: Object;
}[];
/** pass in the CDN to use, like: https://apps.kwizcom.com/libs/monaco-editor/4.7.0/min/vs or a Monaco instance to overide loader.config*/
loaderOptions?: string | Monaco;
}
/** it is recommended to lazy load this control into its own chunk */
export declare function CodeEditor(props: iCodeEditorProps): import("react/jsx-runtime").JSX.Element;