@ingestro/importer-react 4.7.1 → 4.8.1
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/chunk-33MRG4OF.js +1 -0
- package/chunk-AAZKUHPZ.js +1 -0
- package/chunk-M2HPMNLE.js +1 -0
- package/chunk-MPSYBYIV.js +156 -0
- package/chunk-MTYOY2HI.js +1 -0
- package/index.d.ts +187 -25
- package/index.js +489 -465
- package/package.json +3 -2
- package/workers/hooks/index.js +1 -1
- package/workers/matchValues/index.js +1 -1
- package/workers/parseData/index.js +1 -1
- package/workers/pdf.worker.min.mjs +21 -0
- package/workers/searchAndReplace/index.js +1 -1
- package/chunk-5QL3SKPX.js +0 -151
- package/chunk-6PSIXCPC.js +0 -1
- package/chunk-DILA2NVE.js +0 -1
- package/chunk-EOOYBY4D.js +0 -1
- package/chunk-WBRCEI6U.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingestro/importer-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"homepage": "https://docs.ingestro.com",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"match-sorter": "^6.4.0",
|
|
24
24
|
"moment": "^2.29.4",
|
|
25
25
|
"nanoevents": "^7.0.1",
|
|
26
|
-
"numbro": "2.4.0",
|
|
27
26
|
"nuvo-exceljs": "4.6.0",
|
|
28
27
|
"object-hash": "^3.0.0",
|
|
28
|
+
"pdfjs-dist": "4.10.38",
|
|
29
29
|
"prism-code-editor": "5.0.1",
|
|
30
30
|
"rxjs": "7.8.1",
|
|
31
31
|
"simplebar": "5.3.9",
|
|
32
32
|
"simplebar-core": "^1.3.0",
|
|
33
|
+
"tesseract.js": "7.0.0",
|
|
33
34
|
"url-join": "^5.0.0",
|
|
34
35
|
"yup": "^0.32.11"
|
|
35
36
|
},
|
package/workers/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,b as m}from"../../chunk-GEB7CZLW.js";import{d as a,e as g}from"../../chunk-
|
|
1
|
+
import{a as s,b as m}from"../../chunk-GEB7CZLW.js";import{d as a,e as g}from"../../chunk-AAZKUHPZ.js";import"../../chunk-3IKZH76S.js";import{isEmpty as p,isNil as v,isUndefined as R}from"lodash";import{expose as h}from"comlink";var I=(n,t,o,f,r)=>{p(n)||Object.keys(n).forEach(e=>{let l=a(r,e);R(n[e].value)||(f[t][e]=n[e].value);let d=g(e,r.filter(i=>!i.isHidden()));v(n[e].info)||d<0||n[e].info?.forEach(i=>{if(!l?.isDisabled()&&i.level===m)return;let c={rowIndex:t,colIndex:d,popover:{message:i.message,level:i.level||s}};(o[t]?.length??0)===0?o[t]=[c]:o[t].push(c)})})},E=async({initResults:n,dataInfos:t,initialValues:o},f)=>{for(let r=0;r<n.length;r++)I(n[r][0],n[r][1],t,o,f);return{dataInfos:t,initialValues:o}},b=async({initialValues:n,key:t,result:o,colIndex:f})=>{let r={};for(let e=0;e<o.length;e++)if(R(o[e][0].value)||n[o[e][1]]&&(n[o[e][1]][t]=o[e][0].value),o?.[e]?.[0]?.info&&f>=0){let l=o?.[e]?.[0]?.info??[],d={message:o?.[e]?.[0]?.info?.[0]?.message??"",level:o?.[e]?.[0]?.info?.[0]?.level??s};for(let c=0;c<l?.length;c++)if(l[c].level!==m){d={message:o?.[e]?.[0]?.info?.[c]?.message??"",level:o?.[e]?.[0]?.info?.[c]?.level??s};break}let i={rowIndex:o[e][1],colIndex:f,popover:d};i.popover.level!==m&&n[o[e][1]]&&((r[o[e][1]]?.length??0)===0?r[o[e][1]]=[i]:r[o[e][1]].push(i))}return{dataInfos:r,initialValues:n}},x=async({dataInfos:n,columnDataInfos:t})=>{let o=Object.keys(t);for(let f=0;f<o.length;f++){let r=o[f];t?.[r]?.length>0&&(n[r]||(n[r]=[]),n[r].push(...t[r]))}return{dataInfos:n}},D=()=>!0;h({check:D,handleOnEntryInit:E,handleColumnHooks:b,integrateColumnHooksData:x});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,f as t,g as m,h as n,i,j as r}from"../../chunk-
|
|
1
|
+
import{e as o,f as t,g as m,h as n,i,j as r}from"../../chunk-33MRG4OF.js";import"../../chunk-MTYOY2HI.js";import"../../chunk-MPSYBYIV.js";import"../../chunk-AAZKUHPZ.js";import"../../chunk-J5WOZVPO.js";import"../../chunk-3IKZH76S.js";import{expose as e}from"comlink";var p=()=>!0;e({check:p,getValues:r,addToAllRows:o,joinWithoutColumns:t,joinOnColumns:m,appendToColumns:n,countMatching:i});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{C as m,r as e,s as t,t as r,u as o,v as c,w as n,x as s,y as h}from"../../chunk-MPSYBYIV.js";import"../../chunk-3IKZH76S.js";import{expose as v}from"comlink";var S=()=>!0;v({convertCsv2Sheet:e,convertExcel2Sheet:s,convertJson2Sheet:r,convertXLS2Sheet:o,convertXML2Sheet:c,jsonParser:t,parseDateFormat:m,convertPdf2Sheets:n,convertNumbers2Sheet:h,check:S});
|