@tightknitai/block-kitchen 0.9.1 → 0.9.2

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 CHANGED
@@ -2922,7 +2922,7 @@ function LoadMessageDialog({
2922
2922
  children: [
2923
2923
  /* @__PURE__ */ jsxs(DialogHeader, { children: [
2924
2924
  /* @__PURE__ */ jsx(DialogTitle, { children: "Edit an existing message" }),
2925
- /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-1.5", children: [
2925
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-1.5 text-left", children: [
2926
2926
  /* @__PURE__ */ jsx(DialogDescription, { children: hasRecent ? "Paste a Slack message link, or pick a recent message your app posted." : `Paste a Slack message link (Slack's "Copy link") to load its blocks for editing.` }),
2927
2927
  /* @__PURE__ */ jsxs(Tooltip, { children: [
2928
2928
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
@@ -2944,7 +2944,7 @@ function LoadMessageDialog({
2944
2944
  ] })
2945
2945
  ] })
2946
2946
  ] }),
2947
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
2947
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-4", children: [
2948
2948
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
2949
2949
  /* @__PURE__ */ jsx(Label, { htmlFor: "message-link", children: "Message link" }),
2950
2950
  /* @__PURE__ */ jsx(
@@ -2989,7 +2989,7 @@ function LoadMessageDialog({
2989
2989
  }
2990
2990
  )
2991
2991
  ] }),
2992
- hasRecent && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
2992
+ hasRecent && /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-2", children: [
2993
2993
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
2994
2994
  /* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-border" }),
2995
2995
  "or pick a recent message",
@@ -3021,22 +3021,19 @@ function LoadMessageDialog({
3021
3021
  channelId && recent === null && !recentError && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Loading recent messages\u2026" }),
3022
3022
  channelId && recentError && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: recentError }),
3023
3023
  channelId && recent && recent.length === 0 && !recentError && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "No recent messages from this app in this channel." }),
3024
- channelId && recent && recent.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex max-h-48 flex-col gap-1 overflow-y-auto", children: recent.map((m) => {
3024
+ channelId && recent && recent.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex max-h-48 min-w-0 flex-col gap-1 overflow-y-auto", children: recent.map((m) => {
3025
3025
  const asUser = (m.editableVia ?? "bot") === "user";
3026
3026
  return /* @__PURE__ */ jsxs(
3027
3027
  "button",
3028
3028
  {
3029
3029
  type: "button",
3030
3030
  onClick: () => onLoaded(recentToResult(m)),
3031
- className: "flex flex-col gap-0.5 rounded-md border border-input bg-background px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
3031
+ className: "flex min-w-0 flex-col gap-0.5 rounded-md border border-input bg-background px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
3032
3032
  children: [
3033
- /* @__PURE__ */ jsxs("span", { className: "flex items-baseline justify-between gap-2", children: [
3034
- /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-baseline gap-1.5", children: [
3035
- /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: m.channelName ? `#${m.channelName}` : m.channelId }),
3036
- /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded border px-1 py-px text-[10px] font-medium uppercase tracking-wide text-muted-foreground", children: asUser ? "You" : "Bot" })
3037
- ] }),
3033
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-baseline justify-between gap-2", children: [
3034
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded border px-1 py-px text-[10px] font-medium uppercase tracking-wide text-muted-foreground", children: asUser ? "You" : "Bot" }),
3038
3035
  /* @__PURE__ */ jsxs("span", { className: "shrink-0 text-xs text-muted-foreground", children: [
3039
- new Date(Number(m.ts) * 1e3).toLocaleString(),
3036
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground", children: new Date(Number(m.ts) * 1e3).toLocaleString() }),
3040
3037
  " ",
3041
3038
  /* @__PURE__ */ jsxs("span", { className: "font-mono", children: [
3042
3039
  "(",
@@ -3045,7 +3042,7 @@ function LoadMessageDialog({
3045
3042
  ] })
3046
3043
  ] })
3047
3044
  ] }),
3048
- m.label && /* @__PURE__ */ jsx("span", { className: "truncate text-xs text-muted-foreground", children: m.label })
3045
+ m.label && /* @__PURE__ */ jsx("span", { className: "truncate text-sm text-muted-foreground", children: m.label })
3049
3046
  ]
3050
3047
  },
3051
3048
  `${m.channelId}:${m.ts}`