@ham2k/extension-sdk 0.5.4 → 0.5.5
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.ts +6 -1
- package/docs/hooks.md +9 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @ham2k/extension-sdk 0.5.
|
|
1
|
+
// @ham2k/extension-sdk 0.5.5
|
|
2
2
|
/** Experimental v1 scene contract. All coordinates are in the scene's viewBox. */
|
|
3
3
|
export interface SvgScene {
|
|
4
4
|
version: 1;
|
|
@@ -236,6 +236,7 @@ export interface HookContext {
|
|
|
236
236
|
export interface HistoryForCallOptions {
|
|
237
237
|
refType?: string | string[];
|
|
238
238
|
refPrefix?: string | string[];
|
|
239
|
+
refsSegmentAware?: boolean;
|
|
239
240
|
operation?: string | string[];
|
|
240
241
|
excludeOperation?: string | string[];
|
|
241
242
|
fromDate?: string;
|
|
@@ -707,6 +708,10 @@ export interface CommandAction {
|
|
|
707
708
|
wpm: number;
|
|
708
709
|
};
|
|
709
710
|
showKeyer?: Record<string, never>;
|
|
711
|
+
setEnterSends?: {
|
|
712
|
+
on?: boolean;
|
|
713
|
+
running?: boolean;
|
|
714
|
+
};
|
|
710
715
|
updateQso?: Record<string, JSONValue>;
|
|
711
716
|
addQso?: Record<string, JSONValue>;
|
|
712
717
|
sendSpots?: {
|
package/docs/hooks.md
CHANGED
|
@@ -64,10 +64,14 @@ hook method receives `(args, ctx)` where `ctx: HookContext` is:
|
|
|
64
64
|
`options` (`HistoryForCallOptions` in `types.ts`) narrow the history
|
|
65
65
|
before it is ordered and limited, so `{ refType: 'cwt' }` finds last
|
|
66
66
|
month's CWT exchange behind a week of POTA contacts. The filters are
|
|
67
|
-
`refType` (a ref in the QSO's own `refs`
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
`refType` (a ref in the QSO's own `refs` or its operation's, since an
|
|
68
|
+
activation's ref lives on the operation), `refPrefix` (such a ref whose
|
|
69
|
+
`ref` starts with it, ignoring ASCII case; with `refType`, the same ref
|
|
70
|
+
must pass both, so `{ refType: 'potaActivation', refPrefix: 'FR-' }` finds
|
|
71
|
+
every contact made activating a French park; an operation's refs are its
|
|
72
|
+
base ones unless `refsSegmentAware: true`, which reads them as they stood
|
|
73
|
+
at each contact, so a rove's second park or a contest that ended at a
|
|
74
|
+
break is seen), `operation`/`excludeOperation`,
|
|
71
75
|
`band`/`excludeBand`, `mode`/`excludeMode` (`SSB` also matches its
|
|
72
76
|
sidebands, and `CW`/`PHONE`/`DATA` match their whole family), whole UTC
|
|
73
77
|
days through `fromDate`/`toDate` or `fromDateMillis`/`toDateMillis`, and
|
|
@@ -847,7 +851,7 @@ interface CommandHook {
|
|
|
847
851
|
// CommandInterpretation: {expectsParams?, mixedCase?, error?, describe?, confirm?, commands?: CommandAction[]}
|
|
848
852
|
// CommandCatalogEntry: {command, describe, params?, category?, needsOperation?, expectsParams?, suggest?}
|
|
849
853
|
// CommandAction (closed set): {setVfo?, setPower?, updateQso?, addQso?,
|
|
850
|
-
// setKeyerSpeed?, showKeyer?, sendSpots?, syncAll?, updateSettings?, updateSetting?, openSettings?,
|
|
854
|
+
// setKeyerSpeed?, showKeyer?, setEnterSends?, sendSpots?, syncAll?, updateSettings?, updateSetting?, openSettings?,
|
|
851
855
|
// updateOperation?, markSegment?, setCallField?, reloadDataFiles?, devNotice?, devStatus?,
|
|
852
856
|
// devProgress?, devHammer?, devSplash?, devOnboard?, devTester?, devPopup?,
|
|
853
857
|
// devTimeTravel?, toggleExperiment?}
|