@bookmypuja-tech/bmp-pdf 0.2.2 → 0.2.3
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 +1 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ declare class reportPrinter<T extends IReportOptions> {
|
|
|
173
173
|
size: IReportSize;
|
|
174
174
|
constructor(option: T, size: IReportSize);
|
|
175
175
|
print(data: ReportDataTypes[T]): Promise<Blob>;
|
|
176
|
+
getBlob(data: ReportDataTypes[T]): Promise<Blob>;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
export { A4Print, type KitchenReportProps as IKitchenReport, type IPrasadDelivery, type IPrasadReport, type IPrintablePuja, type IPujaReceipt, type IPujaList as IPujaReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, T2Inch, getA4SummaryBlob, getPrintBlob, printDevoteeReceipt2Inch, printQuickPrintReceipt2Inch, printTotalReceipt2Inch, printePujaReport2Inch, reportPrinter };
|
package/dist/index.js
CHANGED
|
@@ -1771,6 +1771,12 @@ var reportPrinter = class {
|
|
|
1771
1771
|
});
|
|
1772
1772
|
return blob;
|
|
1773
1773
|
}
|
|
1774
|
+
async getBlob(data) {
|
|
1775
|
+
const ReportComponent = options[this.option][this.size];
|
|
1776
|
+
const document = /* @__PURE__ */ React13.createElement(ReportComponent, { ...data });
|
|
1777
|
+
const blob = pdf(document).toBlob();
|
|
1778
|
+
return blob;
|
|
1779
|
+
}
|
|
1774
1780
|
};
|
|
1775
1781
|
export {
|
|
1776
1782
|
A4Print_default as A4Print,
|
package/package.json
CHANGED