@ai-matrx/associations 0.10.4 → 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 +15 -0
- package/dist/{CommentThread-CwOu3wlv.d.cts → CommentThread-DobuYuwz.d.cts} +1 -1
- package/dist/{CommentThread-CwOu3wlv.d.ts → CommentThread-DobuYuwz.d.ts} +1 -1
- package/dist/core/index.cjs +0 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +0 -2
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -19
- package/dist/index.d.ts +3 -19
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +21 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +22 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/lazy/index.d.cts +1 -1
- package/dist/react/lazy/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -1073,7 +1073,6 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
1073
1073
|
"visibility_epoch",
|
|
1074
1074
|
"voice",
|
|
1075
1075
|
"war_room",
|
|
1076
|
-
"wbx_capture",
|
|
1077
1076
|
"wbx_demo",
|
|
1078
1077
|
"wbx_guidance",
|
|
1079
1078
|
"wbx_highlight",
|
|
@@ -3362,7 +3361,7 @@ function AssociationList(props) {
|
|
|
3362
3361
|
const [pinningKeys, setPinningKeys] = (0, import_react17.useState)(/* @__PURE__ */ new Set());
|
|
3363
3362
|
const rows = tokenFilter ? adapter.rows.filter((r) => tokenFilter.includes(r.token)) : adapter.rows;
|
|
3364
3363
|
const visibleRows = rows.filter((r) => !removingKeys.has(r.key));
|
|
3365
|
-
const { titleFor } = useEntityTitles(
|
|
3364
|
+
const { titleFor, isUnresolved } = useEntityTitles(
|
|
3366
3365
|
visibleRows.map((r) => ({
|
|
3367
3366
|
token: r.token,
|
|
3368
3367
|
id: r.resourceId,
|
|
@@ -3563,7 +3562,11 @@ function AssociationList(props) {
|
|
|
3563
3562
|
busy && "opacity-50"
|
|
3564
3563
|
),
|
|
3565
3564
|
children: [
|
|
3566
|
-
|
|
3565
|
+
isUnresolved({
|
|
3566
|
+
token: row.token,
|
|
3567
|
+
id: row.resourceId,
|
|
3568
|
+
label: row.label
|
|
3569
|
+
}) ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(UnresolvedRef, { token: row.token, id: row.resourceId }) }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3567
3570
|
DoorRef,
|
|
3568
3571
|
{
|
|
3569
3572
|
token: row.token,
|
|
@@ -5019,7 +5022,16 @@ function CommentComposer({
|
|
|
5019
5022
|
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"
|
|
5020
5023
|
}
|
|
5021
5024
|
),
|
|
5022
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5025
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5026
|
+
import_design_system13.ErrorBox,
|
|
5027
|
+
{
|
|
5028
|
+
className: "text-xs text-destructive",
|
|
5029
|
+
message: error,
|
|
5030
|
+
operation: "Post a comment",
|
|
5031
|
+
unsavedInput: { comment: body },
|
|
5032
|
+
origin: "associations/CommentThread"
|
|
5033
|
+
}
|
|
5034
|
+
),
|
|
5023
5035
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
5024
5036
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_design_system13.Button, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
|
|
5025
5037
|
submitting && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
|
|
@@ -5255,10 +5267,13 @@ function CommentThread({
|
|
|
5255
5267
|
)
|
|
5256
5268
|
] }),
|
|
5257
5269
|
thread.error && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5258
|
-
|
|
5270
|
+
import_design_system13.ErrorBox,
|
|
5259
5271
|
{
|
|
5260
|
-
|
|
5272
|
+
as: "div",
|
|
5261
5273
|
className: "flex items-center gap-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive",
|
|
5274
|
+
message: thread.error,
|
|
5275
|
+
operation: "Load comments",
|
|
5276
|
+
origin: "associations/CommentThread",
|
|
5262
5277
|
children: [
|
|
5263
5278
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 flex-1", children: thread.error }),
|
|
5264
5279
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|