From d04c94a1c67c043c1fc8f475b4a87293eae2a86c Mon Sep 17 00:00:00 2001 From: josdejong Date: Sat, 23 May 2020 20:45:28 +0200 Subject: [PATCH] Create global state containing expanded state --- src/JSONEditor.svelte | 32 +++++++++++++++++++++++---- src/JSONNode.svelte | 21 +++++++++++++----- src/constants.js | 5 +++++ src/types.js | 2 +- src/utils/immutabilityHelpers.js | 18 +++++++++++---- src/utils/immutabilityHelpers.test.js | 21 ++++++++++++++---- src/utils/search.js | 4 +--- 7 files changed, 82 insertions(+), 21 deletions(-) create mode 100644 src/constants.js diff --git a/src/JSONEditor.svelte b/src/JSONEditor.svelte index 2d871ce..1e6e53a 100644 --- a/src/JSONEditor.svelte +++ b/src/JSONEditor.svelte @@ -1,4 +1,5 @@