@knowledge-medium/agent-cli 0.1.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/LICENSE +21 -0
- package/README.md +161 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +908 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +29 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +91 -0
- package/dist/config.js.map +1 -0
- package/dist/kernel-types/assets.d.ts +14 -0
- package/dist/kernel-types/packages/agent-cli/src/protocol.d.ts +470 -0
- package/dist/kernel-types/packages/agent-cli/src/protocol.d.ts.map +1 -0
- package/dist/kernel-types/src/App.d.ts +3 -0
- package/dist/kernel-types/src/App.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockComponent.d.ts +21 -0
- package/dist/kernel-types/src/components/BlockComponent.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockEditor.d.ts +18 -0
- package/dist/kernel-types/src/components/BlockEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockLoadingPlaceholder.d.ts +15 -0
- package/dist/kernel-types/src/components/BlockLoadingPlaceholder.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockProperties.d.ts +12 -0
- package/dist/kernel-types/src/components/BlockProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/components/Header.d.ts +2 -0
- package/dist/kernel-types/src/components/Header.d.ts.map +1 -0
- package/dist/kernel-types/src/components/LazyBlockComponent.d.ts +29 -0
- package/dist/kernel-types/src/components/LazyBlockComponent.d.ts.map +1 -0
- package/dist/kernel-types/src/components/Login.d.ts +12 -0
- package/dist/kernel-types/src/components/Login.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/RefPropertyEditor.d.ts +13 -0
- package/dist/kernel-types/src/components/propertyEditors/RefPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/RefTargetTypePicker.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/RefTargetTypePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/TypesPropertyEditor.d.ts +3 -0
- package/dist/kernel-types/src/components/propertyEditors/TypesPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/defaults.d.ts +84 -0
- package/dist/kernel-types/src/components/propertyEditors/defaults.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/kernelValuePresets.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/kernelValuePresets.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/refPropertyEditorOverride.d.ts +9 -0
- package/dist/kernel-types/src/components/propertyEditors/refPropertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/typesPropertyUi.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/typesPropertyUi.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/AddPropertyForm.d.ts +16 -0
- package/dist/kernel-types/src/components/propertyPanel/AddPropertyForm.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyPicker.d.ts +54 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyPicker.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyRow.d.ts +21 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyRow.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/Rows.d.ts +8 -0
- package/dist/kernel-types/src/components/propertyPanel/Rows.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/actions.d.ts +26 -0
- package/dist/kernel-types/src/components/propertyPanel/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/layout.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyPanel/layout.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/model.d.ts +58 -0
- package/dist/kernel-types/src/components/propertyPanel/model.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/shapeUi.d.ts +32 -0
- package/dist/kernel-types/src/components/propertyPanel/shapeUi.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/shapes.d.ts +6 -0
- package/dist/kernel-types/src/components/propertyPanel/shapes.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/visibility.d.ts +10 -0
- package/dist/kernel-types/src/components/propertyPanel/visibility.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanelSections.d.ts +20 -0
- package/dist/kernel-types/src/components/propertyPanelSections.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/BlockEmbed.d.ts +4 -0
- package/dist/kernel-types/src/components/references/BlockEmbed.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/BlockRef.d.ts +6 -0
- package/dist/kernel-types/src/components/references/BlockRef.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/cycleGuard.d.ts +6 -0
- package/dist/kernel-types/src/components/references/cycleGuard.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/cycleGuardContext.d.ts +2 -0
- package/dist/kernel-types/src/components/references/cycleGuardContext.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/useBlockRefAncestors.d.ts +2 -0
- package/dist/kernel-types/src/components/references/useBlockRefAncestors.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/BlockTypeBlockRenderer.d.ts +12 -0
- package/dist/kernel-types/src/components/renderer/BlockTypeBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorContentRenderer.d.ts +3 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorContentRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorExtensionBlockRenderer.d.ts +3 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorExtensionBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/DefaultBlockRenderer.d.ts +26 -0
- package/dist/kernel-types/src/components/renderer/DefaultBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/LayoutRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/LayoutRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/MarkdownContentRenderer.d.ts +9 -0
- package/dist/kernel-types/src/components/renderer/MarkdownContentRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/MissingDataRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/MissingDataRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/PanelRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/PanelRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/PropertySchemaBlockRenderer.d.ts +12 -0
- package/dist/kernel-types/src/components/renderer/PropertySchemaBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/TopLevelRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/TopLevelRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/TypesPageBlockRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/TypesPageBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/anchored-floating.d.ts +25 -0
- package/dist/kernel-types/src/components/ui/anchored-floating.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/button.d.ts +15 -0
- package/dist/kernel-types/src/components/ui/button.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/card.d.ts +27 -0
- package/dist/kernel-types/src/components/ui/card.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/checkbox.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/checkbox.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/collapsible.d.ts +6 -0
- package/dist/kernel-types/src/components/ui/collapsible.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/command.d.ts +45 -0
- package/dist/kernel-types/src/components/ui/command.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/context-menu.d.ts +52 -0
- package/dist/kernel-types/src/components/ui/context-menu.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/dialog.d.ts +32 -0
- package/dist/kernel-types/src/components/ui/dialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/dropdown-menu.d.ts +52 -0
- package/dist/kernel-types/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/floating-listbox.d.ts +20 -0
- package/dist/kernel-types/src/components/ui/floating-listbox.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/index.d.ts +6 -0
- package/dist/kernel-types/src/components/ui/index.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/input.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/input.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/kbd.d.ts +4 -0
- package/dist/kernel-types/src/components/ui/kbd.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/label.d.ts +11 -0
- package/dist/kernel-types/src/components/ui/label.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/textarea.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/textarea.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/LazyViewportMount.d.ts +22 -0
- package/dist/kernel-types/src/components/util/LazyViewportMount.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/error.d.ts +4 -0
- package/dist/kernel-types/src/components/util/error.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/suspense.d.ts +2 -0
- package/dist/kernel-types/src/components/util/suspense.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/CreateWorkspaceDialog.d.ts +9 -0
- package/dist/kernel-types/src/components/workspace/CreateWorkspaceDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/PendingInvitations.d.ts +2 -0
- package/dist/kernel-types/src/components/workspace/PendingInvitations.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSettingsDialog.d.ts +10 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSettingsDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSwitcher.d.ts +4 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSwitcher.d.ts.map +1 -0
- package/dist/kernel-types/src/context/block.d.ts +13 -0
- package/dist/kernel-types/src/context/block.d.ts.map +1 -0
- package/dist/kernel-types/src/context/repo.d.ts +7 -0
- package/dist/kernel-types/src/context/repo.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/blockData.d.ts +73 -0
- package/dist/kernel-types/src/data/api/blockData.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/blockType.d.ts +19 -0
- package/dist/kernel-types/src/data/api/blockType.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/changeScope.d.ts +62 -0
- package/dist/kernel-types/src/data/api/changeScope.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/codecs.d.ts +72 -0
- package/dist/kernel-types/src/data/api/codecs.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/errors.d.ts +108 -0
- package/dist/kernel-types/src/data/api/errors.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/events.d.ts +19 -0
- package/dist/kernel-types/src/data/api/events.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/handle.d.ts +17 -0
- package/dist/kernel-types/src/data/api/handle.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/index.d.ts +20 -0
- package/dist/kernel-types/src/data/api/index.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/mutator.d.ts +42 -0
- package/dist/kernel-types/src/data/api/mutator.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/processor.d.ts +115 -0
- package/dist/kernel-types/src/data/api/processor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/propertySchema.d.ts +90 -0
- package/dist/kernel-types/src/data/api/propertySchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/query.d.ts +81 -0
- package/dist/kernel-types/src/data/api/query.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/sameTxProcessor.d.ts +112 -0
- package/dist/kernel-types/src/data/api/sameTxProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/schema.d.ts +8 -0
- package/dist/kernel-types/src/data/api/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/tx.d.ts +142 -0
- package/dist/kernel-types/src/data/api/tx.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/typedBlockQuery.d.ts +115 -0
- package/dist/kernel-types/src/data/api/typedBlockQuery.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/user.d.ts +9 -0
- package/dist/kernel-types/src/data/api/user.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/valuePresets.d.ts +56 -0
- package/dist/kernel-types/src/data/api/valuePresets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/block.d.ts +140 -0
- package/dist/kernel-types/src/data/block.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockCache.d.ts +114 -0
- package/dist/kernel-types/src/data/blockCache.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockSchema.d.ts +102 -0
- package/dist/kernel-types/src/data/blockSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockTypes.d.ts +21 -0
- package/dist/kernel-types/src/data/blockTypes.d.ts.map +1 -0
- package/dist/kernel-types/src/data/facets.d.ts +67 -0
- package/dist/kernel-types/src/data/facets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/globalState.d.ts +72 -0
- package/dist/kernel-types/src/data/globalState.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/clientSchema.d.ts +273 -0
- package/dist/kernel-types/src/data/internals/clientSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/commitPipeline.d.ts +127 -0
- package/dist/kernel-types/src/data/internals/commitPipeline.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/coreProperties.d.ts +16 -0
- package/dist/kernel-types/src/data/internals/coreProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/handleStore.d.ts +366 -0
- package/dist/kernel-types/src/data/internals/handleStore.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelInvalidation.d.ts +77 -0
- package/dist/kernel-types/src/data/internals/kernelInvalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelMutators.d.ts +174 -0
- package/dist/kernel-types/src/data/internals/kernelMutators.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelProcessors.d.ts +3 -0
- package/dist/kernel-types/src/data/internals/kernelProcessors.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelQueries.d.ts +225 -0
- package/dist/kernel-types/src/data/internals/kernelQueries.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/mergeProperties.d.ts +21 -0
- package/dist/kernel-types/src/data/internals/mergeProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/normalizeReferencesProcessor.d.ts +28 -0
- package/dist/kernel-types/src/data/internals/normalizeReferencesProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/processorRunner.d.ts +95 -0
- package/dist/kernel-types/src/data/internals/processorRunner.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/rowEventsTail.d.ts +70 -0
- package/dist/kernel-types/src/data/internals/rowEventsTail.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/timingMetrics.d.ts +115 -0
- package/dist/kernel-types/src/data/internals/timingMetrics.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/treeQueries.d.ts +87 -0
- package/dist/kernel-types/src/data/internals/treeQueries.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/txEngine.d.ts +155 -0
- package/dist/kernel-types/src/data/internals/txEngine.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/txSnapshots.d.ts +32 -0
- package/dist/kernel-types/src/data/internals/txSnapshots.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/typedBlockQuery.d.ts +37 -0
- package/dist/kernel-types/src/data/internals/typedBlockQuery.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/undoManager.d.ts +88 -0
- package/dist/kernel-types/src/data/internals/undoManager.d.ts.map +1 -0
- package/dist/kernel-types/src/data/invalidation.d.ts +47 -0
- package/dist/kernel-types/src/data/invalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/data/kernelDataExtension.d.ts +32 -0
- package/dist/kernel-types/src/data/kernelDataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/data/kernelPage.d.ts +36 -0
- package/dist/kernel-types/src/data/kernelPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/localSchema.d.ts +5 -0
- package/dist/kernel-types/src/data/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/metricsConsoleHook.d.ts +22 -0
- package/dist/kernel-types/src/data/metricsConsoleHook.d.ts.map +1 -0
- package/dist/kernel-types/src/data/orderKey.d.ts +38 -0
- package/dist/kernel-types/src/data/orderKey.d.ts.map +1 -0
- package/dist/kernel-types/src/data/pluginStateExtensions.d.ts +27 -0
- package/dist/kernel-types/src/data/pluginStateExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/data/properties.d.ts +137 -0
- package/dist/kernel-types/src/data/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/propertiesPage.d.ts +8 -0
- package/dist/kernel-types/src/data/propertiesPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/repo.d.ts +745 -0
- package/dist/kernel-types/src/data/repo.d.ts.map +1 -0
- package/dist/kernel-types/src/data/repoProvider.d.ts +35 -0
- package/dist/kernel-types/src/data/repoProvider.d.ts.map +1 -0
- package/dist/kernel-types/src/data/stateBlocks.d.ts +57 -0
- package/dist/kernel-types/src/data/stateBlocks.d.ts.map +1 -0
- package/dist/kernel-types/src/data/targets.d.ts +130 -0
- package/dist/kernel-types/src/data/targets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/typeExtraction.d.ts +136 -0
- package/dist/kernel-types/src/data/typeExtraction.d.ts.map +1 -0
- package/dist/kernel-types/src/data/typesPage.d.ts +8 -0
- package/dist/kernel-types/src/data/typesPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userPrefs.d.ts +7 -0
- package/dist/kernel-types/src/data/userPrefs.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userSchemasService.d.ts +73 -0
- package/dist/kernel-types/src/data/userSchemasService.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userTypesService.d.ts +70 -0
- package/dist/kernel-types/src/data/userTypesService.d.ts.map +1 -0
- package/dist/kernel-types/src/data/workspaceSchema.d.ts +49 -0
- package/dist/kernel-types/src/data/workspaceSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/workspaces.d.ts +39 -0
- package/dist/kernel-types/src/data/workspaces.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/AppRuntimeProvider.d.ts +6 -0
- package/dist/kernel-types/src/extensions/AppRuntimeProvider.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/BlockFocusShellDecorator.d.ts +4 -0
- package/dist/kernel-types/src/extensions/BlockFocusShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/ExtensionRenderBoundary.d.ts +6 -0
- package/dist/kernel-types/src/extensions/ExtensionRenderBoundary.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/api.d.ts +25 -0
- package/dist/kernel-types/src/extensions/api.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/blockInteraction.d.ts +147 -0
- package/dist/kernel-types/src/extensions/blockInteraction.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/compileExtensionModule.d.ts +39 -0
- package/dist/kernel-types/src/extensions/compileExtensionModule.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/core.d.ts +99 -0
- package/dist/kernel-types/src/extensions/core.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/defaultEditorInteractions.d.ts +5 -0
- package/dist/kernel-types/src/extensions/defaultEditorInteractions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/defaultRenderers.d.ts +5 -0
- package/dist/kernel-types/src/extensions/defaultRenderers.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/dialogAppMount.d.ts +4 -0
- package/dist/kernel-types/src/extensions/dialogAppMount.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/discoverToggleTree.d.ts +34 -0
- package/dist/kernel-types/src/extensions/discoverToggleTree.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/dynamicExtensions.d.ts +59 -0
- package/dist/kernel-types/src/extensions/dynamicExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/editor.d.ts +11 -0
- package/dist/kernel-types/src/extensions/editor.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/editorAutocomplete.d.ts +11 -0
- package/dist/kernel-types/src/extensions/editorAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/exampleExtensions.d.ts +19 -0
- package/dist/kernel-types/src/extensions/exampleExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/extensionLoadErrors.d.ts +28 -0
- package/dist/kernel-types/src/extensions/extensionLoadErrors.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/extensionLookup.d.ts +25 -0
- package/dist/kernel-types/src/extensions/extensionLookup.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/facet.d.ts +84 -0
- package/dist/kernel-types/src/extensions/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/overridesCache.d.ts +36 -0
- package/dist/kernel-types/src/extensions/overridesCache.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/pluginIds.d.ts +20 -0
- package/dist/kernel-types/src/extensions/pluginIds.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/resolveAppRuntime.d.ts +50 -0
- package/dist/kernel-types/src/extensions/resolveAppRuntime.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeActions.d.ts +4 -0
- package/dist/kernel-types/src/extensions/runtimeActions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeContext.d.ts +4 -0
- package/dist/kernel-types/src/extensions/runtimeContext.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeEvents.d.ts +3 -0
- package/dist/kernel-types/src/extensions/runtimeEvents.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/staticAppExtensions.d.ts +6 -0
- package/dist/kernel-types/src/extensions/staticAppExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/staticDataExtensions.d.ts +6 -0
- package/dist/kernel-types/src/extensions/staticDataExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/toastAppMount.d.ts +4 -0
- package/dist/kernel-types/src/extensions/toastAppMount.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/togglable.d.ts +79 -0
- package/dist/kernel-types/src/extensions/togglable.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/useOverrides.d.ts +36 -0
- package/dist/kernel-types/src/extensions/useOverrides.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/useShortcutSurfaceActivations.d.ts +22 -0
- package/dist/kernel-types/src/extensions/useShortcutSurfaceActivations.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/variantFacet.d.ts +70 -0
- package/dist/kernel-types/src/extensions/variantFacet.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/block.d.ts +153 -0
- package/dist/kernel-types/src/hooks/block.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/propertySchemas.d.ts +6 -0
- package/dist/kernel-types/src/hooks/propertySchemas.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useIsFocalRender.d.ts +24 -0
- package/dist/kernel-types/src/hooks/useIsFocalRender.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/usePendingInvitations.d.ts +8 -0
- package/dist/kernel-types/src/hooks/usePendingInvitations.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useRendererRegistry.d.ts +5 -0
- package/dist/kernel-types/src/hooks/useRendererRegistry.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useWorkspaces.d.ts +19 -0
- package/dist/kernel-types/src/hooks/useWorkspaces.d.ts.map +1 -0
- package/dist/kernel-types/src/initData.d.ts +26 -0
- package/dist/kernel-types/src/initData.d.ts.map +1 -0
- package/dist/kernel-types/src/lib/utils.d.ts +3 -0
- package/dist/kernel-types/src/lib/utils.d.ts.map +1 -0
- package/dist/kernel-types/src/main.d.ts +2 -0
- package/dist/kernel-types/src/main.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/MarkdownImage.d.ts +6 -0
- package/dist/kernel-types/src/markdown/MarkdownImage.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/defaultMarkdownExtension.d.ts +4 -0
- package/dist/kernel-types/src/markdown/defaultMarkdownExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/extensions.d.ts +18 -0
- package/dist/kernel-types/src/markdown/extensions.d.ts.map +1 -0
- package/dist/kernel-types/src/minimal-editor.d.ts +2 -0
- package/dist/kernel-types/src/minimal-editor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/account-header/AccountHeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/account-header/AccountHeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/account-header/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/account-header/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/AgentTokensDialog.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/AgentTokensDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/authoringCatalog.d.ts +78 -0
- package/dist/kernel-types/src/plugins/agent-runtime/authoringCatalog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/bridge.d.ts +5 -0
- package/dist/kernel-types/src/plugins/agent-runtime/bridge.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/commands.d.ts +5 -0
- package/dist/kernel-types/src/plugins/agent-runtime/commands.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/describeRuntime.d.ts +156 -0
- package/dist/kernel-types/src/plugins/agent-runtime/describeRuntime.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/extensionLint.d.ts +37 -0
- package/dist/kernel-types/src/plugins/agent-runtime/extensionLint.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/index.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/protocol.d.ts +144 -0
- package/dist/kernel-types/src/plugins/agent-runtime/protocol.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/serialization.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/serialization.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/tokens.d.ts +39 -0
- package/dist/kernel-types/src/plugins/agent-runtime/tokens.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/alias/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/index.d.ts +16 -0
- package/dist/kernel-types/src/plugins/alias/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/syncProcessor.d.ts +54 -0
- package/dist/kernel-types/src/plugins/alias/syncProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/app-intents/appIntents.d.ts +44 -0
- package/dist/kernel-types/src/plugins/app-intents/appIntents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/app-intents/index.d.ts +24 -0
- package/dist/kernel-types/src/plugins/app-intents/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkEntry.d.ts +6 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkEntry.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkFilters.d.ts +14 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkFilters.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinksFilterPropertyEditor.d.ts +4 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinksFilterPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/LinkedReferences.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/LinkedReferences.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/backlinkBreadcrumbShortcuts.d.ts +19 -0
- package/dist/kernel-types/src/plugins/backlinks/backlinkBreadcrumbShortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/dailyNoteDefaults.d.ts +13 -0
- package/dist/kernel-types/src/plugins/backlinks/dailyNoteDefaults.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/filterProperty.d.ts +13 -0
- package/dist/kernel-types/src/plugins/backlinks/filterProperty.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyEditorOverride.d.ts +2 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyFilter.d.ts +35 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyFilter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/query.d.ts +38 -0
- package/dist/kernel-types/src/plugins/backlinks/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/useBacklinks.d.ts +5 -0
- package/dist/kernel-types/src/plugins/backlinks/useBacklinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/useStoredBacklinkFilter.d.ts +11 -0
- package/dist/kernel-types/src/plugins/backlinks/useStoredBacklinkFilter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksEmptyState.d.ts +5 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksEmptyState.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksViewSection.d.ts +30 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksViewSection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/facet.d.ts +23 -0
- package/dist/kernel-types/src/plugins/backlinks-view/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks-view/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/prop.d.ts +20 -0
- package/dist/kernel-types/src/plugins/backlinks-view/prop.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/AddTagDialog.d.ts +6 -0
- package/dist/kernel-types/src/plugins/block-tagging/AddTagDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/BlockTagsConfigEditor.d.ts +3 -0
- package/dist/kernel-types/src/plugins/block-tagging/BlockTagsConfigEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/addTagAction.d.ts +7 -0
- package/dist/kernel-types/src/plugins/block-tagging/addTagAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/appendTag.d.ts +22 -0
- package/dist/kernel-types/src/plugins/block-tagging/appendTag.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/config.d.ts +21 -0
- package/dist/kernel-types/src/plugins/block-tagging/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/block-tagging/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/block-tagging/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/propertyEditorOverride.d.ts +2 -0
- package/dist/kernel-types/src/plugins/block-tagging/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbList.d.ts +16 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbList.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbRenderer.d.ts +7 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/breadcrumbPreview.d.ts +2 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/breadcrumbPreview.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/index.d.ts +9 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/CommandPalette.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/CommandPalette.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/context.d.ts +7 -0
- package/dist/kernel-types/src/plugins/command-palette/context.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/index.d.ts +24 -0
- package/dist/kernel-types/src/plugins/command-palette/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/useCommandPaletteActions.d.ts +8 -0
- package/dist/kernel-types/src/plugins/command-palette/useCommandPaletteActions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/CalendarGrid.d.ts +39 -0
- package/dist/kernel-types/src/plugins/daily-notes/CalendarGrid.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DailyNotePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DailyNotePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateKeyboardScrubController.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateKeyboardScrubController.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateScrubOverlay.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateScrubOverlay.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/ReschedulePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/ReschedulePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/SpreadDatesDialog.d.ts +9 -0
- package/dist/kernel-types/src/plugins/daily-notes/SpreadDatesDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/actions.d.ts +59 -0
- package/dist/kernel-types/src/plugins/daily-notes/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/blockDateAdapter.d.ts +45 -0
- package/dist/kernel-types/src/plugins/daily-notes/blockDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/calendar.d.ts +26 -0
- package/dist/kernel-types/src/plugins/daily-notes/calendar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dailyNotes.d.ts +67 -0
- package/dist/kernel-types/src/plugins/daily-notes/dailyNotes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/daily-notes/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dateScrubGesture.d.ts +32 -0
- package/dist/kernel-types/src/plugins/daily-notes/dateScrubGesture.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/events.d.ts +15 -0
- package/dist/kernel-types/src/plugins/daily-notes/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/index.d.ts +71 -0
- package/dist/kernel-types/src/plugins/daily-notes/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/landing.d.ts +21 -0
- package/dist/kernel-types/src/plugins/daily-notes/landing.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/localSchema.d.ts +4 -0
- package/dist/kernel-types/src/plugins/daily-notes/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/referenceDateAdapter.d.ts +20 -0
- package/dist/kernel-types/src/plugins/daily-notes/referenceDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleAction.d.ts +6 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleEvents.d.ts +25 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleEvents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/schema.d.ts +11 -0
- package/dist/kernel-types/src/plugins/daily-notes/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadBlockDates.d.ts +37 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadBlockDates.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadDatesAction.d.ts +7 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadDatesAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/wikilinkDateDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/daily-notes/wikilinkDateDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsOverridesEditor.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsOverridesEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsSettings.d.ts +28 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsSettings.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/actions.d.ts +16 -0
- package/dist/kernel-types/src/plugins/extensions-settings/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/config.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extensions-settings/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/extensions-settings/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/effect.d.ts +36 -0
- package/dist/kernel-types/src/plugins/extensions-settings/effect.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/extensions-settings/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/propertyEditorOverride.d.ts +3 -0
- package/dist/kernel-types/src/plugins/extensions-settings/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/useToggleTree.d.ts +21 -0
- package/dist/kernel-types/src/plugins/extensions-settings/useToggleTree.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/ExtractTypeDialog.d.ts +17 -0
- package/dist/kernel-types/src/plugins/extract-type/ExtractTypeDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/FindTypeInstancesDialog.d.ts +18 -0
- package/dist/kernel-types/src/plugins/extract-type/FindTypeInstancesDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/PropertyShapePicker.d.ts +78 -0
- package/dist/kernel-types/src/plugins/extract-type/PropertyShapePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/action.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extract-type/action.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/events.d.ts +16 -0
- package/dist/kernel-types/src/plugins/extract-type/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/index.d.ts +22 -0
- package/dist/kernel-types/src/plugins/extract-type/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/FindReplaceDialog.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/FindReplaceDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/dataExtension.d.ts +25 -0
- package/dist/kernel-types/src/plugins/find-replace/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/find-replace/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/search.d.ts +15 -0
- package/dist/kernel-types/src/plugins/find-replace/search.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/types.d.ts +33 -0
- package/dist/kernel-types/src/plugins/find-replace/types.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/LocationPropertyEditor.d.ts +14 -0
- package/dist/kernel-types/src/plugins/geo/LocationPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/MapView.d.ts +29 -0
- package/dist/kernel-types/src/plugins/geo/MapView.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/blockTypes.d.ts +15 -0
- package/dist/kernel-types/src/plugins/geo/blockTypes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/codeMirrorExtensions.d.ts +17 -0
- package/dist/kernel-types/src/plugins/geo/codeMirrorExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/codecs.d.ts +16 -0
- package/dist/kernel-types/src/plugins/geo/codecs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/createOrFindPlace.d.ts +36 -0
- package/dist/kernel-types/src/plugins/geo/createOrFindPlace.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/currentLocation.d.ts +34 -0
- package/dist/kernel-types/src/plugins/geo/currentLocation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/dataExtension.d.ts +7 -0
- package/dist/kernel-types/src/plugins/geo/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/geoContentDecorator.d.ts +18 -0
- package/dist/kernel-types/src/plugins/geo/geoContentDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/googlePlacesClient.d.ts +102 -0
- package/dist/kernel-types/src/plugins/geo/googlePlacesClient.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/index.d.ts +11 -0
- package/dist/kernel-types/src/plugins/geo/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/locationsPage.d.ts +11 -0
- package/dist/kernel-types/src/plugins/geo/locationsPage.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/pickCurrentLocation.d.ts +23 -0
- package/dist/kernel-types/src/plugins/geo/pickCurrentLocation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/placeAutocomplete.d.ts +103 -0
- package/dist/kernel-types/src/plugins/geo/placeAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/properties.d.ts +33 -0
- package/dist/kernel-types/src/plugins/geo/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/propertyEditorOverrides.d.ts +6 -0
- package/dist/kernel-types/src/plugins/geo/propertyEditorOverrides.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/query.d.ts +48 -0
- package/dist/kernel-types/src/plugins/geo/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/usePlaceSearch.d.ts +43 -0
- package/dist/kernel-types/src/plugins/geo/usePlaceSearch.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupHeaderActionButton.d.ts +27 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupHeaderActionButton.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedBacklinksConfigEditor.d.ts +4 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedBacklinksConfigEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedLinkedReferences.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedLinkedReferences.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/config.d.ts +24 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/facet.d.ts +31 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/grouping.d.ts +23 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/grouping.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/propertyEditorOverride.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/query.d.ts +34 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinks.d.ts +6 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinksConfig.d.ts +4 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinksConfig.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/left-sidebar/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/LeftSidebar.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/LeftSidebar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/actions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/events.d.ts +7 -0
- package/dist/kernel-types/src/plugins/left-sidebar/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/facet.d.ts +11 -0
- package/dist/kernel-types/src/plugins/left-sidebar/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/index.d.ts +14 -0
- package/dist/kernel-types/src/plugins/left-sidebar/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/shortcuts.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/shortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/MergePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/merge-blocks/MergePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/events.d.ts +17 -0
- package/dist/kernel-types/src/plugins/merge-blocks/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/merge-blocks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/mergeAction.d.ts +4 -0
- package/dist/kernel-types/src/plugins/merge-blocks/mergeAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/strategy.d.ts +13 -0
- package/dist/kernel-types/src/plugins/merge-blocks/strategy.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/Button.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/Button.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/MobileBottomNav.d.ts +2 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/MobileBottomNav.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/defaultItems.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/defaultItems.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/facet.d.ts +12 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/index.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/MobileKeyboardToolbar.d.ts +7 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/MobileKeyboardToolbar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/actions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/plain-outliner/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/plain-outliner/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/plain-outliner/interactions.d.ts +4 -0
- package/dist/kernel-types/src/plugins/plain-outliner/interactions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/QuickFind.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/QuickFind.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/quick-find/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/recents.d.ts +13 -0
- package/dist/kernel-types/src/plugins/quick-find/recents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/selection.d.ts +40 -0
- package/dist/kernel-types/src/plugins/quick-find/selection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/codeMirrorExtensions.d.ts +9 -0
- package/dist/kernel-types/src/plugins/references/codeMirrorExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/invalidation.d.ts +4 -0
- package/dist/kernel-types/src/plugins/references/invalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/localSchema.d.ts +21 -0
- package/dist/kernel-types/src/plugins/references/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/remark-blockrefs.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/remark-blockrefs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/Wikilink.d.ts +14 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/Wikilink.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/remark-wikilinks.d.ts +6 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/remark-wikilinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/wikilinkDecorator.d.ts +49 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/wikilinkDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referenceParser.d.ts +84 -0
- package/dist/kernel-types/src/plugins/references/referenceParser.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referenceProjection.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/referenceProjection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referencesProcessor.d.ts +59 -0
- package/dist/kernel-types/src/plugins/references/referencesProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/renameProcessor.d.ts +56 -0
- package/dist/kernel-types/src/plugins/references/renameProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/action.d.ts +6 -0
- package/dist/kernel-types/src/plugins/roam-import/action.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/content.d.ts +9 -0
- package/dist/kernel-types/src/plugins/roam-import/content.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/effect.d.ts +7 -0
- package/dist/kernel-types/src/plugins/roam-import/effect.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/ids.d.ts +9 -0
- package/dist/kernel-types/src/plugins/roam-import/ids.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/import.d.ts +37 -0
- package/dist/kernel-types/src/plugins/roam-import/import.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/index.d.ts +8 -0
- package/dist/kernel-types/src/plugins/roam-import/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/plan.d.ts +82 -0
- package/dist/kernel-types/src/plugins/roam-import/plan.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/plugin.d.ts +23 -0
- package/dist/kernel-types/src/plugins/roam-import/plugin.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/promotion.d.ts +39 -0
- package/dist/kernel-types/src/plugins/roam-import/promotion.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/properties.d.ts +62 -0
- package/dist/kernel-types/src/plugins/roam-import/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/references.d.ts +2 -0
- package/dist/kernel-types/src/plugins/roam-import/references.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/report.d.ts +25 -0
- package/dist/kernel-types/src/plugins/roam-import/report.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/roamMemo.d.ts +35 -0
- package/dist/kernel-types/src/plugins/roam-import/roamMemo.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/runtime.d.ts +24 -0
- package/dist/kernel-types/src/plugins/roam-import/runtime.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/schemaReconciliation.d.ts +75 -0
- package/dist/kernel-types/src/plugins/roam-import/schemaReconciliation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/srsMarkers.d.ts +22 -0
- package/dist/kernel-types/src/plugins/roam-import/srsMarkers.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/todo.d.ts +7 -0
- package/dist/kernel-types/src/plugins/roam-import/todo.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/typeCandidates.d.ts +26 -0
- package/dist/kernel-types/src/plugins/roam-import/typeCandidates.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/types.d.ts +32 -0
- package/dist/kernel-types/src/plugins/roam-import/types.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/PanelFocusRecovery.d.ts +38 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/PanelFocusRecovery.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/ShellDecorator.d.ts +35 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/ShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/actions.d.ts +7 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/shell.d.ts +3 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/shell.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/surface.d.ts +4 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/surface.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/walker.d.ts +131 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/walker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/RescheduleToast.d.ts +14 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/RescheduleToast.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/index.d.ts +19 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/indicator.d.ts +9 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/indicator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/moveSrsState.d.ts +8 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/moveSrsState.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/rescheduleDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/rescheduleDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/scheduler.d.ts +24 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/scheduler.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/schema.d.ts +17 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsBlockDateAdapter.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsBlockDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsClipboard.d.ts +9 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsClipboard.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/swipeRightDecorator.d.ts +6 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/swipeRightDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/SwipeActionMenu.d.ts +15 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/SwipeActionMenu.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/actions.d.ts +46 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/anchor.d.ts +9 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/anchor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/events.d.ts +31 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/swipeGesture.d.ts +13 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/swipeGesture.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/RejectionDialog.d.ts +7 -0
- package/dist/kernel-types/src/plugins/sync-status/RejectionDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/SyncStatusHeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/sync-status/SyncStatusHeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/sync-status/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/model.d.ts +27 -0
- package/dist/kernel-types/src/plugins/sync-status/model.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/rejectedHelpers.d.ts +25 -0
- package/dist/kernel-types/src/plugins/sync-status/rejectedHelpers.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/ThemeToggle.d.ts +2 -0
- package/dist/kernel-types/src/plugins/theme-toggle/ThemeToggle.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/theme-toggle/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/theme.d.ts +6 -0
- package/dist/kernel-types/src/plugins/theme-toggle/theme.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/actions.d.ts +9 -0
- package/dist/kernel-types/src/plugins/todo/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/todo/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/todo/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/schema.d.ts +7 -0
- package/dist/kernel-types/src/plugins/todo/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/UpdateIndicator.d.ts +5 -0
- package/dist/kernel-types/src/plugins/update-indicator/UpdateIndicator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/update-indicator/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/loadTimes.d.ts +17 -0
- package/dist/kernel-types/src/plugins/update-indicator/loadTimes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/VideoPlayerRenderer.d.ts +15 -0
- package/dist/kernel-types/src/plugins/video-player/VideoPlayerRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/VideoTimeStamp.d.ts +7 -0
- package/dist/kernel-types/src/plugins/video-player/VideoTimeStamp.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/actions.d.ts +17 -0
- package/dist/kernel-types/src/plugins/video-player/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/events.d.ts +13 -0
- package/dist/kernel-types/src/plugins/video-player/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/video-player/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/markdown.d.ts +3 -0
- package/dist/kernel-types/src/plugins/video-player/markdown.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/notes.d.ts +4 -0
- package/dist/kernel-types/src/plugins/video-player/notes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/remark-timestamps.d.ts +4 -0
- package/dist/kernel-types/src/plugins/video-player/remark-timestamps.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/view.d.ts +5 -0
- package/dist/kernel-types/src/plugins/video-player/view.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/actions.d.ts +10 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/interactions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/interactions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/VisualNavigationShellDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/visual-navigation/VisualNavigationShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/actions.d.ts +7 -0
- package/dist/kernel-types/src/plugins/visual-navigation/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/visual-navigation/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/navigation.d.ts +69 -0
- package/dist/kernel-types/src/plugins/visual-navigation/navigation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/shell.d.ts +3 -0
- package/dist/kernel-types/src/plugins/visual-navigation/shell.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/workspace-header/index.d.ts +8 -0
- package/dist/kernel-types/src/plugins/workspace-header/index.d.ts.map +1 -0
- package/dist/kernel-types/src/registerServiceWorker.d.ts +15 -0
- package/dist/kernel-types/src/registerServiceWorker.d.ts.map +1 -0
- package/dist/kernel-types/src/services/powersync.d.ts +49 -0
- package/dist/kernel-types/src/services/powersync.d.ts.map +1 -0
- package/dist/kernel-types/src/services/supabase.d.ts +6 -0
- package/dist/kernel-types/src/services/supabase.d.ts.map +1 -0
- package/dist/kernel-types/src/services/uploadErrorClassifier.d.ts +16 -0
- package/dist/kernel-types/src/services/uploadErrorClassifier.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/ActiveContexts.d.ts +26 -0
- package/dist/kernel-types/src/shortcuts/ActiveContexts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/HotkeyReconciler.d.ts +24 -0
- package/dist/kernel-types/src/shortcuts/HotkeyReconciler.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/blockActions.d.ts +39 -0
- package/dist/kernel-types/src/shortcuts/blockActions.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/defaultContexts.d.ts +3 -0
- package/dist/kernel-types/src/shortcuts/defaultContexts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/defaultShortcuts.d.ts +22 -0
- package/dist/kernel-types/src/shortcuts/defaultShortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/effectiveActions.d.ts +7 -0
- package/dist/kernel-types/src/shortcuts/effectiveActions.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/runAction.d.ts +20 -0
- package/dist/kernel-types/src/shortcuts/runAction.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/types.d.ts +118 -0
- package/dist/kernel-types/src/shortcuts/types.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/useActionContext.d.ts +25 -0
- package/dist/kernel-types/src/shortcuts/useActionContext.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/utils.d.ts +90 -0
- package/dist/kernel-types/src/shortcuts/utils.d.ts.map +1 -0
- package/dist/kernel-types/src/tutorial/outline.d.ts +39 -0
- package/dist/kernel-types/src/tutorial/outline.d.ts.map +1 -0
- package/dist/kernel-types/src/types.d.ts +104 -0
- package/dist/kernel-types/src/types.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/AliasCollisionToast.d.ts +13 -0
- package/dist/kernel-types/src/utils/AliasCollisionToast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/ClientLocalSettings.d.ts +47 -0
- package/dist/kernel-types/src/utils/ClientLocalSettings.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/array.d.ts +9 -0
- package/dist/kernel-types/src/utils/array.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/async.d.ts +7 -0
- package/dist/kernel-types/src/utils/async.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/backlinkAutocomplete.d.ts +33 -0
- package/dist/kernel-types/src/utils/backlinkAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/blockrefAutocomplete.d.ts +18 -0
- package/dist/kernel-types/src/utils/blockrefAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/callbackSet.d.ts +29 -0
- package/dist/kernel-types/src/utils/callbackSet.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/codemirror.d.ts +46 -0
- package/dist/kernel-types/src/utils/codemirror.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/codemirrorCompletion.d.ts +3 -0
- package/dist/kernel-types/src/utils/codemirrorCompletion.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/copy.d.ts +8 -0
- package/dist/kernel-types/src/utils/copy.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dailyPage.d.ts +7 -0
- package/dist/kernel-types/src/utils/dailyPage.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dialogs.d.ts +38 -0
- package/dist/kernel-types/src/utils/dialogs.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dom.d.ts +4 -0
- package/dist/kernel-types/src/utils/dom.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/exportSqliteDb.d.ts +29 -0
- package/dist/kernel-types/src/utils/exportSqliteDb.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/lastWorkspace.d.ts +4 -0
- package/dist/kernel-types/src/utils/lastWorkspace.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/layoutSessionId.d.ts +11 -0
- package/dist/kernel-types/src/utils/layoutSessionId.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/linkTargetAutocomplete.d.ts +61 -0
- package/dist/kernel-types/src/utils/linkTargetAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/markdownParser.d.ts +12 -0
- package/dist/kernel-types/src/utils/markdownParser.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/navigation.d.ts +64 -0
- package/dist/kernel-types/src/utils/navigation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/object.d.ts +7 -0
- package/dist/kernel-types/src/utils/object.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/panelHistory.d.ts +70 -0
- package/dist/kernel-types/src/utils/panelHistory.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/panelLayoutProjection.d.ts +70 -0
- package/dist/kernel-types/src/utils/panelLayoutProjection.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/paste.d.ts +22 -0
- package/dist/kernel-types/src/utils/paste.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/processorRejectionToast.d.ts +26 -0
- package/dist/kernel-types/src/utils/processorRejectionToast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/propertyCreation.d.ts +4 -0
- package/dist/kernel-types/src/utils/propertyCreation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/propertyNavigation.d.ts +20 -0
- package/dist/kernel-types/src/utils/propertyNavigation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/react.d.ts +2 -0
- package/dist/kernel-types/src/utils/react.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/relativeDate.d.ts +42 -0
- package/dist/kernel-types/src/utils/relativeDate.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/routing.d.ts +23 -0
- package/dist/kernel-types/src/utils/routing.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/safeMode.d.ts +5 -0
- package/dist/kernel-types/src/utils/safeMode.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/scheduleIdle.d.ts +14 -0
- package/dist/kernel-types/src/utils/scheduleIdle.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/selection.d.ts +74 -0
- package/dist/kernel-types/src/utils/selection.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/state.d.ts +17 -0
- package/dist/kernel-types/src/utils/state.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/templateLiterals.d.ts +6 -0
- package/dist/kernel-types/src/utils/templateLiterals.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/time.d.ts +3 -0
- package/dist/kernel-types/src/utils/time.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/toast.d.ts +65 -0
- package/dist/kernel-types/src/utils/toast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/types.d.ts +6 -0
- package/dist/kernel-types/src/utils/types.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/viewTransition.d.ts +29 -0
- package/dist/kernel-types/src/utils/viewTransition.d.ts.map +1 -0
- package/dist/kernelDts.d.ts +13 -0
- package/dist/kernelDts.d.ts.map +1 -0
- package/dist/kernelDts.js +47 -0
- package/dist/kernelDts.js.map +1 -0
- package/dist/protocol.d.ts +470 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +365 -0
- package/dist/protocol.js.map +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +554 -0
- package/dist/server.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** ValuePreset — the user-facing value vocabulary that maps onto codecs.
|
|
2
|
+
* See user-defined-properties.md §1 for the full design. */
|
|
3
|
+
import type { ComponentType } from 'react';
|
|
4
|
+
import type { Codec } from './codecs';
|
|
5
|
+
import type { PropertyEditor } from './propertySchema';
|
|
6
|
+
export interface ValuePresetConfigEditorProps<TConfig> {
|
|
7
|
+
value: TConfig;
|
|
8
|
+
onChange: (next: TConfig) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface ValuePreset<TValue = unknown, TConfig = void> {
|
|
11
|
+
/** Stable id; matches the codec's `type` for codecs built by this
|
|
12
|
+
* preset. Persisted on user-defined schema blocks. */
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/** Human label for the picker. */
|
|
15
|
+
readonly label: string;
|
|
16
|
+
/** Build the codec from preset-specific config. Called at schema
|
|
17
|
+
* registration time and on runtime rebuild — must be deterministic
|
|
18
|
+
* in `config` and only run on validated config (see configCodec). */
|
|
19
|
+
readonly build: (config: TConfig) => Codec<TValue>;
|
|
20
|
+
/** Default value used when the schema is registered and the property
|
|
21
|
+
* is first materialised. Lives on the resulting `PropertySchema`. */
|
|
22
|
+
readonly defaultValue: TValue;
|
|
23
|
+
/** Default config used when the preset is registered through the
|
|
24
|
+
* AddPropertyForm or the optimistic-materialize path without
|
|
25
|
+
* user-supplied config. Required when `TConfig` is non-void; void
|
|
26
|
+
* presets omit it. */
|
|
27
|
+
readonly defaultConfig?: TConfig;
|
|
28
|
+
/** Validates and parses raw JSON read from `presetConfigProp` into
|
|
29
|
+
* `TConfig`. Required when `TConfig` is non-void. Throws on
|
|
30
|
+
* malformed input — `UserSchemasService` catches, logs, and skips
|
|
31
|
+
* schemas with invalid config rather than passing untyped JSON to
|
|
32
|
+
* `build`. */
|
|
33
|
+
readonly configCodec?: Codec<TConfig>;
|
|
34
|
+
/** Editor used for any property whose codec's `type` matches this
|
|
35
|
+
* preset's `id`. Required — every preset ships its own editor.
|
|
36
|
+
* Exact-name `PropertyEditorOverride.Editor` contributions still
|
|
37
|
+
* win first. */
|
|
38
|
+
readonly Editor: PropertyEditor<TValue>;
|
|
39
|
+
/** Optional glyph for the property-row button, config sheet, and
|
|
40
|
+
* picker. Plugins without designed icons can omit; falls back to a
|
|
41
|
+
* generic icon. */
|
|
42
|
+
readonly Glyph?: ComponentType<{
|
|
43
|
+
className?: string;
|
|
44
|
+
}>;
|
|
45
|
+
/** Optional config UI rendered inside the property-schema block
|
|
46
|
+
* renderer (the side panel users open by clicking the property
|
|
47
|
+
* glyph). Only meaningful when `TConfig` is non-void. */
|
|
48
|
+
readonly ConfigEditor?: ComponentType<ValuePresetConfigEditorProps<TConfig>>;
|
|
49
|
+
}
|
|
50
|
+
/** Variance-erased preset type for storage in heterogeneous
|
|
51
|
+
* collections (`valuePresetsFacet`'s contributions, etc.). */
|
|
52
|
+
export type AnyValuePreset = ValuePreset<any, any>;
|
|
53
|
+
/** Helper for plugin authors to define a preset with full type
|
|
54
|
+
* inference on the value/config slots. */
|
|
55
|
+
export declare const definePreset: <TValue = unknown, TConfig = void>(preset: ValuePreset<TValue, TConfig>) => ValuePreset<TValue, TConfig>;
|
|
56
|
+
//# sourceMappingURL=valuePresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valuePresets.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/api/valuePresets.ts"],"names":[],"mappings":"AAAA;6DAC6D;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,MAAM,WAAW,4BAA4B,CAAC,OAAO;IACnD,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,WAAW,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,IAAI;IAC3D;2DACuD;IACvD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;0EAEsE;IACtE,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,KAAK,CAAC,MAAM,CAAC,CAAA;IAClD;0EACsE;IACtE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B;;;2BAGuB;IACvB,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC;;;;mBAIe;IACf,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrC;;;qBAGiB;IACjB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IACvC;;wBAEoB;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;IACpD;;8DAE0D;IAC1D,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAAA;CAC7E;AAED;+DAC+D;AAE/D,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAElD;2CAC2C;AAC3C,eAAO,MAAM,YAAY,GAAI,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,IAAI,EAC3D,QAAQ,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,KACnC,WAAW,CAAC,MAAM,EAAE,OAAO,CAAW,CAAA"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `Block` — sync facade + Handle<BlockData|null> for a single block row
|
|
3
|
+
* (spec §5.1, §5.2).
|
|
4
|
+
*
|
|
5
|
+
* Block satisfies the Handle interface structurally (peek/load/subscribe/
|
|
6
|
+
* read/status/key) AND adds the OO sugar that 95% of imperative call
|
|
7
|
+
* sites use: `data` (sync, throws), `childIds` / `children` / `parent`
|
|
8
|
+
* (sync tree relatives), `get` / `peekProperty` (typed property reads),
|
|
9
|
+
* `set` / `setContent` / `delete` (single-block write sugar). Picking one
|
|
10
|
+
* object that does both jobs (vs. a separate `Handle` and `Block`) keeps
|
|
11
|
+
* the call-site surface uniform and unifies "row reactivity" with "row
|
|
12
|
+
* imperative work" under one identity-stable instance — see the
|
|
13
|
+
* data-layer-redesign task §13.2 design discussion.
|
|
14
|
+
*
|
|
15
|
+
* Identity: the same `Block` instance is returned from `repo.block(id)`
|
|
16
|
+
* for a given id (Repo holds them in `blockFacades`). Block does NOT
|
|
17
|
+
* register with `HandleStore` — its row-grain subscriptions go through
|
|
18
|
+
* `BlockCache.subscribe(id, …)` (already in place from Phase 1) and the
|
|
19
|
+
* cache fires whenever the snapshot changes. HandleStore is the registry
|
|
20
|
+
* for *collection* handles (`repo.children/subtree/ancestors/backlinks`),
|
|
21
|
+
* which need the dependency-shaped invalidation index that the row-grain
|
|
22
|
+
* cache already provides for free.
|
|
23
|
+
*/
|
|
24
|
+
import { type BlockData, type Handle, type HandleStatus, type PropertySchema, type Unsubscribe } from '@/data/api';
|
|
25
|
+
import type { Repo } from './repo';
|
|
26
|
+
import type { LoaderHandle } from './internals/handleStore';
|
|
27
|
+
export declare class Block implements Handle<BlockData | null> {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly repo: Repo;
|
|
30
|
+
/** Inflight `load()` promise — dedup'd at the Block level so Suspense
|
|
31
|
+
* paths can throw a stable promise across renders. Cleared once it
|
|
32
|
+
* settles. The cache also has its own `dedupLoad` helper, but
|
|
33
|
+
* `repo.load` deliberately doesn't use it (different `opts` would
|
|
34
|
+
* silently merge); doing the dedup here keeps `read()` honest. */
|
|
35
|
+
private inflight;
|
|
36
|
+
/** Counts overlapping `load()` calls in flight. Drives `status()`'s
|
|
37
|
+
* 'loading' branch — needed since the cache itself doesn't know who
|
|
38
|
+
* is currently loading what. */
|
|
39
|
+
private loadingCount;
|
|
40
|
+
/** Last error from a failed load. `status()` returns 'error' until the
|
|
41
|
+
* next successful load clears it. */
|
|
42
|
+
private lastError;
|
|
43
|
+
constructor(repo: Repo, id: string);
|
|
44
|
+
/** Stable Handle key — namespaced so a handle store dedup index could
|
|
45
|
+
* include Block (we don't currently register, but the key is part of
|
|
46
|
+
* the contract so the option remains open). */
|
|
47
|
+
get key(): string;
|
|
48
|
+
/** Sync read; throws BlockNotLoadedError if the row isn't loaded,
|
|
49
|
+
* BlockNotFoundError if `repo.load` previously confirmed the row
|
|
50
|
+
* doesn't exist (§5.2). A soft-deleted row counts as loaded — the
|
|
51
|
+
* facade exposes it with `deleted: true` so undo flows / devtools
|
|
52
|
+
* can inspect it; consumers that want only-live filter themselves. */
|
|
53
|
+
get data(): BlockData;
|
|
54
|
+
/** Soft access (§5.2):
|
|
55
|
+
* undefined → not loaded yet
|
|
56
|
+
* null → confirmed missing (load returned null)
|
|
57
|
+
* BlockData → loaded (possibly soft-deleted) */
|
|
58
|
+
peek(): BlockData | undefined | null;
|
|
59
|
+
/** Ensure loaded. Idempotent + dedup'd at the Block level so Suspense
|
|
60
|
+
* paths can throw a stable promise across renders. Returns null when
|
|
61
|
+
* the row doesn't exist.
|
|
62
|
+
*
|
|
63
|
+
* Cache fast-path: if the row is already in `BlockCache` we return
|
|
64
|
+
* synchronously without going to SQL. The cache is the source of
|
|
65
|
+
* truth post-tx (`repo.tx`'s commit pipeline writes it) and post-
|
|
66
|
+
* sync (`rowEventsTail`'s `applySyncSnapshot` keeps it current), so
|
|
67
|
+
* a redundant SQL read just costs a connection round-trip that
|
|
68
|
+
* contends with PowerSync's upload/download work. The hot path
|
|
69
|
+
* (keyboard navigation through `nextVisibleBlock` /
|
|
70
|
+
* `previousVisibleBlock`) does 2-3 of these per arrow press —
|
|
71
|
+
* occasionally blocked behind a slow sync drain (p99 ~600 ms in a
|
|
72
|
+
* big-DB profile). Mirrors `repo.exists`'s short-circuit and the
|
|
73
|
+
* `block.peek() ?? await block.load()` idiom.
|
|
74
|
+
*
|
|
75
|
+
* The `confirmed-missing` marker is NOT a fast-path — `load()` is an
|
|
76
|
+
* "ensure loaded" operation, and a missing marker is just the cached
|
|
77
|
+
* result of a prior load. A caller asking again means they want SQL
|
|
78
|
+
* to re-verify; the marker may be stale relative to a sync that
|
|
79
|
+
* hasn't drained yet. */
|
|
80
|
+
load(): Promise<BlockData | null>;
|
|
81
|
+
/** Subscribe to cache mutations for this id. Listener fires with the
|
|
82
|
+
* current `BlockData | null` (null = confirmed missing or evicted). */
|
|
83
|
+
subscribe(listener: (data: BlockData | null) => void): Unsubscribe;
|
|
84
|
+
/** Suspense-path read. Returns the value if loaded; throws a Promise
|
|
85
|
+
* React can `await` if not loaded yet; throws the stored error if the
|
|
86
|
+
* last load failed. (Spec §5.1.) */
|
|
87
|
+
read(): BlockData | null;
|
|
88
|
+
/** Handle lifecycle status (spec §5.1):
|
|
89
|
+
* 'ready' — snapshot loaded OR row confirmed missing
|
|
90
|
+
* 'loading' — at least one `load()` call in flight, no value yet
|
|
91
|
+
* 'error' — last load failed; cleared by the next successful load
|
|
92
|
+
* 'idle' — no load attempted yet, no snapshot in cache */
|
|
93
|
+
status(): HandleStatus;
|
|
94
|
+
/** Sync property read with codec.decode + schema defaultValue
|
|
95
|
+
* fallback. Throws BlockNotLoadedError if the row isn't loaded. */
|
|
96
|
+
get<T>(schema: PropertySchema<T>): T;
|
|
97
|
+
/** Like `get` but doesn't substitute the default — returns undefined
|
|
98
|
+
* when the property is absent. */
|
|
99
|
+
peekProperty<T>(schema: PropertySchema<T>): T | undefined;
|
|
100
|
+
get types(): readonly string[];
|
|
101
|
+
hasType(typeId: string): boolean;
|
|
102
|
+
/** Reactive child-id list. Delegates to `repo.query.childIds({id})` —
|
|
103
|
+
* the LoaderHandle owns SQL + caching + invalidation, so call sites
|
|
104
|
+
* never need to ask the BlockCache about children directly.
|
|
105
|
+
* Imperative call sites do `await block.childIds.load()`; reactive
|
|
106
|
+
* ones use `useChildIds(block)` (which subscribes to the same
|
|
107
|
+
* handle). */
|
|
108
|
+
get childIds(): LoaderHandle<string[]>;
|
|
109
|
+
/** Reactive children-rows list. Same shape as `childIds` but loads
|
|
110
|
+
* the full BlockData rows (per-row deps included), suitable for
|
|
111
|
+
* imperative tree walks that need content / properties without an
|
|
112
|
+
* extra `repo.block(id).load()` per child. Callers wanting Block
|
|
113
|
+
* facades do `(await block.children.load()).map(d => repo.block(d.id))`. */
|
|
114
|
+
get children(): LoaderHandle<BlockData[]>;
|
|
115
|
+
/** Parent as Block, or null only if this block has no parent
|
|
116
|
+
* (workspace root). Returns the identity-stable facade from
|
|
117
|
+
* `repo.block(parentId)` regardless of whether the parent row is
|
|
118
|
+
* in cache — call `.load()` on the result if you need data.
|
|
119
|
+
*
|
|
120
|
+
* Note: requires this block's own row to be in cache (so we know
|
|
121
|
+
* `parentId`). Returns null if this block isn't loaded yet — the
|
|
122
|
+
* caller is expected to have awaited a prior `load()` if it's
|
|
123
|
+
* reading parent imperatively. */
|
|
124
|
+
get parent(): Block | null;
|
|
125
|
+
/** Set a typed property. Each call is its own tx, equivalent to
|
|
126
|
+
* `repo.mutate.setProperty({id, schema, value})`. */
|
|
127
|
+
set<T>(schema: PropertySchema<T>, value: T): Promise<void>;
|
|
128
|
+
addType(typeId: string): Promise<void>;
|
|
129
|
+
removeType(typeId: string): Promise<void>;
|
|
130
|
+
toggleType(typeId: string): Promise<void>;
|
|
131
|
+
/** Set the block's content. */
|
|
132
|
+
setContent(content: string): Promise<void>;
|
|
133
|
+
/** Subtree-aware soft-delete (mirrors legacy `Block.delete`). */
|
|
134
|
+
delete(): Promise<void>;
|
|
135
|
+
}
|
|
136
|
+
/** Internal helper: throw a typed error for "block confirmed missing
|
|
137
|
+
* by repo.load". Called by load paths to convert null returns into a
|
|
138
|
+
* thrown error when the caller wants strict behavior. */
|
|
139
|
+
export declare const requireLoadedBlock: (block: Block) => BlockData;
|
|
140
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../../src/data/block.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAG3D,qBAAa,KAAM,YAAW,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IAEnB;;;;uEAImE;IACnE,OAAO,CAAC,QAAQ,CAAyC;IAEzD;;qCAEiC;IACjC,OAAO,CAAC,YAAY,CAAI;IAExB;0CACsC;IACtC,OAAO,CAAC,SAAS,CAAqB;gBAE1B,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM;IAKlC;;oDAEgD;IAChD,IAAI,GAAG,IAAI,MAAM,CAA8B;IAI/C;;;;2EAIuE;IACvE,IAAI,IAAI,IAAI,SAAS,CAKpB;IAED;;;uDAGmD;IACnD,IAAI,IAAI,SAAS,GAAG,SAAS,GAAG,IAAI;IAOpC;;;;;;;;;;;;;;;;;;;;8BAoB0B;IAC1B,IAAI,IAAI,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAuCjC;4EACwE;IACxE,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,GAAG,WAAW;IAOlE;;yCAEqC;IACrC,IAAI,IAAI,SAAS,GAAG,IAAI;IAaxB;;;;oEAIgE;IAChE,MAAM,IAAI,YAAY;IAUtB;wEACoE;IACpE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;IAOpC;uCACmC;IACnC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS;IAQzD,IAAI,KAAK,IAAI,SAAS,MAAM,EAAE,CAG7B;IAED,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAMhC;;;;;mBAKe;IACf,IAAI,QAAQ,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC,CAErC;IAED;;;;iFAI6E;IAC7E,IAAI,QAAQ,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC,CAExC;IAED;;;;;;;;uCAQmC;IACnC,IAAI,MAAM,IAAI,KAAK,GAAG,IAAI,CAKzB;IAID;0DACsD;IAChD,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,+BAA+B;IACzB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,iEAAiE;IAC3D,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B;AAED;;0DAE0D;AAC1D,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,KAAG,SAKjD,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { BlockData } from '@/types';
|
|
2
|
+
/** Counter object for BlockCache write/notify activity (perf-baseline
|
|
3
|
+
* follow-up #4). One instance per BlockCache; increments inline in
|
|
4
|
+
* the hot path. Snapshot via `snapshot()` for a frozen plain-object
|
|
5
|
+
* view consumers can diff between samples. */
|
|
6
|
+
export declare class BlockCacheMetrics {
|
|
7
|
+
/** Total `setSnapshot(...)` calls (every entry, every path). Includes
|
|
8
|
+
* calls reached through `applySyncSnapshot`. */
|
|
9
|
+
setSnapshotCalls: number;
|
|
10
|
+
/** `setSnapshot` calls where the incoming fingerprint matched the
|
|
11
|
+
* cached one — dedup hit, no listeners walked. */
|
|
12
|
+
setSnapshotDedupHits: number;
|
|
13
|
+
/** `setSnapshot` calls that actually wrote and notified. */
|
|
14
|
+
setSnapshotDedupMisses: number;
|
|
15
|
+
/** Total `applySyncSnapshot(...)` calls (sync-arrival LWW path). */
|
|
16
|
+
applySyncSnapshotCalls: number;
|
|
17
|
+
/** `applySyncSnapshot` calls rejected because the incoming
|
|
18
|
+
* `updatedAt` was older than what's already cached. */
|
|
19
|
+
applySyncSnapshotRejected: number;
|
|
20
|
+
/** Total internal `notify(id)` invocations across all paths
|
|
21
|
+
* (setSnapshot writes, deleteSnapshot, markMissing, clearMissing).
|
|
22
|
+
* Counts the call, not the per-listener fan-out. */
|
|
23
|
+
notifies: number;
|
|
24
|
+
reset(): void;
|
|
25
|
+
/** Frozen plain-object snapshot — safe to keep as a baseline for
|
|
26
|
+
* diffing between samples. */
|
|
27
|
+
snapshot(): Readonly<Record<string, number>>;
|
|
28
|
+
}
|
|
29
|
+
/** In-memory mirror of the per-row state of `blocks`. Holds:
|
|
30
|
+
*
|
|
31
|
+
* - per-id BlockData snapshots (with subscriber list)
|
|
32
|
+
* - confirmed-missing markers (for the Block facade's loaded/missing
|
|
33
|
+
* distinction per spec §5.2)
|
|
34
|
+
*
|
|
35
|
+
* Collection state (children, subtree, ancestors, backlinks) is NOT
|
|
36
|
+
* cached here — it lives on `LoaderHandle`s registered with the
|
|
37
|
+
* `HandleStore`, which is the single home for collection caching +
|
|
38
|
+
* invalidation. Imperative callers that want children read from the
|
|
39
|
+
* `repo.children(id)` / `repo.childIds(id)` handles, not from this
|
|
40
|
+
* class. */
|
|
41
|
+
export declare class BlockCache {
|
|
42
|
+
private readonly snapshots;
|
|
43
|
+
private readonly listeners;
|
|
44
|
+
private readonly pendingLoads;
|
|
45
|
+
/** Confirmed-missing markers — ids the loader looked up and the row
|
|
46
|
+
* did not exist (or was soft-deleted). Lets the Block facade
|
|
47
|
+
* distinguish "not loaded yet" (peek → undefined) from "confirmed
|
|
48
|
+
* missing" (peek → null) per spec §5.2. Cleared on setSnapshot
|
|
49
|
+
* (the row exists now). */
|
|
50
|
+
private readonly missingIds;
|
|
51
|
+
/** Mutable counters for cache write/notify activity. Increments
|
|
52
|
+
* inline in the hot path; consumers snapshot via `metrics.snapshot()`
|
|
53
|
+
* through `repo.metrics()`. */
|
|
54
|
+
readonly metrics: BlockCacheMetrics;
|
|
55
|
+
getSnapshot(id: string): BlockData | undefined;
|
|
56
|
+
hasSnapshot(id: string): boolean;
|
|
57
|
+
requireSnapshot(id: string): BlockData;
|
|
58
|
+
/** Unconditional snapshot write. Used by the local commit pipeline,
|
|
59
|
+
* whose write IS the latest authoritative state for the row. Returns
|
|
60
|
+
* true if listeners were notified (i.e. the snapshot actually
|
|
61
|
+
* changed by fingerprint). */
|
|
62
|
+
setSnapshot(snapshot: BlockData): boolean;
|
|
63
|
+
/** LWW-gated snapshot write for sync-arrival paths (row_events tail,
|
|
64
|
+
* re-reads from SQL inside `repo.load`, query hydrate-rows). Rejects
|
|
65
|
+
* an incoming snapshot whose `updatedAt` is NOT STRICTLY NEWER than
|
|
66
|
+
* what's already cached — PowerSync can deliver an older row state
|
|
67
|
+
* during the upload window while the local commit pipeline has
|
|
68
|
+
* already advanced the cache, and re-reading the SQLite row after a
|
|
69
|
+
* sync-clobber would otherwise reintroduce the stale state.
|
|
70
|
+
*
|
|
71
|
+
* Why `<=` not `<`: under rapid local typing, two writes can share
|
|
72
|
+
* `Date.now()` ms (and processor writes with `skipMetadata: true`
|
|
73
|
+
* preserve the prior `updatedAt`, multiplying the collision
|
|
74
|
+
* surface). An in-flight query that reads SQL between two such
|
|
75
|
+
* same-ms writes can fire `applySyncSnapshot` LATER with the
|
|
76
|
+
* earlier-but-equal-ms content — `<` would accept it and clobber
|
|
77
|
+
* the cache with stale content. `<=` rejects equal-ms snapshots;
|
|
78
|
+
* same-`updatedAt`-same-content rounds to a no-op anyway via
|
|
79
|
+
* fingerprint dedup, so this only blocks the harmful clobber. */
|
|
80
|
+
applySyncSnapshot(snapshot: BlockData): boolean;
|
|
81
|
+
deleteSnapshot(id: string): boolean;
|
|
82
|
+
subscribe(id: string, listener: () => void): () => void;
|
|
83
|
+
trackedIds(): Set<string>;
|
|
84
|
+
dedupLoad(id: string, loader: () => Promise<BlockData | undefined>): Promise<BlockData | undefined>;
|
|
85
|
+
private notify;
|
|
86
|
+
/** Mark `id` as confirmed-missing — `repo.load` looked it up and the
|
|
87
|
+
* row didn't exist (or was soft-deleted). Block.peek will return
|
|
88
|
+
* null instead of undefined; Block.data will throw
|
|
89
|
+
* BlockNotFoundError instead of BlockNotLoadedError.
|
|
90
|
+
* Notifies subscribers on the first transition into missing — a
|
|
91
|
+
* subscribed Block facade re-renders when its row is confirmed
|
|
92
|
+
* gone. Repeat calls (already missing) are no-ops to avoid
|
|
93
|
+
* spurious re-renders.
|
|
94
|
+
*
|
|
95
|
+
* Also drops any cached snapshot for this id. Block.peek/data,
|
|
96
|
+
* status(), and repo.exists all consult the snapshot map first; if
|
|
97
|
+
* a stale snapshot remained behind a freshly-set missing marker,
|
|
98
|
+
* the facade would keep returning the old row state and never
|
|
99
|
+
* observe the deletion. Notifies once even when both sides changed
|
|
100
|
+
* — subscribers don't care which transition fired, only that they
|
|
101
|
+
* should re-read. */
|
|
102
|
+
markMissing(id: string): boolean;
|
|
103
|
+
/** True iff `id` was previously confirmed-missing AND no snapshot
|
|
104
|
+
* has since arrived. */
|
|
105
|
+
isMissing(id: string): boolean;
|
|
106
|
+
/** Clear the confirmed-missing marker — used by tests or by the
|
|
107
|
+
* row_events tail when a sync-applied insert means we should re-check.
|
|
108
|
+
* Notifies subscribers if the marker was actually cleared so the
|
|
109
|
+
* facade exits the "confirmed-missing" branch on its next read.
|
|
110
|
+
* (setSnapshot also clears the marker, but it always notifies
|
|
111
|
+
* on its own as part of the snapshot-update path.) */
|
|
112
|
+
clearMissing(id: string): boolean;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=blockCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockCache.d.ts","sourceRoot":"","sources":["../../../../../../src/data/blockCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAgBxC;;;+CAG+C;AAC/C,qBAAa,iBAAiB;IAC5B;qDACiD;IACjD,gBAAgB,SAAI;IACpB;uDACmD;IACnD,oBAAoB,SAAI;IACxB,4DAA4D;IAC5D,sBAAsB,SAAI;IAC1B,oEAAoE;IACpE,sBAAsB,SAAI;IAC1B;4DACwD;IACxD,yBAAyB,SAAI;IAC7B;;yDAEqD;IACrD,QAAQ,SAAI;IAEZ,KAAK,IAAI,IAAI;IASb;mCAC+B;IAC/B,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAU7C;AAED;;;;;;;;;;;aAWa;AACb,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqC;IAC/D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoD;IACjF;;;;gCAI4B;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoB;IAC/C;;oCAEgC;IAChC,QAAQ,CAAC,OAAO,oBAA0B;IAE1C,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAI9C,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIhC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS;IAQtC;;;mCAG+B;IAC/B,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO;IAiBzC;;;;;;;;;;;;;;;;sEAgBkE;IAClE,iBAAiB,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO;IAU/C,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAOnC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAmBvD,UAAU,IAAI,GAAG,CAAC,MAAM,CAAC;IAIzB,SAAS,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,GAC3C,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAWjC,OAAO,CAAC,MAAM;IAOd;;;;;;;;;;;;;;;0BAesB;IACtB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAShC;6BACyB;IACzB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;;2DAKuD;IACvD,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAKlC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { PendingStatementParameter } from '@powersync/web';
|
|
2
|
+
import type { BlockData } from '@/data/api';
|
|
3
|
+
/** Storage shape — snake_case columns matching the Postgres schema and the
|
|
4
|
+
* local SQLite table. Domain shape (camelCase) lives on `BlockData` in
|
|
5
|
+
* `@/data/api`; `parseBlockRow` / `blockToRowParams` are the only places
|
|
6
|
+
* either shape leaks into the other. See data-layer-redesign §4.1.1. */
|
|
7
|
+
export interface BlockRow {
|
|
8
|
+
id: string;
|
|
9
|
+
workspace_id: string;
|
|
10
|
+
parent_id: string | null;
|
|
11
|
+
order_key: string;
|
|
12
|
+
content: string;
|
|
13
|
+
properties_json: string;
|
|
14
|
+
references_json: string;
|
|
15
|
+
created_at: number;
|
|
16
|
+
updated_at: number;
|
|
17
|
+
created_by: string;
|
|
18
|
+
updated_by: string;
|
|
19
|
+
deleted: 0 | 1;
|
|
20
|
+
}
|
|
21
|
+
/** Local SQLite column definitions. The PowerSync sync rule projects the
|
|
22
|
+
* same column names against Postgres (`scripts/gen-sync-config.ts` reads
|
|
23
|
+
* this array directly), so client and server stay structurally aligned —
|
|
24
|
+
* see feedback_powersync_sync_config_with_schema. */
|
|
25
|
+
export declare const BLOCK_STORAGE_COLUMNS: readonly [{
|
|
26
|
+
readonly name: "id";
|
|
27
|
+
readonly definition: "id TEXT PRIMARY KEY NOT NULL";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "workspace_id";
|
|
30
|
+
readonly definition: "workspace_id TEXT NOT NULL";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "parent_id";
|
|
33
|
+
readonly definition: "parent_id TEXT";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "order_key";
|
|
36
|
+
readonly definition: "order_key TEXT NOT NULL";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "content";
|
|
39
|
+
readonly definition: "content TEXT NOT NULL DEFAULT ''";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "properties_json";
|
|
42
|
+
readonly definition: "properties_json TEXT NOT NULL DEFAULT '{}'";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "references_json";
|
|
45
|
+
readonly definition: "references_json TEXT NOT NULL DEFAULT '[]'";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "created_at";
|
|
48
|
+
readonly definition: "created_at INTEGER NOT NULL";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "updated_at";
|
|
51
|
+
readonly definition: "updated_at INTEGER NOT NULL";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "created_by";
|
|
54
|
+
readonly definition: "created_by TEXT NOT NULL";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "updated_by";
|
|
57
|
+
readonly definition: "updated_by TEXT NOT NULL";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "deleted";
|
|
60
|
+
readonly definition: "deleted INTEGER NOT NULL DEFAULT 0";
|
|
61
|
+
}];
|
|
62
|
+
export declare const SELECT_BLOCK_COLUMNS_SQL: string;
|
|
63
|
+
export declare const buildQualifiedBlockColumnsSql: (tableName: string) => string;
|
|
64
|
+
export declare const CREATE_BLOCKS_TABLE_SQL: string;
|
|
65
|
+
/** Sibling iteration index. Matches the server-side
|
|
66
|
+
* `idx_blocks_parent_order` in `supabase/migrations/<...>_initial_schema_v2.sql`.
|
|
67
|
+
* `(order_key, id)` tiebreak handles fractional-indexing-jittered key
|
|
68
|
+
* collisions for deterministic post-sync ordering. */
|
|
69
|
+
export declare const CREATE_BLOCKS_PARENT_ORDER_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_blocks_parent_order\n ON blocks (parent_id, order_key, id)\n WHERE deleted = 0\n";
|
|
70
|
+
export declare const CREATE_BLOCKS_WORKSPACE_ACTIVE_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_blocks_workspace_active\n ON blocks (workspace_id)\n WHERE deleted = 0\n";
|
|
71
|
+
export declare const UPSERT_BLOCK_SQL: string;
|
|
72
|
+
export declare const BLOCKS_RAW_TABLE: {
|
|
73
|
+
put: {
|
|
74
|
+
sql: string;
|
|
75
|
+
params: PendingStatementParameter[];
|
|
76
|
+
};
|
|
77
|
+
delete: {
|
|
78
|
+
sql: string;
|
|
79
|
+
params: "Id"[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const buildBlockCrudJsonSql: (rowRef: string) => string;
|
|
83
|
+
export declare const buildBlockSnapshotJsonSql: (rowRef: string) => string;
|
|
84
|
+
export declare const parseBlockSnapshotJson: (value: string | null | undefined) => BlockData | undefined;
|
|
85
|
+
export declare const parseBlockRow: (row: BlockRow) => BlockData;
|
|
86
|
+
type BlockRowParams = [
|
|
87
|
+
id: string,
|
|
88
|
+
workspaceId: string,
|
|
89
|
+
parentId: string | null,
|
|
90
|
+
orderKey: string,
|
|
91
|
+
content: string,
|
|
92
|
+
propertiesJson: string,
|
|
93
|
+
referencesJson: string,
|
|
94
|
+
createdAt: number,
|
|
95
|
+
updatedAt: number,
|
|
96
|
+
createdBy: string,
|
|
97
|
+
updatedBy: string,
|
|
98
|
+
deleted: 0 | 1
|
|
99
|
+
];
|
|
100
|
+
export declare const blockToRowParams: (blockData: BlockData) => BlockRowParams;
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=blockSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockSchema.d.ts","sourceRoot":"","sources":["../../../../../../src/data/blockSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,gBAAgB,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAA;AAE3D;;;yEAGyE;AACzE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAIlB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;CACf;AASD;;;sDAGsD;AACtD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAagB,CAAA;AAwBlD,eAAO,MAAM,wBAAwB,QAAmC,CAAA;AAExE,eAAO,MAAM,6BAA6B,GAAI,WAAW,MAAM,WAG7C,CAAA;AAElB,eAAO,MAAM,uBAAuB,QAInC,CAAA;AAED;;;uDAGuD;AACvD,eAAO,MAAM,oCAAoC,0HAIhD,CAAA;AAED,eAAO,MAAM,wCAAwC,kHAIpD,CAAA;AAED,eAAO,MAAM,gBAAgB,QAQ5B,CAAA;AAgBD,eAAO,MAAM,gBAAgB;;;;;;;;;CAiBL,CAAA;AAExB,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,WAInD,CAAA;AAsBD,eAAO,MAAM,yBAAyB,GAAI,QAAQ,MAAM,WAIvD,CAAA;AAaD,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,0BACQ,CAAA;AAE/E,eAAO,MAAM,aAAa,GAAI,KAAK,QAAQ,KAAG,SAa5C,CAAA;AAEF,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI;IACvB,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,CAAC,GAAG,CAAC;CACf,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,WAAW,SAAS,KAAG,cAavD,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TypeContribution } from '@/data/api';
|
|
2
|
+
export declare const EXTENSION_TYPE = "extension";
|
|
3
|
+
export declare const PAGE_TYPE = "page";
|
|
4
|
+
export declare const PANEL_TYPE = "panel";
|
|
5
|
+
export declare const PANEL_STACK_TYPE = "panel-stack";
|
|
6
|
+
/** User-defined property schemas live as blocks of this type
|
|
7
|
+
* (user-defined-properties §4). Kernel-owned; users don't create or
|
|
8
|
+
* remove the type contribution itself. */
|
|
9
|
+
export declare const PROPERTY_SCHEMA_TYPE = "property-schema";
|
|
10
|
+
/** Marker type for the singleton Properties page that hosts every
|
|
11
|
+
* property-schema block in a workspace. */
|
|
12
|
+
export declare const PROPERTIES_PAGE_TYPE = "panel:properties";
|
|
13
|
+
/** User-defined types live as blocks of this type
|
|
14
|
+
* (user-defined-types Phase 1). Kernel-owned; users don't create or
|
|
15
|
+
* remove the type contribution itself. */
|
|
16
|
+
export declare const BLOCK_TYPE_TYPE = "block-type";
|
|
17
|
+
/** Marker type for the singleton Types page that hosts every
|
|
18
|
+
* block-type block in a workspace. */
|
|
19
|
+
export declare const TYPES_PAGE_TYPE = "panel:types";
|
|
20
|
+
export declare const KERNEL_TYPE_CONTRIBUTIONS: readonly TypeContribution[];
|
|
21
|
+
//# sourceMappingURL=blockTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockTypes.d.ts","sourceRoot":"","sources":["../../../../../../src/data/blockTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAanE,eAAO,MAAM,cAAc,cAAc,CAAA;AACzC,eAAO,MAAM,SAAS,SAAS,CAAA;AAC/B,eAAO,MAAM,UAAU,UAAU,CAAA;AACjC,eAAO,MAAM,gBAAgB,gBAAgB,CAAA;AAC7C;;2CAE2C;AAC3C,eAAO,MAAM,oBAAoB,oBAAoB,CAAA;AACrD;4CAC4C;AAC5C,eAAO,MAAM,oBAAoB,qBAAqB,CAAA;AACtD;;2CAE2C;AAC3C,eAAO,MAAM,eAAe,eAAe,CAAA;AAC3C;uCACuC;AACvC,eAAO,MAAM,eAAe,gBAAgB,CAAA;AAE5C,eAAO,MAAM,yBAAyB,EAAE,SAAS,gBAAgB,EAiChE,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data-layer facets — the bridge between the kernel + plugin
|
|
3
|
+
* contributions and the `Repo` lifecycle (spec §6, §8).
|
|
4
|
+
*
|
|
5
|
+
* Stage 1.4 ships `mutatorsFacet` only. The remaining four facets
|
|
6
|
+
* (`queriesFacet`, `propertySchemasFacet`, `propertyEditorOverridesFacet`,
|
|
7
|
+
* `postCommitProcessorsFacet`) land in stages 1.5+ as the matching
|
|
8
|
+
* machinery comes online.
|
|
9
|
+
*/
|
|
10
|
+
import type { AnyMutator, AnyPostCommitProcessor, AnyPropertyEditorOverride, AnyPropertySchema, AnyQuery, AnyValuePreset, TypeContribution } from '@/data/api';
|
|
11
|
+
import type { InvalidationRule } from './invalidation.ts';
|
|
12
|
+
export interface LocalSchemaDb {
|
|
13
|
+
execute: (sql: string) => Promise<unknown>;
|
|
14
|
+
getOptional: <T>(sql: string) => Promise<T | null>;
|
|
15
|
+
}
|
|
16
|
+
export interface LocalSchemaBackfill {
|
|
17
|
+
id: string;
|
|
18
|
+
run: (db: LocalSchemaDb) => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export interface LocalSchemaContribution {
|
|
21
|
+
id: string;
|
|
22
|
+
statements?: readonly string[];
|
|
23
|
+
triggerNames?: readonly string[];
|
|
24
|
+
backfills?: readonly LocalSchemaBackfill[];
|
|
25
|
+
}
|
|
26
|
+
/** Key the registry by `Mutator.name`; duplicates log a warning and
|
|
27
|
+
* last-wins (per §6 convention). Mutators with heterogeneous
|
|
28
|
+
* Args/Result types share the registry slot via `AnyMutator` (variance
|
|
29
|
+
* escape); call-site dispatch (`repo.mutate.X`, `tx.run(m, args)`)
|
|
30
|
+
* recovers precise types via the `MutatorRegistry` augmentation. */
|
|
31
|
+
export declare const mutatorsFacet: import("@/extensions/facet").Facet<AnyMutator, ReadonlyMap<string, AnyMutator>>;
|
|
32
|
+
/** Future facets — declared empty for now so plugin authors can
|
|
33
|
+
* reference them at compile time without runtime breakage when no
|
|
34
|
+
* contributions exist. Wired up in stages 1.5+. */
|
|
35
|
+
export declare const queriesFacet: import("@/extensions/facet").Facet<AnyQuery, ReadonlyMap<string, AnyQuery>>;
|
|
36
|
+
export declare const propertySchemasFacet: import("@/extensions/facet").Facet<AnyPropertySchema, ReadonlyMap<string, AnyPropertySchema>>;
|
|
37
|
+
export declare const typesFacet: import("@/extensions/facet").Facet<TypeContribution, ReadonlyMap<string, TypeContribution>>;
|
|
38
|
+
export declare const propertyEditorOverridesFacet: import("@/extensions/facet").Facet<AnyPropertyEditorOverride, ReadonlyMap<string, AnyPropertyEditorOverride>>;
|
|
39
|
+
/** Open-vocabulary preset registry. Keyed by preset id (matches the
|
|
40
|
+
* codec `type` for codecs built by the preset). Last-wins on
|
|
41
|
+
* collision, per facet convention. Plugins register through
|
|
42
|
+
* `valuePresetsFacet.of(preset, {source: 'plugin'})`. */
|
|
43
|
+
export declare const valuePresetsFacet: import("@/extensions/facet").Facet<AnyValuePreset, ReadonlyMap<string, AnyValuePreset>>;
|
|
44
|
+
export declare const postCommitProcessorsFacet: import("@/extensions/facet").Facet<AnyPostCommitProcessor, ReadonlyMap<string, AnyPostCommitProcessor>>;
|
|
45
|
+
export declare const sameTxProcessorsFacet: import("@/extensions/facet").Facet<import("@/data/api").SameTxProcessor, ReadonlyMap<string, import("@/data/api").SameTxProcessor>>;
|
|
46
|
+
export declare const localSchemaFacet: import("@/extensions/facet").Facet<LocalSchemaContribution, readonly LocalSchemaContribution[]>;
|
|
47
|
+
/** Default inner-property to use when filtering a `ref`/`refList`
|
|
48
|
+
* property whose target is of a given block type. Contributed by the
|
|
49
|
+
* *target* type's plugin (e.g. daily-notes contributes
|
|
50
|
+
* `{targetType: 'daily-note', property: 'daily-note:date'}`) so that
|
|
51
|
+
* filter UIs can present "filter this ref as a date" without baking
|
|
52
|
+
* daily-note knowledge into the filter component. The compiled
|
|
53
|
+
* predicate uses the typed-query `target` traversal — no
|
|
54
|
+
* query-engine extension required.
|
|
55
|
+
*
|
|
56
|
+
* Lookup is by target type id; last-wins on collision. Keyed by
|
|
57
|
+
* target type (not ref property name) because the contract belongs to
|
|
58
|
+
* the target — any user-defined ref pointing at a daily note should
|
|
59
|
+
* get the same affordance without per-property registration. */
|
|
60
|
+
export interface RefTargetFilterDefault {
|
|
61
|
+
readonly targetType: string;
|
|
62
|
+
/** Name of a registered `PropertySchema` on the target block type. */
|
|
63
|
+
readonly property: string;
|
|
64
|
+
}
|
|
65
|
+
export declare const refTargetFilterDefaultsFacet: import("@/extensions/facet").Facet<RefTargetFilterDefault, ReadonlyMap<string, RefTargetFilterDefault>>;
|
|
66
|
+
export declare const invalidationRulesFacet: import("@/extensions/facet").Facet<InvalidationRule, readonly InvalidationRule[]>;
|
|
67
|
+
//# sourceMappingURL=facets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facets.d.ts","sourceRoot":"","sources":["../../../../../../src/data/facets.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,EACjB,QAAQ,EAER,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1C,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;CACnD;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC9B,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAA;CAC3C;AAmCD;;;;qEAIqE;AACrE,eAAO,MAAM,aAAa,iFAexB,CAAA;AAEF;;oDAEoD;AAEpD,eAAO,MAAM,YAAY,6EAevB,CAAA;AAEF,eAAO,MAAM,oBAAoB,+FAe/B,CAAA;AAEF,eAAO,MAAM,UAAU,6FAerB,CAAA;AAEF,eAAO,MAAM,4BAA4B,+GAevC,CAAA;AAEF;;;0DAG0D;AAC1D,eAAO,MAAM,iBAAiB,yFAe5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,yGAepC,CAAA;AAaF,eAAO,MAAM,qBAAqB,qIAehC,CAAA;AAEF,eAAO,MAAM,gBAAgB,iGAG3B,CAAA;AAEF;;;;;;;;;;;;iEAYiE;AACjE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,4BAA4B,yGAevC,CAAA;AAEF,eAAO,MAAM,sBAAsB,mFAGjC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React hooks for the per-user "user page", synced user prefs,
|
|
3
|
+
* per-plugin sub-blocks, and per-panel ui-state child tree. The
|
|
4
|
+
* non-React resolvers / mutators live in `stateBlocks.ts`; this file
|
|
5
|
+
* is the React-aware façade over them.
|
|
6
|
+
*
|
|
7
|
+
* Transient app-shell and plugin UI state (focus, selection, edit-mode,
|
|
8
|
+
* top-level block, etc.) uses `ChangeScope.UiState`; user preferences
|
|
9
|
+
* use `ChangeScope.UserPrefs` and live on their own child rows so
|
|
10
|
+
* unrelated properties never share a row-level UPDATE payload. Both
|
|
11
|
+
* scopes upload through the normal queue — the scope identity is what
|
|
12
|
+
* drives undo bucketing and schema validation, not the upload routing.
|
|
13
|
+
*/
|
|
14
|
+
import { type PropertySchema, type TypeContribution } from '@/data/api';
|
|
15
|
+
import type { Block } from './block';
|
|
16
|
+
import { type BlockSelectionState } from '@/data/properties';
|
|
17
|
+
export { USER_PREFS_PATH_PART } from '@/data/userPrefs.js';
|
|
18
|
+
export declare function useUIStateBlock(): Block;
|
|
19
|
+
/** Root app-shell UI state, independent of the current panel context. */
|
|
20
|
+
export declare function useRootUIStateBlock(): Block;
|
|
21
|
+
export declare function useLayoutSessionBlock(layoutSessionId?: string): Block;
|
|
22
|
+
export declare function usePanelsForLayoutSession(layoutSessionId?: string): Block[];
|
|
23
|
+
export declare function useUserBlock(): Block;
|
|
24
|
+
/** Hook to access and modify a UI-state property on the active UI-state
|
|
25
|
+
* block. The property's schema dictates codec + default; writes are
|
|
26
|
+
* scoped via the schema's `changeScope` (typically `UiState`). */
|
|
27
|
+
export declare function useUIStateProperty<T>(schema: PropertySchema<T>): [T, (value: T) => void];
|
|
28
|
+
export declare function useRootUIStateProperty<T>(schema: PropertySchema<T>): [T, (value: T) => void];
|
|
29
|
+
/** Resolve the per-plugin user-prefs sub-block for a given type
|
|
30
|
+
* contribution. The block is bootstrapped on first access via
|
|
31
|
+
* `getPluginPrefsBlock`; subsequent calls return the same Block facade. */
|
|
32
|
+
export declare function usePluginPrefsBlock(type: TypeContribution): Block;
|
|
33
|
+
/** Read/write a user-pref property on the plugin's own sub-block. The
|
|
34
|
+
* schema must declare `changeScope: ChangeScope.UserPrefs` so reads and
|
|
35
|
+
* writes route through the synced (and read-only-aware) pref pipeline. */
|
|
36
|
+
export declare const usePluginPrefsProperty: <T>(type: TypeContribution, schema: PropertySchema<T>) => [T, (value: T) => void];
|
|
37
|
+
/** Resolve the per-plugin ui-state sub-block for a given type
|
|
38
|
+
* contribution. The mirror of `usePluginPrefsBlock` for persistent
|
|
39
|
+
* per-device state — the block lives under the root ui-state subtree
|
|
40
|
+
* and never enters the upload queue. */
|
|
41
|
+
export declare function usePluginUIStateBlock(type: TypeContribution): Block;
|
|
42
|
+
/** Read/write a ui-state property on the plugin's own ui-state
|
|
43
|
+
* sub-block. The schema must declare `changeScope: ChangeScope.UiState`
|
|
44
|
+
* so writes route into the device-local ui-state subtree (and stay
|
|
45
|
+
* undo-segregated from document edits). They still upload through the
|
|
46
|
+
* normal queue. */
|
|
47
|
+
export declare const usePluginUIStateProperty: <T>(type: TypeContribution, schema: PropertySchema<T>) => [T, (value: T) => void];
|
|
48
|
+
/** Sugar for the global editing flag — `[isEditing, setIsEditing]`. */
|
|
49
|
+
export declare const useIsEditing: () => [boolean, (value: boolean) => void];
|
|
50
|
+
/** Selection state — sticky on the UI-state block. The setter merges
|
|
51
|
+
* partial updates into the current snapshot. */
|
|
52
|
+
export declare function useSelectionState(): [
|
|
53
|
+
BlockSelectionState,
|
|
54
|
+
(newState: Partial<BlockSelectionState>) => void
|
|
55
|
+
];
|
|
56
|
+
export declare const useInFocus: (blockId: string) => boolean;
|
|
57
|
+
export declare const useIsSelected: (blockId: string) => boolean;
|
|
58
|
+
export declare const useInEditMode: (blockId: string) => boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether `panelBlock` is the currently-active panel in its layout
|
|
61
|
+
* session. Per-panel boolean (same selector pattern as `useInFocus`):
|
|
62
|
+
* when activePanelId hops between panels, only the two whose membership
|
|
63
|
+
* flips re-render — the rest bail via `useSyncExternalStore`'s Object.is.
|
|
64
|
+
*
|
|
65
|
+
* When the panel renders OUTSIDE a layout session (no
|
|
66
|
+
* `layoutSessionBlockId` in context — e.g. a standalone embedded or
|
|
67
|
+
* preview surface) the concept of "active panel" doesn't apply, so we
|
|
68
|
+
* return `true`. Consumers that gate UI on "this surface owns
|
|
69
|
+
* keystrokes" treat non-layout surfaces as trivially active.
|
|
70
|
+
*/
|
|
71
|
+
export declare const useIsActivePanel: (panelBlock: Block) => boolean;
|
|
72
|
+
//# sourceMappingURL=globalState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalState.d.ts","sourceRoot":"","sources":["../../../../../../src/data/globalState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,mBAAmB,CAAA;AAY1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,wBAAgB,eAAe,IAAI,KAAK,CAOvC;AAED,yEAAyE;AACzE,wBAAgB,mBAAmB,IAAI,KAAK,CAM3C;AAED,wBAAgB,qBAAqB,CAAC,eAAe,SAAuB,GAAG,KAAK,CAEnF;AAED,wBAAgB,yBAAyB,CAAC,eAAe,SAAuB,GAAG,KAAK,EAAE,CAEzF;AAED,wBAAgB,YAAY,IAAI,KAAK,CAMpC;AAED;;mEAEmE;AACnE,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GACxB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAGzB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GACxB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAGzB;AAED;;4EAE4E;AAC5E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,KAAK,CAMjE;AAED;;2EAE2E;AAC3E,eAAO,MAAM,sBAAsB,GAAI,CAAC,EACtC,MAAM,gBAAgB,EACtB,QAAQ,cAAc,CAAC,CAAC,CAAC,KACxB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAItB,CAAA;AAEH;;;yCAGyC;AACzC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,gBAAgB,GAAG,KAAK,CAMnE;AAED;;;;oBAIoB;AACpB,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,MAAM,gBAAgB,EACtB,QAAQ,cAAc,CAAC,CAAC,CAAC,KACxB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAItB,CAAA;AAEH,uEAAuE;AACvE,eAAO,MAAM,YAAY,QAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAC/B,CAAA;AAEnC;iDACiD;AACjD,wBAAgB,iBAAiB,IAAI;IACnC,mBAAmB;IACnB,CAAC,QAAQ,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI;CACjD,CAYA;AAED,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,OAGzC,CAAA;AAEJ,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,KAAG,OAQ5C,CAAA;AAEJ,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,KAAG,OAY5C,CAAA;AAEJ;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,YAAY,KAAK,KAAG,OAYpD,CAAA"}
|