Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
server side logic wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nramkissoon committed Apr 4, 2023
1 parent 3a7fbb6 commit 8d03c5e
Show file tree
Hide file tree
Showing 11 changed files with 486 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-mirrors-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@uploadjoy/uploader-component-playground": minor
---

server side logic wip
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./react": "./dist/react/index.js"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"build": "tsup src/index.ts src/react/index.ts --format cjs,esm --dts",
"release": "pnpm run build && changeset publish",
"lint": "eslint src --cache --cache-strategy content",
"format": "prettier --write src/*.ts --ignore-path ./.gitignore",
"format:check": "prettier -c src/*.ts --ignore-path ./.gitignore"
},
"peerDependencies": {
"next": ">=9.4",
"react": ">= 18.0.0 < 19"
},
"devDependencies": {
Expand All @@ -26,11 +31,13 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^45.0.1",
"next": "^13.2.4",
"prettier": "^2.8.0",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
},
"dependencies": {
"file-selector": "^0.6.0"
"file-selector": "^0.6.0",
"zod": "^3.21.4"
}
}
216 changes: 215 additions & 1 deletion pnpm-lock.yaml

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

10 changes: 10 additions & 0 deletions src/core/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export type GetPresignedUrlOpts = {
files: {
name: string;
size: number;
type: string;
}[];
folder: string;
fileAccess: "public" | "private";
apiUrl: string;
};
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./react";
export * from "./next";
Loading

0 comments on commit 8d03c5e

Please sign in to comment.