@copart/ops-tool-kit 1.13.0-beta.29 → 1.13.0-beta.30
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 -10
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var ReactDOM = require('react-dom');
|
|
7
7
|
var frontEndUtils = require('@copart/front-end-utils');
|
|
8
8
|
var coreComponents = require('@copart/core-components');
|
|
9
|
+
var ReactRouterDOM = require('react-router-dom');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
12
|
|
|
@@ -45,9 +46,10 @@ function _mergeNamespaces(n, m) {
|
|
|
45
46
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
46
47
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
47
48
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
49
|
+
var ReactRouterDOM__namespace = /*#__PURE__*/_interopNamespace(ReactRouterDOM);
|
|
48
50
|
|
|
49
51
|
const name$1 = "@copart/ops-tool-kit";
|
|
50
|
-
const version$3 = "1.13.0-beta.
|
|
52
|
+
const version$3 = "1.13.0-beta.30";
|
|
51
53
|
const main$1 = "dist/ops-tool-kit.js";
|
|
52
54
|
const style = "dist/ops-tool-kit.css";
|
|
53
55
|
const files = [
|
|
@@ -69034,10 +69036,6 @@ var _excluded$1 = ["signal"];
|
|
|
69034
69036
|
var pending = new Map();
|
|
69035
69037
|
var STORAGE_REQUEST_TIMEOUT_MS = 5000;
|
|
69036
69038
|
function requestId() {
|
|
69037
|
-
// crypto.randomUUID exists only in a secure context (HTTPS / localhost).
|
|
69038
|
-
// QA/other envs served over plain HTTP would throw "crypto.randomUUID is not
|
|
69039
|
-
// a function" and crash bootstrap, so fall back to getRandomValues, then Math.random.
|
|
69040
|
-
// These ids are only used to correlate postMessage RPCs — not for security.
|
|
69041
69039
|
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
|
|
69042
69040
|
return crypto.randomUUID();
|
|
69043
69041
|
}
|
|
@@ -71268,14 +71266,14 @@ function resolveLoadUriTarget(eventProps) {
|
|
|
71268
71266
|
/**
|
|
71269
71267
|
* True when the host app uses react-router-dom v6+ (`useNavigate` present, `useHistory` removed).
|
|
71270
71268
|
*/
|
|
71271
|
-
var IS_REACT_ROUTER_V6 = typeof
|
|
71269
|
+
var IS_REACT_ROUTER_V6 = typeof ReactRouterDOM__namespace.useNavigate === 'function' && typeof ReactRouterDOM__namespace.useHistory !== 'function';
|
|
71272
71270
|
function normalizeNavigateTarget(to) {
|
|
71273
71271
|
if (typeof to === 'string') return normalizeIframePath(to);
|
|
71274
71272
|
return to;
|
|
71275
71273
|
}
|
|
71276
71274
|
function useRouterNavigationV5() {
|
|
71277
|
-
var history =
|
|
71278
|
-
var location =
|
|
71275
|
+
var history = ReactRouterDOM__namespace.useHistory();
|
|
71276
|
+
var location = ReactRouterDOM__namespace.useLocation();
|
|
71279
71277
|
var navigate = React.useCallback(function (to, options) {
|
|
71280
71278
|
if (typeof to === 'number') {
|
|
71281
71279
|
history.go(to);
|
|
@@ -71290,8 +71288,8 @@ function useRouterNavigationV5() {
|
|
|
71290
71288
|
};
|
|
71291
71289
|
}
|
|
71292
71290
|
function useRouterNavigationV6() {
|
|
71293
|
-
var navigateFn =
|
|
71294
|
-
var location =
|
|
71291
|
+
var navigateFn = ReactRouterDOM__namespace.useNavigate();
|
|
71292
|
+
var location = ReactRouterDOM__namespace.useLocation();
|
|
71295
71293
|
var navigate = React.useCallback(function (to, options) {
|
|
71296
71294
|
if (typeof to === 'number') {
|
|
71297
71295
|
navigateFn(to);
|