1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] d90933d098
chore(deps): update dependency vanilla-jsoneditor to ^0.19.0 (#5503)
[![Mend Renovate logo
banner](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.18.4` ->
`^0.19.0`](https://renovatebot.com/diffs/npm/vanilla-jsoneditor/0.18.10/0.19.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/vanilla-jsoneditor/0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vanilla-jsoneditor/0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vanilla-jsoneditor/0.18.10/0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vanilla-jsoneditor/0.18.10/0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v0.19.0`](https://togithub.com/josdejong/svelte-jsoneditor/blob/HEAD/CHANGELOG.md#0190-2023-11-21)

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

##### ⚠ BREAKING CHANGES

-   Changes in the package exports

##### Features

- additional classes for improved CSS targeting
([4392f2c](4392f2c652))
- package exports not working in Jest
([77697b3](77697b3962))

##### Bug Fixes

-
[#&#8203;334](https://togithub.com/josdejong/svelte-jsoneditor/issues/334)
package exports not working in Jest
([3058c66](3058c66c65))
- wrong font in table mode
([dd448c5](dd448c5fff))

#####
[0.18.13](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.12...v0.18.13)
(2023-11-13)

##### Features

- update dependencies (`jsonrepair`, `@codemirror/autocomplete`)
([691072a](691072af2f))

#####
[0.18.12](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.11...v0.18.12)
(2023-11-08)

##### Features

- update to `jsonrepair@3.4.0`
([9ede6ea](9ede6ea53c))

##### Bug Fixes

-
[#&#8203;331](https://togithub.com/josdejong/svelte-jsoneditor/issues/331)
changing contents during the `onChange` callback throws a selection
error
([6e511fa](6e511faf3a))
-
[#&#8203;337](https://togithub.com/josdejong/svelte-jsoneditor/issues/337)
some menu styling issues
([2eec4e6](2eec4e6c48))
- `onChange` event not fired after calling `editor.set(...)` (see
[#&#8203;318](https://togithub.com/josdejong/svelte-jsoneditor/issues/318))
([afaca42](afaca42356))
- update codemirror and a couple of devDependencies
([7173333](71733336b6))
- use mono font in JSON Preview
([b07d08d](b07d08d9c6))

#####
[0.18.11](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.10...v0.18.11)
(2023-10-31)

##### Features

- update codemirror, jsonrepair, and other dependencies
([90d1b77](90d1b77453))

##### Bug Fixes

-
[#&#8203;321](https://togithub.com/josdejong/svelte-jsoneditor/issues/321)
editor not accepting JSON created in a different JavaScript realm like
an iframe
([06fb84c](06fb84cced))
- bottom margin of welcome screen in tree and table mode
([7d1eb02](7d1eb027ab))
- editor sometimes losing track on whether it has focus
([410f997](410f997b07))
- svelte giving warnings about creating components with unknown
properties
([627170a](627170a3e6))

#####
[0.18.10](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.9...v0.18.10)
(2023-10-17)

##### Bug Fixes

- rename "whole document" to "document root" and "whole item" to "item
root" to prevent confusion
([2699b71](2699b71f23))

#####
[0.18.9](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.8...v0.18.9)
(2023-10-11)

##### Bug Fixes

- unused CSS selector warnings in Svelte
([23b82cc](23b82cc022))

#####
[0.18.8](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.7...v0.18.8)
(2023-10-02)

##### Bug Fixes

- regression since v0.18.17 not allowing to put the cursor halfway the
value when editing a value
([3e34e8d](3e34e8daaf))

#####
[0.18.7](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.6...v0.18.7)
(2023-09-28)

##### Bug Fixes

-
[#&#8203;315](https://togithub.com/josdejong/svelte-jsoneditor/issues/315)
cannot paste text in the search box input field in tree mode
([a9a2dc3](a9a2dc32e2))

#####
[0.18.6](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.5...v0.18.6)
(2023-09-27)

##### Bug Fixes

- broken import due to missing file extension
([0f734c5](0f734c593e))

#####
[0.18.5](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.4...v0.18.5)
(2023-09-27)

##### Features

- update dependencies, most notably `jsonrepair` and `codemirror`
([f6306b0](f6306b00ef))

##### Bug Fixes

-
[#&#8203;312](https://togithub.com/josdejong/svelte-jsoneditor/issues/312)
"Show me" button throwing an error when no position was provided in the
error message
([d839e95](d839e95c59))
-
[#&#8203;312](https://togithub.com/josdejong/svelte-jsoneditor/issues/312)
the "Show me" button throwing an error when no position was provided in
the error message
([36d7934](36d79345b2))
- minor styling issues with modals
([97d2d94](97d2d9407d))
- update dependencies, most notably `codemirror` and `jsonrepair`
([439eb8a](439eb8ae8a))

#####
[0.18.4](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.3...v0.18.4)
(2023-09-19)

##### Features

- add indentation on wrapped lines
([#&#8203;295](https://togithub.com/josdejong/svelte-jsoneditor/issues/295))
([367accf](367accfa26))
- improve welcome screen with action buttons to create an array or
object
([d4e301f](d4e301fc9d))

##### Bug Fixes

- collapsed items section not removed when empty
([3d3ad45](3d3ad456cf))
- creating an array or object or pasting content in the welcome screen
not working
([7def339](7def339d91))
- editor not getting focus in table mode when clicking inside an empty
area
([609983d](609983d3a6))
- select active element on undo only when existing
([e5beebf](e5beebfdc4))
- selection moving to value after renaming the last key of an object
([ac31282](ac31282161))
- some issues with navigating in `tree` mode using arrow keys
([a3f9c92](a3f9c92346))
- when inserting a new array or object in an empty editor, set selection
inside the array/object
([821933e](821933e3df))
- when inserting a new value by typing somewhere, it doesn't initially
have the right color
([9f6ea35](9f6ea35427))

#####
[0.18.3](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.2...v0.18.3)
(2023-08-30)

##### Bug Fixes

- restore the selection when going back when having multiple JSONEditor
modals
([085a9d3](085a9d31de))
- sometimes multiple cells selected in Table mode
([c7705f6](c7705f6e99))

#####
[0.18.2](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.1...v0.18.2)
(2023-08-25)

##### Bug Fixes

-
[#&#8203;304](https://togithub.com/josdejong/svelte-jsoneditor/issues/304)
`ReadonlyValue.svelte` wrongly importing two moved types
([ed8b058](ed8b05890f))

#####
[0.18.1](https://togithub.com/josdejong/svelte-jsoneditor/compare/v0.18.0...v0.18.1)
(2023-08-25)

##### Bug Fixes

-
[#&#8203;300](https://togithub.com/josdejong/svelte-jsoneditor/issues/300)
change the homepage in package.json to the Github repo
([b1977e5](b1977e5047))
-
[#&#8203;304](https://togithub.com/josdejong/svelte-jsoneditor/issues/304)
missing type `JSONPointer` internally
([e23abbc](e23abbc369))

###
[`v0.18.13`](https://togithub.com/josdejong/svelte-jsoneditor/blob/HEAD/CHANGELOG.md#01813-2023-11-13)

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

###
[`v0.18.12`](https://togithub.com/josdejong/svelte-jsoneditor/blob/HEAD/CHANGELOG.md#01812-2023-11-08)

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

###
[`v0.18.11`](https://togithub.com/josdejong/svelte-jsoneditor/blob/HEAD/CHANGELOG.md#01811-2023-10-31)

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

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 16:33:49 +00:00
..
cypress refactor: isolate tests (#5433) 2023-11-27 13:55:44 +01:00
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src feat: new search for feature toggle list table (#5454) 2023-11-29 10:42:35 +01:00
.editorconfig
.gitignore Test npm publish (#3554) 2023-04-18 15:44:19 +02:00
.nvmrc chore: update to node 18 (#3527) 2023-04-18 10:35:32 +02:00
cypress.config.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
cypress.d.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
index.html feat: dynamic icons by adding material symbols font (#5008) 2023-10-12 11:22:23 +01:00
index.js feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
orval.config.js
package.json chore(deps): update dependency vanilla-jsoneditor to ^0.19.0 (#5503) 2023-11-29 16:33:49 +00:00
README.md feat: application usage frontend (#4561) 2023-08-24 13:13:02 +03:00
tsconfig.json
tsconfig.node.json Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
vercel.json fix: update vercel proxy paths (#2623) 2022-12-07 13:00:51 +01:00
vite.config.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
yarn.lock chore(deps): update dependency vanilla-jsoneditor to ^0.19.0 (#5503) 2023-11-29 16:33:49 +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