@ham2k/extension-sdk 0.12.11 → 0.12.12

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 CHANGED
@@ -1,4 +1,4 @@
1
- // @ham2k/extension-sdk 0.12.11
1
+ // @ham2k/extension-sdk 0.12.12
2
2
  /** Experimental v1 panel scene contract. All coordinates are in the scene's viewBox. */
3
3
  export interface PanelScene {
4
4
  version: 1;
@@ -39,7 +39,9 @@ function opValues(operation, extra = {}) {
39
39
  station.split(",").map((call) => call.trim().toUpperCase()).filter((call) => call !== "")
40
40
  )
41
41
  ],
42
- operator: operation.operator ?? "",
42
+ // Resolved by the host for this device's position; a template cannot do it
43
+ // itself, because the position never crosses the bridge.
44
+ operator: operation.operatorCall ?? "",
43
45
  // The generated, ref-derived title ("at US-1234") and the operator's own
44
46
  // words, kept apart: an export that withholds private data withholds the
45
47
  // second and keeps the first (see the adif hook's preamble).
package/docs/hooks.md CHANGED
@@ -1698,6 +1698,11 @@ interface PanelHook {
1698
1698
  // | {kind: 'scene', scene, title?, triggers?} (see Panel scene reference)
1699
1699
  ```
1700
1700
 
1701
+ `operation` is the operation's data with its `uuid`, its
1702
+ `startAtMillisMin`/`startAtMillisMax`, and `operatorCall`: who is at the key on
1703
+ this device, resolved for its position in a multi-station operation, and empty
1704
+ when nobody is named.
1705
+
1701
1706
  The host addresses a panel as `ext:<hookKey>:<key>`, and that id is stored
1702
1707
  inside saved layouts — renaming a `key` drops the panel out of every
1703
1708
  arrangement holding it.
package/docs/templates.md CHANGED
@@ -65,7 +65,8 @@ An ISO-8601 UTC string, for the `date` filter: `{{ now | date: '%H:%M' }}`.
65
65
  ### `op` — the operation
66
66
  `station` (the field as typed, which may hold several comma-separated
67
67
  callsigns; `call` is the same value, the name `qso.call` has), `stations`
68
- (that list, uppercased and deduped), `operator`,
68
+ (that list, uppercased and deduped), `operator` (who is at the key on this
69
+ device, empty when nobody is named),
69
70
  `title` (the generated, ref-derived one), `userTitle` (the operator's own
70
71
  words), `grid`, `refs`, `uuid`, `qsoCount`, `date`, `dateCompact`, `time`,
71
72
  `at`, `startDate`, `startTime`, `startAt`, `endDate`, `endTime`, `endAt`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ham2k/extension-sdk",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "description": "Write extensions for the Ham2K Logger: typed hook contracts and the host API",
5
5
  "keywords": [
6
6
  "ham2k",