@mxmweb/aichat 2.1.8 → 2.1.9

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 +7 -5
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -1782,7 +1782,7 @@ const ny = co({
1782
1782
  clearTip: "\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6",
1783
1783
  send: "\u53D1\u9001",
1784
1784
  stop: "\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD",
1785
- uploadHint: "\u652F\u6301\u62D6\u62FD\u6216\u70B9\u51FB\u4E0A\u4F20PDF\u3001Word\u3001\u56FE\u7247\u7B49\u6587\u4EF6",
1785
+ uploadHint: "\u652F\u6301\u62D6\u62FD\u6216\u70B9\u51FB\u4E0A\u4F20PDF\u3001Word\u3001OFD\u3001\u56FE\u7247\u7B49\u6587\u4EF6",
1786
1786
  selectPlaceholder: "\u8BF7\u9009\u62E9"
1787
1787
  },
1788
1788
  fileStatus: {
@@ -1829,7 +1829,7 @@ const ny = co({
1829
1829
  clearTip: "Clear input and files",
1830
1830
  send: "Send",
1831
1831
  stop: "Stop",
1832
- uploadHint: "Drag and drop or click to upload PDF, Word, images, etc.",
1832
+ uploadHint: "Drag and drop or click to upload PDF, Word, OFD, images, etc.",
1833
1833
  selectPlaceholder: "Please select"
1834
1834
  },
1835
1835
  fileStatus: {
@@ -1876,7 +1876,7 @@ const ny = co({
1876
1876
  clearTip: "\u5165\u529B\u3068\u30D5\u30A1\u30A4\u30EB\u3092\u30AF\u30EA\u30A2",
1877
1877
  send: "\u9001\u4FE1",
1878
1878
  stop: "\u505C\u6B62",
1879
- uploadHint: "PDF\u3001Word\u3001\u753B\u50CF\u306A\u3069\u3092\u30C9\u30E9\u30C3\u30B0\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3067\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
1879
+ uploadHint: "PDF\u3001Word\u3001OFD\u3001\u753B\u50CF\u306A\u3069\u3092\u30C9\u30E9\u30C3\u30B0\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3067\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
1880
1880
  selectPlaceholder: "\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"
1881
1881
  },
1882
1882
  fileStatus: {
@@ -2012,6 +2012,8 @@ function uy(e, t) {
2012
2012
  return e.toLowerCase() === "csv" ? r("csv", "rag/csv", ["sheets", "excel"]) : r("sheets", "rag/excel", ["excel", "xls", "xlsx"]);
2013
2013
  case "pdf":
2014
2014
  return r("pdf", "rag/pdf");
2015
+ case "ofd":
2016
+ return r("ofd", "rag/ofd");
2015
2017
  case "txt":
2016
2018
  return r("txt", "rag/txt");
2017
2019
  case "md":
@@ -33392,9 +33394,9 @@ function cD({
33392
33394
  const oe = Array.from(fe.dataTransfer.files || []);
33393
33395
  if (oe.length > 0) {
33394
33396
  const pe = oe.filter(
33395
- (Ne) => /image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(
33397
+ (Ne) => /image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md|ofd/.test(
33396
33398
  Ne.type
33397
- ) || /\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(Ne.name)
33399
+ ) || /\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md|ofd)$/i.test(Ne.name)
33398
33400
  );
33399
33401
  if (pe.length > 0) {
33400
33402
  const Ne = rm(
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": "2.1.8",
8
+ "version": "2.1.9",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {