1.0.2-3.1 • Published 6 months ago

@cxai/ide v1.0.2-3.1

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

TypeScript Editor Web Component

A web component that provides a TypeScript editor with autocomplete, type checking, and syntax highlighting. Optionally supports real-time collaboration using Yjs.

Installation

npm install @cxai/ide

Usage

Browser

<script type="module">
  import '@cxai/ide';
</script>

<ts-editor value="import { createMachine } from 'xstate';" url="%YJS_URL%" room="%YJS_ROOM%" component="codemirror" > 
  
</ts-editor>

Properties

TypeScript Editor

  • value: Get or set the editor content

Collaboration Provider

  • url: WebSocket URL of the Hocuspocus server
  • room: Room name for collaboration (defaults to 'default-room'), this will be the doc id
  • component: The component name in the yjs docm, defaults to 'codemirror'

License

MIT

1.0.2-3.1

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.2-1.4

6 months ago

1.0.2-1.3

6 months ago

1.0.2-1.2

6 months ago

1.0.2-1.1

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.15

7 months ago

1.0.14

8 months ago

1.0.13

9 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.4

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago