1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] dfdd9f0dd3
chore(deps): update dependency vanilla-jsoneditor to ^0.22.0 (#6577)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vanilla-jsoneditor](https://togithub.com/josdejong/svelte-jsoneditor)
| [`^0.21.0` ->
`^0.22.0`](https://renovatebot.com/diffs/npm/vanilla-jsoneditor/0.21.6/0.22.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/vanilla-jsoneditor/0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vanilla-jsoneditor/0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vanilla-jsoneditor/0.21.6/0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vanilla-jsoneditor/0.21.6/0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>josdejong/svelte-jsoneditor (vanilla-jsoneditor)</summary>

###
[`v0.22.0`](https://togithub.com/josdejong/svelte-jsoneditor/blob/HEAD/CHANGELOG.md#0220-2024-03-01)

[Compare
Source](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.6...v0.22.0)

##### ⚠ BREAKING CHANGES

- The `onChange` callback is no longer triggered on programmatic changes
via a
two-way binded `content` or via methods `.update()`, `.set()`, and
`.patch()`.

##### Features

- do not trigger onChange on programmatic changes
([#&#8203;410](https://togithub.com/josdejong/svelte-jsoneditor/issues/410))
([201f602](201f6020c4))
- document the requirement for immutable changes in `content` (see
[#&#8203;318](https://togithub.com/josdejong/svelte-jsoneditor/issues/318))
([0545e64](0545e647b9))
- update dependencies (a.o. fixing an issue with wrapping tab indented
lines)
([1bd92e7](1bd92e73fb))

##### Bug Fixes

- add missing property `onSelect` to interface `JSONEditorPropsOptional`
([4087e3f](4087e3fa9e))
- improve the logic to determine whether a JSON document needs
formatting
([bb15bd1](bb15bd1d30))
- onCreateMenu and onCreateContextMenu possibly applying mutated changes
without returning
([da8fd60](da8fd6093d))

#####
[0.21.6](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.5...v0.21.6)
(2024-02-15)

##### Features

- upgrade `codemirror`, `jsonrepair`, `svelte`, `svelte-simple-modal`,
and dev dependencies
([3255741](3255741101))

##### Bug Fixes

- improve the logic to determine whether a JSON document needs
formatting
([0ca8a49](0ca8a493e4))
- type definition of `JSONEditorPropsOptional.flattenColumns`
([3a28757](3a28757a08))
- type definition of RenderMenuContext.mode
([51a7133](51a7133778))

#####
[0.21.5](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.4...v0.21.5)
(2024-02-05)

##### Features

- implement support for vanilla JS components in `onRenderValue` using
Svelte Action
([#&#8203;398](https://togithub.com/josdejong/svelte-jsoneditor/issues/398))
([db482ea](db482eae3c))

##### Bug Fixes

-
[#&#8203;392](https://togithub.com/josdejong/svelte-jsoneditor/issues/392)
property `onRenderContextMenu` missing in `JSONEditorPropsOptional`
([ee9b4c9](ee9b4c9199))
-
[#&#8203;401](https://togithub.com/josdejong/svelte-jsoneditor/issues/401)
original data can be mutated by the TransformModal previews
([337f812](337f81234b))
- consistently use selectedJson in the TransformModal
([ac31a79](ac31a7980d))
- use `flex-start` instead of `start` for `align-items`
([#&#8203;395](https://togithub.com/josdejong/svelte-jsoneditor/issues/395))
([b8be1a5](b8be1a57f3))

#####
[0.21.4](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.3...v0.21.4)
(2024-01-24)

##### Bug Fixes

-
[#&#8203;381](https://togithub.com/josdejong/svelte-jsoneditor/issues/381)
method `.update()` throwing an exception when calling directly after
creating the editor
([75c3b5e](75c3b5e1c1))
- update `@codemirror/view` and dev dependencies
([3f2afef](3f2afef38b))

#####
[0.21.3](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.2...v0.21.3)
(2024-01-19)

##### Bug Fixes

-
[#&#8203;381](https://togithub.com/josdejong/svelte-jsoneditor/issues/381)
method `set()` sometimes throwing an error in `text` mode
([2dc62f0](2dc62f0405))
-
[#&#8203;391](https://togithub.com/josdejong/svelte-jsoneditor/issues/391)
editor not supporting `Object.create(null)` as object
([918a126](918a126789))
- update dependencies and devDependencies
([0d49b66](0d49b66810))

#####
[0.21.2](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.1...v0.21.2)
(2024-01-10)

##### Features

- provide the current `selection` in `onRenderContextMenu`
([#&#8203;376](https://togithub.com/josdejong/svelte-jsoneditor/issues/376))
([2068823](2068823bc3))
- update deps `codemirror`, `jsonrepair`, `sass`, `svelte-awesome`,
`svelte-select`, and more
([63ac195](63ac1950db))

##### Bug Fixes

-
[#&#8203;379](https://togithub.com/josdejong/svelte-jsoneditor/issues/379)
ContextMenu not closing after using a custom button via
onRenderContextMenu
([2a83137](2a8313759a))
-
[#&#8203;386](https://togithub.com/josdejong/svelte-jsoneditor/issues/386)
add a `standalone.d.ts` file to the `vanilla-jsoneditor` package
([4f8fa55](4f8fa55fb4))
- improve performance of `isColor` detection (see
[#&#8203;378](https://togithub.com/josdejong/svelte-jsoneditor/issues/378))
([514f6ca](514f6cafdf))
- improve performance of `isColor` detection for long text values (See
[#&#8203;378](https://togithub.com/josdejong/svelte-jsoneditor/issues/378))
([b1a04fc](b1a04fce77))
- update dependency `jsonrepair`
([ec23521](ec235216a1))

#####
[0.21.1](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.21.0...v0.21.1)
(2023-12-20)

##### Bug Fixes

- add a module export again to the `svelte-jsoneditor` package
([0c695a4](0c695a444a))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 01:59:20 +00:00
..
cypress chore: remove featureSearchFrontend flag (#6066) 2024-01-31 09:22:26 +02:00
public
scripts
src chore: drop action definition required (#6567) 2024-03-14 16:32:14 +00:00
.editorconfig
.gitignore
.nvmrc
check-imports.rc chore: add a script that validates that we don't use prohibited mui material-icons import (#6516) 2024-03-12 13:29:52 +01:00
cypress.config.ts chore: upgrading vite to newer version (#5703) 2023-12-20 14:48:18 +01:00
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency vanilla-jsoneditor to ^0.22.0 (#6577) 2024-03-15 01:59:20 +00:00
README.md feat: application usage frontend (#4561) 2023-08-24 13:13:02 +03:00
tsconfig.json
tsconfig.node.json chore: upgrading vite to newer version (#5703) 2023-12-20 14:48:18 +01:00
vercel.json
vite.config.mts fix: fix assets not showing up (#5757) 2024-01-04 12:11:42 +02:00
yarn.lock chore(deps): update dependency vanilla-jsoneditor to ^0.22.0 (#6577) 2024-03-15 01:59:20 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

For now we only use generated types (src/openapi/models). We will use methods (src/openapi/apis) for new features soon.

yarn gen:api
rm -rf src/openapi/apis

clean up src/openapi/index.ts imports, only keep first line export * from './models';

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory