@pixldocs/canvas-renderer 0.5.223 → 0.5.225
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-xWTAswf0.cjs → index-6nrov1rx.cjs} +1344 -510
- package/dist/index-6nrov1rx.cjs.map +1 -0
- package/dist/{index-DXJtHKQO.js → index-BpViFQMO.js} +1344 -510
- package/dist/index-BpViFQMO.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C-l9Vtku.cjs → vectorPdfExport-CVeK--lR.cjs} +4 -4
- package/dist/{vectorPdfExport-C-l9Vtku.cjs.map → vectorPdfExport-CVeK--lR.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Cb5fFgNi.js → vectorPdfExport-D46sZGKA.js} +4 -4
- package/dist/{vectorPdfExport-Cb5fFgNi.js.map → vectorPdfExport-D46sZGKA.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DXJtHKQO.js.map +0 -1
- package/dist/index-xWTAswf0.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-6nrov1rx.cjs");
|
|
4
4
|
exports.DEPLOYMENT_VERSION_MARKER = index.DEPLOYMENT_VERSION_MARKER;
|
|
5
5
|
exports.FONT_FALLBACK_DEVANAGARI = index.FONT_FALLBACK_DEVANAGARI;
|
|
6
6
|
exports.FONT_FALLBACK_MATH = index.FONT_FALLBACK_MATH;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { isBundledAssetUrl } from '../../../src/lib/canvasImageLoader';
|
|
|
9
9
|
import { isPrivateUrl } from '../../../src/lib/canvasImageLoader';
|
|
10
10
|
import { jsPDF } from 'jspdf';
|
|
11
11
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
12
|
+
import { ReactNode } from 'react';
|
|
12
13
|
import { resolveBlurElementExactIdsFromFlatFormKeys } from '../../../src/lib/previewBlur';
|
|
13
14
|
import { ResolveBlurOptions } from '../../../src/lib/previewBlur';
|
|
14
15
|
import { SectionFormState } from '../../../src/lib/inferFormSchemaFromTemplate';
|
|
@@ -430,6 +431,8 @@ declare interface PixldocsPreviewBaseProps {
|
|
|
430
431
|
onReady?: () => void;
|
|
431
432
|
/** Called when resolution or rendering fails */
|
|
432
433
|
onError?: (error: Error) => void;
|
|
434
|
+
/** Optional custom UI shown while the live preview is preparing */
|
|
435
|
+
loadingFallback?: ReactNode;
|
|
433
436
|
/** Allow package previews to skip the blocking font-ready wait used by app preview */
|
|
434
437
|
skipFontReadyWait?: boolean;
|
|
435
438
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-
|
|
1
|
+
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-BpViFQMO.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEPLOYMENT_VERSION_MARKER,
|
|
4
4
|
F as FONT_FALLBACK_DEVANAGARI,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jspdf = require("jspdf");
|
|
4
4
|
const svg2pdf_js = require("svg2pdf.js");
|
|
5
5
|
const fabric = require("fabric");
|
|
6
|
-
const index = require("./index-
|
|
6
|
+
const index = require("./index-6nrov1rx.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTj2f465.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -3271,7 +3271,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
3271
3271
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
3272
3272
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
3273
3273
|
try {
|
|
3274
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
3274
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-6nrov1rx.cjs")).then((n) => n.canvasImageLoader);
|
|
3275
3275
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
3276
3276
|
} catch {
|
|
3277
3277
|
return null;
|
|
@@ -4080,7 +4080,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
let fetchUrl = imageUrl;
|
|
4082
4082
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
4083
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
4083
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-6nrov1rx.cjs")).then((n) => n.canvasImageLoader);
|
|
4084
4084
|
if (isPrivateUrl(imageUrl)) return null;
|
|
4085
4085
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
4086
4086
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -6177,4 +6177,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
6177
6177
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
6178
6178
|
exports.preparePagesForExport = preparePagesForExport;
|
|
6179
6179
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
6180
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
6180
|
+
//# sourceMappingURL=vectorPdfExport-CVeK--lR.cjs.map
|