2.0.2 • Published 11 months ago
@eventstore-ui/editor v2.0.2
@eventstore-ui/editor
Monaco editor wrapped in a web component, with pre-built workers.
See Monaco Editor for more information about usage.
Add to your project
yarn add @eventstore-ui/editor
Also, include the peer dependencies:
yarn add @eventstore-ui/components @eventstore-ui/utils
Set up within a Stencil project:
In your stencil config, add the workers to your copy task.
// import the path to the workers
import { workerPath } from '@eventstore-ui/editor/configure';
export const config: Config = {
// ...
outputTargets: [
{
// ...
copy: [
// ...
{
src: workerPath,
dest: 'workers',
},
],
},
],
};
In your globalScript
file:
// Add the core web components to the global pool
import '@eventstore-ui/components';
// add the editor web components to the global pool
import '@eventstore-ui/editor';
// import the monaco initialization code
import { initialize } from '@eventstore-ui/editor/initialize';
// initialize the monaco library (with options, if required)
initialize();
2.0.2
11 months ago
2.0.1
11 months ago
2.0.0
11 months ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.4
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.0-rc.1
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago
0.1.0-alpha.16
3 years ago
0.1.0-alpha.15
3 years ago
0.1.0-alpha.17
3 years ago
0.1.0-alpha.12
3 years ago
0.1.0-alpha.11
3 years ago
0.1.0-alpha.14
3 years ago
0.1.0-alpha.13
3 years ago
0.1.0-alpha.10
3 years ago
0.1.0-alpha.9
3 years ago