Suren Atoyan
7dd1ac6d0f
declare and export 'useMonaco' type
2021-01-18 13:47:14 +04:00
Suren Atoyan
a952d8c6ae
update package version to 4.0.1
2021-01-18 03:01:47 +04:00
Suren Atoyan
e7d98cb181
v4 ( #163 )
...
* update dependency (@monaco-editor/loader) version to - v1.0.0
* create useMonaco hook
* export useMonaco from the entry file
* rename the main utility: monaco -> loader
* rename editorDidMount to onMount, add beforeMount
* add defaultModelPath/originalModelPath/modifiedModelPath props
* add defaultValue prop and use it during default model creation
* rename the utility name: monaco -> loader
* handle no-unused-expressions rule
* move 'prop-types' to dependencies
* remove prop
* remove ControlledEditor
* visually combine properties with the same type
* prerelease v4
* prerelease v4: release candidate 0
* fix types according to changed
* add onValidate prop: an event emitted when the length of the model markers of the current model isn't 0
* update package version to 4.0.0-rc.1
* rename monacoEditor to monaco in types
* add state-local as a dependency
* define state-local as a external library and set in UMD globals
* use state-local to store the backup of the model markers setter
* fix types in comments
* create draft version of v4 README file
* fix tabs in Documentation
* make title upper case
* add codesandbox likns
2021-01-17 18:56:18 +04:00
Suren Atoyan
fcda83b18e
rename index.d.ts to types.d.ts
2021-01-08 13:18:45 +04:00
sunderls
5771fcbd07
Update index.d.ts ( #152 )
...
* Update index.d.ts
* Update README.md
2021-01-08 13:10:29 +04:00
Suren Atoyan
4e8b2cf151
use Rollup as a build system
2021-01-07 23:14:57 +04:00
Suren Atoyan
1bda26a177
remove config as it's already replaced by the
2021-01-07 18:41:32 +04:00
Suren Atoyan
95072eaeb6
coding style fixes
2021-01-07 18:35:25 +04:00
Suren Atoyan
0b47d9450c
create hook
2021-01-07 18:33:31 +04:00
Suren Atoyan
9f971b85fb
collect remaining utilities all in the entry file / add some new ones for the next version
2021-01-07 18:32:41 +04:00
Suren Atoyan
6ba53cd721
remove utilities that were being replaced by the
2021-01-07 18:30:49 +04:00
Suren Atoyan
f6b70f122b
--amend
2021-01-07 18:29:03 +04:00
Suren Atoyan
a44bfd82e8
use @monaco-editor/loader instead of 'monaco' utility
2021-01-07 18:26:45 +04:00
Suren Atoyan
56ab883c50
fix state-local import
2021-01-03 22:10:33 +04:00
Suren Atoyan
f598646f44
fix editorDidMount call order / correct coding style
2020-12-16 18:31:49 +04:00
Suren Atoyan
5ee02afc00
set in
2020-12-15 20:37:15 +04:00
Suren Atoyan
f142f59834
remove unnecessary before language update
2020-11-29 19:14:20 +04:00
Suren Atoyan
f80e4b95c2
Merge branch 'master' of https://github.com/SurenAt93/monaco-react
2020-11-11 18:19:39 +04:00
Suren Atoyan
a18988b861
update monaco version to 0.21.2
2020-11-11 18:19:11 +04:00
Suren Atoyan
c169dbcf00
update snapshots
2020-11-11 18:17:32 +04:00
Jonathan Tang
1b700c5b00
Pass HTMLAttributes to props ( #113 )
...
* Pass HTMLAttributes to props
Adds `React.HTMLAttributes<HTMLDivElements>>` to the the Functional Component type.
* Add className and wrapperClassName to Props
2020-09-22 12:57:57 +04:00
Suren Atoyan
7a8ea5d926
refactor according to new eslint rules
2020-08-19 14:12:57 +04:00
Suren Atoyan
7bf4b7861c
store current value in ref instead of making it a dependency of
2020-08-18 12:55:59 +04:00
Suren Atoyan
b61ad59e6f
Card 43719439 ( #108 )
...
* fix ControlledEditor onChange handler issue; dispose prev listener and attach a new one for every new onChange
* remove unnecessary dependency
* do not trigger onChange in programmatic changes
2020-08-18 12:09:52 +04:00
Suren Atoyan
b9aac0e9d4
remove intermediate function for injecting scripts
2020-08-09 21:08:20 +04:00
Suren Atoyan
abeed660cf
add as a dependency (replace with util
2020-08-06 22:04:54 +04:00
Suren Atoyan
eecace35f4
remove utils/store to utils/local-state
2020-08-03 02:29:15 +04:00
Suren Atoyan
7c7dd01293
move out hooks from utils to root
2020-08-03 02:28:31 +04:00
Suren Atoyan
d5fd64b2fb
redesign "store" utility
2020-08-02 19:46:04 +04:00
Suren Atoyan
3694326262
fix config obj name
2020-07-30 18:12:17 +04:00
Suren Atoyan
12a50e79d4
redesign utility , get rid of class, make it more fp
2020-07-30 17:42:38 +04:00
Suren Atoyan
23bf03d070
export compose and store from index point
2020-07-30 17:41:54 +04:00
Suren Atoyan
e475ca3470
create store utility
2020-07-30 17:40:47 +04:00
Suren Atoyan
7d9d60a1b8
create utility
2020-07-30 17:40:25 +04:00
Suren Atoyan
ef4b4f21e6
update version to 3.4.2
2020-07-15 17:11:06 +04:00
Suren Atoyan
8bbbba03cb
improve initialization error handling
2020-07-03 16:04:10 +04:00
Suren Atoyan
70700257ca
add className and wrapperClassName props for Editor and DiffEditor
2020-06-28 17:01:48 +04:00
Suren Atoyan
d24bf693fd
Merge pull request #78 from psrok1/fix/options-effects-order
...
Fix `readOnly` mode option check
2020-06-28 16:30:02 +04:00
psrok1
da22f369e0
Check readOnly computed editor option instead of property
2020-06-22 13:23:30 +02:00
Suren Atoyan
10aaf643df
update package version to 3.3.2
2020-06-20 17:43:42 +04:00
Suren Atoyan
9507194a6b
add a possibility to pass src of config script
2020-06-20 12:40:10 +04:00
Neal Chandra
d89fd514a3
Rename overrides to overrideServices
2020-05-30 11:32:10 -07:00
Neal Chandra
5e206b770f
Add overrides prop to editor
2020-05-29 14:58:30 -07:00
psrok1
ff7de5619d
Changed order of 'options' and 'value' effects
2020-05-21 15:57:04 +02:00
Suren Atoyan
7dc20f4023
Merge pull request #67 from Evelyn-McDonald/diffeditordidmount-fix
...
DiffEditorDidMount-fix
2020-04-25 15:41:48 +04:00
Suren Atoyan
76897f4e91
package: update default package version to 0.20.0
2020-04-13 15:01:27 +04:00
Evelyn
6f0328a0c8
swap getModifiedEditorValue and getOriginalEditorValue in DiffEditorDidMount type definition and README
2020-03-31 17:34:29 -04:00
Suren Atoyan
e8711ac86b
types: fix monaco.config types
2020-03-31 16:29:00 +04:00
Suren Atoyan
7f5b7730d4
config: deprecate indirect way of configuration and add deprecation message; create a new structure of the configuration; the passed object will be directly passed to require.config
2020-03-31 15:34:05 +04:00
Suren Atoyan
404291d21c
fix: check the existence of target[key] in deepMerge
2020-03-31 15:33:12 +04:00