@bstage-sdk/core 0.8.6 → 0.8.7
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/index.cjs +11 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +11 -1
- package/docs/SLOT_CATALOG_V2.md +13 -0
- package/docs/assets/slots/home.svg +67 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -174,7 +174,7 @@ var HttpTimeoutError = class extends Error {
|
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
// src/version.ts
|
|
177
|
-
var VERSION = "0.8.
|
|
177
|
+
var VERSION = "0.8.7";
|
|
178
178
|
|
|
179
179
|
// src/client/BstageClient.ts
|
|
180
180
|
function resolveBaseUrl() {
|
|
@@ -630,6 +630,16 @@ var SLOT_CATALOG_V2 = {
|
|
|
630
630
|
description: "\uCEE4\uBBA4\uB2C8\uD2F0 \uBCF4\uB4DC \uBAA9\uB85D \u2014 \uBAA9\uB85D \uC704",
|
|
631
631
|
context: {}
|
|
632
632
|
},
|
|
633
|
+
// 유저 — 홈 (`/home`. 루트 메뉴가 홈인 스페이스는 `/`도 여기로 온다. 어드민이 구성한 섹션 묶음을 SectionPage가 그리므로 샵 홈과 같은 주입 지점 패턴)
|
|
634
|
+
// 섹션 구성이 스페이스마다 달라 섹션 사이 자리는 특정할 수 없다 — 묶음 위·아래 두 자리만 둔다
|
|
635
|
+
"user.home.section:before": {
|
|
636
|
+
description: "\uD648 \u2014 \uC139\uC158 \uBB36\uC74C \uC704",
|
|
637
|
+
context: {}
|
|
638
|
+
},
|
|
639
|
+
"user.home.section:after": {
|
|
640
|
+
description: "\uD648 \u2014 \uC139\uC158 \uBB36\uC74C \uC544\uB798 (footer \uC704)",
|
|
641
|
+
context: {}
|
|
642
|
+
},
|
|
633
643
|
// 유저 — 콘텐츠 홈 (결정-018에 1차 명시. curation은 신설, contents-section은 옛 contents.home.contents.before/after 이전)
|
|
634
644
|
"user.contents-home.curation:after": {
|
|
635
645
|
description: "\uCF58\uD150\uCE20 \uD648 \u2014 \uD050\uB808\uC774\uC158 \uC139\uC158 \uC544\uB798",
|
package/dist/index.d.cts
CHANGED
|
@@ -779,6 +779,14 @@ declare const SLOT_CATALOG_V2: {
|
|
|
779
779
|
readonly description: "커뮤니티 보드 목록 — 목록 위";
|
|
780
780
|
readonly context: {};
|
|
781
781
|
};
|
|
782
|
+
readonly 'user.home.section:before': {
|
|
783
|
+
readonly description: "홈 — 섹션 묶음 위";
|
|
784
|
+
readonly context: {};
|
|
785
|
+
};
|
|
786
|
+
readonly 'user.home.section:after': {
|
|
787
|
+
readonly description: "홈 — 섹션 묶음 아래 (footer 위)";
|
|
788
|
+
readonly context: {};
|
|
789
|
+
};
|
|
782
790
|
readonly 'user.contents-home.curation:after': {
|
|
783
791
|
readonly description: "콘텐츠 홈 — 큐레이션 섹션 아래";
|
|
784
792
|
readonly context: {};
|
package/dist/index.d.ts
CHANGED
|
@@ -779,6 +779,14 @@ declare const SLOT_CATALOG_V2: {
|
|
|
779
779
|
readonly description: "커뮤니티 보드 목록 — 목록 위";
|
|
780
780
|
readonly context: {};
|
|
781
781
|
};
|
|
782
|
+
readonly 'user.home.section:before': {
|
|
783
|
+
readonly description: "홈 — 섹션 묶음 위";
|
|
784
|
+
readonly context: {};
|
|
785
|
+
};
|
|
786
|
+
readonly 'user.home.section:after': {
|
|
787
|
+
readonly description: "홈 — 섹션 묶음 아래 (footer 위)";
|
|
788
|
+
readonly context: {};
|
|
789
|
+
};
|
|
782
790
|
readonly 'user.contents-home.curation:after': {
|
|
783
791
|
readonly description: "콘텐츠 홈 — 큐레이션 섹션 아래";
|
|
784
792
|
readonly context: {};
|
package/dist/index.js
CHANGED
|
@@ -119,7 +119,7 @@ var HttpTimeoutError = class extends Error {
|
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
// src/version.ts
|
|
122
|
-
var VERSION = "0.8.
|
|
122
|
+
var VERSION = "0.8.7";
|
|
123
123
|
|
|
124
124
|
// src/client/BstageClient.ts
|
|
125
125
|
function resolveBaseUrl() {
|
|
@@ -575,6 +575,16 @@ var SLOT_CATALOG_V2 = {
|
|
|
575
575
|
description: "\uCEE4\uBBA4\uB2C8\uD2F0 \uBCF4\uB4DC \uBAA9\uB85D \u2014 \uBAA9\uB85D \uC704",
|
|
576
576
|
context: {}
|
|
577
577
|
},
|
|
578
|
+
// 유저 — 홈 (`/home`. 루트 메뉴가 홈인 스페이스는 `/`도 여기로 온다. 어드민이 구성한 섹션 묶음을 SectionPage가 그리므로 샵 홈과 같은 주입 지점 패턴)
|
|
579
|
+
// 섹션 구성이 스페이스마다 달라 섹션 사이 자리는 특정할 수 없다 — 묶음 위·아래 두 자리만 둔다
|
|
580
|
+
"user.home.section:before": {
|
|
581
|
+
description: "\uD648 \u2014 \uC139\uC158 \uBB36\uC74C \uC704",
|
|
582
|
+
context: {}
|
|
583
|
+
},
|
|
584
|
+
"user.home.section:after": {
|
|
585
|
+
description: "\uD648 \u2014 \uC139\uC158 \uBB36\uC74C \uC544\uB798 (footer \uC704)",
|
|
586
|
+
context: {}
|
|
587
|
+
},
|
|
578
588
|
// 유저 — 콘텐츠 홈 (결정-018에 1차 명시. curation은 신설, contents-section은 옛 contents.home.contents.before/after 이전)
|
|
579
589
|
"user.contents-home.curation:after": {
|
|
580
590
|
description: "\uCF58\uD150\uCE20 \uD648 \u2014 \uD050\uB808\uC774\uC158 \uC139\uC158 \uC544\uB798",
|
package/docs/SLOT_CATALOG_V2.md
CHANGED
|
@@ -81,6 +81,19 @@ export default createTemplate(ContentBadge, {
|
|
|
81
81
|
|
|
82
82
|
## 유저 (`target: user`)
|
|
83
83
|
|
|
84
|
+
### 홈 — `/home`
|
|
85
|
+
|
|
86
|
+
어드민이 구성한 섹션 묶음을 그리는 스페이스 홈. 루트 메뉴가 홈인 스페이스는 `/`도 이 페이지로 온다(루트가 샵·콘텐츠 등 다른 페이지면 `/home`에서만 보인다). 섹션 구성이 스페이스마다 달라 섹션 사이에는 자리를 두지 않고, 묶음 위·아래 두 자리만 연다.
|
|
87
|
+
|
|
88
|
+
홈의 첫 섹션은 상단 바 아래로 당겨 그리는 브랜드 커버인 경우가 많다. `section:before`는 그 위에 놓이므로 흐름 높이를 차지하지 않는 위젯(팝업·모션)에 알맞고, 인라인 위젯은 아래쪽 여백을 넉넉히 둔다.
|
|
89
|
+
|
|
90
|
+
| 슬롯 키 | 위치 | context |
|
|
91
|
+
| -------------------------- | -------------------------- | ------- |
|
|
92
|
+
| `user.home.section:before` | 섹션 묶음 위 | — |
|
|
93
|
+
| `user.home.section:after` | 섹션 묶음 아래 (footer 위) | — |
|
|
94
|
+
|
|
95
|
+

|
|
96
|
+
|
|
84
97
|
### 콘텐츠 홈 — `/contents`
|
|
85
98
|
|
|
86
99
|
| 슬롯 키 | 위치 | context |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 951" width="720" height="951" role="img" aria-label="홈 페이지의 섹션 구성과 슬롯 자리">
|
|
2
|
+
<title>홈 — 슬롯 배치</title>
|
|
3
|
+
<rect x="0" y="0" width="720" height="951" rx="0" fill="#16191E"/>
|
|
4
|
+
<text x="8" y="941" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="10">PC · 모바일 섹션 순서 동일</text>
|
|
5
|
+
<text x="712" y="941" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="10" text-anchor="end">1440 × 약 1,850px · 50% 축소</text>
|
|
6
|
+
<rect x="0" y="0" width="720" height="36" rx="0" fill="#22272F"/>
|
|
7
|
+
<circle cx="224" cy="18" r="8" fill="#39414C"/>
|
|
8
|
+
<rect x="298" y="15" width="26" height="6" rx="3" fill="#5A6472"/>
|
|
9
|
+
<rect x="334" y="15" width="22" height="6" rx="3" fill="#39414C"/>
|
|
10
|
+
<rect x="366" y="15" width="18" height="6" rx="3" fill="#39414C"/>
|
|
11
|
+
<rect x="394" y="15" width="42" height="6" rx="3" fill="#39414C"/>
|
|
12
|
+
<rect x="446" y="15" width="24" height="6" rx="3" fill="#39414C"/>
|
|
13
|
+
<rect x="480" y="15" width="36" height="6" rx="3" fill="#39414C"/>
|
|
14
|
+
<circle cx="506" cy="18" r="6" fill="#39414C"/>
|
|
15
|
+
<circle cx="530" cy="18" r="6" fill="#39414C"/>
|
|
16
|
+
<circle cx="554" cy="18" r="6" fill="#39414C"/>
|
|
17
|
+
<circle cx="578" cy="18" r="6" fill="#39414C"/>
|
|
18
|
+
<circle cx="602" cy="18" r="6" fill="#39414C"/>
|
|
19
|
+
<rect x="2" y="44" width="716" height="55" rx="4" fill="#1E2536" stroke="#F0A030" stroke-width="1.6"/>
|
|
20
|
+
<text x="14" y="64" fill="#F0A030" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="8" font-weight="700" letter-spacing="1.1">▾ V2 SLOT</text>
|
|
21
|
+
<text x="14" y="84" fill="#EDF1F6" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="12.5">user.home.section:before</text>
|
|
22
|
+
<text x="706" y="84" fill="#616D7D" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="10" text-anchor="end">context 없음</text>
|
|
23
|
+
<rect x="87.5" y="106" width="541" height="155" rx="4" fill="#2A3038"/>
|
|
24
|
+
<text x="712" y="183.5" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="9" text-anchor="end">브랜드 커버</text>
|
|
25
|
+
<rect x="104" y="285" width="72" height="9" rx="3" fill="#5A6472"/>
|
|
26
|
+
<rect x="584" y="286.5" width="28" height="6" rx="3" fill="#39414C"/>
|
|
27
|
+
<rect x="104" y="305" width="118" height="115" rx="4" fill="#2A3038"/>
|
|
28
|
+
<rect x="234" y="305" width="118" height="115" rx="4" fill="#2A3038"/>
|
|
29
|
+
<rect x="364" y="305" width="118" height="115" rx="4" fill="#2A3038"/>
|
|
30
|
+
<rect x="494" y="305" width="118" height="115" rx="4" fill="#2A3038"/>
|
|
31
|
+
<rect x="104" y="429" width="52" height="6" rx="3" fill="#39414C"/>
|
|
32
|
+
<rect x="234" y="429" width="40" height="6" rx="3" fill="#39414C"/>
|
|
33
|
+
<rect x="364" y="429" width="66" height="6" rx="3" fill="#39414C"/>
|
|
34
|
+
<rect x="494" y="429" width="34" height="6" rx="3" fill="#39414C"/>
|
|
35
|
+
<text x="712" y="360" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="9" text-anchor="end">피드</text>
|
|
36
|
+
<rect x="2" y="455" width="716" height="85" rx="0" fill="#2A3038"/>
|
|
37
|
+
<rect x="278" y="455" width="164" height="85" rx="0" fill="#333B45"/>
|
|
38
|
+
<text x="712" y="497.5" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="9" text-anchor="end">배너</text>
|
|
39
|
+
<rect x="104" y="560" width="86" height="9" rx="3" fill="#5A6472"/>
|
|
40
|
+
<rect x="584" y="561.5" width="28" height="6" rx="3" fill="#39414C"/>
|
|
41
|
+
<rect x="104" y="580" width="118" height="67.5" rx="4" fill="#2A3038"/>
|
|
42
|
+
<rect x="234" y="580" width="118" height="67.5" rx="4" fill="#2A3038"/>
|
|
43
|
+
<rect x="364" y="580" width="118" height="67.5" rx="4" fill="#2A3038"/>
|
|
44
|
+
<rect x="494" y="580" width="118" height="67.5" rx="4" fill="#2A3038"/>
|
|
45
|
+
<rect x="104" y="656.5" width="52" height="6" rx="3" fill="#39414C"/>
|
|
46
|
+
<rect x="234" y="656.5" width="40" height="6" rx="3" fill="#39414C"/>
|
|
47
|
+
<rect x="364" y="656.5" width="66" height="6" rx="3" fill="#39414C"/>
|
|
48
|
+
<rect x="494" y="656.5" width="34" height="6" rx="3" fill="#39414C"/>
|
|
49
|
+
<text x="712" y="610" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="9" text-anchor="end">섹션 묶음</text>
|
|
50
|
+
<rect x="2" y="680" width="716" height="55" rx="4" fill="#1E2536" stroke="#F0A030" stroke-width="1.6"/>
|
|
51
|
+
<text x="14" y="700" fill="#F0A030" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="8" font-weight="700" letter-spacing="1.1">▾ V2 SLOT</text>
|
|
52
|
+
<text x="14" y="720" fill="#EDF1F6" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="12.5">user.home.section:after</text>
|
|
53
|
+
<text x="706" y="720" fill="#616D7D" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="10" text-anchor="end">context 없음</text>
|
|
54
|
+
<rect x="104" y="767" width="92" height="6" rx="3" fill="#39414C"/>
|
|
55
|
+
<rect x="104" y="779" width="80" height="6" rx="3" fill="#39414C"/>
|
|
56
|
+
<rect x="104" y="791" width="104" height="6" rx="3" fill="#39414C"/>
|
|
57
|
+
<rect x="104" y="803" width="70" height="6" rx="3" fill="#39414C"/>
|
|
58
|
+
<rect x="104" y="815" width="96" height="6" rx="3" fill="#39414C"/>
|
|
59
|
+
<rect x="104" y="827" width="58" height="6" rx="3" fill="#39414C"/>
|
|
60
|
+
<rect x="104" y="839" width="110" height="6" rx="3" fill="#39414C"/>
|
|
61
|
+
<line x1="92" y1="866" x2="624" y2="866" stroke="#2A3038" stroke-width="1"/>
|
|
62
|
+
<rect x="238" y="880" width="44" height="6" rx="3" fill="#4E5867"/>
|
|
63
|
+
<rect x="292" y="880" width="96" height="6" rx="3" fill="#39414C"/>
|
|
64
|
+
<rect x="398" y="880" width="22" height="6" rx="3" fill="#39414C"/>
|
|
65
|
+
<rect x="430" y="880" width="34" height="6" rx="3" fill="#39414C"/>
|
|
66
|
+
<text x="712" y="840" fill="#4E5867" font-family="ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif" font-size="9" text-anchor="end">푸터</text>
|
|
67
|
+
</svg>
|