boss-css 0.0.22 → 0.0.24
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 +39 -42
- package/dist/cli/tasks/init.mjs +12 -15
- 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/devtools-app/index.mjs +2 -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 +21 -284
- package/dist/merge/index.mjs +18 -282
- 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.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,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 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_api_browser = require("../../api/browser.cjs");
|
|
4
|
+
const require_merge_index = require("../../merge/index.cjs");
|
|
5
|
+
const require_cx_index = require("../../cx/index.cjs");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
let react_native = require("react-native");
|
|
7
|
-
|
|
8
8
|
//#region src/parser/jsx/native.ts
|
|
9
9
|
const nativeComponents = {
|
|
10
10
|
ActivityIndicator: react_native.ActivityIndicator,
|
|
@@ -104,7 +104,6 @@ const proxy = new Proxy(defaultElement, {
|
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
|
|
108
107
|
//#endregion
|
|
109
108
|
exports.factory = factory;
|
|
110
|
-
exports.proxy = proxy;
|
|
109
|
+
exports.proxy = proxy;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/parser/jsx/native.d.ts
|
|
4
|
-
declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> |
|
|
4
|
+
declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react.DetailedReactHTMLElement<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
5
5
|
declare const proxy: any;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { factory, proxy };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/parser/jsx/native.d.ts
|
|
4
|
-
declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> |
|
|
4
|
+
declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react.DetailedReactHTMLElement<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
5
5
|
declare const proxy: any;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { factory, proxy };
|
|
@@ -3,7 +3,6 @@ import { merge } from "../../merge/index.mjs";
|
|
|
3
3
|
import { cv, cx, scv, sv } from "../../cx/index.mjs";
|
|
4
4
|
import { createElement, forwardRef } from "react";
|
|
5
5
|
import { ActivityIndicator, FlatList, Image, Modal, Pressable, SafeAreaView, ScrollView, SectionList, Switch, Text, TextInput, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, View } from "react-native";
|
|
6
|
-
|
|
7
6
|
//#region src/parser/jsx/native.ts
|
|
8
7
|
const nativeComponents = {
|
|
9
8
|
ActivityIndicator,
|
|
@@ -103,6 +102,5 @@ const proxy = new Proxy(defaultElement, {
|
|
|
103
102
|
return true;
|
|
104
103
|
}
|
|
105
104
|
});
|
|
106
|
-
|
|
107
105
|
//#endregion
|
|
108
|
-
export { factory, proxy };
|
|
106
|
+
export { factory, proxy };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime_index = require("../../runtime/index.cjs");
|
|
3
3
|
exports.factory = require_runtime_index.factory;
|
|
4
|
-
exports.proxy = require_runtime_index.proxy;
|
|
4
|
+
exports.proxy = require_runtime_index.proxy;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_customCss = require("../../shared/customCss.cjs");
|
|
4
|
+
const require_extractCode = require("./extractCode.cjs");
|
|
5
|
+
const require_extractPrepared = require("./extractPrepared.cjs");
|
|
6
|
+
const require_extractProps = require("./extractProps.cjs");
|
|
7
|
+
const require_detect_fw_index = require("../../detect-fw/index.cjs");
|
|
7
8
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
9
|
+
node_path = require_runtime.__toESM(node_path);
|
|
9
10
|
let _swc_core = require("@swc/core");
|
|
10
|
-
|
|
11
11
|
//#region src/parser/jsx/server.ts
|
|
12
|
-
var server_exports = /* @__PURE__ */
|
|
13
|
-
name: () =>
|
|
12
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
13
|
+
name: () => "jsx",
|
|
14
14
|
onBoot: () => onBoot,
|
|
15
15
|
onParse: () => onParse,
|
|
16
16
|
settings: () => settings
|
|
@@ -302,15 +302,14 @@ const formatPreparedPath = (filePath) => {
|
|
|
302
302
|
return relative;
|
|
303
303
|
};
|
|
304
304
|
const sanitizeDocText = (value) => value.replace(/\*\//g, "*\\/");
|
|
305
|
-
|
|
306
305
|
//#endregion
|
|
307
306
|
exports.name = name;
|
|
308
307
|
exports.onBoot = onBoot;
|
|
309
308
|
exports.onParse = onParse;
|
|
310
|
-
Object.defineProperty(exports,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
309
|
+
Object.defineProperty(exports, "server_exports", {
|
|
310
|
+
enumerable: true,
|
|
311
|
+
get: function() {
|
|
312
|
+
return server_exports;
|
|
313
|
+
}
|
|
315
314
|
});
|
|
316
|
-
exports.settings = settings;
|
|
315
|
+
exports.settings = settings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { extractCustomCssText } from "../../shared/customCss.mjs";
|
|
3
3
|
import { extractCode } from "./extractCode.mjs";
|
|
4
4
|
import { extractPreparedComponents } from "./extractPrepared.mjs";
|
|
@@ -6,10 +6,9 @@ import { extractPropTrees } from "./extractProps.mjs";
|
|
|
6
6
|
import { detectFramework, getJsxTypes } from "../../detect-fw/index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { parseSync } from "@swc/core";
|
|
9
|
-
|
|
10
9
|
//#region src/parser/jsx/server.ts
|
|
11
10
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
12
|
-
name: () =>
|
|
11
|
+
name: () => "jsx",
|
|
13
12
|
onBoot: () => onBoot,
|
|
14
13
|
onParse: () => onParse,
|
|
15
14
|
settings: () => settings
|
|
@@ -301,6 +300,5 @@ const formatPreparedPath = (filePath) => {
|
|
|
301
300
|
return relative;
|
|
302
301
|
};
|
|
303
302
|
const sanitizeDocText = (value) => value.replace(/\*\//g, "*\\/");
|
|
304
|
-
|
|
305
303
|
//#endregion
|
|
306
|
-
export { name, onBoot, onParse, server_exports, settings };
|
|
304
|
+
export { name, onBoot, onParse, server_exports, settings };
|
package/dist/postcss/index.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_postcss = require(
|
|
2
|
-
|
|
1
|
+
const require_postcss = require("../tasks/postcss.cjs");
|
|
3
2
|
//#region src/postcss/index.ts
|
|
4
3
|
function postcssPlugin(options = {}) {
|
|
5
4
|
return {
|
|
@@ -10,7 +9,5 @@ function postcssPlugin(options = {}) {
|
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
11
|
postcssPlugin.postcss = true;
|
|
13
|
-
var postcss_default = postcssPlugin;
|
|
14
|
-
|
|
15
12
|
//#endregion
|
|
16
|
-
module.exports =
|
|
13
|
+
module.exports = postcssPlugin;
|
package/dist/postcss/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { runPostcss } from "../tasks/postcss.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/postcss/index.ts
|
|
4
3
|
function postcssPlugin(options = {}) {
|
|
5
4
|
return {
|
|
@@ -10,7 +9,5 @@ function postcssPlugin(options = {}) {
|
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
11
|
postcssPlugin.postcss = true;
|
|
13
|
-
var postcss_default = postcssPlugin;
|
|
14
|
-
|
|
15
12
|
//#endregion
|
|
16
|
-
export {
|
|
13
|
+
export { postcssPlugin as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_shared = require("./shared.cjs");
|
|
3
3
|
//#region src/prop/at/runtime-only.ts
|
|
4
4
|
const atValuesCache = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
const buildQuery = (from, to) => {
|
|
@@ -52,11 +52,11 @@ const resolveContainerQuery = (api, key, name) => {
|
|
|
52
52
|
const resolveAtQuery = (api, contexts) => {
|
|
53
53
|
const atIndex = contexts.lastIndexOf("at");
|
|
54
54
|
if (atIndex !== -1 && contexts[atIndex + 1]) {
|
|
55
|
-
const containerInfo
|
|
56
|
-
if (containerInfo
|
|
57
|
-
const key
|
|
58
|
-
if (!key
|
|
59
|
-
return resolveContainerQuery(api, key
|
|
55
|
+
const containerInfo = require_shared.parseContainerContext(contexts[atIndex + 1]);
|
|
56
|
+
if (containerInfo) {
|
|
57
|
+
const key = contexts[atIndex + 2];
|
|
58
|
+
if (!key) return null;
|
|
59
|
+
return resolveContainerQuery(api, key, containerInfo.name);
|
|
60
60
|
}
|
|
61
61
|
const key = contexts[atIndex + 1];
|
|
62
62
|
return resolveMediaQuery(api, key);
|
|
@@ -83,8 +83,7 @@ const onInit = (api) => {
|
|
|
83
83
|
...api.breakpoints ?? {}
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
|
|
87
86
|
//#endregion
|
|
88
87
|
exports.name = name;
|
|
89
88
|
exports.onInit = onInit;
|
|
90
|
-
exports.resolveAtQuery = resolveAtQuery;
|
|
89
|
+
exports.resolveAtQuery = resolveAtQuery;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { baseAtValues, buildContainerQuery, buildMediaQuery, defaultBreakpoints, parseContainerContext, parseRangeKey } from "./shared.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/prop/at/runtime-only.ts
|
|
4
3
|
const atValuesCache = /* @__PURE__ */ new WeakMap();
|
|
5
4
|
const buildQuery = (from, to) => {
|
|
@@ -52,11 +51,11 @@ const resolveContainerQuery = (api, key, name) => {
|
|
|
52
51
|
const resolveAtQuery = (api, contexts) => {
|
|
53
52
|
const atIndex = contexts.lastIndexOf("at");
|
|
54
53
|
if (atIndex !== -1 && contexts[atIndex + 1]) {
|
|
55
|
-
const containerInfo
|
|
56
|
-
if (containerInfo
|
|
57
|
-
const key
|
|
58
|
-
if (!key
|
|
59
|
-
return resolveContainerQuery(api, key
|
|
54
|
+
const containerInfo = parseContainerContext(contexts[atIndex + 1]);
|
|
55
|
+
if (containerInfo) {
|
|
56
|
+
const key = contexts[atIndex + 2];
|
|
57
|
+
if (!key) return null;
|
|
58
|
+
return resolveContainerQuery(api, key, containerInfo.name);
|
|
60
59
|
}
|
|
61
60
|
const key = contexts[atIndex + 1];
|
|
62
61
|
return resolveMediaQuery(api, key);
|
|
@@ -83,6 +82,5 @@ const onInit = (api) => {
|
|
|
83
82
|
...api.breakpoints ?? {}
|
|
84
83
|
};
|
|
85
84
|
};
|
|
86
|
-
|
|
87
85
|
//#endregion
|
|
88
|
-
export { name, onInit, resolveAtQuery };
|
|
86
|
+
export { name, onInit, resolveAtQuery };
|
package/dist/prop/at/server.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_prop_pseudo_server = require("../pseudo/server.cjs");
|
|
4
|
+
const require_shared = require("./shared.cjs");
|
|
4
5
|
let _emotion_hash = require("@emotion/hash");
|
|
5
|
-
_emotion_hash =
|
|
6
|
-
|
|
6
|
+
_emotion_hash = require_runtime.__toESM(_emotion_hash);
|
|
7
7
|
//#region src/prop/at/server.ts
|
|
8
|
-
var server_exports = /* @__PURE__ */
|
|
9
|
-
DOWN: () =>
|
|
10
|
-
UP: () =>
|
|
8
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
9
|
+
DOWN: () => "-",
|
|
10
|
+
UP: () => "+",
|
|
11
11
|
dependencies: () => dependencies,
|
|
12
|
-
name: () =>
|
|
12
|
+
name: () => "at",
|
|
13
13
|
onBoot: () => onBoot,
|
|
14
14
|
onProp: () => onProp,
|
|
15
15
|
onReady: () => onReady,
|
|
@@ -33,8 +33,8 @@ const onBoot = async (api) => {
|
|
|
33
33
|
const breakpoints = api.breakpoints;
|
|
34
34
|
Object.entries(breakpoints).forEach(([name, [from, to]]) => [
|
|
35
35
|
["", [from, to]],
|
|
36
|
-
[
|
|
37
|
-
[
|
|
36
|
+
["+", [from, null]],
|
|
37
|
+
["-", [null, to]]
|
|
38
38
|
].forEach(([symbol, fromTo]) => breakpoints[`${name}${symbol}`] = fromTo));
|
|
39
39
|
Object.entries(breakpoints).forEach(([name, [from, to]]) => {
|
|
40
40
|
dependencies.add(name);
|
|
@@ -58,7 +58,7 @@ const onBoot = async (api) => {
|
|
|
58
58
|
api.file.js.dts.set("body", `pseudo:AtPropsShorthandsInterfaceEnd`, `}`).set("body", "$$:KeyframesProps", `export type $$KeyframesProps = {
|
|
59
59
|
[key: string]: $$FinalProps
|
|
60
60
|
}`).set("body", "$$:AtNamedProps", `export type $$AtNamedProps = {
|
|
61
|
-
[key in \`container_\${string}\`]?:
|
|
61
|
+
[key in \`container_\${string}\`]?: Properties['container'] | $$FinalProps
|
|
62
62
|
} & {
|
|
63
63
|
[key in \`keyframes_\${string}\`]?: $$KeyframesProps
|
|
64
64
|
}`).set("body", `$$:AtProps`, `export type $$AtProps = {
|
|
@@ -104,10 +104,10 @@ const onReady = async (api) => {
|
|
|
104
104
|
const updateFinalProps = (value) => {
|
|
105
105
|
const content = typeof value === "string" ? value : value?.content;
|
|
106
106
|
if (typeof content !== "string") return value;
|
|
107
|
-
if (!content.includes("
|
|
108
|
-
if (content.includes(`Omit<
|
|
109
|
-
return content.replace(" &
|
|
110
|
-
return ` & Omit<
|
|
107
|
+
if (!content.includes(" & Properties")) return content;
|
|
108
|
+
if (content.includes(`Omit<Properties, 'container'>`)) return content;
|
|
109
|
+
return content.replace(" & Properties", () => {
|
|
110
|
+
return ` & Omit<Properties, 'container'> & { container?: Properties['container'] | $$FinalProps }`;
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
api.file.js.dts.replace("body", "$$:FinalProps", updateFinalProps);
|
|
@@ -152,11 +152,11 @@ const resolveAtQuery = (api, contexts, key) => {
|
|
|
152
152
|
const resolveQueryFromContexts = (api, contexts) => {
|
|
153
153
|
const atIndex = contexts.lastIndexOf("at");
|
|
154
154
|
if (atIndex !== -1 && contexts[atIndex + 1]) {
|
|
155
|
-
const containerInfo
|
|
156
|
-
if (containerInfo
|
|
157
|
-
const key
|
|
158
|
-
if (!key
|
|
159
|
-
return resolveContainerQuery(api, key
|
|
155
|
+
const containerInfo = require_shared.parseContainerContext(contexts[atIndex + 1]);
|
|
156
|
+
if (containerInfo) {
|
|
157
|
+
const key = contexts[atIndex + 2];
|
|
158
|
+
if (!key) return null;
|
|
159
|
+
return resolveContainerQuery(api, key, containerInfo.name);
|
|
160
160
|
}
|
|
161
161
|
const key = contexts[atIndex + 1];
|
|
162
162
|
return resolveMediaQuery(api, key);
|
|
@@ -288,7 +288,6 @@ const onProp = async (api, { name, prop, contexts, preferVariables, file }) => {
|
|
|
288
288
|
await processEntries(isAt ? prop.value : { [contextName]: { value: prop.value } }, contexts);
|
|
289
289
|
if (isAt) contexts.pop();
|
|
290
290
|
};
|
|
291
|
-
|
|
292
291
|
//#endregion
|
|
293
292
|
exports.DOWN = DOWN;
|
|
294
293
|
exports.UP = UP;
|
|
@@ -297,10 +296,10 @@ exports.name = name;
|
|
|
297
296
|
exports.onBoot = onBoot;
|
|
298
297
|
exports.onProp = onProp;
|
|
299
298
|
exports.onReady = onReady;
|
|
300
|
-
Object.defineProperty(exports,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
299
|
+
Object.defineProperty(exports, "server_exports", {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function() {
|
|
302
|
+
return server_exports;
|
|
303
|
+
}
|
|
305
304
|
});
|
|
306
|
-
exports.values = values;
|
|
305
|
+
exports.values = values;
|
package/dist/prop/at/server.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { dependencies as dependencies$1 } from "../pseudo/server.mjs";
|
|
3
3
|
import { baseAtValues, buildContainerQuery, buildKeyframesRule, buildMediaQuery, defaultBreakpoints, normalizeKeyframeStep, parseContainerContext, parseKeyframesContext, parseRangeKey } from "./shared.mjs";
|
|
4
4
|
import hash from "@emotion/hash";
|
|
5
|
-
|
|
6
5
|
//#region src/prop/at/server.ts
|
|
7
6
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
DOWN: () =>
|
|
9
|
-
UP: () =>
|
|
7
|
+
DOWN: () => "-",
|
|
8
|
+
UP: () => "+",
|
|
10
9
|
dependencies: () => dependencies,
|
|
11
|
-
name: () =>
|
|
10
|
+
name: () => "at",
|
|
12
11
|
onBoot: () => onBoot,
|
|
13
12
|
onProp: () => onProp,
|
|
14
13
|
onReady: () => onReady,
|
|
@@ -32,8 +31,8 @@ const onBoot = async (api) => {
|
|
|
32
31
|
const breakpoints = api.breakpoints;
|
|
33
32
|
Object.entries(breakpoints).forEach(([name, [from, to]]) => [
|
|
34
33
|
["", [from, to]],
|
|
35
|
-
[
|
|
36
|
-
[
|
|
34
|
+
["+", [from, null]],
|
|
35
|
+
["-", [null, to]]
|
|
37
36
|
].forEach(([symbol, fromTo]) => breakpoints[`${name}${symbol}`] = fromTo));
|
|
38
37
|
Object.entries(breakpoints).forEach(([name, [from, to]]) => {
|
|
39
38
|
dependencies.add(name);
|
|
@@ -57,7 +56,7 @@ const onBoot = async (api) => {
|
|
|
57
56
|
api.file.js.dts.set("body", `pseudo:AtPropsShorthandsInterfaceEnd`, `}`).set("body", "$$:KeyframesProps", `export type $$KeyframesProps = {
|
|
58
57
|
[key: string]: $$FinalProps
|
|
59
58
|
}`).set("body", "$$:AtNamedProps", `export type $$AtNamedProps = {
|
|
60
|
-
[key in \`container_\${string}\`]?:
|
|
59
|
+
[key in \`container_\${string}\`]?: Properties['container'] | $$FinalProps
|
|
61
60
|
} & {
|
|
62
61
|
[key in \`keyframes_\${string}\`]?: $$KeyframesProps
|
|
63
62
|
}`).set("body", `$$:AtProps`, `export type $$AtProps = {
|
|
@@ -103,10 +102,10 @@ const onReady = async (api) => {
|
|
|
103
102
|
const updateFinalProps = (value) => {
|
|
104
103
|
const content = typeof value === "string" ? value : value?.content;
|
|
105
104
|
if (typeof content !== "string") return value;
|
|
106
|
-
if (!content.includes("
|
|
107
|
-
if (content.includes(`Omit<
|
|
108
|
-
return content.replace(" &
|
|
109
|
-
return ` & Omit<
|
|
105
|
+
if (!content.includes(" & Properties")) return content;
|
|
106
|
+
if (content.includes(`Omit<Properties, 'container'>`)) return content;
|
|
107
|
+
return content.replace(" & Properties", () => {
|
|
108
|
+
return ` & Omit<Properties, 'container'> & { container?: Properties['container'] | $$FinalProps }`;
|
|
110
109
|
});
|
|
111
110
|
};
|
|
112
111
|
api.file.js.dts.replace("body", "$$:FinalProps", updateFinalProps);
|
|
@@ -151,11 +150,11 @@ const resolveAtQuery = (api, contexts, key) => {
|
|
|
151
150
|
const resolveQueryFromContexts = (api, contexts) => {
|
|
152
151
|
const atIndex = contexts.lastIndexOf("at");
|
|
153
152
|
if (atIndex !== -1 && contexts[atIndex + 1]) {
|
|
154
|
-
const containerInfo
|
|
155
|
-
if (containerInfo
|
|
156
|
-
const key
|
|
157
|
-
if (!key
|
|
158
|
-
return resolveContainerQuery(api, key
|
|
153
|
+
const containerInfo = parseContainerContext(contexts[atIndex + 1]);
|
|
154
|
+
if (containerInfo) {
|
|
155
|
+
const key = contexts[atIndex + 2];
|
|
156
|
+
if (!key) return null;
|
|
157
|
+
return resolveContainerQuery(api, key, containerInfo.name);
|
|
159
158
|
}
|
|
160
159
|
const key = contexts[atIndex + 1];
|
|
161
160
|
return resolveMediaQuery(api, key);
|
|
@@ -287,6 +286,5 @@ const onProp = async (api, { name, prop, contexts, preferVariables, file }) => {
|
|
|
287
286
|
await processEntries(isAt ? prop.value : { [contextName]: { value: prop.value } }, contexts);
|
|
288
287
|
if (isAt) contexts.pop();
|
|
289
288
|
};
|
|
290
|
-
|
|
291
289
|
//#endregion
|
|
292
|
-
export { DOWN, UP, dependencies, name, onBoot, onProp, onReady, server_exports, values };
|
|
290
|
+
export { DOWN, UP, dependencies, name, onBoot, onProp, onReady, server_exports, values };
|
package/dist/prop/at/shared.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/prop/at/shared.ts
|
|
3
2
|
const defaultBreakpoints = {
|
|
4
3
|
micro: [0, 375],
|
|
@@ -140,7 +139,6 @@ const parseKeyframesContext = (context) => {
|
|
|
140
139
|
}
|
|
141
140
|
return null;
|
|
142
141
|
};
|
|
143
|
-
|
|
144
142
|
//#endregion
|
|
145
143
|
exports.baseAtValues = baseAtValues;
|
|
146
144
|
exports.buildContainerQuery = buildContainerQuery;
|
|
@@ -150,4 +148,4 @@ exports.defaultBreakpoints = defaultBreakpoints;
|
|
|
150
148
|
exports.normalizeKeyframeStep = normalizeKeyframeStep;
|
|
151
149
|
exports.parseContainerContext = parseContainerContext;
|
|
152
150
|
exports.parseKeyframesContext = parseKeyframesContext;
|
|
153
|
-
exports.parseRangeKey = parseRangeKey;
|
|
151
|
+
exports.parseRangeKey = parseRangeKey;
|
package/dist/prop/at/shared.mjs
CHANGED
|
@@ -139,6 +139,5 @@ const parseKeyframesContext = (context) => {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
};
|
|
142
|
-
|
|
143
142
|
//#endregion
|
|
144
|
-
export { baseAtValues, buildContainerQuery, buildKeyframesRule, buildMediaQuery, defaultBreakpoints, normalizeKeyframeStep, parseContainerContext, parseKeyframesContext, parseRangeKey };
|
|
143
|
+
export { baseAtValues, buildContainerQuery, buildKeyframesRule, buildMediaQuery, defaultBreakpoints, normalizeKeyframeStep, parseContainerContext, parseKeyframesContext, parseRangeKey };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_selectors = require("./selectors.cjs");
|
|
3
|
+
const require_shared = require("./shared.cjs");
|
|
4
4
|
//#region src/prop/bosswind/browser.ts
|
|
5
5
|
const name = "bosswind";
|
|
6
6
|
const onInit = (api) => {
|
|
@@ -14,8 +14,7 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
14
14
|
const selectorMap = require_selectors.getBosswindSelectorMap(rewritten);
|
|
15
15
|
if (selectorMap) require_selectors.setBosswindSelectorMap(input, selectorMap);
|
|
16
16
|
};
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
exports.name = name;
|
|
20
19
|
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
21
|
-
exports.onInit = onInit;
|
|
20
|
+
exports.onInit = onInit;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getBosswindSelectorMap, setBosswindSelectorMap } from "./selectors.mjs";
|
|
2
2
|
import { registerBosswindDictionary, rewriteBosswindInput } from "./shared.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/bosswind/browser.ts
|
|
5
4
|
const name = "bosswind";
|
|
6
5
|
const onInit = (api) => {
|
|
@@ -14,6 +13,5 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
14
13
|
const selectorMap = getBosswindSelectorMap(rewritten);
|
|
15
14
|
if (selectorMap) setBosswindSelectorMap(input, selectorMap);
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
|
-
export { name, onBrowserObjectStart, onInit };
|
|
17
|
+
export { name, onBrowserObjectStart, onInit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_selectors = require("./selectors.cjs");
|
|
3
|
+
const require_shared = require("./shared.cjs");
|
|
4
4
|
//#region src/prop/bosswind/runtime-only.ts
|
|
5
5
|
const name = "bosswind";
|
|
6
6
|
const onInit = (api) => {
|
|
@@ -14,8 +14,7 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
14
14
|
const selectorMap = require_selectors.getBosswindSelectorMap(rewritten);
|
|
15
15
|
if (selectorMap) require_selectors.setBosswindSelectorMap(input, selectorMap);
|
|
16
16
|
};
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
exports.name = name;
|
|
20
19
|
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
21
|
-
exports.onInit = onInit;
|
|
20
|
+
exports.onInit = onInit;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getBosswindSelectorMap, setBosswindSelectorMap } from "./selectors.mjs";
|
|
2
2
|
import { registerBosswindDictionary, rewriteBosswindInput } from "./shared.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/bosswind/runtime-only.ts
|
|
5
4
|
const name = "bosswind";
|
|
6
5
|
const onInit = (api) => {
|
|
@@ -14,6 +13,5 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
14
13
|
const selectorMap = getBosswindSelectorMap(rewritten);
|
|
15
14
|
if (selectorMap) setBosswindSelectorMap(input, selectorMap);
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
|
-
export { name, onBrowserObjectStart, onInit };
|
|
17
|
+
export { name, onBrowserObjectStart, onInit };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/prop/bosswind/selectors.ts
|
|
3
2
|
const bosswindSelectorKey = Symbol.for("bosswind.selectorMap");
|
|
4
3
|
const getBosswindSelectorMap = (input) => {
|
|
@@ -12,7 +11,6 @@ const setBosswindSelectorMap = (input, selectors) => {
|
|
|
12
11
|
configurable: true
|
|
13
12
|
});
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
exports.getBosswindSelectorMap = getBosswindSelectorMap;
|
|
18
|
-
exports.setBosswindSelectorMap = setBosswindSelectorMap;
|
|
16
|
+
exports.setBosswindSelectorMap = setBosswindSelectorMap;
|