feat: introduce new UI + extendable behavior

Ref #8513
This commit is contained in:
Vladimir Gorej
2023-04-13 17:43:19 +02:00
committed by Vladimír Gorej
parent ab1842083d
commit 9ed1c1b3a0
10 changed files with 277 additions and 8 deletions

View File

@@ -5,6 +5,8 @@ import React from "react"
import JSONSchema from "./components/JSONSchema/JSONSchema"
import BooleanJSONSchema from "./components/BooleanJSONSchema/BooleanJSONSchema"
import Accordion from "./components/Accordion/Accordion"
import ChevronRightIcon from "./components/icons/ChevronRight"
import JSONSchemaContext from "./context"
import { getTitle, isBooleanJSONSchema, upperFirst } from "./fn"
@@ -13,6 +15,8 @@ export const withJSONSchemaContext = (Component, overrides = {}) => {
components: {
JSONSchema,
BooleanJSONSchema,
Accordion,
ChevronRightIcon,
...overrides.components,
},
config: {