@formicoidea/labre-core 0.29.1 → 0.31.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/dist/_pkgs/affine-block-attachment/attachment-block.js +3 -3
- package/dist/_pkgs/affine-block-attachment/components/rename-model.js +1 -1
- package/dist/_pkgs/affine-block-attachment/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-attachment/configs/toolbar.js +3 -3
- package/dist/_pkgs/affine-block-attachment/effects.js +2 -2
- package/dist/_pkgs/affine-block-attachment/embed.js +1 -1
- package/dist/_pkgs/affine-block-attachment/index.d.ts +7 -7
- package/dist/_pkgs/affine-block-attachment/index.js +7 -7
- package/dist/_pkgs/affine-block-attachment/store.js +1 -1
- package/dist/_pkgs/affine-block-attachment/utils.d.ts +1 -1
- package/dist/_pkgs/affine-block-attachment/view.js +3 -3
- package/dist/_pkgs/affine-block-bookmark/commands/insert-link-by-quick-search.js +1 -1
- package/dist/_pkgs/affine-block-bookmark/components/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-bookmark/components/index.js +1 -1
- package/dist/_pkgs/affine-block-bookmark/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-bookmark/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-bookmark/effects.js +3 -3
- package/dist/_pkgs/affine-block-bookmark/index.d.ts +6 -6
- package/dist/_pkgs/affine-block-bookmark/index.js +6 -6
- package/dist/_pkgs/affine-block-bookmark/store.js +1 -1
- package/dist/_pkgs/affine-block-bookmark/view.js +5 -5
- package/dist/_pkgs/affine-block-callout/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-callout/effects.d.ts +2 -2
- package/dist/_pkgs/affine-block-callout/effects.js +2 -2
- package/dist/_pkgs/affine-block-callout/store.js +1 -1
- package/dist/_pkgs/affine-block-callout/view.js +3 -3
- package/dist/_pkgs/affine-block-code/code-toolbar/components/lang-button.d.ts +1 -1
- package/dist/_pkgs/affine-block-code/code-toolbar/components/preview-button.d.ts +1 -1
- package/dist/_pkgs/affine-block-code/code-toolbar/components/preview-button.js +1 -1
- package/dist/_pkgs/affine-block-code/code-toolbar/context.d.ts +1 -1
- package/dist/_pkgs/affine-block-code/effects.d.ts +4 -4
- package/dist/_pkgs/affine-block-code/effects.js +6 -6
- package/dist/_pkgs/affine-block-code/index.d.ts +10 -10
- package/dist/_pkgs/affine-block-code/index.js +10 -10
- package/dist/_pkgs/affine-block-code/store.js +2 -2
- package/dist/_pkgs/affine-block-code/turbo/code-layout-handler.d.ts +1 -1
- package/dist/_pkgs/affine-block-code/view.js +1 -1
- package/dist/_pkgs/affine-block-data-view/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-data-view/effects.js +1 -1
- package/dist/_pkgs/affine-block-data-view/store.js +1 -1
- package/dist/_pkgs/affine-block-data-view/view.js +2 -2
- package/dist/_pkgs/affine-block-database/adapters/html.js +1 -1
- package/dist/_pkgs/affine-block-database/adapters/index.d.ts +4 -4
- package/dist/_pkgs/affine-block-database/adapters/index.js +4 -4
- package/dist/_pkgs/affine-block-database/adapters/markdown.js +1 -1
- package/dist/_pkgs/affine-block-database/adapters/utils.js +1 -1
- package/dist/_pkgs/affine-block-database/commands.js +1 -1
- package/dist/_pkgs/affine-block-database/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-database/context/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-database/context/index.js +1 -1
- package/dist/_pkgs/affine-block-database/database-block.d.ts +1 -1
- package/dist/_pkgs/affine-block-database/effects.js +11 -11
- package/dist/_pkgs/affine-block-database/index.d.ts +14 -14
- package/dist/_pkgs/affine-block-database/index.js +14 -14
- package/dist/_pkgs/affine-block-database/properties/model.js +3 -3
- package/dist/_pkgs/affine-block-database/store.js +2 -2
- package/dist/_pkgs/affine-block-database/view.js +2 -2
- package/dist/_pkgs/affine-block-divider/effects.js +1 -1
- package/dist/_pkgs/affine-block-divider/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-divider/index.js +2 -2
- package/dist/_pkgs/affine-block-divider/store.js +1 -1
- package/dist/_pkgs/affine-block-divider/view.js +2 -2
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-toolbar/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-toolbar/index.js +1 -1
- package/dist/_pkgs/affine-block-edgeless-text/effects.js +1 -1
- package/dist/_pkgs/affine-block-edgeless-text/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-edgeless-text/index.js +2 -2
- package/dist/_pkgs/affine-block-edgeless-text/view.js +4 -4
- package/dist/_pkgs/affine-block-embed/configs/toolbar.d.ts +4 -4
- package/dist/_pkgs/affine-block-embed/effects.d.ts +17 -17
- package/dist/_pkgs/affine-block-embed/effects.js +18 -18
- package/dist/_pkgs/affine-block-embed/embed-figma-block/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-figma-block/embed-figma-spec.js +5 -5
- package/dist/_pkgs/affine-block-embed/embed-figma-block/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-figma-block/index.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-github-block/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-github-block/embed-github-spec.js +5 -5
- package/dist/_pkgs/affine-block-embed/embed-github-block/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-github-block/index.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-html-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-html-block/embed-html-spec.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-html-block/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-html-block/index.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/adapters/html.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/adapters/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/adapters/index.js +6 -6
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/adapters/plain-text.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/commands/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/commands/index.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/commands/insert-embed-iframe-with-url.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/commands/insert-empty-embed-iframe.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/commands/insert-empty-embed-iframe.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-error-card.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-error-card.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-idle-card.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-idle-card.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-edit-popup.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-edit-popup.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-input-popup.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-input-popup.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-loading-card.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-loading-card.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/index.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/excalidraw.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/google-docs.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/google-drive.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/index.js +6 -6
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/miro.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/spotify.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/slash-menu/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/embed-edgeless-iframe-block.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/embed-edgeless-iframe-block.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/embed-iframe-spec.js +3 -3
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/index.d.ts +8 -8
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/index.js +8 -8
- package/dist/_pkgs/affine-block-embed/embed-loom-block/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-loom-block/embed-loom-spec.js +5 -5
- package/dist/_pkgs/affine-block-embed/embed-loom-block/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-loom-block/index.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-youtube-block/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-youtube-block/embed-youtube-spec.js +5 -5
- package/dist/_pkgs/affine-block-embed/embed-youtube-block/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-youtube-block/index.js +1 -1
- package/dist/_pkgs/affine-block-embed/index.d.ts +16 -16
- package/dist/_pkgs/affine-block-embed/index.js +16 -16
- package/dist/_pkgs/affine-block-embed/store.js +6 -6
- package/dist/_pkgs/affine-block-embed/types.d.ts +4 -4
- package/dist/_pkgs/affine-block-embed/types.js +4 -4
- package/dist/_pkgs/affine-block-embed/view.js +13 -13
- package/dist/_pkgs/affine-block-embed-doc/common/render-linked-doc.d.ts +2 -2
- package/dist/_pkgs/affine-block-embed-doc/effects.d.ts +5 -5
- package/dist/_pkgs/affine-block-embed-doc/effects.js +5 -5
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/commands/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/commands/index.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/slash-menu.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-block.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-spec.js +3 -3
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/index.d.ts +8 -8
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/index.js +8 -8
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/commands/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/commands/index.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/components/embed-synced-doc-card.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/edgeless-interaction.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-edgeless-synced-doc-block.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-edgeless-synced-doc-block.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-synced-doc-spec.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/index.d.ts +7 -7
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/index.js +7 -7
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/init-height-extension.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-embed-doc/index.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/store.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/view.js +4 -4
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/frame-dense-menu.js +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/frame-menu.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/frame-menu.js +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/frame-tool-button.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/frame-tool-button.js +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/index.d.ts +5 -5
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/index.js +5 -5
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/presentation-toolbar.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/presentation-toolbar.js +2 -2
- package/dist/_pkgs/affine-block-frame/edgeless-toolbar/quick-tool.js +1 -1
- package/dist/_pkgs/affine-block-frame/effects.d.ts +8 -8
- package/dist/_pkgs/affine-block-frame/effects.js +8 -8
- package/dist/_pkgs/affine-block-frame/frame-block.js +1 -1
- package/dist/_pkgs/affine-block-frame/frame-highlight-manager.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/frame-highlight-manager.js +1 -1
- package/dist/_pkgs/affine-block-frame/frame-manager.d.ts +13 -0
- package/dist/_pkgs/affine-block-frame/frame-manager.js +42 -3
- package/dist/_pkgs/affine-block-frame/frame-spec.js +2 -2
- package/dist/_pkgs/affine-block-frame/frame-tool.d.ts +2 -2
- package/dist/_pkgs/affine-block-frame/frame-tool.js +1 -1
- package/dist/_pkgs/affine-block-frame/frame-toolbar.js +1 -1
- package/dist/_pkgs/affine-block-frame/index.d.ts +9 -9
- package/dist/_pkgs/affine-block-frame/index.js +9 -9
- package/dist/_pkgs/affine-block-frame/present/frame-order-menu.js +1 -1
- package/dist/_pkgs/affine-block-frame/present/navigator-bg-widget.js +1 -1
- package/dist/_pkgs/affine-block-frame/present/present-button.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/present/present-button.js +1 -1
- package/dist/_pkgs/affine-block-frame/present-tool.d.ts +1 -1
- package/dist/_pkgs/affine-block-frame/view.js +10 -10
- package/dist/_pkgs/affine-block-image/adapters/html.js +1 -1
- package/dist/_pkgs/affine-block-image/adapters/markdown.js +1 -1
- package/dist/_pkgs/affine-block-image/adapters/notion-html.js +1 -1
- package/dist/_pkgs/affine-block-image/commands/insert-images.js +1 -1
- package/dist/_pkgs/affine-block-image/components/page-image-block.d.ts +1 -1
- package/dist/_pkgs/affine-block-image/components/page-image-block.js +3 -3
- package/dist/_pkgs/affine-block-image/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-image/configs/toolbar.js +3 -3
- package/dist/_pkgs/affine-block-image/image-block.js +1 -1
- package/dist/_pkgs/affine-block-image/image-edgeless-block.js +1 -1
- package/dist/_pkgs/affine-block-image/image-spec.js +4 -4
- package/dist/_pkgs/affine-block-image/index.d.ts +10 -10
- package/dist/_pkgs/affine-block-image/index.js +10 -10
- package/dist/_pkgs/affine-block-image/store.js +1 -1
- package/dist/_pkgs/affine-block-image/turbo/image-layout-handler.d.ts +1 -1
- package/dist/_pkgs/affine-block-image/utils.d.ts +2 -2
- package/dist/_pkgs/affine-block-image/utils.js +1 -1
- package/dist/_pkgs/affine-block-image/view.js +4 -4
- package/dist/_pkgs/affine-block-latex/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-latex/effects.js +1 -1
- package/dist/_pkgs/affine-block-latex/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-latex/index.js +3 -3
- package/dist/_pkgs/affine-block-latex/store.js +2 -2
- package/dist/_pkgs/affine-block-latex/view.js +2 -2
- package/dist/_pkgs/affine-block-list/index.d.ts +4 -4
- package/dist/_pkgs/affine-block-list/index.js +4 -4
- package/dist/_pkgs/affine-block-list/store.js +1 -1
- package/dist/_pkgs/affine-block-list/turbo/list-layout-handler.d.ts +1 -1
- package/dist/_pkgs/affine-block-note/adapters/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-note/adapters/index.js +6 -6
- package/dist/_pkgs/affine-block-note/commands/dedent-block-to-root.js +1 -1
- package/dist/_pkgs/affine-block-note/commands/dedent-blocks-to-root.js +1 -1
- package/dist/_pkgs/affine-block-note/commands/dedent-blocks.js +1 -1
- package/dist/_pkgs/affine-block-note/commands/indent-blocks.js +1 -1
- package/dist/_pkgs/affine-block-note/components/edgeless-note-background.css.js +1 -1
- package/dist/_pkgs/affine-block-note/components/edgeless-note-background.js +2 -2
- package/dist/_pkgs/affine-block-note/components/edgeless-note-mask.js +1 -1
- package/dist/_pkgs/affine-block-note/components/edgeless-note-shadow-menu.js +1 -1
- package/dist/_pkgs/affine-block-note/components/edgeless-page-block-title.js +2 -2
- package/dist/_pkgs/affine-block-note/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-note/configs/toolbar.js +2 -2
- package/dist/_pkgs/affine-block-note/effects.js +9 -9
- package/dist/_pkgs/affine-block-note/index.d.ts +9 -9
- package/dist/_pkgs/affine-block-note/index.js +9 -9
- package/dist/_pkgs/affine-block-note/note-edgeless-block.d.ts +1 -1
- package/dist/_pkgs/affine-block-note/note-edgeless-block.js +6 -6
- package/dist/_pkgs/affine-block-note/note-keymap.js +3 -3
- package/dist/_pkgs/affine-block-note/store.js +1 -1
- package/dist/_pkgs/affine-block-note/turbo/note-layout-handler.d.ts +1 -1
- package/dist/_pkgs/affine-block-note/view.js +6 -6
- package/dist/_pkgs/affine-block-paragraph/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-paragraph/index.js +3 -3
- package/dist/_pkgs/affine-block-paragraph/store.js +1 -1
- package/dist/_pkgs/affine-block-paragraph/turbo/paragraph-layout-handler.d.ts +1 -1
- package/dist/_pkgs/affine-block-paragraph/view.js +1 -1
- package/dist/_pkgs/affine-block-root/clipboard/page-clipboard.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/clipboard/page-clipboard.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/clipboard/command.js +2 -2
- package/dist/_pkgs/affine-block-root/edgeless/clipboard/utils.js +2 -2
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/index.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.js +2 -2
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.js +7 -7
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/utils.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/utils.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/edgeless-root-service.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-root/edgeless/index.js +3 -3
- package/dist/_pkgs/affine-block-root/edgeless/utils/clipboard-utils.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/utils/query.js +1 -1
- package/dist/_pkgs/affine-block-root/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/index.js +1 -1
- package/dist/_pkgs/affine-block-root/keyboard/shortcuts.js +3 -3
- package/dist/_pkgs/affine-block-root/preview/edgeless-root-preview-block.js +1 -1
- package/dist/_pkgs/affine-block-root/store.js +1 -1
- package/dist/_pkgs/affine-block-root/view.js +14 -9
- package/dist/_pkgs/affine-block-surface/commands/auto-align.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/clipboard-config.d.ts +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/clipboard-config.js +2 -2
- package/dist/_pkgs/affine-block-surface/extensions/crud-extension.js +2 -2
- package/dist/_pkgs/affine-block-surface/extensions/edit-props-middleware-builder.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/element-renderer.d.ts +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/index.d.ts +9 -9
- package/dist/_pkgs/affine-block-surface/extensions/index.js +9 -9
- package/dist/_pkgs/affine-block-surface/extensions/surface-middleware.d.ts +1 -1
- package/dist/_pkgs/affine-block-surface/index.d.ts +5 -5
- package/dist/_pkgs/affine-block-surface/index.js +4 -4
- package/dist/_pkgs/affine-block-surface/renderer/canvas-renderer.js +1 -1
- package/dist/_pkgs/affine-block-surface/renderer/tool-overlay.d.ts +2 -2
- package/dist/_pkgs/affine-block-surface/renderer/tool-overlay.js +1 -1
- package/dist/_pkgs/affine-block-surface/store.js +2 -2
- package/dist/_pkgs/affine-block-surface/utils/get-bg-grip-gap.js +1 -1
- package/dist/_pkgs/affine-block-surface/utils/get-surface-block.d.ts +2 -2
- package/dist/_pkgs/affine-block-surface/utils/index.d.ts +3 -3
- package/dist/_pkgs/affine-block-surface/utils/index.js +3 -3
- package/dist/_pkgs/affine-block-surface/view.js +4 -4
- package/dist/_pkgs/affine-block-surface-ref/components/index.d.ts +2 -2
- package/dist/_pkgs/affine-block-surface-ref/components/index.js +2 -2
- package/dist/_pkgs/affine-block-surface-ref/components/placeholder.js +2 -2
- package/dist/_pkgs/affine-block-surface-ref/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-surface-ref/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-surface-ref/effects.js +5 -5
- package/dist/_pkgs/affine-block-surface-ref/view.js +3 -3
- package/dist/_pkgs/affine-block-table/adapters/html.js +2 -2
- package/dist/_pkgs/affine-block-table/adapters/index.d.ts +5 -5
- package/dist/_pkgs/affine-block-table/adapters/index.js +5 -5
- package/dist/_pkgs/affine-block-table/adapters/markdown.js +1 -1
- package/dist/_pkgs/affine-block-table/add-button.d.ts +1 -1
- package/dist/_pkgs/affine-block-table/add-button.js +2 -2
- package/dist/_pkgs/affine-block-table/commands.js +1 -1
- package/dist/_pkgs/affine-block-table/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-table/effects.js +4 -4
- package/dist/_pkgs/affine-block-table/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-table/index.js +1 -1
- package/dist/_pkgs/affine-block-table/selection-controller.d.ts +2 -2
- package/dist/_pkgs/affine-block-table/selection-controller.js +4 -4
- package/dist/_pkgs/affine-block-table/selection-layer.d.ts +1 -1
- package/dist/_pkgs/affine-block-table/store.js +2 -2
- package/dist/_pkgs/affine-block-table/table-block.d.ts +2 -2
- package/dist/_pkgs/affine-block-table/table-block.js +3 -3
- package/dist/_pkgs/affine-block-table/table-cell.d.ts +2 -2
- package/dist/_pkgs/affine-block-table/table-cell.js +4 -4
- package/dist/_pkgs/affine-block-table/table-data-manager.d.ts +1 -1
- package/dist/_pkgs/affine-block-table/view.js +2 -2
- package/dist/_pkgs/affine-components/card-style-dropdown-menu/dropdown-menu.js +1 -1
- package/dist/_pkgs/affine-components/card-style-dropdown-menu/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/card-style-dropdown-menu/index.js +2 -2
- package/dist/_pkgs/affine-components/citation/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/citation/index.js +2 -2
- package/dist/_pkgs/affine-components/color-picker/button.d.ts +2 -2
- package/dist/_pkgs/affine-components/color-picker/color-panel.js +2 -2
- package/dist/_pkgs/affine-components/color-picker/color-picker.js +1 -1
- package/dist/_pkgs/affine-components/color-picker/index.d.ts +9 -9
- package/dist/_pkgs/affine-components/color-picker/index.js +9 -9
- package/dist/_pkgs/affine-components/color-picker/utils.js +1 -1
- package/dist/_pkgs/affine-components/context-menu/index.d.ts +10 -10
- package/dist/_pkgs/affine-components/context-menu/index.js +15 -15
- package/dist/_pkgs/affine-components/context-menu/menu-all.d.ts +10 -10
- package/dist/_pkgs/affine-components/context-menu/menu-all.js +5 -5
- package/dist/_pkgs/affine-components/drop-indicator/file-drop-manager.d.ts +1 -1
- package/dist/_pkgs/affine-components/drop-indicator/file-drop-manager.js +2 -2
- package/dist/_pkgs/affine-components/drop-indicator/index.d.ts +2 -2
- package/dist/_pkgs/affine-components/drop-indicator/index.js +2 -2
- package/dist/_pkgs/affine-components/edgeless-line-styles-panel/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/edgeless-line-styles-panel/index.js +2 -2
- package/dist/_pkgs/affine-components/edgeless-line-width-panel/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/edgeless-line-width-panel/index.js +2 -2
- package/dist/_pkgs/affine-components/edgeless-shape-color-picker/color-picker.d.ts +1 -1
- package/dist/_pkgs/affine-components/edgeless-shape-color-picker/color-picker.js +1 -1
- package/dist/_pkgs/affine-components/edgeless-shape-color-picker/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/edgeless-shape-color-picker/index.js +2 -2
- package/dist/_pkgs/affine-components/embed-card-modal/embed-card-create-modal.js +1 -1
- package/dist/_pkgs/affine-components/embed-card-modal/embed-card-edit-modal.js +1 -1
- package/dist/_pkgs/affine-components/embed-card-modal/index.d.ts +2 -2
- package/dist/_pkgs/affine-components/embed-card-modal/index.js +4 -4
- package/dist/_pkgs/affine-components/filterable-list/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/filterable-list/index.js +1 -1
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/dropdown-menu.js +1 -1
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/index.d.ts +3 -3
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/index.js +6 -6
- package/dist/_pkgs/affine-components/icons/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/icons/index.js +1 -1
- package/dist/_pkgs/affine-components/link-preview/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/link-preview/index.js +2 -2
- package/dist/_pkgs/affine-components/linked-doc-title/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/linked-doc-title/index.js +2 -2
- package/dist/_pkgs/affine-components/open-doc-dropdown-menu/dropdown-menu.js +1 -1
- package/dist/_pkgs/affine-components/open-doc-dropdown-menu/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/open-doc-dropdown-menu/index.js +2 -2
- package/dist/_pkgs/affine-components/resource/index.d.ts +2 -2
- package/dist/_pkgs/affine-components/resource/index.js +3 -3
- package/dist/_pkgs/affine-components/size-dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/_pkgs/affine-components/size-dropdown-menu/dropdown-menu.js +2 -2
- package/dist/_pkgs/affine-components/size-dropdown-menu/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/size-dropdown-menu/index.js +2 -2
- package/dist/_pkgs/affine-components/slider/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/slider/index.js +2 -2
- package/dist/_pkgs/affine-components/slider/slider.d.ts +1 -1
- package/dist/_pkgs/affine-components/slider/slider.js +2 -2
- package/dist/_pkgs/affine-components/slider/utils.d.ts +1 -1
- package/dist/_pkgs/affine-components/toolbar/config.d.ts +1 -1
- package/dist/_pkgs/affine-components/view-dropdown-menu/dropdown-menu.js +1 -1
- package/dist/_pkgs/affine-components/view-dropdown-menu/index.d.ts +1 -1
- package/dist/_pkgs/affine-components/view-dropdown-menu/index.js +2 -2
- package/dist/_pkgs/affine-ext-loader/index.d.ts +4 -4
- package/dist/_pkgs/affine-ext-loader/index.js +4 -4
- package/dist/_pkgs/affine-ext-loader/manager.d.ts +1 -1
- package/dist/_pkgs/affine-ext-loader/store-manager.d.ts +1 -1
- package/dist/_pkgs/affine-ext-loader/store-manager.js +1 -1
- package/dist/_pkgs/affine-ext-loader/store-provider.d.ts +1 -1
- package/dist/_pkgs/affine-ext-loader/store-provider.js +1 -1
- package/dist/_pkgs/affine-ext-loader/view-manager.d.ts +2 -2
- package/dist/_pkgs/affine-ext-loader/view-manager.js +1 -1
- package/dist/_pkgs/affine-ext-loader/view-provider.d.ts +1 -1
- package/dist/_pkgs/affine-ext-loader/view-provider.js +1 -1
- package/dist/_pkgs/affine-foundation/view.js +2 -2
- package/dist/_pkgs/affine-fragment-adapter-panel/adapter-panel.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/adapter-panel.js +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/body/adapter-panel-body.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/body/adapter-panel-body.js +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/effects.js +4 -4
- package/dist/_pkgs/affine-fragment-adapter-panel/header/adapter-menu.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/header/adapter-menu.js +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/header/adapter-panel-header.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/header/adapter-panel-header.js +1 -1
- package/dist/_pkgs/affine-fragment-adapter-panel/view.js +1 -1
- package/dist/_pkgs/affine-fragment-doc-title/effects.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-doc-title/effects.js +1 -1
- package/dist/_pkgs/affine-fragment-doc-title/index.d.ts +2 -2
- package/dist/_pkgs/affine-fragment-doc-title/index.js +2 -2
- package/dist/_pkgs/affine-fragment-doc-title/utils.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-doc-title/view.js +1 -1
- package/dist/_pkgs/affine-fragment-frame-panel/card/frame-preview.js +1 -1
- package/dist/_pkgs/affine-fragment-frame-panel/effects.js +8 -8
- package/dist/_pkgs/affine-fragment-frame-panel/index.d.ts +1 -1
- package/dist/_pkgs/affine-fragment-frame-panel/index.js +1 -1
- package/dist/_pkgs/affine-fragment-frame-panel/view.js +1 -1
- package/dist/_pkgs/affine-fragment-outline/body/outline-notice.js +3 -3
- package/dist/_pkgs/affine-fragment-outline/body/outline-panel-body.js +4 -4
- package/dist/_pkgs/affine-fragment-outline/card/outline-card.js +2 -2
- package/dist/_pkgs/affine-fragment-outline/card/outline-preview.js +1 -1
- package/dist/_pkgs/affine-fragment-outline/effects.js +9 -9
- package/dist/_pkgs/affine-fragment-outline/header/outline-panel-header.js +2 -2
- package/dist/_pkgs/affine-fragment-outline/header/outline-setting-menu.js +2 -2
- package/dist/_pkgs/affine-fragment-outline/outline-panel.js +1 -1
- package/dist/_pkgs/affine-fragment-outline/view.js +1 -1
- package/dist/_pkgs/affine-gfx-brush/adapter/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-brush/adapter/index.js +2 -2
- package/dist/_pkgs/affine-gfx-brush/effects.d.ts +3 -3
- package/dist/_pkgs/affine-gfx-brush/effects.js +3 -3
- package/dist/_pkgs/affine-gfx-brush/index.d.ts +7 -7
- package/dist/_pkgs/affine-gfx-brush/index.js +7 -7
- package/dist/_pkgs/affine-gfx-brush/store.js +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/eraser/eraser-tool-button.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/eraser/eraser-tool-button.js +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/consts.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/consts.js +1 -1
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-menu.d.ts +3 -3
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-menu.js +3 -3
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-tool-button.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-tool-button.js +3 -3
- package/dist/_pkgs/affine-gfx-brush/toolbar/configs/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-brush/toolbar/configs/index.js +2 -2
- package/dist/_pkgs/affine-gfx-brush/view.js +7 -7
- package/dist/_pkgs/affine-gfx-connector/adapter/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-connector/adapter/index.js +2 -2
- package/dist/_pkgs/affine-gfx-connector/adapter/markdown/index.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/adapter/plain-text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/components/connector-handle.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-connector/connector-manager.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/connector-tool.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/connector-watcher.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/effects.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-connector/effects.js +4 -4
- package/dist/_pkgs/affine-gfx-connector/element-transform/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-connector/element-transform/index.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/index.d.ts +10 -10
- package/dist/_pkgs/affine-gfx-connector/index.js +10 -10
- package/dist/_pkgs/affine-gfx-connector/store.js +2 -2
- package/dist/_pkgs/affine-gfx-connector/text/text.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/config.js +2 -2
- package/dist/_pkgs/affine-gfx-connector/toolbar/connector-dense-menu.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/connector-menu.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/connector-menu.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/connector-tool-button.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-connector/toolbar/connector-tool-button.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/view/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-connector/view/index.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/view/view.js +1 -1
- package/dist/_pkgs/affine-gfx-connector/view.js +9 -9
- package/dist/_pkgs/affine-gfx-group/adapter/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-group/adapter/index.js +2 -2
- package/dist/_pkgs/affine-gfx-group/adapter/markdown/index.js +1 -1
- package/dist/_pkgs/affine-gfx-group/adapter/plain-text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-group/command/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-group/command/index.js +1 -1
- package/dist/_pkgs/affine-gfx-group/effects.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-group/effects.js +1 -1
- package/dist/_pkgs/affine-gfx-group/element-view.js +1 -1
- package/dist/_pkgs/affine-gfx-group/index.d.ts +6 -6
- package/dist/_pkgs/affine-gfx-group/index.js +6 -6
- package/dist/_pkgs/affine-gfx-group/store.js +2 -2
- package/dist/_pkgs/affine-gfx-group/text/edgeless-group-title-editor.js +1 -1
- package/dist/_pkgs/affine-gfx-group/text/text.js +1 -1
- package/dist/_pkgs/affine-gfx-group/toolbar/config.js +2 -2
- package/dist/_pkgs/affine-gfx-group/view.js +5 -5
- package/dist/_pkgs/affine-gfx-link/effects.js +1 -1
- package/dist/_pkgs/affine-gfx-link/undo-tool.js +1 -1
- package/dist/_pkgs/affine-gfx-link/view.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/adapter/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/adapter/index.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/adapter/plain-text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/effects.d.ts +3 -3
- package/dist/_pkgs/affine-gfx-mindmap/effects.js +3 -3
- package/dist/_pkgs/affine-gfx-mindmap/index.d.ts +9 -9
- package/dist/_pkgs/affine-gfx-mindmap/index.js +9 -9
- package/dist/_pkgs/affine-gfx-mindmap/indicator-overlay/index.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/interactivity/drag-utils.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/interactivity/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/interactivity/index.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/interactivity/mind-map-drag.js +4 -4
- package/dist/_pkgs/affine-gfx-mindmap/store.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/toolbar/config.js +1 -1
- package/dist/_pkgs/affine-gfx-mindmap/toolbar/senior-tool.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/view/index.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-mindmap/view/index.js +4 -4
- package/dist/_pkgs/affine-gfx-mindmap/view/utils.js +2 -2
- package/dist/_pkgs/affine-gfx-mindmap/view.js +8 -8
- package/dist/_pkgs/affine-gfx-note/components/note-shadow-panel.js +1 -1
- package/dist/_pkgs/affine-gfx-note/effects.d.ts +5 -5
- package/dist/_pkgs/affine-gfx-note/effects.js +5 -5
- package/dist/_pkgs/affine-gfx-note/index.d.ts +3 -3
- package/dist/_pkgs/affine-gfx-note/index.js +3 -3
- package/dist/_pkgs/affine-gfx-note/note-tool.js +1 -1
- package/dist/_pkgs/affine-gfx-note/overlay/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-note/overlay/index.js +2 -2
- package/dist/_pkgs/affine-gfx-note/view.js +3 -3
- package/dist/_pkgs/affine-gfx-pointer/effects.js +1 -1
- package/dist/_pkgs/affine-gfx-pointer/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-pointer/index.js +1 -1
- package/dist/_pkgs/affine-gfx-pointer/quick-tool/default-tool-button.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-pointer/quick-tool/default-tool-button.js +1 -1
- package/dist/_pkgs/affine-gfx-pointer/snap/snap-manager.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-pointer/view.js +5 -5
- package/dist/_pkgs/affine-gfx-shape/adapter/index.d.ts +3 -3
- package/dist/_pkgs/affine-gfx-shape/adapter/index.js +3 -3
- package/dist/_pkgs/affine-gfx-shape/adapter/markdown/index.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/adapter/plain-text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/components/shape-panel.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/components/shape-panel.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/draggable/index.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-shape/draggable/index.js +4 -4
- package/dist/_pkgs/affine-gfx-shape/draggable/shape-menu.js +3 -3
- package/dist/_pkgs/affine-gfx-shape/draggable/shape-tool-element.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/effects.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-shape/effects.js +4 -4
- package/dist/_pkgs/affine-gfx-shape/element-renderer/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-shape/element-renderer/index.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/index.js +11 -3
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/utils.d.ts +12 -1
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape/utils.js +40 -1
- package/dist/_pkgs/affine-gfx-shape/element-renderer/shape-dom/index.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/element-view.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/element-view.js +3 -3
- package/dist/_pkgs/affine-gfx-shape/index.d.ts +12 -10
- package/dist/_pkgs/affine-gfx-shape/index.js +12 -10
- package/dist/_pkgs/affine-gfx-shape/overlay/diamond.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/diamond.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/ellipse.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/ellipse.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/factory.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/factory.js +6 -6
- package/dist/_pkgs/affine-gfx-shape/overlay/index.d.ts +5 -5
- package/dist/_pkgs/affine-gfx-shape/overlay/index.js +5 -5
- package/dist/_pkgs/affine-gfx-shape/overlay/polygon.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/polygon.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/rect.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/rect.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/rounded-rect.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/rounded-rect.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/shape-overlay.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/shape-overlay.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/overlay/triangle.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/overlay/triangle.js +2 -2
- package/dist/_pkgs/affine-gfx-shape/shortcuts.d.ts +6 -0
- package/dist/_pkgs/affine-gfx-shape/shortcuts.js +28 -0
- package/dist/_pkgs/affine-gfx-shape/store.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/text/edgeless-shape-text-editor.js +21 -13
- package/dist/_pkgs/affine-gfx-shape/text/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-shape/text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/text-fit.d.ts +10 -0
- package/dist/_pkgs/affine-gfx-shape/text-fit.js +29 -0
- package/dist/_pkgs/affine-gfx-shape/toolbar/config.d.ts +4 -0
- package/dist/_pkgs/affine-gfx-shape/toolbar/config.js +39 -7
- package/dist/_pkgs/affine-gfx-shape/toolbar/index.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-shape/toolbar/index.js +4 -4
- package/dist/_pkgs/affine-gfx-shape/toolbar/shape-menu-config.js +1 -1
- package/dist/_pkgs/affine-gfx-shape/view.js +11 -7
- package/dist/_pkgs/affine-gfx-template/effects.d.ts +4 -4
- package/dist/_pkgs/affine-gfx-template/effects.js +4 -4
- package/dist/_pkgs/affine-gfx-template/services/template.js +1 -1
- package/dist/_pkgs/affine-gfx-template/toolbar/template-tool-button.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-template/toolbar/template-tool-button.js +1 -1
- package/dist/_pkgs/affine-gfx-template/view.js +3 -3
- package/dist/_pkgs/affine-gfx-text/adapter/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-text/adapter/index.js +2 -2
- package/dist/_pkgs/affine-gfx-text/adapter/markdown/index.js +1 -1
- package/dist/_pkgs/affine-gfx-text/adapter/plain-text/index.js +1 -1
- package/dist/_pkgs/affine-gfx-text/dblclick-add-edgeless-text.js +2 -2
- package/dist/_pkgs/affine-gfx-text/edgeless-text-editor.js +1 -1
- package/dist/_pkgs/affine-gfx-text/effects.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-text/effects.js +2 -2
- package/dist/_pkgs/affine-gfx-text/element-renderer/index.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-text/element-renderer/index.js +1 -1
- package/dist/_pkgs/affine-gfx-text/element-view.js +2 -2
- package/dist/_pkgs/affine-gfx-text/index.d.ts +7 -7
- package/dist/_pkgs/affine-gfx-text/index.js +7 -7
- package/dist/_pkgs/affine-gfx-text/store.js +1 -1
- package/dist/_pkgs/affine-gfx-text/tool.js +2 -2
- package/dist/_pkgs/affine-gfx-text/toolbar/actions.js +1 -1
- package/dist/_pkgs/affine-gfx-text/toolbar/config.js +2 -2
- package/dist/_pkgs/affine-gfx-text/toolbar/index.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-text/toolbar/index.js +2 -2
- package/dist/_pkgs/affine-gfx-text/toolbar/text-menu.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-text/toolbar/text-menu.js +1 -1
- package/dist/_pkgs/affine-gfx-text/view.js +6 -6
- package/dist/_pkgs/affine-gfx-turbo-renderer/index.d.ts +5 -5
- package/dist/_pkgs/affine-gfx-turbo-renderer/index.js +5 -5
- package/dist/_pkgs/affine-gfx-turbo-renderer/layout/block-layout-provider.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/painter/painter.worker.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/renderer-utils.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/renderer-utils.js +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/text-utils.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/turbo-renderer.d.ts +1 -1
- package/dist/_pkgs/affine-gfx-turbo-renderer/turbo-renderer.js +1 -1
- package/dist/_pkgs/affine-inline-comment/effects.d.ts +1 -1
- package/dist/_pkgs/affine-inline-comment/effects.js +1 -1
- package/dist/_pkgs/affine-inline-comment/index.d.ts +2 -2
- package/dist/_pkgs/affine-inline-comment/index.js +2 -2
- package/dist/_pkgs/affine-inline-comment/inline-comment-manager.js +2 -2
- package/dist/_pkgs/affine-inline-comment/inline-spec.js +1 -1
- package/dist/_pkgs/affine-inline-comment/view.js +3 -3
- package/dist/_pkgs/affine-inline-footnote/adapters/index.d.ts +3 -3
- package/dist/_pkgs/affine-inline-footnote/adapters/index.js +3 -3
- package/dist/_pkgs/affine-inline-footnote/effects.d.ts +3 -3
- package/dist/_pkgs/affine-inline-footnote/effects.js +3 -3
- package/dist/_pkgs/affine-inline-footnote/footnote-node/footnote-node.d.ts +2 -2
- package/dist/_pkgs/affine-inline-footnote/footnote-node/footnote-popup.d.ts +1 -1
- package/dist/_pkgs/affine-inline-footnote/index.d.ts +2 -2
- package/dist/_pkgs/affine-inline-footnote/index.js +2 -2
- package/dist/_pkgs/affine-inline-footnote/inline-spec.js +1 -1
- package/dist/_pkgs/affine-inline-footnote/store.js +1 -1
- package/dist/_pkgs/affine-inline-footnote/view.js +2 -2
- package/dist/_pkgs/affine-inline-latex/adapters/index.d.ts +3 -3
- package/dist/_pkgs/affine-inline-latex/adapters/index.js +3 -3
- package/dist/_pkgs/affine-inline-latex/effects.d.ts +3 -3
- package/dist/_pkgs/affine-inline-latex/effects.js +3 -3
- package/dist/_pkgs/affine-inline-latex/index.d.ts +4 -4
- package/dist/_pkgs/affine-inline-latex/index.js +4 -4
- package/dist/_pkgs/affine-inline-latex/latex-node/latex-editor-menu.js +1 -1
- package/dist/_pkgs/affine-inline-latex/store.js +1 -1
- package/dist/_pkgs/affine-inline-latex/view.js +3 -3
- package/dist/_pkgs/affine-inline-link/adapters/index.d.ts +6 -6
- package/dist/_pkgs/affine-inline-link/adapters/index.js +6 -6
- package/dist/_pkgs/affine-inline-link/adapters/markdown/index.d.ts +2 -2
- package/dist/_pkgs/affine-inline-link/adapters/markdown/index.js +2 -2
- package/dist/_pkgs/affine-inline-link/command.js +1 -1
- package/dist/_pkgs/affine-inline-link/effects.js +2 -2
- package/dist/_pkgs/affine-inline-link/index.d.ts +6 -6
- package/dist/_pkgs/affine-inline-link/index.js +6 -6
- package/dist/_pkgs/affine-inline-link/link-node/configs/toolbar.js +2 -2
- package/dist/_pkgs/affine-inline-link/link-node/link-popup/link-popup.js +1 -1
- package/dist/_pkgs/affine-inline-link/link-node/link-popup/toggle-link-popup.d.ts +1 -1
- package/dist/_pkgs/affine-inline-link/link-node/link-popup/toggle-link-popup.js +1 -1
- package/dist/_pkgs/affine-inline-link/store.js +1 -1
- package/dist/_pkgs/affine-inline-link/view.js +3 -3
- package/dist/_pkgs/affine-inline-mention/effects.d.ts +1 -1
- package/dist/_pkgs/affine-inline-mention/effects.js +1 -1
- package/dist/_pkgs/affine-inline-mention/index.d.ts +3 -3
- package/dist/_pkgs/affine-inline-mention/index.js +3 -3
- package/dist/_pkgs/affine-inline-mention/view.js +2 -2
- package/dist/_pkgs/affine-inline-preset/adapters/extensions.d.ts +5 -5
- package/dist/_pkgs/affine-inline-preset/adapters/extensions.js +10 -10
- package/dist/_pkgs/affine-inline-preset/default-inline-manager.js +1 -1
- package/dist/_pkgs/affine-inline-preset/effects.d.ts +1 -1
- package/dist/_pkgs/affine-inline-preset/effects.js +1 -1
- package/dist/_pkgs/affine-inline-preset/index.d.ts +6 -6
- package/dist/_pkgs/affine-inline-preset/index.js +6 -6
- package/dist/_pkgs/affine-inline-preset/store.js +1 -1
- package/dist/_pkgs/affine-inline-preset/view.js +4 -4
- package/dist/_pkgs/affine-inline-reference/adapters/index.d.ts +3 -3
- package/dist/_pkgs/affine-inline-reference/adapters/index.js +3 -3
- package/dist/_pkgs/affine-inline-reference/effects.d.ts +1 -1
- package/dist/_pkgs/affine-inline-reference/effects.js +1 -1
- package/dist/_pkgs/affine-inline-reference/index.d.ts +5 -5
- package/dist/_pkgs/affine-inline-reference/index.js +5 -5
- package/dist/_pkgs/affine-inline-reference/inline-spec.js +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/index.d.ts +6 -6
- package/dist/_pkgs/affine-inline-reference/reference-node/index.js +5 -5
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-config.d.ts +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-node.d.ts +2 -2
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-node.js +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-popup/toggle-reference-popup.d.ts +1 -1
- package/dist/_pkgs/affine-inline-reference/reference-node/reference-popup/toggle-reference-popup.js +1 -1
- package/dist/_pkgs/affine-inline-reference/store.js +1 -1
- package/dist/_pkgs/affine-inline-reference/toolbar.js +1 -1
- package/dist/_pkgs/affine-inline-reference/view.js +4 -4
- package/dist/_pkgs/affine-model/blocks/callout/callout-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/code/code-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/edgeless-text/edgeless-text-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/edgeless-text/edgeless-text-model.js +3 -3
- package/dist/_pkgs/affine-model/blocks/embed/iframe/iframe-schema.d.ts +2 -2
- package/dist/_pkgs/affine-model/blocks/embed/iframe/iframe-schema.js +1 -1
- package/dist/_pkgs/affine-model/blocks/embed/iframe/index.d.ts +2 -2
- package/dist/_pkgs/affine-model/blocks/embed/iframe/index.js +2 -2
- package/dist/_pkgs/affine-model/blocks/embed/index.d.ts +9 -9
- package/dist/_pkgs/affine-model/blocks/embed/index.js +9 -9
- package/dist/_pkgs/affine-model/blocks/embed/types.d.ts +9 -9
- package/dist/_pkgs/affine-model/blocks/embed/types.js +6 -6
- package/dist/_pkgs/affine-model/blocks/index.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/index.js +1 -1
- package/dist/_pkgs/affine-model/blocks/list/list-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/note/note-model.d.ts +2 -2
- package/dist/_pkgs/affine-model/blocks/note/note-model.js +2 -2
- package/dist/_pkgs/affine-model/blocks/paragraph/paragraph-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/table/index.d.ts +1 -1
- package/dist/_pkgs/affine-model/blocks/table/index.js +1 -1
- package/dist/_pkgs/affine-model/blocks/table/table-model.d.ts +1 -1
- package/dist/_pkgs/affine-model/consts/text.d.ts +17 -0
- package/dist/_pkgs/affine-model/consts/text.js +18 -0
- package/dist/_pkgs/affine-model/elements/brush/brush.d.ts +1 -1
- package/dist/_pkgs/affine-model/elements/brush/brush.js +1 -1
- package/dist/_pkgs/affine-model/elements/connector/connector.d.ts +2 -2
- package/dist/_pkgs/affine-model/elements/connector/connector.js +2 -2
- package/dist/_pkgs/affine-model/elements/connector/local-connector.d.ts +2 -2
- package/dist/_pkgs/affine-model/elements/connector/local-connector.js +2 -2
- package/dist/_pkgs/affine-model/elements/highlighter/highlighter.d.ts +1 -1
- package/dist/_pkgs/affine-model/elements/highlighter/highlighter.js +2 -2
- package/dist/_pkgs/affine-model/elements/highlighter/index.d.ts +1 -1
- package/dist/_pkgs/affine-model/elements/highlighter/index.js +1 -1
- package/dist/_pkgs/affine-model/elements/mindmap/index.d.ts +3 -3
- package/dist/_pkgs/affine-model/elements/mindmap/index.js +3 -3
- package/dist/_pkgs/affine-model/elements/mindmap/mindmap.js +2 -2
- package/dist/_pkgs/affine-model/elements/mindmap/snapshot/index.d.ts +2 -2
- package/dist/_pkgs/affine-model/elements/mindmap/snapshot/index.js +2 -2
- package/dist/_pkgs/affine-model/elements/mindmap/snapshot/utils.d.ts +1 -1
- package/dist/_pkgs/affine-model/elements/mindmap/style.js +2 -2
- package/dist/_pkgs/affine-model/elements/shape/shape.d.ts +8 -1
- package/dist/_pkgs/affine-model/elements/shape/shape.js +16 -2
- package/dist/_pkgs/affine-model/elements/text/text.d.ts +2 -2
- package/dist/_pkgs/affine-model/elements/text/text.js +2 -2
- package/dist/_pkgs/affine-model/themes/default.d.ts +1 -1
- package/dist/_pkgs/affine-model/themes/default.js +1 -1
- package/dist/_pkgs/affine-model/themes/index.d.ts +4 -4
- package/dist/_pkgs/affine-model/themes/index.js +4 -4
- package/dist/_pkgs/affine-model/themes/types.js +1 -1
- package/dist/_pkgs/affine-model/themes/utils.d.ts +2 -2
- package/dist/_pkgs/affine-model/utils/helper.d.ts +1 -1
- package/dist/_pkgs/affine-model/utils/types.d.ts +1 -1
- package/dist/_pkgs/affine-rich-text/index.d.ts +4 -4
- package/dist/_pkgs/affine-rich-text/index.js +4 -4
- package/dist/_pkgs/affine-rich-text/utils.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/attachment.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/clipboard/index.d.ts +2 -2
- package/dist/_pkgs/affine-shared/adapters/clipboard/index.js +2 -2
- package/dist/_pkgs/affine-shared/adapters/html/html.d.ts +3 -3
- package/dist/_pkgs/affine-shared/adapters/html/html.js +5 -5
- package/dist/_pkgs/affine-shared/adapters/html/rehype-plugins/index.d.ts +2 -2
- package/dist/_pkgs/affine-shared/adapters/html/rehype-plugins/index.js +2 -2
- package/dist/_pkgs/affine-shared/adapters/html/rehype-plugins/inline-to-block.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/html/rehype-plugins/wrap-inline-element.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/image.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/index.d.ts +12 -12
- package/dist/_pkgs/affine-shared/adapters/index.js +12 -12
- package/dist/_pkgs/affine-shared/adapters/markdown/markdown.d.ts +5 -5
- package/dist/_pkgs/affine-shared/adapters/markdown/markdown.js +6 -6
- package/dist/_pkgs/affine-shared/adapters/markdown/preprocessor.d.ts +2 -2
- package/dist/_pkgs/affine-shared/adapters/markdown/preprocessor.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/markdown/remark-plugins/index.d.ts +1 -1
- package/dist/_pkgs/affine-shared/adapters/markdown/remark-plugins/index.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/middlewares/index.d.ts +12 -12
- package/dist/_pkgs/affine-shared/adapters/middlewares/index.js +12 -12
- package/dist/_pkgs/affine-shared/adapters/middlewares/paste.js +4 -4
- package/dist/_pkgs/affine-shared/adapters/middlewares/proxy.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/middlewares/replace-id.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/mix-text.js +2 -2
- package/dist/_pkgs/affine-shared/adapters/notion-html/delta-converter.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/notion-html/notion-html.d.ts +2 -2
- package/dist/_pkgs/affine-shared/adapters/notion-html/notion-html.js +4 -4
- package/dist/_pkgs/affine-shared/adapters/notion-text.js +1 -1
- package/dist/_pkgs/affine-shared/adapters/plain-text/plain-text.d.ts +3 -3
- package/dist/_pkgs/affine-shared/adapters/plain-text/plain-text.js +3 -3
- package/dist/_pkgs/affine-shared/adapters/types/delta-converter.d.ts +1 -1
- package/dist/_pkgs/affine-shared/adapters/utils/text.js +1 -1
- package/dist/_pkgs/affine-shared/commands/model-crud/duplicate-selected-model.js +1 -1
- package/dist/_pkgs/affine-shared/commands/model-crud/get-selected-models.js +2 -2
- package/dist/_pkgs/affine-shared/commands/model-crud/replace-selected-text-with-blocks.js +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/get-block-selections.d.ts +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/get-surface-selection.d.ts +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/get-text-selection.d.ts +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/index.d.ts +6 -6
- package/dist/_pkgs/affine-shared/commands/selection/index.js +6 -6
- package/dist/_pkgs/affine-shared/commands/selection/is-nothing-selected.d.ts +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/is-nothing-selected.js +1 -1
- package/dist/_pkgs/affine-shared/commands/selection/types.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/block-meta-service.js +2 -2
- package/dist/_pkgs/affine-shared/services/citation-service/citation-service.d.ts +2 -2
- package/dist/_pkgs/affine-shared/services/citation-service/citation-service.js +2 -2
- package/dist/_pkgs/affine-shared/services/citation-service/index.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/citation-service/index.js +1 -1
- package/dist/_pkgs/affine-shared/services/comment-service/block-comment-manager.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/comment-service/block-comment-manager.js +5 -5
- package/dist/_pkgs/affine-shared/services/comment-service/index.d.ts +3 -3
- package/dist/_pkgs/affine-shared/services/comment-service/index.js +3 -3
- package/dist/_pkgs/affine-shared/services/comment-service/utils.d.ts +2 -2
- package/dist/_pkgs/affine-shared/services/comment-service/utils.js +1 -1
- package/dist/_pkgs/affine-shared/services/edit-props-store.js +2 -2
- package/dist/_pkgs/affine-shared/services/embed-iframe/embed-iframe-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/embed-iframe/embed-iframe-service.js +1 -1
- package/dist/_pkgs/affine-shared/services/embed-iframe/index.d.ts +2 -2
- package/dist/_pkgs/affine-shared/services/embed-iframe/index.js +2 -2
- package/dist/_pkgs/affine-shared/services/index.d.ts +32 -32
- package/dist/_pkgs/affine-shared/services/index.js +32 -32
- package/dist/_pkgs/affine-shared/services/link-preview-service/index.d.ts +3 -3
- package/dist/_pkgs/affine-shared/services/link-preview-service/index.js +3 -3
- package/dist/_pkgs/affine-shared/services/link-preview-service/link-preview-cache.js +2 -2
- package/dist/_pkgs/affine-shared/services/link-preview-service/link-preview-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/link-preview-service/link-preview-service.js +3 -3
- package/dist/_pkgs/affine-shared/services/page-viewport-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/telemetry-service/citation.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/theme-service.js +1 -1
- package/dist/_pkgs/affine-shared/services/toolbar-service/action.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/toolbar-service/config.d.ts +2 -2
- package/dist/_pkgs/affine-shared/services/toolbar-service/context.d.ts +6 -6
- package/dist/_pkgs/affine-shared/services/toolbar-service/context.js +6 -6
- package/dist/_pkgs/affine-shared/services/toolbar-service/index.d.ts +6 -6
- package/dist/_pkgs/affine-shared/services/toolbar-service/index.js +6 -6
- package/dist/_pkgs/affine-shared/services/toolbar-service/module.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/toolbar-service/registry.d.ts +4 -4
- package/dist/_pkgs/affine-shared/services/toolbar-service/registry.js +1 -1
- package/dist/_pkgs/affine-shared/services/user-service/index.d.ts +4 -4
- package/dist/_pkgs/affine-shared/services/user-service/index.js +4 -4
- package/dist/_pkgs/affine-shared/services/user-service/user-list-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/user-service/user-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/user-service/writer-info-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/viewport-element-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/styles/index.d.ts +4 -4
- package/dist/_pkgs/affine-shared/styles/index.js +4 -4
- package/dist/_pkgs/affine-shared/styles/panel.js +2 -2
- package/dist/_pkgs/affine-shared/styles/text.d.ts +1 -1
- package/dist/_pkgs/affine-shared/test-utils/affine-template.js +1 -1
- package/dist/_pkgs/affine-shared/test-utils/index.d.ts +3 -3
- package/dist/_pkgs/affine-shared/test-utils/index.js +3 -3
- package/dist/_pkgs/affine-shared/types/index.d.ts +1 -1
- package/dist/_pkgs/affine-shared/types/index.js +1 -1
- package/dist/_pkgs/affine-shared/utils/computing.js +2 -2
- package/dist/_pkgs/affine-shared/utils/drag-helper/cell-select.d.ts +1 -1
- package/dist/_pkgs/affine-shared/utils/drag-helper/index.d.ts +3 -3
- package/dist/_pkgs/affine-shared/utils/drag-helper/index.js +3 -3
- package/dist/_pkgs/affine-shared/utils/drag-helper/linear-move.d.ts +1 -1
- package/dist/_pkgs/affine-shared/utils/index.d.ts +27 -27
- package/dist/_pkgs/affine-shared/utils/index.js +27 -27
- package/dist/_pkgs/affine-shared/utils/popper-position.js +1 -1
- package/dist/_pkgs/affine-shared/utils/reference.js +1 -1
- package/dist/_pkgs/affine-shared/utils/virtual-padding.js +1 -1
- package/dist/_pkgs/affine-widget-drag-handle/effects.js +3 -3
- package/dist/_pkgs/affine-widget-drag-handle/index.d.ts +4 -4
- package/dist/_pkgs/affine-widget-drag-handle/index.js +4 -4
- package/dist/_pkgs/affine-widget-drag-handle/view.js +2 -2
- package/dist/_pkgs/affine-widget-drag-handle/watchers/drag-event-watcher.js +3 -3
- package/dist/_pkgs/affine-widget-drag-handle/watchers/pointer-event-watcher.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-auto-connect/effects.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-auto-connect/view.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-dragging-area/effects.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-dragging-area/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-edgeless-dragging-area/index.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-dragging-area/view.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/effects.js +4 -4
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/index.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/spec.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/view.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-toolbar/config/utils.d.ts +1 -1
- package/dist/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.d.ts +7 -7
- package/dist/_pkgs/affine-widget-edgeless-toolbar/effects.js +7 -7
- package/dist/_pkgs/affine-widget-edgeless-toolbar/index.d.ts +7 -7
- package/dist/_pkgs/affine-widget-edgeless-toolbar/index.js +7 -7
- package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/slide-menu.d.ts +1 -1
- package/dist/_pkgs/affine-widget-edgeless-toolbar/menu/slide-menu.js +1 -1
- package/dist/_pkgs/affine-widget-edgeless-toolbar/mixins/index.d.ts +3 -3
- package/dist/_pkgs/affine-widget-edgeless-toolbar/mixins/index.js +3 -3
- package/dist/_pkgs/affine-widget-edgeless-toolbar/mixins/tool.mixin.d.ts +3 -3
- package/dist/_pkgs/affine-widget-edgeless-toolbar/mixins/tool.mixin.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-toolbar/view.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-zoom-toolbar/effects.js +3 -3
- package/dist/_pkgs/affine-widget-edgeless-zoom-toolbar/view.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-zoom-toolbar/zoom-toolbar.js +1 -1
- package/dist/_pkgs/affine-widget-frame-title/edgeless-frame-title-editor.js +2 -2
- package/dist/_pkgs/affine-widget-frame-title/mount-frame-title-editor.js +1 -1
- package/dist/_pkgs/affine-widget-frame-title/view.js +2 -2
- package/dist/_pkgs/affine-widget-keyboard-toolbar/keyboard-toolbar.d.ts +2 -2
- package/dist/_pkgs/affine-widget-keyboard-toolbar/keyboard-toolbar.js +3 -3
- package/dist/_pkgs/affine-widget-keyboard-toolbar/view.js +2 -2
- package/dist/_pkgs/affine-widget-linked-doc/config.d.ts +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/index.d.ts +4 -4
- package/dist/_pkgs/affine-widget-linked-doc/index.js +4 -4
- package/dist/_pkgs/affine-widget-linked-doc/linked-doc-popover.js +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/view.d.ts +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/view.js +3 -3
- package/dist/_pkgs/affine-widget-note-slicer/effects.js +1 -1
- package/dist/_pkgs/affine-widget-note-slicer/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-note-slicer/index.js +1 -1
- package/dist/_pkgs/affine-widget-note-slicer/view.js +2 -2
- package/dist/_pkgs/affine-widget-page-dragging-area/effects.js +1 -1
- package/dist/_pkgs/affine-widget-page-dragging-area/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-page-dragging-area/index.js +1 -1
- package/dist/_pkgs/affine-widget-page-dragging-area/view.js +2 -2
- package/dist/_pkgs/affine-widget-remote-selection/doc/doc-remote-selection.js +3 -3
- package/dist/_pkgs/affine-widget-remote-selection/edgeless/index.js +1 -1
- package/dist/_pkgs/affine-widget-remote-selection/effects.js +3 -3
- package/dist/_pkgs/affine-widget-remote-selection/index.d.ts +2 -2
- package/dist/_pkgs/affine-widget-remote-selection/index.js +4 -4
- package/dist/_pkgs/affine-widget-remote-selection/manager/remote-color-manager.js +1 -1
- package/dist/_pkgs/affine-widget-remote-selection/view.js +2 -2
- package/dist/_pkgs/affine-widget-scroll-anchoring/view.js +2 -2
- package/dist/_pkgs/affine-widget-slash-menu/config.d.ts +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/config.js +2 -2
- package/dist/_pkgs/affine-widget-slash-menu/effects.d.ts +2 -2
- package/dist/_pkgs/affine-widget-slash-menu/effects.js +3 -3
- package/dist/_pkgs/affine-widget-slash-menu/extensions.d.ts +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/extensions.js +3 -3
- package/dist/_pkgs/affine-widget-slash-menu/index.d.ts +3 -3
- package/dist/_pkgs/affine-widget-slash-menu/index.js +3 -3
- package/dist/_pkgs/affine-widget-slash-menu/slash-menu-popover.js +2 -2
- package/dist/_pkgs/affine-widget-slash-menu/tooltips/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/tooltips/index.js +8 -8
- package/dist/_pkgs/affine-widget-slash-menu/utils.d.ts +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/view.js +2 -2
- package/dist/_pkgs/affine-widget-slash-menu/widget.d.ts +1 -1
- package/dist/_pkgs/affine-widget-slash-menu/widget.js +5 -5
- package/dist/_pkgs/affine-widget-toolbar/effects.d.ts +1 -1
- package/dist/_pkgs/affine-widget-toolbar/effects.js +1 -1
- package/dist/_pkgs/affine-widget-toolbar/index.d.ts +1 -1
- package/dist/_pkgs/affine-widget-toolbar/index.js +2 -2
- package/dist/_pkgs/affine-widget-toolbar/toolbar.js +4 -4
- package/dist/_pkgs/affine-widget-toolbar/utils.js +5 -5
- package/dist/_pkgs/affine-widget-toolbar/view.js +2 -2
- package/dist/_pkgs/affine-widget-viewport-overlay/effects.js +1 -1
- package/dist/_pkgs/affine-widget-viewport-overlay/view.js +2 -2
- package/dist/_pkgs/data-view/core/detail/selection.d.ts +1 -1
- package/dist/_pkgs/data-view/core/index.d.ts +1 -1
- package/dist/_pkgs/data-view/core/index.js +1 -1
- package/dist/_pkgs/data-view/core/property/utils.d.ts +2 -2
- package/dist/_pkgs/data-view/core/types.d.ts +1 -1
- package/dist/_pkgs/data-view/core/view-manager/index.d.ts +3 -3
- package/dist/_pkgs/data-view/core/view-manager/index.js +3 -3
- package/dist/_pkgs/data-view/view-presets/kanban/kanban-view-manager.js +1 -1
- package/dist/_pkgs/data-view/view-presets/kanban/mobile/kanban-view-ui-logic.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/kanban/pc/cell.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/kanban/pc/controller/selection.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/mobile/cell.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/mobile/table-view-ui-logic.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/cell.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/cell.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/clipboard.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/drag-to-fill.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/drag-to-fill.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/hotkeys.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/hotkeys.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/selection.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/controller/selection.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/group.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/header/column-header.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/menu.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/row/row-select-checkbox.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/row/row-select-checkbox.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/row/row.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/row/row.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc/table-view-style.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/table-view-ui-logic.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc/table-view-ui-logic.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/clipboard.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/drag-to-fill.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/drag-to-fill.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/drag.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/hotkeys.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/hotkeys.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/selection.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/controller/selection.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/effect.js +17 -17
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/group-footer.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/group-footer.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-bar.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-bar.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-column.d.ts +3 -3
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-column.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-header.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-header.js +3 -3
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header-css.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header.js +4 -4
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-move-preview.d.ts +3 -3
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/number-format-bar.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/number-format-bar.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/single-column-header.d.ts +3 -3
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/single-column-header.js +11 -11
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/vertical-indicator.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/vertical-indicator.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/row/cell.d.ts +5 -5
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/row/cell.js +4 -4
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/row/menu.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/row/menu.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/types.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/virtual/batch-task-manager.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/virtual/batch-task-manager.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/virtual/virtual-scroll.d.ts +2 -2
- package/dist/_pkgs/data-view/view-presets/table/pc-virtual/virtual/virtual-scroll.js +2 -2
- package/dist/_pkgs/data-view/view-presets/table/renderer.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/table-view-manager.js +1 -1
- package/dist/_pkgs/data-view/view-presets/table/utils.d.ts +1 -1
- package/dist/_pkgs/data-view/view-presets/table/utils.js +1 -1
- package/dist/_pkgs/std/clipboard/index.d.ts +2 -2
- package/dist/_pkgs/std/clipboard/index.js +2 -2
- package/dist/_pkgs/std/event/control/keyboard.js +16 -3
- package/dist/_pkgs/std/event/dispatcher.js +8 -1
- package/dist/_pkgs/std/event/keymap.d.ts +41 -1
- package/dist/_pkgs/std/event/keymap.js +137 -21
- package/dist/_pkgs/std/extension/dnd/index.d.ts +7 -7
- package/dist/_pkgs/std/extension/dnd/index.js +8 -8
- package/dist/_pkgs/std/extension/dnd/types.d.ts +3 -3
- package/dist/_pkgs/std/extension/editor-life-cycle.d.ts +2 -2
- package/dist/_pkgs/std/extension/editor-life-cycle.js +1 -1
- package/dist/_pkgs/std/extension/shortcut.d.ts +30 -8
- package/dist/_pkgs/std/extension/shortcut.js +58 -24
- package/dist/_pkgs/std/gfx/controller.js +1 -1
- package/dist/_pkgs/std/gfx/interactivity/event.d.ts +1 -1
- package/dist/_pkgs/std/gfx/interactivity/extension/view.d.ts +6 -6
- package/dist/_pkgs/std/gfx/interactivity/gfx-view-event-handler.d.ts +1 -1
- package/dist/_pkgs/std/gfx/interactivity/gfx-view-event-handler.js +1 -1
- package/dist/_pkgs/std/gfx/interactivity/resize/manager.d.ts +2 -2
- package/dist/_pkgs/std/gfx/interactivity/types/clone.d.ts +1 -1
- package/dist/_pkgs/std/gfx/interactivity/types/drag.d.ts +3 -3
- package/dist/_pkgs/std/gfx/interactivity/types/resize.d.ts +2 -2
- package/dist/_pkgs/std/gfx/interactivity/types/select.d.ts +1 -1
- package/dist/_pkgs/std/gfx/layer.js +1 -1
- package/dist/_pkgs/std/gfx/model/surface/element-model.js +1 -1
- package/dist/_pkgs/std/gfx/selection.js +1 -1
- package/dist/_pkgs/std/gfx/viewport-element.d.ts +3 -3
- package/dist/_pkgs/std/gfx/viewport-element.js +5 -5
- package/dist/_pkgs/std/gfx/viewport.d.ts +1 -1
- package/dist/_pkgs/std/gfx/viewport.js +1 -1
- package/dist/_pkgs/std/inline/extensions/index.d.ts +4 -4
- package/dist/_pkgs/std/inline/extensions/index.js +4 -4
- package/dist/_pkgs/std/inline/index.d.ts +8 -8
- package/dist/_pkgs/std/inline/index.js +8 -8
- package/dist/_pkgs/std/inline/range/active.js +1 -1
- package/dist/_pkgs/std/inline/range/range-binding.js +1 -1
- package/dist/_pkgs/store/extension/history/history-extension.d.ts +2 -2
- package/dist/_pkgs/store/extension/history/history-extension.js +1 -1
- package/dist/_pkgs/store/extension/history/index.d.ts +1 -1
- package/dist/_pkgs/store/extension/history/index.js +1 -1
- package/dist/_pkgs/store/extension/index.d.ts +6 -6
- package/dist/_pkgs/store/extension/index.js +6 -6
- package/dist/_pkgs/store/extension/schema.d.ts +2 -2
- package/dist/_pkgs/store/extension/selection/base.d.ts +1 -1
- package/dist/_pkgs/store/extension/selection/identifier.d.ts +2 -2
- package/dist/_pkgs/store/extension/selection/index.d.ts +4 -4
- package/dist/_pkgs/store/extension/selection/index.js +4 -4
- package/dist/_pkgs/store/extension/selection/selection-extension.d.ts +3 -3
- package/dist/_pkgs/store/extension/selection/selection-extension.js +3 -3
- package/dist/_pkgs/store/extension/selection/types.d.ts +1 -1
- package/dist/_pkgs/store/extension/store-extension.d.ts +2 -2
- package/dist/_pkgs/store/extension/store-extension.js +2 -2
- package/dist/_pkgs/store/extension/workspace/doc.d.ts +2 -2
- package/dist/_pkgs/store/extension/workspace/index.d.ts +3 -3
- package/dist/_pkgs/store/extension/workspace/index.js +3 -3
- package/dist/_pkgs/store/extension/workspace/workspace.d.ts +1 -1
- package/dist/_pkgs/store/impls/doc.d.ts +45 -0
- package/dist/_pkgs/store/impls/doc.js +110 -0
- package/dist/_pkgs/store/impls/index.d.ts +4 -0
- package/dist/_pkgs/store/impls/index.js +4 -0
- package/dist/_pkgs/store/impls/workspace-base.d.ts +81 -0
- package/dist/_pkgs/store/impls/workspace-base.js +143 -0
- package/dist/_pkgs/store/impls/workspace-meta.d.ts +33 -0
- package/dist/_pkgs/store/impls/workspace-meta.js +125 -0
- package/dist/_pkgs/store/impls/workspace.d.ts +14 -0
- package/dist/_pkgs/store/impls/workspace.js +14 -0
- package/dist/_pkgs/store/index.d.ts +9 -8
- package/dist/_pkgs/store/index.js +9 -8
- package/dist/_pkgs/store/model/store/identifier.d.ts +1 -1
- package/dist/_pkgs/store/model/store-container.d.ts +2 -2
- package/dist/_pkgs/store/model/store-container.js +2 -2
- package/dist/_pkgs/store/reactive/base-reactive-data.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/index.d.ts +3 -3
- package/dist/_pkgs/store/reactive/flat-native-y/index.js +7 -7
- package/dist/_pkgs/store/reactive/flat-native-y/initialize.d.ts +2 -2
- package/dist/_pkgs/store/reactive/flat-native-y/initialize.js +3 -3
- package/dist/_pkgs/store/reactive/flat-native-y/proxy.d.ts +2 -2
- package/dist/_pkgs/store/reactive/flat-native-y/proxy.js +5 -5
- package/dist/_pkgs/store/reactive/flat-native-y/signal-updater.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/signal-updater.js +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/types.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/utils.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/utils.js +3 -3
- package/dist/_pkgs/store/reactive/flat-native-y/y-event-handler.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/y-event-handler.js +2 -2
- package/dist/_pkgs/store/reactive/flat-native-y/y-map-updater.d.ts +1 -1
- package/dist/_pkgs/store/reactive/flat-native-y/y-map-updater.js +3 -3
- package/dist/_pkgs/store/reactive/memory.d.ts +1 -1
- package/dist/_pkgs/store/reactive/stash-pop.js +1 -1
- package/dist/_pkgs/store/reactive/text/index.d.ts +3 -3
- package/dist/_pkgs/store/reactive/text/index.js +3 -3
- package/dist/_pkgs/store/reactive/text/text.d.ts +2 -2
- package/dist/_pkgs/store/reactive/text/types.d.ts +1 -1
- package/dist/_pkgs/store/test/test-doc.d.ts +1 -45
- package/dist/_pkgs/store/test/test-doc.js +1 -110
- package/dist/_pkgs/store/test/test-meta.d.ts +1 -33
- package/dist/_pkgs/store/test/test-meta.js +1 -125
- package/dist/_pkgs/store/test/test-workspace.d.ts +8 -68
- package/dist/_pkgs/store/test/test-workspace.js +7 -132
- package/dist/_pkgs/store/transformer/assets.d.ts +2 -2
- package/dist/_pkgs/store/transformer/base.d.ts +5 -5
- package/dist/_pkgs/store/transformer/base.js +4 -4
- package/dist/_pkgs/store/transformer/index.d.ts +7 -7
- package/dist/_pkgs/store/transformer/index.js +7 -7
- package/dist/_pkgs/store/transformer/json.js +4 -4
- package/dist/_pkgs/store/transformer/slice.d.ts +1 -1
- package/dist/_pkgs/store/transformer/slice.js +1 -1
- package/dist/_pkgs/store/transformer/type.d.ts +2 -2
- package/dist/_pkgs/sync/doc/peer.js +1 -1
- package/dist/shortcuts.js +11 -3
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { MoreHorizontalIcon, PlusIcon } from '@blocksuite/icons/lit';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { nothing } from 'lit';
|
|
4
4
|
import { html } from 'lit/static-html.js';
|
|
5
|
-
import { renderUniLit, } from '../../../../../core';
|
|
6
|
-
import { groupHeaderCount, groupHeaderIcon, groupHeaderOp, groupHeaderOps, groupHeaderTitle, groupTitleRow, show, } from './group-title-css';
|
|
5
|
+
import { renderUniLit, } from '../../../../../core/index.js';
|
|
6
|
+
import { groupHeaderCount, groupHeaderIcon, groupHeaderOp, groupHeaderOps, groupHeaderTitle, groupTitleRow, show, } from './group-title-css.js';
|
|
7
7
|
function GroupHeaderCount(group) {
|
|
8
8
|
const cards = group.rows;
|
|
9
9
|
if (!cards.length) {
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header-css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/css';
|
|
2
2
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
|
3
|
-
import { DEFAULT_COLUMN_TITLE_HEIGHT } from '../../../../consts';
|
|
3
|
+
import { DEFAULT_COLUMN_TITLE_HEIGHT } from '../../../../consts.js';
|
|
4
4
|
export const columnHeaderContainer = css({
|
|
5
5
|
display: 'block',
|
|
6
6
|
backgroundColor: 'var(--affine-background-primary-color)',
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShadowlessElement } from '../../../../../../../std/index.js';
|
|
2
|
-
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic';
|
|
2
|
+
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic.js';
|
|
3
3
|
declare const VirtualTableHeader_base: typeof ShadowlessElement & import("../../../../../../../global/utils/types.js").Constructor<import("../../../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
4
4
|
export declare class VirtualTableHeader extends VirtualTableHeader_base {
|
|
5
5
|
private readonly _onAddColumn;
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header.js
CHANGED
|
@@ -42,10 +42,10 @@ import { property, query } from 'lit/decorators.js';
|
|
|
42
42
|
import { repeat } from 'lit/directives/repeat.js';
|
|
43
43
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
44
44
|
import { html } from 'lit/static-html.js';
|
|
45
|
-
import { renderUniLit } from '../../../../../../core';
|
|
46
|
-
import { LEFT_TOOL_BAR_WIDTH } from '../../../../consts';
|
|
47
|
-
import { cellDivider } from '../../../../styles';
|
|
48
|
-
import * as styles from './column-header-css';
|
|
45
|
+
import { renderUniLit } from '../../../../../../core/index.js';
|
|
46
|
+
import { LEFT_TOOL_BAR_WIDTH } from '../../../../consts.js';
|
|
47
|
+
import { cellDivider } from '../../../../styles.js';
|
|
48
|
+
import * as styles from './column-header-css.js';
|
|
49
49
|
const leftBarStyle = css({
|
|
50
50
|
width: LEFT_TOOL_BAR_WIDTH,
|
|
51
51
|
});
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-move-preview.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ShadowlessElement } from '../../../../../../../std/index.js';
|
|
2
|
-
import type { Group } from '../../../../../../core/group-by/trait';
|
|
3
|
-
import type { TableProperty, TableSingleView } from '../../../../table-view-manager';
|
|
4
|
-
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic';
|
|
2
|
+
import type { Group } from '../../../../../../core/group-by/trait.js';
|
|
3
|
+
import type { TableProperty, TableSingleView } from '../../../../table-view-manager.js';
|
|
4
|
+
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic.js';
|
|
5
5
|
declare const DataViewColumnPreview_base: typeof ShadowlessElement & import("../../../../../../../global/utils/types.js").Constructor<import("../../../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
6
6
|
export declare class DataViewColumnPreview extends DataViewColumnPreview_base {
|
|
7
7
|
static styles: import("lit").CSSResult;
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/number-format-bar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import type { Property } from '../../../../../../core/view-manager/property';
|
|
2
|
+
import type { Property } from '../../../../../../core/view-manager/property.js';
|
|
3
3
|
declare const DatabaseNumberFormatBar_base: typeof LitElement & import("../../../../../../../global/utils/types.js").Constructor<import("../../../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
4
4
|
export declare class DatabaseNumberFormatBar extends DatabaseNumberFormatBar_base {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/number-format-bar.js
CHANGED
|
@@ -36,7 +36,7 @@ import { WithDisposable } from '../../../../../../../global/lit/index.js';
|
|
|
36
36
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
|
37
37
|
import { css, html, LitElement, unsafeCSS } from 'lit';
|
|
38
38
|
import { property } from 'lit/decorators.js';
|
|
39
|
-
import { formatNumber } from '../../../../../../property-presets/number/utils/formatter';
|
|
39
|
+
import { formatNumber } from '../../../../../../property-presets/number/utils/formatter.js';
|
|
40
40
|
const IncreaseDecimalPlacesIcon = html `
|
|
41
41
|
<svg
|
|
42
42
|
width="24"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ShadowlessElement } from '../../../../../../../std/index.js';
|
|
2
|
-
import type { TableProperty } from '../../../../table-view-manager';
|
|
3
|
-
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic';
|
|
2
|
+
import type { TableProperty } from '../../../../table-view-manager.js';
|
|
3
|
+
import type { VirtualTableViewUILogic } from '../../../table-view-ui-logic.js';
|
|
4
4
|
declare const DatabaseHeaderColumn_base: typeof ShadowlessElement & import("../../../../../../../global/utils/types.js").Constructor<import("../../../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
5
5
|
export declare class DatabaseHeaderColumn extends DatabaseHeaderColumn_base {
|
|
6
6
|
static styles: import("lit").CSSResult;
|
|
@@ -24,7 +24,7 @@ export declare class DatabaseHeaderColumn extends DatabaseHeaderColumn_base {
|
|
|
24
24
|
accessor column: TableProperty;
|
|
25
25
|
accessor grabStatus: 'grabStart' | 'grabEnd' | 'grabbing';
|
|
26
26
|
accessor tableViewLogic: VirtualTableViewUILogic;
|
|
27
|
-
get tableViewManager(): import("../../../../table-view-manager").TableSingleView;
|
|
27
|
+
get tableViewManager(): import("../../../../table-view-manager.js").TableSingleView;
|
|
28
28
|
}
|
|
29
29
|
declare global {
|
|
30
30
|
interface HTMLElementTagNameMap {
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/single-column-header.js
CHANGED
|
@@ -42,17 +42,17 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
42
42
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
43
43
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
44
44
|
import { html } from 'lit/static-html.js';
|
|
45
|
-
import { renderUniLit } from '../../../../../../core';
|
|
46
|
-
import { inputConfig, typeConfig, } from '../../../../../../core/common/property-menu';
|
|
47
|
-
import { filterTraitKey } from '../../../../../../core/filter/trait';
|
|
48
|
-
import { firstFilterByRef } from '../../../../../../core/filter/utils';
|
|
49
|
-
import { sortTraitKey } from '../../../../../../core/sort/manager';
|
|
50
|
-
import { createSortUtils } from '../../../../../../core/sort/utils';
|
|
51
|
-
import { draggable, dragHandler, droppable, } from '../../../../../../core/utils/wc-dnd/dnd-context';
|
|
52
|
-
import { numberFormats } from '../../../../../../property-presets/number/utils/formats';
|
|
53
|
-
import { createDefaultShowQuickSettingBar, ShowQuickSettingBarKey, } from '../../../../../../widget-presets/quick-setting-bar/context';
|
|
54
|
-
import { DEFAULT_COLUMN_TITLE_HEIGHT } from '../../../../consts';
|
|
55
|
-
import { getTableGroupRect, getVerticalIndicator, startDragWidthAdjustmentBar, } from './vertical-indicator';
|
|
45
|
+
import { renderUniLit } from '../../../../../../core/index.js';
|
|
46
|
+
import { inputConfig, typeConfig, } from '../../../../../../core/common/property-menu.js';
|
|
47
|
+
import { filterTraitKey } from '../../../../../../core/filter/trait.js';
|
|
48
|
+
import { firstFilterByRef } from '../../../../../../core/filter/utils.js';
|
|
49
|
+
import { sortTraitKey } from '../../../../../../core/sort/manager.js';
|
|
50
|
+
import { createSortUtils } from '../../../../../../core/sort/utils.js';
|
|
51
|
+
import { draggable, dragHandler, droppable, } from '../../../../../../core/utils/wc-dnd/dnd-context.js';
|
|
52
|
+
import { numberFormats } from '../../../../../../property-presets/number/utils/formats.js';
|
|
53
|
+
import { createDefaultShowQuickSettingBar, ShowQuickSettingBarKey, } from '../../../../../../widget-presets/quick-setting-bar/context.js';
|
|
54
|
+
import { DEFAULT_COLUMN_TITLE_HEIGHT } from '../../../../consts.js';
|
|
55
|
+
import { getTableGroupRect, getVerticalIndicator, startDragWidthAdjustmentBar, } from './vertical-indicator.js';
|
|
56
56
|
let DatabaseHeaderColumn = (() => {
|
|
57
57
|
let _classSuper = SignalWatcher(WithDisposable(ShadowlessElement));
|
|
58
58
|
let _column_decorators;
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/vertical-indicator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShadowlessElement } from '../../../../../../../std/index.js';
|
|
2
|
-
import type { TableProperty } from '../../../../table-view-manager';
|
|
2
|
+
import type { TableProperty } from '../../../../table-view-manager.js';
|
|
3
3
|
declare const TableVerticalIndicator_base: typeof ShadowlessElement & import("../../../../../../../global/utils/types.js").Constructor<import("../../../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
4
4
|
export declare class TableVerticalIndicator extends TableVerticalIndicator_base {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
package/dist/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/vertical-indicator.js
CHANGED
|
@@ -39,8 +39,8 @@ import { css, html } from 'lit';
|
|
|
39
39
|
import { property } from 'lit/decorators.js';
|
|
40
40
|
import { classMap } from 'lit/directives/class-map.js';
|
|
41
41
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
42
|
-
import { startDrag } from '../../../../../../core/utils/drag';
|
|
43
|
-
import { getResultInRange } from '../../../../../../core/utils/utils';
|
|
42
|
+
import { startDrag } from '../../../../../../core/utils/drag.js';
|
|
43
|
+
import { getResultInRange } from '../../../../../../core/utils/utils.js';
|
|
44
44
|
let TableVerticalIndicator = (() => {
|
|
45
45
|
let _classSuper = WithDisposable(ShadowlessElement);
|
|
46
46
|
let _height_decorators;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ShadowlessElement } from '../../../../../std/index.js';
|
|
2
|
-
import type { DataViewCellLifeCycle } from '../../../../core/property';
|
|
3
|
-
import { type TableViewSelectionWithType } from '../../selection';
|
|
4
|
-
import type { VirtualTableViewUILogic } from '../table-view-ui-logic';
|
|
5
|
-
import type { TableGridCell } from '../types';
|
|
2
|
+
import type { DataViewCellLifeCycle } from '../../../../core/property/index.js';
|
|
3
|
+
import { type TableViewSelectionWithType } from '../../selection.js';
|
|
4
|
+
import type { VirtualTableViewUILogic } from '../table-view-ui-logic.js';
|
|
5
|
+
import type { TableGridCell } from '../types.js';
|
|
6
6
|
declare const DatabaseCellContainer_base: typeof ShadowlessElement & import("../../../../../global/utils/types.js").Constructor<import("../../../../../global/lit/with-disposable.js").DisposableClass>;
|
|
7
7
|
export declare class DatabaseCellContainer extends DatabaseCellContainer_base {
|
|
8
8
|
static styles: import("lit").CSSResult;
|
|
9
9
|
private readonly _cell;
|
|
10
|
-
cell$: import("@preact/signals-core").ReadonlySignal<import("../../../../core").Cell<unknown, unknown, Record<string, unknown>>>;
|
|
10
|
+
cell$: import("@preact/signals-core").ReadonlySignal<import("../../../../core/index.js").Cell<unknown, unknown, Record<string, unknown>>>;
|
|
11
11
|
selectCurrentCell: (editing: boolean) => void;
|
|
12
12
|
get cell(): DataViewCellLifeCycle | undefined;
|
|
13
13
|
private get selectionView();
|
|
@@ -38,10 +38,10 @@ import { ShadowlessElement } from '../../../../../std/index.js';
|
|
|
38
38
|
import { computed, effect, signal } from '@preact/signals-core';
|
|
39
39
|
import { css } from 'lit';
|
|
40
40
|
import { property } from 'lit/decorators.js';
|
|
41
|
-
import { renderUniLit } from '../../../../core';
|
|
42
|
-
import { TableViewAreaSelection, TableViewRowSelection, } from '../../selection';
|
|
43
|
-
import { popRowMenu } from './menu';
|
|
44
|
-
import { rowSelectedBg } from './row-header-css';
|
|
41
|
+
import { renderUniLit } from '../../../../core/index.js';
|
|
42
|
+
import { TableViewAreaSelection, TableViewRowSelection, } from '../../selection.js';
|
|
43
|
+
import { popRowMenu } from './menu.js';
|
|
44
|
+
import { rowSelectedBg } from './row-header-css.js';
|
|
45
45
|
let DatabaseCellContainer = (() => {
|
|
46
46
|
let _classSuper = SignalWatcher(WithDisposable(ShadowlessElement));
|
|
47
47
|
let _gridCell_decorators;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PopupTarget } from '../../../../../affine-components/context-menu/index.js';
|
|
2
|
-
import type { TableSelectionController } from '../controller/selection';
|
|
3
|
-
import type { VirtualTableViewUILogic } from '../table-view-ui-logic';
|
|
2
|
+
import type { TableSelectionController } from '../controller/selection.js';
|
|
3
|
+
import type { VirtualTableViewUILogic } from '../table-view-ui-logic.js';
|
|
4
4
|
export declare const openDetail: (tableViewLogic: VirtualTableViewUILogic, rowId: string, selection: TableSelectionController) => void;
|
|
5
5
|
export declare const popRowMenu: (tableViewLogic: VirtualTableViewUILogic, ele: PopupTarget, selectionController: TableSelectionController) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { menu, popFilterableSimpleMenu, } from '../../../../../affine-components/context-menu/index.js';
|
|
2
2
|
import { CopyIcon, DeleteIcon, ExpandFullIcon, MoveLeftIcon, MoveRightIcon, } from '@blocksuite/icons/lit';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { TableViewRowSelection } from '../../selection';
|
|
4
|
+
import { TableViewRowSelection } from '../../selection.js';
|
|
5
5
|
export const openDetail = (tableViewLogic, rowId, selection) => {
|
|
6
6
|
const old = selection.selection;
|
|
7
7
|
selection.selection = undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Signal } from '../../../../affine-shared/utils/index.js';
|
|
2
2
|
import type { ReadonlySignal } from '@preact/signals-core';
|
|
3
|
-
import type { GridCell, GridGroup, GridRow, GridVirtualScroll } from './virtual/virtual-scroll';
|
|
3
|
+
import type { GridCell, GridGroup, GridRow, GridVirtualScroll } from './virtual/virtual-scroll.js';
|
|
4
4
|
export type TableGroupData = {
|
|
5
5
|
hover$: ReadonlySignal<boolean>;
|
|
6
6
|
headerHover$: Signal<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReadonlySignal } from '@preact/signals-core';
|
|
2
|
-
import { BatchTaskManager } from './batch-task-manager';
|
|
3
|
-
import { VirtualElementWrapper } from './virtual-cell';
|
|
2
|
+
import { BatchTaskManager } from './batch-task-manager.js';
|
|
3
|
+
import { VirtualElementWrapper } from './virtual-cell.js';
|
|
4
4
|
export interface Disposable {
|
|
5
5
|
dispose(): void;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, effect, signal, } from '@preact/signals-core';
|
|
2
|
-
import { BatchTaskManager } from './batch-task-manager';
|
|
3
|
-
import { VirtualElementWrapper } from './virtual-cell';
|
|
2
|
+
import { BatchTaskManager } from './batch-task-manager.js';
|
|
3
|
+
import { VirtualElementWrapper } from './virtual-cell.js';
|
|
4
4
|
export class NodeLifeCycle {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.disposables = [];
|
|
@@ -4,7 +4,7 @@ import { createIcon } from '../../core/utils/uni-icon.js';
|
|
|
4
4
|
import { tableViewModel } from './define.js';
|
|
5
5
|
import { MobileTableViewUILogic } from './mobile/table-view-ui-logic.js';
|
|
6
6
|
import { TableViewUILogic } from './pc/table-view-ui-logic.js';
|
|
7
|
-
import { VirtualTableViewUILogic } from './pc-virtual/table-view-ui-logic';
|
|
7
|
+
import { VirtualTableViewUILogic } from './pc-virtual/table-view-ui-logic.js';
|
|
8
8
|
export const tableViewMeta = tableViewModel.createMeta({
|
|
9
9
|
icon: createIcon('DatabaseTableViewIcon'),
|
|
10
10
|
pcLogic: view =>
|
|
@@ -5,7 +5,7 @@ import { generateDefaultValues } from '../../core/filter/generate-default-values
|
|
|
5
5
|
import { FilterTrait, filterTraitKey } from '../../core/filter/trait.js';
|
|
6
6
|
import { emptyFilterGroup } from '../../core/filter/utils.js';
|
|
7
7
|
import { GroupTrait, groupTraitKey, sortByManually, } from '../../core/group-by/trait.js';
|
|
8
|
-
import { fromJson } from '../../core/property/utils';
|
|
8
|
+
import { fromJson } from '../../core/property/utils.js';
|
|
9
9
|
import { SortManager, sortTraitKey } from '../../core/sort/manager.js';
|
|
10
10
|
import { PropertyBase } from '../../core/view-manager/property.js';
|
|
11
11
|
import { RowBase } from '../../core/view-manager/row.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableViewRowSelection } from './selection';
|
|
1
|
+
import { TableViewRowSelection } from './selection.js';
|
|
2
2
|
export function handleCharStartEdit(options) {
|
|
3
3
|
const { event, selection, getCellContainer, updateSelection, getColumn } = options;
|
|
4
4
|
const target = event.target;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './clipboard';
|
|
2
|
-
export * from './clipboard-adapter';
|
|
1
|
+
export * from './clipboard.js';
|
|
2
|
+
export * from './clipboard-adapter.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './clipboard';
|
|
2
|
-
export * from './clipboard-adapter';
|
|
1
|
+
export * from './clipboard.js';
|
|
2
|
+
export * from './clipboard-adapter.js';
|
|
@@ -61,19 +61,32 @@ export class KeyboardControl {
|
|
|
61
61
|
bindHotkey(keymap, options) {
|
|
62
62
|
const disposables = new DisposableGroup();
|
|
63
63
|
if (IS_ANDROID) {
|
|
64
|
+
const androidBinding = androidBindKeymapPatch(keymap);
|
|
64
65
|
disposables.add(this._dispatcher.add('beforeInput', ctx => {
|
|
65
66
|
if (this.composition)
|
|
66
67
|
return false;
|
|
67
|
-
|
|
68
|
-
return binding(ctx);
|
|
68
|
+
return androidBinding(ctx);
|
|
69
69
|
}, options));
|
|
70
70
|
}
|
|
71
|
+
// Build the binding once: it holds the chord (multi-keystroke) pending
|
|
72
|
+
// state, which must survive between keystrokes. The interceptor registry
|
|
73
|
+
// lets an armed chord consume its continuation before earlier-registered
|
|
74
|
+
// handlers (the dispatcher runs the most recently added handler first).
|
|
75
|
+
const binding = bindKeymap(keymap, {
|
|
76
|
+
register: handler => this._dispatcher.add('keyDown', ctx => {
|
|
77
|
+
if (this.composition)
|
|
78
|
+
return false;
|
|
79
|
+
return handler(ctx);
|
|
80
|
+
}, options),
|
|
81
|
+
});
|
|
71
82
|
disposables.add(this._dispatcher.add('keyDown', ctx => {
|
|
72
83
|
if (this.composition)
|
|
73
84
|
return false;
|
|
74
|
-
const binding = bindKeymap(keymap);
|
|
75
85
|
return binding(ctx);
|
|
76
86
|
}, options));
|
|
87
|
+
// Tear down any armed chord (pending timer + arm-time interceptor) with
|
|
88
|
+
// the binding, so a chord can never outlive its keymap.
|
|
89
|
+
disposables.add(() => binding.dispose());
|
|
77
90
|
return () => disposables.dispose();
|
|
78
91
|
}
|
|
79
92
|
listen() {
|
|
@@ -297,7 +297,14 @@ export class UIEventDispatcher extends LifeCycleWatcher {
|
|
|
297
297
|
this.std.provider
|
|
298
298
|
.getAll(KeymapIdentifier)
|
|
299
299
|
.forEach(({ getter, options }) => {
|
|
300
|
-
|
|
300
|
+
// One broken keymap (e.g. an invalid binding key) must not prevent
|
|
301
|
+
// every later keymap from being installed.
|
|
302
|
+
try {
|
|
303
|
+
this.bindHotkey(getter(std), options);
|
|
304
|
+
}
|
|
305
|
+
catch (error) {
|
|
306
|
+
console.error('[keymap] failed to install a keymap:', error);
|
|
307
|
+
}
|
|
301
308
|
});
|
|
302
309
|
}
|
|
303
310
|
run(name, context, runners) {
|
|
@@ -1,3 +1,43 @@
|
|
|
1
1
|
import type { UIEventHandler } from './base.js';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Parse one keystroke name (`'Mod-z'`) into the runtime form used for event
|
|
4
|
+
* matching (`'Ctrl-z'` / `'Meta-z'`, `'Space'` → `' '`), or return `null`
|
|
5
|
+
* when a modifier is not recognized. Shared by the binding path (which
|
|
6
|
+
* throws on `null`) and the shortcut canonicalizer (which must validate
|
|
7
|
+
* host-provided overrides without throwing).
|
|
8
|
+
*/
|
|
9
|
+
export declare function tryNormalizeKeyName(name: string): string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Lets an armed chord preempt the rest of the dispatcher chain: the
|
|
12
|
+
* continuation handler registered here must run BEFORE every existing keyDown
|
|
13
|
+
* handler (the dispatcher unshifts new handlers, so registering at arm time
|
|
14
|
+
* achieves this). Without it, a chord like `w c` would lose its second
|
|
15
|
+
* keystroke to an earlier single-key binding (e.g. `c` = connector tool).
|
|
16
|
+
*/
|
|
17
|
+
export interface ChordInterceptorRegistry {
|
|
18
|
+
/** Register a keyDown handler that runs first; returns a dispose fn. */
|
|
19
|
+
register(handler: UIEventHandler): () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Bind a keymap. A binding key is one keystroke (`'Mod-z'`) or a
|
|
23
|
+
* space-separated sequence of keystrokes (`'w c'`): pressing the first
|
|
24
|
+
* keystroke arms the sequence, and the next keystroke (within a short
|
|
25
|
+
* timeout) resolves it. The prefix scopes the continuation to its namespace:
|
|
26
|
+
* an unknown continuation is swallowed (no such shortcut), it never falls
|
|
27
|
+
* through to the generic single-keystroke bindings.
|
|
28
|
+
*
|
|
29
|
+
* Pass `interceptors` (the dispatcher does) so an armed chord consumes its
|
|
30
|
+
* continuation before earlier-registered handlers; without it, continuations
|
|
31
|
+
* are only matched when this handler is reached in the chain.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* A bound keymap handler. `dispose` tears down any armed chord state (pending
|
|
35
|
+
* timer + arm-time interceptor) — the owner of the binding MUST call it when
|
|
36
|
+
* the binding is disposed, otherwise an armed chord outlives its keymap for
|
|
37
|
+
* up to the chord timeout.
|
|
38
|
+
*/
|
|
39
|
+
export type KeymapHandler = UIEventHandler & {
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
};
|
|
42
|
+
export declare function bindKeymap(bindings: Record<string, UIEventHandler>, interceptors?: ChordInterceptorRegistry): KeymapHandler;
|
|
3
43
|
export declare function androidBindKeymapPatch(bindings: Record<string, UIEventHandler>): UIEventHandler;
|
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import { IS_MAC } from '../../global/env/index.js';
|
|
2
2
|
import { BlockSuiteError, ErrorCode } from '../../global/exceptions/index.js';
|
|
3
3
|
import { base, keyName } from 'w3c-keyname';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Parse one keystroke name (`'Mod-z'`) into the runtime form used for event
|
|
6
|
+
* matching (`'Ctrl-z'` / `'Meta-z'`, `'Space'` → `' '`), or return `null`
|
|
7
|
+
* when a modifier is not recognized. Shared by the binding path (which
|
|
8
|
+
* throws on `null`) and the shortcut canonicalizer (which must validate
|
|
9
|
+
* host-provided overrides without throwing).
|
|
10
|
+
*/
|
|
11
|
+
export function tryNormalizeKeyName(name) {
|
|
5
12
|
const parts = name.split(/-(?!$)/);
|
|
6
13
|
let result = parts.at(-1);
|
|
7
14
|
if (result === 'Space') {
|
|
8
15
|
result = ' ';
|
|
9
16
|
}
|
|
10
17
|
let alt, ctrl, shift, meta;
|
|
11
|
-
parts.slice(0, -1)
|
|
18
|
+
for (const mod of parts.slice(0, -1)) {
|
|
12
19
|
if (/^(cmd|meta|m)$/i.test(mod)) {
|
|
13
20
|
meta = true;
|
|
14
|
-
return;
|
|
15
21
|
}
|
|
16
|
-
if (/^a(lt)?$/i.test(mod)) {
|
|
22
|
+
else if (/^a(lt)?$/i.test(mod)) {
|
|
17
23
|
alt = true;
|
|
18
|
-
return;
|
|
19
24
|
}
|
|
20
|
-
if (/^(c|ctrl|control)$/i.test(mod)) {
|
|
25
|
+
else if (/^(c|ctrl|control)$/i.test(mod)) {
|
|
21
26
|
ctrl = true;
|
|
22
|
-
return;
|
|
23
27
|
}
|
|
24
|
-
if (/^s(hift)?$/i.test(mod)) {
|
|
28
|
+
else if (/^s(hift)?$/i.test(mod)) {
|
|
25
29
|
shift = true;
|
|
26
|
-
return;
|
|
27
30
|
}
|
|
28
|
-
if (/^mod$/i.test(mod)) {
|
|
31
|
+
else if (/^mod$/i.test(mod)) {
|
|
29
32
|
if (IS_MAC) {
|
|
30
33
|
meta = true;
|
|
31
34
|
}
|
|
32
35
|
else {
|
|
33
36
|
ctrl = true;
|
|
34
37
|
}
|
|
35
|
-
return;
|
|
36
38
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
else {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
39
43
|
if (alt)
|
|
40
44
|
result = 'Alt-' + result;
|
|
41
45
|
if (ctrl)
|
|
@@ -46,6 +50,13 @@ function normalizeKeyName(name) {
|
|
|
46
50
|
result = 'Shift-' + result;
|
|
47
51
|
return result;
|
|
48
52
|
}
|
|
53
|
+
function normalizeKeyName(name) {
|
|
54
|
+
const normalized = tryNormalizeKeyName(name);
|
|
55
|
+
if (normalized === null) {
|
|
56
|
+
throw new BlockSuiteError(ErrorCode.EventDispatcherError, 'Unrecognized modifier name: ' + name);
|
|
57
|
+
}
|
|
58
|
+
return normalized;
|
|
59
|
+
}
|
|
49
60
|
function modifiers(name, event, shift = true) {
|
|
50
61
|
if (event.altKey)
|
|
51
62
|
name = 'Alt-' + name;
|
|
@@ -57,18 +68,122 @@ function modifiers(name, event, shift = true) {
|
|
|
57
68
|
name = 'Shift-' + name;
|
|
58
69
|
return name;
|
|
59
70
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
/** How long a chord prefix stays armed before it is forgotten. */
|
|
72
|
+
const CHORD_TIMEOUT_MS = 1200;
|
|
73
|
+
const MODIFIER_KEYS = new Set(['Shift', 'Control', 'Alt', 'Meta']);
|
|
74
|
+
/**
|
|
75
|
+
* Chords must never swallow keystrokes the user is typing into an editable
|
|
76
|
+
* (rich text, inputs) — a chord prefix like `w` is a plain letter there.
|
|
77
|
+
*/
|
|
78
|
+
function isTypingTarget(event) {
|
|
79
|
+
const target = event.composedPath?.()[0] ?? event.target;
|
|
80
|
+
if (!(target instanceof HTMLElement))
|
|
81
|
+
return false;
|
|
82
|
+
return (target.isContentEditable ||
|
|
83
|
+
target.tagName === 'INPUT' ||
|
|
84
|
+
target.tagName === 'TEXTAREA');
|
|
65
85
|
}
|
|
66
|
-
export function bindKeymap(bindings) {
|
|
67
|
-
const map =
|
|
68
|
-
|
|
86
|
+
export function bindKeymap(bindings, interceptors) {
|
|
87
|
+
const map = Object.create(null);
|
|
88
|
+
const sequences = [];
|
|
89
|
+
for (const prop in bindings) {
|
|
90
|
+
const steps = prop.split(' ').filter(Boolean);
|
|
91
|
+
if (steps.length > 1) {
|
|
92
|
+
sequences.push({
|
|
93
|
+
steps: steps.map(normalizeKeyName),
|
|
94
|
+
handler: bindings[prop],
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
map[normalizeKeyName(prop)] = bindings[prop];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let armed = [];
|
|
102
|
+
let armedDepth = 0;
|
|
103
|
+
let armedTimer = null;
|
|
104
|
+
let disposeInterceptor = null;
|
|
105
|
+
const disarm = () => {
|
|
106
|
+
armed = [];
|
|
107
|
+
armedDepth = 0;
|
|
108
|
+
if (armedTimer !== null) {
|
|
109
|
+
clearTimeout(armedTimer);
|
|
110
|
+
armedTimer = null;
|
|
111
|
+
}
|
|
112
|
+
if (disposeInterceptor !== null) {
|
|
113
|
+
disposeInterceptor();
|
|
114
|
+
disposeInterceptor = null;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const rearmTimeout = () => {
|
|
118
|
+
if (armedTimer !== null)
|
|
119
|
+
clearTimeout(armedTimer);
|
|
120
|
+
armedTimer = setTimeout(disarm, CHORD_TIMEOUT_MS);
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Match one keystroke against the armed sequences. Returns true when the
|
|
124
|
+
* keystroke was consumed (advanced or completed a chord), false when it
|
|
125
|
+
* should fall through to the normal bindings (and the chord is disarmed).
|
|
126
|
+
*/
|
|
127
|
+
const continueChord = ctx => {
|
|
128
|
+
const event = ctx.get('keyboardState').raw;
|
|
129
|
+
const name = keyName(event);
|
|
130
|
+
// A lone modifier press must not break an armed chord.
|
|
131
|
+
if (MODIFIER_KEYS.has(name))
|
|
132
|
+
return false;
|
|
133
|
+
// Focus moved into an editable mid-chord: give the keystroke back.
|
|
134
|
+
if (isTypingTarget(event)) {
|
|
135
|
+
disarm();
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
const stroke = modifiers(name, event);
|
|
139
|
+
const matches = armed.filter(s => s.steps[armedDepth] === stroke);
|
|
140
|
+
if (!matches.length) {
|
|
141
|
+
// No continuation matched. The prefix scopes the next keystroke to
|
|
142
|
+
// its namespace ("in wardley, shortcut X"): an unknown key there
|
|
143
|
+
// means "no such shortcut" and is swallowed, never handed to the
|
|
144
|
+
// generic single-key bindings (w+e must not trigger the eraser).
|
|
145
|
+
disarm();
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
const complete = matches.find(s => s.steps.length === armedDepth + 1);
|
|
149
|
+
if (complete) {
|
|
150
|
+
disarm();
|
|
151
|
+
complete.handler(ctx);
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
armed = matches;
|
|
155
|
+
armedDepth += 1;
|
|
156
|
+
rearmTimeout();
|
|
157
|
+
return true;
|
|
158
|
+
};
|
|
159
|
+
const run = ctx => {
|
|
69
160
|
const state = ctx.get('keyboardState');
|
|
70
161
|
const event = state.raw;
|
|
71
162
|
const name = keyName(event);
|
|
163
|
+
if (sequences.length && !isTypingTarget(event)) {
|
|
164
|
+
// Without an interceptor registry, continuations are handled here.
|
|
165
|
+
if (armedDepth > 0 && !interceptors) {
|
|
166
|
+
if (MODIFIER_KEYS.has(name))
|
|
167
|
+
return false;
|
|
168
|
+
if (continueChord(ctx))
|
|
169
|
+
return true;
|
|
170
|
+
// fall through: the keystroke starts fresh below
|
|
171
|
+
}
|
|
172
|
+
if (armedDepth === 0) {
|
|
173
|
+
const stroke = modifiers(name, event);
|
|
174
|
+
const starting = sequences.filter(s => s.steps[0] === stroke);
|
|
175
|
+
// An existing single binding on the prefix key wins over the chord.
|
|
176
|
+
if (starting.length && !map[stroke]) {
|
|
177
|
+
armed = starting;
|
|
178
|
+
armedDepth = 1;
|
|
179
|
+
rearmTimeout();
|
|
180
|
+
if (interceptors) {
|
|
181
|
+
disposeInterceptor = interceptors.register(continueChord);
|
|
182
|
+
}
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
72
187
|
const direct = map[modifiers(name, event)];
|
|
73
188
|
if (direct && direct(ctx)) {
|
|
74
189
|
return true;
|
|
@@ -96,6 +211,7 @@ export function bindKeymap(bindings) {
|
|
|
96
211
|
}
|
|
97
212
|
return false;
|
|
98
213
|
};
|
|
214
|
+
return Object.assign(run, { dispose: disarm });
|
|
99
215
|
}
|
|
100
216
|
// In Android, the keypress event dose not contain
|
|
101
217
|
// the information about what key is pressed. See
|