version-pill-react 1.2.7 → 1.5.0

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/index.d.mts CHANGED
@@ -19,6 +19,9 @@ interface RoadmapTask {
19
19
  type: string;
20
20
  priority: string;
21
21
  column: string;
22
+ columnId?: string;
23
+ columnName?: string;
24
+ description?: string | null;
22
25
  isPublic?: boolean;
23
26
  }
24
27
  interface Idea {
@@ -39,9 +42,29 @@ interface ChangelogAPIResponse {
39
42
  project: ProjectInfo;
40
43
  changelog: Version[];
41
44
  }
45
+ interface RoadmapBoardItem {
46
+ id: string;
47
+ title: string;
48
+ description?: string | null;
49
+ type?: string;
50
+ priority?: string;
51
+ votes?: number;
52
+ itemType: "task" | "idea";
53
+ columnId: string;
54
+ createdAt?: string | number;
55
+ }
56
+ interface RoadmapBoardColumn {
57
+ id: string;
58
+ name: string;
59
+ }
42
60
  interface RoadmapAPIResponse {
43
61
  project: ProjectInfo;
44
- tasks: RoadmapTask[];
62
+ columns?: RoadmapBoardColumn[];
63
+ items?: RoadmapBoardItem[];
64
+ tasks?: RoadmapTask[] | {
65
+ inProgress?: RoadmapTask[];
66
+ planned?: RoadmapTask[];
67
+ };
45
68
  }
46
69
  interface BadgeAPIResponse {
47
70
  version: string | null;
@@ -105,4 +128,4 @@ declare function useVersion({ projectId, baseUrl, refetchInterval, }: UseVersion
105
128
  declare function Changelog({ projectId, baseUrl, maxHeight, theme, className, }: ChangelogProps): react_jsx_runtime.JSX.Element;
106
129
  declare function Roadmap({ projectId, baseUrl, maxHeight, theme, className, }: RoadmapProps): react_jsx_runtime.JSX.Element;
107
130
 
108
- export { type BadgeAPIResponse, type BadgeSize, type BadgeStyle, Changelog, type ChangelogAPIResponse, type ChangelogProps, type Idea, type ModalTab, type ProjectInfo, Roadmap, type RoadmapAPIResponse, type RoadmapProps, type RoadmapTask, type UseVersionOptions, type UseVersionResult, type Version, VersionBadge, type VersionBadgeProps, VersionPill, type VersionPillConfig, type VersionPillProps, VersionPill as default, useVersion };
131
+ export { type BadgeAPIResponse, type BadgeSize, type BadgeStyle, Changelog, type ChangelogAPIResponse, type ChangelogProps, type Idea, type ModalTab, type ProjectInfo, Roadmap, type RoadmapAPIResponse, type RoadmapBoardColumn, type RoadmapBoardItem, type RoadmapProps, type RoadmapTask, type UseVersionOptions, type UseVersionResult, type Version, VersionBadge, type VersionBadgeProps, VersionPill, type VersionPillConfig, type VersionPillProps, VersionPill as default, useVersion };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,9 @@ interface RoadmapTask {
19
19
  type: string;
20
20
  priority: string;
21
21
  column: string;
22
+ columnId?: string;
23
+ columnName?: string;
24
+ description?: string | null;
22
25
  isPublic?: boolean;
23
26
  }
24
27
  interface Idea {
@@ -39,9 +42,29 @@ interface ChangelogAPIResponse {
39
42
  project: ProjectInfo;
40
43
  changelog: Version[];
41
44
  }
45
+ interface RoadmapBoardItem {
46
+ id: string;
47
+ title: string;
48
+ description?: string | null;
49
+ type?: string;
50
+ priority?: string;
51
+ votes?: number;
52
+ itemType: "task" | "idea";
53
+ columnId: string;
54
+ createdAt?: string | number;
55
+ }
56
+ interface RoadmapBoardColumn {
57
+ id: string;
58
+ name: string;
59
+ }
42
60
  interface RoadmapAPIResponse {
43
61
  project: ProjectInfo;
44
- tasks: RoadmapTask[];
62
+ columns?: RoadmapBoardColumn[];
63
+ items?: RoadmapBoardItem[];
64
+ tasks?: RoadmapTask[] | {
65
+ inProgress?: RoadmapTask[];
66
+ planned?: RoadmapTask[];
67
+ };
45
68
  }
46
69
  interface BadgeAPIResponse {
47
70
  version: string | null;
@@ -105,4 +128,4 @@ declare function useVersion({ projectId, baseUrl, refetchInterval, }: UseVersion
105
128
  declare function Changelog({ projectId, baseUrl, maxHeight, theme, className, }: ChangelogProps): react_jsx_runtime.JSX.Element;
106
129
  declare function Roadmap({ projectId, baseUrl, maxHeight, theme, className, }: RoadmapProps): react_jsx_runtime.JSX.Element;
107
130
 
108
- export { type BadgeAPIResponse, type BadgeSize, type BadgeStyle, Changelog, type ChangelogAPIResponse, type ChangelogProps, type Idea, type ModalTab, type ProjectInfo, Roadmap, type RoadmapAPIResponse, type RoadmapProps, type RoadmapTask, type UseVersionOptions, type UseVersionResult, type Version, VersionBadge, type VersionBadgeProps, VersionPill, type VersionPillConfig, type VersionPillProps, VersionPill as default, useVersion };
131
+ export { type BadgeAPIResponse, type BadgeSize, type BadgeStyle, Changelog, type ChangelogAPIResponse, type ChangelogProps, type Idea, type ModalTab, type ProjectInfo, Roadmap, type RoadmapAPIResponse, type RoadmapBoardColumn, type RoadmapBoardItem, type RoadmapProps, type RoadmapTask, type UseVersionOptions, type UseVersionResult, type Version, VersionBadge, type VersionBadgeProps, VersionPill, type VersionPillConfig, type VersionPillProps, VersionPill as default, useVersion };