@lowdefy/server-dev 0.0.0-experimental-20260401095934 → 0.0.0-experimental-20260401115238
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/lib/server/compileCss.js +5 -1
- package/manager/processes/compileCss.mjs +5 -1
- package/package.json +28 -28
- package/package.original.json +28 -28
- package/pages/_app.js +10 -9
package/lib/server/compileCss.js
CHANGED
|
@@ -29,7 +29,11 @@ async function compileCss(buildDirectory) {
|
|
|
29
29
|
from: inputPath,
|
|
30
30
|
to: outputPath,
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
// The Tailwind PostCSS plugin consumes the @layer order declaration from
|
|
33
|
+
// globals.css during compilation. Re-inject it as the first line so the
|
|
34
|
+
// browser establishes the correct cascade priority (antd > base/preflight).
|
|
35
|
+
const layerOrder = '@layer theme, base, antd, components, utilities;\n';
|
|
36
|
+
fs.writeFileSync(outputPath, layerOrder + result.css);
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export default compileCss;
|
|
@@ -38,7 +38,11 @@ function compileCss({ directories, logger }) {
|
|
|
38
38
|
from: inputPath,
|
|
39
39
|
to: outputPath,
|
|
40
40
|
});
|
|
41
|
-
|
|
41
|
+
// The Tailwind PostCSS plugin consumes the @layer order declaration from
|
|
42
|
+
// globals.css during compilation. Re-inject it as the first line so the
|
|
43
|
+
// browser establishes the correct cascade priority (antd > base/preflight).
|
|
44
|
+
const layerOrder = '@layer theme, base, antd, components, utilities;\n';
|
|
45
|
+
fs.writeFileSync(outputPath, layerOrder + result.css);
|
|
42
46
|
|
|
43
47
|
logger.info(
|
|
44
48
|
{ spin: 'succeed' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server-dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20260401115238",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -38,33 +38,33 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@ant-design/cssinjs": "2.1.2",
|
|
41
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
42
|
-
"@lowdefy/api": "0.0.0-experimental-
|
|
43
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
44
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
45
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
46
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
47
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
48
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
49
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/build": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/client": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/connection-axios-http": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/errors": "0.0.0-experimental-
|
|
55
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
56
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
57
|
-
"@lowdefy/logger": "0.0.0-experimental-
|
|
58
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
59
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
60
|
-
"@lowdefy/operators-dayjs": "0.0.0-experimental-
|
|
61
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
62
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
67
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-
|
|
41
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20260401115238",
|
|
42
|
+
"@lowdefy/api": "0.0.0-experimental-20260401115238",
|
|
43
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20260401115238",
|
|
44
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20260401115238",
|
|
45
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20260401115238",
|
|
46
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20260401115238",
|
|
47
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20260401115238",
|
|
48
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20260401115238",
|
|
49
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20260401115238",
|
|
50
|
+
"@lowdefy/build": "0.0.0-experimental-20260401115238",
|
|
51
|
+
"@lowdefy/client": "0.0.0-experimental-20260401115238",
|
|
52
|
+
"@lowdefy/connection-axios-http": "0.0.0-experimental-20260401115238",
|
|
53
|
+
"@lowdefy/engine": "0.0.0-experimental-20260401115238",
|
|
54
|
+
"@lowdefy/errors": "0.0.0-experimental-20260401115238",
|
|
55
|
+
"@lowdefy/helpers": "0.0.0-experimental-20260401115238",
|
|
56
|
+
"@lowdefy/layout": "0.0.0-experimental-20260401115238",
|
|
57
|
+
"@lowdefy/logger": "0.0.0-experimental-20260401115238",
|
|
58
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20260401115238",
|
|
59
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20260401115238",
|
|
60
|
+
"@lowdefy/operators-dayjs": "0.0.0-experimental-20260401115238",
|
|
61
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20260401115238",
|
|
62
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20260401115238",
|
|
63
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20260401115238",
|
|
64
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20260401115238",
|
|
65
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20260401115238",
|
|
66
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20260401115238",
|
|
67
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260401115238",
|
|
68
68
|
"@tailwindcss/postcss": "4.2.1",
|
|
69
69
|
"antd": "6.3.1",
|
|
70
70
|
"dayjs": "1.11.19",
|
package/package.original.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server-dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20260401115238",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -46,33 +46,33 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ant-design/cssinjs": "2.1.2",
|
|
49
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/api": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
55
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
56
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
57
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
58
|
-
"@lowdefy/build": "0.0.0-experimental-
|
|
59
|
-
"@lowdefy/client": "0.0.0-experimental-
|
|
60
|
-
"@lowdefy/connection-axios-http": "0.0.0-experimental-
|
|
61
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
62
|
-
"@lowdefy/errors": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/logger": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
67
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
68
|
-
"@lowdefy/operators-dayjs": "0.0.0-experimental-
|
|
69
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
70
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
71
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
72
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
73
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
74
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
75
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-
|
|
49
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20260401115238",
|
|
50
|
+
"@lowdefy/api": "0.0.0-experimental-20260401115238",
|
|
51
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20260401115238",
|
|
52
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20260401115238",
|
|
53
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20260401115238",
|
|
54
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20260401115238",
|
|
55
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20260401115238",
|
|
56
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20260401115238",
|
|
57
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20260401115238",
|
|
58
|
+
"@lowdefy/build": "0.0.0-experimental-20260401115238",
|
|
59
|
+
"@lowdefy/client": "0.0.0-experimental-20260401115238",
|
|
60
|
+
"@lowdefy/connection-axios-http": "0.0.0-experimental-20260401115238",
|
|
61
|
+
"@lowdefy/engine": "0.0.0-experimental-20260401115238",
|
|
62
|
+
"@lowdefy/errors": "0.0.0-experimental-20260401115238",
|
|
63
|
+
"@lowdefy/helpers": "0.0.0-experimental-20260401115238",
|
|
64
|
+
"@lowdefy/layout": "0.0.0-experimental-20260401115238",
|
|
65
|
+
"@lowdefy/logger": "0.0.0-experimental-20260401115238",
|
|
66
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20260401115238",
|
|
67
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20260401115238",
|
|
68
|
+
"@lowdefy/operators-dayjs": "0.0.0-experimental-20260401115238",
|
|
69
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20260401115238",
|
|
70
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20260401115238",
|
|
71
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20260401115238",
|
|
72
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20260401115238",
|
|
73
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20260401115238",
|
|
74
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20260401115238",
|
|
75
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260401115238",
|
|
76
76
|
"@tailwindcss/postcss": "4.2.1",
|
|
77
77
|
"antd": "6.3.1",
|
|
78
78
|
"dayjs": "1.11.19",
|
package/pages/_app.js
CHANGED
|
@@ -14,13 +14,18 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
// CSS layer order — MUST be the first CSS import. Turbopack treats this as critical
|
|
18
|
+
// CSS that loads before hydration, locking the cascade priority (antd > base/preflight)
|
|
19
|
+
// before antd's StyleProvider injects @layer antd {} at runtime.
|
|
20
|
+
import '../build/layer-order.css';
|
|
21
|
+
|
|
17
22
|
import React, { Suspense, useCallback, useEffect, useRef, useState } from 'react';
|
|
18
23
|
import dynamic from 'next/dynamic';
|
|
19
24
|
import { useRouter } from 'next/router';
|
|
20
25
|
import useSWR from 'swr';
|
|
21
26
|
|
|
22
27
|
import { ErrorBoundary } from '@lowdefy/block-utils';
|
|
23
|
-
import {
|
|
28
|
+
import { useDarkMode } from '@lowdefy/client';
|
|
24
29
|
import { StyleProvider } from '@ant-design/cssinjs';
|
|
25
30
|
import { App as AntdApp, ConfigProvider, theme as antdTheme } from 'antd';
|
|
26
31
|
|
|
@@ -28,11 +33,9 @@ import Auth from '../lib/client/auth/Auth.js';
|
|
|
28
33
|
import ErrorBar from '../lib/client/ErrorBar.js';
|
|
29
34
|
import request from '../lib/client/utils/request.js';
|
|
30
35
|
|
|
31
|
-
//
|
|
32
|
-
// The
|
|
33
|
-
|
|
34
|
-
// Importing globals.css here would cause Turbopack to re-compile and inject a second
|
|
35
|
-
// copy of Tailwind CSS, which can break antd styling due to CSS chunking artifacts.
|
|
36
|
+
// Full Tailwind CSS — also loaded via <link href="tailwind-jit.css"> in _document.js
|
|
37
|
+
// for hot-reloading. The Turbopack chunk provides layer ordering guarantee on initial load.
|
|
38
|
+
import '../build/globals.css';
|
|
36
39
|
|
|
37
40
|
function ThemeTokenResolver({ lowdefyRef, children }) {
|
|
38
41
|
const { token } = antdTheme.useToken();
|
|
@@ -47,8 +50,6 @@ function App({ Component }) {
|
|
|
47
50
|
const router = useRouter();
|
|
48
51
|
const lowdefyRef = useRef({});
|
|
49
52
|
const [runtimeErrors, setRuntimeErrors] = useState([]);
|
|
50
|
-
const [antdCssContainer] = useState(getOrCreateAntdCssContainer);
|
|
51
|
-
|
|
52
53
|
// Subscribe to rootConfig SWR cache — deduplicates with inner App.js fetch.
|
|
53
54
|
// Without suspense so _app.js doesn't suspend — just re-renders when data arrives.
|
|
54
55
|
const { data: rootConfig } = useSWR(`${router.basePath}/api/root`, (url) => request({ url }));
|
|
@@ -91,7 +92,7 @@ function App({ Component }) {
|
|
|
91
92
|
}, []);
|
|
92
93
|
|
|
93
94
|
return (
|
|
94
|
-
<StyleProvider layer
|
|
95
|
+
<StyleProvider layer>
|
|
95
96
|
<ConfigProvider
|
|
96
97
|
theme={{
|
|
97
98
|
...lowdefyRef.current.theme?.antd,
|