@collabdt/plugin-kit 0.14.0 → 0.15.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/CHANGELOG.md +6 -0
- package/dist/types/sdkModules.d.ts +2 -0
- package/dist/types/tour.d.ts +20 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ repository root.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.15.0] - 2026-11-24
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- `TourSection` and `TourSections` declarations for `@collabdt/core/plugins-sdk/tour`, and `sections` on
|
|
15
|
+
`GuidedTourProps`, matching the core release that adds the tour sections dialog.
|
|
16
|
+
|
|
11
17
|
## [0.14.0] - 2026-11-23
|
|
12
18
|
|
|
13
19
|
### Added
|
|
@@ -294,6 +294,8 @@ declare module '@collabdt/core/plugins-sdk/tour' {
|
|
|
294
294
|
export type TourItem = import('./tour').TourItem
|
|
295
295
|
export type TourStep = import('./tour').TourStep
|
|
296
296
|
export type GuidedTourLabels = import('./tour').GuidedTourLabels
|
|
297
|
+
export type TourSection = import('./tour').TourSection
|
|
298
|
+
export type TourSections = import('./tour').TourSections
|
|
297
299
|
export type GuidedTourProps = import('./tour').GuidedTourProps
|
|
298
300
|
export type TourStore = import('./tour').TourStore
|
|
299
301
|
export type BrowserTourStoreOptions = import('./tour').BrowserTourStoreOptions
|
package/dist/types/tour.d.ts
CHANGED
|
@@ -33,6 +33,23 @@ interface TourStep {
|
|
|
33
33
|
/** Checked when Next or Back would reach the step; `true` passes over it, e.g. a hint for a state the page is not in. */
|
|
34
34
|
skip?: () => boolean;
|
|
35
35
|
}
|
|
36
|
+
/** A tour listed in the sections dialog; `start` opens it on the step with that id. */
|
|
37
|
+
interface TourSection {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
steps: {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
}[];
|
|
45
|
+
start: (stepId: string) => void;
|
|
46
|
+
}
|
|
47
|
+
interface TourSections {
|
|
48
|
+
/** Called when the dialog opens, so the list reflects the page at that moment. */
|
|
49
|
+
list: () => TourSection[];
|
|
50
|
+
/** The id of the section this tour is; picking one of its steps moves within the open tour. */
|
|
51
|
+
current: string;
|
|
52
|
+
}
|
|
36
53
|
interface GuidedTourLabels {
|
|
37
54
|
next: string;
|
|
38
55
|
back: string;
|
|
@@ -55,6 +72,8 @@ interface GuidedTourProps {
|
|
|
55
72
|
avoid?: () => Element[];
|
|
56
73
|
/** Shown at the start of the card's header, e.g. a logo. */
|
|
57
74
|
header?: React.ReactNode;
|
|
75
|
+
/** Adds a button to the card's header that lists every section in a dialog, to jump to any of their steps. */
|
|
76
|
+
sections?: TourSections;
|
|
58
77
|
labels?: Partial<GuidedTourLabels>;
|
|
59
78
|
/** Scopes CSS variable overrides (`--tour-accent`, …) to this tour. */
|
|
60
79
|
className?: string;
|
|
@@ -76,4 +95,4 @@ interface BrowserTourStoreOptions {
|
|
|
76
95
|
namespace: string;
|
|
77
96
|
}
|
|
78
97
|
|
|
79
|
-
export type { BrowserTourStoreOptions, FlagStorage, GuidedTourComponent, GuidedTourLabels, GuidedTourProps, TourBodyComponent, TourItem, TourStep, TourStore, TourTarget };
|
|
98
|
+
export type { BrowserTourStoreOptions, FlagStorage, GuidedTourComponent, GuidedTourLabels, GuidedTourProps, TourBodyComponent, TourItem, TourSection, TourSections, TourStep, TourStore, TourTarget };
|