Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: support edit on graph

AykutSarac45d4fa3d663e
diff --git a/package.json b/package.json
index 2ddb0bc0..2b58ef55 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,8 @@
"jsonc-parser": "^3.2.0",
"jsonwebtoken": "^9.0.0",
"lodash.debounce": "^4.0.8",
+ "lodash.get": "^4.4.2",
+ "lodash.set": "^4.3.2",
"lz-string": "^1.5.0",
"next": "13.2.3",
"react": "^18.2.0",
@@ -51,6 +53,8 @@
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/jsonwebtoken": "^9.0.2",
"@types/lodash.debounce": "^4.0.7",
+ "@types/lodash.get": "^4.4.7",
+ "@types/lodash.set": "^4.3.7",
"@types/lz-string": "^1.5.0",
"@types/node": "^20.2.1",
"@types/react": "18.2.6",
diff --git a/src/components/Graph/PremiumView.tsx b/src/components/Graph/PremiumView.tsx
index 5b35b950..fbfe3a7a 100644
--- a/src/components/Graph/PremiumView.tsx
+++ b/src/components/Graph/PremiumView.tsx
@@ -167,15 +167,7 @@ export const PremiumView = () => (
<List.Item>Visualize data at full capability</List.Item>
<List.Item>Save & share up to 200 files</List.Item>
<List.Item>No Ads</List.Item>
- <List.Item
- icon={
- <ThemeIcon color="dark.4" size={20} radius="xl">
- <BsCheck size="1rem" />
- </ThemeIcon>
- }
- >
- Edit directly on graph <Badge>Soon</Badge>
- </List.Item>
+ <List.Item>Edit directly on graph</List.Item>
<List.Item
icon={
<ThemeIcon color="dark.4" size={20} radius="xl">
diff --git a/src/containers/Home/styles.tsx b/src/containers/Home/styles.tsx
deleted file mode 100644
index 04e1380c..00000000
--- a/src/containers/Home/styles.tsx
+++ /dev/null
@@ -1,421 +0,0 @@
-import Link from "next/link";
-import styled from "styled-components";
-
-export const StyledButtonWrapper = styled.div`
- display: flex;
- gap: 18px;
-
- @media only screen and (max-width: 768px) {
- display: none;
- }
-`;
-
-export const StyledTwitterQuote = styled.div`
- width: 100%;
- height: 100%;
-
- blockquote.twitter-tweet {
- display: inline-block;
- font-family: "Helvetica Neue", Roboto, "Segoe UI", Calibri, sans-serif;
- font-size: 12px;
- font-weight: bold;
- line-height: 16px;
- border-color: #eee #ddd #bbb;
- border-radius: 5px;
- border-style: solid;
- border-width: 1px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
- margin: 10px 5px;
- padding: 0 16px 16px 16px;
- max-width: 468px;
- }
-
- blockquote.twitter-tweet p {
- font-size: 16px;
- font-weight: normal;
- line-height: 20px;
- }
-
- blockquote.twitter-tweet a {
- color: inherit;
- font-weight: normal;
- text-decoration: none;
- outline: 0 none;
- }
-
- blockquote.twitter-tweet a:hover,
- blockquote.twitter-tweet a:focus {
- text-decoration: underline;
- }
-`;
-
-export const StyledImageWrapper = styled.div`
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
-`;
-
-export const StyledHome = styled.div`
- display: flex;
- flex-direction: column;
- gap: 8em;
-
- background-color: #000000 !important;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.3'%3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%23110718' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%23220e30' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%23331447' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%23441b5f' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23552277' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
- background-attachment: fixed;
- background-size: cover;
-
- * {
- box-sizing: border-box;
- }
-
- @media only screen and (max-width: 768px) {
- gap: 3em;
- }
-`;
-
-export const StyledGradientText = styled.span`
- background: #ffb76b;
- background: linear-gradient(to right, #ffb76b 0%, #ffa73d 30%, #ff7c00 60%, #ff7f04 100%);
- background-clip: text;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
-`;
-
-export const StyledNavbar = styled.nav`
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- padding: 16px 16px;
- gap: 20px;
-
- @media only screen and (max-width: 768px) {
- a:first-of-type {
- display: none;
- }
- }
-`;
-
-export const StyledHeroSection = styled.section`
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- gap: 1.5em;
- min-height: 40vh;
- padding: 0 3%;
- margin-top: -8em;
-
- h2 {
- margin-bottom: 25px;
- }
-`;
-
-export const StyledNavLink = styled(Link)`
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 1rem;
- cursor: pointer;
- transition: color 0.2s;
-
- &:hover {
- font-weight: 500;
- color: ${({ theme }) => theme.ORANGE};
- }
-`;
-
-export const StyledTitle = styled.h1`
- font-weight: 900;
- margin: 0;
- font-size: min(6vw, 86px);
- color: white;
- font-family: var(--mona-sans);
-
- @media only screen and (max-width: 768px) {
- font-size: 2.5rem;
- }
-`;
-
-export const StyledSubTitle = styled.h2`
- color: #dedede;
- text-align: center;
- font-size: 2.5rem;
- max-width: 40rem;
- margin: 0;
-
- @media only screen and (max-width: 768px) {
- font-size: 1.5rem;
- }
-`;
-
-export const StyledMinorTitle = styled.p`
- color: #b4b4b4;
- text-align: center;
- font-size: 1rem;
- margin: 0;
- letter-spacing: 1.2px;
-
- @media only screen and (max-width: 992px) {
- font-size: 1rem;
- }
-`;
-
-export const StyledFeaturesSection = styled.section`
- display: grid;
- margin: 0 auto;
- max-width: 80%;
- justify-content: center;
- grid-template-columns: repeat(2, 40%);
- grid-template-rows: repeat(2, 1fr);
- grid-column-gap: 60px;
- grid-row-gap: 60px;
-
- @media only screen and (min-width: 1024px) {
- max-width: 60%;
- }
-
- @media only screen and (max-width: 768px) {
- flex-direction: column;
- max-width: 80%;
- display: flex;
- }
-`;
-
-export const StyledSectionCard = styled.div`
- text-align: center;
- flex: 1;
- border: 1px solid ${({ theme }) => theme.BACKGROUND_MODIFIER_ACCENT};
- background: rgb(48, 0, 65);
- background: linear-gradient(
- 138deg,
- rgba(48, 0, 65, 0.8870141806722689) 0%,
- rgba(72, 12, 84, 0.40802258403361347) 33%,
- rgba(65, 8, 92, 0.6012998949579832) 100%
- );
- border-radius: 6px;
- padding: 16px;
-`;
-
-export const StyledCardTitle = styled.div`
- font-weight: 700;
- font-size: 1.5rem;
- padding: 1.5rem 0 0.5rem;
- letter-spacing: 1px;
-`;
-
-export const StyledCardIcon = styled.div``;
-
-export const StyledCardDescription = styled.p`
- color: #e0e0e0;
- text-align: left;
- line-height: 1.5rem;
- font-size: 0.875rem;
-`;
-
-export const StyledFrame = styled.iframe`
- width: 100%;
- height: 100%;
- min-height: 200px;
- border: 2px solid ${({ theme }) => theme.PRIMARY};
- border-radius: 6px;
-
- @media only screen and (min-width: 768px) {
- min-height: 384px;
- }
-`;
-
-export const StyledPreviewFrame = styled(StyledFrame)`
- border: none;
- border-left: 2px solid ${({ theme }) => theme.PRIMARY};
- border-radius: 0;
- height: 476px;
- width: 50%;
-`;
-
-export const StyledSection = styled.section<{ reverse?: boolean }>`
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- max-width: 85%;
- margin: 0 auto;
- gap: 4rem;
- line-height: 1.5;
- padding: 50px 3%;
-
- & > div {
- width: 100%;
- }
-
- @media only screen and (max-width: 1200px) {
- flex-direction: ${({ reverse }) => (reverse ? "column-reverse" : "column")};
- max-width: 80%;
- }
-`;
-
-export const StyledSectionArea = styled.div`
- display: flex;
- flex-direction: column;
- gap: 2rem;
- width: 40%;
- margin-top: 3rem;
-
- h2,
- p {
- text-align: left;
- letter-spacing: unset;
- }
-
- @media only screen and (max-width: 768px) {
- width: 100%;
- align-items: center;
-
- h2 {
- text-align: center;
- }
- }
-`;
-
-export const StyledSponsorSection = styled.section`
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- max-width: 85%;
- margin: 0 auto;
- gap: 2rem;
- line-height: 1.5;
- padding: 50px 3%;
-
- @media only screen and (max-width: 768px) {
- max-width: 90%;
- }
-`;
-
-export const StyledEmbedSection = styled.section`
- display: flex;
- flex-direction: column-reverse;
- justify-content: center;
- align-items: center;
- max-width: 85%;
- margin: 0 auto;
- gap: 2rem;
- line-height: 1.5;
- padding: 50px 3%;
-
- @media only screen and (max-width: 768px) {
- max-width: 80%;
- }
-`;
-
-export const StyledPreviewSection = styled.section`
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- width: 70%;
- margin: 0 auto;
- background: ${({ theme }) => theme.BLACK_SECONDARY};
- border: 2px solid ${({ theme }) => theme.PRIMARY};
- border-radius: 6px;
- overflow: hidden;
- height: 480px;
-
- @media only screen and (max-width: 992px) {
- display: none;
- }
-`;
-
-export const StyledHighlightWrapper = styled.div`
- width: 50%;
-`;
-
-export const StyledTabsWrapper = styled.div`
- display: flex;
- gap: 10px;
- padding: 8px 8px;
- padding-bottom: 0;
- height: 34px;
-
- pre {
- border-top: 2px solid ${({ theme }) => theme.PRIMARY};
- }
-`;
-
-export const StyledTab = styled.button<{ active?: boolean }>`
- border-radius: 6px 6px 0 0;
- background: ${({ active }) => active && "#1e1e1e"};
- border: 2px solid ${({ theme, active }) => (active ? theme.PRIMARY : "transparent")};
- border-bottom: 0;
- margin-bottom: -2px;
- padding: 4px 8px;
- min-width: 80px;
- max-width: 150px;
- color: ${({ theme, active }) => (active ? theme.INTERACTIVE_ACTIVE : theme.INTERACTIVE_NORMAL)};
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- font-size: 12px;
- font-weight: 600;
-
- &:hover {
- color: ${({ theme, active }) => !active && theme.INTERACTIVE_HOVER};
- }
-`;
-
-export const StyledImage = styled.img`
- width: 100%;
- height: 100%;
- object-fit: contain;
- filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6));
-`;
-
-export const StyledHighlightedText = styled.span`
- text-decoration: underline;
- text-decoration-style: dashed;
- text-decoration-color: #eab308;
-`;
-
-export const StyledProducthunt = styled.div`
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- gap: 3rem;
- border-right: 1px solid white;
- padding-right: 3rem;
-
- @media only screen and (max-width: 768px) {
- border-right: none;
- border-bottom: 1px solid white;
- padding-bottom: 3rem;
- padding-right: 0;
- }
-`;
-
-export const StyledPaidSection = styled.section`
- display: flex;
- max-width: 85%;
- margin: 0 auto;
- gap: 2rem;
- padding: 50px 3%;
-
- @media only screen and (max-width: 768px) {
- flex-direction: column;
- max-width: 80%;
- }
-`;
-
-export const StyledAffiliate = styled.div`
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- gap: 3rem;
-
- .carbon-outer {
- max-width: 430px;
- }
-`;
diff --git a/src/containers/Modals/NodeModal/index.tsx b/src/containers/Modals/NodeModal/index.tsx
index 60fd8982..40a282b0 100644
--- a/src/containers/Modals/NodeModal/index.tsx
+++ b/src/containers/Modals/NodeModal/index.tsx
@@ -1,8 +1,16 @@
import React from "react";
-import { Modal, Stack, Text, ScrollArea, ModalProps } from "@mantine/core";
+import { Modal, Stack, Text, ScrollArea, ModalProps, Button } from "@mantine/core";
import { Prism } from "@mantine/prism";
+import Editor from "@monaco-editor/react";
+import vsDark from "prism-react-renderer/themes/vsDark";
+import vsLight from "prism-react-renderer/themes/vsLight";
+import { VscLock } from "react-icons/vsc";
import { shallow } from "zustand/shallow";
+import useFile from "src/store/useFile";
import useGraph from "src/store/useGraph";
+import useModal from "src/store/useModal";
+import useStored from "src/store/useStored";
+import useUser from "src/store/useUser";
const dataToString = (data: any) => {
const text = Array.isArray(data) ? Object.fromEntries(data) : data;
@@ -14,17 +22,22 @@ const dataToString = (data: any) => {
return JSON.stringify(text, replacer, 2);
};
-const CodeBlock: React.FC<{ children: any }> = ({ children }) => {
+const CodeBlock: React.FC<{ children: any; [key: string]: any }> = ({
+ format,
+ children,
+ ...props
+}) => {
return (
<ScrollArea>
<Prism
- maw={600}
miw={350}
mah={250}
language="json"
copyLabel="Copy to clipboard"
copiedLabel="Copied to clipboard"
withLineNumbers
+ getPrismTheme={(_theme, colorScheme) => (colorScheme === "light" ? vsLight : vsDark)}
+ {...props}
>
{children}
</Prism>
@@ -33,26 +46,95 @@ const CodeBlock: React.FC<{ children: any }> = ({ children }) => {
};
export const NodeModal: React.FC<ModalProps> = ({ opened, onClose }) => {
- const [nodeData, path] = useGraph(
- state => [dataToString(state.selectedNode.text), state.selectedNode.path],
+ const isPremium = useUser(state => state.isPremium());
+ const editContents = useFile(state => state.editContents);
+ const setVisible = useModal(state => state.setVisible);
+ const lightmode = useStored(state => (state.lightmode ? "light" : "vs-dark"));
+ const [nodeData, path, isParent] = useGraph(
+ state => [
+ dataToString(state.selectedNode.text),
+ state.selectedNode.path,
+ state.selectedNode.data?.isParent,
+ ],
shallow
);
+ const [editMode, setEditMode] = React.useState(false);
+ const [value, setValue] = React.useState(nodeData || "");
+
+ const onUpdate = () => {
+ if (!value) return setEditMode(false);
+ if (!isPremium) return;
+ editContents(path!, value, () => {
+ setEditMode(false);
+ onModalClose();
+ });
+ };
+
+ const onModalClose = () => {
+ setEditMode(false);
+ setValue("");
+ onClose();
+ };
+
+ const onEditClick = () => {
+ if (isPremium) return setEditMode(true);
+ setVisible("premium")(true);
+ onModalClose();
+ };
+
+ const isEditVisible = path !== "{Root}" && !isParent;
return (
- <Modal title="Node Content" size="auto" opened={opened} onClose={onClose} centered>
+ <Modal title="Node Content" size="auto" opened={opened} onClose={onModalClose} centered>
<Stack py="sm" spacing="sm">
<Stack spacing="xs">
<Text fz="sm" fw={700}>
Content
</Text>
- <CodeBlock>{nodeData}</CodeBlock>
+ {editMode ? (
+ <Editor
+ theme={lightmode}
+ defaultValue={nodeData}
+ onChange={e => setValue(e!)}
+ height={200}
+ language="json"
+ options={{
+ readOnly: !editMode,
+ minimap: {
+ enabled: false,
+ },
+ }}
+ />
+ ) : (
+ <CodeBlock maw={600}>{nodeData}</CodeBlock>
+ )}
</Stack>
- <Stack spacing="xs">
- <Text fz="sm" fw={700}>
- Node Path
+ {editMode && (
+ <Text color="dimmed" fz="xs">
+ Keys cannot be renamed and will be added as a new field.
</Text>
- <CodeBlock>{path}</CodeBlock>
- </Stack>
+ )}
+ {isEditVisible && (
+ <Stack spacing="xs">
+ {editMode ? (
+ <Button
+ variant={value ? "filled" : "light"}
+ color={value ? "green" : "blue"}
+ onClick={onUpdate}
+ >
+ {value.length ? "Update Document" : "Cancel"}
+ </Button>
+ ) : (
+ <Button onClick={onEditClick} leftIcon={!isPremium && <VscLock />} variant="filled">
+ Edit
+ </Button>
+ )}
+ </Stack>
+ )}
+ <Text fz="sm" fw={700}>
+ Node Path
+ </Text>
+ <CodeBlock>{path}</CodeBlock>
</Stack>
</Modal>
);
diff --git a/src/containers/Modals/PremiumModal/index.tsx b/src/containers/Modals/PremiumModal/index.tsx
index f48eba23..e13e8b7b 100644
--- a/src/containers/Modals/PremiumModal/index.tsx
+++ b/src/containers/Modals/PremiumModal/index.tsx
@@ -74,15 +74,7 @@ export const PremiumModal: React.FC<ModalProps> = ({ opened, onClose }) => {
<List.Item>Visualize data at full capability</List.Item>
<List.Item>Save & share up to 200 files</List.Item>
<List.Item>No Ads</List.Item>
- <List.Item
- icon={
- <ThemeIcon color="dark.5" size={20} radius="xl">
- <BsCheck size="1rem" />
- </ThemeIcon>
- }
- >
- Edit directly on graph <Badge>Soon</Badge>
- </List.Item>
+ <List.Item>Edit directly on graph</List.Item>
<List.Item
icon={
<ThemeIcon color="dark.5" size={20} radius="xl">
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 3eff048e..12b7e250 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -3,7 +3,7 @@ import dynamic from "next/dynamic";
import Head from "next/head";
import Link from "next/link";
import Script from "next/script";
-import { ThemeProvider } from "styled-components";
+import styled, { ThemeProvider } from "styled-components";
import { Button } from "@mantine/core";
import { AiOutlineRight, AiTwotoneStar } from "react-icons/ai";
import {
@@ -20,7 +20,6 @@ import { Sponsors } from "src/components/Sponsors";
import { baseURL } from "src/constants/data";
import { TABS } from "src/constants/previewSection";
import { darkTheme } from "src/constants/theme";
-import * as Styles from "src/containers/Home/styles";
import { Footer } from "src/layout/Footer";
import { Navbar } from "src/layout/Navbar";
import { Producthunt } from "src/layout/Producthunt";
@@ -29,22 +28,381 @@ const SyntaxHighlighter = dynamic(() => import("react-syntax-highlighter/dist/cj
ssr: false,
});
+const StyledButtonWrapper = styled.div`
+ display: flex;
+ gap: 18px;
+
+ @media only screen and (max-width: 768px) {
+ display: none;
+ }
+`;
+
+const StyledTwitterQuote = styled.div`
+ width: 100%;
+ height: 100%;
+
+ blockquote.twitter-tweet {
+ display: inline-block;
+ font-family: "Helvetica Neue", Roboto, "Segoe UI", Calibri, sans-serif;
+ font-size: 12px;
+ font-weight: bold;
+ line-height: 16px;
+ border-color: #eee #ddd #bbb;
+ border-radius: 5px;
+ border-style: solid;
+ border-width: 1px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
+ margin: 10px 5px;
+ padding: 0 16px 16px 16px;
+ max-width: 468px;
+ }
+
+ blockquote.twitter-tweet p {
+ font-size: 16px;
+ font-weight: normal;
+ line-height: 20px;
+ }
+
+ blockquote.twitter-tweet a {
+ color: inherit;
+ font-weight: normal;
+ text-decoration: none;
+ outline: 0 none;
+ }
+
+ blockquote.twitter-tweet a:hover,
+ blockquote.twitter-tweet a:focus {
+ text-decoration: underline;
+ }
+`;
+
+const StyledHome = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: 8em;
+
+ background-color: #000000 !important;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.3'%3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%23110718' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%23220e30' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%23331447' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%23441b5f' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23552277' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
+ background-attachment: fixed;
+ background-size: cover;
+
+ * {
+ box-sizing: border-box;
+ }
+
+ @media only screen and (max-width: 768px) {
+ gap: 3em;
+ }
+`;
+
+const StyledGradientText = styled.span`
+ background: #ffb76b;
+ background: linear-gradient(to right, #ffb76b 0%, #ffa73d 30%, #ff7c00 60%, #ff7f04 100%);
+ background-clip: text;
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+`;
+
+const StyledHeroSection = styled.section`
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ gap: 1.5em;
+ min-height: 40vh;
+ padding: 0 3%;
+ margin-top: -8em;
+
+ h2 {
+ margin-bottom: 25px;
+ }
+`;
+
+const StyledTitle = styled.h1`
+ font-weight: 900;
+ margin: 0;
+ font-size: min(6vw, 86px);
+ color: white;
+ font-family: var(--mona-sans);
+
+ @media only screen and (max-width: 768px) {
+ font-size: 2.5rem;
+ }
+`;
+
+const StyledSubTitle = styled.h2`
+ color: #dedede;
+ text-align: center;
+ font-size: 2.5rem;
+ max-width: 40rem;
+ margin: 0;
+
+ @media only screen and (max-width: 768px) {
+ font-size: 1.5rem;
+ }
+`;
+
+const StyledMinorTitle = styled.p`
+ color: #b4b4b4;
+ text-align: center;
+ font-size: 1rem;
+ margin: 0;
+ letter-spacing: 1.2px;
+
+ @media only screen and (max-width: 992px) {
+ font-size: 1rem;
+ }
+`;
+
+const StyledFeaturesSection = styled.section`
+ display: grid;
+ margin: 0 auto;
+ max-width: 80%;
+ justify-content: center;
+ grid-template-columns: repeat(2, 40%);
+ grid-template-rows: repeat(2, 1fr);
+ grid-column-gap: 60px;
+ grid-row-gap: 60px;
+
+ @media only screen and (min-width: 1024px) {
+ max-width: 60%;
+ }
+
+ @media only screen and (max-width: 768px) {
+ flex-direction: column;
+ max-width: 80%;
+ display: flex;
+ }
+`;
+
+const StyledSectionCard = styled.div`
+ text-align: center;
+ flex: 1;
+ border: 1px solid ${({ theme }) => theme.BACKGROUND_MODIFIER_ACCENT};
+ background: rgb(48, 0, 65);
+ background: linear-gradient(
+ 138deg,
+ rgba(48, 0, 65, 0.8870141806722689) 0%,
+ rgba(72, 12, 84, 0.40802258403361347) 33%,
+ rgba(65, 8, 92, 0.6012998949579832) 100%
+ );
+ border-radius: 6px;
+ padding: 16px;
+`;
+
+const StyledCardTitle = styled.div`
+ font-weight: 700;
+ font-size: 1.5rem;
+ padding: 1.5rem 0 0.5rem;
+ letter-spacing: 1px;
+`;
+
+const StyledCardIcon = styled.div``;
+
+const StyledCardDescription = styled.p`
+ color: #e0e0e0;
+ text-align: left;
+ line-height: 1.5rem;
+ font-size: 0.875rem;
+`;
+
+const StyledFrame = styled.iframe`
+ width: 100%;
+ height: 100%;
+ min-height: 200px;
+ border: 2px solid ${({ theme }) => theme.PRIMARY};
+ border-radius: 6px;
+
+ @media only screen and (min-width: 768px) {
+ min-height: 384px;
+ }
+`;
+
+const StyledPreviewFrame = styled(StyledFrame)`
+ border: none;
+ border-left: 2px solid ${({ theme }) => theme.PRIMARY};
+ border-radius: 0;
+ height: 476px;
+ width: 50%;
+`;
+
+const StyledSection = styled.section<{ reverse?: boolean }>`
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ max-width: 85%;
+ margin: 0 auto;
+ gap: 4rem;
+ line-height: 1.5;
+ padding: 50px 3%;
+
+ & > div {
+ width: 100%;
+ }
+
+ @media only screen and (max-width: 1200px) {
+ flex-direction: ${({ reverse }) => (reverse ? "column-reverse" : "column")};
+ max-width: 80%;
+ }
+`;
+
+const StyledSectionArea = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: 2rem;
+ width: 40%;
+ margin-top: 3rem;
+
+ h2,
+ p {
+ text-align: left;
+ letter-spacing: unset;
+ }
+
+ @media only screen and (max-width: 768px) {
+ width: 100%;
+ align-items: center;
+
+ h2 {
+ text-align: center;
+ }
+ }
+`;
+
+const StyledSponsorSection = styled.section`
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ max-width: 85%;
+ margin: 0 auto;
+ gap: 2rem;
+ line-height: 1.5;
+ padding: 50px 3%;
+
+ @media only screen and (max-width: 768px) {
+ max-width: 90%;
+ }
+`;
+
+const StyledPreviewSection = styled.section`
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ width: 70%;
+ margin: 0 auto;
+ background: ${({ theme }) => theme.BLACK_SECONDARY};
+ border: 2px solid ${({ theme }) => theme.PRIMARY};
+ border-radius: 6px;
+ overflow: hidden;
+ height: 480px;
+
+ @media only screen and (max-width: 992px) {
+ display: none;
+ }
+`;
+
+const StyledHighlightWrapper = styled.div`
+ width: 50%;
+`;
+
+const StyledTabsWrapper = styled.div`
+ display: flex;
+ gap: 10px;
+ padding: 8px 8px;
+ padding-bottom: 0;
+ height: 34px;
+
+ pre {
+ border-top: 2px solid ${({ theme }) => theme.PRIMARY};
+ }
+`;
+
+const StyledTab = styled.button<{ active?: boolean }>`
+ border-radius: 6px 6px 0 0;
+ background: ${({ active }) => active && "#1e1e1e"};
+ border: 2px solid ${({ theme, active }) => (active ? theme.PRIMARY : "transparent")};
+ border-bottom: 0;
+ margin-bottom: -2px;
+ padding: 4px 8px;
+ min-width: 80px;
+ max-width: 150px;
+ color: ${({ theme, active }) => (active ? theme.INTERACTIVE_ACTIVE : theme.INTERACTIVE_NORMAL)};
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ font-size: 12px;
+ font-weight: 600;
+
+ &:hover {
+ color: ${({ theme, active }) => !active && theme.INTERACTIVE_HOVER};
+ }
+`;
+
+const StyledHighlightedText = styled.span`
+ text-decoration: underline;
+ text-decoration-style: dashed;
+ text-decoration-color: #eab308;
+`;
+
+const StyledProducthunt = styled.div`
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: center;
+ gap: 3rem;
+ border-right: 1px solid white;
+ padding-right: 3rem;
+
+ @media only screen and (max-width: 768px) {
+ border-right: none;
+ border-bottom: 1px solid white;
+ padding-bottom: 3rem;
+ padding-right: 0;
+ }
+`;
+
+const StyledPaidSection = styled.section`
+ display: flex;
+ max-width: 85%;
+ margin: 0 auto;
+ gap: 2rem;
+ padding: 50px 3%;
+
+ @media only screen and (max-width: 768px) {
+ flex-direction: column;
+ max-width: 80%;
+ }
+`;
+
+const StyledAffiliate = styled.div`
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: center;
+ gap: 3rem;
+
+ .carbon-outer {
+ max-width: 430px;
+ }
+`;
+
const HeroSection = () => (
- <Styles.StyledHeroSection id="main">
- <Styles.StyledTitle>
- <Styles.StyledGradientText>JSON</Styles.StyledGradientText> CRACK
- </Styles.StyledTitle>
- <Styles.StyledSubTitle>
- Seamlessly visualize your JSON data{" "}
- <Styles.StyledHighlightedText>instantly</Styles.StyledHighlightedText> into graphs.
- </Styles.StyledSubTitle>
+ <StyledHeroSection id="main">
+ <StyledTitle>
+ <StyledGradientText>JSON</StyledGradientText> CRACK
+ </StyledTitle>
+ <StyledSubTitle>
+ Seamlessly visualize your JSON data <StyledHighlightedText>instantly</StyledHighlightedText>{" "}
+ into graphs.
+ </StyledSubTitle>
<Link href="/editor">
<Button color="grape" size="lg">
GO TO EDITOR
<AiOutlineRight strokeWidth="80" />
</Button>
</Link>
- <Styles.StyledButtonWrapper>
+ <StyledButtonWrapper>
<Link href="https://github.com/sponsors/AykutSarac" target="_blank" rel="noreferrer">
<Button color="red" size="md" variant="outline" rightIcon={<IoHeart />}>
SPONSOR
@@ -55,8 +413,8 @@ const HeroSection = () => (
GET IT ON VS CODE
</Button>
</Link>
- </Styles.StyledButtonWrapper>
- </Styles.StyledHeroSection>
+ </StyledButtonWrapper>
+ </StyledHeroSection>
);
const PreviewSection = () => {
@@ -83,19 +441,19 @@ const PreviewSection = () => {
}, [currentTab, loaded]);
return (
- <Styles.StyledPreviewSection>
- <Styles.StyledHighlightWrapper>
- <Styles.StyledTabsWrapper>
+ <StyledPreviewSection>
+ <StyledHighlightWrapper>
+ <StyledTabsWrapper>
{TABS.map(tab => (
- <Styles.StyledTab
+ <StyledTab
active={tab.id === currentTab}
onClick={() => setCurrentTab(tab.id)}
key={tab.id}
>
{tab.name}
- </Styles.StyledTab>
+ </StyledTab>
))}
- </Styles.StyledTabsWrapper>
+ </StyledTabsWrapper>
<SyntaxHighlighter
style={vscDarkPlus}
customStyle={{
@@ -110,74 +468,74 @@ const PreviewSection = () => {
>
{TABS[currentTab].json}
</SyntaxHighlighter>
- </Styles.StyledHighlightWrapper>
+ </StyledHighlightWrapper>
- <Styles.StyledPreviewFrame
+ <StyledPreviewFrame
ref={widgetRef}
title="Preview Embed"
id="jcPreview"
src={`${baseURL}/widget`}
loading="eager"
/>
- </Styles.StyledPreviewSection>
+ </StyledPreviewSection>
);
};
const FeaturesSection = () => (
- <Styles.StyledFeaturesSection id="features">
- <Styles.StyledSectionCard>
- <Styles.StyledCardIcon>
+ <StyledFeaturesSection id="features">
+ <StyledSectionCard>
+ <StyledCardIcon>
<HiCursorClick size={50} color="#3BA55D" />
- </Styles.StyledCardIcon>
- <Styles.StyledCardTitle>EASY-TO-USE</Styles.StyledCardTitle>
- <Styles.StyledCardDescription>
+ </StyledCardIcon>
+ <StyledCardTitle>EASY-TO-USE</StyledCardTitle>
+ <StyledCardDescription>
We believe that powerful software doesn&apos;t have to be difficult to use. That&apos;s why
we&apos;ve designed our app to be as intuitive and easy-to-use as possible. You can quickly
and easily load your JSON data and start exploring and analyzing it right away!
- </Styles.StyledCardDescription>
- </Styles.StyledSectionCard>
+ </StyledCardDescription>
+ </StyledSectionCard>
- <Styles.StyledSectionCard>
- <Styles.StyledCardIcon>
+ <StyledSectionCard>
+ <StyledCardIcon>
<HiOutlineSearchCircle size={50} color="#5865F2" />
- </Styles.StyledCardIcon>
- <Styles.StyledCardTitle>SEARCH</Styles.StyledCardTitle>
- <Styles.StyledCardDescription>
+ </StyledCardIcon>
+ <StyledCardTitle>SEARCH</StyledCardTitle>
+ <StyledCardDescription>
Have a huge file of values, keys or arrays? Worry no more, type in the keyword you are
looking for into search input and it will take you to each node with matching result
highlighting the line to understand better!
- </Styles.StyledCardDescription>
- </Styles.StyledSectionCard>
+ </StyledCardDescription>
+ </StyledSectionCard>
- <Styles.StyledSectionCard>
- <Styles.StyledCardIcon>
+ <StyledSectionCard>
+ <StyledCardIcon>
<HiOutlineDownload size={50} color="#DA2877" />
- </Styles.StyledCardIcon>
- <Styles.StyledCardTitle>DOWNLOAD</Styles.StyledCardTitle>
- <Styles.StyledCardDescription>
+ </StyledCardIcon>
+ <StyledCardTitle>DOWNLOAD</StyledCardTitle>
+ <StyledCardDescription>
Download the graph to your local machine and use it wherever you want, to your blogs,
website or make it a poster and paste to the wall. Who wouldn&apos;t want to see a JSON
Crack graph onto their wall, eh?
- </Styles.StyledCardDescription>
- </Styles.StyledSectionCard>
+ </StyledCardDescription>
+ </StyledSectionCard>
- <Styles.StyledSectionCard>
- <Styles.StyledCardIcon>
+ <StyledSectionCard>
+ <StyledCardIcon>
<HiLightningBolt size={50} color="#F5E027" />
- </Styles.StyledCardIcon>
- <Styles.StyledCardTitle>LIVE</Styles.StyledCardTitle>
- <Styles.StyledCardDescription>
+ </StyledCardIcon>
+ <StyledCardTitle>LIVE</StyledCardTitle>
+ <StyledCardDescription>
With Microsoft&apos;s Monaco Editor which is also used by VS Code, easily edit your JSON and
directly view through the graphs. Also there&apos;s a JSON validator above of it to make
sure there is no type error.
- </Styles.StyledCardDescription>
- </Styles.StyledSectionCard>
- </Styles.StyledFeaturesSection>
+ </StyledCardDescription>
+ </StyledSectionCard>
+ </StyledFeaturesSection>
);
const GitHubSection = () => (
- <Styles.StyledSection id="github" reverse>
- <Styles.StyledTwitterQuote>
+ <StyledSection id="github" reverse>
+ <StyledTwitterQuote>
<blockquote className="twitter-tweet" data-lang="en" data-dnt="true" data-theme="light">
<p lang="en" dir="ltr">
Looking to understand or explore some JSON? Just paste or upload to visualize it as a
@@ -193,10 +551,10 @@ const GitHubSection = () => (
</a>
</blockquote>{" "}
<Script strategy="lazyOnload" src="https://platform.twitter.com/widgets.js"></Script>
- </Styles.StyledTwitterQuote>
- <Styles.StyledSectionArea>
- <Styles.StyledSubTitle>Open Source Community</Styles.StyledSubTitle>
- <Styles.StyledMinorTitle>
+ </StyledTwitterQuote>
+ <StyledSectionArea>
+ <StyledSubTitle>Open Source Community</StyledSubTitle>
+ <StyledMinorTitle>
At JSON Crack, we believe in the power of open source software and the communities that
support it. That&apos;s why we&apos;re proud to be part of the open source community and to
contribute to the development and growth of open source tools and technologies.
@@ -209,7 +567,7 @@ const GitHubSection = () => (
<br />
<br /> So why not join us and become part of the JSON Crack open source community today? We
can&apos;t wait to see what we can accomplish together!
- </Styles.StyledMinorTitle>
+ </StyledMinorTitle>
<Button
w="fit-content"
color="grape"
@@ -220,15 +578,15 @@ const GitHubSection = () => (
>
STAR ON GITHUB
</Button>
- </Styles.StyledSectionArea>
- </Styles.StyledSection>
+ </StyledSectionArea>
+ </StyledSection>
);
const EmbedSection = () => (
- <Styles.StyledSection id="embed">
- <Styles.StyledSectionArea>
- <Styles.StyledSubTitle>Embed Into Your Website</Styles.StyledSubTitle>
- <Styles.StyledMinorTitle>
+ <StyledSection id="embed">
+ <StyledSectionArea>
+ <StyledSubTitle>Embed Into Your Website</StyledSubTitle>
+ <StyledMinorTitle>
JSON Crack provides users with the necessary code to embed the app into a website easily
using an iframe. This code can be easily copied and pasted into the desired location on the
website, allowing users to quickly and easily integrate JSON Crack into existing workflows.
@@ -238,44 +596,44 @@ const EmbedSection = () => (
structure of a JSON file or verifying the data contained within it. JSON Crack&apos;s
intuitive interface makes it easy to navigate and understand even complex JSON data, making
it a valuable tool for anyone working with JSON.
- </Styles.StyledMinorTitle>
+ </StyledMinorTitle>
<Button w="fit-content" size="md" component="a" href="/docs">
LEARN TO EMBED
</Button>
- </Styles.StyledSectionArea>
+ </StyledSectionArea>
<div>
- <Styles.StyledFrame
+ <StyledFrame
title="Example Embed"
src={`${baseURL}/widget?json=63c313d32ffa98f29b462315`}
loading="lazy"
- ></Styles.StyledFrame>
+ ></StyledFrame>
</div>
- </Styles.StyledSection>
+ </StyledSection>
);
const SupportSection = () => (
- <Styles.StyledPaidSection>
- <Styles.StyledProducthunt>
- <Styles.StyledSubTitle>
+ <StyledPaidSection>
+ <StyledProducthunt>
+ <StyledSubTitle>
Support JSON Crack at
<br />
- <Styles.StyledHighlightedText>Product Hunt</Styles.StyledHighlightedText>
- </Styles.StyledSubTitle>
+ <StyledHighlightedText>Product Hunt</StyledHighlightedText>
+ </StyledSubTitle>
<Producthunt />
- </Styles.StyledProducthunt>
- <Styles.StyledAffiliate>
- <Styles.StyledSubTitle>Affiliate</Styles.StyledSubTitle>
+ </StyledProducthunt>
+ <StyledAffiliate>
+ <StyledSubTitle>Affiliate</StyledSubTitle>
<CarbonAds />
- </Styles.StyledAffiliate>
- </Styles.StyledPaidSection>
+ </StyledAffiliate>
+ </StyledPaidSection>
);
const SponsorSection = () => (
- <Styles.StyledSponsorSection id="sponsor">
- <Styles.StyledSubTitle>Sponsors</Styles.StyledSubTitle>
- <Styles.StyledMinorTitle>
+ <StyledSponsorSection id="sponsor">
+ <StyledSubTitle>Sponsors</StyledSubTitle>
+ <StyledMinorTitle>
Your supports make JSON Crack possible to continue and accessible for everyone!
- </Styles.StyledMinorTitle>
+ </StyledMinorTitle>
<Button
size="md"
component="a"
@@ -286,13 +644,13 @@ const SponsorSection = () => (
Become A Sponsor!
</Button>
<Sponsors />
- </Styles.StyledSponsorSection>
+ </StyledSponsorSection>
);
const HomePage = () => {
return (
<ThemeProvider theme={darkTheme}>
- <Styles.StyledHome>
+ <StyledHome>
<Head>
<title>JSON Crack - Crack your data into pieces</title>
</Head>
@@ -305,7 +663,7 @@ const HomePage = () => {
<EmbedSection />
<SponsorSection />
<Footer />
- </Styles.StyledHome>{" "}
+ </StyledHome>{" "}
</ThemeProvider>
);
};
diff --git a/src/store/useFile.ts b/src/store/useFile.ts
index e5d04aa5..8abe15f3 100644
--- a/src/store/useFile.ts
+++ b/src/store/useFile.ts
@@ -1,4 +1,6 @@
import debounce from "lodash.debounce";
+import _get from "lodash.get";
+import _set from "lodash.set";
import { toast } from "react-hot-toast";
import { create } from "zustand";
import { defaultJson } from "src/constants/data";
@@ -24,6 +26,7 @@ interface JsonActions {
clear: () => void;
setFile: (fileData: File) => void;
setJsonSchema: (jsonSchema: object | null) => void;
+ editContents: (path: string, value: string, callback?: () => void) => void;
}
export type File = {
@@ -48,9 +51,10 @@ export type FileStates = typeof initialStates;
const isURL =
/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi;
-const debouncedUpdateJson = debounce((value: unknown) => {
- if (!useFile.getState().error) useJson.getState().setJson(JSON.stringify(value, null, 2));
-}, 800);
+const debouncedUpdateJson = debounce(
+ (value: unknown) => useJson.getState().setJson(JSON.stringify(value, null, 2)),
+ 800
+);
const useFile = create<FileStates & JsonActions>()((set, get) => ({
...initialStates,
@@ -69,7 +73,7 @@ const useFile = create<FileStates & JsonActions>()((set, get) => ({
getHasChanges: () => get().hasChanges,
setContents: ({ contents, hasChanges = true }) => {
set({ ...(contents && { contents }), hasChanges });
- debouncedUpdateJson(contents);
+ debouncedUpdateJson(JSON.parse(contents as string));
},
setError: error => set({ error }),
setHasChanges: hasChanges => set({ hasChanges }),
@@ -100,6 +104,36 @@ const useFile = create<FileStates & JsonActions>()((set, get) => ({
console.error(error);
}
},
+ editContents: async (path, value, callback) => {
+ try {
+ if (!value) return;
+
+ let tempValue = value;
+ const pathJson = _get(JSON.parse(useJson.getState().json), path.replace("{Root}.", ""));
+ const changedValue = JSON.parse(value);
+
+ // check if array string value
+ if (typeof changedValue !== "string") {
+ tempValue = {
+ ...pathJson,
+ ...changedValue,
+ };
+ } else {
+ tempValue = tempValue.replaceAll('"', "");
+ }
+
+ const newJson = _set(
+ JSON.parse(useJson.getState().json),
+ path.replace("{Root}.", ""),
+ tempValue
+ );
+
+ get().setContents({ contents: JSON.stringify(newJson, null, 2) });
+ if (callback) callback();
+ } catch (error) {
+ toast.error("Invalid Property!");
+ }
+ },
}));
export default useFile;
diff --git a/src/store/useJson.ts b/src/store/useJson.ts
index 2601921d..c32b0b01 100644
--- a/src/store/useJson.ts
+++ b/src/store/useJson.ts
@@ -19,7 +19,7 @@ const useJson = create<JsonStates & JsonActions>()((set, get) => ({
getJson: () => get().json,
setJson: json => {
set({ json, loading: false });
- useGraph.getState().setGraph(JSON.parse(json));
+ useGraph.getState().setGraph(json);
},
clear: () => {
set({ json: "", loading: false });
diff --git a/src/store/useUser.ts b/src/store/useUser.ts
index 616e06bf..838e39ed 100644
--- a/src/store/useUser.ts
+++ b/src/store/useUser.ts
@@ -22,23 +22,18 @@ interface UserActions {
isPremium: () => boolean;
}
-const initialUser = () => {
- if (isDevelopment) {
- return {
- _id: "0",
- provider: "google",
- providerUserId: "115637229829349229857",
- email: "[email protected]",
- name: "JSON Crack",
- profilePicture: "",
- signUpAt: "2022-12-04T11:07:32.000Z",
- lastLoginAt: "2023-05-13T09:56:02.915Z",
- updatedAt: "2023-05-06T16:19:47.486Z",
- type: 1,
- } as CustomUser;
- }
- return null;
-};
+const devUser = {
+ _id: "0",
+ provider: "google",
+ providerUserId: "115637229829349229857",
+ email: "[email protected]",
+ name: "JSON Crack",
+ profilePicture: "",
+ signUpAt: "2022-12-04T11:07:32.000Z",
+ lastLoginAt: "2023-05-13T09:56:02.915Z",
+ updatedAt: "2023-05-06T16:19:47.486Z",
+ type: 0,
+} as CustomUser;
interface UserStates {
user: CustomUser | null;
@@ -46,8 +41,8 @@ interface UserStates {
}
const initialStates: UserStates = {
- isAuthenticated: isDevelopment,
- user: initialUser(),
+ isAuthenticated: false,
+ user: null,
};
const useUser = create<UserStates & UserActions>()((set, get) => ({
@@ -56,7 +51,6 @@ const useUser = create<UserStates & UserActions>()((set, get) => ({
isPremium: () => {
const user = get().user;
- if (isDevelopment) return true;
if (user) return user.type > 0;
return false;
},
@@ -77,6 +71,9 @@ const useUser = create<UserStates & UserActions>()((set, get) => ({
const currentSession = altogic.auth.getSession();
if (currentSession) {
+ if (isDevelopment) {
+ return set({ user: devUser as CustomUser, isAuthenticated: true });
+ }
const { user, errors } = await altogic.auth.getUserFromDB();
if (errors?.items || !user) {
altogic.auth.clearLocalData();
diff --git a/yarn.lock b/yarn.lock
index 1f234b23..581918ae 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1047,6 +1047,20 @@
dependencies:
"@types/lodash" "*"
+"@types/lodash.get@^4.4.7":
+ version "4.4.7"
+ resolved "https://registry.yarnpkg.com/@types/lodash.get/-/lodash.get-4.4.7.tgz#1ea63d8b94709f6bc9e231f252b31440abe312cf"
+ integrity sha512-af34Mj+KdDeuzsJBxc/XeTtOx0SZHZNLd+hdrn+PcKGQs0EG2TJTzQAOTCZTgDJCArahlCzLWSy8c2w59JRz7Q==
+ dependencies:
+ "@types/lodash" "*"
+
+"@types/lodash.set@^4.3.7":
+ version "4.3.7"
+ resolved "https://registry.yarnpkg.com/@types/lodash.set/-/lodash.set-4.3.7.tgz#784fccea3fbef4d0949d1897a780f592da700942"
+ integrity sha512-bS5Wkg/nrT82YUfkNYPSccFrNZRL+irl7Yt4iM6OTSQ0VZJED2oUIVm15NkNtUAQ8SRhCe+axqERUV6MJgkeEg==
+ dependencies:
+ "@types/lodash" "*"
+
"@types/lodash@*":
version "4.14.191"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa"
@@ -3136,6 +3150,11 @@ lodash.debounce@^4.0.0, lodash.debounce@^4.0.8:
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==
+lodash.get@^4.4.2:
+ version "4.4.2"
+ resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
+ integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==
+
lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
@@ -3146,6 +3165,11 @@ lodash.merge@^4.6.2:
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
+lodash.set@^4.3.2:
+ version "4.3.2"
+ resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
+ integrity sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==
+
lodash@^4.0.1, lodash@^4.17.11, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"