@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/README.md +59 -41
- package/dist/assets/index-BPt5jNdQ.js +12 -0
- package/dist/assets/{index-B4LAgGzW.css → index-CohEBjwO.css} +1 -1
- package/dist/index.html +2 -2
- package/dist-cli/cli/published-cli.js +10472 -324
- package/docs/bindings.md +8 -7
- package/package.json +2 -8
- package/dist/assets/index-CjUu48lJ.js +0 -12
- package/docs/bridge/changelog.md +0 -157
- package/docs/bridge/protocol.md +0 -309
- package/docs/bridge/versioning.md +0 -51
- package/docs/host/README.md +0 -202
- package/docs/host/docs/compatibility.md +0 -114
- package/docs/host/docs/handlers.md +0 -110
- package/docs/host/docs/host-contract.md +0 -196
- package/docs/host/docs/lifecycle.md +0 -133
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
|
|
92
|
-
|
|
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
|
|
95
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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.
|
|
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
|
}
|