@kong-ui-public/expressions 1.6.11 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,35 +16,34 @@ Reusable components to support [Kong's expressions language](https://developer.k
16
16
  ## Requirements
17
17
 
18
18
  - `vue` must be initialized in the host application
19
- - [`monaco-editor`](https://www.npmjs.com/package/monaco-editor) is required as a dependency in the host application
20
- - [`vite-plugin-monaco-editor`](https://www.npmjs.com/package/vite-plugin-monaco-editor) is a required Vite plugin to bundle the Monaco Editor and its web workers
19
+ - [`@kong-ui-public/monaco-editor`](https://www.npmjs.com/package/@kong-ui-public/monaco-editor) is required to provide Monaco Editor runtime support and the Vite plugin used to bundle Monaco Editor and its web workers
21
20
  - [`@kong-ui-public/forms`](https://www.npmjs.com/package/@kong-ui-public/forms) is an optional dependency required for the `RouterPlaygroundModal` component
22
21
 
23
22
  ## Usage
24
23
 
25
24
  ### Install
26
25
 
27
- Install required `devDependencies` in your host application:
26
+ Install the required Monaco Editor package in your host application:
28
27
 
29
28
  ```sh
30
- yarn add -D vite-plugin-monaco-editor
29
+ yarn add @kong-ui-public/monaco-editor
31
30
  ```
32
31
 
33
- Enable the `vite-plugin-monaco-editor` plugin. Your Vite config should look like this:
32
+ Enable the Monaco Editor Vite plugin from `@kong-ui-public/monaco-editor`. Your Vite config should look like this:
34
33
 
35
34
  ```ts
36
- import monacoEditorPlugin from 'vite-plugin-monaco-editor'
35
+ import monaco from '@kong-ui-public/monaco-editor/vite-plugin'
37
36
 
38
37
  export default defineConfig({
39
38
  // ...
40
39
  plugins: [
41
- monacoEditorPlugin({}),
40
+ monaco({}),
42
41
  ],
43
42
  // ...
44
43
  }
45
44
  ```
46
45
 
47
- For more information on configuring the `vite-plugin-monaco-editor` plugin, you should refer to their [readme docs](https://github.com/vdesjs/vite-plugin-monaco-editor/blob/master/README.md).
46
+ For more information on configuring languages, editor features, Shiki languages, and Shiki themes, refer to the [`@kong-ui-public/monaco-editor` Vite plugin docs](../monaco-editor/vite-plugin/README.md).
48
47
 
49
48
  ### Import and use
50
49