@davi-ai/retorik-framework 2.0.0 → 2.0.2
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 +39 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -748,7 +748,7 @@ const $938bb59f49c318a8$export$d80fe84b82195dbd = {
|
|
|
748
748
|
conversationUser: '#FFF',
|
|
749
749
|
conversationBot: '#2C2C2C',
|
|
750
750
|
backgroundUser: (0, $adb8114d28dbbc13$export$c0da64553318f2cb).secondary,
|
|
751
|
-
backgroundBot: '#
|
|
751
|
+
backgroundBot: '#F0F0F0'
|
|
752
752
|
}
|
|
753
753
|
},
|
|
754
754
|
vocalMode: {
|
|
@@ -861,7 +861,7 @@ const $938bb59f49c318a8$export$1196b7bf97f3d16c = {
|
|
|
861
861
|
conversationUser: '#FFF',
|
|
862
862
|
conversationBot: '#2C2C2C',
|
|
863
863
|
backgroundUser: (0, $adb8114d28dbbc13$export$c0da64553318f2cb).secondary,
|
|
864
|
-
backgroundBot: '#
|
|
864
|
+
backgroundBot: '#F0F0F0'
|
|
865
865
|
}
|
|
866
866
|
},
|
|
867
867
|
vocalMode: {
|
|
@@ -4551,7 +4551,7 @@ var $c54ebc4ba0100ff1$export$2e2bcd8739ae039 = $c54ebc4ba0100ff1$var$activityMid
|
|
|
4551
4551
|
|
|
4552
4552
|
|
|
4553
4553
|
var $dbfedf7e8087b1ae$exports = {};
|
|
4554
|
-
$dbfedf7e8087b1ae$exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"2.0.
|
|
4554
|
+
$dbfedf7e8087b1ae$exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"2.0.2\",\"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\",\"includeNodeModules\":{\"@testing-library/jest-dom\":false,\"@testing-library/react\":false,\"@testing-library/react-hooks\":false,\"@testing-library/user-event\":false,\"eslint\":false,\"eslint-config-prettier\":false,\"eslint-config-standard\":false,\"eslint-config-standard-react\":false,\"eslint-plugin-import\":false,\"eslint-plugin-node\":false,\"eslint-plugin-prettier\":false,\"eslint-plugin-promise\":false,\"eslint-plugin-react\":false,\"eslint-plugin-standard\":false,\"jest-junit\":false,\"npm-run-all\":false,\"parcel\":false,\"prettier\":false,\"raw-loader\":false,\"react-docgen-typescript-plugin\":false,\"react-scripts\":false,\"react-test-renderer\":false,\"tailwindcss\":false,\"typescript\":false}},\"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\"},\"peerDependencies\":{\"react\":\"18.3.1\",\"react-dom\":\"18.3.1\"},\"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.0.1\",\"@testing-library/react-hooks\":\"8.0.1\",\"@testing-library/user-event\":\"14.5.2\",\"@types/jest\":\"^27.5.1\",\"@types/leaflet\":\"^1.8.0\",\"@types/node\":\"^12.12.38\",\"@types/react\":\"18.3.12\",\"@types/react-dom\":\"18.3.1\",\"@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\":\"^2.9.0\",\"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\",\"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\":\"^18\",\"react-docgen-typescript-plugin\":\"^1.0.5\",\"react-dom\":\"18.3.1\",\"react-scripts\":\"5.0.1\",\"react-test-renderer\":\"^18.3.1\",\"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\":\"2.0.0\",\"@davi-ai/react-bodyengine-three\":\"1.0.0\",\"@davi-ai/retorik-weather\":\"1.0.1\",\"@davi-ai/speechmarkdown-davi-js\":\"1.0.6\",\"@davi-ai/web-speech-cognitive-services-davi\":\"2.0.9\",\"@fluentui/react\":\"^8.103.3\",\"@lottiefiles/react-lottie-player\":\"^3.4.1\",\"@opentelemetry/api\":\"^1.4.1\",\"@opentelemetry/exporter-trace-otlp-http\":\"^0.41.0\",\"@opentelemetry/resources\":\"^1.15.0\",\"@opentelemetry/sdk-trace-web\":\"^1.15.0\",\"@opentelemetry/semantic-conventions\":\"^1.15.0\",\"@react-spring/types\":\"^9.7.3\",\"@react-spring/web\":\"^9.7.3\",\"@react-three/drei\":\"^9.106.0\",\"@swc/helpers\":\"^0.5.0\",\"@types/geojson\":\"^7946.0.10\",\"@types/jsdom\":\"^16.2.14\",\"@use-gesture/react\":\"^10.2.15\",\"adaptivecards\":\"3.0.1\",\"botframework-directlinejs\":\"^0.15.5\",\"classnames\":\"^2.3.1\",\"detect-gpu\":\"^5.0.70\",\"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\":\"^4.1.0\",\"react-pdf\":\"7.7.1\",\"react-shadow\":\"^20.5.0\",\"react-webcam\":\"^6.0.0\",\"swiper\":\"^8.4.5\",\"three\":\"0.174.0\",\"zustand\":\"^5.0.3\"},\"overrides\":{\"@davi-ai/web-speech-cognitive-services-davi\":\"$@davi-ai/web-speech-cognitive-services-davi\",\"three\":\"$three\",\"zustand\":\"$zustand\"}}");
|
|
4555
4555
|
|
|
4556
4556
|
|
|
4557
4557
|
const $175a29ae2121f5b7$var$initialState = {
|
|
@@ -13639,9 +13639,14 @@ const $38b409410f643bcf$export$5a544e13ad4e1fa5 = (hex)=>{
|
|
|
13639
13639
|
};
|
|
13640
13640
|
|
|
13641
13641
|
|
|
13642
|
+
|
|
13642
13643
|
const $56ebe48fa9cc7be8$var$SvgColorChanger = ({ svgUrl: svgUrl, fillColor: fillColor, height: height })=>{
|
|
13643
13644
|
const [filter, setFilter] = (0, $bZRJW$useState)();
|
|
13644
13645
|
const [hex, setHex] = (0, $bZRJW$useState)();
|
|
13646
|
+
const [ratio, setRatio] = (0, $bZRJW$useState)(1);
|
|
13647
|
+
const divRef = (0, $bZRJW$useRef)(null);
|
|
13648
|
+
const svgRef = (0, $bZRJW$useRef)(null);
|
|
13649
|
+
const dimensions = (0, $af13fbda775afd5e$export$2e2bcd8739ae039)(divRef);
|
|
13645
13650
|
const rgbToCssFilter = (r, g, b)=>{
|
|
13646
13651
|
const hex = `${(r & 0xff).toString(16).padStart(2, '0')}${(g & 0xff).toString(16).padStart(2, '0')}${(b & 0xff).toString(16).padStart(2, '0')}`;
|
|
13647
13652
|
setHex(hex);
|
|
@@ -13662,22 +13667,36 @@ const $56ebe48fa9cc7be8$var$SvgColorChanger = ({ svgUrl: svgUrl, fillColor: fill
|
|
|
13662
13667
|
}, [
|
|
13663
13668
|
fillColor
|
|
13664
13669
|
]);
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13670
|
+
const handleLoaded = ()=>{
|
|
13671
|
+
if (svgRef.current) {
|
|
13672
|
+
const box = svgRef.current.getBBox();
|
|
13673
|
+
setRatio(box.width / box.height);
|
|
13674
|
+
}
|
|
13675
|
+
};
|
|
13676
|
+
return /*#__PURE__*/ (0, $bZRJW$jsx)("div", {
|
|
13677
|
+
ref: divRef,
|
|
13678
|
+
className: "rf-h-full",
|
|
13679
|
+
style: {
|
|
13680
|
+
width: dimensions.height * ratio
|
|
13681
|
+
},
|
|
13682
|
+
children: /*#__PURE__*/ (0, $bZRJW$jsxs)("svg", {
|
|
13683
|
+
ref: svgRef,
|
|
13684
|
+
className: "rf-filter rf-w-full",
|
|
13685
|
+
height: height || '100%',
|
|
13686
|
+
children: [
|
|
13687
|
+
filter && /*#__PURE__*/ (0, $bZRJW$jsx)("defs", {
|
|
13688
|
+
children: filter
|
|
13689
|
+
}),
|
|
13690
|
+
/*#__PURE__*/ (0, $bZRJW$jsx)("image", {
|
|
13691
|
+
filter: filter ? `url(#${hex})` : undefined,
|
|
13692
|
+
onLoad: handleLoaded,
|
|
13693
|
+
href: svgUrl,
|
|
13694
|
+
x: "0",
|
|
13695
|
+
y: "0",
|
|
13696
|
+
height: height || dimensions.height
|
|
13697
|
+
})
|
|
13698
|
+
]
|
|
13699
|
+
})
|
|
13681
13700
|
});
|
|
13682
13701
|
};
|
|
13683
13702
|
var $56ebe48fa9cc7be8$export$2e2bcd8739ae039 = $56ebe48fa9cc7be8$var$SvgColorChanger;
|
|
@@ -13789,7 +13808,7 @@ const $89ab22fc7c4a3906$var$DiscoverAttachment = ({ title: title, mainButtons: m
|
|
|
13789
13808
|
}
|
|
13790
13809
|
}),
|
|
13791
13810
|
/*#__PURE__*/ (0, $bZRJW$jsx)("p", {
|
|
13792
|
-
className: "rf-
|
|
13811
|
+
className: "rf-flex rf-items-center rf-text-center rf-uppercase rf-font-bold large:rf-text-basecustom rf-text-xsl rf-overflow-wrap",
|
|
13793
13812
|
children: button.Text
|
|
13794
13813
|
})
|
|
13795
13814
|
]
|