@ai-matrx/records-ui 0.115.93 → 0.115.94
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/CHANGELOG.md +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
-
## 0.115.
|
|
3
|
+
## 0.115.94
|
|
4
4
|
### Unreleased
|
|
5
5
|
|
|
6
6
|
- URL preview (Airtable's "Preview links"): a URL cell shows the page's title, description, site icon and image in a hover card, read through the new optional host port `linkPreview.read(url)` (the host asks its server; the browser never fetches the page). Unbound, the cell is the plain link chip.
|
package/dist/index.cjs
CHANGED
|
@@ -551,7 +551,7 @@ __export(src_exports, {
|
|
|
551
551
|
renderValue: () => renderValue,
|
|
552
552
|
rescheduledValue: () => rescheduledValue,
|
|
553
553
|
resolveTableStyle: () => resolveTableStyle,
|
|
554
|
-
|
|
554
|
+
restoreInterfaceVersion: () => restoreInterfaceVersion,
|
|
555
555
|
revokeConsequence: () => revokeConsequence,
|
|
556
556
|
rightsReason: () => rightsReason,
|
|
557
557
|
rowActionFromAgent: () => rowActionFromAgent,
|
|
@@ -49572,7 +49572,7 @@ function clearUnpublished(shape) {
|
|
|
49572
49572
|
if (!shape.published) return shape;
|
|
49573
49573
|
return { ...shape, draft: { pages: shape.published.pages } };
|
|
49574
49574
|
}
|
|
49575
|
-
function
|
|
49575
|
+
function restoreInterfaceVersion(shape, version2) {
|
|
49576
49576
|
const found = shape.versions.find((v) => v.version === version2);
|
|
49577
49577
|
return found ? { ...shape, draft: { pages: found.pages } } : shape;
|
|
49578
49578
|
}
|
|
@@ -51880,7 +51880,7 @@ function DoorLayoutView({ block, door }) {
|
|
|
51880
51880
|
"data-records-page-card": row.id,
|
|
51881
51881
|
children: [
|
|
51882
51882
|
block.image_field && typeof (row.document ?? {})[block.image_field] === "string" ? /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("img", { src: (row.document ?? {})[block.image_field], alt: "", className: "h-28 w-full rounded object-cover" }) : null,
|
|
51883
|
-
columns.map((f) => /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("span", { className: (0, import_design_system145.cn)("min-w-0 truncate", f.key === title?.key ? "text-sm font-medium" : "text-xs"), children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(RecordValue, { field: f, value: (row.document ?? {})[f.key], document: row.document, recordId: row.id, inCell: true }) }, f.key))
|
|
51883
|
+
columns.map((f) => /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("span", { className: (0, import_design_system145.cn)("min-w-0 truncate", f.key === title?.key ? "text-sm font-medium" : "text-xs"), children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(RecordValue, { field: f, value: (row.document ?? {})[f.key], document: row.document, withheld: row.hidden?.[f.key] ?? null, recordId: row.id, inCell: true }) }, f.key))
|
|
51884
51884
|
]
|
|
51885
51885
|
},
|
|
51886
51886
|
row.id
|
|
@@ -52705,7 +52705,7 @@ function InterfaceScreen({
|
|
|
52705
52705
|
const builder = !!read && BUILDER_LEVELS.has(read.level);
|
|
52706
52706
|
const showDraft = builder && (editing || !shape?.published);
|
|
52707
52707
|
const pages = shape ? showDraft ? shape.draft.pages : shape.published?.pages ?? [] : [];
|
|
52708
|
-
const page = pageById(pages,
|
|
52708
|
+
const page = pageById(pages, localPage ?? pageId);
|
|
52709
52709
|
const charts = (0, import_react297.useMemo)(() => shape ? interfaceCharts(shape) : [], [shape]);
|
|
52710
52710
|
const through = !!read && !read.member;
|
|
52711
52711
|
const chartKey = read ? `${read.id}:${read.version}:${charts.length}` : "";
|
|
@@ -52768,7 +52768,7 @@ function InterfaceScreen({
|
|
|
52768
52768
|
value: "",
|
|
52769
52769
|
options: shape.versions.map((v) => ({ value: String(v.version), label: `Version ${v.version}${v.at ? ` \xB7 ${v.at.slice(0, 10)}` : ""}` })),
|
|
52770
52770
|
onChange: (v) => {
|
|
52771
|
-
if (v) void save(
|
|
52771
|
+
if (v) void save(restoreInterfaceVersion(shape, Number(v)));
|
|
52772
52772
|
},
|
|
52773
52773
|
attrs: { "data-records-interface-history": "" },
|
|
52774
52774
|
className: "h-8 w-32"
|
|
@@ -52838,6 +52838,9 @@ function InterfaceScreen({
|
|
|
52838
52838
|
onBlur: (e) => {
|
|
52839
52839
|
const name = e.currentTarget.value.trim();
|
|
52840
52840
|
if (name && name !== read.name) void save(shape, name);
|
|
52841
|
+
},
|
|
52842
|
+
onKeyDown: (e) => {
|
|
52843
|
+
if (e.key === "Enter") e.currentTarget.blur();
|
|
52841
52844
|
}
|
|
52842
52845
|
},
|
|
52843
52846
|
`name-${read.version}`
|
|
@@ -52862,6 +52865,9 @@ function InterfaceScreen({
|
|
|
52862
52865
|
onBlur: (e) => {
|
|
52863
52866
|
const name = e.currentTarget.value.trim();
|
|
52864
52867
|
if (name && name !== page.name) savePage({ ...page, name });
|
|
52868
|
+
},
|
|
52869
|
+
onKeyDown: (e) => {
|
|
52870
|
+
if (e.key === "Enter") e.currentTarget.blur();
|
|
52865
52871
|
}
|
|
52866
52872
|
},
|
|
52867
52873
|
`page-${page.id}-${page.name}`
|