react-mail-inbox 1.0.1 → 1.0.2

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.mjs CHANGED
@@ -36,7 +36,6 @@ var ThemeProvider = ({
36
36
  }) => {
37
37
  const [theme, setTheme] = useState(initialTheme);
38
38
  useEffect(() => {
39
- document.documentElement.setAttribute("data-theme", theme);
40
39
  if (onThemeChange) {
41
40
  onThemeChange(theme);
42
41
  }
@@ -2120,6 +2119,7 @@ function GmailWrapperContent({
2120
2119
  setAttachments,
2121
2120
  setIsReply
2122
2121
  } = useEmailContext();
2122
+ const { theme } = useTheme();
2123
2123
  const [bodyHTML, setBodyHTML] = useState(initialData?.body || "");
2124
2124
  const [emailData, setEmailData] = useState({
2125
2125
  to: initialData?.to || [],
@@ -2191,7 +2191,7 @@ function GmailWrapperContent({
2191
2191
  useEffect(() => {
2192
2192
  handleChange(emailData);
2193
2193
  }, [emailData, handleChange]);
2194
- return /* @__PURE__ */ jsxs("div", { className: "gmail-wrapper", children: [
2194
+ return /* @__PURE__ */ jsxs("div", { className: "react-mail-inbox-root gmail-wrapper", "data-theme": theme, children: [
2195
2195
  leftChildren,
2196
2196
  /* @__PURE__ */ jsx(GmailHeading_default, { fetchEmailOptions }),
2197
2197
  /* @__PURE__ */ jsx(