Skip to content

Commit 09f1475

Browse files
chore(format): 🤖 ✨ (#292)
Co-authored-by: ecoscript[bot] <143032650+ecoscript[bot]@users.noreply.github.com>
1 parent 5e4ac4d commit 09f1475

8 files changed

Lines changed: 5 additions & 12 deletions

File tree

‎demo/components/CharacterReference.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {PortableTextMarkComponent} from '@portabletext/react'
2-
32
import {Avatar, Box, Flex, Stack, Text, Tooltip} from '@sanity/ui'
43
import {type MouseEventHandler} from 'react'
54

‎demo/components/Code.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// oxlint-disable-next-line no-unassigned-import
22
import './Code.css'
33
import type {PortableTextComponent} from '@portabletext/react'
4-
54
import {Refractor, registerLanguage} from 'react-refractor'
65
import typescript from 'refractor/typescript'
76

‎demo/components/SpeechSynthesis.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {PortableTextMarkComponent} from '@portabletext/react'
2-
32
import {useCallback} from 'react'
43

54
interface SpeechSynthesisMark {

‎demo/components/TermDefinition.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {PortableTextMarkComponent} from '@portabletext/react'
2-
32
import {Popover, Text} from '@sanity/ui'
43
import {useCallback, useState} from 'react'
54

‎src/components/defaults.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type {PortableTextBlockStyle} from '@portabletext/types'
22
import type {JSX} from 'react'
33

44
import type {PortableTextBlockComponent, PortableTextReactComponents} from '../types'
5-
65
import {DefaultListItem, defaultLists} from './list'
76
import {defaultMarks} from './marks'
87
import {

‎src/components/unknown.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {PortableTextReactComponents} from '../types'
2-
32
import {unknownTypeWarning} from '../warnings'
43

54
const hidden = {display: 'none'}

‎src/react-portable-text.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type {ToolkitNestedPortableTextSpan, ToolkitTextNode} from '@portabletext/toolkit'
2-
import type {PortableTextBlock, PortableTextListItemBlock, TypedObject} from '@portabletext/types'
3-
42
import {
53
buildMarksTree,
64
isPortableTextBlock,
@@ -12,8 +10,11 @@ import {
1210
nestLists,
1311
spanToPlainText,
1412
} from '@portabletext/toolkit'
13+
import type {PortableTextBlock, PortableTextListItemBlock, TypedObject} from '@portabletext/types'
1514
import {type JSX, type ReactNode, useMemo} from 'react'
1615

16+
import {defaultComponents} from './components/defaults'
17+
import {mergeComponents} from './components/merge'
1718
import type {
1819
MissingComponentHandler,
1920
NodeRenderer,
@@ -23,9 +24,6 @@ import type {
2324
Serializable,
2425
SerializedBlock,
2526
} from './types'
26-
27-
import {defaultComponents} from './components/defaults'
28-
import {mergeComponents} from './components/merge'
2927
import {
3028
printWarning,
3129
unknownBlockStyleWarning,

‎vite.config.demo.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import react from '@vitejs/plugin-react'
21
import path from 'path'
2+
3+
import react from '@vitejs/plugin-react'
34
import {visualizer} from 'rollup-plugin-visualizer'
45
import {defineConfig} from 'vite'
56

0 commit comments

Comments
 (0)