@dbx-tools/ui 0.9.141 → 0.9.144
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/index.ts +1 -1
- package/package.json +6 -6
- package/src/react/record-preview-data.ts +2 -0
- package/src/react/record-preview.tsx +24 -3
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/ui";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.144";
|
|
7
7
|
export * as authReactAuthClient from "./src/auth/react/auth-client.ts";
|
|
8
8
|
export * as authReactAuthGate from "./src/auth/react/auth-gate.tsx";
|
|
9
9
|
export * as authReactPasskeyManager from "./src/auth/react/passkey-manager.tsx";
|
package/package.json
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@databricks/appkit-ui": "0.81.0",
|
|
33
|
-
"@dbx-tools/shared-auth": "^0.9.
|
|
34
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
35
|
-
"@dbx-tools/shared-email": "^0.9.
|
|
36
|
-
"@dbx-tools/shared-email-template": "^0.9.
|
|
37
|
-
"@dbx-tools/shared-search": "^0.9.
|
|
33
|
+
"@dbx-tools/shared-auth": "^0.9.144",
|
|
34
|
+
"@dbx-tools/shared-core": "^0.9.144",
|
|
35
|
+
"@dbx-tools/shared-email": "^0.9.144",
|
|
36
|
+
"@dbx-tools/shared-email-template": "^0.9.144",
|
|
37
|
+
"@dbx-tools/shared-search": "^0.9.144",
|
|
38
38
|
"lucide-react": "^0.554.0",
|
|
39
39
|
"shiki": "^3.0.0",
|
|
40
40
|
"streamdown": "^2.5.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"version": "0.9.
|
|
47
|
+
"version": "0.9.144",
|
|
48
48
|
"dbxToolsConfig": {
|
|
49
49
|
"tags": [
|
|
50
50
|
"ui"
|
|
@@ -41,8 +41,22 @@ export {
|
|
|
41
41
|
} from "./record-preview-data.ts";
|
|
42
42
|
|
|
43
43
|
/** Compact Streamdown in a table cell: match 11px rows, keep lists tight. */
|
|
44
|
-
const MARKDOWN_CELL_CLASSES =
|
|
45
|
-
"min-w-0 max-w-full text-[11px] leading-snug
|
|
44
|
+
const MARKDOWN_CELL_CLASSES = cn(
|
|
45
|
+
"min-w-0 max-w-full text-[11px] leading-snug",
|
|
46
|
+
"[&>div]:space-y-1 [&_p]:my-0.5 [&_p]:leading-snug",
|
|
47
|
+
"[&_ul]:my-0.5 [&_ol]:my-0.5 [&_li]:my-0",
|
|
48
|
+
"[&_h1]:my-1 [&_h1]:text-[11px] [&_h1]:font-semibold",
|
|
49
|
+
"[&_h2]:my-1 [&_h2]:text-[11px] [&_h2]:font-semibold",
|
|
50
|
+
"[&_h3]:my-1 [&_h3]:text-[11px] [&_h3]:font-semibold",
|
|
51
|
+
"[&_pre]:my-1 [&_pre]:overflow-x-auto [&_pre]:rounded",
|
|
52
|
+
"[&_pre]:bg-background/60 [&_pre]:p-1.5 [&_pre]:text-[10px] [&_code]:text-[10px]",
|
|
53
|
+
"[&_[data-streamdown=table-wrapper]]:my-1 [&_[data-streamdown=table-wrapper]]:gap-1",
|
|
54
|
+
"[&_[data-streamdown=table-wrapper]]:rounded [&_[data-streamdown=table-wrapper]]:p-1",
|
|
55
|
+
"[&_[data-streamdown=table-header-cell]]:px-2 [&_[data-streamdown=table-header-cell]]:py-1",
|
|
56
|
+
"[&_[data-streamdown=table-header-cell]]:text-[11px] [&_[data-streamdown=table-header-cell]]:leading-snug",
|
|
57
|
+
"[&_[data-streamdown=table-cell]]:px-2 [&_[data-streamdown=table-cell]]:py-1",
|
|
58
|
+
"[&_[data-streamdown=table-cell]]:text-[11px] [&_[data-streamdown=table-cell]]:leading-snug",
|
|
59
|
+
);
|
|
46
60
|
|
|
47
61
|
const MAX_NESTED_DEPTH = 12;
|
|
48
62
|
const MAX_INDENT_DEPTH = 4;
|
|
@@ -150,6 +164,8 @@ function FieldRow({
|
|
|
150
164
|
depth: number;
|
|
151
165
|
divided?: boolean;
|
|
152
166
|
}) {
|
|
167
|
+
const stacked =
|
|
168
|
+
typeof row.value === "string" && (row.value.includes("\n") || looksLikeMarkdown(row.value));
|
|
153
169
|
return (
|
|
154
170
|
<TableRow className={cn("hover:bg-transparent", divided && "border-t-2 border-border/50")}>
|
|
155
171
|
<TableCell
|
|
@@ -157,7 +173,12 @@ function FieldRow({
|
|
|
157
173
|
className="min-w-0 whitespace-normal px-0 py-1.5 pr-8 align-top [overflow-wrap:anywhere]"
|
|
158
174
|
style={{ paddingLeft: rowIndent(depth) }}
|
|
159
175
|
>
|
|
160
|
-
<div
|
|
176
|
+
<div
|
|
177
|
+
className={cn(
|
|
178
|
+
"grid min-w-0 gap-0.5",
|
|
179
|
+
stacked ? "grid-cols-1 gap-1" : "sm:grid-cols-[7rem_minmax(0,1fr)] sm:gap-1.5",
|
|
180
|
+
)}
|
|
181
|
+
>
|
|
161
182
|
<div className="text-[10px] font-medium leading-snug text-muted-foreground sm:text-[11px]">
|
|
162
183
|
{row.label}
|
|
163
184
|
</div>
|