boss-css 0.0.23 → 0.0.25
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/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +163 -44
- package/dist/cli/tasks/init.mjs +135 -17
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +8 -9
- package/dist/merge/index.mjs +5 -7
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.d.cts +1 -1
- package/dist/use/token/propMap.d.mts +1 -1
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_directory = require("./directory.cjs");
|
|
3
4
|
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
node_fs_promises =
|
|
5
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
5
6
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
7
|
-
|
|
7
|
+
node_path = require_runtime.__toESM(node_path);
|
|
8
8
|
//#region src/fontsource/server.ts
|
|
9
|
-
var server_exports = /* @__PURE__ */
|
|
9
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
10
10
|
name: () => name,
|
|
11
11
|
onBoot: () => onBoot
|
|
12
12
|
});
|
|
@@ -284,13 +284,12 @@ const onBoot = async (api) => {
|
|
|
284
284
|
mergeFontTokens(api, fontTokens);
|
|
285
285
|
await fetchFontFiles(downloads, fontsDir);
|
|
286
286
|
};
|
|
287
|
-
|
|
288
287
|
//#endregion
|
|
289
288
|
exports.name = name;
|
|
290
289
|
exports.onBoot = onBoot;
|
|
291
|
-
Object.defineProperty(exports,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
});
|
|
290
|
+
Object.defineProperty(exports, "server_exports", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function() {
|
|
293
|
+
return server_exports;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { fontDirectory } from "./directory.mjs";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
|
|
6
5
|
//#region src/fontsource/server.ts
|
|
7
6
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
8
7
|
name: () => name,
|
|
@@ -282,6 +281,5 @@ const onBoot = async (api) => {
|
|
|
282
281
|
mergeFontTokens(api, fontTokens);
|
|
283
282
|
await fetchFontFiles(downloads, fontsDir);
|
|
284
283
|
};
|
|
285
|
-
|
|
286
284
|
//#endregion
|
|
287
|
-
export { name, onBoot, server_exports };
|
|
285
|
+
export { name, onBoot, server_exports };
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_build = require("./tasks/build.cjs");
|
|
3
|
+
const require_watch = require("./tasks/watch.cjs");
|
|
4
|
+
const require_compile = require("./tasks/compile.cjs");
|
|
5
|
+
const require_postcss = require("./tasks/postcss.cjs");
|
|
6
6
|
exports.resolveBuildConfig = require_build.resolveBuildConfig;
|
|
7
7
|
exports.runBuild = require_build.runBuild;
|
|
8
8
|
exports.runCompile = require_compile.runCompile;
|
|
9
9
|
exports.runPostcss = require_postcss.runPostcss;
|
|
10
|
-
exports.runWatch = require_watch.runWatch;
|
|
10
|
+
exports.runWatch = require_watch.runWatch;
|
package/dist/index.mjs
CHANGED
|
@@ -2,5 +2,4 @@ import { resolveBuildConfig, runBuild } from "./tasks/build.mjs";
|
|
|
2
2
|
import { runWatch } from "./tasks/watch.mjs";
|
|
3
3
|
import { runCompile } from "./tasks/compile.mjs";
|
|
4
4
|
import { runPostcss } from "./tasks/postcss.mjs";
|
|
5
|
-
|
|
6
|
-
export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
|
|
5
|
+
export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
|
package/dist/log/browser.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_debug = require(
|
|
2
|
-
|
|
1
|
+
const require_debug = require("../shared/debug.cjs");
|
|
3
2
|
//#region src/log/browser.ts
|
|
4
3
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
5
4
|
const createLogger = (namespace, debug) => {
|
|
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
|
|
|
23
22
|
};
|
|
24
23
|
return getLogger(namespace);
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
//#endregion
|
|
28
|
-
exports.createLogger = createLogger;
|
|
26
|
+
exports.createLogger = createLogger;
|
package/dist/log/browser.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createDebugMatcher } from "../shared/debug.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/log/browser.ts
|
|
4
3
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
5
4
|
const createLogger = (namespace, debug) => {
|
|
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
|
|
|
23
22
|
};
|
|
24
23
|
return getLogger(namespace);
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
//#endregion
|
|
28
|
-
export { createLogger };
|
|
26
|
+
export { createLogger };
|
package/dist/log/server.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_debug = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_debug = require("../shared/debug.cjs");
|
|
3
3
|
let debug = require("debug");
|
|
4
|
-
debug =
|
|
5
|
-
|
|
4
|
+
debug = require_runtime.__toESM(debug);
|
|
6
5
|
//#region src/log/server.ts
|
|
7
6
|
const normalizeDebugValue = (debug$1) => debug$1 === true ? "boss:*" : debug$1;
|
|
8
|
-
const createLogger = (namespace, debug$
|
|
9
|
-
const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$
|
|
7
|
+
const createLogger = (namespace, debug$2) => {
|
|
8
|
+
const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$2));
|
|
10
9
|
const cache = /* @__PURE__ */ new Map();
|
|
11
10
|
const getLogger = (nextNamespace) => {
|
|
12
11
|
const existing = cache.get(nextNamespace);
|
|
@@ -27,6 +26,5 @@ const createLogger = (namespace, debug$1) => {
|
|
|
27
26
|
};
|
|
28
27
|
return getLogger(namespace);
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
|
-
exports.createLogger = createLogger;
|
|
30
|
+
exports.createLogger = createLogger;
|
package/dist/log/server.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createDebugMatcher } from "../shared/debug.mjs";
|
|
2
2
|
import createDebug from "debug";
|
|
3
|
-
|
|
4
3
|
//#region src/log/server.ts
|
|
5
4
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
6
5
|
const createLogger = (namespace, debug) => {
|
|
@@ -25,6 +24,5 @@ const createLogger = (namespace, debug) => {
|
|
|
25
24
|
};
|
|
26
25
|
return getLogger(namespace);
|
|
27
26
|
};
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { createLogger };
|
|
28
|
+
export { createLogger };
|
package/dist/merge/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let ts_deepmerge = require("ts-deepmerge");
|
|
3
4
|
let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
|
|
4
|
-
_boss_css_is_css_prop =
|
|
5
|
-
|
|
5
|
+
_boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
|
|
6
6
|
//#region src/merge/index.ts
|
|
7
7
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
8
8
|
const whitespaceRegexp = /\s/;
|
|
@@ -128,11 +128,11 @@ const splitSelectors = (input) => {
|
|
|
128
128
|
const expandGroupedSelector = (selector) => {
|
|
129
129
|
const grouped = parseGroupedSelector(selector);
|
|
130
130
|
if (!grouped) return [selector];
|
|
131
|
-
const nextEntries = grouped.entries.map((entry
|
|
132
|
-
name: entry
|
|
133
|
-
rawValue: entry
|
|
131
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
132
|
+
name: entry.name,
|
|
133
|
+
rawValue: entry.rawValue
|
|
134
134
|
}));
|
|
135
|
-
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
135
|
+
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
136
136
|
const [entry] = nextEntries;
|
|
137
137
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
138
138
|
};
|
|
@@ -321,8 +321,7 @@ function unique(items) {
|
|
|
321
321
|
const isPlainObject = (value) => {
|
|
322
322
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
323
323
|
};
|
|
324
|
-
|
|
325
324
|
//#endregion
|
|
326
325
|
exports.createBossMerge = createBossMerge;
|
|
327
326
|
exports.join = join;
|
|
328
|
-
exports.merge = merge;
|
|
327
|
+
exports.merge = merge;
|
package/dist/merge/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { merge as merge$1 } from "ts-deepmerge";
|
|
2
2
|
import isCSSProp from "@boss-css/is-css-prop";
|
|
3
|
-
|
|
4
3
|
//#region src/merge/index.ts
|
|
5
4
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
6
5
|
const whitespaceRegexp = /\s/;
|
|
@@ -126,11 +125,11 @@ const splitSelectors = (input) => {
|
|
|
126
125
|
const expandGroupedSelector = (selector) => {
|
|
127
126
|
const grouped = parseGroupedSelector(selector);
|
|
128
127
|
if (!grouped) return [selector];
|
|
129
|
-
const nextEntries = grouped.entries.map((entry
|
|
130
|
-
name: entry
|
|
131
|
-
rawValue: entry
|
|
128
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
129
|
+
name: entry.name,
|
|
130
|
+
rawValue: entry.rawValue
|
|
132
131
|
}));
|
|
133
|
-
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
132
|
+
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
134
133
|
const [entry] = nextEntries;
|
|
135
134
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
136
135
|
};
|
|
@@ -319,6 +318,5 @@ function unique(items) {
|
|
|
319
318
|
const isPlainObject = (value) => {
|
|
320
319
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
321
320
|
};
|
|
322
|
-
|
|
323
321
|
//#endregion
|
|
324
|
-
export { createBossMerge, join, merge };
|
|
322
|
+
export { createBossMerge, join, merge };
|
package/dist/native/browser.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_use_token_runtime_only = require("../use/token/runtime-only.cjs");
|
|
3
3
|
//#region src/native/browser.ts
|
|
4
4
|
const ignoredProps = new Set([
|
|
5
5
|
"ref",
|
|
@@ -85,7 +85,6 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
|
|
|
85
85
|
}
|
|
86
86
|
output.style = [output.style, bossStyle];
|
|
87
87
|
};
|
|
88
|
-
|
|
89
88
|
//#endregion
|
|
90
89
|
exports.name = name;
|
|
91
|
-
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
90
|
+
exports.onBrowserObjectStart = onBrowserObjectStart;
|
package/dist/native/browser.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { resolveRuntimeToken } from "../use/token/runtime-only.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/native/browser.ts
|
|
4
3
|
const ignoredProps = new Set([
|
|
5
4
|
"ref",
|
|
@@ -85,6 +84,5 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
|
|
|
85
84
|
}
|
|
86
85
|
output.style = [output.style, bossStyle];
|
|
87
86
|
};
|
|
88
|
-
|
|
89
87
|
//#endregion
|
|
90
|
-
export { name, onBrowserObjectStart };
|
|
88
|
+
export { name, onBrowserObjectStart };
|
package/dist/native/server.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_extractCode = require("../parser/jsx/extractCode.cjs");
|
|
4
|
+
const require_extractPrepared = require("../parser/jsx/extractPrepared.cjs");
|
|
5
|
+
const require_extractProps = require("../parser/jsx/extractProps.cjs");
|
|
6
|
+
const require_styleTypes = require("./styleTypes.cjs");
|
|
6
7
|
let ts_deepmerge = require("ts-deepmerge");
|
|
7
|
-
|
|
8
8
|
//#region src/native/server.ts
|
|
9
9
|
const name = "native";
|
|
10
10
|
const settings = new Map([
|
|
@@ -172,9 +172,8 @@ const onParse = async (api, input) => {
|
|
|
172
172
|
}
|
|
173
173
|
if (preparedDirty) syncPreparedDts(api);
|
|
174
174
|
};
|
|
175
|
-
|
|
176
175
|
//#endregion
|
|
177
176
|
exports.name = name;
|
|
178
177
|
exports.onBoot = onBoot;
|
|
179
178
|
exports.onParse = onParse;
|
|
180
|
-
exports.settings = settings;
|
|
179
|
+
exports.settings = settings;
|
package/dist/native/server.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { extractPreparedComponents } from "../parser/jsx/extractPrepared.mjs";
|
|
|
3
3
|
import { extractPropTrees } from "../parser/jsx/extractProps.mjs";
|
|
4
4
|
import { loadReactNativeStyleProps } from "./styleTypes.mjs";
|
|
5
5
|
import { merge } from "ts-deepmerge";
|
|
6
|
-
|
|
7
6
|
//#region src/native/server.ts
|
|
8
7
|
const name = "native";
|
|
9
8
|
const settings = new Map([
|
|
@@ -171,6 +170,5 @@ const onParse = async (api, input) => {
|
|
|
171
170
|
}
|
|
172
171
|
if (preparedDirty) syncPreparedDts(api);
|
|
173
172
|
};
|
|
174
|
-
|
|
175
173
|
//#endregion
|
|
176
|
-
export { name, onBoot, onParse, settings };
|
|
174
|
+
export { name, onBoot, onParse, settings };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let node_fs_promises = require("node:fs/promises");
|
|
3
|
-
node_fs_promises =
|
|
3
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
4
4
|
let node_path = require("node:path");
|
|
5
|
-
node_path =
|
|
5
|
+
node_path = require_runtime.__toESM(node_path);
|
|
6
6
|
let fast_glob = require("fast-glob");
|
|
7
|
-
fast_glob =
|
|
7
|
+
fast_glob = require_runtime.__toESM(fast_glob);
|
|
8
8
|
let node_module = require("node:module");
|
|
9
|
-
|
|
10
9
|
//#region src/native/styleTypes.ts
|
|
11
10
|
const interfaceNames = new Set([
|
|
12
11
|
"ViewStyle",
|
|
@@ -163,6 +162,5 @@ const loadReactNativeStyleProps = async () => {
|
|
|
163
162
|
sourcePath: typesFile
|
|
164
163
|
};
|
|
165
164
|
};
|
|
166
|
-
|
|
167
165
|
//#endregion
|
|
168
|
-
exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
|
|
166
|
+
exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
|
|
@@ -2,7 +2,6 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
|
-
|
|
6
5
|
//#region src/native/styleTypes.ts
|
|
7
6
|
const interfaceNames = new Set([
|
|
8
7
|
"ViewStyle",
|
|
@@ -159,6 +158,5 @@ const loadReactNativeStyleProps = async () => {
|
|
|
159
158
|
sourcePath: typesFile
|
|
160
159
|
};
|
|
161
160
|
};
|
|
162
|
-
|
|
163
161
|
//#endregion
|
|
164
|
-
export { loadReactNativeStyleProps };
|
|
162
|
+
export { loadReactNativeStyleProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/parser/classname/server.ts
|
|
4
|
-
var server_exports = /* @__PURE__ */
|
|
3
|
+
var server_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
5
4
|
name: () => name,
|
|
6
5
|
onParse: () => onParse
|
|
7
6
|
});
|
|
@@ -93,17 +92,17 @@ const extractPropTree = async (string, api) => {
|
|
|
93
92
|
selectors.forEach((selector) => {
|
|
94
93
|
const grouped = parseGroupedSelector(selector);
|
|
95
94
|
if (grouped) {
|
|
96
|
-
const rawFragments
|
|
97
|
-
if (!resolveDescriptor(stripImportantSuffix(rawFragments
|
|
98
|
-
const fragments = expandFragments(rawFragments
|
|
95
|
+
const rawFragments = splitFragments(grouped.prefix);
|
|
96
|
+
if (!resolveDescriptor(stripImportantSuffix(rawFragments[0])).descriptor || rawFragments.length === 0) return;
|
|
97
|
+
const fragments = expandFragments(rawFragments);
|
|
99
98
|
grouped.entries.forEach(({ name, rawValue }) => {
|
|
100
99
|
if (!resolveDescriptor(name).descriptor?.isCSSProp) return;
|
|
101
|
-
const { value
|
|
102
|
-
const prop = { value
|
|
103
|
-
if (important
|
|
104
|
-
const path
|
|
105
|
-
const key = pathKey(path
|
|
106
|
-
createPropPath([...path
|
|
100
|
+
const { value, important } = parseImportantValue(rawValue);
|
|
101
|
+
const prop = { value };
|
|
102
|
+
if (important) prop.important = true;
|
|
103
|
+
const path = [...fragments, name];
|
|
104
|
+
const key = pathKey(path);
|
|
105
|
+
createPropPath([...path], prop, tree);
|
|
107
106
|
selectorTokens.set(key, selector);
|
|
108
107
|
});
|
|
109
108
|
return;
|
|
@@ -263,13 +262,12 @@ const applySelectorTokens = (tree, selectorTokens, path = []) => {
|
|
|
263
262
|
if (prop.value && typeof prop.value === "object" && !Array.isArray(prop.value)) applySelectorTokens(prop.value, selectorTokens, nextPath);
|
|
264
263
|
});
|
|
265
264
|
};
|
|
266
|
-
|
|
267
265
|
//#endregion
|
|
268
266
|
exports.name = name;
|
|
269
267
|
exports.onParse = onParse;
|
|
270
|
-
Object.defineProperty(exports,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
});
|
|
268
|
+
Object.defineProperty(exports, "server_exports", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function() {
|
|
271
|
+
return server_exports;
|
|
272
|
+
}
|
|
273
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
3
2
|
//#region src/parser/classname/server.ts
|
|
4
3
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
5
4
|
name: () => name,
|
|
@@ -93,17 +92,17 @@ const extractPropTree = async (string, api) => {
|
|
|
93
92
|
selectors.forEach((selector) => {
|
|
94
93
|
const grouped = parseGroupedSelector(selector);
|
|
95
94
|
if (grouped) {
|
|
96
|
-
const rawFragments
|
|
97
|
-
if (!resolveDescriptor(stripImportantSuffix(rawFragments
|
|
98
|
-
const fragments = expandFragments(rawFragments
|
|
95
|
+
const rawFragments = splitFragments(grouped.prefix);
|
|
96
|
+
if (!resolveDescriptor(stripImportantSuffix(rawFragments[0])).descriptor || rawFragments.length === 0) return;
|
|
97
|
+
const fragments = expandFragments(rawFragments);
|
|
99
98
|
grouped.entries.forEach(({ name, rawValue }) => {
|
|
100
99
|
if (!resolveDescriptor(name).descriptor?.isCSSProp) return;
|
|
101
|
-
const { value
|
|
102
|
-
const prop = { value
|
|
103
|
-
if (important
|
|
104
|
-
const path
|
|
105
|
-
const key = pathKey(path
|
|
106
|
-
createPropPath([...path
|
|
100
|
+
const { value, important } = parseImportantValue(rawValue);
|
|
101
|
+
const prop = { value };
|
|
102
|
+
if (important) prop.important = true;
|
|
103
|
+
const path = [...fragments, name];
|
|
104
|
+
const key = pathKey(path);
|
|
105
|
+
createPropPath([...path], prop, tree);
|
|
107
106
|
selectorTokens.set(key, selector);
|
|
108
107
|
});
|
|
109
108
|
return;
|
|
@@ -263,6 +262,5 @@ const applySelectorTokens = (tree, selectorTokens, path = []) => {
|
|
|
263
262
|
if (prop.value && typeof prop.value === "object" && !Array.isArray(prop.value)) applySelectorTokens(prop.value, selectorTokens, nextPath);
|
|
264
263
|
});
|
|
265
264
|
};
|
|
266
|
-
|
|
267
265
|
//#endregion
|
|
268
|
-
export { name, onParse, server_exports };
|
|
266
|
+
export { name, onParse, server_exports };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_framework = require("../../shared/framework.cjs");
|
|
4
|
+
const require_isDOMProp = require("./isDOMProp.cjs");
|
|
5
|
+
const require_cx_index = require("../../cx/index.cjs");
|
|
5
6
|
let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
|
|
6
|
-
_boss_css_is_css_prop =
|
|
7
|
-
|
|
7
|
+
_boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
|
|
8
8
|
//#region src/parser/jsx/browser.ts
|
|
9
9
|
const ignoredProps = new Set([
|
|
10
10
|
"ref",
|
|
@@ -65,7 +65,6 @@ const onBrowserObjectStart = (api, { input, tag = "div", contexts = [], output =
|
|
|
65
65
|
}
|
|
66
66
|
log.log("browserObject:end", input, output);
|
|
67
67
|
};
|
|
68
|
-
|
|
69
68
|
//#endregion
|
|
70
69
|
exports.name = name;
|
|
71
|
-
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
70
|
+
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
@@ -2,7 +2,6 @@ import { getClassNameProp } from "../../shared/framework.mjs";
|
|
|
2
2
|
import isDOMProp from "./isDOMProp.mjs";
|
|
3
3
|
import { cx } from "../../cx/index.mjs";
|
|
4
4
|
import isCSSProp from "@boss-css/is-css-prop";
|
|
5
|
-
|
|
6
5
|
//#region src/parser/jsx/browser.ts
|
|
7
6
|
const ignoredProps = new Set([
|
|
8
7
|
"ref",
|
|
@@ -63,6 +62,5 @@ const onBrowserObjectStart = (api, { input, tag = "div", contexts = [], output =
|
|
|
63
62
|
}
|
|
64
63
|
log.log("browserObject:end", input, output);
|
|
65
64
|
};
|
|
66
|
-
|
|
67
65
|
//#endregion
|
|
68
|
-
export { name, onBrowserObjectStart };
|
|
66
|
+
export { name, onBrowserObjectStart };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/parser/jsx/extractCode.ts
|
|
3
2
|
const map = {
|
|
4
3
|
"<": ">",
|
|
@@ -9,7 +8,7 @@ const map = {
|
|
|
9
8
|
"`": "`",
|
|
10
9
|
"'": "'"
|
|
11
10
|
};
|
|
12
|
-
const openingRegexp =
|
|
11
|
+
const openingRegexp = new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
|
|
13
12
|
const ignoredContexts = {
|
|
14
13
|
"{": true,
|
|
15
14
|
"\"": true,
|
|
@@ -95,6 +94,5 @@ function extractCode(code) {
|
|
|
95
94
|
}
|
|
96
95
|
return results;
|
|
97
96
|
}
|
|
98
|
-
|
|
99
97
|
//#endregion
|
|
100
|
-
exports.extractCode = extractCode;
|
|
98
|
+
exports.extractCode = extractCode;
|
|
@@ -8,7 +8,7 @@ const map = {
|
|
|
8
8
|
"`": "`",
|
|
9
9
|
"'": "'"
|
|
10
10
|
};
|
|
11
|
-
const openingRegexp =
|
|
11
|
+
const openingRegexp = new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
|
|
12
12
|
const ignoredContexts = {
|
|
13
13
|
"{": true,
|
|
14
14
|
"\"": true,
|
|
@@ -94,6 +94,5 @@ function extractCode(code) {
|
|
|
94
94
|
}
|
|
95
95
|
return results;
|
|
96
96
|
}
|
|
97
|
-
|
|
98
97
|
//#endregion
|
|
99
|
-
export { extractCode };
|
|
98
|
+
export { extractCode };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_extractCode = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_extractCode = require("./extractCode.cjs");
|
|
3
3
|
let _swc_core = require("@swc/core");
|
|
4
|
-
|
|
5
4
|
//#region src/parser/jsx/extractPrepared.ts
|
|
6
5
|
const extractPreparedComponents = (content, filePath) => {
|
|
7
6
|
if (!content.includes("$$.")) return [];
|
|
@@ -118,6 +117,5 @@ const extractStyleText = (objectExpression) => {
|
|
|
118
117
|
if (text.startsWith("({") && text.endsWith("})")) text = text.slice(1, -1);
|
|
119
118
|
return text.replace(/\s+/g, " ");
|
|
120
119
|
};
|
|
121
|
-
|
|
122
120
|
//#endregion
|
|
123
|
-
exports.extractPreparedComponents = extractPreparedComponents;
|
|
121
|
+
exports.extractPreparedComponents = extractPreparedComponents;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extractCode } from "./extractCode.mjs";
|
|
2
2
|
import { parseSync, printSync } from "@swc/core";
|
|
3
|
-
|
|
4
3
|
//#region src/parser/jsx/extractPrepared.ts
|
|
5
4
|
const extractPreparedComponents = (content, filePath) => {
|
|
6
5
|
if (!content.includes("$$.")) return [];
|
|
@@ -117,6 +116,5 @@ const extractStyleText = (objectExpression) => {
|
|
|
117
116
|
if (text.startsWith("({") && text.endsWith("})")) text = text.slice(1, -1);
|
|
118
117
|
return text.replace(/\s+/g, " ");
|
|
119
118
|
};
|
|
120
|
-
|
|
121
119
|
//#endregion
|
|
122
|
-
export { extractPreparedComponents };
|
|
120
|
+
export { extractPreparedComponents };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let _swc_core = require("@swc/core");
|
|
3
|
-
_swc_core =
|
|
4
|
-
|
|
3
|
+
_swc_core = require_runtime.__toESM(_swc_core);
|
|
5
4
|
//#region src/parser/jsx/extractProps.ts
|
|
6
5
|
async function extractPropTrees(codes) {
|
|
7
6
|
if (!codes.length) return [];
|
|
@@ -235,6 +234,5 @@ function reconstructArray(elements) {
|
|
|
235
234
|
dynamic
|
|
236
235
|
};
|
|
237
236
|
}
|
|
238
|
-
|
|
239
237
|
//#endregion
|
|
240
|
-
exports.extractPropTrees = extractPropTrees;
|
|
238
|
+
exports.extractPropTrees = extractPropTrees;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import swc from "@swc/core";
|
|
2
|
-
|
|
3
2
|
//#region src/parser/jsx/extractProps.ts
|
|
4
3
|
async function extractPropTrees(codes) {
|
|
5
4
|
if (!codes.length) return [];
|
|
@@ -233,6 +232,5 @@ function reconstructArray(elements) {
|
|
|
233
232
|
dynamic
|
|
234
233
|
};
|
|
235
234
|
}
|
|
236
|
-
|
|
237
235
|
//#endregion
|
|
238
|
-
export { extractPropTrees };
|
|
236
|
+
export { extractPropTrees };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let _boss_css_document_create_element = require("@boss-css/document-create-element");
|
|
3
|
-
_boss_css_document_create_element =
|
|
4
|
-
|
|
3
|
+
_boss_css_document_create_element = require_runtime.__toESM(_boss_css_document_create_element);
|
|
5
4
|
//#region src/parser/jsx/isDOMProp.ts
|
|
6
5
|
const cache = {};
|
|
7
6
|
function isDOMProp(tag, prop) {
|
|
@@ -12,6 +11,5 @@ function isDOMProp(tag, prop) {
|
|
|
12
11
|
if ((tagEntry[prop] = prop in element || prop.toLowerCase() in element) && typeof element[prop] === "function") tagEntry[prop] = false;
|
|
13
12
|
return tagEntry[prop];
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
|
-
exports.default = isDOMProp;
|
|
15
|
+
exports.default = isDOMProp;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import createElement from "@boss-css/document-create-element";
|
|
2
|
-
|
|
3
2
|
//#region src/parser/jsx/isDOMProp.ts
|
|
4
3
|
const cache = {};
|
|
5
4
|
function isDOMProp(tag, prop) {
|
|
@@ -10,6 +9,5 @@ function isDOMProp(tag, prop) {
|
|
|
10
9
|
if ((tagEntry[prop] = prop in element || prop.toLowerCase() in element) && typeof element[prop] === "function") tagEntry[prop] = false;
|
|
11
10
|
return tagEntry[prop];
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { isDOMProp as default };
|
|
13
|
+
export { isDOMProp as default };
|