@lapis-notes/api 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/CHANGELOG.md +9 -0
- package/LICENSE.md +4 -0
- package/README.md +43 -0
- package/dist/__tests__/data-adapter-conformance.js +205 -0
- package/dist/__tests__/lapis-runtime-manifest.js +32 -0
- package/dist/__tests__/svelte-internal-client.d.ts +3 -0
- package/dist/agent-result-views.d.ts +52 -0
- package/dist/agent-result-views.js +89 -0
- package/dist/agent-skills.d.ts +99 -0
- package/dist/agent-skills.js +182 -0
- package/dist/agent-tools.d.ts +92 -0
- package/dist/agent-tools.js +139 -0
- package/dist/app-database-host.d.ts +4 -0
- package/dist/app-database-host.js +4 -0
- package/dist/app-shell-plugin-persistence.d.ts +15 -0
- package/dist/app-shell-plugin-persistence.js +34 -0
- package/dist/app-url.d.ts +54 -0
- package/dist/app-url.js +269 -0
- package/dist/application-compatibility.d.ts +31 -0
- package/dist/application-compatibility.js +64 -0
- package/dist/application-state.svelte.d.ts +14 -0
- package/dist/application-state.svelte.js +30 -0
- package/dist/assets/lapis-logo.svg +471 -0
- package/dist/bases.d.ts +281 -0
- package/dist/bases.js +475 -0
- package/dist/cache.svelte.d.ts +569 -0
- package/dist/cache.svelte.js +1433 -0
- package/dist/command.svelte.d.ts +337 -0
- package/dist/command.svelte.js +571 -0
- package/dist/compat.d.ts +29 -0
- package/dist/compat.js +30 -0
- package/dist/components/configuration/configuration.css +199 -0
- package/dist/components/configuration/date-setting.svelte +71 -0
- package/dist/components/configuration/date-setting.svelte.d.ts +8 -0
- package/dist/components/configuration/list-setting.svelte +128 -0
- package/dist/components/configuration/list-setting.svelte.d.ts +13 -0
- package/dist/components/configuration/object-array-row-grip.svelte +78 -0
- package/dist/components/configuration/object-array-row-grip.svelte.d.ts +9 -0
- package/dist/components/configuration/object-array-row.svelte +163 -0
- package/dist/components/configuration/object-array-row.svelte.d.ts +19 -0
- package/dist/components/configuration/object-array-setting.svelte +196 -0
- package/dist/components/configuration/object-array-setting.svelte.d.ts +15 -0
- package/dist/components/configuration/object-array-table-dnd.d.ts +8 -0
- package/dist/components/configuration/object-array-table-dnd.js +10 -0
- package/dist/components/configuration/object-array-utils.d.ts +11 -0
- package/dist/components/configuration/object-array-utils.js +103 -0
- package/dist/components/configuration/object-grid-setting.svelte +79 -0
- package/dist/components/configuration/object-grid-setting.svelte.d.ts +10 -0
- package/dist/components/configuration/object-map-row.svelte +147 -0
- package/dist/components/configuration/object-map-row.svelte.d.ts +15 -0
- package/dist/components/configuration/object-map-setting.svelte +137 -0
- package/dist/components/configuration/object-map-setting.svelte.d.ts +14 -0
- package/dist/components/configuration/object-map-types.d.ts +5 -0
- package/dist/components/configuration/object-map-types.js +1 -0
- package/dist/components/configuration/options-combobox-setting.svelte +129 -0
- package/dist/components/configuration/options-combobox-setting.svelte.d.ts +12 -0
- package/dist/components/copy-button/button.svelte +93 -0
- package/dist/components/copy-button/button.svelte.d.ts +13 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/copy-button/index.js +2 -0
- package/dist/components/editor/editor.css +565 -0
- package/dist/components/editor/editor.d.ts +33 -0
- package/dist/components/editor/editor.js +132 -0
- package/dist/components/editor/editor.svelte +176 -0
- package/dist/components/editor/editor.svelte.d.ts +15 -0
- package/dist/components/editor/embedded-editor-surface.d.ts +12 -0
- package/dist/components/editor/embedded-editor-surface.js +22 -0
- package/dist/components/editor/embedded-editor-surface.svelte +115 -0
- package/dist/components/editor/embedded-editor-surface.svelte.d.ts +17 -0
- package/dist/components/editor/extensions/autocomplete/index.d.ts +2 -0
- package/dist/components/editor/extensions/autocomplete/index.js +2 -0
- package/dist/components/editor/extensions/autocomplete/lapis-code-mirror-autocomplete.d.ts +16 -0
- package/dist/components/editor/extensions/autocomplete/lapis-code-mirror-autocomplete.js +34 -0
- package/dist/components/editor/extensions/autocomplete/vault-completion-sources.d.ts +27 -0
- package/dist/components/editor/extensions/autocomplete/vault-completion-sources.js +55 -0
- package/dist/components/editor/extensions/class-highlighter/index.d.ts +1 -0
- package/dist/components/editor/extensions/class-highlighter/index.js +47 -0
- package/dist/components/editor/extensions/fold-gutter/index.d.ts +8 -0
- package/dist/components/editor/extensions/fold-gutter/index.js +40 -0
- package/dist/components/editor/extensions/gutter-line-style-sync/index.d.ts +2 -0
- package/dist/components/editor/extensions/gutter-line-style-sync/index.js +118 -0
- package/dist/components/editor/extensions/lint/index.d.ts +4 -0
- package/dist/components/editor/extensions/lint/index.js +4 -0
- package/dist/components/editor/extensions/lint/lapis-code-mirror-lint.d.ts +26 -0
- package/dist/components/editor/extensions/lint/lapis-code-mirror-lint.js +101 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic-helpers.d.ts +8 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic-helpers.js +7 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic.d.ts +20 -0
- package/dist/components/editor/extensions/lint/lapis-lint-diagnostic.js +47 -0
- package/dist/components/editor/extensions/lint/lapis-lint-hover-tooltip.d.ts +9 -0
- package/dist/components/editor/extensions/lint/lapis-lint-hover-tooltip.js +373 -0
- package/dist/components/editor/extensions/lint/lapis-lint-inline-widget.d.ts +31 -0
- package/dist/components/editor/extensions/lint/lapis-lint-inline-widget.js +191 -0
- package/dist/components/editor/extensions/lint/lapis-lint-tooltip.svelte +176 -0
- package/dist/components/editor/extensions/lint/lapis-lint-tooltip.svelte.d.ts +15 -0
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.d.ts +11 -0
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.js +21 -0
- package/dist/components/editor/extensions/lint/mount-lint-tooltip.d.ts +16 -0
- package/dist/components/editor/extensions/lint/mount-lint-tooltip.js +60 -0
- package/dist/components/editor/extensions/search/dom.d.ts +2 -0
- package/dist/components/editor/extensions/search/dom.js +6 -0
- package/dist/components/editor/extensions/search/index.d.ts +35 -0
- package/dist/components/editor/extensions/search/index.js +44 -0
- package/dist/components/editor/extensions/search/search.svelte +335 -0
- package/dist/components/editor/extensions/search/search.svelte.d.ts +8 -0
- package/dist/components/editor/index.d.ts +9 -0
- package/dist/components/editor/index.js +9 -0
- package/dist/components/editor/language-service/dom.d.ts +1 -0
- package/dist/components/editor/language-service/dom.js +6 -0
- package/dist/components/editor/language-service/index.d.ts +28 -0
- package/dist/components/editor/language-service/index.js +342 -0
- package/dist/components/empty-view/empty-view.css +39 -0
- package/dist/components/empty-view/empty-view.svelte +26 -0
- package/dist/components/empty-view/empty-view.svelte.d.ts +9 -0
- package/dist/components/empty-view/index.d.ts +2 -0
- package/dist/components/empty-view/index.js +2 -0
- package/dist/components/icon/icon-list.css +74 -0
- package/dist/components/icon/icon-list.svelte +213 -0
- package/dist/components/icon/icon-list.svelte.d.ts +11 -0
- package/dist/components/icon/icon.svelte +15 -0
- package/dist/components/icon/icon.svelte.d.ts +7 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/menu/context-menu.svelte +89 -0
- package/dist/components/menu/context-menu.svelte.d.ts +11 -0
- package/dist/components/menu/drawer-menu.svelte +83 -0
- package/dist/components/menu/drawer-menu.svelte.d.ts +8 -0
- package/dist/components/menu/dropdown-menu.svelte +89 -0
- package/dist/components/menu/dropdown-menu.svelte.d.ts +11 -0
- package/dist/components/menu/index.d.ts +6 -0
- package/dist/components/menu/index.js +6 -0
- package/dist/components/menu/menu.css +139 -0
- package/dist/components/menu/menu.svelte +37 -0
- package/dist/components/menu/menu.svelte.d.ts +11 -0
- package/dist/components/menu/mobile-menu-query.svelte.d.ts +3 -0
- package/dist/components/menu/mobile-menu-query.svelte.js +21 -0
- package/dist/components/menu/popover-menu.svelte +90 -0
- package/dist/components/menu/popover-menu.svelte.d.ts +10 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.svelte +72 -0
- package/dist/components/select/select.svelte.d.ts +25 -0
- package/dist/configuration-option-source-providers.d.ts +17 -0
- package/dist/configuration-option-source-providers.js +59 -0
- package/dist/configuration-option-source-registry.d.ts +59 -0
- package/dist/configuration-option-source-registry.js +123 -0
- package/dist/configuration.svelte.d.ts +258 -0
- package/dist/configuration.svelte.js +887 -0
- package/dist/context-keys.svelte.d.ts +42 -0
- package/dist/context-keys.svelte.js +278 -0
- package/dist/context.svelte.d.ts +247 -0
- package/dist/context.svelte.js +540 -0
- package/dist/daily-document-provider.d.ts +38 -0
- package/dist/daily-document-provider.js +176 -0
- package/dist/design-core-button-types.d.ts +7 -0
- package/dist/design-core-button-types.js +1 -0
- package/dist/diagnostics.d.ts +93 -0
- package/dist/diagnostics.js +84 -0
- package/dist/dialog-portal.d.ts +3 -0
- package/dist/dialog-portal.js +3 -0
- package/dist/docs-api.d.ts +44 -0
- package/dist/docs-api.js +29 -0
- package/dist/editor-view-registry.d.ts +35 -0
- package/dist/editor-view-registry.js +112 -0
- package/dist/editor.svelte.d.ts +126 -0
- package/dist/editor.svelte.js +454 -0
- package/dist/embed-registry.d.ts +15 -0
- package/dist/embed-registry.js +16 -0
- package/dist/enhance.d.ts +111 -0
- package/dist/enhance.js +309 -0
- package/dist/events.d.ts +28 -0
- package/dist/events.js +49 -0
- package/dist/file-manager.d.ts +90 -0
- package/dist/file-manager.js +289 -0
- package/dist/file-tools/app-tools.d.ts +3 -0
- package/dist/file-tools/app-tools.js +242 -0
- package/dist/file-tools/index.d.ts +3 -0
- package/dist/file-tools/index.js +3 -0
- package/dist/file-tools/paths.d.ts +14 -0
- package/dist/file-tools/paths.js +33 -0
- package/dist/file-tools/vault-operations.d.ts +3 -0
- package/dist/file-tools/vault-operations.js +60 -0
- package/dist/generated/plugin-host-modules.schema.generated.d.ts +371 -0
- package/dist/generated/plugin-host-modules.schema.generated.js +374 -0
- package/dist/glob.d.ts +15 -0
- package/dist/glob.js +68 -0
- package/dist/history.svelte.d.ts +24 -0
- package/dist/history.svelte.js +74 -0
- package/dist/hooks/createVirtualizer.svelte.d.ts +7 -0
- package/dist/hooks/createVirtualizer.svelte.js +70 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/is-mobile.svelte.d.ts +5 -0
- package/dist/hooks/is-mobile.svelte.js +23 -0
- package/dist/hooks/mountComponent.svelte.d.ts +7 -0
- package/dist/hooks/mountComponent.svelte.js +16 -0
- package/dist/hooks/use-text-highlight.d.ts +17 -0
- package/dist/hooks/use-text-highlight.js +82 -0
- package/dist/hooks/useBoundingRect.svelte.d.ts +11 -0
- package/dist/hooks/useBoundingRect.svelte.js +46 -0
- package/dist/icons/index.d.ts +57 -0
- package/dist/icons/index.js +288 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +87 -0
- package/dist/language-service/index.d.ts +9 -0
- package/dist/language-service/index.js +7 -0
- package/dist/language-service/manager.d.ts +47 -0
- package/dist/language-service/manager.js +404 -0
- package/dist/language-service/types.d.ts +92 -0
- package/dist/language-service/types.js +1 -0
- package/dist/language-service/virtual-document.d.ts +11 -0
- package/dist/language-service/virtual-document.js +45 -0
- package/dist/language-service/worker-protocol.d.ts +63 -0
- package/dist/language-service/worker-protocol.js +1 -0
- package/dist/language-service/worker-provider.d.ts +9 -0
- package/dist/language-service/worker-provider.js +38 -0
- package/dist/lapis-extension.d.ts +244 -0
- package/dist/lapis-extension.js +591 -0
- package/dist/links.d.ts +34 -0
- package/dist/links.js +191 -0
- package/dist/loaders.d.ts +9 -0
- package/dist/loaders.js +59 -0
- package/dist/localization-manager.svelte.d.ts +56 -0
- package/dist/localization-manager.svelte.js +157 -0
- package/dist/logging.d.ts +172 -0
- package/dist/logging.js +352 -0
- package/dist/markdown-extension-registry.d.ts +31 -0
- package/dist/markdown-extension-registry.js +31 -0
- package/dist/markdown-file-surface-registry.d.ts +25 -0
- package/dist/markdown-file-surface-registry.js +23 -0
- package/dist/markdown.d.ts +205 -0
- package/dist/markdown.js +147 -0
- package/dist/menu-utils.d.ts +1 -0
- package/dist/menu-utils.js +47 -0
- package/dist/menu.svelte.d.ts +121 -0
- package/dist/menu.svelte.js +295 -0
- package/dist/metadata-value.d.ts +10 -0
- package/dist/metadata-value.js +173 -0
- package/dist/metadata.svelte.d.ts +106 -0
- package/dist/metadata.svelte.js +608 -0
- package/dist/notifications.d.ts +209 -0
- package/dist/notifications.js +338 -0
- package/dist/open-file.d.ts +23 -0
- package/dist/open-file.js +102 -0
- package/dist/platform.d.ts +86 -0
- package/dist/platform.js +86 -0
- package/dist/plugin-asset-server.d.ts +60 -0
- package/dist/plugin-asset-server.js +222 -0
- package/dist/plugin-assets.d.ts +4 -0
- package/dist/plugin-assets.js +3 -0
- package/dist/plugin-capability-facade.d.ts +104 -0
- package/dist/plugin-capability-facade.js +61 -0
- package/dist/plugin-dependency-resolver.d.ts +36 -0
- package/dist/plugin-dependency-resolver.js +54 -0
- package/dist/plugin-dependency-scanner.d.ts +9 -0
- package/dist/plugin-dependency-scanner.js +274 -0
- package/dist/plugin-distribution/canonical-json.d.ts +1 -0
- package/dist/plugin-distribution/canonical-json.js +40 -0
- package/dist/plugin-distribution/compatibility.d.ts +5 -0
- package/dist/plugin-distribution/compatibility.js +38 -0
- package/dist/plugin-distribution/errors.d.ts +11 -0
- package/dist/plugin-distribution/errors.js +13 -0
- package/dist/plugin-distribution/hashes.d.ts +2 -0
- package/dist/plugin-distribution/hashes.js +17 -0
- package/dist/plugin-distribution/index.d.ts +18 -0
- package/dist/plugin-distribution/index.js +18 -0
- package/dist/plugin-distribution/installed-plugin-state.d.ts +20 -0
- package/dist/plugin-distribution/installed-plugin-state.js +73 -0
- package/dist/plugin-distribution/installer.d.ts +89 -0
- package/dist/plugin-distribution/installer.js +395 -0
- package/dist/plugin-distribution/manager.d.ts +128 -0
- package/dist/plugin-distribution/manager.js +358 -0
- package/dist/plugin-distribution/path-safety.d.ts +2 -0
- package/dist/plugin-distribution/path-safety.js +20 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.d.ts +28 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.js +96 -0
- package/dist/plugin-distribution/plugin-bundle-worker.d.ts +34 -0
- package/dist/plugin-distribution/plugin-bundle-worker.js +99 -0
- package/dist/plugin-distribution/plugin-bundle.d.ts +16 -0
- package/dist/plugin-distribution/plugin-bundle.js +244 -0
- package/dist/plugin-distribution/plugin-bundle.worker.d.ts +1 -0
- package/dist/plugin-distribution/plugin-bundle.worker.js +38 -0
- package/dist/plugin-distribution/registry-cache.d.ts +26 -0
- package/dist/plugin-distribution/registry-cache.js +85 -0
- package/dist/plugin-distribution/registry-client.d.ts +36 -0
- package/dist/plugin-distribution/registry-client.js +115 -0
- package/dist/plugin-distribution/reserved-ids.d.ts +4 -0
- package/dist/plugin-distribution/reserved-ids.js +10 -0
- package/dist/plugin-distribution/runtime-validation.d.ts +14 -0
- package/dist/plugin-distribution/runtime-validation.js +388 -0
- package/dist/plugin-distribution/schemas.d.ts +4895 -0
- package/dist/plugin-distribution/schemas.js +299 -0
- package/dist/plugin-distribution/signing.d.ts +5 -0
- package/dist/plugin-distribution/signing.js +38 -0
- package/dist/plugin-distribution/types.d.ts +217 -0
- package/dist/plugin-distribution/types.js +1 -0
- package/dist/plugin-install-progress.d.ts +15 -0
- package/dist/plugin-install-progress.js +86 -0
- package/dist/plugin-manager.d.ts +306 -0
- package/dist/plugin-manager.js +2848 -0
- package/dist/plugin-runtime-entry.d.ts +19 -0
- package/dist/plugin-runtime-entry.js +135 -0
- package/dist/plugin.d.ts +350 -0
- package/dist/plugin.js +754 -0
- package/dist/popover.d.ts +20 -0
- package/dist/popover.js +32 -0
- package/dist/promise-worker.d.ts +22 -0
- package/dist/promise-worker.js +65 -0
- package/dist/prompt-confirm.d.ts +9 -0
- package/dist/prompt-confirm.js +33 -0
- package/dist/search-document-provider.d.ts +45 -0
- package/dist/search-document-provider.js +54 -0
- package/dist/search-query/index.d.ts +78 -0
- package/dist/search-query/index.js +426 -0
- package/dist/search-query/parser.d.ts +3 -0
- package/dist/search-query/parser.js +16 -0
- package/dist/search-query/parser.terms.js +26 -0
- package/dist/search-query/search-query.grammar +128 -0
- package/dist/search.d.ts +19 -0
- package/dist/search.js +104 -0
- package/dist/setting-section-layout.d.ts +19 -0
- package/dist/setting-section-layout.js +194 -0
- package/dist/settings.svelte.d.ts +474 -0
- package/dist/settings.svelte.js +1421 -0
- package/dist/source-text-file-view.d.ts +25 -0
- package/dist/source-text-file-view.js +78 -0
- package/dist/status-bar.svelte.d.ts +29 -0
- package/dist/status-bar.svelte.js +72 -0
- package/dist/storage/app-database.d.ts +860 -0
- package/dist/storage/app-database.js +2372 -0
- package/dist/storage/blob-store.d.ts +12 -0
- package/dist/storage/blob-store.js +1 -0
- package/dist/storage/browser-app-database-coordination.d.ts +35 -0
- package/dist/storage/browser-app-database-coordination.js +207 -0
- package/dist/storage/browser-coordinated-app-database.d.ts +109 -0
- package/dist/storage/browser-coordinated-app-database.js +704 -0
- package/dist/storage/browser.d.ts +153 -0
- package/dist/storage/browser.js +794 -0
- package/dist/storage/desktop-native.d.ts +184 -0
- package/dist/storage/desktop-native.js +415 -0
- package/dist/storage/fs.d.ts +188 -0
- package/dist/storage/fs.js +307 -0
- package/dist/storage/index-projection.d.ts +236 -0
- package/dist/storage/index-projection.js +402 -0
- package/dist/storage/index.d.ts +17 -0
- package/dist/storage/index.js +17 -0
- package/dist/storage/keyval.d.ts +94 -0
- package/dist/storage/keyval.js +199 -0
- package/dist/storage/memory-vault-adapter.d.ts +44 -0
- package/dist/storage/memory-vault-adapter.js +351 -0
- package/dist/storage/native-vault-bootstrap-kv.d.ts +22 -0
- package/dist/storage/native-vault-bootstrap-kv.js +96 -0
- package/dist/storage/path.d.ts +22 -0
- package/dist/storage/path.js +110 -0
- package/dist/storage/search-embedding-provider.d.ts +75 -0
- package/dist/storage/search-embedding-provider.js +446 -0
- package/dist/storage/search-embedding-worker.d.ts +1 -0
- package/dist/storage/search-embedding-worker.js +63 -0
- package/dist/storage/search-query-evaluator.d.ts +14 -0
- package/dist/storage/search-query-evaluator.js +678 -0
- package/dist/storage/task-projection.d.ts +152 -0
- package/dist/storage/task-projection.js +154 -0
- package/dist/storage/turso-app-database.d.ts +150 -0
- package/dist/storage/turso-app-database.js +2671 -0
- package/dist/storage/vault-session.d.ts +37 -0
- package/dist/storage/vault-session.js +196 -0
- package/dist/storage/vault-state.d.ts +74 -0
- package/dist/storage/vault-state.js +181 -0
- package/dist/storage/vault.svelte.d.ts +257 -0
- package/dist/storage/vault.svelte.js +661 -0
- package/dist/suggest.d.ts +193 -0
- package/dist/suggest.js +391 -0
- package/dist/tasks.d.ts +7 -0
- package/dist/tasks.js +18 -0
- package/dist/telemetry.d.ts +116 -0
- package/dist/telemetry.js +103 -0
- package/dist/utils.d.ts +55 -0
- package/dist/utils.js +314 -0
- package/dist/vault-api.d.ts +5 -0
- package/dist/vault-api.js +3 -0
- package/dist/vault-maintenance-commands.d.ts +5 -0
- package/dist/vault-maintenance-commands.js +32 -0
- package/dist/view.svelte.d.ts +215 -0
- package/dist/view.svelte.js +381 -0
- package/dist/vite-env.d.ts +2 -0
- package/dist/workspace-host-internal.d.ts +7 -0
- package/dist/workspace-host-internal.js +7 -0
- package/dist/workspace-host.d.ts +10 -0
- package/dist/workspace-host.js +14 -0
- package/dist/workspace-layout-commands.d.ts +3 -0
- package/dist/workspace-layout-commands.js +72 -0
- package/dist/workspace-layout-normalizer.d.ts +92 -0
- package/dist/workspace-layout-normalizer.js +301 -0
- package/dist/workspace-layouts.d.ts +7 -0
- package/dist/workspace-layouts.js +23 -0
- package/dist/workspace-trust.d.ts +32 -0
- package/dist/workspace-trust.js +72 -0
- package/dist/workspace.svelte.d.ts +796 -0
- package/dist/workspace.svelte.js +4380 -0
- package/package.json +240 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
/* Editor layout chrome + search panel + lint tooltip (not CodeMirror internals) */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Obsidian theme intake keeps Mira palette, with light-mode syntax tokens
|
|
5
|
+
* nudged to WCAG AA (≥ 4.5:1) against the editor background for Storybook axe.
|
|
6
|
+
*/
|
|
7
|
+
[data-ui-component="editor"][data-mira-theme~="obsidian"] {
|
|
8
|
+
--mira-syntax-string: light-dark(#007a56, #53dfdd);
|
|
9
|
+
--mira-syntax-property: light-dark(#c22e75, #fa99cd);
|
|
10
|
+
--mira-syntax-number: light-dark(#8f4a00, #e9973f);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-ui-component="editor"] {
|
|
14
|
+
--ui-editor-search-pad-x: 1rem;
|
|
15
|
+
--ui-editor-search-pad-y: 0.5rem;
|
|
16
|
+
--ui-editor-search-gap: 0.5rem;
|
|
17
|
+
--ui-editor-search-input-height: var(
|
|
18
|
+
--input-height,
|
|
19
|
+
var(--ui-control-height, 2rem)
|
|
20
|
+
);
|
|
21
|
+
--ui-editor-lint-min-width: 360px;
|
|
22
|
+
--ui-editor-lint-max-width: min(720px, calc(100vw - 48px));
|
|
23
|
+
--ui-editor-lint-radius: var(--radius, 0.375rem);
|
|
24
|
+
--ui-editor-lint-accent: var(--text-accent, var(--primary));
|
|
25
|
+
--ui-editor-inline-problem-accent: var(
|
|
26
|
+
--ui-workspace-diagnostic-warning,
|
|
27
|
+
var(--warning, #d97706)
|
|
28
|
+
);
|
|
29
|
+
--ui-editor-inline-problem-background: var(
|
|
30
|
+
--ui-workspace-view-background,
|
|
31
|
+
var(--background, #fff)
|
|
32
|
+
);
|
|
33
|
+
--ui-editor-inline-problem-foreground: var(
|
|
34
|
+
--ui-workspace-view-foreground,
|
|
35
|
+
var(--foreground, #111827)
|
|
36
|
+
);
|
|
37
|
+
--ui-editor-inline-problem-muted-foreground: var(
|
|
38
|
+
--ui-workspace-muted-foreground,
|
|
39
|
+
var(--muted-foreground, #64748b)
|
|
40
|
+
);
|
|
41
|
+
--ui-editor-inline-problem-border: var(
|
|
42
|
+
--ui-workspace-border,
|
|
43
|
+
var(--border, #e5e7eb)
|
|
44
|
+
);
|
|
45
|
+
--ui-editor-font-mono: var(
|
|
46
|
+
--font-mono,
|
|
47
|
+
var(--mira-font-mono, ui-monospace, monospace)
|
|
48
|
+
);
|
|
49
|
+
--ui-editor-font-sans: var(--font-sans, var(--mira-font-sans, inherit));
|
|
50
|
+
/* Note column: shared by inline title + source body (Mira/Lapis file margins). */
|
|
51
|
+
--ui-editor-file-margins-y: var(
|
|
52
|
+
--file-margins-y,
|
|
53
|
+
var(--mira-editor-padding, 2rem)
|
|
54
|
+
);
|
|
55
|
+
--ui-editor-file-margins-x: var(
|
|
56
|
+
--file-margins-x,
|
|
57
|
+
var(--mira-editor-padding, 2rem)
|
|
58
|
+
);
|
|
59
|
+
--ui-editor-file-line-width: var(--file-line-width, 700px);
|
|
60
|
+
/* Filename title: public tokens + Obsidian-era / heading aliases */
|
|
61
|
+
--ui-editor-inline-title-color: var(
|
|
62
|
+
--inline-title-color,
|
|
63
|
+
var(--h1-color, var(--mira-h1-color, var(--foreground, inherit)))
|
|
64
|
+
);
|
|
65
|
+
--ui-editor-inline-title-font: var(
|
|
66
|
+
--inline-title-font,
|
|
67
|
+
var(--h1-font, var(--mira-h1-font, var(--font-sans, inherit)))
|
|
68
|
+
);
|
|
69
|
+
--ui-editor-inline-title-line-height: var(
|
|
70
|
+
--inline-title-line-height,
|
|
71
|
+
var(--h1-line-height, var(--mira-h1-line-height, 1.2))
|
|
72
|
+
);
|
|
73
|
+
--ui-editor-inline-title-size: var(
|
|
74
|
+
--inline-title-size,
|
|
75
|
+
var(--h1-size, var(--mira-h1-size, 1.802em))
|
|
76
|
+
);
|
|
77
|
+
--ui-editor-inline-title-style: var(
|
|
78
|
+
--inline-title-style,
|
|
79
|
+
var(--h1-style, var(--mira-h1-style, normal))
|
|
80
|
+
);
|
|
81
|
+
--ui-editor-inline-title-variant: var(
|
|
82
|
+
--inline-title-variant,
|
|
83
|
+
var(--h1-variant, var(--mira-h1-variant, normal))
|
|
84
|
+
);
|
|
85
|
+
--ui-editor-inline-title-weight: var(
|
|
86
|
+
--inline-title-weight,
|
|
87
|
+
var(--h1-weight, var(--mira-h1-weight, 700))
|
|
88
|
+
);
|
|
89
|
+
--ui-editor-inline-title-margin-bottom: var(
|
|
90
|
+
--inline-title-margin-bottom,
|
|
91
|
+
0.5em
|
|
92
|
+
);
|
|
93
|
+
--ui-editor-inline-title-letter-spacing: -0.015em;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
* Inline title is a sibling of the CM host inside `.cm-sizer` (same as full
|
|
98
|
+
* lapis) — not a CodeMirror WidgetType. The sizer owns readable-column
|
|
99
|
+
* padding so the filename and body share one note column; Mira's scroller
|
|
100
|
+
* padding is zeroed below to avoid a second, separate inset.
|
|
101
|
+
*/
|
|
102
|
+
[data-ui-component="editor"] .inline-title,
|
|
103
|
+
[data-ui-component="editor"] .cm-editor-inline-title {
|
|
104
|
+
color: var(--ui-editor-inline-title-color);
|
|
105
|
+
font-family: var(--ui-editor-inline-title-font);
|
|
106
|
+
font-size: var(--ui-editor-inline-title-size);
|
|
107
|
+
font-style: var(--ui-editor-inline-title-style);
|
|
108
|
+
font-variant: var(--ui-editor-inline-title-variant);
|
|
109
|
+
font-weight: var(--ui-editor-inline-title-weight);
|
|
110
|
+
letter-spacing: var(--ui-editor-inline-title-letter-spacing);
|
|
111
|
+
line-height: var(--ui-editor-inline-title-line-height);
|
|
112
|
+
margin-block-end: var(--ui-editor-inline-title-margin-bottom);
|
|
113
|
+
width: 100%;
|
|
114
|
+
white-space: pre-wrap;
|
|
115
|
+
border: none;
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-ui-component="editor"]
|
|
120
|
+
.cm-editor-inline-title[data-mobile-inline-title="true"] {
|
|
121
|
+
text-align: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cm-editor-scroll-area {
|
|
125
|
+
height: 100%;
|
|
126
|
+
min-height: 0;
|
|
127
|
+
width: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.cm-editor-scroll-area
|
|
131
|
+
> [data-ui-component="scroll-area"][data-ui-part="scroll-area-scrollbar"][data-orientation="vertical"] {
|
|
132
|
+
/* Keep the editor thumb fully pointer-reachable above an adjacent workspace
|
|
133
|
+
resize rail, matching the shared Explorer scroll-area integration. */
|
|
134
|
+
z-index: 11;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.cm-editor-scroll-area--ancestor {
|
|
138
|
+
height: auto;
|
|
139
|
+
overflow: visible;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.cm-editor-scroll-area--ancestor .cm-editor-scroll-area-content,
|
|
143
|
+
.cm-editor-scroll-area--ancestor .cm-editor-scroll-area-inner,
|
|
144
|
+
.cm-editor-scroll-area--ancestor .cm-editor-scroll-area-inner > .cm-scroller {
|
|
145
|
+
height: auto;
|
|
146
|
+
min-height: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[data-ui-component="editor"][data-ui-part="scroll-content"],
|
|
150
|
+
[data-ui-component="editor"] .cm-editor-scroll-area-content {
|
|
151
|
+
height: fit-content;
|
|
152
|
+
min-height: 100%;
|
|
153
|
+
padding-block-start: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-ui-component="editor"][data-ui-part="scroll-inner"],
|
|
157
|
+
[data-ui-component="editor"] .cm-editor-scroll-area-inner,
|
|
158
|
+
[data-ui-component="editor"] .cm-editor-scroll-area-inner > .cm-scroller {
|
|
159
|
+
height: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[data-ui-component="editor"][data-ui-part="scroll-inner"]
|
|
163
|
+
> .cm-scroller
|
|
164
|
+
> .cm-sizer {
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
align-items: stretch;
|
|
169
|
+
width: 100%;
|
|
170
|
+
max-width: none;
|
|
171
|
+
min-height: 100%;
|
|
172
|
+
height: auto;
|
|
173
|
+
margin-inline: 0;
|
|
174
|
+
padding-block: var(--ui-editor-file-margins-y);
|
|
175
|
+
padding-inline: max(
|
|
176
|
+
var(--ui-editor-file-margins-x),
|
|
177
|
+
calc((100% - var(--ui-editor-file-line-width)) / 2)
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[data-ui-component="editor"] .cm-editor-content,
|
|
182
|
+
[data-ui-component="editor"] .cm-editor-content > .cm-editor {
|
|
183
|
+
height: auto;
|
|
184
|
+
min-height: 0;
|
|
185
|
+
width: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* Mira theme pads `& > .cm-scroller`; host column already owns those margins.
|
|
190
|
+
* Keep both axes non-scrolling so the outer design-core ScrollArea remains the
|
|
191
|
+
* sole vertical owner. `clip` is intentional: pairing `hidden` with a visible
|
|
192
|
+
* y-axis would make CSS compute overflow-y to `auto` and paint a second track.
|
|
193
|
+
*/
|
|
194
|
+
[data-ui-component="editor"][data-ui-part="scroll-content"]
|
|
195
|
+
.cm-editor-content
|
|
196
|
+
> .cm-editor
|
|
197
|
+
> .cm-scroller {
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
height: auto;
|
|
200
|
+
min-height: 0;
|
|
201
|
+
overflow-x: clip;
|
|
202
|
+
overflow-y: visible;
|
|
203
|
+
padding-block: 0;
|
|
204
|
+
padding-inline: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[data-ui-component="editor"] .cm-editor-source {
|
|
208
|
+
padding-block-end: 50svh;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/*
|
|
212
|
+
* Default face is Mira monospace. Markdown and plain text opt into sans via
|
|
213
|
+
* the CodeMirror host `data-language` attribute from markupEditor().
|
|
214
|
+
*/
|
|
215
|
+
[data-ui-component="editor"] .cm-editor.cm-editor-source > .cm-scroller {
|
|
216
|
+
font-family: var(
|
|
217
|
+
--ui-editor-font-mono,
|
|
218
|
+
var(--font-mono, var(--mira-font-mono, ui-monospace, monospace))
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-ui-component="editor"]
|
|
223
|
+
.cm-editor.cm-editor-source[data-language="markdown"]
|
|
224
|
+
> .cm-scroller,
|
|
225
|
+
[data-ui-component="editor"]
|
|
226
|
+
.cm-editor.cm-editor-source[data-language="text"]
|
|
227
|
+
> .cm-scroller {
|
|
228
|
+
font-family: var(
|
|
229
|
+
--ui-editor-font-sans,
|
|
230
|
+
var(--font-sans, var(--mira-font-sans, inherit))
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Non-Markdown languages use the configured gutter; Mira Markdown owns its
|
|
235
|
+
* inline fold controls and suppresses the duplicate gutter presentation. */
|
|
236
|
+
[data-ui-component="editor"]
|
|
237
|
+
.cm-editor:not([data-language="markdown"])
|
|
238
|
+
.cm-gutter.cm-foldGutter {
|
|
239
|
+
display: flex;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
[data-ui-component="editor"]
|
|
243
|
+
.cm-editor[data-language="markdown"]
|
|
244
|
+
.cm-gutter.cm-foldGutter {
|
|
245
|
+
display: none !important;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[data-ui-component="editor"] .cm-editor .cm-foldGutter .cm-gutterElement {
|
|
249
|
+
display: inline-flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
pointer-events: auto;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
[data-ui-component="editor"] .cm-editor .cm-gutterElement .collapse-icon {
|
|
257
|
+
display: flex;
|
|
258
|
+
align-items: center;
|
|
259
|
+
height: 100%;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
[data-ui-component="editor"] .collapse-icon svg.svg-icon {
|
|
264
|
+
width: 10px;
|
|
265
|
+
height: 10px;
|
|
266
|
+
stroke-width: 4px;
|
|
267
|
+
color: var(--text-accent, var(--mira-accent, var(--primary)));
|
|
268
|
+
transition: transform 100ms ease-in-out;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
[data-ui-component="editor"] .cm-editor .cm-foldPlaceholder {
|
|
272
|
+
margin-inline-start: 0.5rem;
|
|
273
|
+
border: none;
|
|
274
|
+
color: var(--muted-foreground, var(--mira-muted-foreground));
|
|
275
|
+
background: transparent;
|
|
276
|
+
user-select: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
[data-ui-component="editor"] .cm-line-block {
|
|
280
|
+
display: flex;
|
|
281
|
+
height: 100%;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
justify-content: space-between;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
[data-ui-component="editor"][data-ui-part="search-root"] {
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
align-items: center;
|
|
290
|
+
margin-inline: var(--ui-editor-search-pad-x);
|
|
291
|
+
padding-block: var(--ui-editor-search-pad-y);
|
|
292
|
+
background: var(--background);
|
|
293
|
+
color: var(--foreground);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
[data-ui-component="editor"][data-ui-part="search-toggle"] {
|
|
297
|
+
border: none;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[data-ui-component="editor"][data-ui-part="search-toggle"]:hover {
|
|
301
|
+
border: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[data-ui-component="editor"][data-ui-part="search-icon"],
|
|
305
|
+
[data-ui-component="editor"] .editor-search-icon {
|
|
306
|
+
width: 1rem;
|
|
307
|
+
height: 1rem;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
[data-ui-component="editor"][data-ui-part="search-row"] {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
[data-ui-component="editor"][data-ui-part="search-toggle-wrap"] {
|
|
316
|
+
padding: 0.25rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
[data-ui-component="editor"][data-ui-part="search-fields"] {
|
|
320
|
+
width: 100%;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
[data-ui-component="editor"][data-ui-part="search-field-row"] {
|
|
324
|
+
display: flex;
|
|
325
|
+
width: 100%;
|
|
326
|
+
gap: var(--ui-editor-search-gap);
|
|
327
|
+
margin-inline: auto;
|
|
328
|
+
padding-block: 0.5rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
[data-ui-component="editor"][data-ui-part="search-input"],
|
|
332
|
+
[data-ui-component="editor"] .editor-search-input {
|
|
333
|
+
height: var(--ui-editor-search-input-height);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
[data-ui-component="editor"][data-ui-part="search-input"]:focus-visible,
|
|
337
|
+
[data-ui-component="editor"] .editor-search-input:focus-visible {
|
|
338
|
+
box-shadow: 0 0 0 2px var(--ring, var(--primary));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
[data-ui-component="editor"][data-ui-part="lint-tooltip"] {
|
|
342
|
+
position: relative;
|
|
343
|
+
display: flex;
|
|
344
|
+
flex-direction: column;
|
|
345
|
+
min-width: var(--ui-editor-lint-min-width);
|
|
346
|
+
max-width: var(--ui-editor-lint-max-width);
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
border: 1px solid var(--border);
|
|
349
|
+
border-radius: var(--ui-editor-lint-radius);
|
|
350
|
+
background: var(--secondary);
|
|
351
|
+
box-shadow:
|
|
352
|
+
0 4px 6px -1px rgb(0 0 0 / 0.1),
|
|
353
|
+
0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
[data-ui-component="editor"][data-ui-part="lint-message-band"] {
|
|
357
|
+
position: relative;
|
|
358
|
+
padding: 0.375rem 0.5rem;
|
|
359
|
+
background: var(--secondary);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
[data-ui-component="editor"][data-ui-part="lint-message-row"] {
|
|
363
|
+
display: grid;
|
|
364
|
+
min-width: 0;
|
|
365
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
366
|
+
align-items: center;
|
|
367
|
+
gap: 0.375rem;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
[data-ui-component="editor"][data-ui-part="lint-message-text"] {
|
|
371
|
+
min-width: 0;
|
|
372
|
+
font-family: var(--ui-editor-font-sans);
|
|
373
|
+
font-size: 0.8125rem;
|
|
374
|
+
line-height: 1.35;
|
|
375
|
+
white-space: pre-wrap;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
[data-ui-component="editor"][data-ui-part="lint-rule"] {
|
|
379
|
+
font: inherit;
|
|
380
|
+
color: var(--ui-editor-lint-accent);
|
|
381
|
+
text-underline-offset: 2px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
[data-ui-component="editor"][data-ui-part="lint-rule"]:hover {
|
|
385
|
+
text-decoration: underline;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
[data-ui-component="editor"][data-ui-part="lint-copy"] {
|
|
389
|
+
margin-inline-start: 0.125rem;
|
|
390
|
+
color: var(--muted-foreground);
|
|
391
|
+
opacity: 0.65;
|
|
392
|
+
transition: opacity 150ms ease;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
[data-ui-component="editor"][data-ui-part="lint-tooltip"]:hover
|
|
396
|
+
[data-ui-part="lint-copy"] {
|
|
397
|
+
opacity: 1;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
[data-ui-component="editor"][data-ui-part="lint-copy"]:focus-visible {
|
|
401
|
+
opacity: 1;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
[data-ui-component="editor"][data-ui-part="lint-copy"]:hover {
|
|
405
|
+
color: var(--foreground);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
[data-ui-component="editor"][data-ui-part="lint-source"] {
|
|
409
|
+
white-space: nowrap;
|
|
410
|
+
font-size: 0.75rem;
|
|
411
|
+
color: var(--muted-foreground);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
[data-ui-component="editor"][data-ui-part="lint-footer"] {
|
|
415
|
+
display: flex;
|
|
416
|
+
flex-wrap: wrap;
|
|
417
|
+
align-items: center;
|
|
418
|
+
column-gap: 0.75rem;
|
|
419
|
+
row-gap: 0.25rem;
|
|
420
|
+
border-top: 1px solid var(--border);
|
|
421
|
+
padding-block: 0.375rem;
|
|
422
|
+
padding-inline: 1rem 0.75rem;
|
|
423
|
+
background: color-mix(in srgb, var(--secondary) 82%, var(--foreground) 8%);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
[data-ui-component="editor"][data-ui-part="lint-action"],
|
|
427
|
+
[data-ui-component="editor"][data-ui-part="lint-quick-fix"] {
|
|
428
|
+
height: auto;
|
|
429
|
+
padding: 0;
|
|
430
|
+
border: 0;
|
|
431
|
+
background: transparent;
|
|
432
|
+
font: inherit;
|
|
433
|
+
font-size: 0.75rem;
|
|
434
|
+
font-weight: 400;
|
|
435
|
+
color: var(--foreground);
|
|
436
|
+
text-underline-offset: 2px;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
[data-ui-component="editor"][data-ui-part="lint-action"]:hover,
|
|
441
|
+
[data-ui-component="editor"][data-ui-part="lint-quick-fix"]:hover,
|
|
442
|
+
[data-ui-component="editor"][data-ui-part="lint-quick-fix"][data-state="open"] {
|
|
443
|
+
color: var(--ui-editor-lint-accent);
|
|
444
|
+
text-decoration: underline;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/* Inline diagnostic expansion created by the lint tooltip's View Problem action. */
|
|
448
|
+
[data-ui-component="editor"][data-ui-part="inline-problem"] {
|
|
449
|
+
position: relative;
|
|
450
|
+
box-sizing: border-box;
|
|
451
|
+
width: min(720px, var(--lapis-inline-problem-max-width, calc(100vw - 96px)));
|
|
452
|
+
border-left: 2px solid var(--ui-editor-inline-problem-accent);
|
|
453
|
+
color: var(--ui-editor-inline-problem-foreground);
|
|
454
|
+
background: var(--ui-editor-inline-problem-background);
|
|
455
|
+
font-family: var(--ui-editor-font-sans);
|
|
456
|
+
font-size: 0.875rem;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-pointer"] {
|
|
460
|
+
position: absolute;
|
|
461
|
+
top: -5px;
|
|
462
|
+
left: calc(var(--lapis-inline-problem-pointer-left, 0px) + 0.75rem);
|
|
463
|
+
width: 0;
|
|
464
|
+
height: 0;
|
|
465
|
+
border-inline: 5px solid transparent;
|
|
466
|
+
border-bottom: 5px solid var(--ui-editor-inline-problem-accent);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-header"] {
|
|
470
|
+
display: flex;
|
|
471
|
+
align-items: center;
|
|
472
|
+
justify-content: space-between;
|
|
473
|
+
gap: 1.5rem;
|
|
474
|
+
padding: 0.25rem 0.75rem;
|
|
475
|
+
background: color-mix(
|
|
476
|
+
in srgb,
|
|
477
|
+
var(--ui-editor-inline-problem-accent) 12%,
|
|
478
|
+
var(--ui-editor-inline-problem-background)
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
:is(.dark, .theme-dark, [data-ui-theme="lapis"].dark)
|
|
483
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-header"] {
|
|
484
|
+
background: color-mix(
|
|
485
|
+
in srgb,
|
|
486
|
+
var(--ui-editor-inline-problem-accent) 18%,
|
|
487
|
+
var(--ui-editor-inline-problem-background)
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-title"] {
|
|
492
|
+
display: flex;
|
|
493
|
+
align-items: center;
|
|
494
|
+
gap: 0.375rem;
|
|
495
|
+
font-weight: 500;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-icon"] {
|
|
499
|
+
color: var(--ui-editor-inline-problem-accent);
|
|
500
|
+
font-size: 0.875rem;
|
|
501
|
+
line-height: 1;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-label"] {
|
|
505
|
+
color: var(--ui-editor-inline-problem-foreground);
|
|
506
|
+
font-size: 0.875rem;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-close"] {
|
|
510
|
+
padding: 0.125rem 0.25rem;
|
|
511
|
+
border: 0;
|
|
512
|
+
border-radius: 0.25rem;
|
|
513
|
+
color: var(--ui-editor-inline-problem-muted-foreground);
|
|
514
|
+
background: transparent;
|
|
515
|
+
font: inherit;
|
|
516
|
+
font-size: 1rem;
|
|
517
|
+
line-height: 1;
|
|
518
|
+
cursor: pointer;
|
|
519
|
+
transition:
|
|
520
|
+
color 120ms ease,
|
|
521
|
+
background-color 120ms ease;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-close"]:hover {
|
|
525
|
+
color: var(--ui-editor-inline-problem-foreground);
|
|
526
|
+
background: color-mix(
|
|
527
|
+
in srgb,
|
|
528
|
+
var(--ui-editor-inline-problem-accent) 12%,
|
|
529
|
+
transparent
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-close"]:focus-visible {
|
|
534
|
+
outline: 2px solid var(--ui-workspace-focus-ring, var(--ring, currentColor));
|
|
535
|
+
outline-offset: 1px;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-body"] {
|
|
539
|
+
display: flex;
|
|
540
|
+
flex-wrap: wrap;
|
|
541
|
+
align-items: baseline;
|
|
542
|
+
column-gap: 0.375rem;
|
|
543
|
+
padding: 0.5rem 0.75rem;
|
|
544
|
+
border-top: 1px solid
|
|
545
|
+
color-mix(
|
|
546
|
+
in srgb,
|
|
547
|
+
var(--ui-editor-inline-problem-accent) 25%,
|
|
548
|
+
var(--ui-editor-inline-problem-border)
|
|
549
|
+
);
|
|
550
|
+
background: var(--ui-editor-inline-problem-background);
|
|
551
|
+
font-family: var(--ui-editor-font-mono);
|
|
552
|
+
font-size: 0.875rem;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-message"] {
|
|
556
|
+
color: var(--ui-editor-inline-problem-foreground);
|
|
557
|
+
white-space: pre-wrap;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
[data-ui-component="editor"][data-ui-part="inline-problem-source"] {
|
|
561
|
+
flex-shrink: 0;
|
|
562
|
+
color: var(--ui-editor-inline-problem-muted-foreground);
|
|
563
|
+
font-family: var(--ui-editor-font-mono);
|
|
564
|
+
font-size: 0.75rem;
|
|
565
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Compartment, type Extension } from "@codemirror/state";
|
|
2
|
+
import { EditorView, GutterMarker } from "@codemirror/view";
|
|
3
|
+
import type { App } from "../../context.svelte";
|
|
4
|
+
export declare class BlockLineMarker extends GutterMarker {
|
|
5
|
+
readonly from: number;
|
|
6
|
+
readonly to: number;
|
|
7
|
+
constructor(from: number, to: number);
|
|
8
|
+
eq(other: BlockLineMarker): boolean;
|
|
9
|
+
toDOM(): HTMLDivElement;
|
|
10
|
+
}
|
|
11
|
+
export declare class EditorConfig {
|
|
12
|
+
readonly configs: Record<string, {
|
|
13
|
+
config: Compartment;
|
|
14
|
+
controller: (value: any, app: App) => Extension | null;
|
|
15
|
+
}>;
|
|
16
|
+
register<T>(key: string, controller: (value: T, app: App) => Extension | null): void;
|
|
17
|
+
has(key: string): boolean;
|
|
18
|
+
extension(application?: App): Extension;
|
|
19
|
+
update<T>(view: EditorView, key: string, value?: T, application?: App): void;
|
|
20
|
+
}
|
|
21
|
+
export type MarkupEditorOptions = {
|
|
22
|
+
/** Stable language id written to the CM host as `data-language`. */
|
|
23
|
+
language?: string;
|
|
24
|
+
/** Application that owns the editor configuration. */
|
|
25
|
+
app?: App;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Source-editor CodeMirror shell backed by Mira base extensions + Lapis live
|
|
29
|
+
* configuration compartments. Language packs are passed in by the caller;
|
|
30
|
+
* Markdown live-preview / rich Mira surfaces are not included.
|
|
31
|
+
*/
|
|
32
|
+
export declare function markupEditor(options?: MarkupEditorOptions, ...extensions: Extension[]): Extension;
|
|
33
|
+
export declare const editorConfig: EditorConfig;
|