sixseconds-modules 1.6.144 → 1.6.146

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/index.es.js CHANGED
@@ -11,7 +11,7 @@
11
11
  }
12
12
  })();
13
13
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
14
- import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, styled, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment } from "@mui/material";
14
+ import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, styled, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, unstable_ClassNameGenerator } from "@mui/material";
15
15
  import * as React from "react";
16
16
  import React__default, { useRef, useEffect, useState, useCallback, useMemo, useLayoutEffect, createContext, forwardRef, createElement, useContext, Component } from "react";
17
17
  import { CacheProvider } from "@emotion/react";
@@ -14732,7 +14732,7 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
14732
14732
  ]
14733
14733
  }
14734
14734
  ),
14735
- state.toggles.userProfile && /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setState), children: /* @__PURE__ */ jsxs(Box, { className: "profile", children: [
14735
+ state.toggles.userProfile && /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setState), children: /* @__PURE__ */ jsxs(Box, { className: "sixseconds-profile profile", children: [
14736
14736
  /* @__PURE__ */ jsxs(
14737
14737
  Stack$1,
14738
14738
  {
@@ -15002,7 +15002,7 @@ const Header$1 = ({
15002
15002
  state.toggles.appMenus && Boolean(userData?.appAccess?.length) && /* @__PURE__ */ jsx(
15003
15003
  Box,
15004
15004
  {
15005
- className: "profile headerMenu",
15005
+ className: "sixseconds-headerMenu profile headerMenu",
15006
15006
  sx: {
15007
15007
  width: "400px !important",
15008
15008
  p: 1,
@@ -16268,9 +16268,22 @@ var createCache = function createCache2(options) {
16268
16268
  cache.sheet.hydrate(nodesToHydrate);
16269
16269
  return cache;
16270
16270
  };
16271
- const sixCache = createCache({ key: "sixseconds", prepend: false });
16271
+ unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
16272
16272
  function MuiProvider({ children }) {
16273
- return /* @__PURE__ */ jsx(CacheProvider, { value: sixCache, children });
16273
+ const [cache, setCache] = useState(null);
16274
+ useEffect(() => {
16275
+ if (typeof window !== "undefined") {
16276
+ const emotionCache = createCache({
16277
+ key: "sixseconds",
16278
+ prepend: false
16279
+ });
16280
+ setCache(emotionCache);
16281
+ }
16282
+ }, []);
16283
+ if (!cache) {
16284
+ return /* @__PURE__ */ jsx(Fragment, { children });
16285
+ }
16286
+ return /* @__PURE__ */ jsx(CacheProvider, { value: cache, children });
16274
16287
  }
16275
16288
  const App = () => {
16276
16289
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -16293,15 +16306,15 @@ const App = () => {
16293
16306
  ],
16294
16307
  userData: {
16295
16308
  userprofile: "",
16296
- email: "sdf",
16297
- role: "",
16298
- fullName: "sadf",
16299
- bio: "",
16300
- title: "",
16301
- certId: 1,
16302
- certProfileUrl: "",
16303
- company: "",
16304
- certBio: "",
16309
+ email: "sanskar@digimon.in",
16310
+ role: "Super Admin",
16311
+ fullName: "Sanskar Digimon",
16312
+ bio: "Hi, I am Sanskar from Digimon Technologies. We are working in the field of Emotion AI. We build products that help in understanding human emotions using AI. We aim to make the world a better place by leveraging the power of technology to enhance emotional intelligence.",
16313
+ title: "Software Engineer",
16314
+ certId: 101,
16315
+ certProfileUrl: "https://cert.6seconds.org/certprofile/101/sanskar-digimon",
16316
+ company: "Digimon Technologies",
16317
+ certBio: "Hi, I am Sanskar from Digimon Technologies. We are working in the field of Emotion AI. We build products that help in understanding human emotions using AI. We aim to make the world a better place by leveraging the power of technology to enhance emotional intelligence.",
16305
16318
  certOfferToHelp: "",
16306
16319
  appName: APP_NAMES.sso,
16307
16320
  appAccess: [
@@ -16331,7 +16344,7 @@ const App = () => {
16331
16344
  }
16332
16345
  ],
16333
16346
  certification: [],
16334
- country: "",
16347
+ country: "India",
16335
16348
  languages: [],
16336
16349
  areaOfWork: [],
16337
16350
  linkedInUrl: "",
@@ -16342,7 +16355,7 @@ const App = () => {
16342
16355
  id: 1,
16343
16356
  label: "Chinese",
16344
16357
  value: "zh",
16345
- flag: ""
16358
+ flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277277.png"
16346
16359
  },
16347
16360
  {
16348
16361
  id: 1,