@50arms/plugin-sdk 0.2.51 → 0.2.53

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.
Files changed (2) hide show
  1. package/dist/card-kit.d.ts +12 -5
  2. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  declare module "@danxbot/card-kit@1" {
2
2
  import { PagedWindow, SortValue } from '@50arms/ui';
3
3
  import * as react from 'react';
4
- import { ReactNode, ComponentProps } from 'react';
4
+ import { ReactNode } from 'react';
5
5
  export { Link, useNavigate } from 'react-router';
6
6
 
7
7
  const BOARD_ID: unique symbol;
@@ -67,6 +67,7 @@ declare module "@danxbot/card-kit@1" {
67
67
  type: ResourceType;
68
68
  id: string;
69
69
  }
70
+ type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
70
71
 
71
72
  type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
72
73
  type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
@@ -87,6 +88,9 @@ declare module "@danxbot/card-kit@1" {
87
88
  description: string;
88
89
  summary: string | null;
89
90
  pull_request_url: string | null;
91
+ risk_score: RiskScore | null;
92
+ risk_reason: string | null;
93
+ risk_raise_reason: string | null;
90
94
  start_commit_sha: string | null;
91
95
  start_commit_at: string | null;
92
96
  start_commit_error: StartCommitError | null;
@@ -1039,6 +1043,9 @@ declare module "@danxbot/card-kit@1" {
1039
1043
  projection_error?: undefined | null | string;
1040
1044
  summary?: undefined | null | string;
1041
1045
  pull_request_url?: undefined | null | string;
1046
+ risk_score?: undefined | null | "R0" | "R1" | "R2" | "R3" | "R4";
1047
+ risk_reason?: undefined | null | string;
1048
+ risk_raise_reason?: undefined | null | string;
1042
1049
  start_commit?: undefined | null | { at: string; sha: string | null; error: "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected" | null; error_detail: string | null; };
1043
1050
  problem_total?: undefined | number;
1044
1051
  decision_record_total?: undefined | number;
@@ -1330,7 +1337,7 @@ declare module "@danxbot/card-kit@1" {
1330
1337
  value: null | string | false | true;
1331
1338
  source: "board" | "team" | "plan" | "card" | "system" | "inherit";
1332
1339
  base_hash: string;
1333
- kind: "boolean" | "enum" | "branch" | "markdown" | "seconds";
1340
+ kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months";
1334
1341
  options: null | Array<string>;
1335
1342
  description: string;
1336
1343
  system_default: string | false | true;
@@ -1708,17 +1715,17 @@ declare module "@danxbot/card-kit@1" {
1708
1715
  choiceLocked: boolean;
1709
1716
  }
1710
1717
 
1711
- function ProblemsSection$1({ card, problems, canAnswer, designGatePending, mutation, }: {
1718
+ interface ProblemsSectionProps {
1712
1719
  card: ProblemCard;
1713
1720
  problems: ProblemAttention[];
1714
1721
  canAnswer: boolean;
1715
1722
  designGatePending: boolean;
1716
1723
  mutation: CardMutation;
1717
- }): react.JSX.Element;
1724
+ }
1718
1725
 
1719
1726
  function ProblemsSection({ cardId, ...rest }: {
1720
1727
  cardId: IssueViewV2["id"];
1721
- } & Omit<ComponentProps<typeof ProblemsSection$1>, "card">): react.JSX.Element;
1728
+ } & Omit<ProblemsSectionProps, "card">): react.JSX.Element;
1722
1729
 
1723
1730
  function DependenciesSection({ card, mutation }: {
1724
1731
  card: IssueViewV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/plugin-sdk",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "description": "SDK for building 50 Arms plugins (DX-5170): the card kit's type declarations, the Widget declaration kit, 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",
@@ -50,7 +50,7 @@
50
50
  "test": "vitest run"
51
51
  },
52
52
  "devDependencies": {
53
- "@50arms/ui": "35.1.0",
53
+ "@50arms/ui": "35.2.0",
54
54
  "@types/node": "^22.0.0",
55
55
  "@types/react": "^19.2.2",
56
56
  "esbuild": "^0.25.0",