@webx-ui/module-blocks 0.8.0 → 0.8.1

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/frame.d.ts CHANGED
@@ -44,10 +44,13 @@ export interface FrameBinding {
44
44
  /**
45
45
  * Make the preview a picture of the page rather than the page itself.
46
46
  *
47
- * Every pointer event is taken at the document, in the capture phase, and goes no further:
48
- * stopped there it never reaches a link, a form or a block's own script, so nothing in the
49
- * preview navigates, submits or opens anything. What a click does instead is choose the block
50
- * it landed in, which is the one thing the editor wants from it.
47
+ * A click inside a block is taken at the document, in the capture phase, and goes no further:
48
+ * stopped there it never reaches a link, a form or the block's own script. What it does
49
+ * instead is choose the block it landed in, which is the one thing the editor wants from it.
50
+ *
51
+ * A click on the site around the blocks goes on to the site, only never anywhere else (see
52
+ * `inert`): the layout may open a newsletter popup or a cookie bar over the page, and one whose
53
+ * close button never hears its click covers the preview for good.
51
54
  *
52
55
  * Bound per document: an iframe that reloads gets a new one, and the old binding is released
53
56
  * with it.
@@ -59,6 +62,9 @@ export declare function bindFrame(doc: Document, handlers: {
59
62
  * The same picture without the choosing: nothing in the page navigates, submits or is dragged
60
63
  * away. What the block editor's stage needs — the site's header is full of links, and one
61
64
  * click on them would leave the frame on another page of the site with the block gone.
65
+ *
66
+ * Clicks themselves still reach the page (see `inert`): the block's own script runs as it will
67
+ * on the site, and the site's popups close.
62
68
  */
63
69
  export declare function freezeFrame(doc: Document): FrameBinding;
64
70
  /** The key the stage draws its block under — `StageController::KEY` on the server. */