@notionhq/custom-blocks-dev-shell 0.1.2 → 0.1.4

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
@@ -23,16 +23,15 @@ Options:
23
23
  - `--block-base-port <port>` — first port handed to the per-block dev servers
24
24
  (default 9876; blocks count up from there).
25
25
 
26
- ## Data sources
27
-
28
- The shell reads local data sources from the worker's `src/data/*.json` one
29
- source per file: `{ type: "worker", key, name, icon?, schema, rows }`, where
30
- `schema` maps property keys to `{ name, type }` and each row carries a unique
31
- string `id` plus values under the schema's keys. The format is documented in
32
- full in [`docs/data-sources.md`](docs/data-sources.md), which ships with this
33
- package. Files are validated at spin-up, and
34
- a malformed file fails with the file and problem named. The shell shows
35
- exactly the sources in `src/data/` — none yet means an empty DATA sidebar.
26
+ ## Reference
27
+
28
+ One page per topic, shipped in this package's `docs/` so they're readable
29
+ from `node_modules`:
30
+
31
+ - [`docs/data-sources.md`](./docs/data-sources.md) local data sources: the
32
+ `src/data/*.json` file format, value shapes per property type, validation,
33
+ and how missing sources are materialized from the worker's declared
34
+ schemas.
36
35
 
37
36
  ## Requirements
38
37