@flowselections/layout-maker 1.22.3 → 1.23.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.
- package/dist-lib/components/AfdrukKnop.d.ts +19 -19
- package/dist-lib/components/AfdrukKnop.d.ts.map +1 -1
- package/dist-lib/components/NetwerkPrintersDialog.d.ts +7 -7
- package/dist-lib/components/NetwerkPrintersDialog.d.ts.map +1 -1
- package/dist-lib/components/PrinterSetupWizard.d.ts.map +1 -1
- package/dist-lib/components/PrinterSetupWizard.js +77 -30
- package/dist-lib/index.d.ts +2 -5
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +9 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +9 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +9 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/aiLayout.functions.d.ts +9 -0
- package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
- package/dist-lib/lib/browserPrint.d.ts +0 -23
- package/dist-lib/lib/browserPrint.d.ts.map +1 -1
- package/dist-lib/lib/browserPrint.js +3 -48
- package/dist-lib/lib/papierFormaten.d.ts +30 -0
- package/dist-lib/lib/papierFormaten.d.ts.map +1 -0
- package/dist-lib/lib/papierFormaten.js +106 -0
- package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
- package/dist-lib/lib/printQueue.server.js +44 -2
- package/dist-lib/lib/printService.functions.d.ts +36 -0
- package/dist-lib/lib/printService.functions.d.ts.map +1 -1
- package/dist-lib/lib/printService.server.d.ts +20 -0
- package/dist-lib/lib/printService.server.d.ts.map +1 -1
- package/dist-lib/lib/printService.server.js +24 -0
- package/dist-lib/lib/testpagina.d.ts.map +1 -1
- package/dist-lib/lib/testpagina.js +27 -22
- package/dist-lib/lib/useDocumentData.d.ts +1 -6
- package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
- package/package.json +139 -139
|
@@ -4,15 +4,35 @@ export interface NetwerkPrinter {
|
|
|
4
4
|
computer: string;
|
|
5
5
|
online: boolean;
|
|
6
6
|
omschrijving: string;
|
|
7
|
+
/** Papierformaten die deze printer aankan: naam -> [breedte, hoogte] in 0,01 mm. */
|
|
8
|
+
formaten: Record<string, number[]> | null;
|
|
9
|
+
/** Papierladen / uitvoerbakken van deze printer. */
|
|
10
|
+
laden: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface PrintOpties {
|
|
13
|
+
/** Naam van het papierformaat, exact zoals de printer die kent. */
|
|
14
|
+
paper?: string | null;
|
|
15
|
+
/** Naam van de papierlade. */
|
|
16
|
+
bin?: string | null;
|
|
17
|
+
/** Draaihoek van elke pagina: 0, 90, 180 of 270 (absoluut). */
|
|
18
|
+
rotate?: number | null;
|
|
19
|
+
/** Document automatisch passend maken. Standaard uit: geen stille schaling. */
|
|
20
|
+
fitToPage?: boolean;
|
|
7
21
|
}
|
|
8
22
|
export interface PrintOpdrachtInput {
|
|
9
23
|
externPrinterId: string;
|
|
10
24
|
documentnaam: string;
|
|
11
25
|
pdfBase64: string;
|
|
12
26
|
kopieen?: number;
|
|
27
|
+
opties?: PrintOpties;
|
|
13
28
|
}
|
|
14
29
|
/** Alle printers die via de printclients in het netwerk beschikbaar zijn. */
|
|
15
30
|
export declare function haalNetwerkPrinters(): Promise<NetwerkPrinter[]>;
|
|
31
|
+
/** Papierformaten en laden van één printer, rechtstreeks bij de printdienst. */
|
|
32
|
+
export declare function haalPrinterFormaten(externPrinterId: string): Promise<{
|
|
33
|
+
formaten: Record<string, number[]> | null;
|
|
34
|
+
laden: string[];
|
|
35
|
+
}>;
|
|
16
36
|
/** Stuurt een PDF rechtstreeks naar de printer. Geeft het externe opdrachtnummer terug. */
|
|
17
37
|
export declare function stuurPdfNaarPrinter(input: PrintOpdrachtInput): Promise<string>;
|
|
18
38
|
export type OpdrachtStatus = "wachtend" | "bezig" | "voltooid" | "mislukt";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printService.server.d.ts","sourceRoot":"","sources":["../../src/lib/printService.server.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"printService.server.d.ts","sourceRoot":"","sources":["../../src/lib/printService.server.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1C,oDAAoD;IACpD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAmDD,6EAA6E;AAC7E,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAmBrE;AAED,gFAAgF;AAChF,wBAAsB,mBAAmB,CACvC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CASzE;AAED,2FAA2F;AAC3F,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBpF;AAGD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3E,uDAAuD;AACvD,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAUjF;AAED,yCAAyC;AACzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAGpD;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,qDAAqD;AACrD,wBAAsB,aAAa,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAchE"}
|
|
@@ -61,10 +61,33 @@ export async function haalNetwerkPrinters() {
|
|
|
61
61
|
online: (p.state ?? "").toLowerCase() === "online" &&
|
|
62
62
|
(p.computer?.state ?? "connected").toLowerCase() === "connected",
|
|
63
63
|
omschrijving: p.description ?? "",
|
|
64
|
+
formaten: p.capabilities?.papers ?? null,
|
|
65
|
+
laden: arr(p.capabilities?.bins).map((b) => String(b)),
|
|
64
66
|
}));
|
|
65
67
|
}
|
|
68
|
+
/** Papierformaten en laden van één printer, rechtstreeks bij de printdienst. */
|
|
69
|
+
export async function haalPrinterFormaten(externPrinterId) {
|
|
70
|
+
const data = await vraag(`/printers/${encodeURIComponent(externPrinterId)}`);
|
|
71
|
+
const eerste = arr(data)[0];
|
|
72
|
+
return {
|
|
73
|
+
formaten: eerste?.capabilities?.papers ?? null,
|
|
74
|
+
laden: arr(eerste?.capabilities?.bins).map((b) => String(b)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
66
77
|
/** Stuurt een PDF rechtstreeks naar de printer. Geeft het externe opdrachtnummer terug. */
|
|
67
78
|
export async function stuurPdfNaarPrinter(input) {
|
|
79
|
+
const o = input.opties ?? {};
|
|
80
|
+
const options = {
|
|
81
|
+
// Bewust uit: anders schaalt de printer een etiket stilzwijgend naar A4.
|
|
82
|
+
fit_to_page: o.fitToPage === true,
|
|
83
|
+
};
|
|
84
|
+
if (o.paper)
|
|
85
|
+
options["paper"] = o.paper;
|
|
86
|
+
if (o.bin)
|
|
87
|
+
options["bin"] = o.bin;
|
|
88
|
+
if (o.rotate === 0 || o.rotate === 90 || o.rotate === 180 || o.rotate === 270) {
|
|
89
|
+
options["rotate"] = o.rotate;
|
|
90
|
+
}
|
|
68
91
|
const data = await vraag("/printjobs", {
|
|
69
92
|
method: "POST",
|
|
70
93
|
body: JSON.stringify({
|
|
@@ -74,6 +97,7 @@ export async function stuurPdfNaarPrinter(input) {
|
|
|
74
97
|
content: input.pdfBase64,
|
|
75
98
|
source: "Layouts en printers",
|
|
76
99
|
qty: Math.max(1, Math.min(50, input.kopieen ?? 1)),
|
|
100
|
+
options,
|
|
77
101
|
}),
|
|
78
102
|
});
|
|
79
103
|
return String(data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testpagina.d.ts","sourceRoot":"","sources":["../../src/lib/testpagina.ts"],"names":[],"mappings":"AASA,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"testpagina.d.ts","sourceRoot":"","sources":["../../src/lib/testpagina.ts"],"names":[],"mappings":"AASA,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBA0BrE"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
// ============================================================================
|
|
2
2
|
// src/lib/testpagina.ts — een testpagina naar een printer sturen.
|
|
3
|
-
//
|
|
4
|
-
//
|
|
3
|
+
// Loopt via de printwachtrij, net als echte documenten, zodat ook het
|
|
4
|
+
// papierformaat en de stand worden getest.
|
|
5
5
|
// ============================================================================
|
|
6
6
|
import { toast } from "@flowselections/core";
|
|
7
|
-
import {
|
|
7
|
+
import { printHtml, volgJobStatus } from "./printApi.js";
|
|
8
8
|
export async function drukTestpaginaAf(printerId, naam) {
|
|
9
|
-
const html = `<div style="padding:
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
formaatCode: "A4",
|
|
14
|
-
orientatie: "portrait",
|
|
15
|
-
documentnaam: "Testpagina",
|
|
16
|
-
html,
|
|
17
|
-
printerId,
|
|
18
|
-
};
|
|
9
|
+
const html = `<div style="padding:15mm;font-family:Arial,Helvetica,sans-serif;font-size:12pt">
|
|
10
|
+
<h1 style="font-size:20pt;margin:0 0 6mm">Testpagina</h1>
|
|
11
|
+
<p style="margin:0 0 3mm">Deze pagina hoort uit: <strong>${naam}</strong></p>
|
|
12
|
+
<p style="margin:0">${new Date().toLocaleString("nl-NL")}</p></div>`;
|
|
19
13
|
try {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
const { jobId } = await printHtml({
|
|
15
|
+
documenttype: "vrij",
|
|
16
|
+
documentnaam: "Testpagina",
|
|
17
|
+
html,
|
|
18
|
+
printerId,
|
|
19
|
+
payload: { is_testpagina: true, test_id: `testpagina-${Date.now()}` },
|
|
20
|
+
});
|
|
21
|
+
toast.success(`Testpagina verstuurd naar ${naam}`);
|
|
22
|
+
const stop = volgJobStatus(jobId, (st) => {
|
|
23
|
+
if (st.status === "mislukt") {
|
|
24
|
+
toast.error(st.foutmelding ?? `De testpagina op ${naam} is mislukt`);
|
|
25
|
+
stop();
|
|
26
|
+
}
|
|
27
|
+
else if (st.status === "voltooid") {
|
|
28
|
+
stop();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
setTimeout(() => stop(), 60000);
|
|
27
32
|
}
|
|
28
|
-
catch {
|
|
29
|
-
toast.error("De testpagina kon niet worden afgedrukt");
|
|
33
|
+
catch (e) {
|
|
34
|
+
toast.error(e instanceof Error ? e.message : "De testpagina kon niet worden afgedrukt");
|
|
30
35
|
}
|
|
31
36
|
}
|
|
@@ -4,12 +4,7 @@ export interface PrinterModel {
|
|
|
4
4
|
id: string;
|
|
5
5
|
naam: string;
|
|
6
6
|
omschrijving: string | null;
|
|
7
|
-
|
|
8
|
-
verbinding: string;
|
|
9
|
-
merk: string | null;
|
|
10
|
-
ip_adres: string | null;
|
|
11
|
-
poort: number | null;
|
|
12
|
-
driver: string | null;
|
|
7
|
+
/** Formaatcode waarop deze printer standaard afdrukt (A4, LABEL_100x62, …). */
|
|
13
8
|
papierformaat: string | null;
|
|
14
9
|
locatie: string | null;
|
|
15
10
|
online: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentData.d.ts","sourceRoot":"","sources":["../../src/lib/useDocumentData.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B
|
|
1
|
+
{"version":3,"file":"useDocumentData.d.ts","sourceRoot":"","sources":["../../src/lib/useDocumentData.ts"],"names":[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AAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,iBAGhD;AAED,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,iBAMtF;AAID,wBAAgB,YAAY;;;;EAoB3B;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,CAyB7C;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAS/D;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,iBAGA"}
|
package/package.json
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@flowselections/layout-maker",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"flowselections": {
|
|
5
|
-
"moduleId": "layout-maker",
|
|
6
|
-
"pages": [
|
|
7
|
-
{
|
|
8
|
-
"export": "DocumentenPage",
|
|
9
|
-
"route": "layouts-printers/documenten",
|
|
10
|
-
"title": "Documenten"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"export": "WerkplekConfiguratiePage",
|
|
14
|
-
"route": "layouts-printers/printplekken/computers/$computerId",
|
|
15
|
-
"title": "Werkplek configureren"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"export": "PrintenPage",
|
|
19
|
-
"route": "layouts-printers/printplekken",
|
|
20
|
-
"title": "Printplekken"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"export": "PrintplekDetailPage",
|
|
24
|
-
"route": "layouts-printers/printplekken/$printplekId",
|
|
25
|
-
"title": "Printplek"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"export": "PrintQueuePage",
|
|
29
|
-
"route": "layouts-printers/wachtrij",
|
|
30
|
-
"title": "Printwachtrij"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"export": "PakbonBuilderPage",
|
|
34
|
-
"route": "layouts-printers/pakbon/$layoutId",
|
|
35
|
-
"title": "Pakbon opbouw"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"export": "BlokOntwerperPage",
|
|
39
|
-
"route": "layouts-printers/blokken/$layoutId",
|
|
40
|
-
"title": "Blokken ontwerpen"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"export": "ProductiebonBuilderPage",
|
|
44
|
-
"route": "layouts-printers/productiebon/$layoutId",
|
|
45
|
-
"title": "Productiebon opbouw"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"serverRoutes": [
|
|
49
|
-
{
|
|
50
|
-
"routePath": "/api/public/print/queue-tick",
|
|
51
|
-
"import": "@flowselections/layout-maker/print",
|
|
52
|
-
"handler": "behandelQueueTick",
|
|
53
|
-
"methods": [
|
|
54
|
-
"POST"
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"private": false,
|
|
60
|
-
"sideEffects": false,
|
|
61
|
-
"type": "module",
|
|
62
|
-
"main": "./dist-lib/index.js",
|
|
63
|
-
"types": "./dist-lib/index.d.ts",
|
|
64
|
-
"exports": {
|
|
65
|
-
".": {
|
|
66
|
-
"types": "./dist-lib/index.d.ts",
|
|
67
|
-
"default": "./dist-lib/index.js"
|
|
68
|
-
},
|
|
69
|
-
"./print": {
|
|
70
|
-
"types": "./dist-lib/lib/queueTick.d.ts",
|
|
71
|
-
"default": "./dist-lib/lib/queueTick.js"
|
|
72
|
-
},
|
|
73
|
-
"./styles": "./dist-lib/styles.css"
|
|
74
|
-
},
|
|
75
|
-
"files": [
|
|
76
|
-
"dist-lib",
|
|
77
|
-
"public"
|
|
78
|
-
],
|
|
79
|
-
"publishConfig": {
|
|
80
|
-
"access": "public"
|
|
81
|
-
},
|
|
82
|
-
"scripts": {
|
|
83
|
-
"dev": "vite dev",
|
|
84
|
-
"build": "vite build",
|
|
85
|
-
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
86
|
-
"build:lib:watch": "tsc -p tsconfig.build.json --watch",
|
|
87
|
-
"build:dev": "vite build --mode development",
|
|
88
|
-
"preview": "vite preview",
|
|
89
|
-
"lint": "eslint ."
|
|
90
|
-
},
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"@flowselections/core": "*",
|
|
93
|
-
"@tanstack/react-query": "^5.0.0",
|
|
94
|
-
"@tanstack/react-router": "^1.0.0",
|
|
95
|
-
"@tanstack/react-start": "^1.0.0",
|
|
96
|
-
"lucide-react": "^0.400.0",
|
|
97
|
-
"react": "^18 || ^19",
|
|
98
|
-
"react-dom": "^18 || ^19",
|
|
99
|
-
"sonner": "^2.0.0"
|
|
100
|
-
},
|
|
101
|
-
"dependencies": {
|
|
102
|
-
"@supabase/supabase-js": "^2.111.0",
|
|
103
|
-
"html2canvas": "^1.4.1",
|
|
104
|
-
"jspdf": "^4.2.1",
|
|
105
|
-
"pdf-lib": "^1.17.1"
|
|
106
|
-
},
|
|
107
|
-
"devDependencies": {
|
|
108
|
-
"@cloudflare/vite-plugin": "^1.25.5",
|
|
109
|
-
"@eslint/js": "^9.32.0",
|
|
110
|
-
"@flowselections/core": "1.0.18",
|
|
111
|
-
"@lovable.dev/vite-tanstack-config": "2.13.1",
|
|
112
|
-
"@rsbuild/core": "^1.0.0",
|
|
113
|
-
"@tailwindcss/vite": "^4.2.1",
|
|
114
|
-
"@tanstack/react-query": "^5.83.0",
|
|
115
|
-
"@tanstack/react-router": "^1.168.0",
|
|
116
|
-
"@tanstack/react-start": "^1.167.14",
|
|
117
|
-
"@tanstack/router-plugin": "^1.167.10",
|
|
118
|
-
"@types/node": "^22.16.5",
|
|
119
|
-
"@types/react": "^19.2.0",
|
|
120
|
-
"@types/react-dom": "^19.2.0",
|
|
121
|
-
"@vitejs/plugin-react": "^5.0.4",
|
|
122
|
-
"eslint": "^9.32.0",
|
|
123
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
124
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
125
|
-
"globals": "^15.15.0",
|
|
126
|
-
"lucide-react": "^0.575.0",
|
|
127
|
-
"react": "^19.2.0",
|
|
128
|
-
"react-dom": "^19.2.0",
|
|
129
|
-
"sonner": "^2.0.7",
|
|
130
|
-
"tailwindcss": "^4.2.1",
|
|
131
|
-
"tw-animate-css": "^1.3.4",
|
|
132
|
-
"typescript": "^5.8.3",
|
|
133
|
-
"tsc-alias": "^1.8.10",
|
|
134
|
-
"typescript-eslint": "^8.56.1",
|
|
135
|
-
"vite": "^7.3.1",
|
|
136
|
-
"vite-tsconfig-paths": "^6.0.2",
|
|
137
|
-
"nitro": "3.0.260603-beta"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@flowselections/layout-maker",
|
|
3
|
+
"version": "1.23.2",
|
|
4
|
+
"flowselections": {
|
|
5
|
+
"moduleId": "layout-maker",
|
|
6
|
+
"pages": [
|
|
7
|
+
{
|
|
8
|
+
"export": "DocumentenPage",
|
|
9
|
+
"route": "layouts-printers/documenten",
|
|
10
|
+
"title": "Documenten"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"export": "WerkplekConfiguratiePage",
|
|
14
|
+
"route": "layouts-printers/printplekken/computers/$computerId",
|
|
15
|
+
"title": "Werkplek configureren"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"export": "PrintenPage",
|
|
19
|
+
"route": "layouts-printers/printplekken",
|
|
20
|
+
"title": "Printplekken"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"export": "PrintplekDetailPage",
|
|
24
|
+
"route": "layouts-printers/printplekken/$printplekId",
|
|
25
|
+
"title": "Printplek"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"export": "PrintQueuePage",
|
|
29
|
+
"route": "layouts-printers/wachtrij",
|
|
30
|
+
"title": "Printwachtrij"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"export": "PakbonBuilderPage",
|
|
34
|
+
"route": "layouts-printers/pakbon/$layoutId",
|
|
35
|
+
"title": "Pakbon opbouw"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"export": "BlokOntwerperPage",
|
|
39
|
+
"route": "layouts-printers/blokken/$layoutId",
|
|
40
|
+
"title": "Blokken ontwerpen"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"export": "ProductiebonBuilderPage",
|
|
44
|
+
"route": "layouts-printers/productiebon/$layoutId",
|
|
45
|
+
"title": "Productiebon opbouw"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"serverRoutes": [
|
|
49
|
+
{
|
|
50
|
+
"routePath": "/api/public/print/queue-tick",
|
|
51
|
+
"import": "@flowselections/layout-maker/print",
|
|
52
|
+
"handler": "behandelQueueTick",
|
|
53
|
+
"methods": [
|
|
54
|
+
"POST"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"private": false,
|
|
60
|
+
"sideEffects": false,
|
|
61
|
+
"type": "module",
|
|
62
|
+
"main": "./dist-lib/index.js",
|
|
63
|
+
"types": "./dist-lib/index.d.ts",
|
|
64
|
+
"exports": {
|
|
65
|
+
".": {
|
|
66
|
+
"types": "./dist-lib/index.d.ts",
|
|
67
|
+
"default": "./dist-lib/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./print": {
|
|
70
|
+
"types": "./dist-lib/lib/queueTick.d.ts",
|
|
71
|
+
"default": "./dist-lib/lib/queueTick.js"
|
|
72
|
+
},
|
|
73
|
+
"./styles": "./dist-lib/styles.css"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist-lib",
|
|
77
|
+
"public"
|
|
78
|
+
],
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"dev": "vite dev",
|
|
84
|
+
"build": "vite build",
|
|
85
|
+
"build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node -e \"require('fs').writeFileSync('dist-lib/styles.css', '@source \\\"./\\\";\\n')\"",
|
|
86
|
+
"build:lib:watch": "tsc -p tsconfig.build.json --watch",
|
|
87
|
+
"build:dev": "vite build --mode development",
|
|
88
|
+
"preview": "vite preview",
|
|
89
|
+
"lint": "eslint ."
|
|
90
|
+
},
|
|
91
|
+
"peerDependencies": {
|
|
92
|
+
"@flowselections/core": "*",
|
|
93
|
+
"@tanstack/react-query": "^5.0.0",
|
|
94
|
+
"@tanstack/react-router": "^1.0.0",
|
|
95
|
+
"@tanstack/react-start": "^1.0.0",
|
|
96
|
+
"lucide-react": "^0.400.0",
|
|
97
|
+
"react": "^18 || ^19",
|
|
98
|
+
"react-dom": "^18 || ^19",
|
|
99
|
+
"sonner": "^2.0.0"
|
|
100
|
+
},
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"@supabase/supabase-js": "^2.111.0",
|
|
103
|
+
"html2canvas": "^1.4.1",
|
|
104
|
+
"jspdf": "^4.2.1",
|
|
105
|
+
"pdf-lib": "^1.17.1"
|
|
106
|
+
},
|
|
107
|
+
"devDependencies": {
|
|
108
|
+
"@cloudflare/vite-plugin": "^1.25.5",
|
|
109
|
+
"@eslint/js": "^9.32.0",
|
|
110
|
+
"@flowselections/core": "1.0.18",
|
|
111
|
+
"@lovable.dev/vite-tanstack-config": "2.13.1",
|
|
112
|
+
"@rsbuild/core": "^1.0.0",
|
|
113
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
114
|
+
"@tanstack/react-query": "^5.83.0",
|
|
115
|
+
"@tanstack/react-router": "^1.168.0",
|
|
116
|
+
"@tanstack/react-start": "^1.167.14",
|
|
117
|
+
"@tanstack/router-plugin": "^1.167.10",
|
|
118
|
+
"@types/node": "^22.16.5",
|
|
119
|
+
"@types/react": "^19.2.0",
|
|
120
|
+
"@types/react-dom": "^19.2.0",
|
|
121
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
122
|
+
"eslint": "^9.32.0",
|
|
123
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
124
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
125
|
+
"globals": "^15.15.0",
|
|
126
|
+
"lucide-react": "^0.575.0",
|
|
127
|
+
"react": "^19.2.0",
|
|
128
|
+
"react-dom": "^19.2.0",
|
|
129
|
+
"sonner": "^2.0.7",
|
|
130
|
+
"tailwindcss": "^4.2.1",
|
|
131
|
+
"tw-animate-css": "^1.3.4",
|
|
132
|
+
"typescript": "^5.8.3",
|
|
133
|
+
"tsc-alias": "^1.8.10",
|
|
134
|
+
"typescript-eslint": "^8.56.1",
|
|
135
|
+
"vite": "^7.3.1",
|
|
136
|
+
"vite-tsconfig-paths": "^6.0.2",
|
|
137
|
+
"nitro": "3.0.260603-beta"
|
|
138
|
+
}
|
|
139
|
+
}
|