@notionhq/custom-blocks-dev-shell 0.1.38 → 0.1.40

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-CDyTtHiu.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-WI6xPlZN.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-DpKdfNws.css">
9
9
  </head>
10
10
  <body>
package/docs/bindings.md CHANGED
@@ -14,12 +14,13 @@ are the ones in your worker's `src/data/*.json`
14
14
  (format: [`data-sources.md`](./data-sources.md)); the toolbar shows a chip
15
15
  per slot with its current binding state.
16
16
 
17
- Picking a source auto-maps its properties: a source property whose key
18
- equals the manifest key and matches its type wins; otherwise exactly one
19
- type-compatible property with the same name (case-insensitive); anything
20
- ambiguous or absent stays unmapped. Re-picking a source resets the slot's
21
- mappings and re-runs auto-map. Manual mapping offers only source properties
22
- of exactly the required type no coercion.
17
+ Picking a source auto-maps its properties. For each manifest property, only
18
+ schema properties of the same type are candidates. A property is a candidate
19
+ on an exact ID/key match (no trim or case folding) or a display name match
20
+ after trim and lowercasing. Bind when there is exactly one candidate;
21
+ anything ambiguous or absent stays unmapped. Re-picking a source resets the
22
+ slot's mappings and re-runs auto-map. Manual mapping offers only source
23
+ properties of exactly the required type — no coercion.
23
24
 
24
25
  ## Initialization & binding edits
25
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks-dev-shell",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "description": "Local preview shell for Notion custom block workers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,18 +34,19 @@
34
34
  "@types/react": "^19.2.14",
35
35
  "@types/react-dom": "^19.2.3",
36
36
  "@vitejs/plugin-react": "^6.0.1",
37
- "@vitest/coverage-v8": "^4.1.5",
37
+ "@vitest/coverage-v8": "^4.1.11",
38
38
  "tailwindcss": "^4.2.4",
39
39
  "typescript": "^6.0.3",
40
40
  "vite": "^8.0.10",
41
- "vitest": "^4.1.5",
42
- "@notionhq/custom-blocks-protocol": "0.1.0",
43
- "@notionhq/custom-blocks-host": "0.0.0"
41
+ "vitest": "^4.1.11",
42
+ "@notionhq/custom-blocks-host": "0.0.0",
43
+ "@notionhq/custom-blocks-protocol": "0.1.0"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "vite",
47
47
  "build": "vite build && tsc --project cli/tsconfig.build.json",
48
48
  "test": "vitest run",
49
+ "test:coverage": "vitest run --coverage --coverage.provider=v8 --coverage.reporter=json",
49
50
  "typecheck": "tsc --project tsconfig.json && tsc --project cli/tsconfig.json"
50
51
  }
51
52
  }