@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.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2952,7 +2952,7 @@ function LoadMessageDialog({
|
|
|
2952
2952
|
children: [
|
|
2953
2953
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
2954
2954
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: "Edit an existing message" }),
|
|
2955
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-1.5", children: [
|
|
2955
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-1.5 text-left", children: [
|
|
2956
2956
|
/* @__PURE__ */ jsxRuntime.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.` }),
|
|
2957
2957
|
/* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
2958
2958
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2974,7 +2974,7 @@ function LoadMessageDialog({
|
|
|
2974
2974
|
] })
|
|
2975
2975
|
] })
|
|
2976
2976
|
] }),
|
|
2977
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2977
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col gap-4", children: [
|
|
2978
2978
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
2979
2979
|
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "message-link", children: "Message link" }),
|
|
2980
2980
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3019,7 +3019,7 @@ function LoadMessageDialog({
|
|
|
3019
3019
|
}
|
|
3020
3020
|
)
|
|
3021
3021
|
] }),
|
|
3022
|
-
hasRecent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
3022
|
+
hasRecent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
3023
3023
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
3024
3024
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-px flex-1 bg-border" }),
|
|
3025
3025
|
"or pick a recent message",
|
|
@@ -3051,22 +3051,19 @@ function LoadMessageDialog({
|
|
|
3051
3051
|
channelId && recent === null && !recentError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Loading recent messages\u2026" }),
|
|
3052
3052
|
channelId && recentError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-destructive", children: recentError }),
|
|
3053
3053
|
channelId && recent && recent.length === 0 && !recentError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "No recent messages from this app in this channel." }),
|
|
3054
|
-
channelId && recent && recent.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex max-h-48 flex-col gap-1 overflow-y-auto", children: recent.map((m) => {
|
|
3054
|
+
channelId && recent && recent.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex max-h-48 min-w-0 flex-col gap-1 overflow-y-auto", children: recent.map((m) => {
|
|
3055
3055
|
const asUser = (m.editableVia ?? "bot") === "user";
|
|
3056
3056
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3057
3057
|
"button",
|
|
3058
3058
|
{
|
|
3059
3059
|
type: "button",
|
|
3060
3060
|
onClick: () => onLoaded(recentToResult(m)),
|
|
3061
|
-
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",
|
|
3061
|
+
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",
|
|
3062
3062
|
children: [
|
|
3063
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-baseline justify-between gap-2", children: [
|
|
3064
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3065
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-medium", children: m.channelName ? `#${m.channelName}` : m.channelId }),
|
|
3066
|
-
/* @__PURE__ */ jsxRuntime.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" })
|
|
3067
|
-
] }),
|
|
3063
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-baseline justify-between gap-2", children: [
|
|
3064
|
+
/* @__PURE__ */ jsxRuntime.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" }),
|
|
3068
3065
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "shrink-0 text-xs text-muted-foreground", children: [
|
|
3069
|
-
new Date(Number(m.ts) * 1e3).toLocaleString(),
|
|
3066
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-foreground", children: new Date(Number(m.ts) * 1e3).toLocaleString() }),
|
|
3070
3067
|
" ",
|
|
3071
3068
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-mono", children: [
|
|
3072
3069
|
"(",
|
|
@@ -3075,7 +3072,7 @@ function LoadMessageDialog({
|
|
|
3075
3072
|
] })
|
|
3076
3073
|
] })
|
|
3077
3074
|
] }),
|
|
3078
|
-
m.label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-
|
|
3075
|
+
m.label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-sm text-muted-foreground", children: m.label })
|
|
3079
3076
|
]
|
|
3080
3077
|
},
|
|
3081
3078
|
`${m.channelId}:${m.ts}`
|