@webiny/website-builder-nextjs 0.0.0-unstable.fdd9228b5d → 6.0.0-alpha.1
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/package.json +4 -4
- package/useCss.js +3 -1
- package/useCss.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/website-builder-nextjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
],
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@webiny/website-builder-react": "
|
|
20
|
+
"@webiny/website-builder-react": "6.0.0-alpha.1",
|
|
21
21
|
"postcss": "8.5.6"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"next": "^15"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@webiny/project-utils": "
|
|
27
|
+
"@webiny/project-utils": "6.0.0-alpha.1",
|
|
28
28
|
"typescript": "5.3.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "9bd236cf5e689f209a11bec089207dcc2d41a53c"
|
|
48
48
|
}
|
package/useCss.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use server";
|
|
2
2
|
|
|
3
3
|
import path from "path";
|
|
4
|
-
import { CSSInliner } from "./CssInliner";
|
|
5
4
|
export async function useCss(cssFile) {
|
|
5
|
+
const {
|
|
6
|
+
CSSInliner
|
|
7
|
+
} = await import("./CssInliner");
|
|
6
8
|
const entryCss = cssFile ?? path.resolve(process.cwd(), "src/theme/theme.css");
|
|
7
9
|
const inliner = new CSSInliner();
|
|
8
10
|
return await inliner.load(entryCss);
|
package/useCss.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["path","
|
|
1
|
+
{"version":3,"names":["path","useCss","cssFile","CSSInliner","entryCss","resolve","process","cwd","inliner","load"],"sources":["useCss.ts"],"sourcesContent":["\"use server\";\nimport path from \"path\";\n\nexport async function useCss(cssFile?: string) {\n const { CSSInliner } = await import(\"~/CssInliner\");\n const entryCss = cssFile ?? path.resolve(process.cwd(), \"src/theme/theme.css\");\n\n const inliner = new CSSInliner();\n return await inliner.load(entryCss);\n}\n"],"mappings":"AAAA,YAAY;;AACZ,OAAOA,IAAI,MAAM,MAAM;AAEvB,OAAO,eAAeC,MAAMA,CAACC,OAAgB,EAAE;EAC3C,MAAM;IAAEC;EAAW,CAAC,GAAG,MAAM,MAAM,eAAe,CAAC;EACnD,MAAMC,QAAQ,GAAGF,OAAO,IAAIF,IAAI,CAACK,OAAO,CAACC,OAAO,CAACC,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;EAE9E,MAAMC,OAAO,GAAG,IAAIL,UAAU,CAAC,CAAC;EAChC,OAAO,MAAMK,OAAO,CAACC,IAAI,CAACL,QAAQ,CAAC;AACvC","ignoreList":[]}
|