@tulip-systems/create-app 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,11 +25,11 @@
25
25
  "@orpc/tanstack-query": "^1.14.15",
26
26
  "@tailwindcss/typography": "^0.5.20",
27
27
  "@tanstack/react-query": "^5.101.4",
28
- "@tulip-systems/app": "0.12.1",
29
- "@tulip-systems/auth": "0.12.1",
30
- "@tulip-systems/commands": "0.12.1",
31
- "@tulip-systems/core": "0.12.1",
32
- "@tulip-systems/ui": "0.12.1",
28
+ "@tulip-systems/app": "0.12.2",
29
+ "@tulip-systems/auth": "0.12.2",
30
+ "@tulip-systems/commands": "0.12.2",
31
+ "@tulip-systems/core": "0.12.2",
32
+ "@tulip-systems/ui": "0.12.2",
33
33
  "@vercel/functions": "^3.9.0",
34
34
  "better-auth": "^1.6.26",
35
35
  "class-variance-authority": "^0.7.1",
@@ -49,19 +49,20 @@
49
49
  "@tanstack/react-query": "^5.101.4",
50
50
  "@tanstack/react-table": "^8.21.3",
51
51
  "@tanstack/react-virtual": "^3.14.9",
52
- "@tulip-systems/ai": "0.12.1",
53
- "@tulip-systems/app": "0.12.1",
54
- "@tulip-systems/auth": "0.12.1",
55
- "@tulip-systems/commands": "0.12.1",
56
- "@tulip-systems/core": "0.12.1",
57
- "@tulip-systems/data-tables": "0.12.1",
58
- "@tulip-systems/drive": "0.12.1",
59
- "@tulip-systems/drive-google": "0.12.1",
60
- "@tulip-systems/editor": "0.12.1",
61
- "@tulip-systems/inline": "0.12.1",
62
- "@tulip-systems/query": "0.12.1",
63
- "@tulip-systems/storage": "0.12.1",
64
- "@tulip-systems/ui": "0.12.1",
52
+ "@tulip-systems/ai": "0.12.2",
53
+ "@tulip-systems/app": "0.12.2",
54
+ "@tulip-systems/auth": "0.12.2",
55
+ "@tulip-systems/commands": "0.12.2",
56
+ "@tulip-systems/core": "0.12.2",
57
+ "@tulip-systems/data-tables": "0.12.2",
58
+ "@tulip-systems/drive": "0.12.2",
59
+ "@tulip-systems/drive-google": "0.12.2",
60
+ "@tulip-systems/editor": "0.12.2",
61
+ "@tulip-systems/editor-storage": "0.12.2",
62
+ "@tulip-systems/inline": "0.12.2",
63
+ "@tulip-systems/query": "0.12.2",
64
+ "@tulip-systems/storage": "0.12.2",
65
+ "@tulip-systems/ui": "0.12.2",
65
66
  "@uidotdev/usehooks": "^2.4.1",
66
67
  "@vercel/functions": "^3.9.0",
67
68
  "@vercel/otel": "^2.1.3",
@@ -91,8 +92,8 @@
91
92
  "react-pdf-tailwind": "^3.0.0",
92
93
  "recharts": "3.10.1",
93
94
  "resend": "^6.18.1",
94
- "sharp": "^0.35.3",
95
95
  "server-only": "^0.0.1",
96
+ "sharp": "^0.35.3",
96
97
  "usehooks-ts": "^3.1.1",
97
98
  "uuid": "^14.0.1",
98
99
  "xlsx": "^0.18.5",
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useSuspenseQueries, useSuspenseQuery } from "@tanstack/react-query";
4
4
  import { EditorContent, EditorMenuFixed } from "@tulip-systems/editor/client";
5
+ import { createFileHandlerUploadStrategy } from "@tulip-systems/editor-storage";
5
6
  import {
6
7
  InlineComboboxDropdown,
7
8
  InlineEditor,
@@ -17,10 +18,12 @@ import {
17
18
  InlineStringInput,
18
19
  } from "@tulip-systems/inline/client";
19
20
  import { DataStackLayout, DataStackRow } from "@tulip-systems/ui/data-stack";
21
+ import { toast } from "@tulip-systems/ui/sonner";
20
22
  import { notFound } from "next/navigation";
21
23
  import { use } from "react";
22
24
  import { z } from "zod";
23
25
  import { orpc } from "@/server/router/client";
26
+ import { uploadClient } from "@/server/storage/client";
24
27
  import { storyPointsConfig } from "../../../_lib/constants";
25
28
 
26
29
  const taskMutation = orpc.tasks.update.mutationOptions();
@@ -172,6 +175,22 @@ export default function TaskDetailPage(props: PageProps<"/admin/tasks/[id]">) {
172
175
  mutate: { on: "change", debounceMs: 700 },
173
176
  validate: { change: z.any() },
174
177
  }}
178
+ extensions={{
179
+ fileHandler: createFileHandlerUploadStrategy({
180
+ allowedMimeTypes: ["image/png", "image/jpeg", "image/gif", "image/webp"],
181
+ variables: {},
182
+ uploadClient,
183
+ onUploadCompleted: (fileNode) => {
184
+ toast.success(`Succesvol geupload: ${fileNode.name}`);
185
+ },
186
+ onUploadFailed: (error) => {
187
+ console.error("Upload error: ", error);
188
+ toast.error("Bestand uploaden mislukt", {
189
+ description: error instanceof Error ? error.message : undefined,
190
+ });
191
+ },
192
+ }),
193
+ }}
175
194
  className="min-h-40"
176
195
  >
177
196
  <EditorMenuFixed />
@@ -35,19 +35,19 @@
35
35
  "@tanstack/db": "^0.6.17",
36
36
  "@tanstack/react-query": "^5.101.4",
37
37
  "@tanstack/react-table": "^8.21.3",
38
- "@tulip-systems/app": "0.12.1",
39
- "@tulip-systems/auth": "0.12.1",
40
- "@tulip-systems/commands": "0.12.1",
41
- "@tulip-systems/core": "0.12.1",
42
- "@tulip-systems/data-tables": "0.12.1",
43
- "@tulip-systems/drive": "0.12.1",
44
- "@tulip-systems/drive-local": "0.12.1",
45
- "@tulip-systems/editor": "0.12.1",
46
- "@tulip-systems/editor-storage": "0.12.1",
47
- "@tulip-systems/inline": "0.12.1",
48
- "@tulip-systems/query": "0.12.1",
49
- "@tulip-systems/storage": "0.12.1",
50
- "@tulip-systems/ui": "0.12.1",
38
+ "@tulip-systems/app": "0.12.2",
39
+ "@tulip-systems/auth": "0.12.2",
40
+ "@tulip-systems/commands": "0.12.2",
41
+ "@tulip-systems/core": "0.12.2",
42
+ "@tulip-systems/data-tables": "0.12.2",
43
+ "@tulip-systems/drive": "0.12.2",
44
+ "@tulip-systems/drive-local": "0.12.2",
45
+ "@tulip-systems/editor": "0.12.2",
46
+ "@tulip-systems/editor-storage": "0.12.2",
47
+ "@tulip-systems/inline": "0.12.2",
48
+ "@tulip-systems/query": "0.12.2",
49
+ "@tulip-systems/storage": "0.12.2",
50
+ "@tulip-systems/ui": "0.12.2",
51
51
  "@vercel/functions": "^3.9.0",
52
52
  "@zip.js/zip.js": "^2.8.34",
53
53
  "better-auth": "^1.6.26",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tulip-systems/create-app",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "license": "AGPL-3.0",