@davi-ai/retorik-framework 3.0.1 → 3.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 +30 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +30 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3234,7 +3234,7 @@ var $c8770452d727244a$export$2e2bcd8739ae039 = $c8770452d727244a$var$activityMid
|
|
|
3234
3234
|
|
|
3235
3235
|
|
|
3236
3236
|
var $696df75883117d57$exports = {};
|
|
3237
|
-
$696df75883117d57$exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"3.0.
|
|
3237
|
+
$696df75883117d57$exports = JSON.parse("{\"name\":\"@davi-ai/retorik-framework\",\"version\":\"3.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\":\"3.0.0\",\"@davi-ai/react-bodyengine-three\":\"1.0.0\",\"@davi-ai/retorik-weather\":\"2.0.0\",\"@davi-ai/speechmarkdown-davi-js\":\"1.0.6\",\"@davi-ai/web-speech-cognitive-services-davi\":\"2.0.10\",\"@fluentui/react\":\"^8.103.3\",\"@lottiefiles/react-lottie-player\":\"^3.4.1\",\"@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\":\"^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\"},\"@parcel/resolver-default\":{\"packageExports\":true}}");
|
|
3238
3238
|
|
|
3239
3239
|
|
|
3240
3240
|
const $328a7f03b0982320$var$initialState = {
|
|
@@ -4888,7 +4888,7 @@ const $a6eac66fec2e9cc5$var$ExternalHooksHandler = ({ instanceId: instanceId })=
|
|
|
4888
4888
|
document.addEventListener('retorik_call_loaderClosed', ()=>eventDispatch('retorik_loaderClosed', loaderClosedRef.current));
|
|
4889
4889
|
document.addEventListener('retorik_call_configuration', ()=>eventDispatch('retorik_configuration', configurationRef.current));
|
|
4890
4890
|
document.addEventListener('retorik_call_sendBoxRef', ()=>eventDispatch('retorik_sendBoxRef', sendBoxRefRef.current));
|
|
4891
|
-
document.addEventListener('retorik_call_isUsedOnBorne', ()=>eventDispatch('
|
|
4891
|
+
document.addEventListener('retorik_call_isUsedOnBorne', ()=>eventDispatch('retorik_isUsedOnBorne', isUsedOnBorneRef.current));
|
|
4892
4892
|
document.addEventListener('retorik_call_inputHintBehaviour', ()=>eventDispatch('retorik_inputHintBehaviour', inputHintBehaviourRef.current));
|
|
4893
4893
|
document.addEventListener('retorik_call_enableDocumentPrinting', ()=>eventDispatch('retorik_enableDocumentPrinting', enableDocumentPrintingRef.current));
|
|
4894
4894
|
document.addEventListener('retorik_call_conversationId', ()=>eventDispatch('retorik_conversationId', conversationIdRef.current));
|
|
@@ -4913,7 +4913,7 @@ const $a6eac66fec2e9cc5$var$ExternalHooksHandler = ({ instanceId: instanceId })=
|
|
|
4913
4913
|
document.removeEventListener('retorik_call_loaderClosed', ()=>eventDispatch('retorik_loaderClosed', loaderClosedRef.current));
|
|
4914
4914
|
document.removeEventListener('retorik_call_configuration', ()=>eventDispatch('retorik_configuration', configurationRef.current));
|
|
4915
4915
|
document.removeEventListener('retorik_call_sendBoxRef', ()=>eventDispatch('retorik_sendBoxRef', sendBoxRefRef.current));
|
|
4916
|
-
document.removeEventListener('retorik_call_isUsedOnBorne', ()=>eventDispatch('
|
|
4916
|
+
document.removeEventListener('retorik_call_isUsedOnBorne', ()=>eventDispatch('retorik_isUsedOnBorne', isUsedOnBorneRef.current));
|
|
4917
4917
|
document.removeEventListener('retorik_call_inputHintBehaviour', ()=>eventDispatch('retorik_inputHintBehaviour', inputHintBehaviourRef.current));
|
|
4918
4918
|
document.removeEventListener('retorik_call_enableDocumentPrinting', ()=>eventDispatch('retorik_enableDocumentPrinting', enableDocumentPrintingRef.current));
|
|
4919
4919
|
document.removeEventListener('retorik_call_conversationId', ()=>eventDispatch('retorik_conversationId', conversationIdRef.current));
|
|
@@ -23013,6 +23013,7 @@ var $248ff5c2ef55c790$export$2e2bcd8739ae039 = $248ff5c2ef55c790$var$Conversatio
|
|
|
23013
23013
|
|
|
23014
23014
|
|
|
23015
23015
|
|
|
23016
|
+
|
|
23016
23017
|
|
|
23017
23018
|
|
|
23018
23019
|
const $5cac5449d46d743a$var$Version = ({ isMobile: isMobile })=>{
|
|
@@ -23041,6 +23042,7 @@ var $5cac5449d46d743a$export$2e2bcd8739ae039 = $5cac5449d46d743a$var$Version;
|
|
|
23041
23042
|
|
|
23042
23043
|
|
|
23043
23044
|
|
|
23045
|
+
|
|
23044
23046
|
|
|
23045
23047
|
const $341aa389b3b9926d$var$springEnterDuration = 500;
|
|
23046
23048
|
const $341aa389b3b9926d$var$springQrcodeDuration = 500;
|
|
@@ -23252,6 +23254,8 @@ const $545d9948d3db0229$var$Dashboard = ({ toggleDashboard: toggleDashboard })=>
|
|
|
23252
23254
|
const translation = (0, $0db969f5e79ce01b$export$6650dace022cfacc)((state)=>state.currentTranslations);
|
|
23253
23255
|
const menus = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.configuration.menu);
|
|
23254
23256
|
const position = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.configuration.position);
|
|
23257
|
+
const isUsedOnBorne = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.configuration.isUsedOnBorne);
|
|
23258
|
+
const askForKioskParametersOpening = (0, $2793f2455cec0982$export$77e4cc5334565f28)((state)=>state.actions.askForKioskParametersOpening);
|
|
23255
23259
|
const sendEvent = (0, $328a7f03b0982320$export$adc771f45cf9b273)((state)=>state.actions.sendEvent);
|
|
23256
23260
|
const [justify, setJustify] = (0, $dWhh5$react.useState)();
|
|
23257
23261
|
const [opacityStyle, setOpacityStyle] = (0, $dWhh5$react.useState)('');
|
|
@@ -23275,6 +23279,12 @@ const $545d9948d3db0229$var$Dashboard = ({ toggleDashboard: toggleDashboard })=>
|
|
|
23275
23279
|
setOpacityStyle(`linear-gradient(to top, black ${100 - percentage}%, transparent 100%)`);
|
|
23276
23280
|
}
|
|
23277
23281
|
};
|
|
23282
|
+
/**
|
|
23283
|
+
* Called in borne mode to open retorik kiosk parameters
|
|
23284
|
+
*/ const handleClickParameters = ()=>{
|
|
23285
|
+
askForKioskParametersOpening();
|
|
23286
|
+
toggleDashboard === null || toggleDashboard === void 0 ? void 0 : toggleDashboard();
|
|
23287
|
+
};
|
|
23278
23288
|
return /*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsxs)((0, $9d2c3b646d8954b6$export$2e2bcd8739ae039), {
|
|
23279
23289
|
onClick: toggleDashboard,
|
|
23280
23290
|
children: [
|
|
@@ -23326,7 +23336,21 @@ const $545d9948d3db0229$var$Dashboard = ({ toggleDashboard: toggleDashboard })=>
|
|
|
23326
23336
|
})
|
|
23327
23337
|
]
|
|
23328
23338
|
}),
|
|
23329
|
-
/*#__PURE__*/ (0, $dWhh5$reactjsxruntime.
|
|
23339
|
+
isUsedOnBorne ? /*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsxs)("button", {
|
|
23340
|
+
// @ts-ignore
|
|
23341
|
+
part: "retorik-framework-parameters",
|
|
23342
|
+
className: "rf-absolute rf-left-4 rf-bottom-4 rf-h-8 rf-flex rf-flex-row rf-items-center",
|
|
23343
|
+
onClick: handleClickParameters,
|
|
23344
|
+
children: [
|
|
23345
|
+
/*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsx)((0, $30f87cc156c8645d$export$2e2bcd8739ae039), {
|
|
23346
|
+
color: "#A4A7AF"
|
|
23347
|
+
}),
|
|
23348
|
+
/*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsx)("p", {
|
|
23349
|
+
className: "rf-uppercase rf-ml-1 rf-text-xsl rf-text-[#A4A7AF]",
|
|
23350
|
+
children: translation.common.parameters
|
|
23351
|
+
})
|
|
23352
|
+
]
|
|
23353
|
+
}) : /*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsx)((0, $5cac5449d46d743a$export$2e2bcd8739ae039), {})
|
|
23330
23354
|
]
|
|
23331
23355
|
}),
|
|
23332
23356
|
/*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsx)((0, $e30af8373281dae5$export$2e2bcd8739ae039), {
|
|
@@ -25156,13 +25180,13 @@ var $d2c0480827389113$export$2e2bcd8739ae039 = $d2c0480827389113$var$ExtendIcon;
|
|
|
25156
25180
|
|
|
25157
25181
|
const $6c3069cd619942d1$var$HomeView = ({ externalComponents: externalComponents })=>{
|
|
25158
25182
|
const openWidget = (0, $a7af629b10128503$export$d95eb9b67812311f)((state)=>state.actions.openWidget);
|
|
25159
|
-
const displayChangeLayoutButton = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.configuration.allowSwitchLayout);
|
|
25160
25183
|
const currentLayout = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.currentLayout);
|
|
25161
25184
|
const loaderClosed = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.loaderClosed);
|
|
25162
25185
|
const configuration = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.configuration);
|
|
25163
25186
|
const mode = (0, $df401eb9a10f9e0e$export$f299240efcda25a2)((state)=>state.mode);
|
|
25164
25187
|
const isMobile = (0, $6acc5d637072b42e$export$d13b2577cb75f2ad)((state)=>state.isMobile);
|
|
25165
25188
|
const isBorne = (0, $6acc5d637072b42e$export$d13b2577cb75f2ad)((state)=>state.isBorne);
|
|
25189
|
+
const currentDeviceType = (0, $6acc5d637072b42e$export$d13b2577cb75f2ad)((state)=>state.currentDeviceType);
|
|
25166
25190
|
const configurations = (0, $6acc5d637072b42e$export$d13b2577cb75f2ad)((state)=>state.configurations);
|
|
25167
25191
|
const setDisplayControls = (0, $6acc5d637072b42e$export$d13b2577cb75f2ad)((state)=>state.actions.setDisplayControls);
|
|
25168
25192
|
const setLayout = (0, $1d4f8108de9ab73a$export$bd22554f31e5f96f)((state)=>state.actions.setLayout);
|
|
@@ -25180,7 +25204,7 @@ const $6c3069cd619942d1$var$HomeView = ({ externalComponents: externalComponents
|
|
|
25180
25204
|
};
|
|
25181
25205
|
return /*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsxs)((0, ($parcel$interopDefault($dWhh5$react))).Fragment, {
|
|
25182
25206
|
children: [
|
|
25183
|
-
!!
|
|
25207
|
+
!!configuration.allowSwitchLayout && currentLayout !== (0, $71c613e2e831c34c$export$a31c5a03aaeee5f).widget && (currentDeviceType === (0, $71c613e2e831c34c$export$ec1e04e4e5ef8233).widgetLandscape || currentDeviceType === (0, $71c613e2e831c34c$export$ec1e04e4e5ef8233).widgetBorne) && /*#__PURE__*/ (0, $dWhh5$reactjsxruntime.jsx)("button", {
|
|
25184
25208
|
onClick: extendButtonHandler,
|
|
25185
25209
|
"aria-label": "Minimize",
|
|
25186
25210
|
className: "rf-absolute rf-z-exitwidget rf-flex rf-top-1 rf-p-1 rf-bg-truewhite rf-border rf-border-trueblack rf-rounded-lg rf-right-10",
|