@danxbot/plugin-sdk 0.2.44 → 0.2.47
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/cli.js +1 -1
- package/dist/publish.js +1 -1
- package/dist/vite.js +2 -1
- package/dist/widgets.js +3 -0
- package/package.json +3 -3
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/cli.js
CHANGED
|
@@ -5891,7 +5891,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
5891
5891
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5892
5892
|
{ name: "react", major: 19 },
|
|
5893
5893
|
{ name: "react-dom", major: 19 },
|
|
5894
|
-
{ name: "@danxbot/ui", major:
|
|
5894
|
+
{ name: "@danxbot/ui", major: 33 },
|
|
5895
5895
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
5896
5896
|
];
|
|
5897
5897
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
package/dist/publish.js
CHANGED
|
@@ -5886,7 +5886,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
5886
5886
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5887
5887
|
{ name: "react", major: 19 },
|
|
5888
5888
|
{ name: "react-dom", major: 19 },
|
|
5889
|
-
{ name: "@danxbot/ui", major:
|
|
5889
|
+
{ name: "@danxbot/ui", major: 33 },
|
|
5890
5890
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
5891
5891
|
];
|
|
5892
5892
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
package/dist/vite.js
CHANGED
|
@@ -4,7 +4,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
4
4
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5
5
|
{ name: "react", major: 19 },
|
|
6
6
|
{ name: "react-dom", major: 19 },
|
|
7
|
-
{ name: "@danxbot/ui", major:
|
|
7
|
+
{ name: "@danxbot/ui", major: 33 },
|
|
8
8
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
9
9
|
];
|
|
10
10
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
|
@@ -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.47",
|
|
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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"node": ">=20"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@danxbot/ui": "^
|
|
40
|
+
"@danxbot/ui": "^33.0.0",
|
|
41
41
|
"@types/react": "^19.0.0",
|
|
42
42
|
"react": "^19.0.0",
|
|
43
43
|
"react-router": "^7.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@danxbot/ui": "
|
|
53
|
+
"@danxbot/ui": "33.1.0",
|
|
54
54
|
"@types/node": "^22.0.0",
|
|
55
55
|
"@types/react": "^19.2.2",
|
|
56
56
|
"esbuild": "^0.25.0",
|