@notionhq/custom-blocks-dev-shell 0.1.116 → 0.3.0
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 +8 -2
- package/dist/assets/index-CWJ-vFk0.js +12 -0
- package/dist/index.html +1 -1
- package/dist-cli/cli/published-cli.js +271 -111
- package/docs/bridge/changelog.md +28 -1
- package/docs/bridge/protocol.md +51 -15
- package/docs/bridge/versioning.md +1 -0
- package/docs/data-sources.md +6 -4
- package/docs/host/README.md +64 -36
- package/docs/host/docs/compatibility.md +15 -7
- package/docs/host/docs/handlers.md +45 -141
- package/docs/host/docs/host-contract.md +196 -0
- package/docs/host/docs/lifecycle.md +28 -23
- package/package.json +1 -1
- package/dist/assets/index-DSaseWP_.js +0 -11
package/README.md
CHANGED
|
@@ -75,8 +75,10 @@ declared manifest, and selected sample files.
|
|
|
75
75
|
to `workerDir`. Slots without a selected file are omitted. The record is a startup snapshot, not a
|
|
76
76
|
description of current browser property mappings. Later edits do not emit another record.
|
|
77
77
|
|
|
78
|
-
Read the record without waiting for process exit. `ready` confirms
|
|
79
|
-
rendering, data access, or complete bindings.
|
|
78
|
+
Read the record without waiting for process exit. `ready` confirms that the shell and every block
|
|
79
|
+
URL returned HTTP 2xx. It does not confirm block rendering, data access, or complete bindings. The
|
|
80
|
+
checks allow 10 seconds after server setup. On timeout, stderr names the URLs that did not respond
|
|
81
|
+
successfully, and the process exits nonzero without a ready record.
|
|
80
82
|
|
|
81
83
|
### Options
|
|
82
84
|
|
|
@@ -125,6 +127,10 @@ Block responses enforce a production-like content security policy (CSP) and send
|
|
|
125
127
|
|
|
126
128
|
#### Differences from production
|
|
127
129
|
|
|
130
|
+
- **Native icon colors:** The reference host accepts any string color and defaults omitted colors to
|
|
131
|
+
gray. It does not emulate Notion's supported-color checks. A successful local write does not
|
|
132
|
+
establish that Notion supports the color.
|
|
133
|
+
|
|
128
134
|
- **Local origins:** Blocks and the shell use HTTP localhost origins instead of production HTTPS
|
|
129
135
|
origins.
|
|
130
136
|
- **Hot reload:** CSP permits the block's exact WebSocket host and port for Vite HMR.
|