react-ace
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -1,1 +0,1 @@ | ||
{"processes":{"19bb2742-bbcf-44a4-af33-887442c83035":{"parent":"d0f4648b-f998-46e5-9791-e2ffac26db22","children":["2e1ae574-2a04-4445-9a23-83258a6f9f0b"]},"2e1ae574-2a04-4445-9a23-83258a6f9f0b":{"parent":"19bb2742-bbcf-44a4-af33-887442c83035","children":[]},"d0f4648b-f998-46e5-9791-e2ffac26db22":{"parent":null,"children":["19bb2742-bbcf-44a4-af33-887442c83035"]}},"files":{},"externalIds":{}} | ||
{"processes":{"22f7a6cd-e499-4114-bc18-f2f662f5bd97":{"parent":null,"children":["6ac0a903-f854-4283-b5aa-dd4fe90bc196"]},"6ac0a903-f854-4283-b5aa-dd4fe90bc196":{"parent":"22f7a6cd-e499-4114-bc18-f2f662f5bd97","children":["eac047bb-2e01-42d6-861f-b63f08de3add"]},"eac047bb-2e01-42d6-861f-b63f08de3add":{"parent":"6ac0a903-f854-4283-b5aa-dd4fe90bc196","children":[]}},"files":{},"externalIds":{}} |
@@ -62,2 +62,3 @@ # Ace Editor | ||
| enableLiveAutocompletion | false | Boolean | Enable live autocompletion | | ||
| enableSnippets | false | Boolean | Enable snippets | | ||
| tabSize | 4 | Number | tabSize | | ||
@@ -64,0 +65,0 @@ | debounceChangePeriod | null | Number | A debounce delay period for the onChange event | |
@@ -11,3 +11,3 @@ import { Annotation } from "brace"; | ||
name?: string; | ||
style: any; | ||
style?: React.CSSProperties; | ||
/** For available modes see https://github.com/thlorenz/brace/tree/master/mode */ | ||
@@ -39,2 +39,3 @@ mode?: string; | ||
scrollMargin?: number[]; | ||
enableSnippets?: boolean; | ||
onSelectionChange?: (value: any, event?: any) => void; | ||
@@ -59,6 +60,4 @@ onCursorChange?: (value: any, event?: any) => void; | ||
markers?: IMarker[]; | ||
[index: string]: any; | ||
} | ||
export default class ReactAce extends React.Component<IAceEditorProps> { | ||
[index: string]: any; | ||
static propTypes: PropTypes.ValidationMap<IAceEditorProps>; | ||
@@ -65,0 +64,0 @@ static defaultProps: Partial<IAceEditorProps>; |
@@ -97,11 +97,10 @@ "use strict"; | ||
var availableOptions = this.editor.$options; | ||
for (var i = 0; i < editorOptions_1.editorOptions.length; i++) { | ||
var option = editorOptions_1.editorOptions[i]; | ||
editorOptions_1.editorOptions.forEach(function (option) { | ||
if (availableOptions.hasOwnProperty(option)) { | ||
this.editor.setOption(option, this.props[option]); | ||
_this.editor.setOption(option, _this.props[option]); | ||
} | ||
else if (this.props[option]) { | ||
else if (_this.props[option]) { | ||
console.warn("ReactAce: editor option " + option + " was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"); | ||
} | ||
} | ||
}); | ||
this.handleOptions(this.props); | ||
@@ -373,2 +372,3 @@ if (Array.isArray(commands)) { | ||
wrapEnabled: PropTypes.bool, | ||
enableSnippets: PropTypes.bool, | ||
enableBasicAutocompletion: PropTypes.oneOfType([ | ||
@@ -395,2 +395,3 @@ PropTypes.bool, | ||
fontSize: 12, | ||
enableSnippets: false, | ||
showGutter: true, | ||
@@ -397,0 +398,0 @@ onChange: null, |
@@ -1,5 +0,7 @@ | ||
declare const editorOptions: string[]; | ||
declare const editorEvents: string[]; | ||
declare type EditorOption = "minLines" | "maxLines" | "readOnly" | "highlightActiveLine" | "tabSize" | "enableBasicAutocompletion" | "enableLiveAutocompletion" | "enableSnippets"; | ||
declare const editorOptions: EditorOption[]; | ||
declare type EditorEvent = "onChange" | "onFocus" | "onInput" | "onBlur" | "onCopy" | "onPaste" | "onSelectionChange" | "onCursorChange" | "onScroll" | "handleOptions" | "updateRef"; | ||
declare const editorEvents: EditorEvent[]; | ||
declare const getAceInstance: () => any; | ||
declare const debounce: (fn: (...args: any[]) => void, delay: number) => () => void; | ||
export { editorOptions, editorEvents, debounce, getAceInstance }; |
{ | ||
"name": "react-ace", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "A react component for Ace Editor", | ||
@@ -69,5 +69,5 @@ "main": "lib/index.js", | ||
"typescript": "^3.4.5", | ||
"webpack": "4.32.2", | ||
"webpack-cli": "^3.3.2", | ||
"webpack-dev-server": ">=3.4.1" | ||
"webpack": "4.33.0", | ||
"webpack-cli": "3.3.3", | ||
"webpack-dev-server": "3.7.1" | ||
}, | ||
@@ -74,0 +74,0 @@ "keywords": [ |
@@ -1,2 +0,12 @@ | ||
const editorOptions = [ | ||
type EditorOption = | ||
| "minLines" | ||
| "maxLines" | ||
| "readOnly" | ||
| "highlightActiveLine" | ||
| "tabSize" | ||
| "enableBasicAutocompletion" | ||
| "enableLiveAutocompletion" | ||
| "enableSnippets"; | ||
const editorOptions: EditorOption[] = [ | ||
"minLines", | ||
@@ -12,3 +22,16 @@ "maxLines", | ||
const editorEvents = [ | ||
type EditorEvent = | ||
| "onChange" | ||
| "onFocus" | ||
| "onInput" | ||
| "onBlur" | ||
| "onCopy" | ||
| "onPaste" | ||
| "onSelectionChange" | ||
| "onCursorChange" | ||
| "onScroll" | ||
| "handleOptions" | ||
| "updateRef"; | ||
const editorEvents: EditorEvent[] = [ | ||
"onChange", | ||
@@ -15,0 +38,0 @@ "onFocus", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1838818
10388