@tightknitai/block-kitchen 0.9.0 → 0.9.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.cjs CHANGED
@@ -3065,7 +3065,15 @@ function LoadMessageDialog({
3065
3065
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-medium", children: m.channelName ? `#${m.channelName}` : m.channelId }),
3066
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
3067
  ] }),
3068
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 font-mono text-xs text-muted-foreground", children: m.ts })
3068
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "shrink-0 text-xs text-muted-foreground", children: [
3069
+ new Date(Number(m.ts) * 1e3).toLocaleString(),
3070
+ " ",
3071
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-mono", children: [
3072
+ "(",
3073
+ m.ts,
3074
+ ")"
3075
+ ] })
3076
+ ] })
3069
3077
  ] }),
3070
3078
  m.label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs text-muted-foreground", children: m.label })
3071
3079
  ]
@@ -3379,25 +3387,6 @@ function SendDialog({
3379
3387
  /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: "Pick a channel and choose who to post as." })
3380
3388
  ] }),
3381
3389
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4", children: [
3382
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
3383
- /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "channel-picker", children: "Channel" }),
3384
- channels === null && !channelsError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Loading channels\u2026" }),
3385
- channelsError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-destructive", children: channelsError }),
3386
- channels && channels.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "No public channels available." }),
3387
- channels && channels.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
3388
- "select",
3389
- {
3390
- id: "channel-picker",
3391
- value: channelId,
3392
- onChange: (e) => setChannelId(e.target.value),
3393
- className: "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
3394
- children: channels.map((c) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: c.id, children: [
3395
- "#",
3396
- c.name
3397
- ] }, c.id))
3398
- }
3399
- )
3400
- ] }),
3401
3390
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
3402
3391
  /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "send-as-picker", children: "Post as" }),
3403
3392
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3434,6 +3423,25 @@ function SendDialog({
3434
3423
  "to post as yourself."
3435
3424
  ] })
3436
3425
  ] }),
3426
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
3427
+ /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "channel-picker", children: "Channel" }),
3428
+ channels === null && !channelsError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Loading channels\u2026" }),
3429
+ channelsError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-destructive", children: channelsError }),
3430
+ channels && channels.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "No public channels available." }),
3431
+ channels && channels.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
3432
+ "select",
3433
+ {
3434
+ id: "channel-picker",
3435
+ value: channelId,
3436
+ onChange: (e) => setChannelId(e.target.value),
3437
+ className: "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
3438
+ children: channels.map((c) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: c.id, children: [
3439
+ "#",
3440
+ c.name
3441
+ ] }, c.id))
3442
+ }
3443
+ )
3444
+ ] }),
3437
3445
  errorCount > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
3438
3446
  "button",
3439
3447
  {
@@ -9201,8 +9209,8 @@ function Toolbar2({
9201
9209
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9202
9210
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-x-2 gap-y-1 border-b bg-background px-2 py-1.5 sm:px-3 sm:py-2", children: [
9203
9211
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1 sm:gap-2", children: [
9204
- editingEnabled && !editBadge ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", size: "sm", onClick: onOpenLoad, "aria-label": loadButtonLabel, children: [
9205
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "h-3.5 w-3.5" }),
9212
+ editingEnabled ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", size: "sm", onClick: onOpenLoad, "aria-label": loadButtonLabel, children: [
9213
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MailSearch, { className: "h-3.5 w-3.5" }),
9206
9214
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden md:inline", children: loadButtonLabel })
9207
9215
  ] }) : null,
9208
9216
  onOpenPalette ? /* @__PURE__ */ jsxRuntime.jsxs(