@danxbot/plugin-sdk 0.2.44 → 0.2.46
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 +22 -22
- package/dist/vite.js +1 -0
- package/dist/widgets.js +3 -0
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -4,16 +4,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export { Link, useNavigate } from 'react-router';
|
|
6
6
|
|
|
7
|
-
interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
options: string[];
|
|
11
|
-
multiple: boolean;
|
|
12
|
-
recommended: string[];
|
|
7
|
+
interface ViaKey {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
13
10
|
}
|
|
14
|
-
type OptionSelection = Record<string, string[]>;
|
|
15
11
|
|
|
16
12
|
type CardTypeKey = string;
|
|
13
|
+
type MirrorProviderId = "trello" | "slack" | "asana";
|
|
14
|
+
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
17
15
|
interface RepoProfileCopy {
|
|
18
16
|
shipped: string;
|
|
19
17
|
repo: string;
|
|
@@ -62,6 +60,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
62
60
|
type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
|
|
63
61
|
interface IssueV2 {
|
|
64
62
|
id: string;
|
|
63
|
+
rev: number;
|
|
65
64
|
repo_name: string;
|
|
66
65
|
board_id: string;
|
|
67
66
|
schema_version: number;
|
|
@@ -254,13 +253,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
254
253
|
author: AuthorV2 | null;
|
|
255
254
|
at: string | null;
|
|
256
255
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
interface RelationPageView {
|
|
257
|
+
readonly limit: number;
|
|
258
|
+
readonly total: number;
|
|
259
|
+
readonly next_cursor: string | null;
|
|
261
260
|
}
|
|
262
|
-
type MirrorProviderId = "trello" | "slack" | "asana";
|
|
263
|
-
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
264
261
|
type WorkMarkResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
|
|
265
262
|
interface WorkMarkResource extends ResourceRef {
|
|
266
263
|
type: WorkMarkResourceType;
|
|
@@ -321,6 +318,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
321
318
|
|
|
322
319
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
323
320
|
|
|
321
|
+
interface DesignOptionGroup {
|
|
322
|
+
key: string;
|
|
323
|
+
label: string;
|
|
324
|
+
options: string[];
|
|
325
|
+
multiple: boolean;
|
|
326
|
+
recommended: string[];
|
|
327
|
+
}
|
|
328
|
+
type OptionSelection = Record<string, string[]>;
|
|
329
|
+
|
|
324
330
|
interface SolutionContent {
|
|
325
331
|
title: string;
|
|
326
332
|
body: string;
|
|
@@ -719,11 +725,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
719
725
|
gate: string;
|
|
720
726
|
status: QualityGateStatus;
|
|
721
727
|
}
|
|
722
|
-
interface RelationPageView {
|
|
723
|
-
readonly limit: number;
|
|
724
|
-
readonly total: number;
|
|
725
|
-
readonly next_cursor: string | null;
|
|
726
|
-
}
|
|
727
728
|
|
|
728
729
|
type ConnectionState = "connecting" | "connected" | "disconnected";
|
|
729
730
|
interface LiveQueryResult<T> {
|
|
@@ -791,7 +792,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
791
792
|
self_dispatchable: boolean;
|
|
792
793
|
ancestor_blocked: boolean;
|
|
793
794
|
next_pre_gate: string | null;
|
|
794
|
-
next_code_gate: string | null;
|
|
795
795
|
pre_gate_hold: PreGateHold | null;
|
|
796
796
|
pre_gate_hold_reason: StatusReason | null;
|
|
797
797
|
blocking_gates: {
|
|
@@ -959,6 +959,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
959
959
|
priority: number;
|
|
960
960
|
id: string;
|
|
961
961
|
parent_id: null | string;
|
|
962
|
+
rev: number;
|
|
962
963
|
created_at: number;
|
|
963
964
|
updated_at: number;
|
|
964
965
|
assigned_agent: null | string;
|
|
@@ -1051,7 +1052,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1051
1052
|
triage_last_status?: undefined | string;
|
|
1052
1053
|
triage_last_decision_at?: undefined | null | string;
|
|
1053
1054
|
next_pre_gate?: undefined | null | string;
|
|
1054
|
-
next_code_gate?: undefined | null | string;
|
|
1055
1055
|
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
1056
1056
|
copy_payload?: undefined | V2CopyPayload;
|
|
1057
1057
|
copy_issue?: undefined | V2CopyIssue;
|
|
@@ -1280,10 +1280,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1280
1280
|
}>);
|
|
1281
1281
|
controls?: undefined | (Array<{
|
|
1282
1282
|
key: string;
|
|
1283
|
-
scope: "
|
|
1283
|
+
scope: "team" | "board" | "plan" | "card";
|
|
1284
1284
|
scope_id: string;
|
|
1285
1285
|
value: null | string | false | true;
|
|
1286
|
-
source: "
|
|
1286
|
+
source: "team" | "board" | "plan" | "card" | "system" | "inherit";
|
|
1287
1287
|
base_hash: string;
|
|
1288
1288
|
kind: "boolean" | "enum" | "branch" | "markdown";
|
|
1289
1289
|
options: null | Array<string>;
|
package/dist/vite.js
CHANGED
|
@@ -73,6 +73,7 @@ function writeManifest(outDir, entry, exports, cardTypes, widgets) {
|
|
|
73
73
|
|
|
74
74
|
// ../../src/widget-surfaces/model.ts
|
|
75
75
|
var GRID_COLUMNS = 24;
|
|
76
|
+
var DATE_RANGE_MS = { "24h": 864e5, "7d": 7 * 864e5, "30d": 30 * 864e5 };
|
|
76
77
|
var SURFACE_WIDE_SETTING_KEYS = ["date_range", "keyword"];
|
|
77
78
|
|
|
78
79
|
// ../../src/widget-surfaces/value-schema.ts
|
package/dist/widgets.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.46",
|
|
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
|
-
"@danxbot/ui": "32.
|
|
53
|
+
"@danxbot/ui": "32.4.2",
|
|
54
54
|
"@types/node": "^22.0.0",
|
|
55
55
|
"@types/react": "^19.2.2",
|
|
56
56
|
"esbuild": "^0.25.0",
|