@tachybase/plugin-ocr-convert 1.3.21 → 1.3.23

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.
@@ -1 +1 @@
1
- (function(r,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("@tachybase/schema"),require("react"),require("@tachybase/components"),require("@tachybase/utils/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","@tachybase/schema","react","@tachybase/components","@tachybase/utils/client","react-i18next"],t):(r=typeof globalThis!="undefined"?globalThis:r||self,t(r["@tachybase/plugin-ocr-convert"]={},r["@tachybase/client"],r.jsxRuntime,r["@tachybase/schema"],r.react,r["@tachybase/components"],r["@tachybase/utils"]))})(this,function(r,t,n,i,a,l,d){"use strict";var S=Object.defineProperty,D=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var f=(r,t,n)=>t in r?S(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,h=(r,t)=>{for(var n in t||(t={}))I.call(t,n)&&f(r,n,t[n]);if(b)for(var n of b(t))B.call(t,n)&&f(r,n,t[n]);return r},g=(r,t)=>D(r,w(t));var y=(r,t,n)=>new Promise((i,a)=>{var l=o=>{try{s(n.next(o))}catch(e){a(e)}},d=o=>{try{s(n.throw(o))}catch(e){a(e)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(l,d);s((n=n.apply(r,t)).next())});const s=()=>{const{setVisible:c}=t.useActionContext(),p=i.useForm(),{refreshAsync:m}=t.useDataBlockRequest(),x=t.useDataBlockResource();return{onClick(){return y(this,null,function*(){const T=yield p.submit();yield x.create({values:T}),c(!1),yield m()})}}},o="ocr-convert";function e(c){return t.i18n.t(c,{ns:[o,"core"]})}const A={type:"object",properties:{secretId:{title:`{{t("Secret ID", { ns: "${o}" })}}`,type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",required:!0},secretKey:{title:`{{t("Secret Key", { ns: "${o}" })}}`,type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",required:!0},region:{title:`{{t("Region", { ns: "${o}" })}}`,type:"string","x-decorator":"FormItem","x-component":"Select","x-component-props":{placeholder:"ap-guangzhou",options:[{label:e("ap-guangzhou (guangzhou)"),value:"ap-guangzhou"},{label:e("ap-shanghai (shanghai)"),value:"ap-shanghai"},{label:e("ap-beijing (beijing)"),value:"ap-beijing"},{label:e("ap-hongkong (hongkong)"),value:"ap-hongkong"},{label:e("ap-singapore (singapore)"),value:"ap-singapore"}]},default:"ap-guangzhou"},endpoint:{title:`{{t("Endpoint", { ns: "${o}" })}}`,type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"ocr.tencentcloudapi.com"},default:"ocr.tencentcloudapi.com"},ocrTypes:{title:`{{t("Recognition Types", { ns: "${o}" })}}`,type:"array","x-decorator":"FormItem","x-component":"Select","x-component-props":{mode:"multiple",options:[{label:`{{t("General OCR", { ns: "${o}" })}}`,value:"GeneralBasicOCR"},{label:`{{t("Accurate OCR", { ns: "${o}" })}}`,value:"GeneralAccurateOCR"},{label:`{{t("Handwriting OCR", { ns: "${o}" })}}`,value:"GeneralHandwritingOCR"},{label:`{{t("ID Card OCR", { ns: "${o}" })}}`,value:"IDCardOCR"},{label:`{{t("Business License OCR", { ns: "${o}" })}}`,value:"BizLicenseOCR"},{label:`{{t("Bank Card OCR", { ns: "${o}" })}}`,value:"BankCardOCR"},{label:`{{t("Vehicle License OCR", { ns: "${o}" })}}`,value:"VehicleLicenseOCR"},{label:`{{t("Driver License OCR", { ns: "${o}" })}}`,value:"DriverLicenseOCR"}]},default:["GeneralBasicOCR"]}}},v=new d.Registry;v.register("tencent-cloud",A);const P=i.observer(c=>{const p=i.useForm(),m=i.useField(),[x,R]=a.useState(new i.Schema({}));return a.useEffect(()=>{p.clearFormGraph("options.*"),R(new i.Schema(v.get(p.values.type)||{}))},[p.values.type]),n.jsx(l.FormLayout,{layout:"vertical",children:n.jsx(i.RecursionField,{basePath:m.address,onlyRenderProperties:!0,schema:x},p.values.type||"tencent-cloud")})},{displayName:"ProviderOptions"}),u={name:"ocr_providers",fields:[{type:"string",name:"id",interface:"input",uiSchema:{title:'{{t("ID")}}',type:"string","x-component":"Input",required:!0}},{type:"string",name:"title",interface:"input",uiSchema:{title:'{{t("Title")}}',type:"string","x-component":"Input",required:!0}},{type:"string",name:"type",interface:"select",uiSchema:{title:`{{t("Provider type", { ns: "${o}" })}}`,type:"string","x-component":"Select",required:!0,enum:[{label:`{{t("Tencent Cloud OCR", { ns: "${o}" })}}`,value:"tencent-cloud"}]}},{type:"radio",name:"default",interface:"checkbox",uiSchema:{title:'{{t("Default")}}',type:"boolean","x-component":"Checkbox"}}]},O={type:"void",name:"ocr_providers","x-decorator":"TableBlockProvider","x-component":"CardItem","x-decorator-props":{collection:u,action:"list",params:{filter:{},pageSize:50,sort:["-default","id"],appends:[]},rowKey:"id"},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',default:{$and:[{title:{$includes:""}}]},"x-action":"filter","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-decorator":"ACLActionProvider","x-component":"Action","x-use-component-props":"useBulkDestroyActionProps","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},refresh:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-settings":"actionSettings:refresh","x-component-props":{icon:"ReloadOutlined"},"x-use-component-props":"useRefreshActionProps"},create:{type:"void",title:'{{t("Add new")}}',"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(c){const p=t.useActionContext();return t.useRequest(()=>Promise.resolve({data:{name:`s_${i.uid()}`}}),g(h({},c),{refreshDeps:[p.visible]}))}},title:'{{t("Add new")}}',properties:{actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:24}},properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},create:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateDatabaseConnectionAction","x-component-props":{type:"primary"}}}},id:{"x-component":"CollectionField","x-decorator":"FormItem",description:'{{t("Identifier for program usage. Support letters, numbers and underscores, must start with an letter.")}}'},title:{"x-component":"CollectionField","x-decorator":"FormItem"},type:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"ProviderOptions"},default:{"x-component":"CollectionField","x-decorator":"FormItem"}}}}}}},table:{type:"array","x-uid":"input","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-use-decorator-props":"useTableBlockDecoratorProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{id:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},title:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{title:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},type:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{type:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},default:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{default:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:"drawer",icon:"EditOutlined"},"x-decorator":"ACLActionProvider",properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{card:{type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"ocr_providers:update","x-decorator":"FormBlockProvider","x-use-decorator-props":"useEditFormBlockDecoratorProps","x-decorator-props":{action:"get",dataSource:"main",collection:u},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useEditFormBlockProps",properties:{actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:24}},properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary"}}}},id:{"x-component":"CollectionField","x-decorator":"FormItem"},title:{"x-component":"CollectionField","x-decorator":"FormItem"},type:{"x-component":"CollectionField","x-decorator":"FormItem","x-disabled":!0},options:{type:"object","x-component":"ProviderOptions"},default:{"x-component":"CollectionField","x-decorator":"FormItem"}}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-component":"Action.Link","x-decorator":"ACLActionProvider","x-use-component-props":"useDestroyActionProps","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}}};e("Add provider"),e("Add OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Cancel"),e("Submit"),e("Provider name"),e("Provider type"),e("Actions"),e("View"),e("View OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Close"),e("Edit"),e("Edit OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Cancel"),e("Delete"),e("Delete confirmation"),e("Are you sure you want to delete this OCR provider?");function F(){return n.jsx(t.ExtendCollectionsProvider,{collections:[u],children:n.jsx(t.SchemaComponent,{schema:O,scope:{useCreateProviderAction:s},components:{ProviderOptions:P}})})}class C extends t.Plugin{load(){return y(this,null,function*(){this.app.systemSettingsManager.add("system-services."+o,{icon:"FileTextOutlined",title:`{{t("OCR Providers", { ns: "${o}" })}}`,Component:F,aclSnippet:"pm.ocr.providers"})})}}r.PluginOcrConvertClient=C,r.default=C,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(o,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("@tachybase/schema"),require("react"),require("@tego/client"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","@tachybase/schema","react","@tego/client","react-i18next"],t):(o=typeof globalThis!="undefined"?globalThis:o||self,t(o["@tachybase/plugin-ocr-convert"]={},o["@tachybase/client"],o.jsxRuntime,o["@tachybase/schema"],o.react,o["@tego/client"]))})(this,function(o,t,n,i,a,l){"use strict";var T=Object.defineProperty,S=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(o,t,n)=>t in o?T(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,f=(o,t)=>{for(var n in t||(t={}))w.call(t,n)&&g(o,n,t[n]);if(b)for(var n of b(t))I.call(t,n)&&g(o,n,t[n]);return o},h=(o,t)=>S(o,D(t));var y=(o,t,n)=>new Promise((i,a)=>{var l=e=>{try{r(n.next(e))}catch(s){a(s)}},d=e=>{try{r(n.throw(e))}catch(s){a(s)}},r=e=>e.done?i(e.value):Promise.resolve(e.value).then(l,d);r((n=n.apply(o,t)).next())});const d=()=>{const{setVisible:c}=t.useActionContext(),p=i.useForm(),{refreshAsync:m}=t.useDataBlockRequest(),x=t.useDataBlockResource();return{onClick(){return y(this,null,function*(){const R=yield p.submit();yield x.create({values:R}),c(!1),yield m()})}}},r="ocr-convert";function e(c){return t.i18n.t(c,{ns:[r,"core"]})}const s={type:"object",properties:{secretId:{title:`{{t("Secret ID", { ns: "${r}" })}}`,type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",required:!0},secretKey:{title:`{{t("Secret Key", { ns: "${r}" })}}`,type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope",required:!0},region:{title:`{{t("Region", { ns: "${r}" })}}`,type:"string","x-decorator":"FormItem","x-component":"Select","x-component-props":{placeholder:"ap-guangzhou",options:[{label:e("ap-guangzhou (guangzhou)"),value:"ap-guangzhou"},{label:e("ap-shanghai (shanghai)"),value:"ap-shanghai"},{label:e("ap-beijing (beijing)"),value:"ap-beijing"},{label:e("ap-hongkong (hongkong)"),value:"ap-hongkong"},{label:e("ap-singapore (singapore)"),value:"ap-singapore"}]},default:"ap-guangzhou"},endpoint:{title:`{{t("Endpoint", { ns: "${r}" })}}`,type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"ocr.tencentcloudapi.com"},default:"ocr.tencentcloudapi.com"},ocrTypes:{title:`{{t("Recognition Types", { ns: "${r}" })}}`,type:"array","x-decorator":"FormItem","x-component":"Select","x-component-props":{mode:"multiple",options:[{label:`{{t("General OCR", { ns: "${r}" })}}`,value:"GeneralBasicOCR"},{label:`{{t("Accurate OCR", { ns: "${r}" })}}`,value:"GeneralAccurateOCR"},{label:`{{t("Handwriting OCR", { ns: "${r}" })}}`,value:"GeneralHandwritingOCR"},{label:`{{t("ID Card OCR", { ns: "${r}" })}}`,value:"IDCardOCR"},{label:`{{t("Business License OCR", { ns: "${r}" })}}`,value:"BizLicenseOCR"},{label:`{{t("Bank Card OCR", { ns: "${r}" })}}`,value:"BankCardOCR"},{label:`{{t("Vehicle License OCR", { ns: "${r}" })}}`,value:"VehicleLicenseOCR"},{label:`{{t("Driver License OCR", { ns: "${r}" })}}`,value:"DriverLicenseOCR"}]},default:["GeneralBasicOCR"]}}},v=new l.Registry;v.register("tencent-cloud",s);const A=i.observer(c=>{const p=i.useForm(),m=i.useField(),[x,F]=a.useState(new i.Schema({}));return a.useEffect(()=>{p.clearFormGraph("options.*"),F(new i.Schema(v.get(p.values.type)||{}))},[p.values.type]),n.jsx(l.FormLayout,{layout:"vertical",children:n.jsx(i.RecursionField,{basePath:m.address,onlyRenderProperties:!0,schema:x},p.values.type||"tencent-cloud")})},{displayName:"ProviderOptions"}),u={name:"ocr_providers",fields:[{type:"string",name:"id",interface:"input",uiSchema:{title:'{{t("ID")}}',type:"string","x-component":"Input",required:!0}},{type:"string",name:"title",interface:"input",uiSchema:{title:'{{t("Title")}}',type:"string","x-component":"Input",required:!0}},{type:"string",name:"type",interface:"select",uiSchema:{title:`{{t("Provider type", { ns: "${r}" })}}`,type:"string","x-component":"Select",required:!0,enum:[{label:`{{t("Tencent Cloud OCR", { ns: "${r}" })}}`,value:"tencent-cloud"}]}},{type:"radio",name:"default",interface:"checkbox",uiSchema:{title:'{{t("Default")}}',type:"boolean","x-component":"Checkbox"}}]},P={type:"void",name:"ocr_providers","x-decorator":"TableBlockProvider","x-component":"CardItem","x-decorator-props":{collection:u,action:"list",params:{filter:{},pageSize:50,sort:["-default","id"],appends:[]},rowKey:"id"},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',default:{$and:[{title:{$includes:""}}]},"x-action":"filter","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-decorator":"ACLActionProvider","x-component":"Action","x-use-component-props":"useBulkDestroyActionProps","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},refresh:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-settings":"actionSettings:refresh","x-component-props":{icon:"ReloadOutlined"},"x-use-component-props":"useRefreshActionProps"},create:{type:"void",title:'{{t("Add new")}}',"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(c){const p=t.useActionContext();return t.useRequest(()=>Promise.resolve({data:{name:`s_${i.uid()}`}}),h(f({},c),{refreshDeps:[p.visible]}))}},title:'{{t("Add new")}}',properties:{actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:24}},properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},create:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateDatabaseConnectionAction","x-component-props":{type:"primary"}}}},id:{"x-component":"CollectionField","x-decorator":"FormItem",description:'{{t("Identifier for program usage. Support letters, numbers and underscores, must start with an letter.")}}'},title:{"x-component":"CollectionField","x-decorator":"FormItem"},type:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"ProviderOptions"},default:{"x-component":"CollectionField","x-decorator":"FormItem"}}}}}}},table:{type:"array","x-uid":"input","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-use-decorator-props":"useTableBlockDecoratorProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{id:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},title:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{title:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},type:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{type:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},default:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{default:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:"drawer",icon:"EditOutlined"},"x-decorator":"ACLActionProvider",properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{card:{type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"ocr_providers:update","x-decorator":"FormBlockProvider","x-use-decorator-props":"useEditFormBlockDecoratorProps","x-decorator-props":{action:"get",dataSource:"main",collection:u},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useEditFormBlockProps",properties:{actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:24}},properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary"}}}},id:{"x-component":"CollectionField","x-decorator":"FormItem"},title:{"x-component":"CollectionField","x-decorator":"FormItem"},type:{"x-component":"CollectionField","x-decorator":"FormItem","x-disabled":!0},options:{type:"object","x-component":"ProviderOptions"},default:{"x-component":"CollectionField","x-decorator":"FormItem"}}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-component":"Action.Link","x-decorator":"ACLActionProvider","x-use-component-props":"useDestroyActionProps","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}}};e("Add provider"),e("Add OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Cancel"),e("Submit"),e("Provider name"),e("Provider type"),e("Actions"),e("View"),e("View OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Close"),e("Edit"),e("Edit OCR provider"),e("Provider name"),e("Provider type"),e("Tencent Cloud OCR"),e("Cancel"),e("Delete"),e("Delete confirmation"),e("Are you sure you want to delete this OCR provider?");function O(){return n.jsx(t.ExtendCollectionsProvider,{collections:[u],children:n.jsx(t.SchemaComponent,{schema:P,scope:{useCreateProviderAction:d},components:{ProviderOptions:A}})})}class C extends t.Plugin{load(){return y(this,null,function*(){this.app.systemSettingsManager.add("system-services."+r,{icon:"FileTextOutlined",title:`{{t("OCR Providers", { ns: "${r}" })}}`,Component:O,aclSnippet:"pm.ocr.providers"})})}}o.PluginOcrConvertClient=C,o.default=C,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,4 +1,4 @@
1
1
  import { ISchema } from '@tachybase/schema';
2
- import { Registry } from '@tachybase/utils/client';
2
+ import { Registry } from '@tego/client';
3
3
  declare const providerTypes: Registry<ISchema>;
4
4
  export default providerTypes;
@@ -1,13 +1,10 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.21",
3
+ "@tachybase/client": "1.3.23",
4
4
  "antd": "5.22.5",
5
- "@tachybase/components": "1.3.21",
6
- "@tachybase/schema": "1.3.21",
7
- "@tachybase/server": "1.3.21",
8
- "@tachybase/utils": "1.3.21",
5
+ "@tachybase/schema": "1.3.43",
6
+ "@tego/client": "1.3.43",
7
+ "@tego/server": "1.3.43",
9
8
  "react-i18next": "15.2.0",
10
- "@tachybase/actions": "1.3.21",
11
- "axios": "1.7.7",
12
- "@tachybase/database": "1.3.21"
9
+ "axios": "1.7.7"
13
10
  };
@@ -1 +1 @@
1
- {"name":"docxtemplater","version":"3.55.8","author":"Edgar Hipp","description":"Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line","contributors":[{"name":"Edgar Hipp"}],"main":"js/docxtemplater.js","keywords":["docx","pptx","templates","template","templater","templating","report","xlsx","generation","generate","generator","microsoft office","microsoft word","microsoft powerpoint","microsoft excel","create","make","Office Open XML","creator"],"types":"./js/docxtemplater.d.ts","repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"dependencies":{"@xmldom/xmldom":"^0.9.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@babel/cli":"^7.26.4","@babel/core":"^7.26.0","@babel/eslint-parser":"^7.25.9","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.26.0","@stryker-mutator/core":"^8.7.1","@stryker-mutator/mocha-runner":"^8.7.1","angular-expressions":"^1.4.3","babel-loader":"^9.2.1","chai":"^4.5.0","chalk":"^5.3.0","cross-env":"^7.0.3","diff":"^7.0.0","envify":"^4.1.0","es6-promise":"^4.2.8","eslint":"^9.17.0","eslint_d":"^14.2.2","eslint-formatter-unix":"^8.40.0","eslint-plugin-import":"^2.31.0","eslint-plugin-sort-class-members":"^1.21.0","eslint-plugin-specific-sort":"file:.eslint-rules","finalhandler":"^1.3.1","globals":"^15.13.0","lodash":"^4.17.21","mkdirp":"^3.0.1","mocha":"^10.8.2","nyc":"^17.1.0","pizzip":"^3.1.7","playwright":"^1.49.1","prettier":"^3.4.2","rimraf":"^6.0.1","selenium-standalone":"^10.0.0","serve-static":"^1.15.0","stryker-cli":"^1.0.2","tsd":"^0.31.2","updtr":"^4.1.0","webpack":"^5.97.1","webpack-cli":"^5.1.4"},"license":"MIT","engines":{"node":">=0.10"},"scripts":{"profile":"bash ./profile.bash","preversion":"bash ./preversion.bash","check-casing":"bash ./check-casing.bash","compile":"npm run convertto:es5","browserify:test":"cross-env FILE=test webpack","browserify:lib":"webpack","browserify:min":"cross-env MIN=true webpack","updtr":"updtr --exclude chai mocha","browserify":"npm run browserify:test && npm run browserify:lib && npm run browserify:min","convertto:es5":"rimraf js -rf && mkdirp js && npm run babel && cp es6/*.ts js","convertto:es5:watch":"npm run babel -- --watch","test:coverage":"nyc --reporter=html --reporter=text mocha -- es6/tests/index.js","prettier":"prettier --cache --list-different \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","prettier:fix":"prettier --cache --write \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","lint":"eslint_d . --cache && bash ./check-casing.bash && npm run prettier && shfmt -l *.bash","lint:fix":"npm run prettier:fix && bash ./check-casing.bash && eslint_d . --cache && shfmt -l -w *.bash","test:chrome":"cross-env BROWSER=CHROME bash ./webdriver.bash","test:firefox":"cross-env BROWSER=FIREFOX bash ./webdriver.bash","test:browser":"bash ./webdriver.bash","babel":"babel es6 --out-dir js","mocha":"mocha --full-trace --check-leaks js/tests/index.js","test:es6":"mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-fixtures":"cross-env UPDATE=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-snapshots":"cross-env WRITE_SNAPSHOTS=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:fast":"cross-env FAST=true mocha --full-trace --check-leaks es6/tests/index.js","test:watch":"cross-env FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js","test:es6:slow":"cross-env FAST= mocha --full-trace --check-leaks es6/tests/index.js","test":"npm run convertto:es5 && npm run mocha","test:es5":"npm test","test:typings":"cp es6/*.ts js && cp es6/*.ts . && tsd .","test:mutations":"cross-env SPEED_TEST=no stryker run","memorytest":"npm run compile && node --max-old-space-size=8000 js/memory-test.js","verifypublishsize":"bash ./verifypublishsize.bash"},"tsd":{"compilerOptions":{"lib":["DOM"]}},"_lastModified":"2025-07-25T05:52:47.994Z"}
1
+ {"name":"docxtemplater","version":"3.55.8","author":"Edgar Hipp","description":"Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line","contributors":[{"name":"Edgar Hipp"}],"main":"js/docxtemplater.js","keywords":["docx","pptx","templates","template","templater","templating","report","xlsx","generation","generate","generator","microsoft office","microsoft word","microsoft powerpoint","microsoft excel","create","make","Office Open XML","creator"],"types":"./js/docxtemplater.d.ts","repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"dependencies":{"@xmldom/xmldom":"^0.9.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@babel/cli":"^7.26.4","@babel/core":"^7.26.0","@babel/eslint-parser":"^7.25.9","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.26.0","@stryker-mutator/core":"^8.7.1","@stryker-mutator/mocha-runner":"^8.7.1","angular-expressions":"^1.4.3","babel-loader":"^9.2.1","chai":"^4.5.0","chalk":"^5.3.0","cross-env":"^7.0.3","diff":"^7.0.0","envify":"^4.1.0","es6-promise":"^4.2.8","eslint":"^9.17.0","eslint_d":"^14.2.2","eslint-formatter-unix":"^8.40.0","eslint-plugin-import":"^2.31.0","eslint-plugin-sort-class-members":"^1.21.0","eslint-plugin-specific-sort":"file:.eslint-rules","finalhandler":"^1.3.1","globals":"^15.13.0","lodash":"^4.17.21","mkdirp":"^3.0.1","mocha":"^10.8.2","nyc":"^17.1.0","pizzip":"^3.1.7","playwright":"^1.49.1","prettier":"^3.4.2","rimraf":"^6.0.1","selenium-standalone":"^10.0.0","serve-static":"^1.15.0","stryker-cli":"^1.0.2","tsd":"^0.31.2","updtr":"^4.1.0","webpack":"^5.97.1","webpack-cli":"^5.1.4"},"license":"MIT","engines":{"node":">=0.10"},"scripts":{"profile":"bash ./profile.bash","preversion":"bash ./preversion.bash","check-casing":"bash ./check-casing.bash","compile":"npm run convertto:es5","browserify:test":"cross-env FILE=test webpack","browserify:lib":"webpack","browserify:min":"cross-env MIN=true webpack","updtr":"updtr --exclude chai mocha","browserify":"npm run browserify:test && npm run browserify:lib && npm run browserify:min","convertto:es5":"rimraf js -rf && mkdirp js && npm run babel && cp es6/*.ts js","convertto:es5:watch":"npm run babel -- --watch","test:coverage":"nyc --reporter=html --reporter=text mocha -- es6/tests/index.js","prettier":"prettier --cache --list-different \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","prettier:fix":"prettier --cache --write \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","lint":"eslint_d . --cache && bash ./check-casing.bash && npm run prettier && shfmt -l *.bash","lint:fix":"npm run prettier:fix && bash ./check-casing.bash && eslint_d . --cache && shfmt -l -w *.bash","test:chrome":"cross-env BROWSER=CHROME bash ./webdriver.bash","test:firefox":"cross-env BROWSER=FIREFOX bash ./webdriver.bash","test:browser":"bash ./webdriver.bash","babel":"babel es6 --out-dir js","mocha":"mocha --full-trace --check-leaks js/tests/index.js","test:es6":"mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-fixtures":"cross-env UPDATE=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-snapshots":"cross-env WRITE_SNAPSHOTS=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:fast":"cross-env FAST=true mocha --full-trace --check-leaks es6/tests/index.js","test:watch":"cross-env FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js","test:es6:slow":"cross-env FAST= mocha --full-trace --check-leaks es6/tests/index.js","test":"npm run convertto:es5 && npm run mocha","test:es5":"npm test","test:typings":"cp es6/*.ts js && cp es6/*.ts . && tsd .","test:mutations":"cross-env SPEED_TEST=no stryker run","memorytest":"npm run compile && node --max-old-space-size=8000 js/memory-test.js","verifypublishsize":"bash ./verifypublishsize.bash"},"tsd":{"compilerOptions":{"lib":["DOM"]}},"_lastModified":"2025-08-02T21:29:14.751Z"}
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@8.3.2/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@8.3.2/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../uuid@8.3.2/node_modules/uuid/dist/bin/uuid" "$@"
@@ -1 +1 @@
1
- {"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-07-25T05:52:52.076Z"}
1
+ {"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-08-02T21:29:19.170Z"}
@@ -1 +1 @@
1
- {"name":"pizzip","version":"3.1.7","author":"Edgar Hipp","description":"Create, read and edit .zip files synchronously with Javascript","scripts":{"lint:fix":"npm run prettier:fix && npm run eslint:fix","eslint:fix":"eslint --cache 'es6/**/*.js' --fix","prettier:fix":"prettier --cache --write '*.js' 'es6/**/*.js' 'test/test.js' test/node.js 'utils/*.js' 'utils/es6/**/*.js'","browserify:lib":"webpack","babel":"babel es6 --out-dir js","babel:watch":"npm run babel -- --watch","build":"npm run browserify:lib && npm run browserify:lib:min","browserify:lib:min":"cross-env MIN=true webpack","preversion":"npm run babel && npm run build && npm test && npm run utils:build && cp utils/dist/* dist && npm run test:typings","test":"mocha test/test.js","test:watch":"mocha test/test.js --watch","test:typings":"cp es6/*.ts js && tsd js && tsd utils","utils:build":"cd utils && cross-env MIN=true ../node_modules/.bin/webpack && ../node_modules/.bin/webpack && IE=true cross-env MIN=true ../node_modules/.bin/webpack && IE=true ../node_modules/.bin/webpack"},"contributors":[{"name":"Stuart Knightley"},{"name":"Franz Buchinger"},{"name":"António Afonso"},{"name":"David Duponchel"},{"name":"yiminghe"},{"name":"Edgar Hipp"}],"main":"./js/index.js","repository":{"type":"git","url":"https://github.com/open-xml-templating/pizzip"},"keywords":["zip","deflate","inflate"],"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/eslint-parser":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.8","acorn":"^8.11.3","babel-loader":"^9.1.3","chai":"^4.3.7","cross-env":"^7.0.3","eslint":"^8.56.0","eslint_d":"^13.1.2","eslint-plugin-import":"^2.29.1","mocha":"^10.2.0","prettier":"^3.2.4","tsd":"^0.30.4","webpack":"^5.89.0","webpack-cli":"^5.1.4"},"dependencies":{"pako":"^2.1.0"},"license":"(MIT OR GPL-3.0)","_lastModified":"2025-07-25T05:52:52.455Z"}
1
+ {"name":"pizzip","version":"3.1.7","author":"Edgar Hipp","description":"Create, read and edit .zip files synchronously with Javascript","scripts":{"lint:fix":"npm run prettier:fix && npm run eslint:fix","eslint:fix":"eslint --cache 'es6/**/*.js' --fix","prettier:fix":"prettier --cache --write '*.js' 'es6/**/*.js' 'test/test.js' test/node.js 'utils/*.js' 'utils/es6/**/*.js'","browserify:lib":"webpack","babel":"babel es6 --out-dir js","babel:watch":"npm run babel -- --watch","build":"npm run browserify:lib && npm run browserify:lib:min","browserify:lib:min":"cross-env MIN=true webpack","preversion":"npm run babel && npm run build && npm test && npm run utils:build && cp utils/dist/* dist && npm run test:typings","test":"mocha test/test.js","test:watch":"mocha test/test.js --watch","test:typings":"cp es6/*.ts js && tsd js && tsd utils","utils:build":"cd utils && cross-env MIN=true ../node_modules/.bin/webpack && ../node_modules/.bin/webpack && IE=true cross-env MIN=true ../node_modules/.bin/webpack && IE=true ../node_modules/.bin/webpack"},"contributors":[{"name":"Stuart Knightley"},{"name":"Franz Buchinger"},{"name":"António Afonso"},{"name":"David Duponchel"},{"name":"yiminghe"},{"name":"Edgar Hipp"}],"main":"./js/index.js","repository":{"type":"git","url":"https://github.com/open-xml-templating/pizzip"},"keywords":["zip","deflate","inflate"],"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/eslint-parser":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.8","acorn":"^8.11.3","babel-loader":"^9.1.3","chai":"^4.3.7","cross-env":"^7.0.3","eslint":"^8.56.0","eslint_d":"^13.1.2","eslint-plugin-import":"^2.29.1","mocha":"^10.2.0","prettier":"^3.2.4","tsd":"^0.30.4","webpack":"^5.89.0","webpack-cli":"^5.1.4"},"dependencies":{"pako":"^2.1.0"},"license":"(MIT OR GPL-3.0)","_lastModified":"2025-08-02T21:29:19.586Z"}
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" "$@"
@@ -1 +1 @@
1
- {"name":"tencentcloud-sdk-nodejs","version":"4.0.996","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0","uuid":"^9.0.1"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@types/uuid":"^9.0.8","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-07-25T05:52:58.473Z"}
1
+ {"name":"tencentcloud-sdk-nodejs","version":"4.0.996","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0","uuid":"^9.0.1"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@types/uuid":"^9.0.8","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-08-02T21:29:25.987Z"}
@@ -1,3 +1,3 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare function convertToWord(context: Context, next: Next): Promise<void>;
3
3
  export declare function convertToExcel(context: Context, next: Next): Promise<void>;
@@ -31,8 +31,8 @@ __export(fileConvert_exports, {
31
31
  convertToWord: () => convertToWord
32
32
  });
33
33
  module.exports = __toCommonJS(fileConvert_exports);
34
- var import_fs = __toESM(require("fs"));
35
- var import_util = require("util");
34
+ var import_node_fs = __toESM(require("node:fs"));
35
+ var import_node_util = require("node:util");
36
36
  var import_axios = __toESM(require("axios"));
37
37
  var import_docxtemplater = __toESM(require("docxtemplater"));
38
38
  var import_exceljs = __toESM(require("exceljs"));
@@ -50,7 +50,7 @@ async function getTemplateContent(template) {
50
50
  const response = await import_axios.default.get(template, { responseType: "arraybuffer" });
51
51
  return Buffer.from(response.data);
52
52
  } else {
53
- return await (0, import_util.promisify)(import_fs.default.readFile)(template);
53
+ return await (0, import_node_util.promisify)(import_node_fs.default.readFile)(template);
54
54
  }
55
55
  }
56
56
  async function convertToWord(context, next) {
@@ -63,7 +63,7 @@ async function convertToWord(context, next) {
63
63
  doc.render(data);
64
64
  const buffer = doc.getZip().generate({ type: "nodebuffer" });
65
65
  if (saveType === "file") {
66
- import_fs.default.writeFileSync(fileName, buffer);
66
+ import_node_fs.default.writeFileSync(fileName, buffer);
67
67
  } else {
68
68
  context.body = buffer;
69
69
  }
@@ -1,2 +1,2 @@
1
- import Application from '@tachybase/server';
1
+ import { Application } from '@tego/server';
2
2
  export declare function initActions(app: Application): void;
@@ -1,2 +1,2 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare function recognize(context: Context, next: Next): Promise<never>;
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(ocr_providers_exports, {
20
20
  default: () => ocr_providers_default
21
21
  });
22
22
  module.exports = __toCommonJS(ocr_providers_exports);
23
- var import_database = require("@tachybase/database");
24
- var ocr_providers_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var ocr_providers_default = (0, import_server.defineCollection)({
25
25
  name: "ocr_providers",
26
26
  dumpRules: {
27
27
  group: "third-party"
@@ -1,5 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
2
- import { Registry } from '@tachybase/utils';
1
+ import { Plugin, Registry } from '@tego/server';
3
2
  import { Provider } from './providers/Provider';
4
3
  export declare class PluginOcrConvert extends Plugin {
5
4
  providers: Registry<typeof Provider>;
@@ -21,14 +21,13 @@ __export(plugin_exports, {
21
21
  default: () => plugin_default
22
22
  });
23
23
  module.exports = __toCommonJS(plugin_exports);
24
- var import_server = require("@tachybase/server");
25
- var import_utils = require("@tachybase/utils");
24
+ var import_server = require("@tego/server");
26
25
  var import_actions = require("./actions");
27
26
  var import_providers = require("./providers");
28
27
  class PluginOcrConvert extends import_server.Plugin {
29
28
  constructor() {
30
29
  super(...arguments);
31
- this.providers = new import_utils.Registry();
30
+ this.providers = new import_server.Registry();
32
31
  }
33
32
  async install() {
34
33
  }
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  import Plugin from '../plugin';
3
3
  export interface OcrResult {
4
4
  text: string;
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  import { OcrResult, Provider } from './Provider';
3
3
  /**
4
4
  * 腾讯云 OCR 服务提供商
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-ocr-convert",
3
3
  "displayName": "OCR Conversion Plugin",
4
- "version": "1.3.21",
4
+ "version": "1.3.23",
5
5
  "description": "OCR Conversion Plugin",
6
6
  "keywords": [
7
7
  "System management"
@@ -9,27 +9,22 @@
9
9
  "main": "dist/server/index.js",
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
+ "@tachybase/schema": "^1.3.43",
13
+ "@tachybase/test": "^1.3.43",
14
+ "@tego/client": "^1.3.43",
15
+ "@tego/server": "^1.3.43",
12
16
  "@vercel/ncc": "0.38.3",
13
17
  "antd": "5.22.5",
14
18
  "axios": "1.7.7",
15
19
  "dayjs": "1.11.13",
16
20
  "docxtemplater": "^3.55.8",
17
21
  "exceljs": "^4.4.0",
18
- "fs-extra": "11.3.0",
19
- "pizzip": "^3.0.7",
20
- "react": "~18.3.1",
21
- "react-i18next": "^15.2.0",
22
+ "fs-extra": "^11.3.0",
23
+ "pizzip": "^3.1.7",
24
+ "react": "18.3.1",
25
+ "react-i18next": "15.2.0",
22
26
  "tencentcloud-sdk-nodejs": "^4.0.996",
23
- "@tachybase/client": "1.3.21",
24
- "@tachybase/utils": "1.3.21",
25
- "@tachybase/schema": "1.3.21"
26
- },
27
- "peerDependencies": {
28
- "@tachybase/actions": "1.3.21",
29
- "@tachybase/components": "1.3.21",
30
- "@tachybase/server": "1.3.21",
31
- "@tachybase/database": "1.3.21",
32
- "@tachybase/test": "1.3.21"
27
+ "@tachybase/client": "1.3.23"
33
28
  },
34
29
  "description.zh-CN": "OCR 转换插件",
35
30
  "displayName.zh-CN": "OCR 转换"