@notionhq/custom-blocks 0.1.7 → 0.1.9
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 +14 -1
- package/bin/notion-custom-blocks/cli.js +6 -0
- package/dist/bridge/SandboxBridge.d.ts +3 -9
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +5 -10
- package/dist/bridge/dataSources/resolve.d.ts +3 -3
- package/dist/bridge/dataSources/resolve.d.ts.map +1 -1
- package/dist/bridge/dataSources/resolve.js +1 -1
- package/dist/bridge/dataSources/resolveProperty.d.ts +6 -9
- package/dist/bridge/dataSources/resolveProperty.d.ts.map +1 -1
- package/dist/bridge/dataSources/resolveProperty.js +3 -6
- package/dist/bridge/hostState.d.ts +11 -11
- package/dist/bridge/hostState.d.ts.map +1 -1
- package/dist/bridge/loadManifest.d.ts +2 -2
- package/dist/bridge/loadManifest.d.ts.map +1 -1
- package/dist/bridge/loadManifest.js +1 -1
- package/dist/bridge/sandboxClient.d.ts +1 -1
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/customBlock.d.ts +8 -8
- package/dist/customBlock.d.ts.map +1 -1
- package/dist/index.d.ts +24 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/init.d.ts +8 -8
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +1 -1
- package/dist/protocol/contrast.d.ts.map +1 -0
- package/dist/protocol/dataSources/dataSource.d.ts.map +1 -0
- package/dist/protocol/dataSources/dataSourcePage.d.ts.map +1 -0
- package/dist/protocol/dataSources/dataSourceValue.d.ts.map +1 -0
- package/dist/protocol/dataSources/dateValue.d.ts.map +1 -0
- package/dist/{bridge → protocol}/dataSources/errors.d.ts +3 -0
- package/dist/protocol/dataSources/errors.d.ts.map +1 -0
- package/dist/{bridge → protocol}/dataSources/errors.js +3 -0
- package/dist/protocol/dataSources/propertySchema.d.ts.map +1 -0
- package/dist/protocol/dataSources/recordPointer.d.ts.map +1 -0
- package/dist/protocol/errors.d.ts.map +1 -0
- package/dist/protocol/ids.d.ts.map +1 -0
- package/dist/protocol/incomingType.d.ts.map +1 -0
- package/dist/protocol/index.d.ts +48 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/index.js +47 -0
- package/dist/protocol/manifest.d.ts.map +1 -0
- package/dist/protocol/messages/connect.d.ts.map +1 -0
- package/dist/protocol/messages/contrastModeChanged.d.ts.map +1 -0
- package/dist/protocol/messages/createPage.d.ts.map +1 -0
- package/dist/protocol/messages/createPageResult.d.ts.map +1 -0
- package/dist/protocol/messages/currentUserChanged.d.ts.map +1 -0
- package/dist/{bridge → protocol}/messages/dataSourcesChanged.d.ts +1 -1
- package/dist/protocol/messages/dataSourcesChanged.d.ts.map +1 -0
- package/dist/{bridge → protocol}/messages/dataSourcesChanged.js +1 -1
- package/dist/protocol/messages/getPage.d.ts.map +1 -0
- package/dist/protocol/messages/getUser.d.ts.map +1 -0
- package/dist/{bridge → protocol}/messages/hostToSandbox.d.ts.map +1 -1
- package/dist/protocol/messages/init.d.ts.map +1 -0
- package/dist/protocol/messages/initResult.d.ts.map +1 -0
- package/dist/protocol/messages/invalidHostMessage.d.ts.map +1 -0
- package/dist/protocol/messages/invalidSandboxMessage.d.ts.map +1 -0
- package/dist/protocol/messages/listUsers.d.ts.map +1 -0
- package/dist/protocol/messages/pageChanged.d.ts.map +1 -0
- package/dist/protocol/messages/parentChanged.d.ts.map +1 -0
- package/dist/protocol/messages/queryDataSource.d.ts.map +1 -0
- package/dist/protocol/messages/queryDataSourceResult.d.ts.map +1 -0
- package/dist/protocol/messages/resize.d.ts.map +1 -0
- package/dist/{bridge → protocol}/messages/sandboxToHost.d.ts.map +1 -1
- package/dist/protocol/messages/themeChanged.d.ts.map +1 -0
- package/dist/protocol/messages/updatePage.d.ts.map +1 -0
- package/dist/protocol/messages/updatePageResult.d.ts.map +1 -0
- package/dist/{bridge → protocol}/pages/page.d.ts +1 -1
- package/dist/protocol/pages/page.d.ts.map +1 -0
- package/dist/protocol/parent.d.ts.map +1 -0
- package/dist/protocol/protocolVersion.d.ts +7 -0
- package/dist/protocol/protocolVersion.d.ts.map +1 -0
- package/dist/protocol/protocolVersion.js +6 -0
- package/dist/protocol/theme.d.ts.map +1 -0
- package/dist/protocol/users/user.d.ts.map +1 -0
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/standalonePreview.d.ts.map +1 -1
- package/dist/react/standalonePreview.js +2 -2
- package/dist/react/useCustomBlockInit.d.ts +1 -1
- package/dist/react/useCustomBlockInit.d.ts.map +1 -1
- package/dist/react/useDataSource.d.ts +1 -1
- package/dist/react/useDataSource.js +1 -1
- package/dist/react/useRuntimeState.d.ts +9 -9
- package/dist/react/useRuntimeState.d.ts.map +1 -1
- package/dist/react/useRuntimeState.js +2 -2
- package/dist/types.d.ts +19 -18
- package/dist/types.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/docs/block-location.md +1 -1
- package/docs/data-sources.md +1 -1
- package/docs/deployment.md +1 -1
- package/docs/errors.md +0 -2
- package/docs/lifecycle.md +5 -5
- package/docs/pages.md +4 -4
- package/package.json +3 -7
- package/src/bridge/SandboxBridge.ts +36 -42
- package/src/bridge/dataSources/resolve.ts +3 -3
- package/src/bridge/dataSources/resolveProperty.ts +14 -20
- package/src/bridge/hostState.ts +15 -12
- package/src/bridge/loadManifest.ts +5 -2
- package/src/bridge/sandboxClient.ts +1 -1
- package/src/customBlock.ts +8 -8
- package/src/index.ts +26 -30
- package/src/init.ts +8 -8
- package/src/react/index.ts +1 -1
- package/src/react/standalonePreview.ts +5 -2
- package/src/react/useCustomBlockInit.ts +1 -1
- package/src/react/useDataSource.ts +1 -1
- package/src/react/useRuntimeState.ts +9 -9
- package/src/types.ts +27 -24
- package/HOST.md +0 -224
- package/dist/bridge/contrast.d.ts.map +0 -1
- package/dist/bridge/dataSources/dataSource.d.ts.map +0 -1
- package/dist/bridge/dataSources/dataSourcePage.d.ts.map +0 -1
- package/dist/bridge/dataSources/dataSourceValue.d.ts.map +0 -1
- package/dist/bridge/dataSources/dateValue.d.ts.map +0 -1
- package/dist/bridge/dataSources/errors.d.ts.map +0 -1
- package/dist/bridge/dataSources/propertySchema.d.ts.map +0 -1
- package/dist/bridge/dataSources/recordPointer.d.ts.map +0 -1
- package/dist/bridge/errors.d.ts.map +0 -1
- package/dist/bridge/ids.d.ts.map +0 -1
- package/dist/bridge/incomingType.d.ts.map +0 -1
- package/dist/bridge/manifest.d.ts.map +0 -1
- package/dist/bridge/messages/connect.d.ts.map +0 -1
- package/dist/bridge/messages/contrastModeChanged.d.ts.map +0 -1
- package/dist/bridge/messages/createPage.d.ts.map +0 -1
- package/dist/bridge/messages/createPageResult.d.ts.map +0 -1
- package/dist/bridge/messages/currentUserChanged.d.ts.map +0 -1
- package/dist/bridge/messages/dataSourcesChanged.d.ts.map +0 -1
- package/dist/bridge/messages/getPage.d.ts.map +0 -1
- package/dist/bridge/messages/getUser.d.ts.map +0 -1
- package/dist/bridge/messages/init.d.ts.map +0 -1
- package/dist/bridge/messages/initResult.d.ts.map +0 -1
- package/dist/bridge/messages/invalidHostMessage.d.ts.map +0 -1
- package/dist/bridge/messages/invalidSandboxMessage.d.ts.map +0 -1
- package/dist/bridge/messages/listUsers.d.ts.map +0 -1
- package/dist/bridge/messages/pageChanged.d.ts.map +0 -1
- package/dist/bridge/messages/parentChanged.d.ts.map +0 -1
- package/dist/bridge/messages/queryDataSource.d.ts.map +0 -1
- package/dist/bridge/messages/queryDataSourceResult.d.ts.map +0 -1
- package/dist/bridge/messages/resize.d.ts.map +0 -1
- package/dist/bridge/messages/themeChanged.d.ts.map +0 -1
- package/dist/bridge/messages/updatePage.d.ts.map +0 -1
- package/dist/bridge/messages/updatePageResult.d.ts.map +0 -1
- package/dist/bridge/pages/page.d.ts.map +0 -1
- package/dist/bridge/parent.d.ts.map +0 -1
- package/dist/bridge/theme.d.ts.map +0 -1
- package/dist/bridge/users/user.d.ts.map +0 -1
- package/dist/host/createCustomBlockHost.d.ts +0 -39
- package/dist/host/createCustomBlockHost.d.ts.map +0 -1
- package/dist/host/createCustomBlockHost.js +0 -495
- package/dist/host/lifecycle/initErrors.d.ts +0 -13
- package/dist/host/lifecycle/initErrors.d.ts.map +0 -1
- package/dist/host/lifecycle/initErrors.js +0 -152
- package/dist/host/lifecycle/protocolVersion.d.ts +0 -2
- package/dist/host/lifecycle/protocolVersion.d.ts.map +0 -1
- package/dist/host/lifecycle/protocolVersion.js +0 -3
- package/dist/host/lifecycle/types.d.ts +0 -28
- package/dist/host/lifecycle/types.d.ts.map +0 -1
- package/dist/host/lifecycle/types.js +0 -1
- package/dist/host/messages/invalidSandboxMessage.d.ts +0 -7
- package/dist/host/messages/invalidSandboxMessage.d.ts.map +0 -1
- package/dist/host/messages/invalidSandboxMessage.js +0 -21
- package/dist/host/messages/types.d.ts +0 -60
- package/dist/host/messages/types.d.ts.map +0 -1
- package/dist/host/messages/types.js +0 -1
- package/dist/host/queries/querySubscriptions.d.ts +0 -20
- package/dist/host/queries/querySubscriptions.d.ts.map +0 -1
- package/dist/host/queries/querySubscriptions.js +0 -45
- package/dist/host/queries/types.d.ts +0 -11
- package/dist/host/queries/types.d.ts.map +0 -1
- package/dist/host/queries/types.js +0 -1
- package/dist/host.d.ts +0 -79
- package/dist/host.d.ts.map +0 -1
- package/dist/host.js +0 -45
- package/src/bridge/contrast.ts +0 -6
- package/src/bridge/dataSources/dataSource.ts +0 -63
- package/src/bridge/dataSources/dataSourcePage.ts +0 -71
- package/src/bridge/dataSources/dataSourceValue.ts +0 -19
- package/src/bridge/dataSources/dateValue.ts +0 -96
- package/src/bridge/dataSources/errors.ts +0 -14
- package/src/bridge/dataSources/propertySchema.ts +0 -186
- package/src/bridge/dataSources/recordPointer.ts +0 -13
- package/src/bridge/errors.ts +0 -21
- package/src/bridge/ids.ts +0 -72
- package/src/bridge/incomingType.ts +0 -19
- package/src/bridge/manifest.ts +0 -47
- package/src/bridge/messages/connect.ts +0 -42
- package/src/bridge/messages/contrastModeChanged.ts +0 -12
- package/src/bridge/messages/createPage.ts +0 -62
- package/src/bridge/messages/createPageResult.ts +0 -52
- package/src/bridge/messages/currentUserChanged.ts +0 -14
- package/src/bridge/messages/dataSourcesChanged.ts +0 -18
- package/src/bridge/messages/getPage.ts +0 -51
- package/src/bridge/messages/getUser.ts +0 -49
- package/src/bridge/messages/hostToSandbox.ts +0 -39
- package/src/bridge/messages/init.ts +0 -99
- package/src/bridge/messages/initResult.ts +0 -37
- package/src/bridge/messages/invalidHostMessage.ts +0 -16
- package/src/bridge/messages/invalidSandboxMessage.ts +0 -18
- package/src/bridge/messages/listUsers.ts +0 -50
- package/src/bridge/messages/pageChanged.ts +0 -12
- package/src/bridge/messages/parentChanged.ts +0 -14
- package/src/bridge/messages/queryDataSource.ts +0 -20
- package/src/bridge/messages/queryDataSourceResult.ts +0 -45
- package/src/bridge/messages/resize.ts +0 -13
- package/src/bridge/messages/sandboxToHost.ts +0 -32
- package/src/bridge/messages/themeChanged.ts +0 -15
- package/src/bridge/messages/updatePage.ts +0 -22
- package/src/bridge/messages/updatePageResult.ts +0 -49
- package/src/bridge/pages/page.ts +0 -290
- package/src/bridge/parent.ts +0 -30
- package/src/bridge/theme.ts +0 -5
- package/src/bridge/users/user.ts +0 -31
- package/src/host/createCustomBlockHost.ts +0 -662
- package/src/host/lifecycle/initErrors.ts +0 -165
- package/src/host/lifecycle/protocolVersion.ts +0 -3
- package/src/host/lifecycle/types.ts +0 -40
- package/src/host/messages/invalidSandboxMessage.ts +0 -35
- package/src/host/messages/types.ts +0 -67
- package/src/host/queries/querySubscriptions.ts +0 -71
- package/src/host/queries/types.ts +0 -13
- package/src/host.ts +0 -182
- /package/dist/{bridge → protocol}/contrast.d.ts +0 -0
- /package/dist/{bridge → protocol}/contrast.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSource.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSource.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSourcePage.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSourcePage.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSourceValue.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/dataSourceValue.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/dateValue.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/dateValue.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/propertySchema.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/propertySchema.js +0 -0
- /package/dist/{bridge → protocol}/dataSources/recordPointer.d.ts +0 -0
- /package/dist/{bridge → protocol}/dataSources/recordPointer.js +0 -0
- /package/dist/{bridge → protocol}/errors.d.ts +0 -0
- /package/dist/{bridge → protocol}/errors.js +0 -0
- /package/dist/{bridge → protocol}/ids.d.ts +0 -0
- /package/dist/{bridge → protocol}/ids.js +0 -0
- /package/dist/{bridge → protocol}/incomingType.d.ts +0 -0
- /package/dist/{bridge → protocol}/incomingType.js +0 -0
- /package/dist/{bridge → protocol}/manifest.d.ts +0 -0
- /package/dist/{bridge → protocol}/manifest.js +0 -0
- /package/dist/{bridge → protocol}/messages/connect.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/connect.js +0 -0
- /package/dist/{bridge → protocol}/messages/contrastModeChanged.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/contrastModeChanged.js +0 -0
- /package/dist/{bridge → protocol}/messages/createPage.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/createPage.js +0 -0
- /package/dist/{bridge → protocol}/messages/createPageResult.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/createPageResult.js +0 -0
- /package/dist/{bridge → protocol}/messages/currentUserChanged.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/currentUserChanged.js +0 -0
- /package/dist/{bridge → protocol}/messages/getPage.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/getPage.js +0 -0
- /package/dist/{bridge → protocol}/messages/getUser.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/getUser.js +0 -0
- /package/dist/{bridge → protocol}/messages/hostToSandbox.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/hostToSandbox.js +0 -0
- /package/dist/{bridge → protocol}/messages/init.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/init.js +0 -0
- /package/dist/{bridge → protocol}/messages/initResult.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/initResult.js +0 -0
- /package/dist/{bridge → protocol}/messages/invalidHostMessage.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/invalidHostMessage.js +0 -0
- /package/dist/{bridge → protocol}/messages/invalidSandboxMessage.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/invalidSandboxMessage.js +0 -0
- /package/dist/{bridge → protocol}/messages/listUsers.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/listUsers.js +0 -0
- /package/dist/{bridge → protocol}/messages/pageChanged.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/pageChanged.js +0 -0
- /package/dist/{bridge → protocol}/messages/parentChanged.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/parentChanged.js +0 -0
- /package/dist/{bridge → protocol}/messages/queryDataSource.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/queryDataSource.js +0 -0
- /package/dist/{bridge → protocol}/messages/queryDataSourceResult.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/queryDataSourceResult.js +0 -0
- /package/dist/{bridge → protocol}/messages/resize.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/resize.js +0 -0
- /package/dist/{bridge → protocol}/messages/sandboxToHost.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/sandboxToHost.js +0 -0
- /package/dist/{bridge → protocol}/messages/themeChanged.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/themeChanged.js +0 -0
- /package/dist/{bridge → protocol}/messages/updatePage.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/updatePage.js +0 -0
- /package/dist/{bridge → protocol}/messages/updatePageResult.d.ts +0 -0
- /package/dist/{bridge → protocol}/messages/updatePageResult.js +0 -0
- /package/dist/{bridge → protocol}/pages/page.js +0 -0
- /package/dist/{bridge → protocol}/parent.d.ts +0 -0
- /package/dist/{bridge → protocol}/parent.js +0 -0
- /package/dist/{bridge → protocol}/theme.d.ts +0 -0
- /package/dist/{bridge → protocol}/theme.js +0 -0
- /package/dist/{bridge → protocol}/users/user.d.ts +0 -0
- /package/dist/{bridge → protocol}/users/user.js +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared wire contract for custom block sandboxes and hosts.
|
|
3
|
+
*
|
|
4
|
+
* This package contains only protocol data: message schemas, wire types, IDs,
|
|
5
|
+
* errors, manifests, and protocol-version constants. Runtime behavior belongs
|
|
6
|
+
* in either the author SDK or the host package.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./contrast.js";
|
|
9
|
+
export * from "./dataSources/dataSource.js";
|
|
10
|
+
export * from "./dataSources/dataSourcePage.js";
|
|
11
|
+
export * from "./dataSources/dataSourceValue.js";
|
|
12
|
+
export * from "./dataSources/dateValue.js";
|
|
13
|
+
export * from "./dataSources/errors.js";
|
|
14
|
+
export * from "./dataSources/propertySchema.js";
|
|
15
|
+
export * from "./dataSources/recordPointer.js";
|
|
16
|
+
export * from "./errors.js";
|
|
17
|
+
export * from "./ids.js";
|
|
18
|
+
export * from "./incomingType.js";
|
|
19
|
+
export * from "./manifest.js";
|
|
20
|
+
export * from "./messages/connect.js";
|
|
21
|
+
export * from "./messages/contrastModeChanged.js";
|
|
22
|
+
export * from "./messages/createPage.js";
|
|
23
|
+
export * from "./messages/createPageResult.js";
|
|
24
|
+
export * from "./messages/currentUserChanged.js";
|
|
25
|
+
export * from "./messages/dataSourcesChanged.js";
|
|
26
|
+
export * from "./messages/getPage.js";
|
|
27
|
+
export * from "./messages/getUser.js";
|
|
28
|
+
export * from "./messages/hostToSandbox.js";
|
|
29
|
+
export * from "./messages/init.js";
|
|
30
|
+
export * from "./messages/initResult.js";
|
|
31
|
+
export * from "./messages/invalidHostMessage.js";
|
|
32
|
+
export * from "./messages/invalidSandboxMessage.js";
|
|
33
|
+
export * from "./messages/listUsers.js";
|
|
34
|
+
export * from "./messages/pageChanged.js";
|
|
35
|
+
export * from "./messages/parentChanged.js";
|
|
36
|
+
export * from "./messages/queryDataSource.js";
|
|
37
|
+
export * from "./messages/queryDataSourceResult.js";
|
|
38
|
+
export * from "./messages/resize.js";
|
|
39
|
+
export * from "./messages/sandboxToHost.js";
|
|
40
|
+
export * from "./messages/themeChanged.js";
|
|
41
|
+
export * from "./messages/updatePage.js";
|
|
42
|
+
export * from "./messages/updatePageResult.js";
|
|
43
|
+
export * from "./pages/page.js";
|
|
44
|
+
export * from "./parent.js";
|
|
45
|
+
export * from "./protocolVersion.js";
|
|
46
|
+
export * from "./theme.js";
|
|
47
|
+
export * from "./users/user.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;0BAS7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,sBAAsB;;;;aAIjC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;aAKnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;aAGzB,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;IAG/B;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BASH,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contrastModeChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/contrastModeChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,2EAA2E;AAC3E,eAAO,MAAM,gCAAgC;;;aAG3C,CAAA;AAEF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CACrD,OAAO,gCAAgC,CACvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPage.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/createPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;0BAKzC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CACnD,OAAO,8BAA8B,CACrC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;;0BAMjC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAClD,OAAO,sBAAsB,CAC7B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAOlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPageResult.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/createPageResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAK9E,eAAO,MAAM,oCAAoC,2BAAa,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAC9D,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,0BAA0B,GAC1B,yBAAyB,GACzB,sBAAsB,GACtB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,wBAAwB,CAC1B,CAAA;AAED,MAAM,MAAM,8BAA8B,GACzC,oBAAoB,CAAC,8BAA8B,CAAC,CAAA;AAErD,eAAO,MAAM,oCAAoC;;;;aAI/C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;IAKxC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAS9B,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAClD,OAAO,6BAA6B,CACpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currentUserChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/currentUserChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;aAG1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CACpD,OAAO,+BAA+B,CACtC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
/**
|
|
3
|
-
* Message sent by the host whenever the custom block's data
|
|
3
|
+
* Message sent by the host whenever the custom block's data source mapping changes (e.g. a key is
|
|
4
4
|
* added, removed, or remapped). The SDK replaces its list of configured data sources but keeps any
|
|
5
5
|
* in-flight `useDataSource` query state for keys that still exist.
|
|
6
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSourcesChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/dataSourcesChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAK1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CACpD,OAAO,+BAA+B,CACtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { notionDataSourceBindingsSchema } from "../dataSources/dataSource.js";
|
|
3
3
|
/**
|
|
4
|
-
* Message sent by the host whenever the custom block's data
|
|
4
|
+
* Message sent by the host whenever the custom block's data source mapping changes (e.g. a key is
|
|
5
5
|
* added, removed, or remapped). The SDK replaces its list of configured data sources but keeps any
|
|
6
6
|
* in-flight `useDataSource` query state for keys that still exist.
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPage.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/getPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAM9E,eAAO,MAAM,iCAAiC,2BAAa,CAAA;AAE3D,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,CAC7D,iBAAiB,GAAG,oBAAoB,CACxC,CAAA;AAED,MAAM,MAAM,2BAA2B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAA;AAElD,eAAO,MAAM,iCAAiC;;;;aAI5C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;aAI/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAarC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAC/C,OAAO,0BAA0B,CACjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAK9E,eAAO,MAAM,iCAAiC,2BAAa,CAAA;AAE3D,MAAM,MAAM,2BAA2B,GACtC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAExC,MAAM,MAAM,2BAA2B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAA;AAElD,eAAO,MAAM,iCAAiC;;;;aAI5C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;aAI/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;0BAarC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAC/C,OAAO,0BAA0B,CACjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostToSandbox.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/
|
|
1
|
+
{"version":3,"file":"hostToSandbox.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/hostToSandbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAerC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAC/C,OAAO,0BAA0B,CACjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAO9E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAIrE,eAAO,MAAM,8BAA8B,2BAAa,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CACxD,sBAAsB,GACtB,kBAAkB,GAClB,0BAA0B,GAC1B,8BAA8B,GAC9B,qBAAqB,GACrB,0BAA0B,GAC1B,6BAA6B,GAC7B,yBAAyB,GACzB,0BAA0B,GAC1B,0BAA0B,CAC5B,CAAA;AAED,MAAM,MAAM,wBAAwB,GACnC,oBAAoB,CAAC,wBAAwB,CAAC,CAAA;AAE/C;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAC3C,wBAAwB,GACxB,8BAA8B,GAC9B,oBAAoB,CAAC,eAAe,GAAG,cAAc,CAAC,CAAA;AAEzD,MAAM,MAAM,kCAAkC,GAC7C,oBAAoB,CAAC,kCAAkC,CAAC,CAAA;AAEzD,eAAO,MAAM,8BAA8B;;;;aAIzC,CAAA;AAEF,qBAAa,8BACZ,SAAQ,KACR,YAAW,oBAAoB;gBAEnB,KAAK,EAAE,kCAAkC;IAOrD,IAAI,EAAE,kCAAkC,CAAA;IACxC,WAAW,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAuB5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initResult.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/initResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAI9E,eAAO,MAAM,oCAAoC,2BAAa,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GACzC,oBAAoB,CAAC,uBAAuB,CAAC,CAAA;AAE9C,MAAM,MAAM,8BAA8B,GACzC,oBAAoB,CAAC,8BAA8B,CAAC,CAAA;AAErD,eAAO,MAAM,oCAAoC;;;;aAI/C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;0BAYlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidHostMessage.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/invalidHostMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;IAEpC;;OAEG;;aAEF,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidSandboxMessage.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/invalidSandboxMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;IAEvC;;OAEG;;aAEF,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAChD,OAAO,2BAA2B,CAClC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listUsers.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/listUsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAK9E,eAAO,MAAM,mCAAmC,2BAAa,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GACxC,oBAAoB,CAAC,mBAAmB,CAAC,CAAA;AAE1C,MAAM,MAAM,6BAA6B,GACxC,oBAAoB,CAAC,6BAA6B,CAAC,CAAA;AAEpD,eAAO,MAAM,mCAAmC;;;;aAI9C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;aAKjC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAavC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CACjD,OAAO,4BAA4B,CACnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/pageChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;aAGnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parentChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/parentChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;aAGrC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAC/C,OAAO,0BAA0B,CACjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryDataSource.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/queryDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;IAExC,0DAA0D;;IAE1D,kDAAkD;;IAElD,iEAAiE;;aAEhE,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CACjD,OAAO,4BAA4B,CACnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryDataSourceResult.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/queryDataSourceResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAI9E,eAAO,MAAM,yCAAyC,2BAAa,CAAA;AAEnE,MAAM,MAAM,mCAAmC,GAAG,oBAAoB,CACnE,0BAA0B,GAC1B,yBAAyB,GACzB,sBAAsB,CACxB,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC9C,oBAAoB,CAAC,mCAAmC,CAAC,CAAA;AAE1D,eAAO,MAAM,yCAAyC;;;;aAIpD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAc7C,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CACvD,OAAO,kCAAkC,CACzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;aAG9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandboxToHost.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/
|
|
1
|
+
{"version":3,"file":"sandboxToHost.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/sandboxToHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAWrC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAC/C,OAAO,0BAA0B,CACjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeChanged.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/themeChanged.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;aAGpC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAC9C,OAAO,yBAAyB,CAChC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePage.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/updatePage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAQlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePageResult.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/messages/updatePageResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAK9E,eAAO,MAAM,oCAAoC,2BAAa,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAC9D,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,0BAA0B,GAC1B,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,wBAAwB,CAC1B,CAAA;AAED,MAAM,MAAM,8BAA8B,GACzC,oBAAoB,CAAC,8BAA8B,CAAC,CAAA;AAErD,eAAO,MAAM,oCAAoC;;;;aAI/C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAaxC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAClD,OAAO,6BAA6B,CACpC,CAAA"}
|
|
@@ -302,7 +302,7 @@ type WithOptionalPropertyId<T> = T extends {
|
|
|
302
302
|
id?: string;
|
|
303
303
|
} : never;
|
|
304
304
|
/**
|
|
305
|
-
* Public SDK page property write input. Keys may be raw property IDs or data
|
|
305
|
+
* Public SDK page property write input. Keys may be raw property IDs or data source
|
|
306
306
|
* property keys. `id` is optional because the SDK resolves the final raw property ID
|
|
307
307
|
* from the map key before sending the bridge message.
|
|
308
308
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/pages/page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,qBAAqB;;IAEjC;;;;OAIG;;;;;;;;;;;;;;;;;aAEF,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;0BAMtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAChD,OAAO,2BAA2B,CAClC,CAAA;AAED,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,eAAO,MAAM,2BAA2B;;;;;;;aAOtC,CAAA;AACF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;;;aAMjC,CAAA;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;0BAK/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,eAAO,MAAM,qBAAqB;;;;;;;;;;;0BAGhC,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,C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ACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to ensure that the host and client are using the same version of the bridge protocol. A
|
|
3
|
+
* single host needs to support multiple custom blocks built with different versions of the bridge
|
|
4
|
+
* protocol. Increment this number any time a breaking change is made to the bridge protocol.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CUSTOM_BLOCK_BRIDGE_PROTOCOL_VERSION = 3;
|
|
7
|
+
//# sourceMappingURL=protocolVersion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolVersion.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/protocolVersion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,IAAI,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to ensure that the host and client are using the same version of the bridge protocol. A
|
|
3
|
+
* single host needs to support multiple custom blocks built with different versions of the bridge
|
|
4
|
+
* protocol. Increment this number any time a breaking change is made to the bridge protocol.
|
|
5
|
+
*/
|
|
6
|
+
export const CUSTOM_BLOCK_BRIDGE_PROTOCOL_VERSION = 3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,iBAAiB,gDAAgC,CAAA;AAE9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/custom-blocks/custom-blocks/protocol/src/users/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,MAAM,CAAA;AAE9C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IACnC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAE,cAAc,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;aAS3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE/D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;aAO/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* React entrypoint for `@notionhq/custom-blocks/react`.
|
|
3
3
|
*
|
|
4
4
|
* Exposes only the React surface — components and hooks. Framework-neutral
|
|
5
|
-
* values and types (clients, manifest/data
|
|
5
|
+
* values and types (clients, manifest/data source types, etc.) live on the
|
|
6
6
|
* `@notionhq/custom-blocks` entrypoint and are intentionally NOT re-exported
|
|
7
7
|
* here, so the two public surfaces stay disjoint.
|
|
8
8
|
*/
|
package/dist/react/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* React entrypoint for `@notionhq/custom-blocks/react`.
|
|
3
3
|
*
|
|
4
4
|
* Exposes only the React surface — components and hooks. Framework-neutral
|
|
5
|
-
* values and types (clients, manifest/data
|
|
5
|
+
* values and types (clients, manifest/data source types, etc.) live on the
|
|
6
6
|
* `@notionhq/custom-blocks` entrypoint and are intentionally NOT re-exported
|
|
7
7
|
* here, so the two public surfaces stay disjoint.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalonePreview.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/standalonePreview.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"standalonePreview.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/standalonePreview.ts"],"names":[],"mappings":"AAWA,wBAAgB,0BAA0B,SAuBzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DEFAULT_CONTRAST_MODE } from "../protocol/contrast.js";
|
|
2
|
+
import { notionBlockIdSchema, notionPageIdSchema, } from "../protocol/ids.js";
|
|
1
3
|
import * as v from "valibot";
|
|
2
|
-
import { DEFAULT_CONTRAST_MODE } from "../bridge/contrast.js";
|
|
3
|
-
import { notionBlockIdSchema, notionPageIdSchema } from "../bridge/ids.js";
|
|
4
4
|
import { customBlockHost } from "../bridge/sandboxClient.js";
|
|
5
5
|
const previewBlockId = v.parse(notionBlockIdSchema, "");
|
|
6
6
|
const previewPageId = v.parse(notionPageIdSchema, "");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CustomBlockInitializationError } from "../
|
|
1
|
+
import type { CustomBlockInitializationError } from "../protocol/messages/init.js";
|
|
2
2
|
import { type CustomBlockInitPayload, type InitCustomBlockOptions } from "../init.js";
|
|
3
3
|
/**
|
|
4
4
|
* Discriminated state returned by {@link useCustomBlockInit}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomBlockInit.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/useCustomBlockInit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCustomBlockInit.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/useCustomBlockInit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAA;AAEvG,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAE3B,MAAM,YAAY,CAAA;AAEnB;;;;;;;;;GASG;AACH,MAAM,MAAM,wBAAwB,GACjC;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACrC;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,8BAA8B,CAAA;CAAE,GAC1D;IAAE,QAAQ,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAAA;AAExE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,CAAC,EAAE,sBAAsB,GAC3B,wBAAwB,CA2B1B"}
|
|
@@ -2,7 +2,7 @@ import type { UseDataSourceOptions, UseDataSourceResult } from "../types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Reads from the data source mapped to the given semantic `key`.
|
|
4
4
|
*
|
|
5
|
-
* @param key - The semantic data
|
|
5
|
+
* @param key - The semantic data source key the block is wired to (e.g. `"people"`).
|
|
6
6
|
* @param options - Optional live snapshot options. `limit` defaults to 20 and
|
|
7
7
|
* is capped at 999.
|
|
8
8
|
*
|
|
@@ -4,7 +4,7 @@ import { useCustomBlockHost } from "./useHostState.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Reads from the data source mapped to the given semantic `key`.
|
|
6
6
|
*
|
|
7
|
-
* @param key - The semantic data
|
|
7
|
+
* @param key - The semantic data source key the block is wired to (e.g. `"people"`).
|
|
8
8
|
* @param options - Optional live snapshot options. `limit` defaults to 20 and
|
|
9
9
|
* is capped at 999.
|
|
10
10
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { NotionContrastMode } from "../
|
|
2
|
-
import type { NotionBlockId } from "../
|
|
3
|
-
import type { CustomBlockManifest } from "../
|
|
4
|
-
import type { CustomBlockPage } from "../
|
|
5
|
-
import type { NotionParent } from "../
|
|
6
|
-
import type { NotionTheme } from "../
|
|
7
|
-
import type { NotionUser } from "../
|
|
1
|
+
import type { NotionContrastMode } from "../protocol/contrast.js";
|
|
2
|
+
import type { NotionBlockId } from "../protocol/ids.js";
|
|
3
|
+
import type { CustomBlockManifest } from "../protocol/manifest.js";
|
|
4
|
+
import type { CustomBlockPage } from "../protocol/pages/page.js";
|
|
5
|
+
import type { NotionParent } from "../protocol/parent.js";
|
|
6
|
+
import type { NotionTheme } from "../protocol/theme.js";
|
|
7
|
+
import type { NotionUser } from "../protocol/users/user.js";
|
|
8
8
|
/**
|
|
9
9
|
* Returns this custom block's ID. This is stable throughout the block's lifetime.
|
|
10
10
|
*
|
|
@@ -66,13 +66,13 @@ export declare function useContrastMode(): NotionContrastMode;
|
|
|
66
66
|
export declare function useCurrentUser(): NotionUser;
|
|
67
67
|
/**
|
|
68
68
|
* Returns the authoritative manifest received from the host — the semantic
|
|
69
|
-
* data
|
|
69
|
+
* data source keys plus their declared `name`, `description`, and property declarations.
|
|
70
70
|
*
|
|
71
71
|
* Throws if called before `initCustomBlock` has resolved.
|
|
72
72
|
*
|
|
73
73
|
* This is the configuration the block declared, not host-resolved bindings: use
|
|
74
74
|
* `useDataSource(key)` for rows and resolved schema. Handy for enumerating the declared
|
|
75
|
-
* data
|
|
75
|
+
* data source keys (e.g. picking a default key, or rendering a key switcher).
|
|
76
76
|
*/
|
|
77
77
|
export declare function useManifest(): CustomBlockManifest;
|
|
78
78
|
//# sourceMappingURL=useRuntimeState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRuntimeState.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/useRuntimeState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRuntimeState.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/useRuntimeState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAA;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAA;AAIhF;;;;;;;GAOG;AACH,wBAAgB,UAAU,IAAI,aAAa,CAE1C;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,IAAI,YAAY,CAExC;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,IAAI,eAAe,CAEzC;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,IAAI,WAAW,CAEtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,kBAAkB,CAKpD;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,IAAI,UAAU,CAE3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,IAAI,mBAAmB,CAEjD"}
|
|
@@ -73,13 +73,13 @@ export function useCurrentUser() {
|
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Returns the authoritative manifest received from the host — the semantic
|
|
76
|
-
* data
|
|
76
|
+
* data source keys plus their declared `name`, `description`, and property declarations.
|
|
77
77
|
*
|
|
78
78
|
* Throws if called before `initCustomBlock` has resolved.
|
|
79
79
|
*
|
|
80
80
|
* This is the configuration the block declared, not host-resolved bindings: use
|
|
81
81
|
* `useDataSource(key)` for rows and resolved schema. Handy for enumerating the declared
|
|
82
|
-
* data
|
|
82
|
+
* data source keys (e.g. picking a default key, or rendering a key switcher).
|
|
83
83
|
*/
|
|
84
84
|
export function useManifest() {
|
|
85
85
|
return useSyncExternalStore(customBlock.subscribe, customBlock.getManifest);
|
package/dist/types.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import type { NotionCollectionSchema } from "./
|
|
2
|
-
import type { NotionDataSourcePage
|
|
3
|
-
import type { NotionPropertySchema } from "./
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
|
|
15
|
-
export type {
|
|
16
|
-
export type {
|
|
17
|
-
export type {
|
|
18
|
-
export type {
|
|
1
|
+
import type { NotionCollectionSchema } from "./protocol/dataSources/dataSource.js";
|
|
2
|
+
import type { NotionDataSourcePage } from "./protocol/dataSources/dataSourcePage.js";
|
|
3
|
+
import type { NotionPropertySchema } from "./protocol/dataSources/propertySchema.js";
|
|
4
|
+
import type { NotionDataSourceId } from "./protocol/ids.js";
|
|
5
|
+
import type { NotionCreatePagePosition } from "./protocol/messages/createPage.js";
|
|
6
|
+
import type { CustomBlockCreatePageErrorInfo } from "./protocol/messages/createPageResult.js";
|
|
7
|
+
import type { CustomBlockGetPageErrorInfo } from "./protocol/messages/getPage.js";
|
|
8
|
+
import type { CustomBlockGetUserErrorInfo } from "./protocol/messages/getUser.js";
|
|
9
|
+
import type { CustomBlockListUsersErrorInfo } from "./protocol/messages/listUsers.js";
|
|
10
|
+
import type { CustomBlockQueryDataSourceErrorInfo } from "./protocol/messages/queryDataSourceResult.js";
|
|
11
|
+
import type { CustomBlockUpdatePageErrorInfo } from "./protocol/messages/updatePageResult.js";
|
|
12
|
+
import type { NotionPage, NotionPageCover, NotionPageIcon, NotionPageId, NotionPagePropertyInputMap, NotionPagePropertyWriteMap } from "./protocol/pages/page.js";
|
|
13
|
+
import type { NotionUser, NotionUserList } from "./protocol/users/user.js";
|
|
14
|
+
export type { NotionDataSourcePageUpdateInput, NotionDataSourcePageUpdateResult, } from "./protocol/dataSources/dataSourcePage.js";
|
|
15
|
+
export type { CustomBlockErrorInfo } from "./protocol/errors.js";
|
|
16
|
+
export type { NotionDataSourceId, NotionSpaceId, } from "./protocol/ids.js";
|
|
17
|
+
export type { NotionPageId } from "./protocol/pages/page.js";
|
|
18
|
+
export type { NotionUser, NotionUserId, NotionUserList, } from "./protocol/users/user.js";
|
|
19
|
+
export type { CustomBlockCreatePageErrorInfo, CustomBlockGetPageErrorInfo, CustomBlockGetUserErrorInfo, CustomBlockListUsersErrorInfo, CustomBlockQueryDataSourceErrorInfo, CustomBlockUpdatePageErrorInfo, };
|
|
19
20
|
/**
|
|
20
21
|
* Return shape of `useDataSource`.
|
|
21
22
|
*
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAA;AACxG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAA;AAC1G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAA;AAC1G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yDAAyD,CAAA;AACvG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAA;AACnH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAA;AACvG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAA;AACvG,OAAO,KAAK,EAAE,6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B,CAAA;CAAE,CAAA;AAE1D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACzB;IACA,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,UAAU,CAAA;CACf,GACD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,8BAA8B,CAAA;CAAE,CAAA;AAE7D,MAAM,MAAM,cAAc,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,eAAe,GACxB;IACA,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,cAAc,CAAA;CACnB,GACD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,6BAA6B,CAAA;CAAE,CAAA;AAE5D,MAAM,MAAM,aAAa,GACtB;IACA,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,UAAU,CAAA;CACf,GACD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,2BAA2B,CAAA;CAAE,CAAA"}
|
package/dist/version.js
CHANGED
package/docs/block-location.md
CHANGED
|
@@ -46,7 +46,7 @@ For non-React renderers, use `customBlock.getParent()` after `initCustomBlock()`
|
|
|
46
46
|
To identify custom blocks in agent-owned instruction content:
|
|
47
47
|
|
|
48
48
|
```tsx
|
|
49
|
-
import { useParent } from "@notionhq/custom-blocks"
|
|
49
|
+
import { useParent } from "@notionhq/custom-blocks/react"
|
|
50
50
|
|
|
51
51
|
export function AgentInstructionBadge() {
|
|
52
52
|
const parent = useParent()
|
package/docs/data-sources.md
CHANGED
|
@@ -6,7 +6,7 @@ The mapping from those semantic keys to concrete Notion data sources is stored o
|
|
|
6
6
|
|
|
7
7
|
Use `ManifestDataSource`, `ManifestProperty`, and `ManifestIcon` when code needs the corresponding definition metadata types.
|
|
8
8
|
|
|
9
|
-
At runtime, your code references the semantic key and the SDK handles the lookup for you. Use `useDataSource(key)` for the rows themselves (it also exposes the resolved schema), and `useManifest()` when you need the declared data
|
|
9
|
+
At runtime, your code references the semantic key and the SDK handles the lookup for you. Use `useDataSource(key)` for the rows themselves (it also exposes the resolved schema), and `useManifest()` when you need the declared data source keys and their declarations (e.g. picking a default key, or rendering a key switcher). For non-React renderers, `customBlock.getManifest()` exposes the same manifest, but row querying is currently only exposed through the React `useDataSource` hook.
|
|
10
10
|
|
|
11
11
|
## Pages within a data source
|
|
12
12
|
|
package/docs/deployment.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Deployment and manifests
|
|
2
2
|
|
|
3
|
-
A custom block is a static web bundle — an `index.html` plus optional assets — that Notion loads into a sandboxed `<iframe>`, so the bundle needs to be hosted somewhere Notion can reach. Notion does that hosting: the block ships as part of a worker. Declare the block source and data
|
|
3
|
+
A custom block is a static web bundle — an `index.html` plus optional assets — that Notion loads into a sandboxed `<iframe>`, so the bundle needs to be hosted somewhere Notion can reach. Notion does that hosting: the block ships as part of a worker. Declare the block source and data source schema with `worker.customBlock(...)` in the worker's `src/index.ts`, deploy with `ntn workers deploy`, and Notion serves the built bundle. Serving the bundle from your own dev server is provided as a local-development fallback, not an officially supported deployment target.
|
|
4
4
|
|
|
5
5
|
The difference between the two paths is where the manifest lives:
|
|
6
6
|
|
package/docs/errors.md
CHANGED
|
@@ -39,8 +39,6 @@ Unlike request helpers, `initCustomBlock` rejects with `CustomBlockInitializatio
|
|
|
39
39
|
|
|
40
40
|
`CustomBlockInitializationErrorInfo` is the matching `{ code, message, isRetryable }` object type.
|
|
41
41
|
|
|
42
|
-
Host implementers use the narrower message-specific types: `CustomBlockInitErrorInfo` for `init.error` and `CustomBlockInitResultErrorInfo` for `initResult.error`.
|
|
43
|
-
|
|
44
42
|
See [Lifecycle and initialization](./lifecycle.md) for initialization-specific error codes.
|
|
45
43
|
|
|
46
44
|
## Handling errors
|
package/docs/lifecycle.md
CHANGED
|
@@ -79,17 +79,17 @@ The lower-level promise API. `<NotionCustomBlock>` and `useCustomBlockInit` both
|
|
|
79
79
|
|
|
80
80
|
### `CustomBlockInitializationError`
|
|
81
81
|
|
|
82
|
-
The
|
|
82
|
+
The `CustomBlockInitializationErrorCode` tells you where initialization failed:
|
|
83
83
|
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
84
|
+
- The host rejected initialization.
|
|
85
|
+
- The SDK could not apply the host's state.
|
|
86
|
+
- The SDK failed before the handshake completed, such as `not_in_iframe` or `init_timeout`.
|
|
87
87
|
|
|
88
88
|
All code types are open string unions, so keep a default branch. Use `isRetryable` to decide whether offering a retry makes sense, and treat `message` as display text rather than a stable identifier. See [Error handling](./errors.md) for the shared error contract.
|
|
89
89
|
|
|
90
90
|
### `customBlock`
|
|
91
91
|
|
|
92
|
-
Framework-neutral runtime APIs for renderers that do not use React hooks. `customBlock.getState()` returns a `CustomBlockState` snapshot that includes `theme` and `contrastMode` while hiding internal query cache details.
|
|
92
|
+
Framework-neutral runtime APIs for renderers that do not use React hooks. `customBlock.getState()` returns a `CustomBlockState` snapshot that includes `theme` and `contrastMode` while hiding internal query cache details. All getters that read host state — `getTheme`, `getContrastMode`, `getBlockId`, `getParent`, `getPage`, `getCurrentUser`, and `getManifest` — throw until `initCustomBlock()` resolves. `getManifest()` then returns the authoritative manifest supplied by the host.
|
|
93
93
|
|
|
94
94
|
`customBlock` covers runtime state and sizing. Row querying still goes through `useDataSource`, while imperative APIs such as `pages.*` and `users.*` are already framework-neutral functions.
|
|
95
95
|
|
package/docs/pages.md
CHANGED
|
@@ -33,7 +33,7 @@ if (result.status === "success") {
|
|
|
33
33
|
|
|
34
34
|
`parent` is the **destination for the new page**. It does not describe the custom block's own location.
|
|
35
35
|
|
|
36
|
-
- A data
|
|
36
|
+
- A data source parent creates a new row in that data source.
|
|
37
37
|
- A page parent creates a child page (subpage) inside that page.
|
|
38
38
|
|
|
39
39
|
The accepted shape is `CreatePageParent`:
|
|
@@ -49,13 +49,13 @@ Use `data_source_key` for a data source key declared in the custom block's manif
|
|
|
49
49
|
|
|
50
50
|
Use `page_id` when you want a subpage under a specific page. For example, `parent: { type: "page_id", page_id: page.id }` creates a child of the page returned by `usePage()`. Only page parents support `position`.
|
|
51
51
|
|
|
52
|
-
Use `data_source_id` when you already have a raw Notion data
|
|
52
|
+
Use `data_source_id` when you already have a raw Notion data source ID. In normal custom-block code, prefer `data_source_key` so the block uses its configured binding rather than a deployment-specific ID.
|
|
53
53
|
|
|
54
54
|
### Property keys
|
|
55
55
|
|
|
56
56
|
`properties` is a `NotionPagePropertyInputMap`. Two niceties versus the raw API when the create parent resolves to a configured data source:
|
|
57
57
|
|
|
58
|
-
- **Keys** can be either raw Notion property IDs _or_ the data
|
|
58
|
+
- **Keys** can be either raw Notion property IDs _or_ the data source property keys you declared in the manifest. The SDK resolves keys → IDs before forwarding the request. Semantic keys work for `parent.type: "data_source_key"` and for `parent.type: "data_source_id"` when that ID matches a data source delivered by `init` / `dataSourcesChanged`; use raw property IDs for `page_id` parents or unmapped data sources.
|
|
59
59
|
- **Values** (`NotionPagePropertyInputValue`) may omit `id` — the SDK fills in the final raw ID for you.
|
|
60
60
|
|
|
61
61
|
So if your manifest declares `title` and `dueDate`, you can write them by name (as in the example above) instead of looking up the raw IDs.
|
|
@@ -101,7 +101,7 @@ const result = await pages.update({
|
|
|
101
101
|
});
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
The `properties` map (a `NotionPagePropertyWriteMap`) is keyed by **raw Notion property ID**, and each value must repeat that ID as its own `id` field — semantic data
|
|
104
|
+
The `properties` map (a `NotionPagePropertyWriteMap`) is keyed by **raw Notion property ID**, and each value must repeat that ID as its own `id` field — semantic data source keys aren't accepted here. To update a row by configured custom-block key without writing out the raw IDs, use the `update` helper on the row returned from `useDataSource` instead; the SDK handles the key → ID resolution for you.
|
|
105
105
|
|
|
106
106
|
If you call `pages.update` with no fields to change, it short-circuits and resolves with `{ status: "error", error: { code: "invalid_page_update", message: "updatePage requires at least one of: properties, icon, cover, archived.", isRetryable: false } }` — no request is sent.
|
|
107
107
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notionhq/custom-blocks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,10 +23,6 @@
|
|
|
23
23
|
"import": "./dist/react/index.js",
|
|
24
24
|
"types": "./dist/react/index.d.ts"
|
|
25
25
|
},
|
|
26
|
-
"./host": {
|
|
27
|
-
"import": "./dist/host.js",
|
|
28
|
-
"types": "./dist/host.d.ts"
|
|
29
|
-
},
|
|
30
26
|
"./vite": {
|
|
31
27
|
"import": "./vite-plugin/index.js",
|
|
32
28
|
"types": "./vite-plugin/index.d.ts"
|
|
@@ -37,12 +33,11 @@
|
|
|
37
33
|
},
|
|
38
34
|
"scripts": {
|
|
39
35
|
"test": "vitest run --environment jsdom",
|
|
40
|
-
"typecheck": "tsc --project tsconfig.json"
|
|
36
|
+
"typecheck": "tsc --project tsconfig.json && tsc --noEmit --project tsconfig.cli.json"
|
|
41
37
|
},
|
|
42
38
|
"files": [
|
|
43
39
|
"src",
|
|
44
40
|
"bin",
|
|
45
|
-
"HOST.md",
|
|
46
41
|
"docs",
|
|
47
42
|
"vite-plugin",
|
|
48
43
|
"dist"
|
|
@@ -57,6 +52,7 @@
|
|
|
57
52
|
},
|
|
58
53
|
"devDependencies": {
|
|
59
54
|
"@testing-library/react": "^16.3.2",
|
|
55
|
+
"@types/node": "^25.6.0",
|
|
60
56
|
"@types/react": "^19.2.14",
|
|
61
57
|
"@types/react-dom": "^19.2.3",
|
|
62
58
|
"jsdom": "^29.1.0",
|