@antcde/vue-utils 0.2.36-rc.2 → 0.2.36-rc.4
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.js +368 -343
- package/dist/types/index.d.ts +1 -0
- package/dist/types/useOsTour.d.ts +12 -0
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { type CommsHostArgs, type UseCommsHost, useCommsHost } from './useCommsH
|
|
|
14
14
|
export { DEVICE_BREAKPOINTS, type DeviceClass, useDeviceClass, type UseDeviceClassReturn } from './useDeviceClass';
|
|
15
15
|
export { useFeature } from './useFeature';
|
|
16
16
|
export { useHostDevice, type UseHostDeviceReturn } from './useHostDevice';
|
|
17
|
+
export { type OsTourCopy, type TourOutcome, useOsTour, type UseOsTourReturn } from './useOsTour';
|
|
17
18
|
export { type UsePermissions, usePermissions } from './usePermissions';
|
|
18
19
|
export { useTemplateVersioning, type UseTemplateVersioningReturn } from './useTemplateVersioning';
|
|
19
20
|
export { useTriggerDispatch, type UseTriggerDispatchOptions, type UseTriggerDispatchReturn } from './useTriggerDispatch';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StartTourSignal, TourEndedSignal, TourId, TourZoneId } from '@antcde/connect-ts';
|
|
2
|
+
import { UseCommsClient } from './useCommsClient';
|
|
3
|
+
export type TourOutcome = TourEndedSignal['outcome'];
|
|
4
|
+
export type OsTourCopy = Pick<StartTourSignal, 'title' | 'description' | 'tip'>;
|
|
5
|
+
export interface UseOsTourReturn {
|
|
6
|
+
/** Spotlight one OS zone, optionally with the app's own copy. Resolves when the user closes it. */
|
|
7
|
+
pointAt: (zone: TourZoneId, copy?: OsTourCopy) => Promise<TourOutcome>;
|
|
8
|
+
/** Run one of the OS's guided tours. Resolves when it ends. */
|
|
9
|
+
startTour: (tour: TourId) => Promise<TourOutcome>;
|
|
10
|
+
}
|
|
11
|
+
/** Points the user at ANT OS from an app: `await useOsTour(comms).pointAt('notepad-task-flow', { description })`. */
|
|
12
|
+
export declare function useOsTour(comms: Pick<UseCommsClient, 'signal'>): UseOsTourReturn;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antcde/vue-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.36-rc.
|
|
4
|
+
"version": "0.2.36-rc.4",
|
|
5
5
|
"description": "Helper to use ANT Comms in Vue 3",
|
|
6
6
|
"author": "CollaborAll",
|
|
7
7
|
"exports": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"vue-i18n": "^11.1.12"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@antcde/connect-ts": "0.4.41-rc.
|
|
36
|
+
"@antcde/connect-ts": "0.4.41-rc.4",
|
|
37
37
|
"rrule": "^2.8.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|