botc-character-sheet 0.7.0 → 0.9.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.
- package/README.md +2 -2
- package/dist/CharacterSheet.d.ts +3 -3
- package/dist/CharacterSheet.d.ts.map +1 -1
- package/dist/SheetBack.d.ts +6 -2
- package/dist/SheetBack.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +199 -177
- package/dist/style.css +1 -1
- package/dist/types.d.ts +5 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/minorWordFormatter.d.ts +3 -0
- package/dist/utils/minorWordFormatter.d.ts.map +1 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ function App() {
|
|
|
35
35
|
showSwirls={true}
|
|
36
36
|
solidTitle={false}
|
|
37
37
|
iconScale={1.6}
|
|
38
|
-
|
|
38
|
+
appearance="normal"
|
|
39
39
|
/>
|
|
40
40
|
<SheetBack
|
|
41
41
|
title="My Custom Script"
|
|
@@ -62,7 +62,7 @@ Main character sheet component with parchment background and styled sections.
|
|
|
62
62
|
- `showSwirls` (boolean): Show decorative swirls (default: true)
|
|
63
63
|
- `solidTitle` (boolean): Use solid title background (default: false)
|
|
64
64
|
- `iconScale` (number): Scale character icons (default: 1.6)
|
|
65
|
-
- `
|
|
65
|
+
- `appearance` ("normal" | "compact" | "super-compact"): Layout density (default: "normal")
|
|
66
66
|
- `includeMargins` (boolean): Add margins for printing (default: false)
|
|
67
67
|
|
|
68
68
|
### SheetBack
|
package/dist/CharacterSheet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GroupedCharacters, Jinx } from "./types";
|
|
2
1
|
import "./CharacterSheet.css";
|
|
2
|
+
import { GroupedCharacters, Jinx } from "./types";
|
|
3
3
|
interface CharacterSheetProps {
|
|
4
4
|
title: string;
|
|
5
5
|
author?: string;
|
|
@@ -10,8 +10,8 @@ interface CharacterSheetProps {
|
|
|
10
10
|
includeMargins?: boolean;
|
|
11
11
|
solidTitle?: boolean;
|
|
12
12
|
iconScale?: number;
|
|
13
|
-
|
|
13
|
+
appearance?: "normal" | "compact" | "super-compact";
|
|
14
14
|
}
|
|
15
|
-
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale,
|
|
15
|
+
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale, appearance, }: CharacterSheetProps): import("preact").JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=CharacterSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../src/CharacterSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../src/CharacterSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAqB,MAAM,SAAS,CAAC;AAErE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAC;CACrD;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAiB,EACjB,MAAW,EACX,UAAiB,EACjB,cAAsB,EACtB,UAAkB,EAClB,SAAe,EACf,UAAqB,GACtB,EAAE,mBAAmB,gCAkGrB"}
|
package/dist/SheetBack.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { JSX } from "preact/jsx-runtime";
|
|
2
1
|
import "./SheetBack.css";
|
|
2
|
+
import { NightOrderEntry } from "./types";
|
|
3
3
|
type SheetBackProps = {
|
|
4
4
|
title: string;
|
|
5
5
|
color: string;
|
|
6
6
|
includeMargins: boolean;
|
|
7
|
+
formatMinorWords?: boolean;
|
|
8
|
+
displayNightOrder?: boolean;
|
|
9
|
+
firstNightOrder?: NightOrderEntry[];
|
|
10
|
+
otherNightOrder?: NightOrderEntry[];
|
|
7
11
|
};
|
|
8
|
-
export declare const SheetBack: ({ title, color, includeMargins }: SheetBackProps) => JSX.Element;
|
|
12
|
+
export declare const SheetBack: ({ title, color, includeMargins, formatMinorWords, displayNightOrder, firstNightOrder, otherNightOrder, }: SheetBackProps) => import("preact").JSX.Element;
|
|
9
13
|
export {};
|
|
10
14
|
//# sourceMappingURL=SheetBack.d.ts.map
|
package/dist/SheetBack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetBack.d.ts","sourceRoot":"","sources":["../src/SheetBack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SheetBack.d.ts","sourceRoot":"","sources":["../src/SheetBack.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,0GAQvB,cAAc,iCAyDhB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CharacterSheet } from "./CharacterSheet";
|
|
2
2
|
export { SheetBack } from "./SheetBack";
|
|
3
|
-
export type { ResolvedCharacter, GroupedCharacters, Jinx, CharacterTeam } from "./types";
|
|
3
|
+
export type { ResolvedCharacter, GroupedCharacters, Jinx, CharacterTeam, NightMarker, NightOrderEntry, } from "./types";
|
|
4
4
|
export { darken, parseRgb, rgbString } from "./colorAlgorithms";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,IAAI,EACJ,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { options as
|
|
1
|
+
import { options as v, Fragment as u } from "preact";
|
|
2
2
|
var w = 0;
|
|
3
|
-
function e(i,
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
if ("ref" in
|
|
7
|
-
var
|
|
8
|
-
if (typeof i == "function" && (
|
|
9
|
-
return
|
|
3
|
+
function e(i, s, a, n, t, l) {
|
|
4
|
+
s || (s = {});
|
|
5
|
+
var c, m, o = s;
|
|
6
|
+
if ("ref" in o) for (m in o = {}, s) m == "ref" ? c = s[m] : o[m] = s[m];
|
|
7
|
+
var r = { type: i, props: o, key: a, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --w, __i: -1, __u: 0, __source: t, __self: l };
|
|
8
|
+
if (typeof i == "function" && (c = i.defaultProps)) for (m in c) o[m] === void 0 && (o[m] = c[m]);
|
|
9
|
+
return v.vnode && v.vnode(r), r;
|
|
10
10
|
}
|
|
11
11
|
function C(i) {
|
|
12
|
-
if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((
|
|
12
|
+
if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((t) => t + t).join("")), i.length !== 6)
|
|
13
13
|
throw new Error("Invalid HEX color.");
|
|
14
|
-
const
|
|
15
|
-
return [
|
|
14
|
+
const s = parseInt(i.slice(0, 2), 16), a = parseInt(i.slice(2, 4), 16), n = parseInt(i.slice(4, 6), 16);
|
|
15
|
+
return [s, a, n];
|
|
16
16
|
}
|
|
17
|
-
function M(i,
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
return
|
|
17
|
+
function M(i, s, a) {
|
|
18
|
+
const n = (t) => {
|
|
19
|
+
const l = t.toString(16);
|
|
20
|
+
return l.length === 1 ? "0" + l : l;
|
|
21
21
|
};
|
|
22
|
-
return `#${
|
|
22
|
+
return `#${n(i)}${n(s)}${n(a)}`;
|
|
23
23
|
}
|
|
24
|
-
function S(i,
|
|
25
|
-
const [
|
|
26
|
-
return M(
|
|
24
|
+
function S(i, s) {
|
|
25
|
+
const [a, n, t] = C(i), l = Math.round(a * s), c = Math.round(n * s), m = Math.round(t * s);
|
|
26
|
+
return M(l, c, m);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function H({
|
|
29
29
|
title: i,
|
|
30
|
-
author:
|
|
31
|
-
characters:
|
|
32
|
-
color:
|
|
33
|
-
jinxes:
|
|
34
|
-
showSwirls:
|
|
35
|
-
includeMargins:
|
|
36
|
-
solidTitle:
|
|
37
|
-
iconScale:
|
|
38
|
-
|
|
30
|
+
author: s,
|
|
31
|
+
characters: a,
|
|
32
|
+
color: n = "#4a5568",
|
|
33
|
+
jinxes: t = [],
|
|
34
|
+
showSwirls: l = !0,
|
|
35
|
+
includeMargins: c = !1,
|
|
36
|
+
solidTitle: m = !1,
|
|
37
|
+
iconScale: o = 1.6,
|
|
38
|
+
appearance: r = "normal"
|
|
39
39
|
}) {
|
|
40
40
|
const d = [
|
|
41
41
|
{
|
|
42
42
|
key: "townsfolk",
|
|
43
43
|
title: "Townsfolk",
|
|
44
|
-
chars:
|
|
44
|
+
chars: a.townsfolk,
|
|
45
45
|
color: "#00469e"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: "outsider",
|
|
49
49
|
title: "Outsiders",
|
|
50
|
-
chars:
|
|
50
|
+
chars: a.outsider,
|
|
51
51
|
color: "#00469e"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: "minion",
|
|
55
55
|
title: "Minions",
|
|
56
|
-
chars:
|
|
56
|
+
chars: a.minion,
|
|
57
57
|
color: "#580709"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: "demon",
|
|
61
61
|
title: "Demons",
|
|
62
|
-
chars:
|
|
62
|
+
chars: a.demon,
|
|
63
63
|
color: "#580709"
|
|
64
64
|
}
|
|
65
|
-
].filter((h) => h.chars.length > 0),
|
|
65
|
+
].filter((h) => h.chars.length > 0), g = S(n, 0.4);
|
|
66
66
|
return /* @__PURE__ */ e(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
className: "character-sheet",
|
|
70
70
|
id: "character-sheet",
|
|
71
71
|
style: {
|
|
72
|
-
"--header-color-light":
|
|
73
|
-
"--header-color-dark":
|
|
74
|
-
transform:
|
|
72
|
+
"--header-color-light": n,
|
|
73
|
+
"--header-color-dark": g,
|
|
74
|
+
transform: c ? "scale(0.952)" : void 0
|
|
75
75
|
},
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ e(
|
|
@@ -81,44 +81,44 @@ function T({
|
|
|
81
81
|
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */ e(
|
|
84
|
+
/* @__PURE__ */ e(A, { color: n }),
|
|
85
85
|
/* @__PURE__ */ e("div", { className: "sheet-content", children: [
|
|
86
86
|
/* @__PURE__ */ e(
|
|
87
87
|
j,
|
|
88
88
|
{
|
|
89
|
-
showSwirls:
|
|
89
|
+
showSwirls: l,
|
|
90
90
|
title: i,
|
|
91
|
-
author:
|
|
92
|
-
solidHeader:
|
|
91
|
+
author: s,
|
|
92
|
+
solidHeader: m
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
95
|
/* @__PURE__ */ e("div", { className: "characters-grid", children: [
|
|
96
|
-
d.map((h,
|
|
96
|
+
d.map((h, p) => /* @__PURE__ */ e(u, { children: [
|
|
97
97
|
/* @__PURE__ */ e(
|
|
98
|
-
|
|
98
|
+
D,
|
|
99
99
|
{
|
|
100
100
|
title: h.title.toUpperCase(),
|
|
101
101
|
characters: h.chars,
|
|
102
|
-
sidebarColor:
|
|
102
|
+
sidebarColor: n,
|
|
103
103
|
charNameColor: h.color,
|
|
104
|
-
iconScale:
|
|
105
|
-
|
|
104
|
+
iconScale: o,
|
|
105
|
+
appearance: r
|
|
106
106
|
},
|
|
107
107
|
h.key
|
|
108
108
|
),
|
|
109
|
-
|
|
109
|
+
p < d.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
|
|
110
110
|
] })),
|
|
111
|
-
|
|
111
|
+
t.length > 0 && /* @__PURE__ */ e(u, { children: [
|
|
112
112
|
/* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
|
|
113
113
|
/* @__PURE__ */ e(
|
|
114
|
-
|
|
114
|
+
W,
|
|
115
115
|
{
|
|
116
|
-
jinxes:
|
|
116
|
+
jinxes: t,
|
|
117
117
|
allCharacters: [
|
|
118
|
-
...
|
|
119
|
-
...
|
|
120
|
-
...
|
|
121
|
-
...
|
|
118
|
+
...a.townsfolk,
|
|
119
|
+
...a.outsider,
|
|
120
|
+
...a.minion,
|
|
121
|
+
...a.demon
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
)
|
|
@@ -139,11 +139,11 @@ function T({
|
|
|
139
139
|
}
|
|
140
140
|
function j({
|
|
141
141
|
showSwirls: i,
|
|
142
|
-
title:
|
|
143
|
-
author:
|
|
144
|
-
solidHeader:
|
|
142
|
+
title: s,
|
|
143
|
+
author: a,
|
|
144
|
+
solidHeader: n = !1
|
|
145
145
|
}) {
|
|
146
|
-
return console.log("title:",
|
|
146
|
+
return console.log("title:", s), /* @__PURE__ */ e(u, { children: [
|
|
147
147
|
/* @__PURE__ */ e("h1", { className: "sheet-header", children: [
|
|
148
148
|
i && /* @__PURE__ */ e(
|
|
149
149
|
"img",
|
|
@@ -156,9 +156,9 @@ function j({
|
|
|
156
156
|
"span",
|
|
157
157
|
{
|
|
158
158
|
style: {
|
|
159
|
-
mixBlendMode:
|
|
159
|
+
mixBlendMode: n ? "normal" : "multiply"
|
|
160
160
|
},
|
|
161
|
-
children:
|
|
161
|
+
children: s
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
i && /* @__PURE__ */ e(
|
|
@@ -169,136 +169,129 @@ function j({
|
|
|
169
169
|
}
|
|
170
170
|
)
|
|
171
171
|
] }),
|
|
172
|
-
|
|
172
|
+
a && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
|
|
173
173
|
"by ",
|
|
174
|
-
|
|
174
|
+
a
|
|
175
175
|
] })
|
|
176
176
|
] });
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function A({ color: i }) {
|
|
179
179
|
return /* @__PURE__ */ e("div", { className: "sidebar-container", children: [
|
|
180
180
|
/* @__PURE__ */ e("div", { className: "sidebar-background" }),
|
|
181
181
|
/* @__PURE__ */ e("div", { className: "sidebar-overlay", style: { backgroundColor: i } })
|
|
182
182
|
] });
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function D({
|
|
185
185
|
title: i,
|
|
186
|
-
characters:
|
|
187
|
-
charNameColor:
|
|
188
|
-
iconScale:
|
|
189
|
-
|
|
186
|
+
characters: s,
|
|
187
|
+
charNameColor: a,
|
|
188
|
+
iconScale: n,
|
|
189
|
+
appearance: t = "normal"
|
|
190
190
|
}) {
|
|
191
|
-
const
|
|
191
|
+
const l = s.length > 8 ? "space-between" : "flex-start";
|
|
192
192
|
return /* @__PURE__ */ e("div", { className: "character-section", children: [
|
|
193
193
|
/* @__PURE__ */ e("h2", { className: "section-title", children: i }),
|
|
194
194
|
/* @__PURE__ */ e("div", { className: "character-list", children: [
|
|
195
|
-
/* @__PURE__ */ e("div", { className: "character-column", children:
|
|
196
|
-
|
|
195
|
+
/* @__PURE__ */ e("div", { className: "character-column", children: s.slice(0, Math.ceil(s.length / 2)).map((c) => /* @__PURE__ */ e(
|
|
196
|
+
N,
|
|
197
197
|
{
|
|
198
|
-
character:
|
|
199
|
-
color:
|
|
200
|
-
iconScale:
|
|
201
|
-
|
|
198
|
+
character: c,
|
|
199
|
+
color: a,
|
|
200
|
+
iconScale: n,
|
|
201
|
+
appearance: t
|
|
202
202
|
},
|
|
203
|
-
|
|
203
|
+
c.id
|
|
204
204
|
)) }),
|
|
205
|
-
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent:
|
|
206
|
-
|
|
205
|
+
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: l }, children: s.slice(Math.ceil(s.length / 2), s.length).map((c) => /* @__PURE__ */ e(
|
|
206
|
+
N,
|
|
207
207
|
{
|
|
208
|
-
character:
|
|
209
|
-
color:
|
|
210
|
-
iconScale:
|
|
211
|
-
|
|
208
|
+
character: c,
|
|
209
|
+
color: a,
|
|
210
|
+
iconScale: n,
|
|
211
|
+
appearance: t
|
|
212
212
|
},
|
|
213
|
-
|
|
213
|
+
c.id
|
|
214
214
|
)) })
|
|
215
215
|
] })
|
|
216
216
|
] });
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function N({
|
|
219
219
|
character: i,
|
|
220
|
-
color:
|
|
221
|
-
iconScale:
|
|
222
|
-
|
|
220
|
+
color: s,
|
|
221
|
+
iconScale: a,
|
|
222
|
+
appearance: n = "normal"
|
|
223
223
|
}) {
|
|
224
|
-
const
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
227
|
-
const [,
|
|
228
|
-
return /* @__PURE__ */ e(
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */ e("strong", { className: "setup-ability", children:
|
|
224
|
+
const t = () => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null, l = (h) => {
|
|
225
|
+
const p = h.match(/^(.*?)(\[.*?\])$/);
|
|
226
|
+
if (p) {
|
|
227
|
+
const [, y, _] = p;
|
|
228
|
+
return /* @__PURE__ */ e(u, { children: [
|
|
229
|
+
y,
|
|
230
|
+
/* @__PURE__ */ e("strong", { className: "setup-ability", children: _ })
|
|
231
231
|
] });
|
|
232
232
|
}
|
|
233
|
-
return
|
|
234
|
-
},
|
|
235
|
-
return /* @__PURE__ */ e(
|
|
236
|
-
"div",
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
/* @__PURE__ */ e("div", { className: "character-info", children: [
|
|
258
|
-
/* @__PURE__ */ e("h3", { className: "character-name", style: { color: n }, children: i.name }),
|
|
259
|
-
/* @__PURE__ */ e("p", { className: "character-ability", children: o(i.ability) })
|
|
260
|
-
] })
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
);
|
|
233
|
+
return h;
|
|
234
|
+
}, c = t(), m = n !== "normal" ? `character-card ${n}` : "character-card", o = n === "super-compact" ? "character-icon super-compact" : "character-icon", r = n === "super-compact" ? "character-icon-placeholder super-compact" : "character-icon-placeholder", d = n === "super-compact" ? "character-name super-compact" : "character-name", g = n === "super-compact" ? "character-ability super-compact" : "character-ability";
|
|
235
|
+
return /* @__PURE__ */ e("div", { className: m, children: [
|
|
236
|
+
/* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: c ? /* @__PURE__ */ e(
|
|
237
|
+
"img",
|
|
238
|
+
{
|
|
239
|
+
src: c,
|
|
240
|
+
alt: i.name,
|
|
241
|
+
className: o,
|
|
242
|
+
style: { scale: a.toString() }
|
|
243
|
+
}
|
|
244
|
+
) : /* @__PURE__ */ e(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
className: r,
|
|
248
|
+
style: { color: s, scale: a.toString() },
|
|
249
|
+
children: i.name.charAt(0)
|
|
250
|
+
}
|
|
251
|
+
) }),
|
|
252
|
+
/* @__PURE__ */ e("div", { className: "character-info", children: [
|
|
253
|
+
/* @__PURE__ */ e("h3", { className: d, style: { color: s }, children: i.name }),
|
|
254
|
+
/* @__PURE__ */ e("p", { className: g, children: l(i.ability) })
|
|
255
|
+
] })
|
|
256
|
+
] });
|
|
264
257
|
}
|
|
265
|
-
function
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
),
|
|
269
|
-
const
|
|
258
|
+
function W({ jinxes: i, allCharacters: s }) {
|
|
259
|
+
const a = new Map(
|
|
260
|
+
s.map((r) => [r.id.toLowerCase(), r])
|
|
261
|
+
), n = (r) => r.wiki_image ? r.wiki_image : r.image ? typeof r.image == "string" ? r.image : r.image[0] : null, t = (r, d) => {
|
|
262
|
+
const g = a.get(r.characters[0]), h = a.get(r.characters[1]);
|
|
270
263
|
return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
|
|
271
264
|
/* @__PURE__ */ e("div", { className: "jinx-icons", children: [
|
|
272
|
-
|
|
265
|
+
g && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: n(g) ? /* @__PURE__ */ e(
|
|
273
266
|
"img",
|
|
274
267
|
{
|
|
275
|
-
src:
|
|
276
|
-
alt:
|
|
268
|
+
src: n(g),
|
|
269
|
+
alt: g.name,
|
|
277
270
|
className: "jinx-icon"
|
|
278
271
|
}
|
|
279
|
-
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children:
|
|
272
|
+
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: g.name.charAt(0) }) }),
|
|
280
273
|
/* @__PURE__ */ e("span", { className: "jinx-divider" }),
|
|
281
|
-
h && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children:
|
|
274
|
+
h && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: n(h) ? /* @__PURE__ */ e(
|
|
282
275
|
"img",
|
|
283
276
|
{
|
|
284
|
-
src:
|
|
277
|
+
src: n(h),
|
|
285
278
|
alt: h.name,
|
|
286
279
|
className: "jinx-icon"
|
|
287
280
|
}
|
|
288
281
|
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: h.name.charAt(0) }) })
|
|
289
282
|
] }),
|
|
290
|
-
/* @__PURE__ */ e("p", { className: "jinx-text", children:
|
|
283
|
+
/* @__PURE__ */ e("p", { className: "jinx-text", children: r.jinx })
|
|
291
284
|
] }, d);
|
|
292
|
-
},
|
|
285
|
+
}, l = i.length > 4, c = l ? Math.ceil(i.length / 2) : i.length, m = i.slice(0, c), o = i.slice(c);
|
|
293
286
|
return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
294
287
|
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
295
|
-
|
|
296
|
-
/* @__PURE__ */ e("div", { className: "jinx-column", children:
|
|
297
|
-
/* @__PURE__ */ e("div", { className: "jinx-column", children:
|
|
298
|
-
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: i.map((
|
|
288
|
+
l ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
289
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: m.map((r, d) => t(r, d)) }),
|
|
290
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: o.map((r, d) => t(r, c + d)) })
|
|
291
|
+
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: i.map((r, d) => t(r, d)) })
|
|
299
292
|
] });
|
|
300
293
|
}
|
|
301
|
-
const
|
|
294
|
+
const k = /* @__PURE__ */ new Set([
|
|
302
295
|
"the",
|
|
303
296
|
"of",
|
|
304
297
|
"in",
|
|
@@ -318,56 +311,85 @@ const y = /* @__PURE__ */ new Set([
|
|
|
318
311
|
"upon",
|
|
319
312
|
"after",
|
|
320
313
|
"before"
|
|
321
|
-
]), f = (i,
|
|
314
|
+
]), f = (i, s) => k.has(i) || s === 0 && k.has(i.toLowerCase()), $ = (i) => i.split(/\s+/).reduce((s, a, n, t) => {
|
|
315
|
+
const l = f(a, n), c = n > 0 && f(t[n - 1], n - 1);
|
|
316
|
+
if (n === 0 || l !== c) {
|
|
317
|
+
const o = [];
|
|
318
|
+
for (let d = n; d < t.length && f(t[d], d) === l; d++)
|
|
319
|
+
o.push(t[d]);
|
|
320
|
+
const r = s.length > 0;
|
|
321
|
+
s.push(
|
|
322
|
+
/* @__PURE__ */ e(
|
|
323
|
+
"span",
|
|
324
|
+
{
|
|
325
|
+
className: l ? "minor-word" : void 0,
|
|
326
|
+
children: [
|
|
327
|
+
r && " ",
|
|
328
|
+
o.join(" ")
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
n
|
|
332
|
+
)
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
return s;
|
|
336
|
+
}, []), O = ({
|
|
337
|
+
title: i,
|
|
338
|
+
color: s,
|
|
339
|
+
includeMargins: a,
|
|
340
|
+
formatMinorWords: n = !1,
|
|
341
|
+
displayNightOrder: t = !1,
|
|
342
|
+
firstNightOrder: l = [],
|
|
343
|
+
otherNightOrder: c = []
|
|
344
|
+
}) => /* @__PURE__ */ e(
|
|
322
345
|
"div",
|
|
323
346
|
{
|
|
324
347
|
className: "sheet-backing",
|
|
325
348
|
style: {
|
|
326
|
-
transform:
|
|
349
|
+
transform: a ? "scale(0.952)" : void 0
|
|
327
350
|
},
|
|
328
351
|
children: [
|
|
329
|
-
/* @__PURE__ */ e("div", { className: "sheet-background", children:
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
o.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}, []),
|
|
355
|
-
a < l.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
|
|
356
|
-
] }));
|
|
357
|
-
})() }) }) }),
|
|
352
|
+
/* @__PURE__ */ e("div", { className: "sheet-background", children: [
|
|
353
|
+
/* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: (() => {
|
|
354
|
+
const o = i.split("&");
|
|
355
|
+
return o.map((r, d) => /* @__PURE__ */ e(u, { children: [
|
|
356
|
+
n ? $(r) : r,
|
|
357
|
+
d < o.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
|
|
358
|
+
] }));
|
|
359
|
+
})() }) }),
|
|
360
|
+
t && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e("div", { className: "night-order-container", children: [
|
|
361
|
+
/* @__PURE__ */ e("div", { className: "night-order", children: [
|
|
362
|
+
/* @__PURE__ */ e("span", { children: "First Night:" }),
|
|
363
|
+
/* @__PURE__ */ e("div", { className: "night-icons", children: l.map((o) => {
|
|
364
|
+
const r = b(o);
|
|
365
|
+
return r && /* @__PURE__ */ e("img", { src: r, class: "night-order-icon" });
|
|
366
|
+
}) })
|
|
367
|
+
] }),
|
|
368
|
+
/* @__PURE__ */ e("div", { className: "night-order", children: [
|
|
369
|
+
/* @__PURE__ */ e("span", { children: "Other Nights:" }),
|
|
370
|
+
/* @__PURE__ */ e("div", { className: "night-icons", children: c.map((o) => {
|
|
371
|
+
const r = b(o);
|
|
372
|
+
return r && /* @__PURE__ */ e("img", { src: r, class: "night-order-icon" });
|
|
373
|
+
}) })
|
|
374
|
+
] })
|
|
375
|
+
] }) })
|
|
376
|
+
] }),
|
|
358
377
|
/* @__PURE__ */ e(
|
|
359
378
|
"div",
|
|
360
379
|
{
|
|
361
380
|
className: "sheet-back-overlay",
|
|
362
|
-
style: { backgroundColor:
|
|
381
|
+
style: { backgroundColor: s }
|
|
363
382
|
}
|
|
364
383
|
)
|
|
365
384
|
]
|
|
366
385
|
}
|
|
367
386
|
);
|
|
387
|
+
function b(i) {
|
|
388
|
+
return typeof i == "string" ? i === "dawn" ? "/images/dawn-icon.png" : i === "dusk" ? "/images/dusk-icon.png" : i === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : typeof i.image == "string" ? i.image : Array.isArray(i.image) && i.image.length ? i.image[0] : i.wiki_image;
|
|
389
|
+
}
|
|
368
390
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
391
|
+
H as CharacterSheet,
|
|
392
|
+
O as SheetBack,
|
|
371
393
|
S as darken,
|
|
372
394
|
C as parseRgb,
|
|
373
395
|
M as rgbString
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.character-sheet{width:210mm;min-height:297mm;max-height:297mm;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#2d3748;display:flex;overflow:hidden;isolation:isolate}.character-sheet-background{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.sidebar-container{position:relative}.sidebar-background{background-image:url(/images/sidebar-desaturated-small.jpg);background-size:105mm;width:15mm;height:100%;flex-shrink:0}.sidebar-overlay{position:absolute;top:0;left:0;width:15mm;height:100%;background-color:#0003;pointer-events:none;mix-blend-mode:multiply}.sidebar-section{flex:1;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;text-orientation:mixed;padding:3mm 0}.sidebar-label{font-size:3.5mm;font-weight:600;letter-spacing:.5mm;color:#eee;text-shadow:.3mm .3mm .5mm rgba(0,0,0,.3)}.sheet-content{position:relative;padding:5mm 0 3mm;display:flex;flex-direction:column;min-width:0}.character-column-spacer{min-height:13mm}.sheet-header-container{display:flex;align-items:center}.sheet-header{text-align:center;margin:0 0 4mm;padding:0 10mm;display:flex;align-items:center;justify-content:center}.sheet-header span{font-weight:lighter;letter-spacing:0mm;filter:drop-shadow(.2mm .1mm 0 #222d) drop-shadow(0mm 0mm .1mm #2228);word-spacing:-3mm;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:Unlovable,serif;font-weight:100;font-size:14mm;padding:2mm 4mm;margin:0 -4mm;mix-blend-mode:multiply}.swirl-divider{width:35mm;mix-blend-mode:soft-light}.flip{transform:scaleX(-1)}.sheet-author{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;text-align:center;margin:-5mm 0 3mm;color:#333}.characters-grid{display:flex;flex-direction:column;gap:2.5mm;flex:1;padding:0 10mm 0 0}.character-section{display:flex;break-inside:avoid;min-height:20mm}.section-title{font-family:Dumbledor,serif;font-weight:lighter;padding:0 3.5mm;color:#eee;margin:-
|
|
1
|
+
.character-sheet{width:210mm;min-height:297mm;max-height:297mm;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#2d3748;display:flex;overflow:hidden;isolation:isolate}.character-sheet-background{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.sidebar-container{position:relative}.sidebar-background{background-image:url(/images/sidebar-desaturated-small.jpg);background-size:105mm;width:15mm;height:100%;flex-shrink:0}.sidebar-overlay{position:absolute;top:0;left:0;width:15mm;height:100%;background-color:#0003;pointer-events:none;mix-blend-mode:multiply}.sidebar-section{flex:1;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;text-orientation:mixed;padding:3mm 0}.sidebar-label{font-size:3.5mm;font-weight:600;letter-spacing:.5mm;color:#eee;text-shadow:.3mm .3mm .5mm rgba(0,0,0,.3)}.sheet-content{position:relative;padding:5mm 0 3mm;display:flex;flex-direction:column;min-width:0}.character-column-spacer{min-height:13mm}.sheet-header-container{display:flex;align-items:center}.sheet-header{text-align:center;margin:0 0 4mm;padding:0 10mm;display:flex;align-items:center;justify-content:center}.sheet-header span{font-weight:lighter;letter-spacing:0mm;filter:drop-shadow(.2mm .1mm 0 #222d) drop-shadow(0mm 0mm .1mm #2228);word-spacing:-3mm;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:Unlovable,serif;font-weight:100;font-size:14mm;padding:2mm 4mm;margin:0 -4mm;mix-blend-mode:multiply}.swirl-divider{width:35mm;mix-blend-mode:soft-light}.flip{transform:scaleX(-1)}.sheet-author{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;text-align:center;margin:-5mm 0 3mm;color:#333}.characters-grid{display:flex;flex-direction:column;gap:2.5mm;flex:1;padding:0 10mm 0 0}.character-section{display:flex;break-inside:avoid;min-height:20mm}.section-title{font-family:Dumbledor,serif;font-weight:lighter;padding:0 3.5mm;color:#eee;margin:-2mm 0 -2mm -15mm;min-width:15mm;text-align:center;z-index:1;text-orientation:upright;writing-mode:vertical-lr;letter-spacing:-.6mm;font-size:4mm;line-height:2;filter:drop-shadow(.1mm .1mm .3mm #222a) drop-shadow(-.1mm .1mm .3mm #2228) drop-shadow(.1mm -.1mm .3mm #222a) drop-shadow(-.1mm -.1mm .3mm #222a)}.section-divider{height:.8mm;opacity:1;margin-left:-50%;width:150%;mix-blend-mode:soft-light}.character-list{display:flex;margin-left:8mm;gap:5mm}.character-column{flex:1 1 0px;display:flex;flex-direction:column;justify-content:space-between}.character-card{display:flex;align-items:center;gap:2.5mm;break-inside:avoid;margin-bottom:2.5mm}.character-info{padding-left:2mm;display:flex;flex-direction:column}.character-icon-wrapper{display:flex;flex-shrink:0}.character-icon,.character-icon-placeholder{width:13mm;max-height:13mm;object-fit:contain}.character-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:6mm}.character-name{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;margin:0 0 .5mm;color:#1a202c}.character-ability{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:3.1mm;line-height:1.2;margin:0;color:#222;display:inline-block}.character-card.compact{margin-bottom:1mm}.character-ability.super-compact{font-size:2.7mm}.character-name.super-compact{font-size:3.2mm}.character-icon.super-compact,.character-icon-placeholder.super-compact{width:12mm;max-height:12mm}.character-card.super-compact{margin-bottom:.5mm}.sheet-footer{text-align:center;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;color:#222;opacity:.7}.asterisk{font-size:5mm}.author-credit{position:absolute;bottom:3mm;right:3mm;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.2mm;color:#222;opacity:.6;text-align:right}.author-credit p{font-size:2.5mm;margin:0}.setup-ability{display:inline-block;white-space:normal;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif}.jinxes-section{display:flex;break-inside:avoid;margin-top:1mm}.jinxes-list{margin-left:8mm;display:flex;flex-direction:column}.jinxes-two-columns{flex-direction:row;gap:5mm}.jinx-column{flex:1;display:flex;flex-direction:column}.jinx-item{display:flex;gap:2.5mm;align-items:center;break-inside:avoid;margin-bottom:2mm}.jinx-icons{display:flex;gap:1mm;flex-shrink:0;align-items:center}.jinx-icon-wrapper{display:flex;flex-shrink:0;align-items:center}.jinx-icon,.jinx-icon-placeholder{width:3.5mm;height:3.5mm;object-fit:contain;scale:2.8}.jinx-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:2mm}.jinx-divider{font-family:Dumbledor,serif;font-size:4.6mm;color:#1a202c;line-height:3.5mm;margin:0 .5mm}.jinx-text{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:2.6mm;line-height:1.2;margin:0;color:#222;padding-top:.5mm}.sheet-backing{position:relative;width:210mm;min-height:297mm;max-height:297mm}.sheet-background{width:210mm;min-height:297mm;max-height:297mm;background-image:url(/images/sidebar-desaturated-small.jpg);background-repeat:repeat;background-size:105mm;display:flex;flex-direction:column;align-items:center;justify-content:center}.sheet-back-overlay{position:absolute;top:0;left:0;width:100%;height:100%;mix-blend-mode:multiply;pointer-events:none}.sheet-backing h1{font-family:Unlovable,serif;mix-blend-mode:normal;font-weight:100;font-size:30mm;color:#ae9d7f;text-wrap:wrap;z-index:1;flex-shrink:1;text-align:center;padding:10mm;background-image:url(/images/parchment_texture.jpg);background-clip:text;-webkit-background-clip:text;color:transparent;background-size:100mm;filter:drop-shadow(.5mm .5mm black) drop-shadow(0mm 0mm 1mm black);word-spacing:-10mm;flex:0 1 130mm;display:flex;flex-wrap:wrap;justify-content:center}.sheet-backing h1 .ampersand{font-size:45mm;line-height:30mm;vertical-align:-5mm}.night-order-container{position:absolute;background-image:url(/images/parchment_texture.jpg);background-position:0 -50%;left:0;bottom:20mm;font-family:Dumbledor;z-index:1;background-size:200mm;padding:4mm;box-shadow:inset 0 0 5px #000;display:flex;flex-direction:column;gap:5mm;max-width:185mm}.night-order{z-index:1;display:flex;gap:2mm}.night-order span{color:#222;height:6mm;display:flex;align-items:center;justify-content:flex-end;flex:0 0 23mm}.night-icons{z-index:1;display:flex;align-items:center;gap:2mm;flex-wrap:wrap}.night-order-icon{width:6mm;scale:2.1;filter:drop-shadow(0px 0px 2px #2224)}.title-container{z-index:1;display:flex;justify-content:center}.minor-word{padding:0 8mm;font-size:15mm;word-spacing:-6mm;display:flex}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import type { ScriptCharacter } from "botc-script-checker";
|
|
1
2
|
export type CharacterTeam = "townsfolk" | "outsider" | "minion" | "demon" | "traveller" | "fabled";
|
|
2
|
-
export
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
ability: string;
|
|
6
|
-
team: CharacterTeam;
|
|
7
|
-
image?: string | string[];
|
|
3
|
+
export type ResolvedCharacter = ScriptCharacter & {
|
|
8
4
|
wiki_image?: string;
|
|
9
5
|
edition?: string;
|
|
10
6
|
isCustom?: boolean;
|
|
11
|
-
}
|
|
7
|
+
};
|
|
12
8
|
export interface GroupedCharacters {
|
|
13
9
|
townsfolk: ResolvedCharacter[];
|
|
14
10
|
outsider: ResolvedCharacter[];
|
|
@@ -22,4 +18,6 @@ export interface Jinx {
|
|
|
22
18
|
jinx: string;
|
|
23
19
|
oldJinx?: string;
|
|
24
20
|
}
|
|
21
|
+
export type NightMarker = "dawn" | "dusk" | "minioninfo" | "demoninfo";
|
|
22
|
+
export type NightOrderEntry = ResolvedCharacter | NightMarker;
|
|
25
23
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,IAAI;IACnB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minorWordFormatter.d.ts","sourceRoot":"","sources":["../../src/utils/minorWordFormatter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AA8BzC,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,GAAG,CAAC,OAAO,EAqC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botc-character-sheet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "vite build && tsc --emitDeclarationOnly --outDir dist",
|
|
20
|
-
"dev": "vite build --watch"
|
|
20
|
+
"dev": "vite build --watch",
|
|
21
|
+
"publish": "bun run build && bun publish"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"preact": "^10.19.3"
|
|
@@ -27,5 +28,8 @@
|
|
|
27
28
|
"preact": "^10.19.3",
|
|
28
29
|
"typescript": "^5.3.3",
|
|
29
30
|
"vite": "^5.0.8"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"botc-script-checker": "^0.1.1"
|
|
30
34
|
}
|
|
31
35
|
}
|