@kong-ui-public/expressions 0.4.4-pr.1551.f9fe2e05.0 → 0.4.4
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
|
@@ -24,13 +24,6 @@ Reusable components to support [Kong's expressions language](https://docs.konghq
|
|
|
24
24
|
|
|
25
25
|
### Install
|
|
26
26
|
|
|
27
|
-
Install required `dependencies` in your host application:
|
|
28
|
-
|
|
29
|
-
```sh
|
|
30
|
-
yarn add monaco-editor
|
|
31
|
-
yarn add @kong-ui-public/forms # optional: required for `RouterPlaygroundModal` component
|
|
32
|
-
```
|
|
33
|
-
|
|
34
27
|
Install required `devDependencies` in your host application:
|
|
35
28
|
|
|
36
29
|
```sh
|
|
@@ -60,9 +53,6 @@ Import the component(s) in your host application as well as the package styles:
|
|
|
60
53
|
```ts
|
|
61
54
|
import { asyncInit, ExpressionsEditor } from '@kong-ui-public/expressions'
|
|
62
55
|
import '@kong-ui-public/expressions/dist/style.css'
|
|
63
|
-
import '@kong-ui-public/forms/dist/style.css' // optional: required for `RouterPlaygroundModal` component
|
|
64
|
-
|
|
65
|
-
app.component('VueFormGenerator', VueFormGenerator) // optional: required for `RouterPlaygroundModal` component
|
|
66
56
|
```
|
|
67
57
|
|
|
68
58
|
This package utilizes [vite-plugin-top-level-await](https://github.com/Menci/vite-plugin-top-level-await) to transform code in order to use top-level await on older browsers. To load the WASM correctly, you must use `await` or `Promise.then` to wait the imported `asyncInit` before using any other imported values.
|