@erpsquad/common 1.10.46 → 1.10.47
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/chunks/{CssBaseline-FmVm1H4u.js → CssBaseline-BtFw_t3c.js} +2 -2
- package/dist/chunks/{CssBaseline-FmVm1H4u.js.map → CssBaseline-BtFw_t3c.js.map} +1 -1
- package/dist/chunks/{CssBaseline-BE_MymKw.esm.js → CssBaseline-DD305XvW.esm.js} +2 -2
- package/dist/chunks/{CssBaseline-BE_MymKw.esm.js.map → CssBaseline-DD305XvW.esm.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-Ci9MeAMt.js → ERPUIProvider-B0UbTkZY.js} +7 -7
- package/dist/chunks/{ERPUIProvider-Ci9MeAMt.js.map → ERPUIProvider-B0UbTkZY.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-BWRPHdFg.esm.js → ERPUIProvider-D9YB9EQO.esm.js} +7 -7
- package/dist/chunks/{ERPUIProvider-BWRPHdFg.esm.js.map → ERPUIProvider-D9YB9EQO.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-BqEDLbO8.js → android-12-switch-BxTuSbqu.js} +14 -14
- package/dist/chunks/{android-12-switch-BqEDLbO8.js.map → android-12-switch-BxTuSbqu.js.map} +1 -1
- package/dist/chunks/{android-12-switch-BfinmXsA.esm.js → android-12-switch-ROt3lCqE.esm.js} +14 -14
- package/dist/chunks/{android-12-switch-BfinmXsA.esm.js.map → android-12-switch-ROt3lCqE.esm.js.map} +1 -1
- package/dist/chunks/api-config-DXwDMFn-.js.map +1 -1
- package/dist/chunks/api-config-GOys-syK.esm.js.map +1 -1
- package/dist/chunks/{appbar-BSMZjpV0.esm.js → appbar-B_raEww7.esm.js} +26 -20
- package/dist/chunks/appbar-B_raEww7.esm.js.map +1 -0
- package/dist/chunks/{appbar-xFkckGFf.js → appbar-CUtGg9P0.js} +26 -20
- package/dist/chunks/appbar-CUtGg9P0.js.map +1 -0
- package/dist/chunks/{arrow-up-BedcrblB.esm.js → arrow-up-BDkqlEB_.esm.js} +2 -2
- package/dist/chunks/{arrow-up-BedcrblB.esm.js.map → arrow-up-BDkqlEB_.esm.js.map} +1 -1
- package/dist/chunks/{arrow-up-BlxSDanH.js → arrow-up-Dg35LjrD.js} +2 -2
- package/dist/chunks/{arrow-up-BlxSDanH.js.map → arrow-up-Dg35LjrD.js.map} +1 -1
- package/dist/chunks/{dashboard-DjSjDk1y.js → dashboard-Bya4KFzH.js} +2 -2
- package/dist/chunks/{dashboard-DjSjDk1y.js.map → dashboard-Bya4KFzH.js.map} +1 -1
- package/dist/chunks/{dashboard-Dtei0Khz.esm.js → dashboard-DRNW-CTT.esm.js} +2 -2
- package/dist/chunks/{dashboard-Dtei0Khz.esm.js.map → dashboard-DRNW-CTT.esm.js.map} +1 -1
- package/dist/chunks/{default-data-C0z6QDJm.js → default-data-C2a_a9U_.js} +17 -13
- package/dist/chunks/default-data-C2a_a9U_.js.map +1 -0
- package/dist/chunks/{default-data-96R_HsDl.esm.js → default-data-Dc-m3LiT.esm.js} +17 -13
- package/dist/chunks/default-data-Dc-m3LiT.esm.js.map +1 -0
- package/dist/chunks/{document-BY4ol6iQ.esm.js → document-rki7DMqA.esm.js} +2 -2
- package/dist/chunks/{document-BY4ol6iQ.esm.js.map → document-rki7DMqA.esm.js.map} +1 -1
- package/dist/chunks/{document-DYtlibq0.js → document-zJ0CptA2.js} +2 -2
- package/dist/chunks/{document-DYtlibq0.js.map → document-zJ0CptA2.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-C54MoBJ3.js → form-builder-deconversion-B36OjpvZ.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-C54MoBJ3.js.map → form-builder-deconversion-B36OjpvZ.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-Baw1wL3s.esm.js → form-builder-deconversion-BN3pnLiO.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-Baw1wL3s.esm.js.map → form-builder-deconversion-BN3pnLiO.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-C__xZPZT.esm.js → fullScreen-BZAR9ggK.esm.js} +3 -3
- package/dist/chunks/{fullScreen-C__xZPZT.esm.js.map → fullScreen-BZAR9ggK.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-B_Geael8.js → fullScreen-CuPeq163.js} +3 -3
- package/dist/chunks/{fullScreen-B_Geael8.js.map → fullScreen-CuPeq163.js.map} +1 -1
- package/dist/chunks/{identifier-BB05HqNB.esm.js → identifier-0SZUhw_A.esm.js} +67 -74
- package/dist/chunks/{identifier-BB05HqNB.esm.js.map → identifier-0SZUhw_A.esm.js.map} +1 -1
- package/dist/chunks/{identifier-BSjnVNXF.js → identifier-CaTy7Osd.js} +67 -74
- package/dist/chunks/{identifier-BSjnVNXF.js.map → identifier-CaTy7Osd.js.map} +1 -1
- package/dist/chunks/{languageContext-Ce2XfiCS.esm.js → languageContext-DvTW1NGX.esm.js} +2 -2
- package/dist/chunks/{languageContext-Ce2XfiCS.esm.js.map → languageContext-DvTW1NGX.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-CJJhc5zH.js → languageContext-Dw4OL1Wm.js} +2 -2
- package/dist/chunks/{languageContext-CJJhc5zH.js.map → languageContext-Dw4OL1Wm.js.map} +1 -1
- package/dist/chunks/{migration-utils-FtL5LhHH.esm.js → migration-utils-DOGCUMgN.esm.js} +3 -3
- package/dist/chunks/{migration-utils-FtL5LhHH.esm.js.map → migration-utils-DOGCUMgN.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-D7nOMiB2.js → migration-utils-DqTbHFlq.js} +3 -3
- package/dist/chunks/{migration-utils-D7nOMiB2.js.map → migration-utils-DqTbHFlq.js.map} +1 -1
- package/dist/chunks/{notification-BIkuYKbC.esm.js → notification-_WEc_EZI.esm.js} +2 -2
- package/dist/chunks/{notification-BIkuYKbC.esm.js.map → notification-_WEc_EZI.esm.js.map} +1 -1
- package/dist/chunks/{notification-Bq2o82vD.js → notification-vWmhkTRo.js} +2 -2
- package/dist/chunks/{notification-Bq2o82vD.js.map → notification-vWmhkTRo.js.map} +1 -1
- package/dist/chunks/{page-context-BqSErzQl.esm.js → page-context-BajNyjXY.esm.js} +3 -3
- package/dist/chunks/{page-context-BqSErzQl.esm.js.map → page-context-BajNyjXY.esm.js.map} +1 -1
- package/dist/chunks/{page-context-D2UXRKyx.js → page-context-DNHWacPV.js} +3 -3
- package/dist/chunks/{page-context-D2UXRKyx.js.map → page-context-DNHWacPV.js.map} +1 -1
- package/dist/chunks/{reducer-ByNHeaYX.esm.js → reducer-BqCQLXEh.esm.js} +9 -7
- package/dist/chunks/{reducer-ByNHeaYX.esm.js.map → reducer-BqCQLXEh.esm.js.map} +1 -1
- package/dist/chunks/{reducer-avNgc-SK.js → reducer-o59TdR-2.js} +5 -3
- package/dist/chunks/{reducer-avNgc-SK.js.map → reducer-o59TdR-2.js.map} +1 -1
- package/dist/chunks/{sidebar-Cz0RyL7a.js → sidebar-BAHwteHA.js} +7 -7
- package/dist/chunks/{sidebar-Cz0RyL7a.js.map → sidebar-BAHwteHA.js.map} +1 -1
- package/dist/chunks/{sidebar-CRkbZ2CT.esm.js → sidebar-CINlCsBR.esm.js} +7 -7
- package/dist/chunks/{sidebar-CRkbZ2CT.esm.js.map → sidebar-CINlCsBR.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-Daaf6HJ2.js → sidebarScreen-B8w0eg8t.js} +4 -4
- package/dist/chunks/{sidebarScreen-Daaf6HJ2.js.map → sidebarScreen-B8w0eg8t.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-CD5QcF2c.esm.js → sidebarScreen-DzP4Fy1-.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-CD5QcF2c.esm.js.map → sidebarScreen-DzP4Fy1-.esm.js.map} +1 -1
- package/dist/chunks/{store-Vqut1O2z.js → store-B6aznScx.js} +2 -2
- package/dist/chunks/{store-Vqut1O2z.js.map → store-B6aznScx.js.map} +1 -1
- package/dist/chunks/{store-Cih4OLuI.esm.js → store-DY2m64HU.esm.js} +2 -2
- package/dist/chunks/{store-Cih4OLuI.esm.js.map → store-DY2m64HU.esm.js.map} +1 -1
- package/dist/chunks/{theme-impl-DYj6u2Uj.esm.js → theme-impl-BPCaapgh.esm.js} +3 -3
- package/dist/chunks/{theme-impl-DYj6u2Uj.esm.js.map → theme-impl-BPCaapgh.esm.js.map} +1 -1
- package/dist/chunks/{theme-impl-B2IGIgWY.js → theme-impl-VqZAJjv7.js} +3 -3
- package/dist/chunks/{theme-impl-B2IGIgWY.js.map → theme-impl-VqZAJjv7.js.map} +1 -1
- package/dist/chunks/{themeSelector-BWS26_36.js → themeSelector-B1UMQOVw.js} +2 -2
- package/dist/chunks/{themeSelector-BWS26_36.js.map → themeSelector-B1UMQOVw.js.map} +1 -1
- package/dist/chunks/{themeSelector-Beuf11Zn.esm.js → themeSelector-CRTwkja4.esm.js} +2 -2
- package/dist/chunks/{themeSelector-Beuf11Zn.esm.js.map → themeSelector-CRTwkja4.esm.js.map} +1 -1
- package/dist/chunks/{tick-CUJtwriw.esm.js → tick-wc8bi2Fu.esm.js} +2 -2
- package/dist/chunks/{tick-CUJtwriw.esm.js.map → tick-wc8bi2Fu.esm.js.map} +1 -1
- package/dist/chunks/{tick-CVDvHe2s.js → tick-wgixJNsN.js} +2 -2
- package/dist/chunks/{tick-CVDvHe2s.js.map → tick-wgixJNsN.js.map} +1 -1
- package/dist/chunks/{toggle-switch-C-D3Pb1x.esm.js → toggle-switch-BEmygLUi.esm.js} +2 -2
- package/dist/chunks/{toggle-switch-C-D3Pb1x.esm.js.map → toggle-switch-BEmygLUi.esm.js.map} +1 -1
- package/dist/chunks/{toggle-switch-B4pMpNzd.js → toggle-switch-DxtcAFXc.js} +2 -2
- package/dist/chunks/{toggle-switch-B4pMpNzd.js.map → toggle-switch-DxtcAFXc.js.map} +1 -1
- package/dist/chunks/{trash-ihDGOeyw.esm.js → trash-UdiORwWn.esm.js} +2 -2
- package/dist/chunks/{trash-ihDGOeyw.esm.js.map → trash-UdiORwWn.esm.js.map} +1 -1
- package/dist/chunks/{trash-BuynwhTG.js → trash-q79H5Q4U.js} +2 -2
- package/dist/chunks/{trash-BuynwhTG.js.map → trash-q79H5Q4U.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-BVnBZ9TP.js → uom-field-wrapper-870_KnFK.js} +20 -17
- package/dist/chunks/uom-field-wrapper-870_KnFK.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-CacwGww9.esm.js → uom-field-wrapper-DC1mK4-2.esm.js} +20 -17
- package/dist/chunks/uom-field-wrapper-DC1mK4-2.esm.js.map +1 -0
- package/dist/chunks/{useAccountSetting-DTnGA_ej.js → useAccountSetting-BolqaAW4.js} +2 -2
- package/dist/chunks/{useAccountSetting-DTnGA_ej.js.map → useAccountSetting-BolqaAW4.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-DIJxoz5K.esm.js → useAccountSetting-BqPkM0WQ.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-DIJxoz5K.esm.js.map → useAccountSetting-BqPkM0WQ.esm.js.map} +1 -1
- package/dist/chunks/{useAdditionalDiscountAutoCalc-Cj2TFEUf.esm.js → useAdditionalDiscountAutoCalc-BGR4dtRV.esm.js} +3 -3
- package/dist/chunks/{useAdditionalDiscountAutoCalc-Cj2TFEUf.esm.js.map → useAdditionalDiscountAutoCalc-BGR4dtRV.esm.js.map} +1 -1
- package/dist/chunks/{useAdditionalDiscountAutoCalc-BnoUyFAt.js → useAdditionalDiscountAutoCalc-Blm3Dv9D.js} +3 -3
- package/dist/chunks/{useAdditionalDiscountAutoCalc-BnoUyFAt.js.map → useAdditionalDiscountAutoCalc-Blm3Dv9D.js.map} +1 -1
- package/dist/chunks/{useAuth-BfXZw2ZG.js → useAuth-BxOLRIR3.js} +3 -3
- package/dist/chunks/{useAuth-BfXZw2ZG.js.map → useAuth-BxOLRIR3.js.map} +1 -1
- package/dist/chunks/{useAuth-DI1ZdQmL.esm.js → useAuth-Cc85zx55.esm.js} +3 -3
- package/dist/chunks/{useAuth-DI1ZdQmL.esm.js.map → useAuth-Cc85zx55.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-DkFW3jmt.js → useLangauge-CH6Qmk_K.js} +2 -2
- package/dist/chunks/{useLangauge-DkFW3jmt.js.map → useLangauge-CH6Qmk_K.js.map} +1 -1
- package/dist/chunks/{useLangauge-HfM5K9im.esm.js → useLangauge-MakL7mDD.esm.js} +2 -2
- package/dist/chunks/{useLangauge-HfM5K9im.esm.js.map → useLangauge-MakL7mDD.esm.js.map} +1 -1
- package/dist/components/index.esm.js +14 -14
- package/dist/components/index.js +14 -14
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/icons/index.esm.js +7 -7
- package/dist/icons/index.js +7 -7
- package/dist/index.esm.js +28 -29
- package/dist/index.js +25 -26
- package/dist/index.js.map +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/redux/index.esm.js +2 -2
- package/dist/redux/index.js +2 -2
- package/dist/src/utils/api-config.d.ts +1 -0
- package/dist/theme/index.esm.js +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/utils/api-config.d.ts +1 -0
- package/dist/utils/index.esm.js +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/views/index.esm.js +9 -8
- package/dist/views/index.js +8 -7
- package/dist/views/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/appbar-BSMZjpV0.esm.js.map +0 -1
- package/dist/chunks/appbar-xFkckGFf.js.map +0 -1
- package/dist/chunks/default-data-96R_HsDl.esm.js.map +0 -1
- package/dist/chunks/default-data-C0z6QDJm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-BVnBZ9TP.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-CacwGww9.esm.js.map +0 -1
|
@@ -466,77 +466,70 @@ function requireReactPropTypesSecret() {
|
|
|
466
466
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
467
467
|
return ReactPropTypesSecret_1;
|
|
468
468
|
}
|
|
469
|
-
var has;
|
|
469
|
+
var has$1;
|
|
470
470
|
var hasRequiredHas;
|
|
471
471
|
function requireHas() {
|
|
472
|
-
if (hasRequiredHas) return has;
|
|
472
|
+
if (hasRequiredHas) return has$1;
|
|
473
473
|
hasRequiredHas = 1;
|
|
474
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
475
|
-
return has;
|
|
476
|
-
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
var
|
|
474
|
+
has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
475
|
+
return has$1;
|
|
476
|
+
}
|
|
477
|
+
var printWarning = function() {
|
|
478
|
+
};
|
|
479
|
+
if (process.env.NODE_ENV !== "production") {
|
|
480
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
481
|
+
var loggedTypeFailures = {};
|
|
482
|
+
var has = requireHas();
|
|
483
|
+
printWarning = function(text) {
|
|
484
|
+
var message = "Warning: " + text;
|
|
485
|
+
if (typeof console !== "undefined") {
|
|
486
|
+
console.error(message);
|
|
487
|
+
}
|
|
488
|
+
try {
|
|
489
|
+
throw new Error(message);
|
|
490
|
+
} catch (x) {
|
|
491
|
+
}
|
|
483
492
|
};
|
|
493
|
+
}
|
|
494
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
484
495
|
if (process.env.NODE_ENV !== "production") {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
try {
|
|
494
|
-
throw new Error(message);
|
|
495
|
-
} catch (x) {
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
500
|
-
if (process.env.NODE_ENV !== "production") {
|
|
501
|
-
for (var typeSpecName in typeSpecs) {
|
|
502
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
503
|
-
var error;
|
|
504
|
-
try {
|
|
505
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
506
|
-
var err = Error(
|
|
507
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
508
|
-
);
|
|
509
|
-
err.name = "Invariant Violation";
|
|
510
|
-
throw err;
|
|
511
|
-
}
|
|
512
|
-
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
513
|
-
} catch (ex) {
|
|
514
|
-
error = ex;
|
|
515
|
-
}
|
|
516
|
-
if (error && !(error instanceof Error)) {
|
|
517
|
-
printWarning(
|
|
518
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
522
|
-
loggedTypeFailures[error.message] = true;
|
|
523
|
-
var stack = getStack ? getStack() : "";
|
|
524
|
-
printWarning(
|
|
525
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
496
|
+
for (var typeSpecName in typeSpecs) {
|
|
497
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
498
|
+
var error;
|
|
499
|
+
try {
|
|
500
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
501
|
+
var err = Error(
|
|
502
|
+
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
526
503
|
);
|
|
504
|
+
err.name = "Invariant Violation";
|
|
505
|
+
throw err;
|
|
527
506
|
}
|
|
507
|
+
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
508
|
+
} catch (ex) {
|
|
509
|
+
error = ex;
|
|
510
|
+
}
|
|
511
|
+
if (error && !(error instanceof Error)) {
|
|
512
|
+
printWarning(
|
|
513
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
517
|
+
loggedTypeFailures[error.message] = true;
|
|
518
|
+
var stack = getStack ? getStack() : "";
|
|
519
|
+
printWarning(
|
|
520
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
521
|
+
);
|
|
528
522
|
}
|
|
529
523
|
}
|
|
530
524
|
}
|
|
531
525
|
}
|
|
532
|
-
checkPropTypes.resetWarningCache = function() {
|
|
533
|
-
if (process.env.NODE_ENV !== "production") {
|
|
534
|
-
loggedTypeFailures = {};
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
checkPropTypes_1 = checkPropTypes;
|
|
538
|
-
return checkPropTypes_1;
|
|
539
526
|
}
|
|
527
|
+
checkPropTypes.resetWarningCache = function() {
|
|
528
|
+
if (process.env.NODE_ENV !== "production") {
|
|
529
|
+
loggedTypeFailures = {};
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
540
533
|
var factoryWithTypeCheckers;
|
|
541
534
|
var hasRequiredFactoryWithTypeCheckers;
|
|
542
535
|
function requireFactoryWithTypeCheckers() {
|
|
@@ -545,12 +538,12 @@ function requireFactoryWithTypeCheckers() {
|
|
|
545
538
|
var ReactIs = requireReactIs();
|
|
546
539
|
var assign2 = requireObjectAssign();
|
|
547
540
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
548
|
-
var
|
|
549
|
-
var
|
|
550
|
-
var
|
|
541
|
+
var has = requireHas();
|
|
542
|
+
var checkPropTypes2 = checkPropTypes_1;
|
|
543
|
+
var printWarning2 = function() {
|
|
551
544
|
};
|
|
552
545
|
if (process.env.NODE_ENV !== "production") {
|
|
553
|
-
|
|
546
|
+
printWarning2 = function(text) {
|
|
554
547
|
var message = "Warning: " + text;
|
|
555
548
|
if (typeof console !== "undefined") {
|
|
556
549
|
console.error(message);
|
|
@@ -627,7 +620,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
627
620
|
var cacheKey = componentName + ":" + propName;
|
|
628
621
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
629
622
|
manualPropTypeWarningCount < 3) {
|
|
630
|
-
|
|
623
|
+
printWarning2(
|
|
631
624
|
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
632
625
|
);
|
|
633
626
|
manualPropTypeCallCache[cacheKey] = true;
|
|
@@ -726,11 +719,11 @@ function requireFactoryWithTypeCheckers() {
|
|
|
726
719
|
if (!Array.isArray(expectedValues)) {
|
|
727
720
|
if (process.env.NODE_ENV !== "production") {
|
|
728
721
|
if (arguments.length > 1) {
|
|
729
|
-
|
|
722
|
+
printWarning2(
|
|
730
723
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
731
724
|
);
|
|
732
725
|
} else {
|
|
733
|
-
|
|
726
|
+
printWarning2("Invalid argument supplied to oneOf, expected an array.");
|
|
734
727
|
}
|
|
735
728
|
}
|
|
736
729
|
return emptyFunctionThatReturnsNull;
|
|
@@ -764,7 +757,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
764
757
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
765
758
|
}
|
|
766
759
|
for (var key in propValue) {
|
|
767
|
-
if (
|
|
760
|
+
if (has(propValue, key)) {
|
|
768
761
|
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
769
762
|
if (error instanceof Error) {
|
|
770
763
|
return error;
|
|
@@ -777,13 +770,13 @@ function requireFactoryWithTypeCheckers() {
|
|
|
777
770
|
}
|
|
778
771
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
779
772
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
780
|
-
process.env.NODE_ENV !== "production" ?
|
|
773
|
+
process.env.NODE_ENV !== "production" ? printWarning2("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
781
774
|
return emptyFunctionThatReturnsNull;
|
|
782
775
|
}
|
|
783
776
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
784
777
|
var checker = arrayOfTypeCheckers[i];
|
|
785
778
|
if (typeof checker !== "function") {
|
|
786
|
-
|
|
779
|
+
printWarning2(
|
|
787
780
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
788
781
|
);
|
|
789
782
|
return emptyFunctionThatReturnsNull;
|
|
@@ -797,7 +790,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
797
790
|
if (checkerResult == null) {
|
|
798
791
|
return null;
|
|
799
792
|
}
|
|
800
|
-
if (checkerResult.data &&
|
|
793
|
+
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
|
801
794
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
802
795
|
}
|
|
803
796
|
}
|
|
@@ -851,7 +844,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
851
844
|
var allKeys = assign2({}, props[propName], shapeTypes);
|
|
852
845
|
for (var key in allKeys) {
|
|
853
846
|
var checker = shapeTypes[key];
|
|
854
|
-
if (
|
|
847
|
+
if (has(shapeTypes, key) && typeof checker !== "function") {
|
|
855
848
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
856
849
|
}
|
|
857
850
|
if (!checker) {
|
|
@@ -973,8 +966,8 @@ function requireFactoryWithTypeCheckers() {
|
|
|
973
966
|
}
|
|
974
967
|
return propValue.constructor.name;
|
|
975
968
|
}
|
|
976
|
-
ReactPropTypes.checkPropTypes =
|
|
977
|
-
ReactPropTypes.resetWarningCache =
|
|
969
|
+
ReactPropTypes.checkPropTypes = checkPropTypes2;
|
|
970
|
+
ReactPropTypes.resetWarningCache = checkPropTypes2.resetWarningCache;
|
|
978
971
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
979
972
|
return ReactPropTypes;
|
|
980
973
|
};
|
|
@@ -4264,4 +4257,4 @@ exports.styled = styled;
|
|
|
4264
4257
|
exports.styledEngine = styledEngine;
|
|
4265
4258
|
exports.unstable_createStyleFunctionSx = unstable_createStyleFunctionSx;
|
|
4266
4259
|
exports.useDefaultProps = useDefaultProps;
|
|
4267
|
-
//# sourceMappingURL=identifier-
|
|
4260
|
+
//# sourceMappingURL=identifier-CaTy7Osd.js.map
|