@bookmypuja-tech/bmp-pdf 0.2.6 → 0.2.8

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
@@ -166,7 +166,7 @@ declare const printDevoteeReceipt2Inch: (data: IPujaReceipt) => Promise<void>;
166
166
  declare const printTotalReceipt2Inch: (data: ITotalReceipt) => Promise<void>;
167
167
  declare const printePujaReport2Inch: (data: IPujaReport) => Promise<void>;
168
168
  declare const printQuickPrintReceipt2Inch: (data: IQuickReport) => Promise<void>;
169
- type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja" | "puja-summary" | "combined-repot";
169
+ type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja" | "puja-summary" | "combined-report";
170
170
  type IReportSize = "A4";
171
171
  type ReportDataTypes = {
172
172
  kitchen: KitchenReportProps;
@@ -175,7 +175,7 @@ type ReportDataTypes = {
175
175
  prasad: IPrasadReport;
176
176
  puja: IPujaList;
177
177
  "puja-summary": ISummaryPujaList;
178
- "combined-repot": CombinedReportData;
178
+ "combined-report": CombinedReportData;
179
179
  };
180
180
  declare class reportPrinter<T extends IReportOptions> {
181
181
  option: T;
package/dist/index.js CHANGED
@@ -1698,7 +1698,7 @@ var A4CombinedReport = ({
1698
1698
  prasadData,
1699
1699
  deliveryData
1700
1700
  }) => {
1701
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Document9, null, /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1701
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Document9, null, pujaData.length > 0 && /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1702
1702
  Image11,
1703
1703
  {
1704
1704
  fixed: true,
@@ -1914,7 +1914,7 @@ var A4CombinedReport = ({
1914
1914
  ));
1915
1915
  })));
1916
1916
  })
1917
- )), /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1917
+ )), prasadData.length > 0 && /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1918
1918
  Image11,
1919
1919
  {
1920
1920
  fixed: true,
@@ -2068,7 +2068,7 @@ var A4CombinedReport = ({
2068
2068
  )
2069
2069
  );
2070
2070
  })
2071
- )), /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
2071
+ )), deliveryData.length > 0 && /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
2072
2072
  Image11,
2073
2073
  {
2074
2074
  fixed: true,
@@ -2317,7 +2317,7 @@ var options = {
2317
2317
  "puja-summary": {
2318
2318
  A4: A4Summary_default
2319
2319
  },
2320
- "combined-repot": {
2320
+ "combined-report": {
2321
2321
  A4: A4CombinedReport_default
2322
2322
  }
2323
2323
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookmypuja-tech/bmp-pdf",
3
3
  "description": "PDF Report Generation for Temple360 and T-360 by BookMyPuja",
4
- "version": "0.2.6",
4
+ "version": "0.2.8",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",