@notionhq/custom-blocks-dev-shell 0.4.0 → 0.4.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/README.md CHANGED
@@ -132,7 +132,8 @@ Block responses enforce a production-like content security policy (CSP) and send
132
132
  - **Blocked features:** Native form submission, browser workers, `<object>`, `<embed>`, web app
133
133
  manifests, and `<base>`.
134
134
  - **Scripts and styles:** Bundled scripts, inline scripts, and inline styles work. Scripts loaded
135
- from a CDN at runtime are blocked.
135
+ from a CDN at runtime are blocked. WebAssembly compilation is allowed; JavaScript string
136
+ evaluation remains blocked.
136
137
  - **Media and fonts:** Notion-hosted media and Google Fonts use the same exceptions as production.
137
138
  - **External access:** Network requests and nested frames may use any origin for now. Browser CORS
138
139
  checks still apply.
@@ -159,13 +160,13 @@ Block responses enforce a production-like content security policy (CSP) and send
159
160
 
160
161
  ### Reload behavior
161
162
 
162
- | Change | What happens |
163
- | ------------------------------------------------------ | --------------------------------------------------------------------- |
164
- | Block code or styles | Vite applies hot updates. |
165
- | Retry or changes to blocks, bindings, or display mode | The preview restarts. Page records stay in memory. |
166
- | Loaded sample filenames, schemas, or rows | All page records reset to the sample files, and the preview restarts. |
167
- | Browser refresh | All page records reset to the sample files. |
168
- | Worker declarations, including data source definitions | Restart the dev shell to rebuild the manifest. |
163
+ | Change | What happens |
164
+ | -------------------------------------------------------------------- | --------------------------------------------------------------------- |
165
+ | Block code or styles | Vite applies hot updates. |
166
+ | Retry or changes to the block, data source bindings, or display mode | The preview restarts. Page records stay in memory. |
167
+ | Loaded sample filenames, schemas, or rows | All page records reset to the sample files, and the preview restarts. |
168
+ | Browser refresh | All page records reset to the sample files. |
169
+ | Worker declarations, including data source definitions | Restart the dev shell to rebuild the manifest. |
169
170
 
170
171
  See [live updates and local writes](docs/data-sources.md#live-updates-and-local-writes) for sample
171
172
  changes and error recovery.
@@ -173,8 +174,8 @@ changes and error recovery.
173
174
  ### Sample users
174
175
 
175
176
  The dev shell provides a fixed set of sample users, with Ada Lovelace as the current user.
176
- `customBlock.getCurrentUser()`, `users.get()`, and `users.list()` use the same profiles. Block
177
- reloads and changes to sample data files preserve these user identities.
177
+ `getViewer()` identifies the viewer. `NotionUser` field reads and `listUsers()` use the same
178
+ profiles. Block reloads and changes to sample data files preserve these user identities.
178
179
 
179
180
  The built-in People data source contains directory pages that reference sample users. Adding,
180
181
  editing, or deleting a worker's People file does not change the sample users.