@bookmypuja-tech/bmp-pdf 0.2.18 → 0.2.20
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.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -594,7 +594,7 @@ var Text7 = ({ children, style = {} }) => {
|
|
|
594
594
|
}
|
|
595
595
|
try {
|
|
596
596
|
const xhr = new XMLHttpRequest();
|
|
597
|
-
xhr.open("POST", "
|
|
597
|
+
xhr.open("POST", "/api/text-to-image", false);
|
|
598
598
|
xhr.setRequestHeader("Content-Type", "application/json");
|
|
599
599
|
xhr.send(JSON.stringify({ text: childrenStr }));
|
|
600
600
|
if (xhr.status === 200) {
|
|
@@ -611,7 +611,7 @@ var Text7 = ({ children, style = {} }) => {
|
|
|
611
611
|
Image5,
|
|
612
612
|
{
|
|
613
613
|
key: index,
|
|
614
|
-
src:
|
|
614
|
+
src: `${process.env.NEXT_PUBLIC_APP_BASE_URL}/${imageLink}`,
|
|
615
615
|
style: {
|
|
616
616
|
width: "auto",
|
|
617
617
|
height: style.fontSize || 12,
|
package/package.json
CHANGED