@notionhq/custom-blocks-dev-shell 0.1.45 → 0.1.47

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/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Workers local shell</title>
7
- <script type="module" crossorigin src="/assets/index-BlE-ATwf.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-DDiHix6p.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-DPSvDdQX.css">
9
9
  </head>
10
10
  <body>
@@ -13,25 +13,25 @@ supports the following types today:
13
13
 
14
14
  ```json
15
15
  {
16
- "type": "worker",
17
- "key": "tasks",
18
- "name": "Tasks",
19
- "icon": "✅",
20
- "schema": {
21
- "title": { "name": "Title", "type": "title" },
22
- "status": { "name": "Status", "type": "select" },
23
- "dueDate": { "name": "Due date", "type": "date" },
24
- "done": { "name": "Done", "type": "checkbox" }
25
- },
26
- "rows": [
27
- {
28
- "id": "tasks-1",
29
- "title": "Ship the block",
30
- "status": "In progress",
31
- "dueDate": { "type": "date", "start_date": "2026-08-01" },
32
- "done": false
33
- }
34
- ]
16
+ "type": "worker",
17
+ "key": "tasks",
18
+ "name": "Tasks",
19
+ "icon": "✅",
20
+ "schema": {
21
+ "title": { "name": "Title", "type": "title" },
22
+ "status": { "name": "Status", "type": "select" },
23
+ "dueDate": { "name": "Due date", "type": "date" },
24
+ "done": { "name": "Done", "type": "checkbox" }
25
+ },
26
+ "rows": [
27
+ {
28
+ "id": "tasks-1",
29
+ "title": "Ship the block",
30
+ "status": "In progress",
31
+ "dueDate": { "type": "date", "start_date": "2026-08-01" },
32
+ "done": false
33
+ }
34
+ ]
35
35
  }
36
36
  ```
37
37
 
@@ -51,16 +51,16 @@ supports the following types today:
51
51
 
52
52
  Value shapes by property type:
53
53
 
54
- | Type | Value |
55
- | --- | --- |
56
- | `title`, `rich_text`, `select`, `status`, `url`, `email`, `phone_number` | string |
57
- | `multi_select` | array of strings |
58
- | `number` | number |
59
- | `checkbox` | boolean |
60
- | `date` | `{ "type": "date", "start_date": "YYYY-MM-DD" }`; ranges and datetimes use `"daterange"` / `"datetime"` / `"datetimerange"` with `end_date`, `start_time`, `end_time` |
61
- | `people` | array of `{ "id": "...", "table": "notion_user" }` pointers |
62
- | `relation` | array of `{ "id": "...", "table": "block" }` pointers |
63
- | `files` | string (the host serializes file properties as text today) |
54
+ | Type | Value |
55
+ | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
+ | `title`, `rich_text`, `select`, `status`, `url`, `email`, `phone_number` | string |
57
+ | `multi_select` | array of strings |
58
+ | `number` | number |
59
+ | `checkbox` | boolean |
60
+ | `date` | `{ "type": "date", "start_date": "YYYY-MM-DD" }`; ranges and datetimes use `"daterange"` / `"datetime"` / `"datetimerange"` with `end_date`, `start_time`, `end_time` |
61
+ | `people` | array of `{ "id": "...", "table": "notion_user" }` pointers |
62
+ | `relation` | array of `{ "id": "...", "table": "block" }` pointers |
63
+ | `files` | string (the host serializes file properties as text today) |
64
64
 
65
65
  ## Validation
66
66
 
@@ -70,6 +70,14 @@ file fails the run with the file and problem named, e.g.
70
70
  Omitted `key`/`name` fall back to the filename; omitted `schema`/`rows` to
71
71
  empty.
72
72
 
73
+ ## Querying
74
+
75
+ The shell applies filters, then ordered sorts, then the query limit. The SDK
76
+ resolves semantic property keys to property IDs before it sends the query.
77
+ Empty values stay last in both directions.
78
+ Date-only and zone-less datetime values sort using UTC. Datetime values with a
79
+ `time_zone` use that named zone, and an explicit offset in `start_time` wins.
80
+
73
81
  ## Materialization
74
82
 
75
83
  You don't have to write these files from scratch. At spin-up the shell
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks-dev-shell",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Local preview shell for Notion custom block workers.",
5
5
  "license": "MIT",
6
6
  "repository": {