@copart/ops-tool-kit 1.12.1-alpha.19 → 1.12.1-alpha.20
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 +21 -64
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
const name$r = "@copart/ops-tool-kit";
|
|
35
|
-
const version$7 = "1.12.1-alpha.
|
|
35
|
+
const version$7 = "1.12.1-alpha.20";
|
|
36
36
|
const main$1 = "dist/ops-tool-kit.js";
|
|
37
37
|
const style = "dist/ops-tool-kit.css";
|
|
38
38
|
const files = [
|
|
@@ -25250,25 +25250,22 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
|
|
|
25250
25250
|
};
|
|
25251
25251
|
});
|
|
25252
25252
|
return _this;
|
|
25253
|
-
}
|
|
25253
|
+
} // componentWillMount() {
|
|
25254
|
+
// this.fetchRoles(this.state.selectedCountryA3code)
|
|
25255
|
+
// getRCExtensionStatus().then((response) => {
|
|
25256
|
+
// response && resetPhoneSettingsBasedOnRCStatus(response)
|
|
25257
|
+
// this.setState({
|
|
25258
|
+
// ringCentralEnabled: ringCentralEnabled(),
|
|
25259
|
+
// phoneNumber: activePhoneNumber(),
|
|
25260
|
+
// })
|
|
25261
|
+
// })
|
|
25262
|
+
// this.getActivePrinters(
|
|
25263
|
+
// this.state.selectedYardNumber,
|
|
25264
|
+
// true,
|
|
25265
|
+
// this.state.selectedCountryA3code,
|
|
25266
|
+
// )
|
|
25267
|
+
// }
|
|
25254
25268
|
_createClass$2(SettingsView, [{
|
|
25255
|
-
key: "componentWillMount",
|
|
25256
|
-
value: function componentWillMount() {
|
|
25257
|
-
this.fetchRoles(this.state.selectedCountryA3code);
|
|
25258
|
-
// getRCExtensionStatus().then((response) => {
|
|
25259
|
-
// response && resetPhoneSettingsBasedOnRCStatus(response)
|
|
25260
|
-
// this.setState({
|
|
25261
|
-
// ringCentralEnabled: ringCentralEnabled(),
|
|
25262
|
-
// phoneNumber: activePhoneNumber(),
|
|
25263
|
-
// })
|
|
25264
|
-
// })
|
|
25265
|
-
// this.getActivePrinters(
|
|
25266
|
-
// this.state.selectedYardNumber,
|
|
25267
|
-
// true,
|
|
25268
|
-
// this.state.selectedCountryA3code,
|
|
25269
|
-
// )
|
|
25270
|
-
}
|
|
25271
|
-
}, {
|
|
25272
25269
|
key: "activePrinters",
|
|
25273
25270
|
get: function get() {
|
|
25274
25271
|
return {
|
|
@@ -25286,48 +25283,7 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
|
|
|
25286
25283
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm"
|
|
25287
25284
|
}, this.props.width > 760 && /*#__PURE__*/React__default["default"].createElement(ProfileDetails, {
|
|
25288
25285
|
logout: this.props.onLogoutItemClicked
|
|
25289
|
-
})
|
|
25290
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader"
|
|
25291
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
25292
|
-
name: "gear",
|
|
25293
|
-
variant: "solid"
|
|
25294
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", null, "Settings")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25295
|
-
className: "col-1-1 utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow",
|
|
25296
|
-
"data-e2e": "LocationAndLanguageRow"
|
|
25297
|
-
}, /*#__PURE__*/React__default["default"].createElement(LanguageMenu, {
|
|
25298
|
-
value: this.state.selectedLanguage,
|
|
25299
|
-
handleChange: this.handleInputChange.selectedLanguage,
|
|
25300
|
-
selectedCountry: this.state.selectedCountry
|
|
25301
|
-
}), /*#__PURE__*/React__default["default"].createElement(YardNumberContainer, {
|
|
25302
|
-
history: this.yardsHistory,
|
|
25303
|
-
selectedYard: this.state.selectedYardNumber,
|
|
25304
|
-
handleChange: this.handleInputChange.selectedYardNumber,
|
|
25305
|
-
selectedCountry: this.state.selectedCountry
|
|
25306
|
-
}), /*#__PURE__*/React__default["default"].createElement(RoleSelector$1, {
|
|
25307
|
-
roles: this.state.roles,
|
|
25308
|
-
value: this.state.selectedRole,
|
|
25309
|
-
handleChange: this.handleInputChange.selectedRole,
|
|
25310
|
-
selectedYard: this.state.selectedYardNumber,
|
|
25311
|
-
required: false
|
|
25312
|
-
}))), /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
25313
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
|
|
25314
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25315
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox",
|
|
25316
|
-
"data-e2e": "saveButton"
|
|
25317
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
|
|
25318
|
-
primary: true,
|
|
25319
|
-
type: "submit",
|
|
25320
|
-
onClick: this.saveSettings
|
|
25321
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
25322
|
-
name: "floppy-disk",
|
|
25323
|
-
variant: "regular"
|
|
25324
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
25325
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt"
|
|
25326
|
-
}, "Save"))), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25327
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner"
|
|
25328
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Spinner, {
|
|
25329
|
-
size: "60px"
|
|
25330
|
-
})));
|
|
25286
|
+
}));
|
|
25331
25287
|
}
|
|
25332
25288
|
}]);
|
|
25333
25289
|
return SettingsView;
|
|
@@ -47188,6 +47144,7 @@ var SCROLL = {
|
|
|
47188
47144
|
var NO_SCROLL = {};
|
|
47189
47145
|
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>';
|
|
47190
47146
|
var AppFrame = function AppFrame(props) {
|
|
47147
|
+
var _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3;
|
|
47191
47148
|
// Check if the child AppBar is mounted
|
|
47192
47149
|
var _useState = React.useState(false),
|
|
47193
47150
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47285,9 +47242,9 @@ var AppFrame = function AppFrame(props) {
|
|
|
47285
47242
|
transition: 'all 0.5s ease-in-out'
|
|
47286
47243
|
}
|
|
47287
47244
|
}, props.children), chatBotEnabled && /*#__PURE__*/React__default["default"].createElement(MiHelpAgent, {
|
|
47288
|
-
quickReplies: props === null || props === void 0 ? void 0 : props.quickReplies,
|
|
47289
|
-
collection: props === null || props === void 0 ? void 0 : props.collection,
|
|
47290
|
-
systemPrompt: (props === null || props === void 0 ? void 0 : props.systemPrompt) || defaultSystemPrompt
|
|
47245
|
+
quickReplies: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro = props.mihelpAgentProps) === null || _props$mihelpAgentPro === void 0 ? void 0 : _props$mihelpAgentPro.quickReplies,
|
|
47246
|
+
collection: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro2 = props.mihelpAgentProps) === null || _props$mihelpAgentPro2 === void 0 ? void 0 : _props$mihelpAgentPro2.collection,
|
|
47247
|
+
systemPrompt: (props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro3 = props.mihelpAgentProps) === null || _props$mihelpAgentPro3 === void 0 ? void 0 : _props$mihelpAgentPro3.systemPrompt) || defaultSystemPrompt
|
|
47291
47248
|
}))))));
|
|
47292
47249
|
};
|
|
47293
47250
|
AppFrame.defaultProps = {
|