@eveshipfit/ui-ingame 1.11.0 → 1.11.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.
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +20 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -343,7 +343,7 @@ interface FittingWindowProps {
|
|
|
343
343
|
browser?: ReactNode;
|
|
344
344
|
/** Like `ShipStatistics`; slid out by the Statistics button, which is only there with it. */
|
|
345
345
|
statistics?: ReactNode;
|
|
346
|
-
/** Shows the fit without its
|
|
346
|
+
/** Shows the fit without its warnings, history or anything to change it. */
|
|
347
347
|
preview?: boolean;
|
|
348
348
|
/** Shows an empty wheel with this text, and nothing of the fit. */
|
|
349
349
|
placeholder?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -8196,6 +8196,7 @@ function FittingWindow({ label = "Fitting Window", browser, statistics: givenSta
|
|
|
8196
8196
|
})
|
|
8197
8197
|
})
|
|
8198
8198
|
}),
|
|
8199
|
+
preview && placeholder === void 0 && /* @__PURE__ */ jsx(PreviewName, {}),
|
|
8199
8200
|
!preview && placeholder === void 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FitName, {}), /* @__PURE__ */ jsx(Violations, {})] }),
|
|
8200
8201
|
!preview && browser !== void 0 && /* @__PURE__ */ jsx("div", {
|
|
8201
8202
|
className: FittingWindow_module_default.tools,
|
|
@@ -8443,6 +8444,25 @@ function FitName() {
|
|
|
8443
8444
|
function _temp$7(event_0) {
|
|
8444
8445
|
return event_0.currentTarget.select();
|
|
8445
8446
|
}
|
|
8447
|
+
function PreviewName() {
|
|
8448
|
+
const $ = c(2);
|
|
8449
|
+
const shown = useShownSnapshot().fit;
|
|
8450
|
+
const ship = useType(shown.ship.type_id);
|
|
8451
|
+
const t0 = shown.name || ship?.name;
|
|
8452
|
+
let t1;
|
|
8453
|
+
if ($[0] !== t0) {
|
|
8454
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
8455
|
+
className: FittingWindow_module_default.name,
|
|
8456
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
8457
|
+
className: FittingWindow_module_default.fitName,
|
|
8458
|
+
children: t0
|
|
8459
|
+
})
|
|
8460
|
+
});
|
|
8461
|
+
$[0] = t0;
|
|
8462
|
+
$[1] = t1;
|
|
8463
|
+
} else t1 = $[1];
|
|
8464
|
+
return t1;
|
|
8465
|
+
}
|
|
8446
8466
|
const violationKinds = [
|
|
8447
8467
|
{
|
|
8448
8468
|
kind: "error",
|