@notionhq/custom-blocks 0.3.4 → 0.4.0
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 +2 -0
- package/dist/bridge/SandboxBridge.d.ts +18 -516
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +88 -753
- package/dist/bridge/getBridge.d.ts +3 -0
- package/dist/bridge/getBridge.d.ts.map +1 -0
- package/dist/bridge/getBridge.js +8 -0
- package/dist/bridge/{SandboxInitialization.d.ts → initialization/SandboxInitialization.d.ts} +5 -6
- package/dist/bridge/initialization/SandboxInitialization.d.ts.map +1 -0
- package/dist/bridge/{SandboxInitialization.js → initialization/SandboxInitialization.js} +6 -12
- package/dist/bridge/requests.d.ts +35 -0
- package/dist/bridge/requests.d.ts.map +1 -0
- package/dist/bridge/requests.js +97 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/bridge.js +2 -2
- package/dist/context/applyContextMessage.d.ts +6 -0
- package/dist/context/applyContextMessage.d.ts.map +1 -0
- package/dist/context/applyContextMessage.js +35 -0
- package/dist/{bridge/appearance.d.ts → context/backgroundColors.d.ts} +1 -1
- package/dist/context/backgroundColors.d.ts.map +1 -0
- package/dist/context/getBlockId.d.ts +7 -0
- package/dist/context/getBlockId.d.ts.map +1 -0
- package/dist/context/getBlockId.js +8 -0
- package/dist/context/getContrastMode.d.ts +7 -0
- package/dist/context/getContrastMode.d.ts.map +1 -0
- package/dist/context/getContrastMode.js +8 -0
- package/dist/context/getInitializedHostState.d.ts +3 -0
- package/dist/context/getInitializedHostState.d.ts.map +1 -0
- package/dist/context/getInitializedHostState.js +8 -0
- package/dist/context/getPage.d.ts +7 -0
- package/dist/context/getPage.d.ts.map +1 -0
- package/dist/context/getPage.js +8 -0
- package/dist/context/getParent.d.ts +7 -0
- package/dist/context/getParent.d.ts.map +1 -0
- package/dist/context/getParent.js +8 -0
- package/dist/context/getTheme.d.ts +7 -0
- package/dist/context/getTheme.d.ts.map +1 -0
- package/dist/context/getTheme.js +8 -0
- package/dist/context/hostState.d.ts +15 -0
- package/dist/context/hostState.d.ts.map +1 -0
- package/dist/context/index.d.ts +42 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +41 -0
- package/dist/context/react/useBlockId.d.ts +11 -0
- package/dist/context/react/useBlockId.d.ts.map +1 -0
- package/dist/context/react/useBlockId.js +14 -0
- package/dist/context/react/useContrastMode.d.ts +11 -0
- package/dist/context/react/useContrastMode.d.ts.map +1 -0
- package/dist/context/react/useContrastMode.js +14 -0
- package/dist/context/react/usePage.d.ts +12 -0
- package/dist/context/react/usePage.d.ts.map +1 -0
- package/dist/context/react/usePage.js +15 -0
- package/dist/context/react/useParent.d.ts +12 -0
- package/dist/context/react/useParent.d.ts.map +1 -0
- package/dist/context/react/useParent.js +15 -0
- package/dist/context/react/useTheme.d.ts +11 -0
- package/dist/context/react/useTheme.d.ts.map +1 -0
- package/dist/context/react/useTheme.js +14 -0
- package/dist/context/subscribeToBlockId.d.ts +8 -0
- package/dist/context/subscribeToBlockId.d.ts.map +1 -0
- package/dist/context/subscribeToBlockId.js +8 -0
- package/dist/context/subscribeToContext.d.ts +12 -0
- package/dist/context/subscribeToContext.d.ts.map +1 -0
- package/dist/context/subscribeToContext.js +35 -0
- package/dist/context/subscribeToContrastMode.d.ts +8 -0
- package/dist/context/subscribeToContrastMode.d.ts.map +1 -0
- package/dist/context/subscribeToContrastMode.js +8 -0
- package/dist/context/subscribeToPage.d.ts +8 -0
- package/dist/context/subscribeToPage.d.ts.map +1 -0
- package/dist/context/subscribeToPage.js +8 -0
- package/dist/context/subscribeToParent.d.ts +8 -0
- package/dist/context/subscribeToParent.d.ts.map +1 -0
- package/dist/context/subscribeToParent.js +8 -0
- package/dist/context/subscribeToTheme.d.ts +8 -0
- package/dist/context/subscribeToTheme.d.ts.map +1 -0
- package/dist/context/subscribeToTheme.js +8 -0
- package/dist/context/syncDocumentAppearance.d.ts +14 -0
- package/dist/context/syncDocumentAppearance.d.ts.map +1 -0
- package/dist/context/syncDocumentAppearance.js +22 -0
- package/dist/dataSources/bridge/applyDataSourceBindings.d.ts +4 -0
- package/dist/dataSources/bridge/applyDataSourceBindings.d.ts.map +1 -0
- package/dist/dataSources/bridge/applyDataSourceBindings.js +17 -0
- package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts +17 -0
- package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts.map +1 -0
- package/dist/{bridge/dataSources/query.js → dataSources/bridge/resolveDataSourceQuery.js} +28 -18
- package/dist/dataSources/bridge/resolveDataSources.d.ts +15 -0
- package/dist/dataSources/bridge/resolveDataSources.d.ts.map +1 -0
- package/dist/{bridge/dataSources/resolve.js → dataSources/bridge/resolveDataSources.js} +10 -11
- package/dist/{bridge/dataSources → dataSources/bridge}/resolveSorts.d.ts +3 -3
- package/dist/dataSources/bridge/resolveSorts.d.ts.map +1 -0
- package/dist/{bridge/dataSources → dataSources/bridge}/resolveSorts.js +3 -3
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts +16 -0
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts.map +1 -0
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.js +19 -0
- package/dist/dataSources/createDataSourcePage.d.ts +4 -0
- package/dist/dataSources/createDataSourcePage.d.ts.map +1 -0
- package/dist/dataSources/createDataSourcePage.js +44 -0
- package/dist/dataSources/dataSourceInaccessibleError.d.ts +4 -0
- package/dist/dataSources/dataSourceInaccessibleError.d.ts.map +1 -0
- package/dist/dataSources/dataSourceInaccessibleError.js +9 -0
- package/dist/{bridge/dataSources/queryFilter.d.ts → dataSources/filters/resolveFilter.d.ts} +4 -4
- package/dist/dataSources/filters/resolveFilter.d.ts.map +1 -0
- package/dist/{bridge/dataSources/queryFilter.js → dataSources/filters/resolveFilter.js} +8 -4
- package/dist/dataSources/filters/types.d.ts +66 -0
- package/dist/dataSources/filters/types.d.ts.map +1 -0
- package/dist/dataSources/getDataSourcePage.d.ts +4 -0
- package/dist/dataSources/getDataSourcePage.d.ts.map +1 -0
- package/dist/dataSources/getDataSourcePage.js +18 -0
- package/dist/dataSources/index.d.ts +9 -0
- package/dist/dataSources/index.d.ts.map +1 -0
- package/dist/dataSources/index.js +8 -0
- package/dist/{bridge/dataSources → dataSources/properties}/resolvePropertyAddress.d.ts +1 -1
- package/dist/dataSources/properties/resolvePropertyAddress.d.ts.map +1 -0
- package/dist/{bridge/dataSources/resolveProperty.d.ts → dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts} +4 -4
- package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts.map +1 -0
- package/dist/{bridge/dataSources/resolveProperty.js → dataSources/properties/resolvePropertyWriteMapForDataSource.js} +2 -2
- package/dist/dataSources/queryDataSource.d.ts +3 -0
- package/dist/dataSources/queryDataSource.d.ts.map +1 -0
- package/dist/dataSources/queryDataSource.js +56 -0
- package/dist/dataSources/react/useDataSource.d.ts.map +1 -0
- package/dist/{react → dataSources/react}/useDataSource.js +2 -2
- package/dist/dataSources/resolvePageDataSource.d.ts +16 -0
- package/dist/dataSources/resolvePageDataSource.d.ts.map +1 -0
- package/dist/dataSources/resolvePageDataSource.js +43 -0
- package/dist/{bridge/dataSources/subscribe.d.ts → dataSources/subscribeToDataSource.d.ts} +3 -3
- package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -0
- package/dist/dataSources/subscribeToDataSource.js +109 -0
- package/dist/dataSources/types.d.ts +49 -0
- package/dist/dataSources/types.d.ts.map +1 -0
- package/dist/dataSources/types.js +1 -0
- package/dist/index.d.ts +39 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -7
- package/dist/initialization/NotInIframeError.d.ts +12 -0
- package/dist/initialization/NotInIframeError.d.ts.map +1 -0
- package/dist/{initTypes.js → initialization/NotInIframeError.js} +3 -3
- package/dist/initialization/getInitBindingError.d.ts +5 -0
- package/dist/initialization/getInitBindingError.d.ts.map +1 -0
- package/dist/initialization/getInitBindingError.js +26 -0
- package/dist/{init.d.ts → initialization/initCustomBlock.d.ts} +2 -3
- package/dist/initialization/initCustomBlock.d.ts.map +1 -0
- package/dist/{init.js → initialization/initCustomBlock.js} +2 -3
- package/dist/{react → initialization/react}/useCustomBlockInit.d.ts +2 -2
- package/dist/initialization/react/useCustomBlockInit.d.ts.map +1 -0
- package/dist/{react → initialization/react}/useCustomBlockInit.js +1 -1
- package/dist/initialization/resolveInitialState.d.ts +13 -0
- package/dist/initialization/resolveInitialState.d.ts.map +1 -0
- package/dist/initialization/resolveInitialState.js +28 -0
- package/dist/initialization/types.d.ts +20 -0
- package/dist/initialization/types.d.ts.map +1 -0
- package/dist/initialization/types.js +1 -0
- package/dist/layout/autoResize.d.ts.map +1 -0
- package/dist/{autoResize.js → layout/autoResize.js} +2 -2
- package/dist/layout/getInitialContentHeight.d.ts +2 -0
- package/dist/layout/getInitialContentHeight.d.ts.map +1 -0
- package/dist/layout/getInitialContentHeight.js +10 -0
- package/dist/layout/postResize.d.ts +2 -0
- package/dist/layout/postResize.d.ts.map +1 -0
- package/dist/layout/postResize.js +12 -0
- package/dist/manifest/getManifest.d.ts +7 -0
- package/dist/manifest/getManifest.d.ts.map +1 -0
- package/dist/manifest/getManifest.js +8 -0
- package/dist/manifest/react/useManifest.d.ts +15 -0
- package/dist/manifest/react/useManifest.d.ts.map +1 -0
- package/dist/manifest/react/useManifest.js +18 -0
- package/dist/{bridge → manifest}/readLocalManifest.d.ts +3 -3
- package/dist/manifest/readLocalManifest.d.ts.map +1 -0
- package/dist/{bridge → manifest}/readLocalManifest.js +2 -2
- package/dist/manifest/subscribeToManifest.d.ts +8 -0
- package/dist/manifest/subscribeToManifest.d.ts.map +1 -0
- package/dist/manifest/subscribeToManifest.js +8 -0
- package/dist/manifest/types.d.ts +6 -0
- package/dist/manifest/types.d.ts.map +1 -0
- package/dist/manifest/types.js +1 -0
- package/dist/navigation/index.d.ts +5 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +4 -0
- package/dist/navigation/openExternalUrl.d.ts +4 -0
- package/dist/navigation/openExternalUrl.d.ts.map +1 -0
- package/dist/navigation/openExternalUrl.js +6 -0
- package/dist/navigation/types.d.ts +4 -0
- package/dist/navigation/types.d.ts.map +1 -0
- package/dist/navigation/types.js +1 -0
- package/dist/pages/bridge/buildCreatePageRequest.d.ts +16 -0
- package/dist/pages/bridge/buildCreatePageRequest.d.ts.map +1 -0
- package/dist/pages/bridge/buildCreatePageRequest.js +38 -0
- package/dist/pages/bridge/getPageForDataSource.d.ts +9 -0
- package/dist/pages/bridge/getPageForDataSource.d.ts.map +1 -0
- package/dist/pages/bridge/getPageForDataSource.js +14 -0
- package/dist/pages/bridge/makeUpdatePageByKey.d.ts +8 -0
- package/dist/pages/bridge/makeUpdatePageByKey.d.ts.map +1 -0
- package/dist/{bridge/page.js → pages/bridge/makeUpdatePageByKey.js} +0 -12
- package/dist/pages/bridge/resolveCreatePageDestination.d.ts +24 -0
- package/dist/pages/bridge/resolveCreatePageDestination.d.ts.map +1 -0
- package/dist/pages/bridge/resolveCreatePageDestination.js +45 -0
- package/dist/pages/bridge/sendCreatePageRequest.d.ts +11 -0
- package/dist/pages/bridge/sendCreatePageRequest.d.ts.map +1 -0
- package/dist/pages/bridge/sendCreatePageRequest.js +13 -0
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts +86 -0
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts.map +1 -0
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.js +24 -0
- package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts +11 -0
- package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts.map +1 -0
- package/dist/pages/bridge/toNotionPageFromBridgePage.js +12 -0
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts +4 -0
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts.map +1 -0
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.js +86 -0
- package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts +4 -0
- package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts.map +1 -0
- package/dist/pages/bridge/updateNotionPageFromBridgePage.js +4 -0
- package/dist/pages/bridge/updatePage.d.ts +12 -0
- package/dist/pages/bridge/updatePage.d.ts.map +1 -0
- package/dist/pages/bridge/updatePage.js +75 -0
- package/dist/pages/createPage.d.ts +3 -0
- package/dist/pages/createPage.d.ts.map +1 -0
- package/dist/pages/createPage.js +31 -0
- package/dist/pages/getPage.d.ts +7 -0
- package/dist/pages/getPage.d.ts.map +1 -0
- package/dist/pages/getPage.js +11 -0
- package/dist/pages/index.d.ts +9 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/pages/index.js +8 -0
- package/dist/pages/makeNotionPage.d.ts +11 -0
- package/dist/pages/makeNotionPage.d.ts.map +1 -0
- package/dist/pages/makeNotionPage.js +34 -0
- package/dist/pages/openPage.d.ts +7 -0
- package/dist/pages/openPage.d.ts.map +1 -0
- package/dist/pages/openPage.js +8 -0
- package/dist/pages/parent.d.ts +7 -0
- package/dist/pages/parent.d.ts.map +1 -0
- package/dist/pages/parent.js +1 -0
- package/dist/pages/properties/getPropertyById.d.ts +6 -0
- package/dist/pages/properties/getPropertyById.d.ts.map +1 -0
- package/dist/pages/properties/getPropertyById.js +3 -0
- package/dist/pages/properties/getPropertyByKey.d.ts +9 -0
- package/dist/pages/properties/getPropertyByKey.d.ts.map +1 -0
- package/dist/pages/properties/getPropertyByKey.js +16 -0
- package/dist/pages/types.d.ts +206 -0
- package/dist/pages/types.d.ts.map +1 -0
- package/dist/pages/types.js +1 -0
- package/dist/protocol/{messages/updatePage.d.ts → compatibility/protocol3To5/bridgePage.d.ts} +39 -27
- package/dist/protocol/compatibility/protocol3To5/bridgePage.js +21 -0
- package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourcePage.js +1 -1
- package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourceValue.js +2 -2
- package/dist/protocol/context/containingPage.d.ts +31 -0
- package/dist/protocol/context/containingPage.js +18 -0
- package/dist/protocol/{messages → context/messages}/pageChanged.js +1 -1
- package/dist/protocol/{parent.d.ts → context/parent.d.ts} +12 -0
- package/dist/protocol/context/parent.js +31 -0
- package/dist/protocol/dataSources/bridgeArchiveStatus.d.ts +3 -0
- package/dist/protocol/dataSources/bridgeArchiveStatus.js +6 -0
- package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +160 -0
- package/dist/protocol/dataSources/bridgeDataSourceBinding.js +25 -0
- package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +144 -0
- package/dist/protocol/dataSources/bridgeDataSourceBindings.js +3 -0
- package/dist/protocol/dataSources/collectionPointer.d.ts +7 -0
- package/dist/protocol/dataSources/collectionPointer.js +7 -0
- package/dist/protocol/dataSources/collectionSchema.d.ts +140 -0
- package/dist/protocol/dataSources/collectionSchema.js +12 -0
- package/dist/protocol/dataSources/errors.d.ts +2 -2
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.d.ts +505 -0
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.js +8 -0
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.d.ts +253 -0
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.js +69 -0
- package/dist/protocol/dataSources/filters/bridgeDataSourceSort.d.ts +11 -0
- package/dist/protocol/dataSources/filters/bridgeDataSourceSort.js +8 -0
- package/dist/protocol/dataSources/filters/checkboxFilterOperator.d.ts +7 -0
- package/dist/protocol/dataSources/filters/checkboxFilterOperator.js +5 -0
- package/dist/protocol/dataSources/filters/containsFilterOperator.d.ts +13 -0
- package/dist/protocol/dataSources/filters/containsFilterOperator.js +9 -0
- package/dist/protocol/dataSources/filters/createdByFilterOperator.d.ts +17 -0
- package/dist/protocol/dataSources/filters/createdByFilterOperator.js +11 -0
- package/dist/protocol/dataSources/filters/dateFilterOperator.d.ts +47 -0
- package/dist/protocol/dataSources/filters/dateFilterOperator.js +73 -0
- package/dist/protocol/dataSources/filters/emptyOperator.d.ts +6 -0
- package/dist/protocol/dataSources/filters/emptyOperator.js +5 -0
- package/dist/protocol/dataSources/filters/numberFilterOperator.d.ts +19 -0
- package/dist/protocol/dataSources/filters/numberFilterOperator.js +11 -0
- package/dist/protocol/dataSources/filters/optionFilterOperator.d.ts +11 -0
- package/dist/protocol/dataSources/filters/optionFilterOperator.js +8 -0
- package/dist/protocol/dataSources/filters/peopleFilterOperator.d.ts +23 -0
- package/dist/protocol/dataSources/filters/peopleFilterOperator.js +11 -0
- package/dist/protocol/dataSources/filters/relationFilterOperator.d.ts +11 -0
- package/dist/protocol/dataSources/filters/relationFilterOperator.js +12 -0
- package/dist/protocol/dataSources/filters/statusFilterOperator.d.ts +15 -0
- package/dist/protocol/dataSources/filters/statusFilterOperator.js +7 -0
- package/dist/protocol/dataSources/filters/statusGroupFilterOperator.d.ts +9 -0
- package/dist/protocol/dataSources/filters/statusGroupFilterOperator.js +18 -0
- package/dist/protocol/dataSources/filters/stringOrStringArray.d.ts +2 -0
- package/dist/protocol/dataSources/filters/stringOrStringArray.js +5 -0
- package/dist/protocol/dataSources/filters/textFilterOperator.d.ts +19 -0
- package/dist/protocol/dataSources/filters/textFilterOperator.js +11 -0
- package/dist/protocol/dataSources/makeBridgeDataSourceBinding.d.ts +6 -0
- package/dist/protocol/dataSources/makeBridgeDataSourceBinding.js +6 -0
- package/dist/protocol/{messages → dataSources/messages}/dataSourcesChanged.d.ts +1 -4
- package/dist/protocol/{messages → dataSources/messages}/dataSourcesChanged.js +2 -2
- package/dist/protocol/{messages/queryDataSourceResult.d.ts → dataSources/messages/queryDataSource.d.ts} +540 -14
- package/dist/protocol/{messages/queryDataSourceResult.js → dataSources/messages/queryDataSource.js} +24 -2
- package/dist/protocol/dataSources/notionDataSource.d.ts +301 -0
- package/dist/protocol/dataSources/notionDataSource.js +38 -0
- package/dist/protocol/dataSources/{propertySchema.d.ts → properties/propertySchema.d.ts} +3 -7
- package/dist/protocol/dataSources/{propertySchema.js → properties/propertySchema.js} +1 -3
- package/dist/protocol/dataSources/resolveDataSourceBinding.d.ts +32 -0
- package/dist/protocol/dataSources/resolveDataSourceBinding.js +33 -0
- package/dist/protocol/{messages → handshake}/connect.d.ts +16 -1
- package/dist/protocol/{messages → handshake}/connect.js +2 -2
- package/dist/protocol/{messages → handshake}/init.d.ts +18 -6
- package/dist/protocol/{messages → handshake}/init.js +10 -10
- package/dist/protocol/{messages → handshake}/initResult.d.ts +1 -1
- package/dist/protocol/{messages → handshake}/isInitHandshakeMessage.d.ts +2 -2
- package/dist/protocol/icons.d.ts +17 -0
- package/dist/protocol/icons.js +27 -0
- package/dist/protocol/index.d.ts +154 -54
- package/dist/protocol/index.js +76 -54
- package/dist/protocol/manifest/grants.d.ts +48 -0
- package/dist/protocol/manifest/grants.js +19 -0
- package/dist/protocol/{manifest.d.ts → manifest/manifest.d.ts} +38 -5
- package/dist/protocol/{manifest.js → manifest/manifest.js} +14 -1
- package/dist/protocol/messages/hostToSandbox.d.ts +115 -81
- package/dist/protocol/messages/hostToSandbox.js +15 -15
- package/dist/protocol/messages/invalidHostMessage.d.ts +2 -0
- package/dist/protocol/messages/invalidHostMessage.js +2 -0
- package/dist/protocol/messages/invalidSandboxMessage.d.ts +2 -0
- package/dist/protocol/messages/invalidSandboxMessage.js +2 -0
- package/dist/protocol/messages/messagePayload.d.ts +1 -1
- package/dist/protocol/messages/sandboxToHost.d.ts +329 -18
- package/dist/protocol/messages/sandboxToHost.js +12 -12
- package/dist/protocol/{messages → navigation}/openExternalUrl.d.ts +2 -2
- package/dist/protocol/{messages/createPage.d.ts → pages/bridgePage.d.ts} +72 -69
- package/dist/protocol/pages/bridgePage.js +24 -0
- package/dist/protocol/pages/makeBridgePage.d.ts +6 -0
- package/dist/protocol/pages/makeBridgePage.js +12 -0
- package/dist/protocol/{messages/createPageResult.d.ts → pages/messages/createPage.d.ts} +593 -19
- package/dist/protocol/pages/messages/createPage.js +106 -0
- package/dist/protocol/{messages → pages/messages}/getPage.d.ts +23 -19
- package/dist/protocol/{messages → pages/messages}/getPage.js +4 -3
- package/dist/protocol/{messages → pages/messages}/openPage.d.ts +2 -2
- package/dist/protocol/{messages → pages/messages}/openPage.js +1 -1
- package/dist/protocol/{messages/updatePageResult.d.ts → pages/messages/updatePage.d.ts} +295 -19
- package/dist/protocol/{messages/updatePageResult.js → pages/messages/updatePage.js} +26 -2
- package/dist/protocol/pages/pageAppearance.d.ts +97 -0
- package/dist/protocol/pages/pageAppearance.js +43 -0
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +425 -0
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.js +4 -0
- package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +213 -0
- package/dist/protocol/pages/properties/bridgePagePropertyValue.js +139 -0
- package/dist/protocol/pages/properties/dateInput.d.ts +45 -0
- package/dist/protocol/pages/properties/dateInput.js +23 -0
- package/dist/protocol/pages/properties/fileInput.d.ts +16 -0
- package/dist/protocol/pages/properties/fileInput.js +16 -0
- package/dist/protocol/pages/properties/metadataActor.d.ts +6 -0
- package/dist/protocol/pages/properties/metadataActor.js +7 -0
- package/dist/protocol/pages/properties/placeInput.d.ts +10 -0
- package/dist/protocol/pages/properties/placeInput.js +10 -0
- package/dist/protocol/pages/properties/relationInput.d.ts +5 -0
- package/dist/protocol/pages/properties/relationInput.js +2 -0
- package/dist/protocol/pages/properties/richText.d.ts +3 -0
- package/dist/protocol/pages/properties/richText.js +2 -0
- package/dist/protocol/pages/properties/selectOption.d.ts +13 -0
- package/dist/protocol/pages/properties/selectOption.js +16 -0
- package/dist/protocol/pages/properties/userInput.d.ts +10 -0
- package/dist/protocol/pages/properties/userInput.js +13 -0
- package/dist/protocol/users/bridgeUser.d.ts +12 -0
- package/dist/protocol/users/bridgeUser.js +12 -0
- package/dist/protocol/users/{user.d.ts → bridgeUserList.d.ts} +2 -15
- package/dist/protocol/users/bridgeUserList.js +10 -0
- package/dist/protocol/users/makeBridgeUser.d.ts +6 -0
- package/dist/protocol/users/makeBridgeUser.js +11 -0
- package/dist/protocol/{messages → users/messages}/currentUserChanged.js +2 -2
- package/dist/protocol/{messages → users/messages}/getUser.d.ts +2 -2
- package/dist/protocol/{messages → users/messages}/getUser.js +3 -2
- package/dist/protocol/{messages → users/messages}/listUsers.d.ts +2 -2
- package/dist/protocol/{messages → users/messages}/listUsers.js +2 -2
- package/dist/protocol/users/userId.d.ts +3 -0
- package/dist/protocol/users/userId.js +2 -0
- package/dist/protocol/utils/errors.d.ts +20 -0
- package/dist/protocol/utils/errors.js +11 -0
- package/dist/protocol/utils/nullableStringSchema.d.ts +2 -0
- package/dist/protocol/utils/nullableStringSchema.js +2 -0
- package/dist/protocol/{protocolVersion.d.ts → utils/protocolVersion.d.ts} +2 -1
- package/dist/protocol/{protocolVersion.js → utils/protocolVersion.js} +3 -1
- package/dist/protocol/utils/readRequestId.d.ts +2 -0
- package/dist/protocol/utils/readRequestId.js +7 -0
- package/dist/react/DebugMessageLog.d.ts.map +1 -1
- package/dist/react/DebugMessageLog.js +3 -2
- package/dist/react/InitializationErrorDetails.d.ts +7 -0
- package/dist/react/InitializationErrorDetails.d.ts.map +1 -0
- package/dist/react/InitializationErrorDetails.js +9 -0
- package/{src/react/NotionCustomBlock.css → dist/react/InitializationErrorScreen.css} +0 -20
- package/dist/react/MissingHostCommand.d.ts +2 -0
- package/dist/react/MissingHostCommand.d.ts.map +1 -0
- package/dist/react/MissingHostCommand.js +20 -0
- package/dist/react/MissingHostScreen.css +85 -0
- package/dist/react/MissingHostScreen.d.ts +7 -0
- package/dist/react/MissingHostScreen.d.ts.map +1 -0
- package/dist/react/MissingHostScreen.js +7 -0
- package/dist/react/NotionCustomBlock.d.ts +2 -2
- package/dist/react/NotionCustomBlock.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.js +14 -35
- package/dist/react/NotionTokenScope.d.ts.map +1 -1
- package/dist/react/NotionTokenScope.js +2 -1
- package/dist/react/index.d.ts +14 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +11 -5
- package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts +4 -0
- package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts.map +1 -0
- package/dist/users/bridge/toNotionUserFromBridgeUser.js +10 -0
- package/dist/users/getCurrentUser.d.ts +7 -0
- package/dist/users/getCurrentUser.d.ts.map +1 -0
- package/dist/users/getCurrentUser.js +8 -0
- package/dist/users/getUser.d.ts +7 -0
- package/dist/users/getUser.d.ts.map +1 -0
- package/dist/users/getUser.js +12 -0
- package/dist/users/index.d.ts +7 -0
- package/dist/users/index.d.ts.map +1 -0
- package/dist/users/index.js +6 -0
- package/dist/users/listUsers.d.ts +6 -0
- package/dist/users/listUsers.d.ts.map +1 -0
- package/dist/users/listUsers.js +21 -0
- package/dist/users/react/useCurrentUser.d.ts +12 -0
- package/dist/users/react/useCurrentUser.d.ts.map +1 -0
- package/dist/users/react/useCurrentUser.js +15 -0
- package/dist/users/subscribeToCurrentUser.d.ts +8 -0
- package/dist/users/subscribeToCurrentUser.d.ts.map +1 -0
- package/dist/users/subscribeToCurrentUser.js +8 -0
- package/dist/users/types.d.ts +41 -0
- package/dist/users/types.d.ts.map +1 -0
- package/dist/users/types.js +1 -0
- package/dist/utils/notifyListener.d.ts.map +1 -0
- package/dist/utils/typeUtils.d.ts.map +1 -0
- package/dist/utils/typeUtils.js +1 -0
- package/dist/{utils.d.ts → utils/unreachable.d.ts} +1 -1
- package/dist/utils/unreachable.d.ts.map +1 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/{version.js → utils/version.js} +1 -1
- package/docs/block-location.md +3 -2
- package/docs/data-sources.md +44 -36
- package/docs/deployment.md +2 -1
- package/docs/errors.md +51 -0
- package/docs/grants.md +127 -0
- package/docs/lifecycle.md +6 -6
- package/docs/pages.md +45 -35
- package/docs/users.md +3 -0
- package/package.json +1 -1
- package/src/bridge/SandboxBridge.ts +113 -997
- package/src/bridge/getBridge.ts +10 -0
- package/src/bridge/{SandboxInitialization.ts → initialization/SandboxInitialization.ts} +11 -21
- package/src/bridge/requests.ts +138 -0
- package/src/bridge.ts +2 -2
- package/src/context/applyContextMessage.ts +55 -0
- package/src/context/getBlockId.ts +10 -0
- package/src/context/getContrastMode.ts +10 -0
- package/src/context/getInitializedHostState.ts +14 -0
- package/src/context/getPage.ts +10 -0
- package/src/context/getParent.ts +10 -0
- package/src/context/getTheme.ts +10 -0
- package/src/context/hostState.ts +17 -0
- package/src/context/index.ts +42 -0
- package/src/context/react/useBlockId.ts +16 -0
- package/src/context/react/useContrastMode.ts +16 -0
- package/src/context/react/usePage.ts +17 -0
- package/src/context/react/useParent.ts +17 -0
- package/src/context/react/useTheme.ts +16 -0
- package/src/context/subscribeToBlockId.ts +13 -0
- package/src/context/subscribeToContext.ts +42 -0
- package/src/context/subscribeToContrastMode.ts +13 -0
- package/src/context/subscribeToPage.ts +13 -0
- package/src/context/subscribeToParent.ts +13 -0
- package/src/context/subscribeToTheme.ts +13 -0
- package/src/context/syncDocumentAppearance.ts +31 -0
- package/src/dataSources/bridge/applyDataSourceBindings.ts +25 -0
- package/src/{bridge/dataSources/query.ts → dataSources/bridge/resolveDataSourceQuery.ts} +47 -42
- package/src/dataSources/bridge/resolveDataSources.ts +44 -0
- package/src/{bridge/dataSources → dataSources/bridge}/resolveSorts.ts +8 -10
- package/src/dataSources/bridge/reuseDataSourcesForUnchangedBindings.ts +32 -0
- package/src/dataSources/createDataSourcePage.ts +50 -0
- package/src/dataSources/dataSourceInaccessibleError.ts +13 -0
- package/src/{bridge/dataSources/queryFilter.ts → dataSources/filters/resolveFilter.ts} +14 -16
- package/src/dataSources/filters/types.ts +77 -0
- package/src/dataSources/getDataSourcePage.ts +24 -0
- package/src/dataSources/index.ts +9 -0
- package/src/{bridge/dataSources → dataSources/properties}/resolvePropertyAddress.ts +1 -1
- package/src/{bridge/dataSources/resolveProperty.ts → dataSources/properties/resolvePropertyWriteMapForDataSource.ts} +5 -5
- package/src/dataSources/queryDataSource.ts +62 -0
- package/src/{react → dataSources/react}/useDataSource.ts +2 -2
- package/src/dataSources/resolvePageDataSource.ts +57 -0
- package/src/dataSources/subscribeToDataSource.ts +143 -0
- package/src/dataSources/types.ts +56 -0
- package/src/index.ts +74 -68
- package/src/initialization/NotInIframeError.ts +23 -0
- package/src/initialization/getInitBindingError.ts +39 -0
- package/src/initialization/initCustomBlock.ts +10 -0
- package/src/{react → initialization/react}/useCustomBlockInit.ts +3 -2
- package/src/initialization/resolveInitialState.ts +37 -0
- package/src/initialization/types.ts +20 -0
- package/src/{autoResize.ts → layout/autoResize.ts} +2 -2
- package/src/layout/getInitialContentHeight.ts +10 -0
- package/src/layout/postResize.ts +15 -0
- package/src/manifest/getManifest.ts +10 -0
- package/src/manifest/react/useManifest.ts +20 -0
- package/src/{bridge → manifest}/readLocalManifest.ts +5 -7
- package/src/manifest/subscribeToManifest.ts +13 -0
- package/src/manifest/types.ts +7 -0
- package/src/navigation/index.ts +5 -0
- package/src/navigation/openExternalUrl.ts +13 -0
- package/src/navigation/types.ts +10 -0
- package/src/pages/bridge/buildCreatePageRequest.ts +49 -0
- package/src/pages/bridge/getPageForDataSource.ts +29 -0
- package/src/pages/bridge/makeUpdatePageByKey.ts +25 -0
- package/src/pages/bridge/resolveCreatePageDestination.ts +75 -0
- package/src/pages/bridge/sendCreatePageRequest.ts +26 -0
- package/src/pages/bridge/toNotionPageFieldsFromBridgePage.ts +27 -0
- package/src/pages/bridge/toNotionPageFromBridgePage.ts +22 -0
- package/src/pages/bridge/toNotionPagePropertyFromBridgeProperty.ts +91 -0
- package/src/pages/bridge/updateNotionPageFromBridgePage.ts +10 -0
- package/src/pages/bridge/updatePage.ts +110 -0
- package/src/pages/createPage.ts +35 -0
- package/src/pages/getPage.ts +14 -0
- package/src/pages/index.ts +9 -0
- package/src/pages/makeNotionPage.ts +55 -0
- package/src/pages/openPage.ts +17 -0
- package/src/pages/parent.ts +14 -0
- package/src/pages/properties/getPropertyById.ts +12 -0
- package/src/pages/properties/getPropertyByKey.ts +30 -0
- package/src/pages/types.ts +191 -0
- package/src/react/DebugMessageLog.tsx +6 -2
- package/src/react/InitializationErrorDetails.tsx +30 -0
- package/{dist/react/NotionCustomBlock.css → src/react/InitializationErrorScreen.css} +0 -20
- package/src/react/MissingHostCommand.tsx +49 -0
- package/src/react/MissingHostScreen.css +85 -0
- package/src/react/MissingHostScreen.tsx +34 -0
- package/src/react/NotionCustomBlock.tsx +17 -55
- package/src/react/NotionTokenScope.tsx +2 -1
- package/src/react/index.ts +14 -22
- package/src/users/bridge/toNotionUserFromBridgeUser.ts +13 -0
- package/src/users/getCurrentUser.ts +10 -0
- package/src/users/getUser.ts +18 -0
- package/src/users/index.ts +7 -0
- package/src/users/listUsers.ts +28 -0
- package/src/users/react/useCurrentUser.ts +17 -0
- package/src/users/subscribeToCurrentUser.ts +13 -0
- package/src/users/types.ts +36 -0
- package/dist/autoResize.d.ts.map +0 -1
- package/dist/bridge/SandboxInitialization.d.ts.map +0 -1
- package/dist/bridge/appearance.d.ts.map +0 -1
- package/dist/bridge/dataSources/query.d.ts +0 -27
- package/dist/bridge/dataSources/query.d.ts.map +0 -1
- package/dist/bridge/dataSources/queryFilter.d.ts.map +0 -1
- package/dist/bridge/dataSources/resolve.d.ts +0 -14
- package/dist/bridge/dataSources/resolve.d.ts.map +0 -1
- package/dist/bridge/dataSources/resolveProperty.d.ts.map +0 -1
- package/dist/bridge/dataSources/resolvePropertyAddress.d.ts.map +0 -1
- package/dist/bridge/dataSources/resolveSorts.d.ts.map +0 -1
- package/dist/bridge/dataSources/subscribe.d.ts.map +0 -1
- package/dist/bridge/dataSources/subscribe.js +0 -76
- package/dist/bridge/hostState.d.ts +0 -42
- package/dist/bridge/hostState.d.ts.map +0 -1
- package/dist/bridge/hostState.js +0 -8
- package/dist/bridge/notifyListener.d.ts.map +0 -1
- package/dist/bridge/page.d.ts +0 -18
- package/dist/bridge/page.d.ts.map +0 -1
- package/dist/bridge/pendingRequests.d.ts +0 -14
- package/dist/bridge/pendingRequests.d.ts.map +0 -1
- package/dist/bridge/pendingRequests.js +0 -28
- package/dist/bridge/readLocalManifest.d.ts.map +0 -1
- package/dist/bridge/sandboxClient.d.ts +0 -66
- package/dist/bridge/sandboxClient.d.ts.map +0 -1
- package/dist/bridge/sandboxClient.js +0 -158
- package/dist/customBlock.d.ts +0 -97
- package/dist/customBlock.d.ts.map +0 -1
- package/dist/customBlock.js +0 -157
- package/dist/dataSources.d.ts +0 -8
- package/dist/dataSources.d.ts.map +0 -1
- package/dist/dataSources.js +0 -105
- package/dist/init.d.ts.map +0 -1
- package/dist/initTypes.d.ts +0 -31
- package/dist/initTypes.d.ts.map +0 -1
- package/dist/protocol/dataSources/dataSource.d.ts +0 -786
- package/dist/protocol/dataSources/dataSource.js +0 -66
- package/dist/protocol/errors.d.ts +0 -12
- package/dist/protocol/errors.js +0 -6
- package/dist/protocol/messages/createPage.js +0 -51
- package/dist/protocol/messages/createPageResult.js +0 -43
- package/dist/protocol/messages/queryDataSource.d.ts +0 -1470
- package/dist/protocol/messages/queryDataSource.js +0 -254
- package/dist/protocol/messages/updatePage.js +0 -23
- package/dist/protocol/pages/page.d.ts +0 -1422
- package/dist/protocol/pages/page.js +0 -318
- package/dist/protocol/parent.js +0 -13
- package/dist/protocol/users/user.js +0 -20
- package/dist/react/standalonePreview.d.ts +0 -2
- package/dist/react/standalonePreview.d.ts.map +0 -1
- package/dist/react/standalonePreview.js +0 -36
- package/dist/react/useCustomBlockInit.d.ts.map +0 -1
- package/dist/react/useDataSource.d.ts.map +0 -1
- package/dist/react/useHostState.d.ts +0 -2
- package/dist/react/useHostState.d.ts.map +0 -1
- package/dist/react/useHostState.js +0 -5
- package/dist/react/useRuntimeState.d.ts +0 -78
- package/dist/react/useRuntimeState.d.ts.map +0 -1
- package/dist/react/useRuntimeState.js +0 -86
- package/dist/typeUtils.d.ts.map +0 -1
- package/dist/types.d.ts +0 -204
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/src/bridge/dataSources/resolve.ts +0 -50
- package/src/bridge/dataSources/subscribe.ts +0 -124
- package/src/bridge/hostState.ts +0 -59
- package/src/bridge/page.ts +0 -47
- package/src/bridge/pendingRequests.ts +0 -28
- package/src/bridge/sandboxClient.ts +0 -225
- package/src/customBlock.ts +0 -193
- package/src/dataSources.ts +0 -136
- package/src/init.ts +0 -15
- package/src/initTypes.ts +0 -43
- package/src/react/standalonePreview.ts +0 -41
- package/src/react/useHostState.ts +0 -9
- package/src/react/useRuntimeState.ts +0 -118
- package/src/types.ts +0 -284
- /package/dist/{bridge/appearance.js → context/backgroundColors.js} +0 -0
- /package/dist/{typeUtils.js → context/hostState.js} +0 -0
- /package/dist/{types.js → dataSources/filters/types.js} +0 -0
- /package/dist/{bridge/dataSources → dataSources/properties}/resolvePropertyAddress.js +0 -0
- /package/dist/{react → dataSources/react}/useDataSource.d.ts +0 -0
- /package/dist/{autoResize.d.ts → layout/autoResize.d.ts} +0 -0
- /package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourcePage.d.ts +0 -0
- /package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourceValue.d.ts +0 -0
- /package/dist/protocol/{contrast.d.ts → context/contrast.d.ts} +0 -0
- /package/dist/protocol/{contrast.js → context/contrast.js} +0 -0
- /package/dist/protocol/{messages → context/messages}/contrastModeChanged.d.ts +0 -0
- /package/dist/protocol/{messages → context/messages}/contrastModeChanged.js +0 -0
- /package/dist/protocol/{messages → context/messages}/pageChanged.d.ts +0 -0
- /package/dist/protocol/{messages → context/messages}/parentChanged.d.ts +0 -0
- /package/dist/protocol/{messages → context/messages}/parentChanged.js +0 -0
- /package/dist/protocol/{messages → context/messages}/resize.d.ts +0 -0
- /package/dist/protocol/{messages → context/messages}/resize.js +0 -0
- /package/dist/protocol/{messages → context/messages}/themeChanged.d.ts +0 -0
- /package/dist/protocol/{messages → context/messages}/themeChanged.js +0 -0
- /package/dist/protocol/{theme.d.ts → context/theme.d.ts} +0 -0
- /package/dist/protocol/{theme.js → context/theme.js} +0 -0
- /package/dist/protocol/{messages → dataSources/messages}/unsubscribeDataSourceQuery.d.ts +0 -0
- /package/dist/protocol/{messages → dataSources/messages}/unsubscribeDataSourceQuery.js +0 -0
- /package/dist/protocol/dataSources/{dateValue.d.ts → properties/dateValue.d.ts} +0 -0
- /package/dist/protocol/dataSources/{dateValue.js → properties/dateValue.js} +0 -0
- /package/dist/protocol/{messages → handshake}/initResult.js +0 -0
- /package/dist/protocol/{messages → handshake}/isInitHandshakeMessage.js +0 -0
- /package/dist/protocol/{messages → navigation}/openExternalUrl.js +0 -0
- /package/dist/protocol/{messages → users/messages}/currentUserChanged.d.ts +0 -0
- /package/dist/protocol/{ids.d.ts → utils/ids.d.ts} +0 -0
- /package/dist/protocol/{ids.js → utils/ids.js} +0 -0
- /package/dist/protocol/{isLocalBlockServerUrl.d.ts → utils/isLocalBlockServerUrl.d.ts} +0 -0
- /package/dist/protocol/{isLocalBlockServerUrl.js → utils/isLocalBlockServerUrl.js} +0 -0
- /package/dist/protocol/{dataSources → utils}/recordPointer.d.ts +0 -0
- /package/dist/protocol/{dataSources → utils}/recordPointer.js +0 -0
- /package/dist/{bridge → utils}/notifyListener.d.ts +0 -0
- /package/dist/{bridge → utils}/notifyListener.js +0 -0
- /package/dist/{typeUtils.d.ts → utils/typeUtils.d.ts} +0 -0
- /package/dist/{utils.js → utils/unreachable.js} +0 -0
- /package/dist/{version.d.ts → utils/version.d.ts} +0 -0
- /package/src/{bridge/appearance.ts → context/backgroundColors.ts} +0 -0
- /package/src/{bridge → utils}/notifyListener.ts +0 -0
- /package/src/{typeUtils.ts → utils/typeUtils.ts} +0 -0
- /package/src/{utils.ts → utils/unreachable.ts} +0 -0
- /package/src/{version.ts → utils/version.ts} +0 -0
package/README.md
CHANGED
|
@@ -123,6 +123,8 @@ Import React hooks and components from `@notionhq/custom-blocks/react`.
|
|
|
123
123
|
- [`docs/users.md`](docs/users.md) — `users.list / get`, the `NotionUser` shape, paging.
|
|
124
124
|
- [`docs/errors.md`](docs/errors.md) — request results, error format, error codes, retries, and
|
|
125
125
|
initialization failures.
|
|
126
|
+
- [`docs/grants.md`](docs/grants.md) — the block manifest's `grants`, viewer approval, and the
|
|
127
|
+
reserved `not_granted` code.
|
|
126
128
|
- [`docs/bridge-interceptors.md`](docs/bridge-interceptors.md) — `registerMessageInterceptor` and
|
|
127
129
|
`MessageInterceptor` for controlled bridge responses.
|
|
128
130
|
- [`docs/deployment.md`](docs/deployment.md) — worker-backed deploys, localhost self-hosted
|
|
@@ -1,553 +1,55 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
import type { BridgeMessagePayload } from "../protocol/messages/messagePayload.js";
|
|
5
|
-
import type { UpdatePageResultMessage } from "../protocol/messages/updatePageResult.js";
|
|
6
|
-
import type { CreatePageArgs, CreatePageResult, DataSourceQueryOptions, GetPageResult, GetUserResult, ListUsersArgs, ListUsersResult, NotionPage, NotionUserId, OpenExternalUrlResult, OpenPageOptions, OpenPageResult, PageUpdatePayload } from "../types.js";
|
|
7
|
-
import { type CustomBlockHostState } from "./hostState.js";
|
|
1
|
+
import type { QueryDataSourceResultMessage } from "../protocol/dataSources/messages/queryDataSource.js";
|
|
2
|
+
import type { SandboxToHostMessage } from "../protocol/messages/sandboxToHost.js";
|
|
3
|
+
import type { CustomBlockHostState } from "../context/hostState.js";
|
|
8
4
|
import type { MessageInterceptor } from "./messageInterceptor.js";
|
|
5
|
+
import { type RequestMessage, type ResponseSchema } from "./requests.js";
|
|
9
6
|
/**
|
|
10
7
|
* A single entry in the bridge message log. Kept intentionally plain so the log is copy-pasteable
|
|
11
8
|
* to a local coding agent without needing extra context.
|
|
12
9
|
*/
|
|
13
|
-
|
|
10
|
+
type MessageLogEntry = {
|
|
14
11
|
timestamp: string;
|
|
15
12
|
direction: "sent" | "received";
|
|
16
13
|
data: unknown;
|
|
17
14
|
};
|
|
18
|
-
export type QueryDataSourceArgs = {
|
|
19
|
-
subscriptionId: string;
|
|
20
|
-
key: string;
|
|
21
|
-
options?: DataSourceQueryOptions;
|
|
22
|
-
/** Send the query even if an identical query is already loading. */
|
|
23
|
-
forceRequery?: boolean;
|
|
24
|
-
};
|
|
25
15
|
export declare class SandboxBridge {
|
|
26
16
|
private hostState;
|
|
27
|
-
private pendingPageUpdates;
|
|
28
17
|
private listeners;
|
|
18
|
+
private dataSourceQueryListeners;
|
|
29
19
|
private messageInterceptors;
|
|
30
20
|
private messageLog;
|
|
31
21
|
private messageLogListeners;
|
|
32
|
-
private readonly
|
|
33
|
-
private readonly pendingGetPage;
|
|
34
|
-
private readonly pendingGetUser;
|
|
35
|
-
private readonly pendingListUsers;
|
|
36
|
-
private readonly pendingOpenPage;
|
|
37
|
-
private readonly pendingOpenExternalUrl;
|
|
38
|
-
private readonly pendingUpdatePage;
|
|
22
|
+
private readonly requests;
|
|
39
23
|
private latestDataSourceBindings;
|
|
40
|
-
private isMockState;
|
|
41
24
|
private isListening;
|
|
42
25
|
private isDisposed;
|
|
43
26
|
private readonly initialization;
|
|
44
|
-
initialize(): Promise<import("../
|
|
27
|
+
initialize(): Promise<import("../index.js").CustomBlockInitPayload>;
|
|
45
28
|
/**
|
|
46
29
|
* Stops this bridge permanently. Rejects pending initialization, cancels
|
|
47
30
|
* acknowledgment callbacks, removes the message listener, and discards queued
|
|
48
31
|
* outbound messages. Further host messages are ignored.
|
|
49
32
|
*
|
|
50
|
-
* Pending
|
|
33
|
+
* Pending requests complete with request_disposed, and their timers are cleared.
|
|
51
34
|
*/
|
|
52
35
|
dispose(): void;
|
|
53
36
|
startListening(): void;
|
|
54
37
|
private static MAX_LOG_ENTRIES;
|
|
55
38
|
private logMessage;
|
|
56
|
-
getMessageLog()
|
|
57
|
-
subscribeToMessageLog(listener: () => void)
|
|
39
|
+
getMessageLog: () => readonly MessageLogEntry[];
|
|
40
|
+
subscribeToMessageLog: (listener: () => void) => () => boolean;
|
|
58
41
|
registerMessageInterceptor(interceptor: MessageInterceptor): () => void;
|
|
59
|
-
|
|
42
|
+
postToHost(message: SandboxToHostMessage): void;
|
|
60
43
|
private sendToHost;
|
|
61
|
-
private notify;
|
|
62
44
|
private handleMessage;
|
|
63
45
|
private receiveMessage;
|
|
64
|
-
subscribe(listener: () => void)
|
|
65
|
-
getHostState()
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
* directly (e.g. the React provider's standalone preview fallback) without going through
|
|
69
|
-
* `postMessage`. The bridge stays unaware of why it's being seeded.
|
|
70
|
-
*/
|
|
71
|
-
setMockState(message: InitMessage): void;
|
|
46
|
+
subscribe: (listener: () => void) => () => boolean;
|
|
47
|
+
getHostState: () => CustomBlockHostState;
|
|
48
|
+
private commitHostState;
|
|
49
|
+
subscribeToDataSourceQueryResults(subscriptionId: string, listener: (message: QueryDataSourceResultMessage) => void): () => void;
|
|
72
50
|
completeInitialization(): void;
|
|
73
51
|
private applyInit;
|
|
74
|
-
|
|
75
|
-
queryDataSource({ subscriptionId, key, options, forceRequery, }: QueryDataSourceArgs): void;
|
|
76
|
-
private setDataSourceQueryError;
|
|
77
|
-
releaseDataSourceSubscription(subscriptionId: string): void;
|
|
78
|
-
postResize(height: number): void;
|
|
79
|
-
createPage(args: {
|
|
80
|
-
parent: CreatePageArgs["parent"];
|
|
81
|
-
properties: CreatePageArgs["properties"];
|
|
82
|
-
position?: CreatePageArgs["position"];
|
|
83
|
-
dataSource: NotionDataSource | undefined;
|
|
84
|
-
}): Promise<CreatePageResult>;
|
|
85
|
-
getPage(args: {
|
|
86
|
-
pageId: NotionPageId;
|
|
87
|
-
dataSource: NotionDataSource | undefined;
|
|
88
|
-
}): Promise<GetPageResult>;
|
|
89
|
-
openPage(pageId: NotionPageId, options: OpenPageOptions): Promise<OpenPageResult>;
|
|
90
|
-
openExternalUrl(url: string): Promise<OpenExternalUrlResult>;
|
|
91
|
-
getUser(userId: NotionUserId): Promise<GetUserResult>;
|
|
92
|
-
listUsers(args?: ListUsersArgs): Promise<ListUsersResult>;
|
|
93
|
-
getPropertyById(args: {
|
|
94
|
-
page: NotionPage;
|
|
95
|
-
propertyId: string;
|
|
96
|
-
}): {
|
|
97
|
-
id: string;
|
|
98
|
-
type: "title";
|
|
99
|
-
title: {
|
|
100
|
-
[x: string]: unknown;
|
|
101
|
-
}[];
|
|
102
|
-
} | {
|
|
103
|
-
id: string;
|
|
104
|
-
type: "rich_text";
|
|
105
|
-
rich_text: {
|
|
106
|
-
[x: string]: unknown;
|
|
107
|
-
}[];
|
|
108
|
-
} | {
|
|
109
|
-
id: string;
|
|
110
|
-
type: "number";
|
|
111
|
-
number: number | null;
|
|
112
|
-
} | {
|
|
113
|
-
id: string;
|
|
114
|
-
type: "url";
|
|
115
|
-
url: string | null;
|
|
116
|
-
} | {
|
|
117
|
-
id: string;
|
|
118
|
-
type: "email";
|
|
119
|
-
email: string | null;
|
|
120
|
-
} | {
|
|
121
|
-
id: string;
|
|
122
|
-
type: "phone_number";
|
|
123
|
-
phone_number: string | null;
|
|
124
|
-
} | {
|
|
125
|
-
id: string;
|
|
126
|
-
type: "checkbox";
|
|
127
|
-
checkbox: boolean;
|
|
128
|
-
} | {
|
|
129
|
-
id: string;
|
|
130
|
-
type: "select";
|
|
131
|
-
select: {
|
|
132
|
-
id: string;
|
|
133
|
-
name?: string | undefined;
|
|
134
|
-
color?: string | undefined;
|
|
135
|
-
description?: string | null | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
name: string;
|
|
138
|
-
id?: string | undefined;
|
|
139
|
-
color?: string | undefined;
|
|
140
|
-
description?: string | null | undefined;
|
|
141
|
-
} | null;
|
|
142
|
-
} | {
|
|
143
|
-
id: string;
|
|
144
|
-
type: "status";
|
|
145
|
-
status: {
|
|
146
|
-
id: string;
|
|
147
|
-
name?: string | undefined;
|
|
148
|
-
color?: string | undefined;
|
|
149
|
-
description?: string | null | undefined;
|
|
150
|
-
} | {
|
|
151
|
-
name: string;
|
|
152
|
-
id?: string | undefined;
|
|
153
|
-
color?: string | undefined;
|
|
154
|
-
description?: string | null | undefined;
|
|
155
|
-
} | null;
|
|
156
|
-
} | {
|
|
157
|
-
id: string;
|
|
158
|
-
type: "multi_select";
|
|
159
|
-
multi_select: ({
|
|
160
|
-
id: string;
|
|
161
|
-
name?: string | undefined;
|
|
162
|
-
color?: string | undefined;
|
|
163
|
-
description?: string | null | undefined;
|
|
164
|
-
} | {
|
|
165
|
-
name: string;
|
|
166
|
-
id?: string | undefined;
|
|
167
|
-
color?: string | undefined;
|
|
168
|
-
description?: string | null | undefined;
|
|
169
|
-
})[];
|
|
170
|
-
} | {
|
|
171
|
-
id: string;
|
|
172
|
-
type: "date";
|
|
173
|
-
date: {
|
|
174
|
-
end?: string | null | undefined;
|
|
175
|
-
time_zone?: string | null | undefined;
|
|
176
|
-
reminder?: {
|
|
177
|
-
unit: "day" | "month" | "week" | "year";
|
|
178
|
-
value: number;
|
|
179
|
-
time: string;
|
|
180
|
-
defaultTimeZone?: string | undefined;
|
|
181
|
-
} | {
|
|
182
|
-
unit: "hour" | "minute";
|
|
183
|
-
value: number;
|
|
184
|
-
} | {
|
|
185
|
-
unit: "none";
|
|
186
|
-
} | undefined;
|
|
187
|
-
start: string;
|
|
188
|
-
} | {
|
|
189
|
-
start: string;
|
|
190
|
-
end?: string | null | undefined;
|
|
191
|
-
reminder?: {
|
|
192
|
-
unit: "day" | "month" | "week" | "year";
|
|
193
|
-
value: number;
|
|
194
|
-
time: string;
|
|
195
|
-
defaultTimeZone?: string | undefined;
|
|
196
|
-
} | {
|
|
197
|
-
unit: "hour" | "minute";
|
|
198
|
-
value: number;
|
|
199
|
-
} | {
|
|
200
|
-
unit: "none";
|
|
201
|
-
} | undefined;
|
|
202
|
-
time_zone: string;
|
|
203
|
-
} | {
|
|
204
|
-
start: string;
|
|
205
|
-
end?: string | null | undefined;
|
|
206
|
-
time_zone?: string | null | undefined;
|
|
207
|
-
reminder?: {
|
|
208
|
-
unit: "day" | "month" | "week" | "year";
|
|
209
|
-
value: number;
|
|
210
|
-
time: string;
|
|
211
|
-
defaultTimeZone?: string | undefined;
|
|
212
|
-
} | {
|
|
213
|
-
unit: "none";
|
|
214
|
-
} | undefined;
|
|
215
|
-
} | null;
|
|
216
|
-
} | {
|
|
217
|
-
id: string;
|
|
218
|
-
type: "people";
|
|
219
|
-
people: ({
|
|
220
|
-
object?: "user" | undefined;
|
|
221
|
-
id: string;
|
|
222
|
-
} | {
|
|
223
|
-
object: "group";
|
|
224
|
-
id: string;
|
|
225
|
-
name?: string | null | undefined;
|
|
226
|
-
})[];
|
|
227
|
-
} | {
|
|
228
|
-
id: string;
|
|
229
|
-
type: "relation";
|
|
230
|
-
has_more?: boolean | undefined;
|
|
231
|
-
relation: {
|
|
232
|
-
id: string;
|
|
233
|
-
}[];
|
|
234
|
-
} | {
|
|
235
|
-
id: string;
|
|
236
|
-
type: "files";
|
|
237
|
-
files: ({
|
|
238
|
-
type: "external";
|
|
239
|
-
name: string;
|
|
240
|
-
external: {
|
|
241
|
-
url: string;
|
|
242
|
-
};
|
|
243
|
-
} | {
|
|
244
|
-
type: "file";
|
|
245
|
-
name: string;
|
|
246
|
-
file: {
|
|
247
|
-
url: string;
|
|
248
|
-
expiry_time?: string | undefined;
|
|
249
|
-
};
|
|
250
|
-
})[];
|
|
251
|
-
} | {
|
|
252
|
-
id: string;
|
|
253
|
-
type: "place";
|
|
254
|
-
place: {
|
|
255
|
-
lat: number;
|
|
256
|
-
lon: number;
|
|
257
|
-
name?: string | null | undefined;
|
|
258
|
-
address?: string | null | undefined;
|
|
259
|
-
aws_place_id?: string | null | undefined;
|
|
260
|
-
google_place_id?: string | null | undefined;
|
|
261
|
-
} | null;
|
|
262
|
-
} | {
|
|
263
|
-
id: string;
|
|
264
|
-
type: "created_time";
|
|
265
|
-
created_time: string | null;
|
|
266
|
-
} | {
|
|
267
|
-
id: string;
|
|
268
|
-
type: "last_edited_time";
|
|
269
|
-
last_edited_time: string | null;
|
|
270
|
-
} | {
|
|
271
|
-
id: string;
|
|
272
|
-
type: "created_by";
|
|
273
|
-
created_by: {
|
|
274
|
-
id: string;
|
|
275
|
-
table: "bot" | "notion_user" | "organization_bot";
|
|
276
|
-
spaceId?: string | undefined;
|
|
277
|
-
} | null;
|
|
278
|
-
} | {
|
|
279
|
-
id: string;
|
|
280
|
-
type: "last_edited_by";
|
|
281
|
-
last_edited_by: {
|
|
282
|
-
id: string;
|
|
283
|
-
table: "bot" | "notion_user" | "organization_bot";
|
|
284
|
-
spaceId?: string | undefined;
|
|
285
|
-
} | null;
|
|
286
|
-
} | {
|
|
287
|
-
id: string;
|
|
288
|
-
type: "last_visited_time";
|
|
289
|
-
last_visited_time: string | null;
|
|
290
|
-
} | {
|
|
291
|
-
id: string;
|
|
292
|
-
type: "unique_id";
|
|
293
|
-
unique_id: string;
|
|
294
|
-
} | {
|
|
295
|
-
id: string;
|
|
296
|
-
type: "button";
|
|
297
|
-
button: string;
|
|
298
|
-
} | {
|
|
299
|
-
id: string;
|
|
300
|
-
type: "formula";
|
|
301
|
-
formula: string;
|
|
302
|
-
} | {
|
|
303
|
-
id: string;
|
|
304
|
-
type: "location";
|
|
305
|
-
location: string;
|
|
306
|
-
} | {
|
|
307
|
-
id: string;
|
|
308
|
-
type: "rollup";
|
|
309
|
-
rollup: string;
|
|
310
|
-
} | {
|
|
311
|
-
id: string;
|
|
312
|
-
type: "verification";
|
|
313
|
-
verification: string;
|
|
314
|
-
} | null;
|
|
315
|
-
getPropertyByKey(args: {
|
|
316
|
-
page: NotionPage;
|
|
317
|
-
dataSource: NotionDataSource | undefined;
|
|
318
|
-
propertyKey: string;
|
|
319
|
-
}): {
|
|
320
|
-
id: string;
|
|
321
|
-
type: "title";
|
|
322
|
-
title: {
|
|
323
|
-
[x: string]: unknown;
|
|
324
|
-
}[];
|
|
325
|
-
} | {
|
|
326
|
-
id: string;
|
|
327
|
-
type: "rich_text";
|
|
328
|
-
rich_text: {
|
|
329
|
-
[x: string]: unknown;
|
|
330
|
-
}[];
|
|
331
|
-
} | {
|
|
332
|
-
id: string;
|
|
333
|
-
type: "number";
|
|
334
|
-
number: number | null;
|
|
335
|
-
} | {
|
|
336
|
-
id: string;
|
|
337
|
-
type: "url";
|
|
338
|
-
url: string | null;
|
|
339
|
-
} | {
|
|
340
|
-
id: string;
|
|
341
|
-
type: "email";
|
|
342
|
-
email: string | null;
|
|
343
|
-
} | {
|
|
344
|
-
id: string;
|
|
345
|
-
type: "phone_number";
|
|
346
|
-
phone_number: string | null;
|
|
347
|
-
} | {
|
|
348
|
-
id: string;
|
|
349
|
-
type: "checkbox";
|
|
350
|
-
checkbox: boolean;
|
|
351
|
-
} | {
|
|
352
|
-
id: string;
|
|
353
|
-
type: "select";
|
|
354
|
-
select: {
|
|
355
|
-
id: string;
|
|
356
|
-
name?: string | undefined;
|
|
357
|
-
color?: string | undefined;
|
|
358
|
-
description?: string | null | undefined;
|
|
359
|
-
} | {
|
|
360
|
-
name: string;
|
|
361
|
-
id?: string | undefined;
|
|
362
|
-
color?: string | undefined;
|
|
363
|
-
description?: string | null | undefined;
|
|
364
|
-
} | null;
|
|
365
|
-
} | {
|
|
366
|
-
id: string;
|
|
367
|
-
type: "status";
|
|
368
|
-
status: {
|
|
369
|
-
id: string;
|
|
370
|
-
name?: string | undefined;
|
|
371
|
-
color?: string | undefined;
|
|
372
|
-
description?: string | null | undefined;
|
|
373
|
-
} | {
|
|
374
|
-
name: string;
|
|
375
|
-
id?: string | undefined;
|
|
376
|
-
color?: string | undefined;
|
|
377
|
-
description?: string | null | undefined;
|
|
378
|
-
} | null;
|
|
379
|
-
} | {
|
|
380
|
-
id: string;
|
|
381
|
-
type: "multi_select";
|
|
382
|
-
multi_select: ({
|
|
383
|
-
id: string;
|
|
384
|
-
name?: string | undefined;
|
|
385
|
-
color?: string | undefined;
|
|
386
|
-
description?: string | null | undefined;
|
|
387
|
-
} | {
|
|
388
|
-
name: string;
|
|
389
|
-
id?: string | undefined;
|
|
390
|
-
color?: string | undefined;
|
|
391
|
-
description?: string | null | undefined;
|
|
392
|
-
})[];
|
|
393
|
-
} | {
|
|
394
|
-
id: string;
|
|
395
|
-
type: "date";
|
|
396
|
-
date: {
|
|
397
|
-
end?: string | null | undefined;
|
|
398
|
-
time_zone?: string | null | undefined;
|
|
399
|
-
reminder?: {
|
|
400
|
-
unit: "day" | "month" | "week" | "year";
|
|
401
|
-
value: number;
|
|
402
|
-
time: string;
|
|
403
|
-
defaultTimeZone?: string | undefined;
|
|
404
|
-
} | {
|
|
405
|
-
unit: "hour" | "minute";
|
|
406
|
-
value: number;
|
|
407
|
-
} | {
|
|
408
|
-
unit: "none";
|
|
409
|
-
} | undefined;
|
|
410
|
-
start: string;
|
|
411
|
-
} | {
|
|
412
|
-
start: string;
|
|
413
|
-
end?: string | null | undefined;
|
|
414
|
-
reminder?: {
|
|
415
|
-
unit: "day" | "month" | "week" | "year";
|
|
416
|
-
value: number;
|
|
417
|
-
time: string;
|
|
418
|
-
defaultTimeZone?: string | undefined;
|
|
419
|
-
} | {
|
|
420
|
-
unit: "hour" | "minute";
|
|
421
|
-
value: number;
|
|
422
|
-
} | {
|
|
423
|
-
unit: "none";
|
|
424
|
-
} | undefined;
|
|
425
|
-
time_zone: string;
|
|
426
|
-
} | {
|
|
427
|
-
start: string;
|
|
428
|
-
end?: string | null | undefined;
|
|
429
|
-
time_zone?: string | null | undefined;
|
|
430
|
-
reminder?: {
|
|
431
|
-
unit: "day" | "month" | "week" | "year";
|
|
432
|
-
value: number;
|
|
433
|
-
time: string;
|
|
434
|
-
defaultTimeZone?: string | undefined;
|
|
435
|
-
} | {
|
|
436
|
-
unit: "none";
|
|
437
|
-
} | undefined;
|
|
438
|
-
} | null;
|
|
439
|
-
} | {
|
|
440
|
-
id: string;
|
|
441
|
-
type: "people";
|
|
442
|
-
people: ({
|
|
443
|
-
object?: "user" | undefined;
|
|
444
|
-
id: string;
|
|
445
|
-
} | {
|
|
446
|
-
object: "group";
|
|
447
|
-
id: string;
|
|
448
|
-
name?: string | null | undefined;
|
|
449
|
-
})[];
|
|
450
|
-
} | {
|
|
451
|
-
id: string;
|
|
452
|
-
type: "relation";
|
|
453
|
-
has_more?: boolean | undefined;
|
|
454
|
-
relation: {
|
|
455
|
-
id: string;
|
|
456
|
-
}[];
|
|
457
|
-
} | {
|
|
458
|
-
id: string;
|
|
459
|
-
type: "files";
|
|
460
|
-
files: ({
|
|
461
|
-
type: "external";
|
|
462
|
-
name: string;
|
|
463
|
-
external: {
|
|
464
|
-
url: string;
|
|
465
|
-
};
|
|
466
|
-
} | {
|
|
467
|
-
type: "file";
|
|
468
|
-
name: string;
|
|
469
|
-
file: {
|
|
470
|
-
url: string;
|
|
471
|
-
expiry_time?: string | undefined;
|
|
472
|
-
};
|
|
473
|
-
})[];
|
|
474
|
-
} | {
|
|
475
|
-
id: string;
|
|
476
|
-
type: "place";
|
|
477
|
-
place: {
|
|
478
|
-
lat: number;
|
|
479
|
-
lon: number;
|
|
480
|
-
name?: string | null | undefined;
|
|
481
|
-
address?: string | null | undefined;
|
|
482
|
-
aws_place_id?: string | null | undefined;
|
|
483
|
-
google_place_id?: string | null | undefined;
|
|
484
|
-
} | null;
|
|
485
|
-
} | {
|
|
486
|
-
id: string;
|
|
487
|
-
type: "created_time";
|
|
488
|
-
created_time: string | null;
|
|
489
|
-
} | {
|
|
490
|
-
id: string;
|
|
491
|
-
type: "last_edited_time";
|
|
492
|
-
last_edited_time: string | null;
|
|
493
|
-
} | {
|
|
494
|
-
id: string;
|
|
495
|
-
type: "created_by";
|
|
496
|
-
created_by: {
|
|
497
|
-
id: string;
|
|
498
|
-
table: "bot" | "notion_user" | "organization_bot";
|
|
499
|
-
spaceId?: string | undefined;
|
|
500
|
-
} | null;
|
|
501
|
-
} | {
|
|
502
|
-
id: string;
|
|
503
|
-
type: "last_edited_by";
|
|
504
|
-
last_edited_by: {
|
|
505
|
-
id: string;
|
|
506
|
-
table: "bot" | "notion_user" | "organization_bot";
|
|
507
|
-
spaceId?: string | undefined;
|
|
508
|
-
} | null;
|
|
509
|
-
} | {
|
|
510
|
-
id: string;
|
|
511
|
-
type: "last_visited_time";
|
|
512
|
-
last_visited_time: string | null;
|
|
513
|
-
} | {
|
|
514
|
-
id: string;
|
|
515
|
-
type: "unique_id";
|
|
516
|
-
unique_id: string;
|
|
517
|
-
} | {
|
|
518
|
-
id: string;
|
|
519
|
-
type: "button";
|
|
520
|
-
button: string;
|
|
521
|
-
} | {
|
|
522
|
-
id: string;
|
|
523
|
-
type: "formula";
|
|
524
|
-
formula: string;
|
|
525
|
-
} | {
|
|
526
|
-
id: string;
|
|
527
|
-
type: "location";
|
|
528
|
-
location: string;
|
|
529
|
-
} | {
|
|
530
|
-
id: string;
|
|
531
|
-
type: "rollup";
|
|
532
|
-
rollup: string;
|
|
533
|
-
} | {
|
|
534
|
-
id: string;
|
|
535
|
-
type: "verification";
|
|
536
|
-
verification: string;
|
|
537
|
-
} | null;
|
|
538
|
-
updatePage(args: {
|
|
539
|
-
pageId: NotionPageId;
|
|
540
|
-
properties?: PageUpdatePayload["properties"];
|
|
541
|
-
icon?: PageUpdatePayload["icon"];
|
|
542
|
-
cover?: PageUpdatePayload["cover"];
|
|
543
|
-
is_archived?: PageUpdatePayload["is_archived"];
|
|
544
|
-
dataSource: NotionDataSource | undefined;
|
|
545
|
-
}): Promise<BridgeMessagePayload<UpdatePageResultMessage>>;
|
|
546
|
-
/**
|
|
547
|
-
* Translates the public `CreatePageArgs["parent"]` into the bridge-native
|
|
548
|
-
* `CreatePageMessageParent`. The `data_source_key` variant is resolved sandbox-side against the
|
|
549
|
-
* data source mapping the host delivered in `init` / `dataSourcesChanged`.
|
|
550
|
-
*/
|
|
551
|
-
private resolveCreatePageParent;
|
|
52
|
+
request<Schema extends ResponseSchema>(message: RequestMessage, responseSchema: Schema): Promise<import("./requests.js").RequestResult<Schema>>;
|
|
552
53
|
}
|
|
54
|
+
export {};
|
|
553
55
|
//# sourceMappingURL=SandboxBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/SandboxBridge.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SandboxBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/SandboxBridge.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAA;AAM5H,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAA;AAItG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAQnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EACN,KAAK,cAAc,EAEnB,KAAK,cAAc,EACnB,MAAM,eAAe,CAAA;AAEtB;;;GAGG;AACH,KAAK,eAAe,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,UAAU,CAAA;IAC9B,IAAI,EAAE,OAAO,CAAA;CACb,CAAA;AAED,qBAAa,aAAa;IACzB,OAAO,CAAC,SAAS,CAIhB;IAED,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,wBAAwB,CAG7B;IACH,OAAO,CAAC,mBAAmB,CAAgC;IAC3D,OAAO,CAAC,UAAU,CAAwB;IAC1C,OAAO,CAAC,mBAAmB,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoD;IAC7E,OAAO,CAAC,wBAAwB,CAA+B;IAC/D,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAM7B;IAEF,UAAU,0DAET;IAED;;;;;;OAMG;IACH,OAAO,SAWN;IAED,cAAc,SAMb;IAED,OAAO,CAAC,MAAM,CAAC,eAAe,CAAM;IAEpC,OAAO,CAAC,UAAU;IAclB,aAAa,QAAO,SAAS,eAAe,EAAE,CAE7C;IAED,qBAAqB,aAAc,MAAM,IAAI,mBAG5C;IAED,0BAA0B,CAAC,WAAW,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAGtE;IAED,UAAU,CAAC,OAAO,EAAE,oBAAoB,QAEvC;IAED,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,aAAa,CAKpB;IAED,OAAO,CAAC,cAAc;IAiItB,SAAS,aAAc,MAAM,IAAI,mBAGhC;IAED,YAAY,QAAO,oBAAoB,CAEtC;IAED,OAAO,CAAC,eAAe;IAevB,iCAAiC,CAChC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,IAAI,GACvD,MAAM,IAAI,CAKZ;IAED,sBAAsB,SAErB;IAED,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,MAAM,SAAS,cAAc,EACpC,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,MAAM,0DAGtB;CACD"}
|