Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
aa60997
Enable incremental compilation in tsconfig.json
jy95 May 3, 2026
fcf65bd
📝 CodeRabbit Chat: Implement requested code changes
coderabbitai[bot] May 3, 2026
5023074
Merge pull request #850 from jy95/coderabbitai/chat/aa60997
jy95 May 3, 2026
86bc6ea
📝 CodeRabbit Chat: Implement requested code changes
coderabbitai[bot] May 3, 2026
1585c84
Merge pull request #851 from jy95/coderabbitai/chat/5023074
jy95 May 3, 2026
547098c
Update tsconfig.json for ES2022 and new options
jy95 May 3, 2026
6d9e827
Refactor tsconfig.json for clarity and structure
jy95 May 3, 2026
baed413
Remove baseUrl from tsconfig.json
jy95 May 3, 2026
4bbcfe4
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] May 3, 2026
7d84f3d
Remove unused React import from index.tsx
jy95 May 3, 2026
979d55c
Remove unused React import from CreateAlwaysInvalid.tsx
jy95 May 3, 2026
552c58a
Remove unused React import from CreateAlwaysValid.tsx
jy95 May 3, 2026
7dab4f7
Remove unused imports in CreateBoolean.tsx
jy95 May 3, 2026
9b9d4c4
Remove unused React import from CreateDescription.tsx
jy95 May 3, 2026
0ddbcbc
Remove unused imports in CreateInteger.tsx
jy95 May 3, 2026
015736d
Remove unused imports from CreateNull.tsx
jy95 May 3, 2026
914563b
Remove unused imports from CreateNumber.tsx
jy95 May 3, 2026
5eaee67
Remove unused React import from CreateString.tsx
jy95 May 3, 2026
e909d1c
Remove unused React import from CreateValue.tsx
jy95 May 3, 2026
c314bb2
Update Xor.tsx
jy95 May 3, 2026
261b72e
Remove unused React import from Type.tsx
jy95 May 3, 2026
57a8741
Remove unused React import from True.tsx
jy95 May 3, 2026
8da9ac1
Update Then.tsx
jy95 May 3, 2026
75907f2
Update String.tsx
jy95 May 3, 2026
3a92773
Update Or.tsx
jy95 May 3, 2026
535c923
Update Object.tsx
jy95 May 3, 2026
88e768a
Update Number.tsx
jy95 May 3, 2026
2d65b91
Update Null.tsx
jy95 May 3, 2026
28562f9
Update Not.tsx
jy95 May 3, 2026
7ffe43d
Update Loading.tsx
jy95 May 3, 2026
20e6c84
Update Integer.tsx
jy95 May 3, 2026
75e943b
Remove unused React import from If.tsx
jy95 May 3, 2026
8cf9ed4
Update False.tsx
jy95 May 3, 2026
527a291
Update ErrorOccurred.tsx
jy95 May 3, 2026
0b0a0c5
Update Else.tsx
jy95 May 3, 2026
5642efc
Update Boolean.tsx
jy95 May 3, 2026
fdddeef
Update Array.tsx
jy95 May 3, 2026
abeca22
Update And.tsx
jy95 May 3, 2026
d8dd08c
Update dependencies.tsx
jy95 May 3, 2026
10ffdee
Remove unused React import from dependentRequired.tsx
jy95 May 3, 2026
b97722a
Update dependentSchemas.tsx
jy95 May 3, 2026
bb88094
Update if-else-then.tsx
jy95 May 3, 2026
8c4217d
Remove unused React import from schemaConditional.tsx
jy95 May 3, 2026
4da31d1
Update AdditionalItems.tsx
jy95 May 3, 2026
083903d
Update Contains.tsx
jy95 May 3, 2026
5e11c0b
Update CreateArray.tsx
jy95 May 3, 2026
ea48b66
Update Items.tsx
jy95 May 3, 2026
5cc6e26
Update PrefixItems.tsx
jy95 May 3, 2026
cf250ba
Update UnevaluatedItems.tsx
jy95 May 3, 2026
6b79e20
Update AdditionalProperties.tsx
jy95 May 3, 2026
8d0ba15
Update CreateObject.tsx
jy95 May 3, 2026
7a5f859
Remove unused React import from PatternProperties.tsx
jy95 May 3, 2026
065b064
Update Properties.tsx
jy95 May 3, 2026
6c00162
Update PropertyNames.tsx
jy95 May 3, 2026
a44a35d
Update UnevaluatedProperties.tsx
jy95 May 3, 2026
6046bbc
Update UnlistedRequiredProperties.tsx
jy95 May 3, 2026
10642bc
Update allOfSchema.tsx
jy95 May 3, 2026
ba2de62
Update anyOfSchema.tsx
jy95 May 3, 2026
e2f7279
Update notSchema.tsx
jy95 May 3, 2026
4a251e0
Update oneOfSchema.tsx
jy95 May 3, 2026
ed61a9e
Remove unused React import from schemaComposition.tsx
jy95 May 3, 2026
e59ace7
Update Collapsible.tsx
jy95 May 3, 2026
862bf95
Update CreateEdge.tsx
jy95 May 3, 2026
5726d96
Update CreateNodes.tsx
jy95 May 3, 2026
96bab84
Update CreateTypes.tsx
jy95 May 3, 2026
89cca45
Update CreateValidOrInvalid.tsx
jy95 May 3, 2026
9921cc5
Update RenderProvidedType.tsx
jy95 May 3, 2026
350cad2
Update TypeLabelSwitch.tsx
jy95 May 3, 2026
40f15e7
Update schemaHierarchy.tsx
jy95 May 3, 2026
7b91ad4
Update index.tsx
jy95 May 3, 2026
249e832
Update Constant.tsx
jy95 May 3, 2026
e67e0a2
Update Deprecated.tsx
jy95 May 3, 2026
556bb34
Update ReadOnly.tsx
jy95 May 3, 2026
7ab8104
Update Required.tsx
jy95 May 3, 2026
101b37f
Update WriteOnly.tsx
jy95 May 3, 2026
96e41d5
Update ArrayContainsNumber.tsx
jy95 May 3, 2026
600d69b
Update ArrayNumberOfItems.tsx
jy95 May 3, 2026
8f08a7f
Update ArrayUniqueItems.tsx
jy95 May 3, 2026
85de277
Update Constant.tsx
jy95 May 3, 2026
b95f94c
Update ContentEncoding.tsx
jy95 May 3, 2026
36ff63f
Update ContentMediaType.tsx
jy95 May 3, 2026
b6bfd8d
Update ContentSchema.tsx
jy95 May 3, 2026
066dcea
Update DefaultValue.tsx
jy95 May 3, 2026
eed68b6
Remove unused React import from Deprecated.tsx
jy95 May 3, 2026
dad0f31
Update Enum.tsx
jy95 May 3, 2026
10cd2dc
Update Examples.tsx
jy95 May 3, 2026
a128b21
Update NoExtraItems.tsx
jy95 May 3, 2026
be2e42c
Update NoExtraProperties.tsx
jy95 May 3, 2026
bfc6f1c
Update Nullable.tsx
jy95 May 3, 2026
d7b12ac
Update NumberBounds.tsx
jy95 May 3, 2026
d789f41
Update NumberMultipleOf.tsx
jy95 May 3, 2026
af82eaf
Update ObjectProperties.tsx
jy95 May 3, 2026
28939d2
Update Pattern.tsx
jy95 May 3, 2026
4be6cfd
Update QualifierMessagesMap.tsx
jy95 May 3, 2026
2b7ba88
Update ReadOnly.tsx
jy95 May 3, 2026
770f17e
Update StringLength.tsx
jy95 May 3, 2026
d6aefdf
Update UnsolvedRefs.tsx
jy95 May 3, 2026
7af68fd
Update WriteOnly.tsx
jy95 May 3, 2026
d297028
Update index.tsx
jy95 May 3, 2026
ae6c815
Update getQualifierMessages.tsx
jy95 May 3, 2026
5995ec8
Import ReactNode alongside JSX in SchemaItem.tsx
jy95 May 3, 2026
fd84b4d
Update index.tsx
jy95 May 3, 2026
c51b328
Fix optional chaining and type assertion in CreateTypes
jy95 May 3, 2026
6b7c698
Add context parameter to myPlugin function
jy95 May 3, 2026
2ac15e9
Update array.test.tsx
jy95 May 3, 2026
b5e9ba2
Update basics.test.tsx
jy95 May 3, 2026
5cba3a6
Update boolean.test.tsx
jy95 May 3, 2026
4675d58
Update constructor.test.tsx
jy95 May 3, 2026
ba66b9b
Update corner_cases.test.tsx
jy95 May 3, 2026
4ba3efa
Update error.test.tsx
jy95 May 3, 2026
f66d5c9
Update generateFriendlyName.test.tsx
jy95 May 3, 2026
00e4a7b
Update generic_keywords.test.tsx
jy95 May 3, 2026
9ab3387
Update json_pointer.test.tsx
jy95 May 3, 2026
cefbc83
Remove unused React import from null.test.tsx
jy95 May 3, 2026
916de00
Update numeric.test.tsx
jy95 May 3, 2026
eca9c4f
Remove unused React import in object.test.tsx
jy95 May 3, 2026
458f875
Update refs.test.tsx
jy95 May 3, 2026
186cbe1
Update schema_composition.test.tsx
jy95 May 3, 2026
656c67a
Update schema_conditionally.test.tsx
jy95 May 3, 2026
da47e89
Update string.test.tsx
jy95 May 3, 2026
dd57a64
Update type.test.tsx
jy95 May 3, 2026
eb6af52
Update Translate.tsx
jy95 May 3, 2026
f5a7b2b
Refactor imports in CodeBlock mock file
jy95 May 3, 2026
c503763
Update Collapsible.tsx
jy95 May 3, 2026
2c91576
Refactor import statements in Details.tsx
jy95 May 3, 2026
1ba1866
Update TabItem.tsx
jy95 May 3, 2026
c3dceef
Update Tabs.tsx
jy95 May 3, 2026
f9320a5
Add optional chaining for selectedTab initialization
jy95 May 3, 2026
ad9a036
Rename test variable from 'title' to '_title'
jy95 May 3, 2026
7a5efb4
Update schema_conditionally.test.tsx
jy95 May 3, 2026
b7f71c5
Update schema_composition.test.tsx
jy95 May 3, 2026
3c7dd4d
[create-pull-request] automated change
jy95 May 3, 2026
fb90587
Rename test parameter from 'title' to '_title'
jy95 May 3, 2026
402ca28
Rename test parameter from 'title' to '_title'
jy95 May 3, 2026
5b09ca2
Merge pull request #853 from jy95/create-pull-request/patch
jy95 May 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions __mocks__/@docusaurus/Translate.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { ReactNode } from "react"

import type { JSX } from "react"
import type { JSX, ReactNode } from "react"

type Props = {
[x: string]: any
Expand Down
4 changes: 1 addition & 3 deletions __mocks__/@theme-original/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { ReactNode } from "react"

import type { JSX } from "react"
import type { JSX, ReactNode } from "react"

type Props = {
children: ReactNode
Expand Down
4 changes: 1 addition & 3 deletions __mocks__/@theme-original/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { type ReactNode } from "react"

import type { JSX } from "react"
import type { JSX, ReactNode } from "react"

// As it is just a mock, I defintely do not need a state of the art implementation
export function Collapsible({
Expand Down
3 changes: 1 addition & 2 deletions __mocks__/@theme-original/Details.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { type ComponentProps, type ReactElement } from "react"
import { Collapsible } from "./Collapsible"

import type { JSX } from "react"
import type { JSX, ComponentProps, ReactElement } from "react"

type DetailsProps = {
/**
Expand Down
4 changes: 1 addition & 3 deletions __mocks__/@theme-original/TabItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { ReactNode } from "react"

import type { JSX } from "react"
import type { JSX, ReactNode } from "react"

export type Props = {
readonly children: ReactNode
Expand Down
8 changes: 4 additions & 4 deletions __mocks__/@theme-original/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Dummy mock for the sake Jest doesn't wire internal Docusaurus packages
import React, { ReactElement, ReactNode } from "react"
import { useState } from "react"

import type { JSX } from "react"
import type { JSX, ReactElement, ReactNode } from "react"

interface TabItemProps {
readonly children: ReactNode
Expand Down Expand Up @@ -52,8 +52,8 @@ export default function Tabs({
},
]

const [selectedTab, setSelectedTab] = React.useState(
defaultValue || items[0].value,
const [selectedTab, setSelectedTab] = useState(
defaultValue || items[0]?.value,
)
const childrenAsArray: ReactElement<TabItemProps>[] = Array.isArray(children)
? children
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/array.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/basics.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/boolean.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/constructor.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/corner_cases.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"

Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/error.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe, jest } from "@jest/globals"
import { render, act } from "@testing-library/react"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/generateFriendlyName.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/generic_keywords.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/json_pointer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/null.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/numeric.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import type { RenderResult } from "@testing-library/react"
Expand Down
3 changes: 1 addition & 2 deletions __tests__/JSONSchemaViewer/object.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { expect, test, describe } from "@jest/globals"
import { render, act } from "@testing-library/react"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down Expand Up @@ -80,7 +79,7 @@ const testcases: [string, JSONSchema][] = [
describe("JSONSchemaViewer - object", () => {
test.each(testcases)(
"test %s",
async (title: string, fakeSchema: JSONSchema) => {
async (_title: string, fakeSchema: JSONSchema) => {
let rendered: RenderResult | null = null

// Use act to ensure all updates are processed
Expand Down
1 change: 0 additions & 1 deletion __tests__/JSONSchemaViewer/refs.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { render, act } from "@testing-library/react"
import { expect, test, describe } from "@jest/globals"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down
3 changes: 1 addition & 2 deletions __tests__/JSONSchemaViewer/schema_composition.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { render, act } from "@testing-library/react"
import { expect, test, describe } from "@jest/globals"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down Expand Up @@ -41,7 +40,7 @@ const testcases: [string, JSONSchema][] = [
]

describe("JSONSchemaViewer - schema composition", () => {
test.each(testcases)("test %s", async (title, fakeSchema) => {
test.each(testcases)("test %s", async (_title, fakeSchema) => {
// Render the component
let rendered: RenderResult | null = null

Expand Down
3 changes: 1 addition & 2 deletions __tests__/JSONSchemaViewer/schema_conditionally.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { render, act } from "@testing-library/react"
import { expect, test, describe } from "@jest/globals"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down Expand Up @@ -163,7 +162,7 @@ const testcases: [string, JSONSchema][] = [
]

describe("JSONSchemaViewer - schema conditionally", () => {
test.each(testcases)("test %s", async (title, fakeSchema) => {
test.each(testcases)("test %s", async (_title, fakeSchema) => {
// Render the component
let rendered: RenderResult | null = null

Expand Down
3 changes: 1 addition & 2 deletions __tests__/JSONSchemaViewer/string.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { render, act } from "@testing-library/react"
import { expect, test, describe } from "@jest/globals"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down Expand Up @@ -176,7 +175,7 @@ const testcases: [string, JSONSchema][] = [
]

describe("JSONSchemaViewer - string", () => {
test.each(testcases)("test %s", async (title, fakeSchema) => {
test.each(testcases)("test %s", async (_title, fakeSchema) => {
// Render the component
let rendered: RenderResult | null = null

Expand Down
3 changes: 1 addition & 2 deletions __tests__/JSONSchemaViewer/type.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import { render, act } from "@testing-library/react"
import { expect, test, describe } from "@jest/globals"
import JSONSchemaViewer from "../../src/theme/JSONSchemaViewer/index"
Expand Down Expand Up @@ -45,7 +44,7 @@ const testcases: [string, JSONSchema][] = [
]

describe("JSONSchemaViewer - type", () => {
test.each(testcases)("test %s", async (title, fakeSchema) => {
test.each(testcases)("test %s", async (_title, fakeSchema) => {
// Render the component
let rendered: RenderResult | null = null

Expand Down
Loading
Loading