@davi-ai/retorik-framework 5.0.0 → 5.0.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/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -36985,6 +36985,13 @@ function $edd32e16dfb9e66e$var$xj(t, e) {
|
|
|
36985
36985
|
for(e || t.push("hardbreak", "br", 0), n++; n < r && (i = t.src.charCodeAt(n), !!$edd32e16dfb9e66e$var$Bt(i));)n++;
|
|
36986
36986
|
return t.pos = n, !0;
|
|
36987
36987
|
}
|
|
36988
|
+
if (i === 32) {
|
|
36989
|
+
if (!e) {
|
|
36990
|
+
const a = t.push("text_special", "", 0);
|
|
36991
|
+
a.content = "\\", a.markup = "\\", a.info = "escape";
|
|
36992
|
+
}
|
|
36993
|
+
return t.pos = n, !0;
|
|
36994
|
+
}
|
|
36988
36995
|
let o = t.src[n];
|
|
36989
36996
|
if (i >= 55296 && i <= 56319 && n + 1 < r) {
|
|
36990
36997
|
const a = t.src.charCodeAt(n + 1);
|
|
@@ -37464,10 +37471,10 @@ function $edd32e16dfb9e66e$var$Hj(t) {
|
|
|
37464
37471
|
e.src_Cc
|
|
37465
37472
|
].join("|");
|
|
37466
37473
|
const n = "[><\uFF5C]";
|
|
37467
|
-
return e.src_pseudo_letter =
|
|
37468
|
-
|
|
37469
|
-
|
|
37470
|
-
|
|
37474
|
+
return e.src_pseudo_letter = `(?:(?!${n}|${e.src_ZPCc})${e.src_Any})`, e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = `(?:(?:(?!${e.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = `(?=$|${n}|${e.src_ZPCc})(?!${t["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${e.src_ZPCc}))`, e.src_path = `(?:[/?#](?:(?!${e.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${e.src_ZCc}|\\]).)*\\]|\\((?:(?!${e.src_ZCc}|[)]).)*\\)|\\{(?:(?!${e.src_ZCc}|[}]).)*\\}|\\"(?:(?!${e.src_ZCc}|["]).)+\\"|\\'(?:(?!${e.src_ZCc}|[']).)+\\'|\\'(?=${e.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${e.src_ZCc}|[.]|$)|` + (t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
37475
|
+
`,(?!${e.src_ZCc}|$)|;(?!${e.src_ZCc}|$)|\\!+(?!${e.src_ZCc}|[!]|$)|\\?(?!${e.src_ZCc}|[?]|$))+|\\/)?`, e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = "(?:" + e.src_xn + `|${e.src_pseudo_letter}{1,63})`, e.src_domain = "(?:" + e.src_xn + `|(?:${e.src_pseudo_letter})|(?:${e.src_pseudo_letter}(?:-|${e.src_pseudo_letter}){0,61}${e.src_pseudo_letter}))`, e.src_host = `(?:(?:(?:(?:${e.src_domain})\\.)*${e.src_domain}))`, e.tpl_host_fuzzy = "(?:" + e.src_ip4 + `|(?:(?:(?:${e.src_domain})\\.)+(?:%TLDS%)))`, e.tpl_host_no_ip_fuzzy = `(?:(?:(?:${e.src_domain})\\.)+(?:%TLDS%))`, e.src_host_strict = e.src_host + e.src_host_terminator, e.tpl_host_fuzzy_strict = e.tpl_host_fuzzy + e.src_host_terminator, e.src_host_port_strict = e.src_host + e.src_port + e.src_host_terminator, e.tpl_host_port_fuzzy_strict = e.tpl_host_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_port_no_ip_fuzzy_strict = e.tpl_host_no_ip_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${e.src_ZPCc}|>|$))`, e.tpl_email_fuzzy = `(^|${n}|"|\\(|${e.src_ZCc})(${e.src_email_name}@${e.tpl_host_fuzzy_strict})`, e.tpl_link_fuzzy = // but can start with > (markdown blockquote)
|
|
37476
|
+
`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\u{FF5C}]|${e.src_ZPCc}))((?![$+<=>^\`|\u{FF5C}])${e.tpl_host_port_fuzzy_strict}${e.src_path})`, e.tpl_link_no_ip_fuzzy = // but can start with > (markdown blockquote)
|
|
37477
|
+
`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\u{FF5C}]|${e.src_ZPCc}))((?![$+<=>^\`|\u{FF5C}])${e.tpl_host_port_no_ip_fuzzy_strict}${e.src_path})`, e;
|
|
37471
37478
|
}
|
|
37472
37479
|
function $edd32e16dfb9e66e$var$t0(t) {
|
|
37473
37480
|
return Array.prototype.slice.call(arguments, 1).forEach(function(n) {
|
|
@@ -37508,7 +37515,7 @@ const $edd32e16dfb9e66e$var$Xj = {
|
|
|
37508
37515
|
"http:": {
|
|
37509
37516
|
validate: function(t, e, n) {
|
|
37510
37517
|
const r = t.slice(e);
|
|
37511
|
-
return n.re.http || (n.re.http = new RegExp(
|
|
37518
|
+
return n.re.http || (n.re.http = new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
|
|
37512
37519
|
}
|
|
37513
37520
|
},
|
|
37514
37521
|
"https:": "http:",
|
|
@@ -37518,13 +37525,13 @@ const $edd32e16dfb9e66e$var$Xj = {
|
|
|
37518
37525
|
const r = t.slice(e);
|
|
37519
37526
|
return n.re.no_http || (n.re.no_http = new RegExp("^" + n.re.src_auth + // Don't allow single-level domains, because of false positives like '//test'
|
|
37520
37527
|
// with code comments
|
|
37521
|
-
|
|
37528
|
+
`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? e >= 3 && t[e - 3] === ":" || e >= 3 && t[e - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
|
|
37522
37529
|
}
|
|
37523
37530
|
},
|
|
37524
37531
|
"mailto:": {
|
|
37525
37532
|
validate: function(t, e, n) {
|
|
37526
37533
|
const r = t.slice(e);
|
|
37527
|
-
return n.re.mailto || (n.re.mailto = new RegExp(
|
|
37534
|
+
return n.re.mailto || (n.re.mailto = new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
|
|
37528
37535
|
}
|
|
37529
37536
|
}
|
|
37530
37537
|
}, $edd32e16dfb9e66e$var$eU = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", $edd32e16dfb9e66e$var$tU = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");
|
|
@@ -37549,7 +37556,7 @@ function $edd32e16dfb9e66e$var$Fc(t) {
|
|
|
37549
37556
|
const i = [];
|
|
37550
37557
|
t.__compiled__ = {};
|
|
37551
37558
|
function o(a, u) {
|
|
37552
|
-
throw new Error(
|
|
37559
|
+
throw new Error(`(LinkifyIt) Invalid schema "${a}": ${u}`);
|
|
37553
37560
|
}
|
|
37554
37561
|
Object.keys(t.__schemas__).forEach(function(a) {
|
|
37555
37562
|
const u = t.__schemas__[a];
|
|
@@ -37576,7 +37583,7 @@ function $edd32e16dfb9e66e$var$Fc(t) {
|
|
|
37576
37583
|
const s = Object.keys(t.__compiled__).filter(function(a) {
|
|
37577
37584
|
return a.length > 0 && t.__compiled__[a];
|
|
37578
37585
|
}).map($edd32e16dfb9e66e$var$Yj).join("|");
|
|
37579
|
-
t.re.schema_test = RegExp(
|
|
37586
|
+
t.re.schema_test = RegExp(`(^|(?!_)(?:[><\u{FF5C}]|${e.src_ZPCc}))(${s})`, "i"), t.re.schema_search = RegExp(`(^|(?!_)(?:[><\u{FF5C}]|${e.src_ZPCc}))(${s})`, "ig"), t.re.schema_at_start = RegExp(`^${t.re.schema_search.source}`, "i"), t.re.pretest = RegExp(`(${t.re.schema_test.source})|(${t.re.host_fuzzy_test.source})|@`, "i");
|
|
37580
37587
|
}
|
|
37581
37588
|
function $edd32e16dfb9e66e$var$TA(t, e, n, r) {
|
|
37582
37589
|
const i = t.slice(n, r);
|
|
@@ -37664,7 +37671,7 @@ $edd32e16dfb9e66e$var$nr.prototype.tlds = function(e, n) {
|
|
|
37664
37671
|
}).reverse(), $edd32e16dfb9e66e$var$Fc(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, $edd32e16dfb9e66e$var$Fc(this), this);
|
|
37665
37672
|
};
|
|
37666
37673
|
$edd32e16dfb9e66e$var$nr.prototype.normalize = function(e) {
|
|
37667
|
-
e.schema || (e.url =
|
|
37674
|
+
e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
|
|
37668
37675
|
};
|
|
37669
37676
|
$edd32e16dfb9e66e$var$nr.prototype.onCompile = function() {};
|
|
37670
37677
|
const $edd32e16dfb9e66e$var$Xo = 2147483647, $edd32e16dfb9e66e$var$Gr = 36, $edd32e16dfb9e66e$var$Ev = 1, $edd32e16dfb9e66e$var$tu = 26, $edd32e16dfb9e66e$var$rU = 38, $edd32e16dfb9e66e$var$iU = 700, $edd32e16dfb9e66e$var$CA = 72, $edd32e16dfb9e66e$var$_A = 128, $edd32e16dfb9e66e$var$EA = "-", $edd32e16dfb9e66e$var$oU = /^xn--/, $edd32e16dfb9e66e$var$sU = /[^\0-\x7F]/, $edd32e16dfb9e66e$var$aU = /[\x2E\u3002\uFF0E\uFF61]/g, $edd32e16dfb9e66e$var$uU = {
|
|
@@ -53734,7 +53741,7 @@ var $71c613e2e831c34c$export$d4b4ca0ba30ae29c = /*#__PURE__*/ function(TraceType
|
|
|
53734
53741
|
});
|
|
53735
53742
|
|
|
53736
53743
|
parcelRegister("93cl9", function(module, exports) {
|
|
53737
|
-
module.exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"5.0.
|
|
53744
|
+
module.exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"5.0.1\",\"homepage\":\".\",\"description\":\"Retorik Framework package\",\"author\":\"DAVI\",\"license\":\"MIT\",\"repository\":\"none\",\"main\":\"dist/index.js\",\"module\":\"dist/index.modern.js\",\"types\":\"dist/index.d.ts\",\"source\":\"src/index.tsx\",\"standalone\":\"standalone/index.js\",\"targets\":{\"standalone\":{\"context\":\"browser\",\"outputFormat\":\"esmodule\",\"distDir\":\"standalone\"},\"module\":{\"context\":\"browser\",\"outputFormat\":\"esmodule\",\"distDir\":\"dist\"}},\"engines\":{\"node\":\">=10\"},\"scripts\":{\"build\":\"parcel build\",\"start\":\"parcel watch\",\"test\":\"jest --env=jsdom --reporters=jest-junit\",\"test-console\":\"jest --env=jsdom\",\"test-update-snapshots\":\"jest --env=jsdom --updateSnapshot\",\"test-coverage-console\":\"jest --env=jsdom --reporters=jest-junit --coverage\",\"test-coverage\":\"jest --env=jsdom --reporters=jest-junit --coverage --coverageReporters=cobertura\",\"report\":\"npx parcel build src/index.tsx --reporter @parcel/reporter-bundle-analyzer\",\"credentials\":\"vsts-npm-auth -config .npmrc -force\"},\"peerDependencies\":{\"react\":\"^19.1.0\",\"react-dom\":\"^19.1.0\"},\"devDependencies\":{\"@babel/core\":\"^7.19.1\",\"@babel/plugin-proposal-decorators\":\"^7.24.7\",\"@babel/plugin-proposal-private-property-in-object\":\"^7.21.11\",\"@babel/preset-env\":\"^7.25.4\",\"@babel/preset-react\":\"^7.24.7\",\"@babel/preset-typescript\":\"^7.24.7\",\"@babel/runtime\":\"^7.23.8\",\"@parcel/packager-ts\":\"^2.13.2\",\"@parcel/reporter-bundle-analyzer\":\"^2.13.2\",\"@parcel/reporter-sourcemap-visualiser\":\"^2.13.2\",\"@parcel/transformer-inline-string\":\"^2.13.2\",\"@parcel/transformer-typescript-types\":\"^2.13.2\",\"@parcel/validator-eslint\":\"^2.13.2\",\"@parcel/validator-typescript\":\"^2.13.2\",\"@testing-library/dom\":\"^10.4.0\",\"@testing-library/jest-dom\":\"6.5.0\",\"@testing-library/react\":\"16.3.2\",\"@testing-library/user-event\":\"14.5.2\",\"@types/jest\":\"^27.5.1\",\"@types/leaflet\":\"^1.8.0\",\"@types/node\":\"^12.12.38\",\"@types/react\":\"^19.1.0\",\"@types/react-dom\":\"19.1.0\",\"@types/testing-library__jest-dom\":\"^5.14.5\",\"@types/testing-library__react\":\"latest\",\"@typescript-eslint/eslint-plugin\":\"^8.19.0\",\"@typescript-eslint/parser\":\"^8.19.0\",\"autoprefixer\":\"^10.4.7\",\"babel-eslint\":\"^10.0.3\",\"babel-jest\":\"^29.7.0\",\"babel-loader\":\"^8.2.5\",\"buffer\":\"^5.7.1\",\"canvas\":\"^3.2.3\",\"cross-env\":\"^7.0.2\",\"crypto-browserify\":\"^3.12.0\",\"eslint\":\"^9.16.0\",\"eslint-config-prettier\":\"^9.1.0\",\"eslint-config-standard\":\"^17.1.0\",\"eslint-config-standard-react\":\"^13.0.0\",\"eslint-plugin-import\":\"^2.31.0\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-prettier\":\"^5.2.1\",\"eslint-plugin-promise\":\"^7.2.1\",\"eslint-plugin-react\":\"^7.37.2\",\"https-browserify\":\"^1.0.0\",\"jest\":\"^29.7.0\",\"jest-environment-jsdom\":\"^29.7.0\",\"jest-junit\":\"16.0.0\",\"npm-run-all\":\"^4.1.5\",\"parcel\":\"^2.13.2\",\"path-browserify\":\"^1.0.1\",\"postcss\":\"^8.4.14\",\"postcss-url\":\"^10.1.3\",\"prettier\":\"^2.0.4\",\"process\":\"^0.11.10\",\"punycode\":\"^1.4.1\",\"querystring-es3\":\"^0.2.1\",\"react\":\"19.1.0\",\"react-docgen-typescript-plugin\":\"^1.0.5\",\"react-dom\":\"19.1.0\",\"react-test-renderer\":\"19.1.0\",\"resize-observer-polyfill\":\"^1.5.1\",\"stream-browserify\":\"^3.0.0\",\"stream-http\":\"^3.2.0\",\"string_decoder\":\"^1.3.0\",\"tailwindcss\":\"^3.1.0\",\"typescript\":\"5.3.2\",\"url\":\"^0.11.0\",\"util\":\"^0.12.4\"},\"files\":[\"dist\"],\"dependencies\":{\"@davi-ai/body-engine-sprite\":\"^4.0.1\",\"@davi-ai/react-bodyengine-three\":\"^1.0.28\",\"@davi-ai/retorik-map\":\"5.0.1\",\"@davi-ai/retorik-weather\":\"3.0.1\",\"@davi-ai/speechmarkdown-davi-js\":\"2.0.1\",\"@davi-ai/virtual-keyboard\":\"2.0.0\",\"@davi-ai/web-speech-cognitive-services-davi\":\"3.0.0\",\"@lottiefiles/react-lottie-player\":\"^3.4.1\",\"@mediapipe/tasks-vision\":\"0.10.32\",\"@opentelemetry/api\":\"^1.9.0\",\"@opentelemetry/exporter-trace-otlp-http\":\"^0.200.0\",\"@opentelemetry/instrumentation\":\"^0.200.0\",\"@opentelemetry/instrumentation-document-load\":\"^0.45.0\",\"@opentelemetry/instrumentation-fetch\":\"^0.200.0\",\"@opentelemetry/resources\":\"^2.0.0\",\"@opentelemetry/sdk-trace-web\":\"^2.0.0\",\"@opentelemetry/semantic-conventions\":\"^1.32.0\",\"@react-spring/types\":\"10.0.3\",\"@react-spring/web\":\"10.0.3\",\"@swc/helpers\":\"^0.5.0\",\"@types/geojson\":\"^7946.0.10\",\"@types/jsdom\":\"^16.2.14\",\"@use-gesture/react\":\"^10.2.15\",\"adaptivecards\":\"3.0.5\",\"classnames\":\"^2.3.1\",\"leaflet\":\"^1.9.2\",\"markdown-it\":\"14.1.0\",\"pdfjs-dist\":\"3.11.174\",\"postcss-copy\":\"^7.1.0\",\"qrcode\":\"^1.5.1\",\"react-device-detect\":\"^2.2.3\",\"react-error-boundary\":\"^4.0.10\",\"react-leaflet\":\"^5.0.0\",\"react-pdf\":\"7.7.1\",\"react-redux\":\"^9.2.0\",\"react-shadow\":\"^20.5.0\",\"swiper\":\"12.1.4\"},\"overrides\":{\"@davi-ai/web-speech-cognitive-services-davi\":\"$@davi-ai/web-speech-cognitive-services-davi\"},\"@parcel/resolver-default\":{\"packageExports\":true}}");
|
|
53738
53745
|
|
|
53739
53746
|
});
|
|
53740
53747
|
|