Skip to content

Commit

Permalink
fix(modern): remove sketch implementation and reference separate plugin
Browse files Browse the repository at this point in the history
release-npm
  • Loading branch information
tobua committed Apr 3, 2024
1 parent 69f9c59 commit 01e9071
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 187 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Indicates possible scroll using a fade effect in elements with overflow.

[![npm](https://img.shields.io/npm/v/indicate)](https://npmjs.com/indicate)

> [!TIP]
> A modern React version of this library, called [overflow-scroll-fade](https://github.com/tobua/overflow-scroll-fade), is currently under development. It is much smaller and more performant; however, it does have some limitations, as it requires support for [`scroll-timeline`](https://caniuse.com/mdn-css_properties_scroll-timeline).
## Installation & Usage

```
Expand Down
14 changes: 7 additions & 7 deletions demo-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
"root": true
},
"dependencies": {
"next": "14.0.4",
"next": "14.1.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"indicate": "file:.."
},
"devDependencies": {
"@types/node": "20.10.5",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.18",
"eslint": "8.56.0",
"eslint-config-next": "14.0.4",
"typescript": "5.3.3"
"@types/node": "20.12.3",
"@types/react": "18.2.74",
"@types/react-dom": "18.2.23",
"eslint": "8.57.0",
"eslint-config-next": "14.1.4",
"typescript": "5.4.3"
}
}
48 changes: 0 additions & 48 deletions demo/modern.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"dependencies": {
"exmpl": "^3.1.0",
"konfi": "^1.0.0",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"papua": "^5.9.7",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
"papua": "^6.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
3 changes: 0 additions & 3 deletions demo/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { indicate, remove, Indicate } from 'indicate'
import youtube from 'indicate/theme/youtube'
import className from 'indicate/theme/class-name'
import { Button } from 'markup/Button'
import { Modern } from 'modern'

const TableHeader = (name) => (
<th
Expand Down Expand Up @@ -391,8 +390,6 @@ export const TestCases = () => {
</Indicate>
<h3>Server-Side Rendering</h3>
<ServerSideRendering />
<h2>Modern React Implementation</h2>
<Modern />
</>
)
}
118 changes: 0 additions & 118 deletions modern/index.tsx

This file was deleted.

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@
},
"padua": {
"entry": [
"theme/*.ts",
"modern/index.tsx"
"theme/*.ts"
]
},
"dependencies": {
"csstype": "^3.1.3",
"react": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.61",
"cypress": "^13.6.6",
"padua": "^3.0.0"
"@types/react": "^18.2.74",
"cypress": "^13.7.2",
"padua": "^4.0.1"
},
"trustedDependencies": [
"padua"
Expand All @@ -40,9 +39,6 @@
"./theme/*": {
"types": "./dist/theme/*",
"default": "./dist/theme/*.js"
},
"./modern": {
"default": "./modern/index.tsx"
}
},
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 01e9071

Please sign in to comment.