@pixldocs/canvas-renderer 0.5.36 → 0.5.37

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.d.ts CHANGED
@@ -217,6 +217,12 @@ export declare function loadGoogleFontCSS(rawFontFamily: string): Promise<void>;
217
217
  */
218
218
  export declare function normalizeFontFamily(fontStack: string): string;
219
219
 
220
+ /**
221
+ * Package version banner. Bump alongside package.json so we can confirm
222
+ * (via browser:log) that the deployed bundle matches the expected build.
223
+ */
224
+ export declare const PACKAGE_VERSION = "0.5.37";
225
+
220
226
  export declare interface PageSettings {
221
227
  backgroundColor?: string;
222
228
  backgroundGradient?: any;
package/dist/index.js CHANGED
@@ -12053,10 +12053,15 @@ function PixldocsPreview(props) {
12053
12053
  !canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
12054
12054
  ] });
12055
12055
  }
12056
+ const PACKAGE_VERSION = "0.5.37";
12056
12057
  class PixldocsRenderer {
12057
12058
  constructor(config) {
12058
12059
  __publicField(this, "config");
12059
12060
  this.config = config;
12061
+ try {
12062
+ console.log(`[canvas-renderer] PixldocsRenderer v${PACKAGE_VERSION} initialized`);
12063
+ } catch {
12064
+ }
12060
12065
  }
12061
12066
  /**
12062
12067
  * Render a pre-resolved template config to an image using the full PageCanvas engine.
@@ -14863,6 +14868,7 @@ export {
14863
14868
  FONT_FALLBACK_DEVANAGARI,
14864
14869
  FONT_FALLBACK_SYMBOLS,
14865
14870
  FONT_FILES,
14871
+ PACKAGE_VERSION,
14866
14872
  PixldocsPreview,
14867
14873
  PixldocsRenderer,
14868
14874
  applyThemeToConfig,