@pixldocs/canvas-renderer 0.3.20 → 0.3.21

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
@@ -10777,6 +10777,18 @@ class PixldocsRenderer {
10777
10777
  });
10778
10778
  return this.render(resolved.config, options);
10779
10779
  }
10780
+ /**
10781
+ * Convenience: fetch by ID with flat data and render ALL pages.
10782
+ */
10783
+ async renderAllById(templateId, formData, options) {
10784
+ const resolved = await resolveTemplateData({
10785
+ templateId,
10786
+ formData,
10787
+ supabaseUrl: this.config.supabaseUrl,
10788
+ supabaseAnonKey: this.config.supabaseAnonKey
10789
+ });
10790
+ return this.renderAllPages(resolved.config, options);
10791
+ }
10780
10792
  // ─── Internal: render a page using the full PreviewCanvas engine ───
10781
10793
  getExpectedImageCount(config, pageIndex) {
10782
10794
  const page = config.pages[pageIndex];