Skip to content

Commit

Permalink
feat: fix things with candy
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Oct 31, 2024
1 parent 3aa300c commit f2b21cf
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
14 changes: 4 additions & 10 deletions examples/cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "6.16.1",
"private": true,
"scripts": {
"dev": "GENERATE_SOURCEMAP=false react-scripts start",
"start": "GENERATE_SOURCEMAP=false react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"eject": "GENERATE_SOURCEMAP=false react-scripts eject"
"dev": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts start",
"start": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts start",
"build": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts build",
"eject": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts eject"
},
"dependencies": {
"@types/node": "^22.8.4",
Expand All @@ -18,12 +18,6 @@
"react-notion-x": "workspace:*",
"react-scripts": "5.0.1"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/cra/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExtendedRecordMap } from 'notion-types'
import { type ExtendedRecordMap } from 'notion-types'
import { NotionRenderer } from 'react-notion-x'
import { Code } from 'react-notion-x/build/third-party/code'
import { Collection } from 'react-notion-x/build/third-party/collection'
Expand Down
17 changes: 6 additions & 11 deletions examples/cra/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import * as React from 'react'

import * as ReactDOM from 'react-dom'
// core styles shared by all of react-notion-x (required)
import 'react-notion-x/src/styles.css'

import App from './App'
// used for code syntax highlighting (optional)
// import 'prismjs/themes/prism-tomorrow.css'
// used for rendering equations (optional)
// import 'katex/dist/katex.min.css'
import './index.css'

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
)
import { createRoot } from 'react-dom/client'

import App from './App'

const root = createRoot(document.getElementById('root')!)
root.render(<App />)
20 changes: 10 additions & 10 deletions packages/react-notion-x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"import": "./build/index.js"
},
"./build/third-party/code": {
"types": "./build//third-party/code.d.ts",
"import": "./build//third-party/code.js"
"types": "./build/third-party/code.d.ts",
"import": "./build/third-party/code.js"
},
"./build/third-party/collection": {
"types": "./build//third-party/collection.d.ts",
"import": "./build//third-party/collection.js"
"types": "./build/third-party/collection.d.ts",
"import": "./build/third-party/collection.js"
},
"./build/third-party/equation": {
"types": "./build//third-party/equation.d.ts",
"import": "./build//third-party/equation.js"
"types": "./build/third-party/equation.d.ts",
"import": "./build/third-party/equation.js"
},
"./build/third-party/modal": {
"types": "./build//third-party/modal.d.ts",
"import": "./build//third-party/modal.js"
"types": "./build/third-party/modal.d.ts",
"import": "./build/third-party/modal.js"
},
"./build/third-party/pdf": {
"types": "./build//third-party/pdf.d.ts",
"import": "./build//third-party/pdf.js"
"types": "./build/third-party/pdf.d.ts",
"import": "./build/third-party/pdf.js"
},
"./styles.css": "./src/styles.css",
"./src/styles.css": "./src/styles.css"
Expand Down

0 comments on commit f2b21cf

Please sign in to comment.