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
Suren Atoyan
f06e9d7a2c
diff editor: remove line prop as it's not used (and can't be used)
2020-03-16 02:14:11 +04:00
Suren Atoyan
0e9cb60327
cancel promise before unmount
2020-02-06 20:49:16 +04:00
Suren Atoyan
54496c4c56
make main wrapper promise cancelable
2020-02-06 20:48:03 +04:00
Suren Atoyan
e28737c905
create makeCancelable util
2020-02-06 20:47:22 +04:00
Suren Atoyan
d81cef85a1
update snapshots
2020-02-06 20:45:34 +04:00
Suren Atoyan
bc6ac17499
update monaco version to 0.19.3 in default config file
2020-02-06 20:44:39 +04:00
Suren Atoyan
45b8e16c94
update snapshots
2019-12-24 11:16:23 +04:00
lywTYH
1c21098205
fix type error
2019-12-19 14:31:54 +08:00
Suren Atoyan
48f277e9c9
add comment above 'Theme' type
2019-12-19 01:01:06 +04:00
Austin
1c980fd6ba
fix: add optional string type to theme
2019-12-18 07:18:50 -05:00
lywTYH
665ab3c6a9
fix type error
2019-12-11 15:58:58 +08:00
Suren Atoyan
01f3c537cc
prevent change in case of undo/redo
2019-11-09 20:33:52 +04:00
Suren Atoyan
3114bd7dea
update snapshots
2019-11-09 20:33:06 +04:00
Suren Atoyan
06f3b6af9d
use a separate prop for passing ref instead of using forwardref
2019-11-09 20:32:36 +04:00
Suren Atoyan
ca11dea0fd
create separate component for MonacoContainer
2019-11-09 19:45:08 +04:00
Suren Atoyan
4e6e4953a6
force additional tokenization in controlled mode to avoid blinking
2019-11-09 12:50:07 +04:00
Suren Atoyan
f348a16b75
remove redundant space
2019-10-25 23:13:20 +04:00
Suren Atoyan
5380155ed2
fix 'options' types
2019-10-25 23:09:43 +04:00
Suren Atoyan
6f60b76c74
write more proper types
2019-10-25 22:56:34 +04:00
Suren Atoyan
7d94788717
update snapshots
2019-10-09 00:58:33 +04:00
Suren Atoyan
be28010ad3
change the default version of monaco to 0.18.1
2019-10-09 00:55:42 +04:00
Suren Atoyan
ef06af9323
set last value by .setValue method before changing the language
2019-10-09 00:55:01 +04:00