@mxmweb/rtext 1.7.3 → 1.7.4

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.
Files changed (3) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -27601,7 +27601,7 @@ const i7 = Oe.div.attrs({
27601
27601
  e.viewAllPath && (typeof e.viewAllPath == "function" ? e.viewAllPath() : window.open(e.viewAllPath, "_blank")), n?.();
27602
27602
  }, C = (F) => {
27603
27603
  const S = (F || "").toLowerCase();
27604
- return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(S) ? "rag/pic" : S === "pdf" ? "rag/pdf" : ["doc", "docx"].includes(S) ? "rag/word" : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(S) ? "rag/excel" : ["ppt", "pptx"].includes(S) ? "rag/ppt" : S === "txt" || S === "md" ? "rag/txt" : S === "csv" ? "rag/csv" : ["zip", "rar", "7z"].includes(S) ? "rag/zip" : ["odt", "ods", "odp", "odf"].includes(S) ? "rag/odf" : S === "json" ? "rag/json" : "rag/file";
27604
+ return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(S) ? "rag/pic" : S === "pdf" ? "rag/pdf" : S === "ofd" ? "rag/ofd" : ["doc", "docx"].includes(S) ? "rag/word" : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(S) ? "rag/excel" : ["ppt", "pptx"].includes(S) ? "rag/ppt" : S === "txt" || S === "md" ? "rag/txt" : S === "csv" ? "rag/csv" : ["zip", "rar", "7z"].includes(S) ? "rag/zip" : ["odt", "ods", "odp", "odf"].includes(S) ? "rag/odf" : S === "json" ? "rag/json" : "rag/file";
27605
27605
  }, k = (F) => {
27606
27606
  if (d)
27607
27607
  return d(F);
@@ -27734,7 +27734,7 @@ function o0(e, t, r = 18) {
27734
27734
  }
27735
27735
  return /* @__PURE__ */ x.jsx(En, { type: d, size: r });
27736
27736
  };
27737
- return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(n) ? l("image", "rag/pic", ["png", "jpg", "jpeg"]) : n === "pdf" ? l("pdf", "rag/pdf") : ["doc", "docx"].includes(n) ? l("docx", "rag/word", ["doc"]) : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(n) ? l("sheets", "rag/excel", ["excel", "xls", "xlsx"]) : n === "csv" ? l("csv", "rag/csv", ["sheets", "excel"]) : ["ppt", "pptx"].includes(n) ? l("pptx", "rag/ppt", ["ppt"]) : n === "txt" || n === "md" ? l("txt", "rag/txt", ["md"]) : ["zip", "rar", "7z"].includes(n) ? l("archive", "rag/zip", ["zip", "rar"]) : ["odt", "ods", "odp", "odf"].includes(n) ? l("odt", "rag/odf") : ["html", "htm", "url"].includes(n) ? l("html", "rag/url", ["htm", "url"]) : n === "json" ? l("json", "rag/json") : /* @__PURE__ */ x.jsx(En, { type: "rag/file", size: r });
27737
+ return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(n) ? l("image", "rag/pic", ["png", "jpg", "jpeg"]) : n === "pdf" ? l("pdf", "rag/pdf") : n === "ofd" ? l("ofd", "rag/ofd") : ["doc", "docx"].includes(n) ? l("docx", "rag/word", ["doc"]) : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(n) ? l("sheets", "rag/excel", ["excel", "xls", "xlsx"]) : n === "csv" ? l("csv", "rag/csv", ["sheets", "excel"]) : ["ppt", "pptx"].includes(n) ? l("pptx", "rag/ppt", ["ppt"]) : n === "txt" || n === "md" ? l("txt", "rag/txt", ["md"]) : ["zip", "rar", "7z"].includes(n) ? l("archive", "rag/zip", ["zip", "rar"]) : ["odt", "ods", "odp", "odf"].includes(n) ? l("odt", "rag/odf") : ["html", "htm", "url"].includes(n) ? l("html", "rag/url", ["htm", "url"]) : n === "json" ? l("json", "rag/json") : /* @__PURE__ */ x.jsx(En, { type: "rag/file", size: r });
27738
27738
  }
27739
27739
  function Kd(e) {
27740
27740
  const t = e.replace(/"pk":\s*(\d+)/g, '"pk":"$1"').replace(/"order_num":\s*(\d+)/g, '"order_num":"$1"').replace(/"related_pk":\s*(\d+)/g, '"related_pk":"$1"');
@@ -30014,7 +30014,7 @@ function j7(e, t, r = 18) {
30014
30014
  }
30015
30015
  return /* @__PURE__ */ x.jsx(En, { type: d, size: r });
30016
30016
  };
30017
- return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(n) ? l("image", "rag/pic", ["png", "jpg", "jpeg"]) : n === "pdf" ? l("pdf", "rag/pdf") : ["doc", "docx"].includes(n) ? l("docx", "rag/word", ["doc"]) : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(n) ? l("sheets", "rag/excel", ["excel", "xls", "xlsx"]) : n === "csv" ? l("csv", "rag/csv", ["sheets", "excel"]) : ["ppt", "pptx"].includes(n) ? l("pptx", "rag/ppt", ["ppt"]) : n === "txt" || n === "md" ? l("txt", "rag/txt", ["md"]) : ["zip", "rar", "7z"].includes(n) ? l("archive", "rag/zip", ["zip", "rar"]) : ["odt", "ods", "odp", "odf"].includes(n) ? l("odt", "rag/odf") : ["html", "htm", "url"].includes(n) ? l("html", "rag/url", ["htm", "url"]) : n === "json" ? l("json", "rag/json") : /* @__PURE__ */ x.jsx(En, { type: "rag/file", size: r });
30017
+ return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(n) ? l("image", "rag/pic", ["png", "jpg", "jpeg"]) : n === "pdf" ? l("pdf", "rag/pdf") : n === "ofd" ? l("ofd", "rag/ofd") : ["doc", "docx"].includes(n) ? l("docx", "rag/word", ["doc"]) : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(n) ? l("sheets", "rag/excel", ["excel", "xls", "xlsx"]) : n === "csv" ? l("csv", "rag/csv", ["sheets", "excel"]) : ["ppt", "pptx"].includes(n) ? l("pptx", "rag/ppt", ["ppt"]) : n === "txt" || n === "md" ? l("txt", "rag/txt", ["md"]) : ["zip", "rar", "7z"].includes(n) ? l("archive", "rag/zip", ["zip", "rar"]) : ["odt", "ods", "odp", "odf"].includes(n) ? l("odt", "rag/odf") : ["html", "htm", "url"].includes(n) ? l("html", "rag/url", ["htm", "url"]) : n === "json" ? l("json", "rag/json") : /* @__PURE__ */ x.jsx(En, { type: "rag/file", size: r });
30018
30018
  }
30019
30019
  const z7 = Oe.div.attrs({
30020
30020
  className: "retrive-chat-message-container"
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "lib_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.7.3",
8
+ "version": "1.7.4",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {