Skip to content

Commit

Permalink
fix: use react mode
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jul 19, 2023
1 parent 8081f25 commit 6a0df6d
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .changeset/seven-paws-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@just-web/react-commands': patch
'@just-web/react': patch
'@just-web/react-intl': patch
---

Change to use `react` instead of `react-jsx`.

Due to this issue: https://github.com/facebook/react/issues/25857

1 change: 1 addition & 0 deletions components/commands/ts/CommandPalette/CommandPalette.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { formatCommand, showCommandPalette, type CommandContribution, type CommandsGizmo } from '@just-web/commands'
import { formatKeyBinding, type KeyBindingContribution, type KeyboardGizmo } from '@just-web/keyboard'
import type { OSGizmo } from '@just-web/os'
Expand Down
2 changes: 1 addition & 1 deletion components/commands/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"allowSyntheticDefaultImports": true,
"composite": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react-jsx",
"jsx": "react",
"module": "ESNext",
"moduleResolution": "NodeNext",
"plugins": [
Expand Down
1 change: 1 addition & 0 deletions libraries/react-intl/ts/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { justTestApp } from '@just-web/app/testing'
import { JustAppProvider, reactGizmo } from '@just-web/react'
import { type StoryObj } from '@storybook/react'
Expand Down
1 change: 1 addition & 0 deletions libraries/react-intl/ts/react_intl_gizmo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { define, incubate } from '@just-web/app'
import { formatJSGizmoFn, type FormatJSGizmo, type FormatJSGizmoOptions } from '@just-web/formatjs'
import type { ReactGizmo } from '@just-web/react'
Expand Down
2 changes: 1 addition & 1 deletion libraries/react-intl/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@repobuddy/typescript/tsconfig/legacy/monorepo",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react",
"module": "ESNext",
"rootDir": "ts",
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/just_app_context.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { createStore } from '@just-web/states'
import type { Meta, StoryObj } from '@storybook/react'
import { JustAppProvider } from './just_app_context.js'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/just_app_context.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import type { GizmoIncubator, JustApp } from '@just-web/app'
import { createContext, useContext, type Context, type PropsWithChildren } from 'react'
import type { NonUndefined } from 'type-plus'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/just_app_context.unit.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import type { Meta, StoryObj } from '@storybook/react'
import { createContext } from 'react'
import { JustAppProvider } from './just_app_context.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { a } from 'assertron'
import { create } from 'react-test-renderer'
import { useJustAppContext } from './index.js'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/store.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { createStore } from '@just-web/states'
import { act, create } from 'react-test-renderer'
import { expect, test } from 'vitest'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/store.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { createStore, type Store } from '@just-web/states'
import type { StoryObj } from '@storybook/react'
import { useEffect, useState, type PropsWithChildren } from 'react'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/store_context.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { a } from 'assertron'
import { create } from 'react-test-renderer'
import { describe, it } from 'vitest'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/store_context.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { createStore } from '@just-web/states'
import type { PropsWithChildren } from 'react'
import Modal from 'react-modal'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/testing/app1.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { type JustAppTestOptions, justTestApp, type LogTestGizmo } from '@just-web/app/testing'
import { tersify } from 'tersify'
import { mapKey } from 'type-plus'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/testing/app2.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { justTestApp } from '@just-web/app/testing'
import { tersify } from 'tersify'
import { mapKey } from 'type-plus'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/testing/app_info.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { useContext } from 'react'
import { tersify } from 'tersify'
import { mapKey } from 'type-plus'
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/testing/card.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import type { HtmlHTMLAttributes, PropsWithChildren } from 'react'

export function Card(props: PropsWithChildren<HtmlHTMLAttributes<any>>) {
Expand Down
1 change: 1 addition & 0 deletions libraries/react/ts/testing/dummy_gizmo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { define, type GizmoBase } from '@just-web/app'

export const dummyGizmoFn: (options?: { a: number }) => GizmoBase<{
Expand Down
2 changes: 1 addition & 1 deletion libraries/react/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@repobuddy/typescript/tsconfig/legacy/monorepo",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react",
"module": "ESNext",
"skipLibCheck": true,
"target": "ESNext"
Expand Down

0 comments on commit 6a0df6d

Please sign in to comment.