@bstage-sdk/cli 0.15.0 → 0.16.0

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.
@@ -1141,11 +1141,13 @@ function renderFallbackCss(t, opts) {
1141
1141
  const p = opts.prefix;
1142
1142
  const flat = Object.entries(t.flatColors).map(([slug, v]) => ` ${cssVarName(slug, p, "flat")}: ${v};`).join("\n");
1143
1143
  const lightColors = colorLines(t, p, "light");
1144
- let css = `/* ================================================================
1144
+ const frame = opts.target === "frame";
1145
+ const header = frame ? `/* bstage \uB514\uC790\uC778 \uD1A0\uD070 \u2014 \uACA9\uB9AC \uD504\uB808\uC784 (${p}). \uD638\uC2A4\uD2B8 :root\uB97C \uC0C1\uC18D\uD558\uC9C0 \uBABB\uD558\uB294 \uD504\uB808\uC784 \uBB38\uC11C\uC6A9 */` : `/* ================================================================
1145
1146
  * bstage \uB514\uC790\uC778 \uD1A0\uD070 \u2014 dev fallback (${p})
1146
1147
  * @bstage-sdk/design \uC0DD\uC131\uBB3C. \uAC1C\uBC1C/\uBBF8\uB9AC\uBCF4\uAE30 \uC804\uC6A9(:root fallback).
1147
1148
  * \uBC30\uD3EC \uC2DC\uC5D4 \uD50C\uB7AB\uD3FC :root \uAC12\uC744 \uC0C1\uC18D\uD558\uBA70 \uC774 \uD30C\uC77C\uC740 \uBC88\uB4E4\uB418\uC9C0 \uC54A\uB294\uB2E4.
1148
- * ================================================================ */
1149
+ * ================================================================ */`;
1150
+ let css = `${header}
1149
1151
 
1150
1152
  :root {
1151
1153
  ${lightColors}
@@ -1157,13 +1159,16 @@ ${flat}
1157
1159
  `;
1158
1160
  if (opts.dark) {
1159
1161
  const darkColors = colorLines(t, p, "dark");
1160
- css += `
1162
+ if (!frame) {
1163
+ css += `
1161
1164
  @media (prefers-color-scheme: dark) {
1162
1165
  :root:not([data-bspoke="light"]) {
1163
1166
  ${darkColors.replace(/^ {2}/gm, " ")}
1164
1167
  }
1165
1168
  }
1166
-
1169
+ `;
1170
+ }
1171
+ css += `
1167
1172
  :root[data-bspoke="dark"],
1168
1173
  :root.dark {
1169
1174
  ${darkColors}
@@ -1680,11 +1685,13 @@ function renderFallbackCss2(t, opts) {
1680
1685
  const p = opts.prefix;
1681
1686
  const flat = Object.entries(t.flatColors).map(([slug, v]) => ` ${cssVarName2(slug, p, "flat")}: ${v};`).join("\n");
1682
1687
  const lightColors = colorLines2(t, p, "light");
1683
- let css = `/* ================================================================
1688
+ const frame = opts.target === "frame";
1689
+ const header = frame ? `/* bstage \uB514\uC790\uC778 \uD1A0\uD070 \u2014 \uACA9\uB9AC \uD504\uB808\uC784 (${p}). \uD638\uC2A4\uD2B8 :root\uB97C \uC0C1\uC18D\uD558\uC9C0 \uBABB\uD558\uB294 \uD504\uB808\uC784 \uBB38\uC11C\uC6A9 */` : `/* ================================================================
1684
1690
  * bstage \uB514\uC790\uC778 \uD1A0\uD070 \u2014 dev fallback (${p})
1685
1691
  * @bstage-sdk/design \uC0DD\uC131\uBB3C. \uAC1C\uBC1C/\uBBF8\uB9AC\uBCF4\uAE30 \uC804\uC6A9(:root fallback).
1686
1692
  * \uBC30\uD3EC \uC2DC\uC5D4 \uD50C\uB7AB\uD3FC :root \uAC12\uC744 \uC0C1\uC18D\uD558\uBA70 \uC774 \uD30C\uC77C\uC740 \uBC88\uB4E4\uB418\uC9C0 \uC54A\uB294\uB2E4.
1687
- * ================================================================ */
1693
+ * ================================================================ */`;
1694
+ let css = `${header}
1688
1695
 
1689
1696
  :root {
1690
1697
  ${lightColors}
@@ -1696,13 +1703,16 @@ ${flat}
1696
1703
  `;
1697
1704
  if (opts.dark) {
1698
1705
  const darkColors = colorLines2(t, p, "dark");
1699
- css += `
1706
+ if (!frame) {
1707
+ css += `
1700
1708
  @media (prefers-color-scheme: dark) {
1701
1709
  :root:not([data-bspoke="light"]) {
1702
1710
  ${darkColors.replace(/^ {2}/gm, " ")}
1703
1711
  }
1704
1712
  }
1705
-
1713
+ `;
1714
+ }
1715
+ css += `
1706
1716
  :root[data-bspoke="dark"],
1707
1717
  :root.dark {
1708
1718
  ${darkColors}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  isPublicPhase,
18
18
  resolvePhase,
19
19
  resolveProjectTarget
20
- } from "./chunk-CBXQOCYI.js";
20
+ } from "./chunk-HFKGLLP3.js";
21
21
 
22
22
  // src/index.ts
23
23
  import { readFileSync as readFileSync6 } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  appKeyEnvDefine,
4
4
  bstageDevPlugin,
5
5
  createViteConfig
6
- } from "../chunk-CBXQOCYI.js";
6
+ } from "../chunk-HFKGLLP3.js";
7
7
  export {
8
8
  appKeyEnvAliasPlugin,
9
9
  appKeyEnvDefine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bstage-sdk/cli",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "bstage SDK CLI — build b.stage templates",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,14 +32,14 @@
32
32
  "liquidjs": "^10.24.0",
33
33
  "picocolors": "^1.1.1",
34
34
  "vite": "^7.0.0",
35
- "@bstage-sdk/ai-toolkit": "0.15.0",
36
- "@bstage-sdk/core": "0.15.0"
35
+ "@bstage-sdk/core": "0.16.0",
36
+ "@bstage-sdk/ai-toolkit": "0.16.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^25.5.0",
40
40
  "tsup": "^8.0.0",
41
41
  "typescript": "^5.5.0",
42
- "@bstage-sdk/design": "0.15.0"
42
+ "@bstage-sdk/design": "0.16.0"
43
43
  },
44
44
  "license": "MIT",
45
45
  "scripts": {