@danikokonn/yarik-frontend-lib 2.0.49-test12 → 2.0.49-test14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChD;
|
|
1
|
+
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChD;AAkED,QAAA,MAAM,gBAAgB,GAAI,cAAc,aAAa,sBAqBpD,CAAC;AAEF,eAAO,MAAM,kBAAkB;6BAlGlB,MAAM,WACN,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAC5D,IAAI;CAkGR,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -35,6 +35,14 @@ const SnackBarProviderUtilities = ({ children }) => {
|
|
|
35
35
|
} }, children));
|
|
36
36
|
};
|
|
37
37
|
const SnackBarProvider = ({ children }) => {
|
|
38
|
+
// Debug: log which React copy is used and what children contains at render time
|
|
39
|
+
try {
|
|
40
|
+
const R = React;
|
|
41
|
+
console.log("SnackBarProvider render. React.version:", R.version, "children (raw):", children, "isValidElement:", R.isValidElement?.(children));
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
console.log("SnackBarProvider debug log failed:", e);
|
|
45
|
+
}
|
|
38
46
|
return (React.createElement(SnackbarProvider, { maxSnack: 5, autoHideDuration: 5000, preventDuplicate: true },
|
|
39
47
|
React.createElement(SnackBarProviderUtilities, null, children)));
|
|
40
48
|
};
|