@repdf/preview 0.0.16 → 0.0.19

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.
Files changed (52) hide show
  1. package/dist/index.js +10 -18
  2. package/dist/preview/.next/BUILD_ID +1 -1
  3. package/dist/preview/.next/build-manifest.json +8 -13
  4. package/dist/preview/.next/cache/.tsbuildinfo +1 -1
  5. package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
  8. package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
  11. package/dist/preview/.next/next-server.js.nft.json +1 -1
  12. package/dist/preview/.next/prerender-manifest.json +1 -1
  13. package/dist/preview/.next/routes-manifest.json +1 -1
  14. package/dist/preview/.next/server/chunks/787.js +4 -0
  15. package/dist/preview/.next/server/functions-config-manifest.json +1 -1
  16. package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
  17. package/dist/preview/.next/server/pages/_app.js +1 -1
  18. package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
  19. package/dist/preview/.next/server/pages/_error.js +1 -1
  20. package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
  21. package/dist/preview/.next/server/pages/api/component.js +2 -2
  22. package/dist/preview/.next/server/pages/api/component.js.nft.json +1 -1
  23. package/dist/preview/.next/server/pages/api/pdf.js +1 -1
  24. package/dist/preview/.next/server/pages/api/pdf.js.nft.json +1 -1
  25. package/dist/preview/.next/server/pages/api/trpc/[trpc].js +1 -1
  26. package/dist/preview/.next/server/pages/api/trpc/[trpc].js.nft.json +1 -1
  27. package/dist/preview/.next/server/pages/en/404.html +1 -1
  28. package/dist/preview/.next/server/pages/en/500.html +1 -1
  29. package/dist/preview/.next/server/pages/index.js +53 -1
  30. package/dist/preview/.next/server/pages/index.js.nft.json +1 -1
  31. package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js +1 -1
  32. package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js.nft.json +1 -1
  33. package/dist/preview/.next/server/pages-manifest.json +1 -1
  34. package/dist/preview/.next/static/CbRtYK3hrz-9vLHOywnCm/_buildManifest.js +1 -0
  35. package/dist/preview/.next/static/chunks/138-c24eca17d1ad2527.js +1 -0
  36. package/dist/preview/.next/static/chunks/pages/{_app-3647ba2a9492bf6f.js → _app-2de82f9e83b4c360.js} +3 -3
  37. package/dist/preview/.next/static/chunks/pages/index-7e306d1513d09a1a.js +1 -0
  38. package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-21a4afde50569413.js +1 -0
  39. package/dist/preview/.next/static/css/{4775703643ebce7c.css → 1f6d59b4f8c0fd6a.css} +1 -1
  40. package/dist/preview/.next/trace +14 -14
  41. package/package.json +4 -7
  42. package/dist/index.cjs +0 -400
  43. package/dist/index.d.cts +0 -1
  44. package/dist/preview/.next/server/chunks/288.js +0 -4
  45. package/dist/preview/.next/server/pages/en/hello.html +0 -1
  46. package/dist/preview/.next/server/pages/hello.js.nft.json +0 -1
  47. package/dist/preview/.next/static/chunks/11-c3207764c75fac42.js +0 -1
  48. package/dist/preview/.next/static/chunks/pages/hello-78aa44a690f8e32d.js +0 -1
  49. package/dist/preview/.next/static/chunks/pages/index-87aa243f34ebeb5e.js +0 -1
  50. package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-c13e695dc8db2407.js +0 -1
  51. package/dist/preview/.next/static/lo0rR1N4wNElIr4ODG6Cy/_buildManifest.js +0 -1
  52. /package/dist/preview/.next/static/{lo0rR1N4wNElIr4ODG6Cy → CbRtYK3hrz-9vLHOywnCm}/_ssgManifest.js +0 -0
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { program } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@repdf/preview",
9
- version: "0.0.16",
9
+ version: "0.0.18",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -15,8 +15,7 @@ var package_default = {
15
15
  exports: {
16
16
  "./package.json": "./package.json",
17
17
  ".": {
18
- import: "./dist/index.js",
19
- default: "./dist/index.cjs"
18
+ import: "./dist/index.js"
20
19
  }
21
20
  },
22
21
  description: "preview app for rePDF. Not ready for production use.",
@@ -29,13 +28,12 @@ var package_default = {
29
28
  tsup: "tsup --tsconfig tsconfig.build.json && node build-preview-server.js",
30
29
  build: "next build",
31
30
  dev: "next dev -p 3005",
32
- "dev:live": "tsx src/cli/index.ts dev",
31
+ "dev:live": "tsx watch src/cli/index.ts dev",
33
32
  "dev:live:notused": "tsup --tsconfig tsconfig.build.json --watch",
34
33
  lint: "next lint",
35
34
  start: "next start",
36
35
  "check-exports": "attw --pack .",
37
36
  format: "biome check --write .",
38
- "local-release": "bun publish --access public",
39
37
  clean: "rm -rf dist"
40
38
  },
41
39
  dependencies: {
@@ -88,7 +86,6 @@ var package_default = {
88
86
  "@types/react-dom": "^18.3.1",
89
87
  "@types/ws": "^8.5.12",
90
88
  postcss: "^8.4.39",
91
- "prettier-plugin-tailwindcss": "^0.6.8",
92
89
  "react-email": "3.0.1",
93
90
  tailwindcss: "^3.4.13",
94
91
  typescript: "^5.6.3"
@@ -239,13 +236,11 @@ function pdfTemplateWatcher() {
239
236
  // Ignore dot files
240
237
  });
241
238
  watcher2.add(Array.from(allFiles));
242
- watcher2.on("add", (filePath) => logger_default.debug(`File ${filePath} has been added`)).on(
243
- "change",
244
- (filePath) => logger_default.debug(`File ${filePath} has been changed`)
245
- ).on(
246
- "unlink",
247
- (filePath) => logger_default.debug(`File ${filePath} has been removed`)
248
- ).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
239
+ watcher2.on("add", (filePath) => {
240
+ logger_default.debug(`File ${filePath} has been added`);
241
+ }).on("change", (filePath) => {
242
+ }).on("unlink", (filePath) => {
243
+ }).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
249
244
  return watcher2;
250
245
  }
251
246
 
@@ -332,14 +327,11 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
332
327
  if (pathname === "/_next/webpack-hmr") {
333
328
  logger_default.info("inside nextjs hot module reloading path");
334
329
  nextApp.getUpgradeHandler()(req, socket, head);
335
- } else if (pathname === "/api/ws") {
336
- logger_default.info("inside websocket server path");
330
+ }
331
+ if (pathname === "/api/ws") {
337
332
  wss.handleUpgrade(req, socket, head, (ws) => {
338
333
  wss.emit("connection", ws, req);
339
334
  });
340
- } else {
341
- logger_default.info("unknown ws path destory socket", pathname);
342
- socket.destroy();
343
335
  }
344
336
  });
345
337
  });
@@ -1 +1 @@
1
- lo0rR1N4wNElIr4ODG6Cy
1
+ CbRtYK3hrz-9vLHOywnCm
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/lo0rR1N4wNElIr4ODG6Cy/_buildManifest.js",
9
- "static/lo0rR1N4wNElIr4ODG6Cy/_ssgManifest.js"
8
+ "static/CbRtYK3hrz-9vLHOywnCm/_buildManifest.js",
9
+ "static/CbRtYK3hrz-9vLHOywnCm/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "pages": {
@@ -14,14 +14,15 @@
14
14
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
15
15
  "static/chunks/framework-e0f347a11a70369e.js",
16
16
  "static/chunks/main-58cc12cfc6868a7a.js",
17
- "static/chunks/pages/index-87aa243f34ebeb5e.js"
17
+ "static/chunks/138-c24eca17d1ad2527.js",
18
+ "static/chunks/pages/index-7e306d1513d09a1a.js"
18
19
  ],
19
20
  "/_app": [
20
21
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
21
22
  "static/chunks/framework-e0f347a11a70369e.js",
22
23
  "static/chunks/main-58cc12cfc6868a7a.js",
23
- "static/css/4775703643ebce7c.css",
24
- "static/chunks/pages/_app-3647ba2a9492bf6f.js"
24
+ "static/css/1f6d59b4f8c0fd6a.css",
25
+ "static/chunks/pages/_app-2de82f9e83b4c360.js"
25
26
  ],
26
27
  "/_error": [
27
28
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
@@ -29,18 +30,12 @@
29
30
  "static/chunks/main-58cc12cfc6868a7a.js",
30
31
  "static/chunks/pages/_error-4ad10ca9d415501b.js"
31
32
  ],
32
- "/hello": [
33
- "static/chunks/webpack-b8f8d6679aaa5f42.js",
34
- "static/chunks/framework-e0f347a11a70369e.js",
35
- "static/chunks/main-58cc12cfc6868a7a.js",
36
- "static/chunks/pages/hello-78aa44a690f8e32d.js"
37
- ],
38
33
  "/preview/[...relTemplatePath]": [
39
34
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
40
35
  "static/chunks/framework-e0f347a11a70369e.js",
41
36
  "static/chunks/main-58cc12cfc6868a7a.js",
42
- "static/chunks/11-c3207764c75fac42.js",
43
- "static/chunks/pages/preview/[...relTemplatePath]-c13e695dc8db2407.js"
37
+ "static/chunks/138-c24eca17d1ad2527.js",
38
+ "static/chunks/pages/preview/[...relTemplatePath]-21a4afde50569413.js"
44
39
  ]
45
40
  },
46
41
  "ampFirstPages": []