@notionhq/custom-blocks 0.1.37 → 0.1.39

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.
Files changed (42) hide show
  1. package/README.md +5 -0
  2. package/bin/notion-custom-blocks/build.d.ts +23 -0
  3. package/bin/notion-custom-blocks/bundle.d.ts +4 -0
  4. package/bin/notion-custom-blocks/bundle.js +2 -0
  5. package/bin/notion-custom-blocks/cli.d.ts +8 -0
  6. package/bin/notion-custom-blocks/tar.d.ts +11 -0
  7. package/bin/notion-custom-blocks/upload.d.ts +14 -0
  8. package/bin/notion-custom-blocks/upload.js +14 -0
  9. package/bin/notion-custom-blocks/upload.test.d.ts +1 -0
  10. package/bin/notion-custom-blocks/upload.test.js +35 -0
  11. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  12. package/dist/bridge/pendingRequests.d.ts.map +1 -1
  13. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  14. package/dist/init.d.ts.map +1 -1
  15. package/dist/protocol/dataSources/dataSource.d.ts +135 -135
  16. package/dist/protocol/dataSources/propertySchema.d.ts +27 -27
  17. package/dist/protocol/messages/createPage.d.ts +15 -15
  18. package/dist/protocol/messages/createPageResult.d.ts +17 -15
  19. package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
  20. package/dist/protocol/messages/getPage.d.ts +17 -15
  21. package/dist/protocol/messages/hostToSandbox.d.ts +114 -100
  22. package/dist/protocol/messages/init.d.ts +32 -28
  23. package/dist/protocol/messages/pageChanged.d.ts +2 -0
  24. package/dist/protocol/messages/parentChanged.d.ts +2 -0
  25. package/dist/protocol/messages/sandboxToHost.d.ts +30 -30
  26. package/dist/protocol/messages/updatePage.d.ts +15 -15
  27. package/dist/protocol/messages/updatePageResult.d.ts +17 -15
  28. package/dist/protocol/pages/page.d.ts +49 -45
  29. package/dist/protocol/parent.d.ts +5 -1
  30. package/dist/protocol/parent.js +1 -0
  31. package/dist/react/DebugMessageLog.d.ts +1 -1
  32. package/dist/react/DebugMessageLog.d.ts.map +1 -1
  33. package/dist/react/NotionCustomBlock.d.ts +1 -1
  34. package/dist/react/NotionCustomBlock.d.ts.map +1 -1
  35. package/dist/react/NotionCustomBlock.js +1 -1
  36. package/dist/react/NotionTokenScope.d.ts +1 -1
  37. package/dist/react/NotionTokenScope.d.ts.map +1 -1
  38. package/dist/version.js +1 -1
  39. package/docs/block-location.md +13 -1
  40. package/docs/deployment.md +15 -0
  41. package/docs/pages.md +1 -1
  42. package/package.json +16 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -25,6 +25,10 @@
25
25
  "./vite": {
26
26
  "import": "./vite-plugin/index.js",
27
27
  "types": "./vite-plugin/index.d.ts"
28
+ },
29
+ "./bundle": {
30
+ "types": "./bin/notion-custom-blocks/bundle.d.ts",
31
+ "import": "./bin/notion-custom-blocks/bundle.js"
28
32
  }
29
33
  },
30
34
  "bin": {
@@ -43,7 +47,7 @@
43
47
  "dist"
44
48
  ],
45
49
  "peerDependencies": {
46
- "react": "^19.2.5"
50
+ "react": "^19.2.8"
47
51
  },
48
52
  "peerDependenciesMeta": {
49
53
  "react": {
@@ -51,17 +55,17 @@
51
55
  }
52
56
  },
53
57
  "devDependencies": {
54
- "@testing-library/react": "^16.3.2",
55
- "@types/node": "^25.6.0",
56
- "@types/react": "^19.2.14",
57
- "@types/react-dom": "^19.2.3",
58
- "@vitest/coverage-v8": "^4.1.11",
59
- "jsdom": "^29.1.0",
60
- "react": "^19.2.5",
61
- "react-dom": "^19.2.5",
62
- "vitest": "^4.1.11"
58
+ "@testing-library/react": "^16.3.3",
59
+ "@types/node": "^26.5.0",
60
+ "@types/react": "^19.2.18",
61
+ "@types/react-dom": "^19.2.7",
62
+ "@vitest/coverage-v8": "^5.0.0",
63
+ "jsdom": "^30.0.1",
64
+ "react": "^19.2.8",
65
+ "react-dom": "^19.2.8",
66
+ "vitest": "^5.0.0"
63
67
  },
64
68
  "dependencies": {
65
- "valibot": "^1.3.1"
69
+ "valibot": "^1.4.2"
66
70
  }
67
71
  }