@copart/ops-tool-kit 1.13.0 → 1.13.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/ops-tool-kit.js +8 -2
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -49,7 +49,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
49
49
|
var ReactRouterDOM__namespace = /*#__PURE__*/_interopNamespace(ReactRouterDOM);
|
|
50
50
|
|
|
51
51
|
const name$1 = "@copart/ops-tool-kit";
|
|
52
|
-
const version$3 = "1.13.
|
|
52
|
+
const version$3 = "1.13.1";
|
|
53
53
|
const main$1 = "dist/ops-tool-kit.js";
|
|
54
54
|
const style = "dist/ops-tool-kit.css";
|
|
55
55
|
const files = [
|
|
@@ -65423,7 +65423,7 @@ var SCROLL = {
|
|
|
65423
65423
|
var NO_SCROLL = {};
|
|
65424
65424
|
var defaultSystemPrompt = 'Format all of the subsequent AI responses in valid HTML5, without markdown code blocks or any additional formatting, ensuring that the response consists only of raw HTML tags. Format your response in this structure:<html> <p> Your answer here </p> </html>';
|
|
65425
65425
|
var AppFrame = function AppFrame(props) {
|
|
65426
|
-
var _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4, _props$mihelpAgentPro5, _props$mihelpAgentPro6, _props$mihelpAgentPro7, _props$mihelpAgentPro8;
|
|
65426
|
+
var _props$location, _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4, _props$mihelpAgentPro5, _props$mihelpAgentPro6, _props$mihelpAgentPro7, _props$mihelpAgentPro8;
|
|
65427
65427
|
// Set window.toolkitEnv synchronously so it's available for child components that mount immediately
|
|
65428
65428
|
if (props.env) {
|
|
65429
65429
|
window.toolkitEnv = props.env;
|
|
@@ -65519,6 +65519,12 @@ var AppFrame = function AppFrame(props) {
|
|
|
65519
65519
|
}
|
|
65520
65520
|
setChatBotEnableStatus();
|
|
65521
65521
|
}, [props.env]);
|
|
65522
|
+
|
|
65523
|
+
// Old iframe apps keep the same env on SPA nav, so env-only would leave a stale
|
|
65524
|
+
// chat icon. Recompute from the current path (tile enableChatBot / core vs embedded).
|
|
65525
|
+
React.useEffect(function () {
|
|
65526
|
+
setChatBotEnableStatus();
|
|
65527
|
+
}, [(_props$location = props.location) === null || _props$location === void 0 ? void 0 : _props$location.pathname]);
|
|
65522
65528
|
var authGuardProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
65523
65529
|
setAppBarMounted: setAppBarMounted
|
|
65524
65530
|
});
|