@notionhq/custom-blocks-dev-shell 0.1.108 → 0.1.110

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/README.md CHANGED
@@ -35,6 +35,16 @@ Install `@notionhq/custom-blocks-dev-shell` in the worker's `devDependencies` to
35
35
  This also makes the reference docs available in `node_modules`. If you do not install it, the CLI
36
36
  fetches the latest version each time.
37
37
 
38
+ ### Browser restrictions
39
+
40
+ The preview iframe uses the production sandbox: `allow-scripts allow-same-origin`, with
41
+ `allow="clipboard-write"`. Forms, popups, top-level navigation, downloads, and modal dialogs are
42
+ blocked.
43
+
44
+ The shell and each block use separate origins, so a block cannot access the shell's DOM or storage.
45
+ Instances of the same block share `localStorage`; `sessionStorage` is also scoped to the browser
46
+ tab.
47
+
38
48
  ### Error surface
39
49
 
40
50
  The preview shows an error when a block cannot initialize or an uncaught runtime error prevents