@pixldocs/canvas-renderer 0.5.187 → 0.5.188

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-DgMi1JSR.cjs");
3
+ const index = require("./index-0rk-MRGy.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
@@ -7,6 +7,8 @@ import { isBundledAssetUrl } from '../../../src/lib/canvasImageLoader';
7
7
  import { isPrivateUrl } from '../../../src/lib/canvasImageLoader';
8
8
  import { jsPDF } from 'jspdf';
9
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
+ import { resolveBlurElementExactIdsFromFlatFormKeys } from '../../../src/lib/previewBlur';
11
+ import { ResolveBlurOptions } from '../../../src/lib/previewBlur';
10
12
  import { SectionFormState } from '../../../src/lib/inferFormSchemaFromTemplate';
11
13
  import { setBundledAssetPrefixes } from '../../../src/lib/canvasImageLoader';
12
14
  import { SmartElementProps } from '../../../shared/smart-elements/types';
@@ -685,27 +687,9 @@ export declare interface RenderResult {
685
687
  pixelHeight: number;
686
688
  }
687
689
 
688
- /**
689
- * Resolve a list of flat form keys to the exact cloned canvas element ids
690
- * they bind to (across all pages and repeatable instances) by walking
691
- * `config.__cloneIdMap`.
692
- *
693
- * Unknown keys are silently ignored — never blur something we can't
694
- * positively identify.
695
- */
696
- export declare function resolveBlurElementExactIdsFromFlatFormKeys(config: TemplateConfig, flatFormKeys: Iterable<string>, options?: ResolveBlurOptions): string[];
690
+ export { resolveBlurElementExactIdsFromFlatFormKeys }
697
691
 
698
- export declare interface ResolveBlurOptions {
699
- /**
700
- * Restrict resolution to flat keys that bind the **value** column of a
701
- * dynamic field row (i.e. keys ending in `_value`). This is the typical
702
- * biodata teaser pattern — blur values, leave labels / section titles /
703
- * full-name / photo sharp. Default: `'value'`.
704
- *
705
- * Pass `'all'` to resolve every key regardless of suffix.
706
- */
707
- bindings?: 'value' | 'all';
708
- }
692
+ export { ResolveBlurOptions }
709
693
 
710
694
  export declare interface ResolvedTemplate {
711
695
  config: TemplateConfig;
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, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4 } from "./index-C9H38u7P.js";
1
+ import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4 } from "./index-CjZZhQH6.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-DgMi1JSR.cjs");
6
+ const index = require("./index-0rk-MRGy.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" } });
@@ -2525,7 +2525,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2525
2525
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2526
2526
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2527
2527
  try {
2528
- const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-DgMi1JSR.cjs")).then((n) => n.canvasImageLoader);
2528
+ const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-0rk-MRGy.cjs")).then((n) => n.canvasImageLoader);
2529
2529
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2530
2530
  } catch {
2531
2531
  return null;
@@ -3316,7 +3316,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3316
3316
  }
3317
3317
  let fetchUrl = imageUrl;
3318
3318
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3319
- const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-DgMi1JSR.cjs")).then((n) => n.canvasImageLoader);
3319
+ const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-0rk-MRGy.cjs")).then((n) => n.canvasImageLoader);
3320
3320
  if (isPrivateUrl(imageUrl)) return null;
3321
3321
  const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
3322
3322
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5310,4 +5310,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
5310
5310
  exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
5311
5311
  exports.preparePagesForExport = preparePagesForExport;
5312
5312
  exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
5313
- //# sourceMappingURL=vectorPdfExport-BknzMTNP.cjs.map
5313
+ //# sourceMappingURL=vectorPdfExport-B2Cf-9eT.cjs.map