@ai-matrx/associations 0.10.5 → 0.10.6
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 +9 -0
- package/dist/react/index.cjs +15 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +16 -4
- package/dist/react/index.js.map +1 -1
- package/package.json +3 -3
package/dist/react/index.js
CHANGED
|
@@ -4902,7 +4902,7 @@ function CategoryTagPicker({
|
|
|
4902
4902
|
|
|
4903
4903
|
// src/react/components/CommentThread.tsx
|
|
4904
4904
|
import { useState as useState17 } from "react";
|
|
4905
|
-
import { Button as Button3, Skeleton as Skeleton2, cn as cn12 } from "@ai-matrx/design-system";
|
|
4905
|
+
import { Button as Button3, ErrorBox, Skeleton as Skeleton2, cn as cn12 } from "@ai-matrx/design-system";
|
|
4906
4906
|
import { formatRelativeTime } from "@ai-matrx/kit/format";
|
|
4907
4907
|
import { Fragment as Fragment5, jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4908
4908
|
var AUTHOR_DOOR_TOKEN = "user";
|
|
@@ -5004,7 +5004,16 @@ function CommentComposer({
|
|
|
5004
5004
|
className: "w-full resize-y rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
|
5005
5005
|
}
|
|
5006
5006
|
),
|
|
5007
|
-
error && /* @__PURE__ */ jsx18(
|
|
5007
|
+
error && /* @__PURE__ */ jsx18(
|
|
5008
|
+
ErrorBox,
|
|
5009
|
+
{
|
|
5010
|
+
className: "text-xs text-destructive",
|
|
5011
|
+
message: error,
|
|
5012
|
+
operation: "Post a comment",
|
|
5013
|
+
unsavedInput: { comment: body },
|
|
5014
|
+
origin: "associations/CommentThread"
|
|
5015
|
+
}
|
|
5016
|
+
),
|
|
5008
5017
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
5009
5018
|
/* @__PURE__ */ jsxs15(Button3, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
|
|
5010
5019
|
submitting && /* @__PURE__ */ jsx18(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
|
|
@@ -5240,10 +5249,13 @@ function CommentThread({
|
|
|
5240
5249
|
)
|
|
5241
5250
|
] }),
|
|
5242
5251
|
thread.error && /* @__PURE__ */ jsxs15(
|
|
5243
|
-
|
|
5252
|
+
ErrorBox,
|
|
5244
5253
|
{
|
|
5245
|
-
|
|
5254
|
+
as: "div",
|
|
5246
5255
|
className: "flex items-center gap-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive",
|
|
5256
|
+
message: thread.error,
|
|
5257
|
+
operation: "Load comments",
|
|
5258
|
+
origin: "associations/CommentThread",
|
|
5247
5259
|
children: [
|
|
5248
5260
|
/* @__PURE__ */ jsx18("span", { className: "min-w-0 flex-1", children: thread.error }),
|
|
5249
5261
|
/* @__PURE__ */ jsx18(
|