corisco 1.3.2-hml → 1.3.3-hml
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/corisco.es.js +9 -5
- package/dist/corisco.umd.js +1 -1
- package/package.json +1 -1
package/dist/corisco.es.js
CHANGED
|
@@ -32,7 +32,7 @@ const _i = {
|
|
|
32
32
|
tool: "pje",
|
|
33
33
|
allowed_hosts: [
|
|
34
34
|
"/^.*pje.*\\.jus\\.br\\/pjekz\\/.*$/",
|
|
35
|
-
"
|
|
35
|
+
"/^.*localhost:[0-9]+\\/.*$/"
|
|
36
36
|
],
|
|
37
37
|
actions: [
|
|
38
38
|
{
|
|
@@ -42,7 +42,8 @@ const _i = {
|
|
|
42
42
|
loading_message: "Anexando documentos selecionados...",
|
|
43
43
|
icon_menu: "SQUARE_MOUSE_POINTER",
|
|
44
44
|
message: "EXTRACT_SELECTED_DOCUMENTS",
|
|
45
|
-
auto_capture: !1
|
|
45
|
+
auto_capture: !1,
|
|
46
|
+
metadata_capture: !1
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
name: "Processo completo",
|
|
@@ -51,7 +52,8 @@ const _i = {
|
|
|
51
52
|
loading_message: "Capturando processo completo...",
|
|
52
53
|
icon_menu: "BOOK_UP",
|
|
53
54
|
message: "EXTRACT_FULL_PROCESS",
|
|
54
|
-
auto_capture: !1
|
|
55
|
+
auto_capture: !1,
|
|
56
|
+
metadata_capture: !1
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
name: "Capturar documento visualizado",
|
|
@@ -60,7 +62,8 @@ const _i = {
|
|
|
60
62
|
loading_message: null,
|
|
61
63
|
icon_menu: null,
|
|
62
64
|
message: "EXTRACT_VISIBLE_DOCUMENT",
|
|
63
|
-
auto_capture: !0
|
|
65
|
+
auto_capture: !0,
|
|
66
|
+
metadata_capture: !1
|
|
64
67
|
},
|
|
65
68
|
{
|
|
66
69
|
name: "Capturar metadados da página",
|
|
@@ -69,7 +72,8 @@ const _i = {
|
|
|
69
72
|
loading_message: null,
|
|
70
73
|
icon_menu: null,
|
|
71
74
|
message: "EXTRACT_METADATA",
|
|
72
|
-
auto_capture: !0
|
|
75
|
+
auto_capture: !0,
|
|
76
|
+
metadata_capture: !0
|
|
73
77
|
}
|
|
74
78
|
],
|
|
75
79
|
mapping: {
|
package/dist/corisco.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Qt,Yt){typeof exports=="object"&&typeof module<"u"?module.exports=Yt():typeof define=="function"&&define.amd?define(Yt):(Qt=typeof globalThis<"u"?globalThis:Qt||self,Qt.Corisco=Yt())})(this,function(){"use strict";var Kw=Qt=>{throw TypeError(Qt)};var zy=(Qt,Yt,gt)=>Yt.has(Qt)||Kw("Cannot "+gt);var ge=(Qt,Yt,gt)=>(zy(Qt,Yt,"read from private field"),gt?gt.call(Qt):Yt.get(Qt)),Wi=(Qt,Yt,gt)=>Yt.has(Qt)?Kw("Cannot add the same private member more than once"):Yt instanceof WeakSet?Yt.add(Qt):Yt.set(Qt,gt),Nn=(Qt,Yt,gt,Kt)=>(zy(Qt,Yt,"write to private field"),Kt?Kt.call(Qt,gt):Yt.set(Qt,gt),gt),Qi=(Qt,Yt,gt)=>(zy(Qt,Yt,"access private method"),gt);var Zw=(Qt,Yt,gt,Kt)=>({set _(Ki){Nn(Qt,Yt,Ki,gt)},get _(){return ge(Qt,Yt,Kt)}});var zs,pi,ns,Ca,Lu,Ra,Da,fn,Oh,Jw,t1,zc,Or,kh;var Qt=typeof document<"u"?document.currentScript:null;const Yt={app:{name:"Corisco ChatJT",version:"1.3.0",iframe_url:"https://poc-ia.jt.jus.br/chat/"},env:"hml",ui:{panel:{min_width:420,max_width_ratio:.9}},max_pdf_size:10,action_map:[{tool:"pje",allowed_hosts:["/^.*pje.*\\.jus\\.br\\/pjekz\\/.*$/","
|
|
1
|
+
(function(Qt,Yt){typeof exports=="object"&&typeof module<"u"?module.exports=Yt():typeof define=="function"&&define.amd?define(Yt):(Qt=typeof globalThis<"u"?globalThis:Qt||self,Qt.Corisco=Yt())})(this,function(){"use strict";var Kw=Qt=>{throw TypeError(Qt)};var zy=(Qt,Yt,gt)=>Yt.has(Qt)||Kw("Cannot "+gt);var ge=(Qt,Yt,gt)=>(zy(Qt,Yt,"read from private field"),gt?gt.call(Qt):Yt.get(Qt)),Wi=(Qt,Yt,gt)=>Yt.has(Qt)?Kw("Cannot add the same private member more than once"):Yt instanceof WeakSet?Yt.add(Qt):Yt.set(Qt,gt),Nn=(Qt,Yt,gt,Kt)=>(zy(Qt,Yt,"write to private field"),Kt?Kt.call(Qt,gt):Yt.set(Qt,gt),gt),Qi=(Qt,Yt,gt)=>(zy(Qt,Yt,"access private method"),gt);var Zw=(Qt,Yt,gt,Kt)=>({set _(Ki){Nn(Qt,Yt,Ki,gt)},get _(){return ge(Qt,Yt,Kt)}});var zs,pi,ns,Ca,Lu,Ra,Da,fn,Oh,Jw,t1,zc,Or,kh;var Qt=typeof document<"u"?document.currentScript:null;const Yt={app:{name:"Corisco ChatJT",version:"1.3.0",iframe_url:"https://poc-ia.jt.jus.br/chat/"},env:"hml",ui:{panel:{min_width:420,max_width_ratio:.9}},max_pdf_size:10,action_map:[{tool:"pje",allowed_hosts:["/^.*pje.*\\.jus\\.br\\/pjekz\\/.*$/","/^.*localhost:[0-9]+\\/.*$/"],actions:[{name:"Anexar selecionados",description:"Anexa os processos selecionados da timeline do PJe",job:"pje-docs-selecionados",loading_message:"Anexando documentos selecionados...",icon_menu:"SQUARE_MOUSE_POINTER",message:"EXTRACT_SELECTED_DOCUMENTS",auto_capture:!1,metadata_capture:!1},{name:"Processo completo",description:"Extrai o processo completo do PJe",job:"pje-processo-completo",loading_message:"Capturando processo completo...",icon_menu:"BOOK_UP",message:"EXTRACT_FULL_PROCESS",auto_capture:!1,metadata_capture:!1},{name:"Capturar documento visualizado",description:"Faz a captura automática do documento visualizado no PJe",job:"pje-doc-visualizado",loading_message:null,icon_menu:null,message:"EXTRACT_VISIBLE_DOCUMENT",auto_capture:!0,metadata_capture:!1},{name:"Capturar metadados da página",description:"Faz a captura automática dos metadados da página no PJe",job:"pje-metadados",loading_message:null,icon_menu:null,message:"EXTRACT_METADATA",auto_capture:!0,metadata_capture:!0}],mapping:{"/processo/\\d+/detalhe":["pje-processo-completo","pje-docs-selecionados","pje-doc-visualizado","pje-metadados"],"/processo/\\d+/detalhe/peticao/\\d+":["pje-processo-completo","pje-docs-selecionados","pje-doc-visualizado","pje-metadados"],"/processo/\\d+/documento/\\d+/conteudo":["pje-doc-visualizado","pje-metadados"],"/processo/\\d+/tarefa/\\d+/minutar":["pje-processo-completo","pje-metadados"],"/painel/global/\\d+/lista-processos":["pje-metadados"]}}]},gt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kt=globalThis,Ki="10.8.0";function Hc(){return Bc(Kt),Kt}function Bc(l){const t=l.__SENTRY__=l.__SENTRY__||{};return t.version=t.version||Ki,t[Ki]=t[Ki]||{}}function Po(l,t,i=Kt){const a=i.__SENTRY__=i.__SENTRY__||{},r=a[Ki]=a[Ki]||{};return r[l]||(r[l]=t())}const e1=["debug","info","warn","error","log","assert","trace"],n1="Sentry Logger ",Fc={};function pr(l){if(!("console"in Kt))return l();const t=Kt.console,i={},a=Object.keys(Fc);a.forEach(r=>{const c=Fc[r];i[r]=t[r],t[r]=c});try{return l()}finally{a.forEach(r=>{t[r]=i[r]})}}function i1(){Lh().enabled=!0}function s1(){Lh().enabled=!1}function Hy(){return Lh().enabled}function a1(...l){Nh("log",...l)}function r1(...l){Nh("warn",...l)}function o1(...l){Nh("error",...l)}function Nh(l,...t){gt&&Hy()&&pr(()=>{Kt.console[l](`${n1}[${l}]:`,...t)})}function Lh(){return gt?Po("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Tt={enable:i1,disable:s1,isEnabled:Hy,log:a1,warn:r1,error:o1},By=50,ba="?",Fy=/\(error: (.*)\)/,jy=/captureMessage|captureException/;function $y(...l){const t=l.sort((i,a)=>i[0]-a[0]).map(i=>i[1]);return(i,a=0,r=0)=>{const c=[],u=i.split(`
|
|
2
2
|
`);for(let h=a;h<u.length;h++){let p=u[h];p.length>1024&&(p=p.slice(0,1024));const m=Fy.test(p)?p.replace(Fy,"$1"):p;if(!m.match(/\S*Error: /)){for(const g of t){const y=g(m);if(y){c.push(y);break}}if(c.length>=By+r)break}}return c1(c.slice(r))}}function l1(l){return Array.isArray(l)?$y(...l):l}function c1(l){if(!l.length)return[];const t=Array.from(l);return/sentryWrapped/.test(jc(t).function||"")&&t.pop(),t.reverse(),jy.test(jc(t).function||"")&&(t.pop(),jy.test(jc(t).function||"")&&t.pop()),t.slice(0,By).map(i=>({...i,filename:i.filename||jc(t).filename,function:i.function||ba}))}function jc(l){return l[l.length-1]||{}}const Ih="<anonymous>";function Ms(l){try{return!l||typeof l!="function"?Ih:l.name||Ih}catch{return Ih}}function Gy(l){const t=l.exception;if(t){const i=[];try{return t.values.forEach(a=>{a.stacktrace.frames&&i.push(...a.stacktrace.frames)}),i}catch{return}}}const $c={},Vy={};function Gc(l,t){$c[l]=$c[l]||[],$c[l].push(t)}function Vc(l,t){if(!Vy[l]){Vy[l]=!0;try{t()}catch(i){gt&&Tt.error(`Error while instrumenting ${l}`,i)}}}function mr(l,t){const i=l&&$c[l];if(i)for(const a of i)try{a(t)}catch(r){gt&&Tt.error(`Error while triggering instrumentation handler.
|
|
3
3
|
Type: ${l}
|
|
4
4
|
Name: ${Ms(a)}
|