@crockery/fellowship-components 0.4.0 → 1.0.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 +40 -26
- package/RELEASING.md +15 -14
- package/THIRD_PARTY_LICENSES.md +12 -0
- package/dist/assets/dm-mono-latin-400-normal-4GdczIuU.woff2 +0 -0
- package/dist/assets/dm-mono-latin-500-normal-DRMDZjhP.woff2 +0 -0
- package/dist/assets/syne-latin-700-normal-AF3Rs61n.woff2 +0 -0
- package/dist/assets/syne-latin-800-normal-EehdNYzx.woff2 +0 -0
- package/dist/chunks/decorate-DyMgX_Uh.js +9 -0
- package/dist/chunks/{dungeon-cast-browser-CSnu3gC5.js → dungeon-cast-browser-DdG8klca.js} +62 -60
- package/dist/chunks/{dungeon-map-CutIcCVP.js → dungeon-map-D0-DAjZ9.js} +130 -133
- package/dist/chunks/{decorate-B_ZTN9li.js → field-manual-fonts-DTFloVFe.js} +18 -25
- package/dist/chunks/gear-planner-Bgt77Ovf.js +1696 -0
- package/dist/chunks/{talent-calculator-Dxuc2dZ8.js → talent-calculator-DbU6P1AP.js} +36 -37
- package/dist/chunks/tooltip-C3SSJw-t.js +482 -0
- package/dist/data/cast-data-source.d.ts +1 -2
- package/dist/data/data-source.d.ts +1 -2
- package/dist/data/package-cast-data-source.d.ts +1 -6
- package/dist/data/package-data-source.d.ts +1 -6
- package/dist/data/package-talent-data-source.d.ts +1 -6
- package/dist/data/talent-data-source.d.ts +1 -2
- package/dist/dungeon-cast-browser/dungeon-cast-browser.d.ts +2 -2
- package/dist/dungeon-cast-browser/dungeon-cast-browser.styles.d.ts +0 -1
- package/dist/dungeon-cast-browser/index.d.ts +0 -1
- package/dist/dungeon-cast-browser/render-model.d.ts +3 -3
- package/dist/dungeon-cast-browser/types.d.ts +2 -3
- package/dist/dungeon-cast-browser.js +1 -3
- package/dist/dungeon-map/dungeon-map.d.ts +2 -2
- package/dist/dungeon-map/dungeon-map.styles.d.ts +0 -1
- package/dist/dungeon-map/index.d.ts +0 -1
- package/dist/dungeon-map/layout.d.ts +0 -1
- package/dist/dungeon-map/render-model.d.ts +3 -4
- package/dist/dungeon-map/types.d.ts +2 -3
- package/dist/dungeon-map/viewport-controller.d.ts +0 -1
- package/dist/dungeon-map.js +1 -3
- package/dist/gear-planner/gear-planner.d.ts +36 -0
- package/dist/gear-planner/gear-planner.styles.d.ts +1 -0
- package/dist/gear-planner/gear-position.d.ts +19 -0
- package/dist/gear-planner/index.d.ts +2 -0
- package/dist/gear-planner/item-workbench.d.ts +18 -0
- package/dist/gear-planner/item-workbench.styles.d.ts +1 -0
- package/dist/gear-planner/types.d.ts +24 -0
- package/dist/gear-planner.js +5 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -7
- package/dist/react/dungeon-cast-browser.d.ts +8 -4
- package/dist/react/dungeon-cast-browser.js +11 -6
- package/dist/react/dungeon-map.d.ts +3 -2
- package/dist/react/dungeon-map.js +1 -3
- package/dist/react/gear-planner.d.ts +14 -0
- package/dist/react/gear-planner.js +23 -0
- package/dist/react/index.d.ts +2 -1
- package/dist/react/talent-calculator.d.ts +3 -2
- package/dist/react/talent-calculator.js +1 -3
- package/dist/react/tooltip.d.ts +0 -1
- package/dist/react/tooltip.js +1 -3
- package/dist/react.js +2 -1
- package/dist/styles/dungeon-poster-fonts.d.ts +2 -0
- package/dist/styles/dungeon-poster.styles.d.ts +7 -0
- package/dist/styles/field-manual-fonts.d.ts +0 -1
- package/dist/styles/field-manual.styles.d.ts +0 -1
- package/dist/talent-calculator/index.d.ts +0 -1
- package/dist/talent-calculator/render-model.d.ts +3 -3
- package/dist/talent-calculator/selection-state.d.ts +0 -1
- package/dist/talent-calculator/talent-calculator.d.ts +2 -2
- package/dist/talent-calculator/talent-calculator.styles.d.ts +0 -1
- package/dist/talent-calculator/types.d.ts +2 -3
- package/dist/talent-calculator.js +1 -3
- package/dist/tooltip/index.d.ts +0 -1
- package/dist/tooltip/positioning.d.ts +0 -1
- package/dist/tooltip/rich-text.d.ts +0 -1
- package/dist/tooltip/tooltip.d.ts +0 -1
- package/dist/tooltip/tooltip.styles.d.ts +0 -1
- package/dist/tooltip/types.d.ts +0 -1
- package/dist/tooltip.js +3 -5
- package/package.json +21 -15
- package/src/dungeon-cast-browser/README.md +10 -4
- package/src/dungeon-map/README.md +5 -6
- package/src/gear-planner/README.md +44 -0
- package/src/talent-calculator/README.md +5 -6
- package/src/tooltip/README.md +5 -6
- package/dist/chunks/data-source-XbksqUrw.js +0 -9
- package/dist/chunks/data-source-XbksqUrw.js.map +0 -1
- package/dist/chunks/decorate-B_ZTN9li.js.map +0 -1
- package/dist/chunks/dungeon-cast-browser-CSnu3gC5.js.map +0 -1
- package/dist/chunks/dungeon-map-CutIcCVP.js.map +0 -1
- package/dist/chunks/talent-calculator-Dxuc2dZ8.js.map +0 -1
- package/dist/chunks/tooltip-DoQVSnOn.js +0 -412
- package/dist/chunks/tooltip-DoQVSnOn.js.map +0 -1
- package/dist/data/cast-data-source.d.ts.map +0 -1
- package/dist/data/data-source.d.ts.map +0 -1
- package/dist/data/package-cast-data-source.d.ts.map +0 -1
- package/dist/data/package-data-source.d.ts.map +0 -1
- package/dist/data/package-talent-data-source.d.ts.map +0 -1
- package/dist/data/talent-data-source.d.ts.map +0 -1
- package/dist/dungeon-cast-browser/dungeon-cast-browser.d.ts.map +0 -1
- package/dist/dungeon-cast-browser/dungeon-cast-browser.styles.d.ts.map +0 -1
- package/dist/dungeon-cast-browser/index.d.ts.map +0 -1
- package/dist/dungeon-cast-browser/render-model.d.ts.map +0 -1
- package/dist/dungeon-cast-browser/types.d.ts.map +0 -1
- package/dist/dungeon-cast-browser.js.map +0 -1
- package/dist/dungeon-map/dungeon-map.d.ts.map +0 -1
- package/dist/dungeon-map/dungeon-map.styles.d.ts.map +0 -1
- package/dist/dungeon-map/index.d.ts.map +0 -1
- package/dist/dungeon-map/layout.d.ts.map +0 -1
- package/dist/dungeon-map/render-model.d.ts.map +0 -1
- package/dist/dungeon-map/types.d.ts.map +0 -1
- package/dist/dungeon-map/viewport-controller.d.ts.map +0 -1
- package/dist/dungeon-map.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/react/dungeon-cast-browser.d.ts.map +0 -1
- package/dist/react/dungeon-cast-browser.js.map +0 -1
- package/dist/react/dungeon-map.d.ts.map +0 -1
- package/dist/react/dungeon-map.js.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/talent-calculator.d.ts.map +0 -1
- package/dist/react/talent-calculator.js.map +0 -1
- package/dist/react/tooltip.d.ts.map +0 -1
- package/dist/react/tooltip.js.map +0 -1
- package/dist/styles/field-manual-fonts.d.ts.map +0 -1
- package/dist/styles/field-manual.styles.d.ts.map +0 -1
- package/dist/talent-calculator/index.d.ts.map +0 -1
- package/dist/talent-calculator/render-model.d.ts.map +0 -1
- package/dist/talent-calculator/selection-state.d.ts.map +0 -1
- package/dist/talent-calculator/talent-calculator.d.ts.map +0 -1
- package/dist/talent-calculator/talent-calculator.styles.d.ts.map +0 -1
- package/dist/talent-calculator/types.d.ts.map +0 -1
- package/dist/talent-calculator.js.map +0 -1
- package/dist/tooltip/index.d.ts.map +0 -1
- package/dist/tooltip/positioning.d.ts.map +0 -1
- package/dist/tooltip/rich-text.d.ts.map +0 -1
- package/dist/tooltip/tooltip.d.ts.map +0 -1
- package/dist/tooltip/tooltip.styles.d.ts.map +0 -1
- package/dist/tooltip/types.d.ts.map +0 -1
- package/dist/tooltip.js.map +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FellowshipDataError as e } from "@crockery/fellowship-data/client";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/data/data-source.ts
|
|
4
|
+
var n = 2, r = (t) => {
|
|
5
|
+
if (t !== n) throw new e("unsupported-schema", `Unsupported fellowship-data schema version: ${String(t)}.`);
|
|
6
|
+
}, i = t`
|
|
4
7
|
:host {
|
|
5
8
|
--_fellowship-field-canvas: var(--fellowship-field-canvas, #0b0f13);
|
|
6
9
|
--_fellowship-field-surface: var(--fellowship-field-surface, #10161c);
|
|
@@ -35,58 +38,48 @@ var t = e`
|
|
|
35
38
|
);
|
|
36
39
|
--_fellowship-field-radius: var(--fellowship-field-radius, 6px);
|
|
37
40
|
}
|
|
38
|
-
`,
|
|
41
|
+
`, a = new URL("../assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2", import.meta.url).href, o = new URL("../assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2", import.meta.url).href, s = new URL("../assets/ibm-plex-sans-condensed-latin-400-normal-DKyD6XsY.woff2", import.meta.url).href, c = new URL("../assets/ibm-plex-sans-condensed-latin-500-normal-BqaLkUoX.woff2", import.meta.url).href, l = new URL("../assets/ibm-plex-sans-condensed-latin-600-normal-CRd5VyFf.woff2", import.meta.url).href, u = new URL("../assets/ibm-plex-sans-condensed-latin-700-normal-D8r4s4aS.woff2", import.meta.url).href, d = [
|
|
39
42
|
{
|
|
40
43
|
family: "Fellowship Field",
|
|
41
44
|
weight: "400",
|
|
42
|
-
url:
|
|
45
|
+
url: s
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
48
|
family: "Fellowship Field",
|
|
46
49
|
weight: "500",
|
|
47
|
-
url:
|
|
50
|
+
url: c
|
|
48
51
|
},
|
|
49
52
|
{
|
|
50
53
|
family: "Fellowship Field",
|
|
51
54
|
weight: "600",
|
|
52
|
-
url:
|
|
55
|
+
url: l
|
|
53
56
|
},
|
|
54
57
|
{
|
|
55
58
|
family: "Fellowship Field",
|
|
56
59
|
weight: "700",
|
|
57
|
-
url:
|
|
60
|
+
url: u
|
|
58
61
|
},
|
|
59
62
|
{
|
|
60
63
|
family: "Fellowship Tactical",
|
|
61
64
|
weight: "500",
|
|
62
|
-
url:
|
|
65
|
+
url: a
|
|
63
66
|
},
|
|
64
67
|
{
|
|
65
68
|
family: "Fellowship Tactical",
|
|
66
69
|
weight: "600",
|
|
67
|
-
url:
|
|
70
|
+
url: o
|
|
68
71
|
}
|
|
69
|
-
],
|
|
70
|
-
if (
|
|
72
|
+
], f = /* @__PURE__ */ new WeakSet(), p = (e) => {
|
|
73
|
+
if (f.has(e)) return;
|
|
71
74
|
let t = e.defaultView?.FontFace;
|
|
72
75
|
if (!t || !e.fonts) return;
|
|
73
|
-
let n =
|
|
76
|
+
let n = d.map(({ family: e, weight: n, url: r }) => new t(e, `url(${JSON.stringify(r)}) format("woff2")`, {
|
|
74
77
|
display: "swap",
|
|
75
78
|
style: "normal",
|
|
76
79
|
weight: n
|
|
77
80
|
}));
|
|
78
81
|
for (let t of n) e.fonts.add(t);
|
|
79
|
-
|
|
82
|
+
f.add(e);
|
|
80
83
|
};
|
|
81
84
|
//#endregion
|
|
82
|
-
|
|
83
|
-
function d(e, t, n, r) {
|
|
84
|
-
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
85
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
86
|
-
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
87
|
-
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
export { u as n, t as r, d as t };
|
|
91
|
-
|
|
92
|
-
//# sourceMappingURL=decorate-B_ZTN9li.js.map
|
|
85
|
+
export { r as i, i as n, e as r, p as t };
|