@ultraviolet/nextjs 3.0.21 → 3.0.22

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,17 +1,17 @@
1
1
  'use client';
2
- import { __name } from "./_virtual/_rolldown/runtime.js";
2
+ import { __esmMin, __name } from "./_virtual/_rolldown/runtime.js";
3
3
  import { ThemeProvider } from "@ultraviolet/themes";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/ThemeRegistry.tsx
7
- /**
8
- * ThemeRegistry is a component that provides a theme to its children.
9
- * This solution is provided to work with Next.js app router.
10
- */
11
- const ThemeRegistry = ({ children, theme }) => /* @__PURE__ */ jsx(ThemeProvider, {
12
- theme,
13
- children
7
+ var ThemeRegistry;
8
+ var init_ThemeRegistry = __esmMin(() => {
9
+ ThemeRegistry = ({ children, theme }) => /* @__PURE__ */ jsx(ThemeProvider, {
10
+ theme,
11
+ children
12
+ });
14
13
  });
15
14
 
16
15
  //#endregion
17
- export { ThemeRegistry };
16
+ init_ThemeRegistry();
17
+ export { ThemeRegistry, init_ThemeRegistry };
@@ -4,6 +4,7 @@ var __name = (target, value) => __defProp(target, "name", {
4
4
  value,
5
5
  configurable: true
6
6
  });
7
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
7
8
 
8
9
  //#endregion
9
- export { __name };
10
+ export { __esmMin, __name };
package/dist/index.js CHANGED
@@ -1,3 +1,11 @@
1
- import { ThemeRegistry } from "./ThemeRegistry.js";
1
+ import { __esmMin } from "./_virtual/_rolldown/runtime.js";
2
+ import { ThemeRegistry, init_ThemeRegistry } from "./ThemeRegistry.js";
2
3
 
4
+ //#region src/index.ts
5
+ var init_src = __esmMin(() => {
6
+ init_ThemeRegistry();
7
+ });
8
+
9
+ //#endregion
10
+ init_src();
3
11
  export { ThemeRegistry };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/nextjs",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "description": "Ultraviolet NextJS utility package",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -51,12 +51,12 @@
51
51
  "next": "16.1.6",
52
52
  "react": "19.2.4",
53
53
  "react-dom": "19.2.4",
54
- "vite": "8.0.0-beta.15",
55
- "@repo/config": "0.0.2"
54
+ "vite": "8.0.0-beta.18",
55
+ "@repo/config": "0.0.3"
56
56
  },
57
57
  "dependencies": {
58
- "@ultraviolet/ui": "3.11.1",
59
- "@ultraviolet/themes": "3.1.1"
58
+ "@ultraviolet/themes": "3.1.2",
59
+ "@ultraviolet/ui": "3.12.0"
60
60
  },
61
61
  "scripts": {
62
62
  "type:generate": "tsgo --declaration -p tsconfig.build.json",