@mnmal-ai/surface-core 0.17.0 → 0.17.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.js +4 -2
- package/dist/list-pager.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1373,6 +1373,7 @@ function ListPage({ step, depth, theme, size }) {
|
|
|
1373
1373
|
}),
|
|
1374
1374
|
step.filtering || step.filter !== "" ? /* @__PURE__ */ jsx(Text, {
|
|
1375
1375
|
color: theme.color.dim,
|
|
1376
|
+
wrap: "truncate",
|
|
1376
1377
|
children: `filter: ${step.filter}${step.filtering ? "▌" : ""}`
|
|
1377
1378
|
}) : null,
|
|
1378
1379
|
/* @__PURE__ */ jsx(Box, {
|
|
@@ -1380,7 +1381,8 @@ function ListPage({ step, depth, theme, size }) {
|
|
|
1380
1381
|
flexDirection: "column",
|
|
1381
1382
|
children: slice.length === 0 ? /* @__PURE__ */ jsx(Text, {
|
|
1382
1383
|
color: theme.color.dim,
|
|
1383
|
-
|
|
1384
|
+
wrap: "truncate",
|
|
1385
|
+
children: step.filter === "" ? "nothing here" : `no rows match ${step.filter}`
|
|
1384
1386
|
}) : /* @__PURE__ */ jsx(ListRows, {
|
|
1385
1387
|
lines: listLines(slice, size.columns, page * per + 1),
|
|
1386
1388
|
theme,
|
|
@@ -1697,7 +1699,7 @@ function listPager() {
|
|
|
1697
1699
|
},
|
|
1698
1700
|
backspace: (s) => keep(backspace(s))
|
|
1699
1701
|
},
|
|
1700
|
-
text: (s, text) => keep(typeChar(s, text)),
|
|
1702
|
+
text: (s, text) => keep(typeChar(s, sanitise(text.replace(/[\r\n]+/g, " ")))),
|
|
1701
1703
|
escape: (s) => {
|
|
1702
1704
|
const prev = back(s);
|
|
1703
1705
|
return prev === void 0 ? void 0 : keep(prev);
|
package/dist/list-pager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-pager.d.ts","sourceRoot":"","sources":["../src/list-pager.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,QAAQ,EAGd,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAOL,KAAK,SAAS,EAId,KAAK,UAAU,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAgC,KAAK,KAAK,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGlG,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AAMpC,kGAAkG;AAClG,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"list-pager.d.ts","sourceRoot":"","sources":["../src/list-pager.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,QAAQ,EAGd,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAOL,KAAK,SAAS,EAId,KAAK,UAAU,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAgC,KAAK,KAAK,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGlG,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AAMpC,kGAAkG;AAClG,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAA+B,CAAC;AAuN3E;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI;IAC3B,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;CACnD,CAsKA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnmal-ai/surface-core",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Pluggable terminal UI base on Ink 8 + React 19: module registry, createApp, the turn engine and the shell.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@mnmal-ai/surface-kit": "0.17.
|
|
27
|
-
"@mnmal-ai/surface-theme": "0.17.
|
|
26
|
+
"@mnmal-ai/surface-kit": "0.17.1",
|
|
27
|
+
"@mnmal-ai/surface-theme": "0.17.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"ink": "^8.0.0",
|