botc-character-sheet 0.7.0 → 0.8.1

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.
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../src/CharacterSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,iBAAiB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,sBAAsB,CAAC;AAE9B,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,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAiB,EACjB,MAAW,EACX,UAAiB,EACjB,cAAsB,EACtB,UAAkB,EAClB,SAAe,EACf,iBAAyB,GAC1B,EAAE,mBAAmB,gCAkGrB"}
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,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAiB,EACjB,MAAW,EACX,UAAiB,EACjB,cAAsB,EACtB,UAAkB,EAClB,SAAe,EACf,iBAAyB,GAC1B,EAAE,mBAAmB,gCAkGrB"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"SheetBack.d.ts","sourceRoot":"","sources":["../src/SheetBack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,iBAAiB,CAAC;AAEzB,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AA8BF,eAAO,MAAM,SAAS,GAAI,kCAAkC,cAAc,gBAiEzE,CAAC"}
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,iCAsDhB,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
@@ -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,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
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,43 +1,43 @@
1
- import { options as k, Fragment as p } from "preact";
2
- var w = 0;
3
- function e(i, n, r, t, l, o) {
1
+ import { options as p, Fragment as u } from "preact";
2
+ var y = 0;
3
+ function e(i, n, r, s, t, o) {
4
4
  n || (n = {});
5
- var a, c, m = n;
6
- if ("ref" in m) for (c in m = {}, n) c == "ref" ? a = n[c] : m[c] = n[c];
7
- var s = { type: i, props: m, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --w, __i: -1, __u: 0, __source: l, __self: o };
8
- if (typeof i == "function" && (a = i.defaultProps)) for (c in a) m[c] === void 0 && (m[c] = a[c]);
9
- return k.vnode && k.vnode(s), s;
5
+ var l, d, c = n;
6
+ if ("ref" in c) for (d in c = {}, n) d == "ref" ? l = n[d] : c[d] = n[d];
7
+ var a = { type: i, props: c, key: r, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --y, __i: -1, __u: 0, __source: t, __self: o };
8
+ if (typeof i == "function" && (l = i.defaultProps)) for (d in l) c[d] === void 0 && (c[d] = l[d]);
9
+ return p.vnode && p.vnode(a), a;
10
10
  }
11
- function C(i) {
12
- if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((l) => l + l).join("")), i.length !== 6)
11
+ function _(i) {
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 n = parseInt(i.slice(0, 2), 16), r = parseInt(i.slice(2, 4), 16), t = parseInt(i.slice(4, 6), 16);
15
- return [n, r, t];
14
+ const n = parseInt(i.slice(0, 2), 16), r = parseInt(i.slice(2, 4), 16), s = parseInt(i.slice(4, 6), 16);
15
+ return [n, r, s];
16
16
  }
17
- function M(i, n, r) {
18
- const t = (l) => {
19
- const o = l.toString(16);
17
+ function w(i, n, r) {
18
+ const s = (t) => {
19
+ const o = t.toString(16);
20
20
  return o.length === 1 ? "0" + o : o;
21
21
  };
22
- return `#${t(i)}${t(n)}${t(r)}`;
22
+ return `#${s(i)}${s(n)}${s(r)}`;
23
23
  }
24
- function S(i, n) {
25
- const [r, t, l] = C(i), o = Math.round(r * n), a = Math.round(t * n), c = Math.round(l * n);
26
- return M(o, a, c);
24
+ function C(i, n) {
25
+ const [r, s, t] = _(i), o = Math.round(r * n), l = Math.round(s * n), d = Math.round(t * n);
26
+ return w(o, l, d);
27
27
  }
28
- function T({
28
+ function B({
29
29
  title: i,
30
30
  author: n,
31
31
  characters: r,
32
- color: t = "#4a5568",
33
- jinxes: l = [],
32
+ color: s = "#4a5568",
33
+ jinxes: t = [],
34
34
  showSwirls: o = !0,
35
- includeMargins: a = !1,
36
- solidTitle: c = !1,
37
- iconScale: m = 1.6,
38
- compactAppearance: s = !1
35
+ includeMargins: l = !1,
36
+ solidTitle: d = !1,
37
+ iconScale: c = 1.6,
38
+ compactAppearance: a = !1
39
39
  }) {
40
- const d = [
40
+ const m = [
41
41
  {
42
42
  key: "townsfolk",
43
43
  title: "Townsfolk",
@@ -62,16 +62,16 @@ function T({
62
62
  chars: r.demon,
63
63
  color: "#580709"
64
64
  }
65
- ].filter((h) => h.chars.length > 0), u = S(t, 0.4);
65
+ ].filter((h) => h.chars.length > 0), g = C(s, 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": t,
73
- "--header-color-dark": u,
74
- transform: a ? "scale(0.952)" : void 0
72
+ "--header-color-light": s,
73
+ "--header-color-dark": g,
74
+ transform: l ? "scale(0.952)" : void 0
75
75
  },
76
76
  children: [
77
77
  /* @__PURE__ */ e(
@@ -81,39 +81,39 @@ function T({
81
81
  src: "/images/parchment_texture_a4_lightened.jpg"
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ e(D, { color: t }),
84
+ /* @__PURE__ */ e(S, { color: s }),
85
85
  /* @__PURE__ */ e("div", { className: "sheet-content", children: [
86
86
  /* @__PURE__ */ e(
87
- j,
87
+ M,
88
88
  {
89
89
  showSwirls: o,
90
90
  title: i,
91
91
  author: n,
92
- solidHeader: c
92
+ solidHeader: d
93
93
  }
94
94
  ),
95
95
  /* @__PURE__ */ e("div", { className: "characters-grid", children: [
96
- d.map((h, v) => /* @__PURE__ */ e(p, { children: [
96
+ m.map((h, b) => /* @__PURE__ */ e(u, { children: [
97
97
  /* @__PURE__ */ e(
98
- x,
98
+ j,
99
99
  {
100
100
  title: h.title.toUpperCase(),
101
101
  characters: h.chars,
102
- sidebarColor: t,
102
+ sidebarColor: s,
103
103
  charNameColor: h.color,
104
- iconScale: m,
105
- compactAppearance: s
104
+ iconScale: c,
105
+ compactAppearance: a
106
106
  },
107
107
  h.key
108
108
  ),
109
- v < d.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
109
+ b < m.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
110
110
  ] })),
111
- l.length > 0 && /* @__PURE__ */ e(p, { children: [
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
- B,
114
+ D,
115
115
  {
116
- jinxes: l,
116
+ jinxes: t,
117
117
  allCharacters: [
118
118
  ...r.townsfolk,
119
119
  ...r.outsider,
@@ -137,13 +137,13 @@ function T({
137
137
  }
138
138
  );
139
139
  }
140
- function j({
140
+ function M({
141
141
  showSwirls: i,
142
142
  title: n,
143
143
  author: r,
144
- solidHeader: t = !1
144
+ solidHeader: s = !1
145
145
  }) {
146
- return console.log("title:", n), /* @__PURE__ */ e(p, { children: [
146
+ return console.log("title:", n), /* @__PURE__ */ e(u, { children: [
147
147
  /* @__PURE__ */ e("h1", { className: "sheet-header", children: [
148
148
  i && /* @__PURE__ */ e(
149
149
  "img",
@@ -156,7 +156,7 @@ function j({
156
156
  "span",
157
157
  {
158
158
  style: {
159
- mixBlendMode: t ? "normal" : "multiply"
159
+ mixBlendMode: s ? "normal" : "multiply"
160
160
  },
161
161
  children: n
162
162
  }
@@ -175,73 +175,73 @@ function j({
175
175
  ] })
176
176
  ] });
177
177
  }
178
- function D({ color: i }) {
178
+ function S({ 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 x({
184
+ function j({
185
185
  title: i,
186
186
  characters: n,
187
187
  charNameColor: r,
188
- iconScale: t,
189
- compactAppearance: l = !1
188
+ iconScale: s,
189
+ compactAppearance: t = !1
190
190
  }) {
191
191
  const o = n.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: n.slice(0, Math.ceil(n.length / 2)).map((a) => /* @__PURE__ */ e(
196
- b,
195
+ /* @__PURE__ */ e("div", { className: "character-column", children: n.slice(0, Math.ceil(n.length / 2)).map((l) => /* @__PURE__ */ e(
196
+ v,
197
197
  {
198
- character: a,
198
+ character: l,
199
199
  color: r,
200
- iconScale: t,
201
- compactAppearance: l
200
+ iconScale: s,
201
+ compactAppearance: t
202
202
  },
203
- a.id
203
+ l.id
204
204
  )) }),
205
- /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: o }, children: n.slice(Math.ceil(n.length / 2), n.length).map((a) => /* @__PURE__ */ e(
206
- b,
205
+ /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: o }, children: n.slice(Math.ceil(n.length / 2), n.length).map((l) => /* @__PURE__ */ e(
206
+ v,
207
207
  {
208
- character: a,
208
+ character: l,
209
209
  color: r,
210
- iconScale: t,
211
- compactAppearance: l
210
+ iconScale: s,
211
+ compactAppearance: t
212
212
  },
213
- a.id
213
+ l.id
214
214
  )) })
215
215
  ] })
216
216
  ] });
217
217
  }
218
- function b({
218
+ function v({
219
219
  character: i,
220
220
  color: n,
221
221
  iconScale: r,
222
- compactAppearance: t = !1
222
+ compactAppearance: s = !1
223
223
  }) {
224
- const l = () => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null, o = (c) => {
225
- const m = c.match(/^(.*?)(\[.*?\])$/);
226
- if (m) {
227
- const [, s, d] = m;
228
- return /* @__PURE__ */ e(p, { children: [
229
- s,
230
- /* @__PURE__ */ e("strong", { className: "setup-ability", children: d })
224
+ const t = () => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null, o = (d) => {
225
+ const c = d.match(/^(.*?)(\[.*?\])$/);
226
+ if (c) {
227
+ const [, a, m] = c;
228
+ return /* @__PURE__ */ e(u, { children: [
229
+ a,
230
+ /* @__PURE__ */ e("strong", { className: "setup-ability", children: m })
231
231
  ] });
232
232
  }
233
- return c;
234
- }, a = l();
233
+ return d;
234
+ }, l = t();
235
235
  return /* @__PURE__ */ e(
236
236
  "div",
237
237
  {
238
238
  className: "character-card",
239
- style: { marginBottom: t ? "1mm" : void 0 },
239
+ style: { marginBottom: s ? "1mm" : void 0 },
240
240
  children: [
241
- /* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: a ? /* @__PURE__ */ e(
241
+ /* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: l ? /* @__PURE__ */ e(
242
242
  "img",
243
243
  {
244
- src: a,
244
+ src: l,
245
245
  alt: i.name,
246
246
  className: "character-icon",
247
247
  style: { scale: r.toString() }
@@ -262,43 +262,43 @@ function b({
262
262
  }
263
263
  );
264
264
  }
265
- function B({ jinxes: i, allCharacters: n }) {
265
+ function D({ jinxes: i, allCharacters: n }) {
266
266
  const r = new Map(
267
- n.map((s) => [s.id.toLowerCase(), s])
268
- ), t = (s) => s.wiki_image ? s.wiki_image : s.image ? typeof s.image == "string" ? s.image : s.image[0] : null, l = (s, d) => {
269
- const u = r.get(s.characters[0]), h = r.get(s.characters[1]);
267
+ n.map((a) => [a.id.toLowerCase(), a])
268
+ ), s = (a) => a.wiki_image ? a.wiki_image : a.image ? typeof a.image == "string" ? a.image : a.image[0] : null, t = (a, m) => {
269
+ const g = r.get(a.characters[0]), h = r.get(a.characters[1]);
270
270
  return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
271
271
  /* @__PURE__ */ e("div", { className: "jinx-icons", children: [
272
- u && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: t(u) ? /* @__PURE__ */ e(
272
+ g && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: s(g) ? /* @__PURE__ */ e(
273
273
  "img",
274
274
  {
275
- src: t(u),
276
- alt: u.name,
275
+ src: s(g),
276
+ alt: g.name,
277
277
  className: "jinx-icon"
278
278
  }
279
- ) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: u.name.charAt(0) }) }),
279
+ ) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: g.name.charAt(0) }) }),
280
280
  /* @__PURE__ */ e("span", { className: "jinx-divider" }),
281
- h && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: t(h) ? /* @__PURE__ */ e(
281
+ h && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: s(h) ? /* @__PURE__ */ e(
282
282
  "img",
283
283
  {
284
- src: t(h),
284
+ src: s(h),
285
285
  alt: h.name,
286
286
  className: "jinx-icon"
287
287
  }
288
288
  ) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: h.name.charAt(0) }) })
289
289
  ] }),
290
- /* @__PURE__ */ e("p", { className: "jinx-text", children: s.jinx })
291
- ] }, d);
292
- }, o = i.length > 4, a = o ? Math.ceil(i.length / 2) : i.length, c = i.slice(0, a), m = i.slice(a);
290
+ /* @__PURE__ */ e("p", { className: "jinx-text", children: a.jinx })
291
+ ] }, m);
292
+ }, o = i.length > 4, l = o ? Math.ceil(i.length / 2) : i.length, d = i.slice(0, l), c = i.slice(l);
293
293
  return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
294
294
  /* @__PURE__ */ e("h2", { className: "section-title" }),
295
295
  o ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
296
- /* @__PURE__ */ e("div", { className: "jinx-column", children: c.map((s, d) => l(s, d)) }),
297
- /* @__PURE__ */ e("div", { className: "jinx-column", children: m.map((s, d) => l(s, a + d)) })
298
- ] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: i.map((s, d) => l(s, d)) })
296
+ /* @__PURE__ */ e("div", { className: "jinx-column", children: d.map((a, m) => t(a, m)) }),
297
+ /* @__PURE__ */ e("div", { className: "jinx-column", children: c.map((a, m) => t(a, l + m)) })
298
+ ] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: i.map((a, m) => t(a, m)) })
299
299
  ] });
300
300
  }
301
- const y = /* @__PURE__ */ new Set([
301
+ const N = /* @__PURE__ */ new Set([
302
302
  "the",
303
303
  "of",
304
304
  "in",
@@ -318,7 +318,37 @@ const y = /* @__PURE__ */ new Set([
318
318
  "upon",
319
319
  "after",
320
320
  "before"
321
- ]), f = (i, n) => y.has(i) || n === 0 && y.has(i.toLowerCase()), U = ({ title: i, color: n, includeMargins: r }) => /* @__PURE__ */ e(
321
+ ]), f = (i, n) => N.has(i) || n === 0 && N.has(i.toLowerCase()), W = (i) => i.split(/\s+/).reduce((n, r, s, t) => {
322
+ const o = f(r, s), l = s > 0 && f(t[s - 1], s - 1);
323
+ if (s === 0 || o !== l) {
324
+ const c = [];
325
+ for (let m = s; m < t.length && f(t[m], m) === o; m++)
326
+ c.push(t[m]);
327
+ const a = n.length > 0;
328
+ n.push(
329
+ /* @__PURE__ */ e(
330
+ "span",
331
+ {
332
+ className: o ? "minor-word" : void 0,
333
+ children: [
334
+ a && " ",
335
+ c.join(" ")
336
+ ]
337
+ },
338
+ s
339
+ )
340
+ );
341
+ }
342
+ return n;
343
+ }, []), H = ({
344
+ title: i,
345
+ color: n,
346
+ includeMargins: r,
347
+ formatMinorWords: s = !1,
348
+ displayNightOrder: t = !1,
349
+ firstNightOrder: o = [],
350
+ otherNightOrder: l = []
351
+ }) => /* @__PURE__ */ e(
322
352
  "div",
323
353
  {
324
354
  className: "sheet-backing",
@@ -326,35 +356,31 @@ const y = /* @__PURE__ */ new Set([
326
356
  transform: r ? "scale(0.952)" : void 0
327
357
  },
328
358
  children: [
329
- /* @__PURE__ */ e("div", { className: "sheet-background", children: /* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: (() => {
330
- const l = i.split("&");
331
- return l.map((o, a) => /* @__PURE__ */ e(p, { children: [
332
- o.split(/\s+/).reduce((c, m, s, d) => {
333
- const u = f(m, s), h = s > 0 && f(d[s - 1], s - 1);
334
- if (s === 0 || u !== h) {
335
- const N = [];
336
- for (let g = s; g < d.length && f(d[g], g) === u; g++)
337
- N.push(d[g]);
338
- const _ = c.length > 0;
339
- c.push(
340
- /* @__PURE__ */ e(
341
- "span",
342
- {
343
- className: u ? "minor-word" : void 0,
344
- children: [
345
- _ && " ",
346
- N.join(" ")
347
- ]
348
- },
349
- s
350
- )
351
- );
352
- }
353
- return c;
354
- }, []),
355
- a < l.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
356
- ] }));
357
- })() }) }) }),
359
+ /* @__PURE__ */ e("div", { className: "sheet-background", children: [
360
+ /* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: (() => {
361
+ const c = i.split("&");
362
+ return c.map((a, m) => /* @__PURE__ */ e(u, { children: [
363
+ s ? W(a) : a,
364
+ m < c.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
365
+ ] }));
366
+ })() }) }),
367
+ t && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e("div", { className: "night-order-container", children: [
368
+ /* @__PURE__ */ e("div", { className: "night-order", children: [
369
+ /* @__PURE__ */ e("span", { children: "First Night:" }),
370
+ /* @__PURE__ */ e("div", { className: "night-icons", children: o.map((c) => /* @__PURE__ */ e("img", { src: k(c), class: "night-order-icon" })) })
371
+ ] }),
372
+ /* @__PURE__ */ e("div", { className: "night-order", children: [
373
+ /* @__PURE__ */ e("span", { children: "Other Nights:" }),
374
+ /* @__PURE__ */ e("div", { className: "night-icons", children: l.map((c) => /* @__PURE__ */ e(
375
+ "img",
376
+ {
377
+ src: k(c),
378
+ class: "night-order-icon"
379
+ }
380
+ )) })
381
+ ] })
382
+ ] }) })
383
+ ] }),
358
384
  /* @__PURE__ */ e(
359
385
  "div",
360
386
  {
@@ -365,10 +391,13 @@ const y = /* @__PURE__ */ new Set([
365
391
  ]
366
392
  }
367
393
  );
394
+ function k(i) {
395
+ return typeof i == "string" ? i === "dawn" ? "/images/dawn-icon.png" : i === "dusk" ? "/images/dusk-icon.png" : i === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : i.wiki_image;
396
+ }
368
397
  export {
369
- T as CharacterSheet,
370
- U as SheetBack,
371
- S as darken,
372
- C as parseRgb,
373
- M as rgbString
398
+ B as CharacterSheet,
399
+ H as SheetBack,
400
+ C as darken,
401
+ _ as parseRgb,
402
+ w as rgbString
374
403
  };
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:-6mm 0 -6mm -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}.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}.title-container{z-index:1;display:flex;justify-content:center}.minor-word{padding:0 8mm;font-size:15mm;word-spacing:-6mm;display:flex}
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:-6mm 0 -6mm -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}.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 interface ResolvedCharacter {
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
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,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"}
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,3 @@
1
+ import { JSX } from "preact/jsx-runtime";
2
+ export declare const formatWithMinorWords: (text: string) => JSX.Element[];
3
+ //# sourceMappingURL=minorWordFormatter.d.ts.map
@@ -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.7.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -27,5 +27,8 @@
27
27
  "preact": "^10.19.3",
28
28
  "typescript": "^5.3.3",
29
29
  "vite": "^5.0.8"
30
+ },
31
+ "dependencies": {
32
+ "botc-script-checker": "^0.1.1"
30
33
  }
31
34
  }