@botiverse/porthole 0.14.12 → 0.14.13

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 CHANGED
@@ -4,6 +4,18 @@
4
4
  section); the reasons for every change are in [docs/DECISIONS.md](docs/DECISIONS.md), by the
5
5
  P-numbers below.
6
6
 
7
+ ## 0.14.13
8
+
9
+ - **Annotations: a `focusMark` that had to wait (P135).** While the frame finds its marks, `focusMark`
10
+ waits, and is now dropped unless the focus is in the frame by then, so it takes no keyboard from a
11
+ person who moved on. A call on a calm page is unchanged. After your card closes the focus is on your
12
+ `<body>`, so a call that waited is dropped: if the focus is still there a moment later, call
13
+ `display.focus()` and `focusMark(id)` again (ADOPTING). Known gap: on a nested page that had the
14
+ focus, `display.focus()` doesn't bring it back, so a call that waits is dropped even then.
15
+ - **Security (P135):** the shell asks through the platform's `hasFocus`, kept before content runs
16
+ (controls `marker-late`, `marker-has-focus`). No CSP, sandbox, egress or gate changes; the focus
17
+ guard is untouched.
18
+
7
19
  ## 0.14.12
8
20
 
9
21
  - **Annotations: the keyboard back on a marker (P134).** `annotations.focusMark(id)` (React:
@@ -234,7 +234,10 @@ export declare const ANNOTATE_METHODS: {
234
234
  readonly tracked: "porthole/annotate.tracked";
235
235
  /** Host → frame: take the page's text selection away, telling nothing back (P115). */
236
236
  readonly clearSelection: "porthole/annotate.clearSelection";
237
- /** Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134). */
237
+ /**
238
+ * Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134); one
239
+ * that waited for the marks is dropped unless the focus is in the frame's document by then (P135).
240
+ */
238
241
  readonly focusMark: "porthole/annotate.focusMark";
239
242
  };
240
243
  /** The most of each part of an anchor or report the host takes. */
@@ -36,7 +36,10 @@ export const ANNOTATE_METHODS = {
36
36
  tracked: "porthole/annotate.tracked",
37
37
  /** Host → frame: take the page's text selection away, telling nothing back (P115). */
38
38
  clearSelection: "porthole/annotate.clearSelection",
39
- /** Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134). */
39
+ /**
40
+ * Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134); one
41
+ * that waited for the marks is dropped unless the focus is in the frame's document by then (P135).
42
+ */
40
43
  focusMark: "porthole/annotate.focusMark",
41
44
  };
42
45
  /** The most of each part of an anchor or report the host takes. */