@danxbot/plugin-sdk 0.2.5 → 0.2.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/dist/card-kit.d.ts +8 -16
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
72
72
|
triage_enabled: boolean;
|
|
73
73
|
content_hash: string;
|
|
74
74
|
}
|
|
75
|
+
type CommentTagV2 = {
|
|
76
|
+
kind: "problem";
|
|
77
|
+
ref: number;
|
|
78
|
+
};
|
|
75
79
|
type ChecklistItemStatus$1 = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
|
|
76
80
|
interface ChecklistV2 {
|
|
77
81
|
id: number;
|
|
@@ -486,18 +490,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
486
490
|
tests: RetroTestViewV2[];
|
|
487
491
|
commit_url_base?: string | null;
|
|
488
492
|
}
|
|
489
|
-
interface CommentViewV2 {
|
|
490
|
-
id: string;
|
|
491
|
-
author: string;
|
|
492
|
-
timestamp: string;
|
|
493
|
-
text: string;
|
|
494
|
-
updated_at: string;
|
|
495
|
-
origin: SourceOrigin;
|
|
496
|
-
via_key?: ViaKey | null;
|
|
497
|
-
metadata?: unknown | null;
|
|
498
|
-
answers_decision_id?: number | null;
|
|
499
|
-
problem_id?: number | null;
|
|
500
|
-
}
|
|
501
493
|
interface AttachmentViewV2 {
|
|
502
494
|
id: number;
|
|
503
495
|
source: SourceOrigin;
|
|
@@ -567,7 +559,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
567
559
|
via_key?: undefined | null | ViaKey;
|
|
568
560
|
metadata?: unknown;
|
|
569
561
|
answers_decision_id?: undefined | null | number;
|
|
570
|
-
|
|
562
|
+
tags: Array<CommentTagV2>;
|
|
571
563
|
}>);
|
|
572
564
|
checklists?: undefined | Array<ChecklistView>;
|
|
573
565
|
attachments?: undefined | (Array<{
|
|
@@ -843,6 +835,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
843
835
|
}>;
|
|
844
836
|
feedback_consent: boolean;
|
|
845
837
|
choice_locked: boolean;
|
|
838
|
+
comment_count: number;
|
|
846
839
|
issue_id: string;
|
|
847
840
|
statement: string;
|
|
848
841
|
context: null | string;
|
|
@@ -852,7 +845,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
852
845
|
title: string;
|
|
853
846
|
id: number;
|
|
854
847
|
content_hash: string;
|
|
855
|
-
problem_id: number;
|
|
856
848
|
body: string;
|
|
857
849
|
steps_hash: string;
|
|
858
850
|
steps: Array<{
|
|
@@ -867,6 +859,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
867
859
|
checked_by: null | string;
|
|
868
860
|
steps: Array<SolutionStepViewV2>;
|
|
869
861
|
}>;
|
|
862
|
+
problem_id: number;
|
|
870
863
|
removed: boolean;
|
|
871
864
|
pro: string;
|
|
872
865
|
con: string;
|
|
@@ -1071,10 +1064,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1071
1064
|
choiceLocked: boolean;
|
|
1072
1065
|
}
|
|
1073
1066
|
|
|
1074
|
-
function ProblemsSection({ cardId, problems,
|
|
1067
|
+
function ProblemsSection({ cardId, problems, canAnswer, mutation, }: {
|
|
1075
1068
|
cardId: string;
|
|
1076
1069
|
problems: ProblemAttention[];
|
|
1077
|
-
comments: readonly CommentViewV2[];
|
|
1078
1070
|
canAnswer: boolean;
|
|
1079
1071
|
mutation: CardMutation;
|
|
1080
1072
|
}): react.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "SDK for building 50 Arms card-type plugins (DX-5170): the card kit's type declarations, a Vite preset that builds a plugin against the app's shared runtime and writes its manifest, and the danx-plugin CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "vitest run"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@danxbot/ui": "27.
|
|
49
|
+
"@danxbot/ui": "27.6.0",
|
|
50
50
|
"@types/node": "^22.0.0",
|
|
51
51
|
"@types/react": "^19.2.2",
|
|
52
52
|
"esbuild": "^0.25.0",
|