@notionhq/custom-blocks-dev-shell 0.4.0 → 0.4.2

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/docs/bindings.md CHANGED
@@ -88,11 +88,12 @@ their types match.
88
88
  ## Edit bindings
89
89
 
90
90
  Open **Bindings → Data access** to select files from your worker’s `data/` directory and map their
91
- properties. See the [sample data format](data-sources.md) to define a source. **Done** applies
92
- changes. Closing the dialog or pressing Escape discards them.
91
+ properties. Changes apply as you make them. See the [sample data format](data-sources.md) to
92
+ define a source.
93
93
 
94
- **Page access** appears only when the manifest declares `pages`. It lists the declarations. Page
95
- bindings are not supported yet.
94
+ **Page access** appears when the manifest declares at least one page slot. Select a page from your
95
+ loaded sample data to apply the selection immediately. Named page selections are available in the
96
+ shell UI. Blocks can use the SDK to read sample pages by ID.
96
97
 
97
98
  A property maps automatically only when exactly one source property matches its key or name and has
98
99
  the same type. If no property matches, or several properties match, the property stays unmapped.
@@ -101,9 +102,9 @@ resets its property mappings.
101
102
 
102
103
  ## Initialization and refresh
103
104
 
104
- Once every declared data source and property is mapped, the shell mounts the preview. Applying
105
- binding changes with **Done** restarts the block with the updated data. If initialization fails
106
- because of a binding error, fix the bindings and select **Done** again.
105
+ The shell mounts the preview once every declared data source and property is mapped. Changing a data
106
+ source or property mapping restarts the preview once the bindings are complete. You can finish
107
+ mapping properties while the dialog is open.
107
108
 
108
109
  The shell keeps binding selections separately for each block until you refresh the browser. Refresh
109
110
  the shell to restore each block's CLI source and property selections, with automatic matching for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks-dev-shell",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Local development shell for Notion custom block workers.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,11 +19,5 @@
19
19
  "README.md",
20
20
  "LICENSE",
21
21
  "THIRD_PARTY_LICENSES.md"
22
- ],
23
- "dependencies": {
24
- "react": "^19.3.1",
25
- "react-dom": "^19.3.1",
26
- "temporal-polyfill": "^1.0.6",
27
- "valibot": "^1.5.0"
28
- }
22
+ ]
29
23
  }