Skip to content

Commit

Permalink
Merge pull request #6130 from signalco-io/feat/packages/next15-react19
Browse files Browse the repository at this point in the history
feat(packages): Published all packages for next15 and react19
  • Loading branch information
AleksandarDev authored Oct 22, 2024
2 parents 949bfcb + d80d631 commit df29727
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 42 deletions.
8 changes: 4 additions & 4 deletions web/packages/auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/auth-client",
"version": "0.2.0",
"version": "0.3.0",
"license": "MIT",
"type": "module",
"sideEffects": false,
Expand Down Expand Up @@ -46,8 +46,8 @@
"peerDependencies": {
"@tanstack/react-query": ">=5",
"@signalco/ui-primitives": "0",
"next": ">=14",
"react": ">=18",
"react-dom": ">=18"
"next": ">=15",
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
8 changes: 4 additions & 4 deletions web/packages/auth-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/auth-server",
"version": "0.2.0",
"version": "0.3.0",
"sideEffects": false,
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -44,8 +44,8 @@
},
"peerDependencies": {
"jose": ">=5",
"next": ">=14",
"react": ">=18",
"react-dom": ">=18"
"next": ">=15",
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
8 changes: 4 additions & 4 deletions web/packages/hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/hooks",
"version": "0.1.1",
"version": "0.2.0",
"sideEffects": false,
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -36,8 +36,8 @@
"typescript": "5.6.3"
},
"peerDependencies": {
"next": ">=14.2.10",
"react": ">=18",
"react-dom": ">=18"
"next": ">=15",
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
8 changes: 1 addition & 7 deletions web/packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/js",
"version": "0.1.0",
"version": "0.2.0",
"sideEffects": false,
"type": "module",
"license": "MIT",
Expand All @@ -27,13 +27,7 @@
"@microsoft/api-extractor": "7.47.11",
"@signalco/eslint-config-signalco": "workspace:*",
"@signalco/tsconfig": "workspace:*",
"react": "19.0.0-rc-65a56d0e-20241020",
"react-dom": "19.0.0-rc-65a56d0e-20241020",
"tsup": "8.3.0",
"typescript": "5.6.3"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
}
}
6 changes: 3 additions & 3 deletions web/packages/ui-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/ui-icons",
"version": "0.1.0",
"version": "0.2.0",
"sideEffects": false,
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -33,7 +33,7 @@
"typescript": "5.6.3"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
43 changes: 41 additions & 2 deletions web/packages/ui-notifications/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
# signalco UI
# @signalco/ui-notifications

Some components are based on https://ui.shadcn.com/
## Getting started

Use `NotificationsContainer` at the application root to provide notifications injection location.

```tsx
'use client';

import { NotificationsContainer } from '@signalco/ui-notifications';

export function ClientProviders() {
return (
<>
{/* ...other provider components */}
<NotificationsContainer />
</>
)
}
```

Then you can use `showNotification` hook to show notifications.

```tsx
import { showNotification } from '@signalco/ui-notifications';

export function MyComponent() {
const handleAction = () => {
showNotification('Something went wrong.', 'error');
};

return (
<button onClick={handleAction}>Show notification</button>
);
}
```

## Available functions

- `showNotification`
- `showPrompt`
- `hideNotification`
26 changes: 20 additions & 6 deletions web/packages/ui-notifications/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{
"name": "@signalco/ui-notifications",
"version": "0.0.0",
"private": true,
"version": "0.1.0",
"license": "MIT",
"type": "module",
"exports": {
".": "./src/index.ts"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"exports": {
"./*": {
"import": "./dist/index.js",
"types": "./dist/src/index.d.ts"
}
}
},
"scripts": {
"lint": "eslint ."
"lint": "eslint .",
"prepublishOnly": "tsup --env.NODE_ENV production"
},
"devDependencies": {
"@signalco/eslint-config-signalco": "workspace:*",
Expand All @@ -19,11 +31,13 @@
"react": "19.0.0-rc-65a56d0e-20241020",
"react-dom": "19.0.0-rc-65a56d0e-20241020",
"sonner": "1.5.0",
"typescript": "5.6.3"
"typescript": "5.6.3",
"@microsoft/api-extractor": "7.47.11",
"tsup": "8.3.0"
},
"peerDependencies": {
"@signalco/ui-primitives": ">=0",
"react": ">=18",
"react-dom": ">=18"
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
8 changes: 8 additions & 0 deletions web/packages/ui-notifications/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['./src/index.ts'],
format: ['esm'],
minify: true,
experimentalDts: true,
})
6 changes: 3 additions & 3 deletions web/packages/ui-primitives/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/ui-primitives",
"version": "0.1.12",
"version": "0.2.0",
"license": "MIT",
"type": "module",
"sideEffects": false,
Expand Down Expand Up @@ -57,7 +57,7 @@
"typescript": "5.6.3"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
6 changes: 3 additions & 3 deletions web/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalco/ui",
"version": "0.1.1",
"version": "0.2.0",
"license": "MIT",
"type": "module",
"sideEffects": false,
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"peerDependencies": {
"@signalco/ui-primitives": "0",
"react": "18",
"react-dom": "18"
"react": ">=19.0.0-rc-65a56d0e-20241020",
"react-dom": ">=19.0.0-rc-65a56d0e-20241020"
}
}
12 changes: 6 additions & 6 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df29727

Please sign in to comment.