@qrcommunication/gigapdf-lib 0.114.1 → 0.116.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.d.cts CHANGED
@@ -792,8 +792,17 @@ interface GigaTable {
792
792
  }
793
793
  /** A reference to an image blob in the document's resource table (`model::ImageRef`). */
794
794
  interface GigaImageRef {
795
- /** Content-hash key into `GigaDocument.resources.images`. */
796
- resource: number;
795
+ /**
796
+ * Content-hash key into `GigaDocument.resources.images`.
797
+ *
798
+ * A decimal string: the underlying id is a full 64-bit hash, which does not
799
+ * survive `JSON.parse` as a JavaScript number (precision is lost past 2^53,
800
+ * silently orphaning the reference from its resource — every image was
801
+ * dropped from `toModel()` → `modelTo*` round-trips). The engine emits it as
802
+ * a string and accepts either form (`string` canonically, legacy `number`
803
+ * for hand-built models with small ids).
804
+ */
805
+ resource: string | number;
797
806
  alt: string | null;
798
807
  }
799
808
  /** A single vector path segment (tagged; mirror of `content::vector::PathSeg`). */
package/dist/index.d.ts CHANGED
@@ -792,8 +792,17 @@ interface GigaTable {
792
792
  }
793
793
  /** A reference to an image blob in the document's resource table (`model::ImageRef`). */
794
794
  interface GigaImageRef {
795
- /** Content-hash key into `GigaDocument.resources.images`. */
796
- resource: number;
795
+ /**
796
+ * Content-hash key into `GigaDocument.resources.images`.
797
+ *
798
+ * A decimal string: the underlying id is a full 64-bit hash, which does not
799
+ * survive `JSON.parse` as a JavaScript number (precision is lost past 2^53,
800
+ * silently orphaning the reference from its resource — every image was
801
+ * dropped from `toModel()` → `modelTo*` round-trips). The engine emits it as
802
+ * a string and accepts either form (`string` canonically, legacy `number`
803
+ * for hand-built models with small ids).
804
+ */
805
+ resource: string | number;
797
806
  alt: string | null;
798
807
  }
799
808
  /** A single vector path segment (tagged; mirror of `content::vector::PathSeg`). */