@repdf/preview 0.5.1 → 0.6.0
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/index.mjs +11 -3
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/build-manifest.json +5 -5
- package/dist/preview/.next/cache/.previewinfo +1 -1
- package/dist/preview/.next/cache/.rscinfo +1 -1
- package/dist/preview/.next/cache/.tsbuildinfo +1 -1
- package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/preview/.next/prerender-manifest.json +3 -3
- package/dist/preview/.next/routes-manifest.json +3 -3
- package/dist/preview/.next/server/chunks/539.js +1 -1
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
- package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/component.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/pdf.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js +1 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js.nft.json +1 -1
- package/dist/preview/.next/server/pages/en/404.html +1 -1
- package/dist/preview/.next/server/pages/en/500.html +1 -1
- package/dist/preview/.next/server/pages/en/test.html +1 -1
- package/dist/preview/.next/server/pages/index.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js +1 -1
- package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js.nft.json +1 -1
- package/dist/preview/.next/static/{FpcN7f3WcKAegtkQ_R6bq → XoLHPbSRoUQZ298vvm1si}/_buildManifest.js +1 -1
- package/dist/preview/.next/static/chunks/pages/_app-ae07ed78fca634b6.js +182 -0
- package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-8e77f612d64b68fd.js +1 -0
- package/dist/preview/.next/static/css/{a1c9c82f00c72350.css → 1fbb4b304a915354.css} +1 -1
- package/dist/preview/.next/trace +9 -9
- package/dist/preview/.next/trace-build +1 -1
- package/package.json +46 -46
- package/dist/preview/.next/static/chunks/pages/_app-6411e6a26996cdef.js +0 -182
- package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-9bf0ebcb9e9f9c65.js +0 -1
- /package/dist/preview/.next/static/{FpcN7f3WcKAegtkQ_R6bq → XoLHPbSRoUQZ298vvm1si}/_ssgManifest.js +0 -0
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import "esbuild";
|
|
|
16
16
|
import "source-map-js";
|
|
17
17
|
import "stacktrace-parser";
|
|
18
18
|
//#region package.json
|
|
19
|
-
var version = "0.
|
|
19
|
+
var version = "0.6.0";
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/logger.ts
|
|
22
22
|
const logger = pino({
|
|
@@ -156,8 +156,16 @@ function pdfTemplateWatcher() {
|
|
|
156
156
|
}
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/template-loader/get-pdf-component.ts
|
|
159
|
-
const
|
|
160
|
-
const
|
|
159
|
+
const COMPONENT_CACHE_STORE_KEY = "__repdf_preview_getPdfComponentCacheStore__";
|
|
160
|
+
const getComponentCacheStore = () => {
|
|
161
|
+
const globalWithStore = globalThis;
|
|
162
|
+
if (!globalWithStore[COMPONENT_CACHE_STORE_KEY]) globalWithStore[COMPONENT_CACHE_STORE_KEY] = {
|
|
163
|
+
componentCache: /* @__PURE__ */ new Map(),
|
|
164
|
+
inflightBuilds: /* @__PURE__ */ new Map()
|
|
165
|
+
};
|
|
166
|
+
return globalWithStore[COMPONENT_CACHE_STORE_KEY];
|
|
167
|
+
};
|
|
168
|
+
const { componentCache, inflightBuilds } = getComponentCacheStore();
|
|
161
169
|
const clearPdfComponentCache = () => {
|
|
162
170
|
componentCache.clear();
|
|
163
171
|
inflightBuilds.clear();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
XoLHPbSRoUQZ298vvm1si
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
],
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"lowPriorityFiles": [
|
|
7
|
-
"static/
|
|
8
|
-
"static/
|
|
7
|
+
"static/XoLHPbSRoUQZ298vvm1si/_buildManifest.js",
|
|
8
|
+
"static/XoLHPbSRoUQZ298vvm1si/_ssgManifest.js"
|
|
9
9
|
],
|
|
10
10
|
"rootMainFiles": [],
|
|
11
11
|
"rootMainFilesTree": {},
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"static/chunks/webpack-6f363cd1990801ba.js",
|
|
22
22
|
"static/chunks/framework-c1a985c867714b4b.js",
|
|
23
23
|
"static/chunks/main-3c8a75f1bd6d0687.js",
|
|
24
|
-
"static/css/
|
|
25
|
-
"static/chunks/pages/_app-
|
|
24
|
+
"static/css/1fbb4b304a915354.css",
|
|
25
|
+
"static/chunks/pages/_app-ae07ed78fca634b6.js"
|
|
26
26
|
],
|
|
27
27
|
"/_error": [
|
|
28
28
|
"static/chunks/webpack-6f363cd1990801ba.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"static/chunks/framework-c1a985c867714b4b.js",
|
|
36
36
|
"static/chunks/main-3c8a75f1bd6d0687.js",
|
|
37
37
|
"static/chunks/440-7f86160d543d19eb.js",
|
|
38
|
-
"static/chunks/pages/preview/[...relTemplatePath]-
|
|
38
|
+
"static/chunks/pages/preview/[...relTemplatePath]-8e77f612d64b68fd.js"
|
|
39
39
|
],
|
|
40
40
|
"/test": [
|
|
41
41
|
"static/chunks/webpack-6f363cd1990801ba.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"previewModeId":"
|
|
1
|
+
{"previewModeId":"2e16074b4a991beeeec28b0f7840d94e","previewModeSigningKey":"5c9f0c802904f63277a627f49ffbd7cba5d32e2ebd6e849e5fba07b6f3c73b20","previewModeEncryptionKey":"dfb2d8a29083bd6317693869b9692c98a2887cb6ce88a2093214c8d3255f2f1a","expireAt":1775143599399}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"encryption.key":"
|
|
1
|
+
{"encryption.key":"Kbztll0sjUboU0G0ONhZFXWDv81MKhRpBM0iTcBgmeQ=","encryption.expire_at":1775143599394}
|