botc-character-sheet 0.6.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,9 +1,14 @@
1
1
  import "./SheetBack.css";
2
+ import { NightOrderEntry } from "./types";
2
3
  type SheetBackProps = {
3
4
  title: string;
4
5
  color: string;
5
6
  includeMargins: boolean;
7
+ formatMinorWords?: boolean;
8
+ displayNightOrder?: boolean;
9
+ firstNightOrder?: NightOrderEntry[];
10
+ otherNightOrder?: NightOrderEntry[];
6
11
  };
7
- export declare const SheetBack: ({ title, color, includeMargins }: SheetBackProps) => import("preact").JSX.Element;
12
+ export declare const SheetBack: ({ title, color, includeMargins, formatMinorWords, displayNightOrder, firstNightOrder, otherNightOrder, }: SheetBackProps) => import("preact").JSX.Element;
8
13
  export {};
9
14
  //# sourceMappingURL=SheetBack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetBack.d.ts","sourceRoot":"","sources":["../src/SheetBack.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAEzB,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,kCAAkC,cAAc,iCA6BzE,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,75 +1,75 @@
1
1
  import { options as p, Fragment as u } from "preact";
2
- var N = 0;
3
- function e(i, n, s, r, t, c) {
2
+ var y = 0;
3
+ function e(i, n, r, s, t, o) {
4
4
  n || (n = {});
5
- var l, o, d = n;
6
- if ("ref" in d) for (o in d = {}, n) o == "ref" ? l = n[o] : d[o] = n[o];
7
- var a = { type: i, props: d, key: s, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --N, __i: -1, __u: 0, __source: t, __self: c };
8
- if (typeof i == "function" && (l = i.defaultProps)) for (o in l) d[o] === void 0 && (d[o] = l[o]);
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
9
  return p.vnode && p.vnode(a), a;
10
10
  }
11
- function k(i) {
11
+ function _(i) {
12
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), s = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
15
- return [n, s, r];
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 y(i, n, s) {
18
- const r = (t) => {
19
- const c = t.toString(16);
20
- return c.length === 1 ? "0" + c : c;
17
+ function w(i, n, r) {
18
+ const s = (t) => {
19
+ const o = t.toString(16);
20
+ return o.length === 1 ? "0" + o : o;
21
21
  };
22
- return `#${r(i)}${r(n)}${r(s)}`;
22
+ return `#${s(i)}${s(n)}${s(r)}`;
23
23
  }
24
- function b(i, n) {
25
- const [s, r, t] = k(i), c = Math.round(s * n), l = Math.round(r * n), o = Math.round(t * n);
26
- return y(c, l, o);
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 x({
28
+ function B({
29
29
  title: i,
30
30
  author: n,
31
- characters: s,
32
- color: r = "#4a5568",
31
+ characters: r,
32
+ color: s = "#4a5568",
33
33
  jinxes: t = [],
34
- showSwirls: c = !0,
34
+ showSwirls: o = !0,
35
35
  includeMargins: l = !1,
36
- solidTitle: o = !1,
37
- iconScale: d = 1.6,
36
+ solidTitle: d = !1,
37
+ iconScale: c = 1.6,
38
38
  compactAppearance: a = !1
39
39
  }) {
40
40
  const m = [
41
41
  {
42
42
  key: "townsfolk",
43
43
  title: "Townsfolk",
44
- chars: s.townsfolk,
44
+ chars: r.townsfolk,
45
45
  color: "#00469e"
46
46
  },
47
47
  {
48
48
  key: "outsider",
49
49
  title: "Outsiders",
50
- chars: s.outsider,
50
+ chars: r.outsider,
51
51
  color: "#00469e"
52
52
  },
53
53
  {
54
54
  key: "minion",
55
55
  title: "Minions",
56
- chars: s.minion,
56
+ chars: r.minion,
57
57
  color: "#580709"
58
58
  },
59
59
  {
60
60
  key: "demon",
61
61
  title: "Demons",
62
- chars: s.demon,
62
+ chars: r.demon,
63
63
  color: "#580709"
64
64
  }
65
- ].filter((h) => h.chars.length > 0), g = b(r, 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": r,
72
+ "--header-color-light": s,
73
73
  "--header-color-dark": g,
74
74
  transform: l ? "scale(0.952)" : void 0
75
75
  },
@@ -81,44 +81,44 @@ function x({
81
81
  src: "/images/parchment_texture_a4_lightened.jpg"
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ e(w, { color: r }),
84
+ /* @__PURE__ */ e(S, { color: s }),
85
85
  /* @__PURE__ */ e("div", { className: "sheet-content", children: [
86
86
  /* @__PURE__ */ e(
87
- _,
87
+ M,
88
88
  {
89
- showSwirls: c,
89
+ showSwirls: o,
90
90
  title: i,
91
91
  author: n,
92
- solidHeader: o
92
+ solidHeader: d
93
93
  }
94
94
  ),
95
95
  /* @__PURE__ */ e("div", { className: "characters-grid", children: [
96
- m.map((h, v) => /* @__PURE__ */ e(u, { children: [
96
+ m.map((h, b) => /* @__PURE__ */ e(u, { children: [
97
97
  /* @__PURE__ */ e(
98
- C,
98
+ j,
99
99
  {
100
100
  title: h.title.toUpperCase(),
101
101
  characters: h.chars,
102
- sidebarColor: r,
102
+ sidebarColor: s,
103
103
  charNameColor: h.color,
104
- iconScale: d,
104
+ iconScale: c,
105
105
  compactAppearance: a
106
106
  },
107
107
  h.key
108
108
  ),
109
- v < m.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
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
- j,
114
+ D,
115
115
  {
116
116
  jinxes: t,
117
117
  allCharacters: [
118
- ...s.townsfolk,
119
- ...s.outsider,
120
- ...s.minion,
121
- ...s.demon
118
+ ...r.townsfolk,
119
+ ...r.outsider,
120
+ ...r.minion,
121
+ ...r.demon
122
122
  ]
123
123
  }
124
124
  )
@@ -137,11 +137,11 @@ function x({
137
137
  }
138
138
  );
139
139
  }
140
- function _({
140
+ function M({
141
141
  showSwirls: i,
142
142
  title: n,
143
- author: s,
144
- solidHeader: r = !1
143
+ author: r,
144
+ solidHeader: s = !1
145
145
  }) {
146
146
  return console.log("title:", n), /* @__PURE__ */ e(u, { children: [
147
147
  /* @__PURE__ */ e("h1", { className: "sheet-header", children: [
@@ -156,7 +156,7 @@ function _({
156
156
  "span",
157
157
  {
158
158
  style: {
159
- mixBlendMode: r ? "normal" : "multiply"
159
+ mixBlendMode: s ? "normal" : "multiply"
160
160
  },
161
161
  children: n
162
162
  }
@@ -169,45 +169,45 @@ function _({
169
169
  }
170
170
  )
171
171
  ] }),
172
- s && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
172
+ r && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
173
173
  "by ",
174
- s
174
+ r
175
175
  ] })
176
176
  ] });
177
177
  }
178
- function w({ 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 C({
184
+ function j({
185
185
  title: i,
186
186
  characters: n,
187
- charNameColor: s,
188
- iconScale: r,
187
+ charNameColor: r,
188
+ iconScale: s,
189
189
  compactAppearance: t = !1
190
190
  }) {
191
- const c = n.length > 6 ? "space-between" : "flex-start";
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
195
  /* @__PURE__ */ e("div", { className: "character-column", children: n.slice(0, Math.ceil(n.length / 2)).map((l) => /* @__PURE__ */ e(
196
- f,
196
+ v,
197
197
  {
198
198
  character: l,
199
- color: s,
200
- iconScale: r,
199
+ color: r,
200
+ iconScale: s,
201
201
  compactAppearance: t
202
202
  },
203
203
  l.id
204
204
  )) }),
205
- /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: c }, children: n.slice(Math.ceil(n.length / 2), n.length).map((l) => /* @__PURE__ */ e(
206
- f,
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
208
  character: l,
209
- color: s,
210
- iconScale: r,
209
+ color: r,
210
+ iconScale: s,
211
211
  compactAppearance: t
212
212
  },
213
213
  l.id
@@ -215,28 +215,28 @@ function C({
215
215
  ] })
216
216
  ] });
217
217
  }
218
- function f({
218
+ function v({
219
219
  character: i,
220
220
  color: n,
221
- iconScale: s,
222
- compactAppearance: r = !1
221
+ iconScale: r,
222
+ compactAppearance: s = !1
223
223
  }) {
224
- const t = () => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null, c = (o) => {
225
- const d = o.match(/^(.*?)(\[.*?\])$/);
226
- if (d) {
227
- const [, a, m] = 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
228
  return /* @__PURE__ */ e(u, { children: [
229
229
  a,
230
230
  /* @__PURE__ */ e("strong", { className: "setup-ability", children: m })
231
231
  ] });
232
232
  }
233
- return o;
233
+ return d;
234
234
  }, l = t();
235
235
  return /* @__PURE__ */ e(
236
236
  "div",
237
237
  {
238
238
  className: "character-card",
239
- style: { marginBottom: r ? "1mm" : void 0 },
239
+ style: { marginBottom: s ? "1mm" : void 0 },
240
240
  children: [
241
241
  /* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: l ? /* @__PURE__ */ e(
242
242
  "img",
@@ -244,44 +244,44 @@ function f({
244
244
  src: l,
245
245
  alt: i.name,
246
246
  className: "character-icon",
247
- style: { scale: s.toString() }
247
+ style: { scale: r.toString() }
248
248
  }
249
249
  ) : /* @__PURE__ */ e(
250
250
  "div",
251
251
  {
252
252
  className: "character-icon-placeholder",
253
- style: { color: n, scale: s.toString() },
253
+ style: { color: n, scale: r.toString() },
254
254
  children: i.name.charAt(0)
255
255
  }
256
256
  ) }),
257
257
  /* @__PURE__ */ e("div", { className: "character-info", children: [
258
258
  /* @__PURE__ */ e("h3", { className: "character-name", style: { color: n }, children: i.name }),
259
- /* @__PURE__ */ e("p", { className: "character-ability", children: c(i.ability) })
259
+ /* @__PURE__ */ e("p", { className: "character-ability", children: o(i.ability) })
260
260
  ] })
261
261
  ]
262
262
  }
263
263
  );
264
264
  }
265
- function j({ jinxes: i, allCharacters: n }) {
266
- const s = new Map(
265
+ function D({ jinxes: i, allCharacters: n }) {
266
+ const r = new Map(
267
267
  n.map((a) => [a.id.toLowerCase(), a])
268
- ), r = (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 = s.get(a.characters[0]), h = s.get(a.characters[1]);
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
- g && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: r(g) ? /* @__PURE__ */ e(
272
+ g && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: s(g) ? /* @__PURE__ */ e(
273
273
  "img",
274
274
  {
275
- src: r(g),
275
+ src: s(g),
276
276
  alt: g.name,
277
277
  className: "jinx-icon"
278
278
  }
279
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: r(h) ? /* @__PURE__ */ e(
281
+ h && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: s(h) ? /* @__PURE__ */ e(
282
282
  "img",
283
283
  {
284
- src: r(h),
284
+ src: s(h),
285
285
  alt: h.name,
286
286
  className: "jinx-icon"
287
287
  }
@@ -289,30 +289,98 @@ function j({ jinxes: i, allCharacters: n }) {
289
289
  ] }),
290
290
  /* @__PURE__ */ e("p", { className: "jinx-text", children: a.jinx })
291
291
  ] }, m);
292
- }, c = i.length > 4, l = c ? Math.ceil(i.length / 2) : i.length, o = i.slice(0, l), d = i.slice(l);
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
- c ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
296
- /* @__PURE__ */ e("div", { className: "jinx-column", children: o.map((a, m) => t(a, m)) }),
297
- /* @__PURE__ */ e("div", { className: "jinx-column", children: d.map((a, m) => t(a, l + m)) })
295
+ o ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
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
298
  ] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: i.map((a, m) => t(a, m)) })
299
299
  ] });
300
300
  }
301
- const S = ({ title: i, color: n, includeMargins: s }) => /* @__PURE__ */ e(
301
+ const N = /* @__PURE__ */ new Set([
302
+ "the",
303
+ "of",
304
+ "in",
305
+ "a",
306
+ "an",
307
+ "and",
308
+ "or",
309
+ "but",
310
+ "for",
311
+ "to",
312
+ "at",
313
+ "by",
314
+ "on",
315
+ "with",
316
+ "from",
317
+ "into",
318
+ "upon",
319
+ "after",
320
+ "before"
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(
302
352
  "div",
303
353
  {
304
354
  className: "sheet-backing",
305
355
  style: {
306
- transform: s ? "scale(0.952)" : void 0
356
+ transform: r ? "scale(0.952)" : void 0
307
357
  },
308
358
  children: [
309
- /* @__PURE__ */ e("div", { className: "sheet-background", children: /* @__PURE__ */ e("h1", { children: (() => {
310
- const t = i.split("&");
311
- return t.map((c, l) => /* @__PURE__ */ e(u, { children: [
312
- c,
313
- l < t.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
314
- ] }));
315
- })() }) }),
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
+ ] }),
316
384
  /* @__PURE__ */ e(
317
385
  "div",
318
386
  {
@@ -323,10 +391,13 @@ const S = ({ title: i, color: n, includeMargins: s }) => /* @__PURE__ */ e(
323
391
  ]
324
392
  }
325
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
+ }
326
397
  export {
327
- x as CharacterSheet,
328
- S as SheetBack,
329
- b as darken,
330
- k as parseRgb,
331
- y as rgbString
398
+ B as CharacterSheet,
399
+ H as SheetBack,
400
+ C as darken,
401
+ _ as parseRgb,
402
+ w as rgbString
332
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}.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;width:100mm;text-align:center;padding:20mm 0;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-break:break-word;word-spacing:-10mm}.sheet-backing h1 .ampersand{font-size:45mm;line-height:0;vertical-align:-5mm;margin:0 -5mm}
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.6.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
  }