@ichaingo/providers 1.5.7-beta → 1.5.8

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/theme.d.ts CHANGED
@@ -1,4 +1,10 @@
1
- export default function ThemeProviderWrapper({ children }: {
1
+ interface ThemeProviderWrapperProps {
2
2
  children: React.ReactNode;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ cookieOptions?: {
4
+ domain: string;
5
+ };
6
+ storageKey?: string;
7
+ }
8
+ export default function ThemeProviderWrapper({ children, cookieOptions, storageKey }: ThemeProviderWrapperProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
4
10
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAevF"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,QAAQ,EACR,aAAyC,EACzC,UAA4B,EAC7B,EAAE,yBAAyB,2CAa3B"}
package/dist/theme.js CHANGED
@@ -1,22 +1,24 @@
1
1
  'use client';
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { ThemeProvider as r } from "@ichaingo/next-themes";
4
- function a({ children: e }) {
5
- return /* @__PURE__ */ t(
6
- r,
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import { ThemeProvider as i } from "@ichaingo/next-themes";
4
+ function n({
5
+ children: e,
6
+ cookieOptions: r = { domain: ".ichatgo.ai" },
7
+ storageKey: t = "ichatgo-theme"
8
+ }) {
9
+ return /* @__PURE__ */ a(
10
+ i,
7
11
  {
8
12
  attribute: "class",
9
13
  enableSystem: !0,
10
14
  disableTransitionOnChange: !0,
11
- storageKey: "ichatgo-theme",
15
+ storageKey: t,
12
16
  themes: ["light", "dark"],
13
- cookieOptions: {
14
- domain: ".ichatgo.ai"
15
- },
17
+ cookieOptions: r,
16
18
  children: e
17
19
  }
18
20
  );
19
21
  }
20
22
  export {
21
- a as default
23
+ n as default
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/providers",
3
- "version": "1.5.7-beta",
3
+ "version": "1.5.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",