@tipp/ui 2.10.0 → 2.10.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/app/roleplay/index.cjs +16 -7
- package/dist/app/roleplay/index.cjs.map +1 -1
- package/dist/app/roleplay/index.js +3 -3
- package/dist/app/roleplay/parts/content.cjs +16 -12
- package/dist/app/roleplay/parts/content.cjs.map +1 -1
- package/dist/app/roleplay/parts/content.js +2 -2
- package/dist/app/roleplay/parts/score-trend-section.cjs +15 -14
- package/dist/app/roleplay/parts/score-trend-section.cjs.map +1 -1
- package/dist/app/roleplay/parts/score-trend-section.js +1 -2
- package/dist/app/roleplay/rp-session-detail.cjs +16 -7
- package/dist/app/roleplay/rp-session-detail.cjs.map +1 -1
- package/dist/app/roleplay/rp-session-detail.js +3 -3
- package/dist/{chunk-2TOASXPK.js → chunk-32WIS4L7.js} +2 -2
- package/dist/{chunk-XM4GWPXC.js → chunk-YHP75Y5K.js} +17 -11
- package/dist/chunk-YHP75Y5K.js.map +1 -0
- package/dist/{chunk-T7LKMJVA.js → chunk-ZE36DFOC.js} +2 -2
- package/package.json +1 -1
- package/src/app/roleplay/parts/score-trend-section.tsx +18 -8
- package/dist/chunk-XM4GWPXC.js.map +0 -1
- /package/dist/{chunk-2TOASXPK.js.map → chunk-32WIS4L7.js.map} +0 -0
- /package/dist/{chunk-T7LKMJVA.js.map → chunk-ZE36DFOC.js.map} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RpSessionDetail
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ZE36DFOC.js";
|
|
4
4
|
import {
|
|
5
5
|
parseReportData
|
|
6
6
|
} from "../../chunk-TFJJKM3W.js";
|
|
7
7
|
import "../../chunk-QMAINJ4G.js";
|
|
8
8
|
import "../../chunk-3UGBMKSQ.js";
|
|
9
9
|
import "../../chunk-EHDUKUML.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-32WIS4L7.js";
|
|
11
11
|
import "../../chunk-EBFQFOUQ.js";
|
|
12
12
|
import "../../chunk-6YIKOYBQ.js";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-YHP75Y5K.js";
|
|
14
14
|
import "../../chunk-NKW6BO5R.js";
|
|
15
15
|
import "../../chunk-KJPBBBVK.js";
|
|
16
16
|
import "../../chunk-5QIT4URV.js";
|
|
@@ -2320,11 +2320,6 @@ function stepCode(step) {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
return step.key.split("_")[0].slice(0, 4).toUpperCase();
|
|
2322
2322
|
}
|
|
2323
|
-
function formatDate(iso) {
|
|
2324
|
-
const d = new Date(iso);
|
|
2325
|
-
if (Number.isNaN(d.getTime())) return iso;
|
|
2326
|
-
return (0, import_date_fns.format)(d, "M/d HH:mm");
|
|
2327
|
-
}
|
|
2328
2323
|
var SPEECH_OVERTALK_THRESHOLD = 40;
|
|
2329
2324
|
|
|
2330
2325
|
// src/app/roleplay/parts/analysis-section.tsx
|
|
@@ -2629,6 +2624,7 @@ function ScoreSummary({
|
|
|
2629
2624
|
|
|
2630
2625
|
// src/app/roleplay/parts/score-trend-section.tsx
|
|
2631
2626
|
var import_react68 = require("react");
|
|
2627
|
+
var import_date_fns4 = require("date-fns");
|
|
2632
2628
|
|
|
2633
2629
|
// src/molecules/expand-table/index.tsx
|
|
2634
2630
|
var import_react_table2 = require("@tanstack/react-table");
|
|
@@ -3862,6 +3858,11 @@ function useTokenColors(vars) {
|
|
|
3862
3858
|
|
|
3863
3859
|
// src/app/roleplay/parts/score-trend-section.tsx
|
|
3864
3860
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
3861
|
+
function formatDateOnly(iso) {
|
|
3862
|
+
const d = new Date(iso);
|
|
3863
|
+
if (Number.isNaN(d.getTime())) return iso;
|
|
3864
|
+
return (0, import_date_fns4.format)(d, "M/d");
|
|
3865
|
+
}
|
|
3865
3866
|
function Section4({
|
|
3866
3867
|
title,
|
|
3867
3868
|
desc,
|
|
@@ -3901,7 +3902,7 @@ function AttemptCell({ row }) {
|
|
|
3901
3902
|
);
|
|
3902
3903
|
}
|
|
3903
3904
|
function DateCell({ row }) {
|
|
3904
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children:
|
|
3905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children: formatDateOnly(row.original.createdAt) });
|
|
3905
3906
|
}
|
|
3906
3907
|
function ScoreCell({ row }) {
|
|
3907
3908
|
var _a;
|
|
@@ -3999,32 +4000,34 @@ function ScoreTrendSection({
|
|
|
3999
4000
|
const columns = (0, import_react68.useMemo)(() => {
|
|
4000
4001
|
const h = (0, import_react_table2.createColumnHelper)();
|
|
4001
4002
|
return [
|
|
4003
|
+
// autoSize 컬럼에선 size가 최소폭으로 동작(1fr로 늘어남). 모바일(iPhone SE 375px,
|
|
4004
|
+
// 가용 ≈343px)에서 grid 최소폭 합이 화면을 넘지 않도록 작게 잡는다.
|
|
4002
4005
|
h.display({
|
|
4003
4006
|
id: "attempt",
|
|
4004
4007
|
header: "\uD68C\uCC28",
|
|
4005
|
-
size:
|
|
4006
|
-
meta: {
|
|
4008
|
+
size: 116,
|
|
4009
|
+
meta: { align: "left" },
|
|
4007
4010
|
cell: AttemptCell
|
|
4008
4011
|
}),
|
|
4009
4012
|
h.display({
|
|
4010
4013
|
id: "date",
|
|
4011
4014
|
header: "\uB0A0\uC9DC",
|
|
4012
|
-
size:
|
|
4015
|
+
size: 76,
|
|
4013
4016
|
meta: { align: "left" },
|
|
4014
4017
|
cell: DateCell
|
|
4015
4018
|
}),
|
|
4016
4019
|
h.display({
|
|
4017
4020
|
id: "score",
|
|
4018
4021
|
header: "\uCD1D\uC810",
|
|
4019
|
-
size:
|
|
4022
|
+
size: 64,
|
|
4020
4023
|
meta: { align: "right" },
|
|
4021
4024
|
cell: ScoreCell
|
|
4022
4025
|
}),
|
|
4023
4026
|
h.display({
|
|
4024
4027
|
id: "delta",
|
|
4025
4028
|
header: "\uBCC0\uD654",
|
|
4026
|
-
size:
|
|
4027
|
-
meta: { align: "
|
|
4029
|
+
size: 64,
|
|
4030
|
+
meta: { autoSize: true, align: "left" },
|
|
4028
4031
|
cell: DeltaCell
|
|
4029
4032
|
})
|
|
4030
4033
|
];
|
|
@@ -4054,6 +4057,7 @@ function ScoreTrendSection({
|
|
|
4054
4057
|
data: rows,
|
|
4055
4058
|
getRowStyle: (d) => d.isCurrent ? { background: "var(--accent-a2)" } : {},
|
|
4056
4059
|
showPagination: false,
|
|
4060
|
+
slim: true,
|
|
4057
4061
|
variant: "sprite"
|
|
4058
4062
|
}
|
|
4059
4063
|
) })
|