@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 +7 -8
- package/dist/expressions.es.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/ExpressionsEditor.vue.d.ts +2 -1
- package/dist/types/components/ExpressionsEditor.vue.d.ts.map +1 -1
- package/dist/types/components/RequestImportModal.vue.d.ts +1 -0
- package/dist/types/components/RequestImportModal.vue.d.ts.map +1 -1
- package/dist/types/monaco.d.ts +18 -6
- package/dist/types/monaco.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -47
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
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
|
-
- [
|
|
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
|
|
26
|
+
Install the required Monaco Editor package in your host application:
|
|
28
27
|
|
|
29
28
|
```sh
|
|
30
|
-
yarn add -
|
|
29
|
+
yarn add @kong-ui-public/monaco-editor
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
Enable the
|
|
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
|
|
35
|
+
import monaco from '@kong-ui-public/monaco-editor/vite-plugin'
|
|
37
36
|
|
|
38
37
|
export default defineConfig({
|
|
39
38
|
// ...
|
|
40
39
|
plugins: [
|
|
41
|
-
|
|
40
|
+
monaco({}),
|
|
42
41
|
],
|
|
43
42
|
// ...
|
|
44
43
|
}
|
|
45
44
|
```
|
|
46
45
|
|
|
47
|
-
For more information on configuring
|
|
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
|
|