@gen3/frontend 0.10.72 → 0.10.73
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/cjs/index.js +13 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +4 -5
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/index.d.ts +2 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +2 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/esm/index.js +14 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
package/dist/cjs/index.js
CHANGED
|
@@ -14309,28 +14309,24 @@ const createMantineTheme = (fonts, colors)=>{
|
|
|
14309
14309
|
* Gen3Provider wraps around the entire app and provides general configurations
|
|
14310
14310
|
* for the whole website like color scheme, icons, fonts, and sessionConfigs like
|
|
14311
14311
|
* inactivity limits for session timeouts.
|
|
14312
|
-
*/ const Gen3Provider = ({
|
|
14312
|
+
*/ const Gen3Provider = ({ icons, sessionConfig, modalsConfig, children })=>{
|
|
14313
14313
|
React.useEffect(()=>{
|
|
14314
14314
|
icons.forEach((i)=>react.addCollection(i));
|
|
14315
14315
|
}, [
|
|
14316
14316
|
icons
|
|
14317
14317
|
]);
|
|
14318
|
-
const theme = createMantineTheme(fonts, colors);
|
|
14319
14318
|
return /*#__PURE__*/ jsxRuntime.jsx(core.CoreProvider, {
|
|
14320
|
-
children: /*#__PURE__*/ jsxRuntime.
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
/*#__PURE__*/ jsxRuntime.jsx(
|
|
14326
|
-
|
|
14327
|
-
children:
|
|
14328
|
-
config: modalsConfig,
|
|
14329
|
-
children: children
|
|
14330
|
-
})
|
|
14319
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs(modals.ModalsProvider, {
|
|
14320
|
+
children: [
|
|
14321
|
+
/*#__PURE__*/ jsxRuntime.jsx(notifications.Notifications, {}),
|
|
14322
|
+
/*#__PURE__*/ jsxRuntime.jsx(SessionProvider, {
|
|
14323
|
+
...sessionConfig,
|
|
14324
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(Gen3ModalsProvider, {
|
|
14325
|
+
config: modalsConfig,
|
|
14326
|
+
children: children
|
|
14331
14327
|
})
|
|
14332
|
-
|
|
14333
|
-
|
|
14328
|
+
})
|
|
14329
|
+
]
|
|
14334
14330
|
})
|
|
14335
14331
|
});
|
|
14336
14332
|
};
|
|
@@ -16936,7 +16932,6 @@ const ALLOWED_IMAGE_TYPES = [
|
|
|
16936
16932
|
'image/png',
|
|
16937
16933
|
'image/svg+xml'
|
|
16938
16934
|
];
|
|
16939
|
-
const MAX_HISTORY = 50;
|
|
16940
16935
|
const AnalysisCardEditor = ()=>{
|
|
16941
16936
|
// Enhanced state management with history
|
|
16942
16937
|
const [history, setHistory] = React.useState({
|
|
@@ -16967,7 +16962,7 @@ const AnalysisCardEditor = ()=>{
|
|
|
16967
16962
|
past: [
|
|
16968
16963
|
...prev.past,
|
|
16969
16964
|
prev.present
|
|
16970
|
-
].slice(-
|
|
16965
|
+
].slice(-50),
|
|
16971
16966
|
present: newPresent,
|
|
16972
16967
|
future: []
|
|
16973
16968
|
}));
|
|
@@ -20148,6 +20143,7 @@ exports.convertMinutesToMilliseconds = convertMinutesToMilliseconds;
|
|
|
20148
20143
|
exports.convertSecondsToMilliseconds = convertSecondsToMilliseconds;
|
|
20149
20144
|
exports.create10ColorAccessibleContrast = create10ColorAccessibleContrast;
|
|
20150
20145
|
exports.create10ColorPallet = create10ColorPallet;
|
|
20146
|
+
exports.createMantineTheme = createMantineTheme;
|
|
20151
20147
|
exports.credentialsLogin = credentialsLogin;
|
|
20152
20148
|
exports.credentialsLogout = credentialsLogout;
|
|
20153
20149
|
exports.extractObjectKey = extractObjectKey;
|