@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
|
@@ -35,7 +35,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
35
35
|
import { Bound, getBoundWithRotation } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxLocalElementModel, GfxPrimitiveElementModel, local, prop, } from '../../../std/gfx/index.js';
|
|
37
37
|
import * as Y from 'yjs';
|
|
38
|
-
import { DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeStyle, TextAlign, TextResizing, TextVerticalAlign, } from '../../consts/index.js';
|
|
38
|
+
import { DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeStyle, TextAlign, TextFitMode, TextResizing, TextVerticalAlign, } from '../../consts/index.js';
|
|
39
39
|
import { DefaultTheme } from '../../themes/index.js';
|
|
40
40
|
import { shapeMethods } from './api/index.js';
|
|
41
41
|
export const SHAPE_TEXT_PADDING = 20;
|
|
@@ -111,6 +111,9 @@ let ShapeElementModel = (() => {
|
|
|
111
111
|
let _textResizing_decorators;
|
|
112
112
|
let _textResizing_initializers = [];
|
|
113
113
|
let _textResizing_extraInitializers = [];
|
|
114
|
+
let _textFitMode_decorators;
|
|
115
|
+
let _textFitMode_initializers = [];
|
|
116
|
+
let _textFitMode_extraInitializers = [];
|
|
114
117
|
let _textVerticalAlign_decorators;
|
|
115
118
|
let _textVerticalAlign_initializers = [];
|
|
116
119
|
let _textVerticalAlign_extraInitializers = [];
|
|
@@ -155,6 +158,7 @@ let ShapeElementModel = (() => {
|
|
|
155
158
|
_textDisplay_decorators = [local()];
|
|
156
159
|
_textHorizontalAlign_decorators = [field(TextAlign.Center)];
|
|
157
160
|
_textResizing_decorators = [field(TextResizing.AUTO_HEIGHT)];
|
|
161
|
+
_textFitMode_decorators = [field(TextFitMode.Grow)];
|
|
158
162
|
_textVerticalAlign_decorators = [field(TextVerticalAlign.Center)];
|
|
159
163
|
_vertices_decorators = [field()];
|
|
160
164
|
_isClosed_decorators = [field()];
|
|
@@ -184,6 +188,7 @@ let ShapeElementModel = (() => {
|
|
|
184
188
|
__esDecorate(this, null, _textDisplay_decorators, { kind: "accessor", name: "textDisplay", static: false, private: false, access: { has: obj => "textDisplay" in obj, get: obj => obj.textDisplay, set: (obj, value) => { obj.textDisplay = value; } }, metadata: _metadata }, _textDisplay_initializers, _textDisplay_extraInitializers);
|
|
185
189
|
__esDecorate(this, null, _textHorizontalAlign_decorators, { kind: "accessor", name: "textHorizontalAlign", static: false, private: false, access: { has: obj => "textHorizontalAlign" in obj, get: obj => obj.textHorizontalAlign, set: (obj, value) => { obj.textHorizontalAlign = value; } }, metadata: _metadata }, _textHorizontalAlign_initializers, _textHorizontalAlign_extraInitializers);
|
|
186
190
|
__esDecorate(this, null, _textResizing_decorators, { kind: "accessor", name: "textResizing", static: false, private: false, access: { has: obj => "textResizing" in obj, get: obj => obj.textResizing, set: (obj, value) => { obj.textResizing = value; } }, metadata: _metadata }, _textResizing_initializers, _textResizing_extraInitializers);
|
|
191
|
+
__esDecorate(this, null, _textFitMode_decorators, { kind: "accessor", name: "textFitMode", static: false, private: false, access: { has: obj => "textFitMode" in obj, get: obj => obj.textFitMode, set: (obj, value) => { obj.textFitMode = value; } }, metadata: _metadata }, _textFitMode_initializers, _textFitMode_extraInitializers);
|
|
187
192
|
__esDecorate(this, null, _textVerticalAlign_decorators, { kind: "accessor", name: "textVerticalAlign", static: false, private: false, access: { has: obj => "textVerticalAlign" in obj, get: obj => obj.textVerticalAlign, set: (obj, value) => { obj.textVerticalAlign = value; } }, metadata: _metadata }, _textVerticalAlign_initializers, _textVerticalAlign_extraInitializers);
|
|
188
193
|
__esDecorate(this, null, _vertices_decorators, { kind: "accessor", name: "vertices", static: false, private: false, access: { has: obj => "vertices" in obj, get: obj => obj.vertices, set: (obj, value) => { obj.vertices = value; } }, metadata: _metadata }, _vertices_initializers, _vertices_extraInitializers);
|
|
189
194
|
__esDecorate(this, null, _isClosed_decorators, { kind: "accessor", name: "isClosed", static: false, private: false, access: { has: obj => "isClosed" in obj, get: obj => obj.isClosed, set: (obj, value) => { obj.isClosed = value; } }, metadata: _metadata }, _isClosed_initializers, _isClosed_extraInitializers);
|
|
@@ -310,6 +315,14 @@ let ShapeElementModel = (() => {
|
|
|
310
315
|
#textResizing_accessor_storage;
|
|
311
316
|
get textResizing() { return this.#textResizing_accessor_storage; }
|
|
312
317
|
set textResizing(value) { this.#textResizing_accessor_storage = value; }
|
|
318
|
+
#textFitMode_accessor_storage;
|
|
319
|
+
/**
|
|
320
|
+
* How the text and the shape bounds reconcile (grow / contained /
|
|
321
|
+
* overflow). Documents created before this prop existed read the `Grow`
|
|
322
|
+
* fallback — the pre-existing behavior.
|
|
323
|
+
*/
|
|
324
|
+
get textFitMode() { return this.#textFitMode_accessor_storage; }
|
|
325
|
+
set textFitMode(value) { this.#textFitMode_accessor_storage = value; }
|
|
313
326
|
#textVerticalAlign_accessor_storage;
|
|
314
327
|
get textVerticalAlign() { return this.#textVerticalAlign_accessor_storage; }
|
|
315
328
|
set textVerticalAlign(value) { this.#textVerticalAlign_accessor_storage = value; }
|
|
@@ -387,7 +400,8 @@ let ShapeElementModel = (() => {
|
|
|
387
400
|
this.#textDisplay_accessor_storage = (__runInitializers(this, _textAlign_extraInitializers), __runInitializers(this, _textDisplay_initializers, true));
|
|
388
401
|
this.#textHorizontalAlign_accessor_storage = (__runInitializers(this, _textDisplay_extraInitializers), __runInitializers(this, _textHorizontalAlign_initializers, void 0));
|
|
389
402
|
this.#textResizing_accessor_storage = (__runInitializers(this, _textHorizontalAlign_extraInitializers), __runInitializers(this, _textResizing_initializers, TextResizing.AUTO_HEIGHT));
|
|
390
|
-
this.#
|
|
403
|
+
this.#textFitMode_accessor_storage = (__runInitializers(this, _textResizing_extraInitializers), __runInitializers(this, _textFitMode_initializers, TextFitMode.Grow));
|
|
404
|
+
this.#textVerticalAlign_accessor_storage = (__runInitializers(this, _textFitMode_extraInitializers), __runInitializers(this, _textVerticalAlign_initializers, void 0));
|
|
391
405
|
this.#vertices_accessor_storage = (__runInitializers(this, _textVerticalAlign_extraInitializers), __runInitializers(this, _vertices_initializers, null));
|
|
392
406
|
this.#isClosed_accessor_storage = (__runInitializers(this, _vertices_extraInitializers), __runInitializers(this, _isClosed_initializers, true));
|
|
393
407
|
this.#smoothFlags_accessor_storage = (__runInitializers(this, _isClosed_extraInitializers), __runInitializers(this, _smoothFlags_initializers, null));
|
|
@@ -3,8 +3,8 @@ import { Bound } from '../../../global/gfx/index.js';
|
|
|
3
3
|
import type { BaseElementProps } from '../../../std/gfx/index.js';
|
|
4
4
|
import { GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
|
-
import { FontFamily, FontStyle, FontWeight, TextAlign, type TextStyleProps } from '../../consts/index';
|
|
7
|
-
import { type Color } from '../../themes/index';
|
|
6
|
+
import { FontFamily, FontStyle, FontWeight, TextAlign, type TextStyleProps } from '../../consts/index.js';
|
|
7
|
+
import { type Color } from '../../themes/index.js';
|
|
8
8
|
export type TextElementProps = BaseElementProps & {
|
|
9
9
|
text: Y.Text;
|
|
10
10
|
hasMaxWidth?: boolean;
|
|
@@ -35,8 +35,8 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
35
35
|
import { Bound, getPointsFromBoundWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '../../../global/gfx/index.js';
|
|
36
36
|
import { field, GfxPrimitiveElementModel } from '../../../std/gfx/index.js';
|
|
37
37
|
import * as Y from 'yjs';
|
|
38
|
-
import { FontFamily, FontStyle, FontWeight, TextAlign, } from '../../consts/index';
|
|
39
|
-
import { DefaultTheme } from '../../themes/index';
|
|
38
|
+
import { FontFamily, FontStyle, FontWeight, TextAlign, } from '../../consts/index.js';
|
|
39
|
+
import { DefaultTheme } from '../../themes/index.js';
|
|
40
40
|
let TextElementModel = (() => {
|
|
41
41
|
let _classSuper = GfxPrimitiveElementModel;
|
|
42
42
|
let _color_decorators;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Theme } from './types';
|
|
1
|
+
import type { Theme } from './types.js';
|
|
2
2
|
export declare const DefaultTheme: Theme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildPalettes, getColorByKey, pureBlack, pureWhite } from './utils';
|
|
1
|
+
import { buildPalettes, getColorByKey, pureBlack, pureWhite } from './utils.js';
|
|
2
2
|
const Transparent = 'transparent';
|
|
3
3
|
const White = getColorByKey('edgeless/palette/white');
|
|
4
4
|
const Black = getColorByKey('edgeless/palette/black');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Theme } from './types';
|
|
2
|
-
export * from './color';
|
|
3
|
-
export { DefaultTheme } from './default';
|
|
4
|
-
export * from './types';
|
|
1
|
+
import type { Theme } from './types.js';
|
|
2
|
+
export * from './color.js';
|
|
3
|
+
export { DefaultTheme } from './default.js';
|
|
4
|
+
export * from './types.js';
|
|
5
5
|
export declare const Themes: Record<string, Theme>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultTheme } from './default';
|
|
2
|
-
export * from './color';
|
|
3
|
-
export { DefaultTheme } from './default';
|
|
4
|
-
export * from './types';
|
|
1
|
+
import { DefaultTheme } from './default.js';
|
|
2
|
+
export * from './color.js';
|
|
3
|
+
export { DefaultTheme } from './default.js';
|
|
4
|
+
export * from './types.js';
|
|
5
5
|
export const Themes = {
|
|
6
6
|
default: DefaultTheme,
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AffineThemeKeyV2 } from '@toeverything/theme/v2';
|
|
2
|
-
import type { Color } from './color';
|
|
3
|
-
import type { Palette } from './types';
|
|
2
|
+
import type { Color } from './color.js';
|
|
3
|
+
import type { Palette } from './types.js';
|
|
4
4
|
export declare function buildPalettes(obj: Record<string, Color>, prefix?: string): Palette[];
|
|
5
5
|
export declare function getColorByKey(key: AffineThemeKeyV2): Color;
|
|
6
6
|
export declare const pureBlack: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Constructor } from '../../global/utils/index.js';
|
|
2
2
|
import type { GfxCompatibleProps } from '../../std/gfx/index.js';
|
|
3
3
|
import { type BaseBlockTransformer, type BlockModel, type InternalPrimitives } from '../../store/index.js';
|
|
4
|
-
import type { BlockMeta } from './types';
|
|
4
|
+
import type { BlockMeta } from './types.js';
|
|
5
5
|
export type EmbedProps<Props = object> = Props & GfxCompatibleProps & BlockMeta & {
|
|
6
6
|
comments?: Record<string, boolean>;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GfxModel } from '../../std/gfx/index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import type { BrushElementModel, ConnectorElementModel, GroupElementModel } from '../elements';
|
|
3
|
+
import type { BrushElementModel, ConnectorElementModel, GroupElementModel } from '../elements/index.js';
|
|
4
4
|
export type EmbedCardStyle = 'horizontal' | 'horizontalThin' | 'list' | 'vertical' | 'cube' | 'cubeThick' | 'video' | 'figma' | 'html' | 'syncedDoc' | 'pdf' | 'citation';
|
|
5
5
|
export declare const LinkPreviewDataSchema: z.ZodObject<{
|
|
6
6
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type TextConversionConfig, textConversionConfigs } from './conversion';
|
|
2
|
-
export { asyncGetRichText, asyncSetInlineRange, cleanSpecifiedTail, focusTextModel, getInlineEditorByModel, getRichTextByModel, getTextContentFromInlineRange, onModelTextUpdated, selectTextModel, } from './dom';
|
|
3
|
-
export { RichText } from './rich-text';
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export { type TextConversionConfig, textConversionConfigs } from './conversion.js';
|
|
2
|
+
export { asyncGetRichText, asyncSetInlineRange, cleanSpecifiedTail, focusTextModel, getInlineEditorByModel, getRichTextByModel, getTextContentFromInlineRange, onModelTextUpdated, selectTextModel, } from './dom.js';
|
|
3
|
+
export { RichText } from './rich-text.js';
|
|
4
|
+
export * from './utils.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { textConversionConfigs } from './conversion';
|
|
2
|
-
export { asyncGetRichText, asyncSetInlineRange, cleanSpecifiedTail, focusTextModel, getInlineEditorByModel, getRichTextByModel, getTextContentFromInlineRange, onModelTextUpdated, selectTextModel, } from './dom';
|
|
3
|
-
export { RichText } from './rich-text';
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export { textConversionConfigs } from './conversion.js';
|
|
2
|
+
export { asyncGetRichText, asyncSetInlineRange, cleanSpecifiedTail, focusTextModel, getInlineEditorByModel, getRichTextByModel, getTextContentFromInlineRange, onModelTextUpdated, selectTextModel, } from './dom.js';
|
|
3
|
+
export { RichText } from './rich-text.js';
|
|
4
|
+
export * from './utils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { effect } from '@preact/signals-core';
|
|
2
|
-
import { getInlineEditorByModel } from './dom';
|
|
2
|
+
import { getInlineEditorByModel } from './dom.js';
|
|
3
3
|
export function insertContent(std, model, text, attributes) {
|
|
4
4
|
if (!model.text) {
|
|
5
5
|
console.error("Can't insert text! Text not found");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AttachmentBlockSchema } from '../../affine-model/index.js';
|
|
2
2
|
import { BlockSuiteError, ErrorCode } from '../../global/exceptions/index.js';
|
|
3
3
|
import { BaseAdapter, nanoid, } from '../../store/index.js';
|
|
4
|
-
import { AdapterFactoryIdentifier } from './types/adapter';
|
|
4
|
+
import { AdapterFactoryIdentifier } from './types/adapter.js';
|
|
5
5
|
export class AttachmentAdapter extends BaseAdapter {
|
|
6
6
|
fromBlockSnapshot(_payload) {
|
|
7
7
|
throw new BlockSuiteError(ErrorCode.TransformerNotImplementedError, 'AttachmentAdapter.fromBlockSnapshot is not implemented.');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './clipboard';
|
|
2
|
-
export * from './utils';
|
|
1
|
+
export * from './clipboard.js';
|
|
2
|
+
export * from './utils.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './clipboard';
|
|
2
|
-
export * from './utils';
|
|
1
|
+
export * from './clipboard.js';
|
|
2
|
+
export * from './utils.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ServiceProvider } from '../../../global/di/index.js';
|
|
2
2
|
import { type AssetsManager, BaseAdapter, type BlockSnapshot, type DocSnapshot, type ExtensionType, type FromBlockSnapshotPayload, type FromBlockSnapshotResult, type FromDocSnapshotPayload, type FromDocSnapshotResult, type FromSliceSnapshotPayload, type FromSliceSnapshotResult, type SliceSnapshot, type ToBlockSnapshotPayload, type ToDocSnapshotPayload, type Transformer } from '../../../store/index.js';
|
|
3
|
-
import { type BlockHtmlAdapterMatcher } from './block-adapter';
|
|
4
|
-
import { HtmlDeltaConverter } from './delta-converter';
|
|
3
|
+
import { type BlockHtmlAdapterMatcher } from './block-adapter.js';
|
|
4
|
+
import { HtmlDeltaConverter } from './delta-converter.js';
|
|
5
5
|
export type Html = string;
|
|
6
6
|
type HtmlToSliceSnapshotPayload = {
|
|
7
7
|
file: Html;
|
|
@@ -24,6 +24,6 @@ export declare class HtmlAdapter extends BaseAdapter<Html> {
|
|
|
24
24
|
toDocSnapshot(payload: ToDocSnapshotPayload<string>): Promise<DocSnapshot>;
|
|
25
25
|
toSliceSnapshot(payload: HtmlToSliceSnapshotPayload): Promise<SliceSnapshot | null>;
|
|
26
26
|
}
|
|
27
|
-
export declare const HtmlAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types").AdapterFactory>;
|
|
27
|
+
export declare const HtmlAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types/index.js").AdapterFactory>;
|
|
28
28
|
export declare const HtmlAdapterFactoryExtension: ExtensionType;
|
|
29
29
|
export {};
|
|
@@ -3,11 +3,11 @@ import { ASTWalker, BaseAdapter, BlockSnapshotSchema, nanoid, } from '../../../s
|
|
|
3
3
|
import rehypeParse from 'rehype-parse';
|
|
4
4
|
import rehypeStringify from 'rehype-stringify';
|
|
5
5
|
import { unified } from 'unified';
|
|
6
|
-
import { AdapterFactoryIdentifier, } from '../types';
|
|
7
|
-
import { HastUtils } from '../utils/hast';
|
|
8
|
-
import { BlockHtmlAdapterMatcherIdentifier, } from './block-adapter';
|
|
9
|
-
import { HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './delta-converter';
|
|
10
|
-
import { rehypeInlineToBlock, rehypeWrapInlineElements, } from './rehype-plugins';
|
|
6
|
+
import { AdapterFactoryIdentifier, } from '../types/index.js';
|
|
7
|
+
import { HastUtils } from '../utils/hast.js';
|
|
8
|
+
import { BlockHtmlAdapterMatcherIdentifier, } from './block-adapter.js';
|
|
9
|
+
import { HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './delta-converter.js';
|
|
10
|
+
import { rehypeInlineToBlock, rehypeWrapInlineElements, } from './rehype-plugins/index.js';
|
|
11
11
|
export class HtmlAdapter extends BaseAdapter {
|
|
12
12
|
constructor(job, provider) {
|
|
13
13
|
super(job, provider);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './inline-to-block';
|
|
2
|
-
export * from './wrap-inline-element';
|
|
1
|
+
export * from './inline-to-block.js';
|
|
2
|
+
export * from './wrap-inline-element.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './inline-to-block';
|
|
2
|
-
export * from './wrap-inline-element';
|
|
1
|
+
export * from './inline-to-block.js';
|
|
2
|
+
export * from './wrap-inline-element.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { visit } from 'unist-util-visit';
|
|
2
|
-
import { HastUtils } from '../../utils/hast';
|
|
2
|
+
import { HastUtils } from '../../utils/hast.js';
|
|
3
3
|
/**
|
|
4
4
|
* The content copied from google docs will be wrapped in <b> tag
|
|
5
5
|
* To handle this case, we need to convert the <b> tag to a <div> tag
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { visit } from 'unist-util-visit';
|
|
2
|
-
import { HastUtils } from '../../utils/hast';
|
|
2
|
+
import { HastUtils } from '../../utils/hast.js';
|
|
3
3
|
/**
|
|
4
4
|
* In some cases, the inline elements are wrapped in a div tag mixed with block elements
|
|
5
5
|
* We need to wrap them in a p tag to avoid the inline elements being treated as a block element
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageBlockSchema } from '../../affine-model/index.js';
|
|
2
2
|
import { BlockSuiteError, ErrorCode } from '../../global/exceptions/index.js';
|
|
3
3
|
import { BaseAdapter, nanoid, } from '../../store/index.js';
|
|
4
|
-
import { AdapterFactoryIdentifier } from './types/adapter';
|
|
4
|
+
import { AdapterFactoryIdentifier } from './types/adapter.js';
|
|
5
5
|
export class ImageAdapter extends BaseAdapter {
|
|
6
6
|
fromBlockSnapshot(_payload) {
|
|
7
7
|
throw new BlockSuiteError(ErrorCode.TransformerNotImplementedError, 'ImageAdapter.fromBlockSnapshot is not implemented.');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './attachment';
|
|
2
|
-
export * from './clipboard';
|
|
3
|
-
export { BlockHtmlAdapterExtension, type BlockHtmlAdapterMatcher, BlockHtmlAdapterMatcherIdentifier, type Html, HtmlAdapter, HtmlAdapterFactoryExtension, HtmlAdapterFactoryIdentifier, HtmlASTToDeltaExtension, type HtmlASTToDeltaMatcher, HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterExtension, type InlineDeltaToHtmlAdapterMatcher, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './html';
|
|
4
|
-
export * from './image';
|
|
5
|
-
export { BlockMarkdownAdapterExtension, type BlockMarkdownAdapterMatcher, BlockMarkdownAdapterMatcherIdentifier, FOOTNOTE_DEFINITION_PREFIX, getCalloutEmoji, getFootnoteDefinitionText, IN_PARAGRAPH_NODE_CONTEXT_KEY, InlineDeltaToMarkdownAdapterExtension, type InlineDeltaToMarkdownAdapterMatcher, InlineDeltaToMarkdownAdapterMatcherIdentifier, isCalloutNode, isFootnoteDefinitionNode, isMarkdownAST, type Markdown, MarkdownAdapter, MarkdownAdapterFactoryExtension, MarkdownAdapterFactoryIdentifier, type MarkdownAdapterPreprocessor, type MarkdownAST, MarkdownASTToDeltaExtension, type MarkdownASTToDeltaMatcher, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, MarkdownPreprocessorExtension, MarkdownPreprocessorManager, } from './markdown';
|
|
6
|
-
export * from './middlewares';
|
|
7
|
-
export * from './mix-text';
|
|
8
|
-
export { BlockNotionHtmlAdapterExtension, type BlockNotionHtmlAdapterMatcher, BlockNotionHtmlAdapterMatcherIdentifier, type InlineDeltaToNotionHtmlAdapterMatcher, type NotionHtml, NotionHtmlAdapter, NotionHtmlAdapterFactoryExtension, NotionHtmlAdapterFactoryIdentifier, NotionHtmlASTToDeltaExtension, type NotionHtmlASTToDeltaMatcher, NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './notion-html';
|
|
9
|
-
export * from './notion-text';
|
|
10
|
-
export { BlockPlainTextAdapterExtension, type BlockPlainTextAdapterMatcher, BlockPlainTextAdapterMatcherIdentifier, InlineDeltaToPlainTextAdapterExtension, type InlineDeltaToPlainTextAdapterMatcher, InlineDeltaToPlainTextAdapterMatcherIdentifier, type PlainText, PlainTextAdapter, PlainTextAdapterFactoryExtension, PlainTextAdapterFactoryIdentifier, PlainTextDeltaConverter, } from './plain-text';
|
|
11
|
-
export { type AdapterContext, type AdapterFactory, AdapterFactoryIdentifier, type BlockAdapterMatcher, DeltaASTConverter, type HtmlAST, type InlineHtmlAST, isBlockSnapshotNode, type TextBuffer, } from './types';
|
|
12
|
-
export * from './utils';
|
|
1
|
+
export * from './attachment.js';
|
|
2
|
+
export * from './clipboard/index.js';
|
|
3
|
+
export { BlockHtmlAdapterExtension, type BlockHtmlAdapterMatcher, BlockHtmlAdapterMatcherIdentifier, type Html, HtmlAdapter, HtmlAdapterFactoryExtension, HtmlAdapterFactoryIdentifier, HtmlASTToDeltaExtension, type HtmlASTToDeltaMatcher, HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterExtension, type InlineDeltaToHtmlAdapterMatcher, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './html/index.js';
|
|
4
|
+
export * from './image.js';
|
|
5
|
+
export { BlockMarkdownAdapterExtension, type BlockMarkdownAdapterMatcher, BlockMarkdownAdapterMatcherIdentifier, FOOTNOTE_DEFINITION_PREFIX, getCalloutEmoji, getFootnoteDefinitionText, IN_PARAGRAPH_NODE_CONTEXT_KEY, InlineDeltaToMarkdownAdapterExtension, type InlineDeltaToMarkdownAdapterMatcher, InlineDeltaToMarkdownAdapterMatcherIdentifier, isCalloutNode, isFootnoteDefinitionNode, isMarkdownAST, type Markdown, MarkdownAdapter, MarkdownAdapterFactoryExtension, MarkdownAdapterFactoryIdentifier, type MarkdownAdapterPreprocessor, type MarkdownAST, MarkdownASTToDeltaExtension, type MarkdownASTToDeltaMatcher, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, MarkdownPreprocessorExtension, MarkdownPreprocessorManager, } from './markdown/index.js';
|
|
6
|
+
export * from './middlewares/index.js';
|
|
7
|
+
export * from './mix-text.js';
|
|
8
|
+
export { BlockNotionHtmlAdapterExtension, type BlockNotionHtmlAdapterMatcher, BlockNotionHtmlAdapterMatcherIdentifier, type InlineDeltaToNotionHtmlAdapterMatcher, type NotionHtml, NotionHtmlAdapter, NotionHtmlAdapterFactoryExtension, NotionHtmlAdapterFactoryIdentifier, NotionHtmlASTToDeltaExtension, type NotionHtmlASTToDeltaMatcher, NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './notion-html/index.js';
|
|
9
|
+
export * from './notion-text.js';
|
|
10
|
+
export { BlockPlainTextAdapterExtension, type BlockPlainTextAdapterMatcher, BlockPlainTextAdapterMatcherIdentifier, InlineDeltaToPlainTextAdapterExtension, type InlineDeltaToPlainTextAdapterMatcher, InlineDeltaToPlainTextAdapterMatcherIdentifier, type PlainText, PlainTextAdapter, PlainTextAdapterFactoryExtension, PlainTextAdapterFactoryIdentifier, PlainTextDeltaConverter, } from './plain-text/index.js';
|
|
11
|
+
export { type AdapterContext, type AdapterFactory, AdapterFactoryIdentifier, type BlockAdapterMatcher, DeltaASTConverter, type HtmlAST, type InlineHtmlAST, isBlockSnapshotNode, type TextBuffer, } from './types/index.js';
|
|
12
|
+
export * from './utils/index.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './attachment';
|
|
2
|
-
export * from './clipboard';
|
|
3
|
-
export { BlockHtmlAdapterExtension, BlockHtmlAdapterMatcherIdentifier, HtmlAdapter, HtmlAdapterFactoryExtension, HtmlAdapterFactoryIdentifier, HtmlASTToDeltaExtension, HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterExtension, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './html';
|
|
4
|
-
export * from './image';
|
|
5
|
-
export { BlockMarkdownAdapterExtension, BlockMarkdownAdapterMatcherIdentifier, FOOTNOTE_DEFINITION_PREFIX, getCalloutEmoji, getFootnoteDefinitionText, IN_PARAGRAPH_NODE_CONTEXT_KEY, InlineDeltaToMarkdownAdapterExtension, InlineDeltaToMarkdownAdapterMatcherIdentifier, isCalloutNode, isFootnoteDefinitionNode, isMarkdownAST, MarkdownAdapter, MarkdownAdapterFactoryExtension, MarkdownAdapterFactoryIdentifier, MarkdownASTToDeltaExtension, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, MarkdownPreprocessorExtension, MarkdownPreprocessorManager, } from './markdown';
|
|
6
|
-
export * from './middlewares';
|
|
7
|
-
export * from './mix-text';
|
|
8
|
-
export { BlockNotionHtmlAdapterExtension, BlockNotionHtmlAdapterMatcherIdentifier, NotionHtmlAdapter, NotionHtmlAdapterFactoryExtension, NotionHtmlAdapterFactoryIdentifier, NotionHtmlASTToDeltaExtension, NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './notion-html';
|
|
9
|
-
export * from './notion-text';
|
|
10
|
-
export { BlockPlainTextAdapterExtension, BlockPlainTextAdapterMatcherIdentifier, InlineDeltaToPlainTextAdapterExtension, InlineDeltaToPlainTextAdapterMatcherIdentifier, PlainTextAdapter, PlainTextAdapterFactoryExtension, PlainTextAdapterFactoryIdentifier, PlainTextDeltaConverter, } from './plain-text';
|
|
11
|
-
export { AdapterFactoryIdentifier, DeltaASTConverter, isBlockSnapshotNode, } from './types';
|
|
12
|
-
export * from './utils';
|
|
1
|
+
export * from './attachment.js';
|
|
2
|
+
export * from './clipboard/index.js';
|
|
3
|
+
export { BlockHtmlAdapterExtension, BlockHtmlAdapterMatcherIdentifier, HtmlAdapter, HtmlAdapterFactoryExtension, HtmlAdapterFactoryIdentifier, HtmlASTToDeltaExtension, HtmlASTToDeltaMatcherIdentifier, HtmlDeltaConverter, InlineDeltaToHtmlAdapterExtension, InlineDeltaToHtmlAdapterMatcherIdentifier, } from './html/index.js';
|
|
4
|
+
export * from './image.js';
|
|
5
|
+
export { BlockMarkdownAdapterExtension, BlockMarkdownAdapterMatcherIdentifier, FOOTNOTE_DEFINITION_PREFIX, getCalloutEmoji, getFootnoteDefinitionText, IN_PARAGRAPH_NODE_CONTEXT_KEY, InlineDeltaToMarkdownAdapterExtension, InlineDeltaToMarkdownAdapterMatcherIdentifier, isCalloutNode, isFootnoteDefinitionNode, isMarkdownAST, MarkdownAdapter, MarkdownAdapterFactoryExtension, MarkdownAdapterFactoryIdentifier, MarkdownASTToDeltaExtension, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, MarkdownPreprocessorExtension, MarkdownPreprocessorManager, } from './markdown/index.js';
|
|
6
|
+
export * from './middlewares/index.js';
|
|
7
|
+
export * from './mix-text.js';
|
|
8
|
+
export { BlockNotionHtmlAdapterExtension, BlockNotionHtmlAdapterMatcherIdentifier, NotionHtmlAdapter, NotionHtmlAdapterFactoryExtension, NotionHtmlAdapterFactoryIdentifier, NotionHtmlASTToDeltaExtension, NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './notion-html/index.js';
|
|
9
|
+
export * from './notion-text.js';
|
|
10
|
+
export { BlockPlainTextAdapterExtension, BlockPlainTextAdapterMatcherIdentifier, InlineDeltaToPlainTextAdapterExtension, InlineDeltaToPlainTextAdapterMatcherIdentifier, PlainTextAdapter, PlainTextAdapterFactoryExtension, PlainTextAdapterFactoryIdentifier, PlainTextDeltaConverter, } from './plain-text/index.js';
|
|
11
|
+
export { AdapterFactoryIdentifier, DeltaASTConverter, isBlockSnapshotNode, } from './types/index.js';
|
|
12
|
+
export * from './utils/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ServiceProvider } from '../../../global/di/index.js';
|
|
2
2
|
import { type AssetsManager, BaseAdapter, type BlockSnapshot, type DocSnapshot, type ExtensionType, type FromBlockSnapshotPayload, type FromBlockSnapshotResult, type FromDocSnapshotPayload, type FromDocSnapshotResult, type FromSliceSnapshotPayload, type FromSliceSnapshotResult, type SliceSnapshot, type ToBlockSnapshotPayload, type ToDocSnapshotPayload, type Transformer } from '../../../store/index.js';
|
|
3
|
-
import { type BlockMarkdownAdapterMatcher } from './block-adapter';
|
|
4
|
-
import { MarkdownDeltaConverter } from './delta-converter';
|
|
5
|
-
import { MarkdownPreprocessorManager } from './preprocessor';
|
|
6
|
-
import type { Markdown } from './type';
|
|
3
|
+
import { type BlockMarkdownAdapterMatcher } from './block-adapter.js';
|
|
4
|
+
import { MarkdownDeltaConverter } from './delta-converter.js';
|
|
5
|
+
import { MarkdownPreprocessorManager } from './preprocessor.js';
|
|
6
|
+
import type { Markdown } from './type.js';
|
|
7
7
|
type MarkdownToSliceSnapshotPayload = {
|
|
8
8
|
file: Markdown;
|
|
9
9
|
assets?: AssetsManager;
|
|
@@ -26,6 +26,6 @@ export declare class MarkdownAdapter extends BaseAdapter<Markdown> {
|
|
|
26
26
|
toDocSnapshot(payload: ToDocSnapshotPayload<Markdown>): Promise<DocSnapshot>;
|
|
27
27
|
toSliceSnapshot(payload: MarkdownToSliceSnapshotPayload): Promise<SliceSnapshot | null>;
|
|
28
28
|
}
|
|
29
|
-
export declare const MarkdownAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types").AdapterFactory>;
|
|
29
|
+
export declare const MarkdownAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types/index.js").AdapterFactory>;
|
|
30
30
|
export declare const MarkdownAdapterFactoryExtension: ExtensionType;
|
|
31
31
|
export {};
|
|
@@ -4,12 +4,12 @@ import remarkMath from 'remark-math';
|
|
|
4
4
|
import remarkParse from 'remark-parse';
|
|
5
5
|
import remarkStringify from 'remark-stringify';
|
|
6
6
|
import { unified } from 'unified';
|
|
7
|
-
import { AdapterFactoryIdentifier } from '../types';
|
|
8
|
-
import { BlockMarkdownAdapterMatcherIdentifier, } from './block-adapter';
|
|
9
|
-
import { InlineDeltaToMarkdownAdapterMatcherIdentifier, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, } from './delta-converter';
|
|
10
|
-
import { remarkGfm } from './gfm';
|
|
11
|
-
import { MarkdownPreprocessorManager } from './preprocessor';
|
|
12
|
-
import { remarkCallout } from './remark-plugins/remark-callout';
|
|
7
|
+
import { AdapterFactoryIdentifier } from '../types/index.js';
|
|
8
|
+
import { BlockMarkdownAdapterMatcherIdentifier, } from './block-adapter.js';
|
|
9
|
+
import { InlineDeltaToMarkdownAdapterMatcherIdentifier, MarkdownASTToDeltaMatcherIdentifier, MarkdownDeltaConverter, } from './delta-converter.js';
|
|
10
|
+
import { remarkGfm } from './gfm.js';
|
|
11
|
+
import { MarkdownPreprocessorManager } from './preprocessor.js';
|
|
12
|
+
import { remarkCallout } from './remark-plugins/remark-callout.js';
|
|
13
13
|
export class MarkdownAdapter extends BaseAdapter {
|
|
14
14
|
constructor(job, provider) {
|
|
15
15
|
super(job, provider);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ServiceIdentifier, type ServiceProvider } from '../../../global/di/index.js';
|
|
2
2
|
import type { ExtensionType } from '../../../store/index.js';
|
|
3
|
-
import { type AdapterPreprocessor, PreprocessorManager } from '../types/preprocessor';
|
|
4
|
-
import type { Markdown } from './type';
|
|
3
|
+
import { type AdapterPreprocessor, PreprocessorManager } from '../types/preprocessor.js';
|
|
4
|
+
import type { Markdown } from './type.js';
|
|
5
5
|
export type MarkdownAdapterPreprocessor = AdapterPreprocessor<Markdown>;
|
|
6
6
|
export declare const MarkdownPreprocessorExtension: (preprocessor: MarkdownAdapterPreprocessor) => ExtensionType & {
|
|
7
7
|
identifier: ServiceIdentifier<MarkdownAdapterPreprocessor>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIdentifier, } from '../../../global/di/index.js';
|
|
2
|
-
import { PreprocessorManager, } from '../types/preprocessor';
|
|
2
|
+
import { PreprocessorManager, } from '../types/preprocessor.js';
|
|
3
3
|
const MarkdownPreprocessorIdentifier = createIdentifier('MarkdownPreprocessor');
|
|
4
4
|
export const MarkdownPreprocessorExtension = (preprocessor) => {
|
|
5
5
|
const identifier = MarkdownPreprocessorIdentifier(preprocessor.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './remark-callout';
|
|
1
|
+
export * from './remark-callout.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './remark-callout';
|
|
1
|
+
export * from './remark-callout.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './callout-export-options';
|
|
2
|
-
export * from './code';
|
|
3
|
-
export * from './copy';
|
|
4
|
-
export * from './doc-link';
|
|
5
|
-
export * from './file-name';
|
|
6
|
-
export * from './file-path';
|
|
7
|
-
export * from './paste';
|
|
8
|
-
export * from './proxy';
|
|
9
|
-
export * from './replace-id';
|
|
10
|
-
export * from './surface-ref-to-embed';
|
|
11
|
-
export * from './title';
|
|
12
|
-
export * from './upload';
|
|
1
|
+
export * from './callout-export-options.js';
|
|
2
|
+
export * from './code.js';
|
|
3
|
+
export * from './copy.js';
|
|
4
|
+
export * from './doc-link.js';
|
|
5
|
+
export * from './file-name.js';
|
|
6
|
+
export * from './file-path.js';
|
|
7
|
+
export * from './paste.js';
|
|
8
|
+
export * from './proxy.js';
|
|
9
|
+
export * from './replace-id.js';
|
|
10
|
+
export * from './surface-ref-to-embed.js';
|
|
11
|
+
export * from './title.js';
|
|
12
|
+
export * from './upload.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './callout-export-options';
|
|
2
|
-
export * from './code';
|
|
3
|
-
export * from './copy';
|
|
4
|
-
export * from './doc-link';
|
|
5
|
-
export * from './file-name';
|
|
6
|
-
export * from './file-path';
|
|
7
|
-
export * from './paste';
|
|
8
|
-
export * from './proxy';
|
|
9
|
-
export * from './replace-id';
|
|
10
|
-
export * from './surface-ref-to-embed';
|
|
11
|
-
export * from './title';
|
|
12
|
-
export * from './upload';
|
|
1
|
+
export * from './callout-export-options.js';
|
|
2
|
+
export * from './code.js';
|
|
3
|
+
export * from './copy.js';
|
|
4
|
+
export * from './doc-link.js';
|
|
5
|
+
export * from './file-name.js';
|
|
6
|
+
export * from './file-path.js';
|
|
7
|
+
export * from './paste.js';
|
|
8
|
+
export * from './proxy.js';
|
|
9
|
+
export * from './replace-id.js';
|
|
10
|
+
export * from './surface-ref-to-embed.js';
|
|
11
|
+
export * from './title.js';
|
|
12
|
+
export * from './upload.js';
|
|
@@ -3,10 +3,10 @@ import { BlockSuiteError, ErrorCode } from '../../../global/exceptions/index.js'
|
|
|
3
3
|
import { BLOCK_ID_ATTR, BlockSelection, TextSelection, } from '../../../std/index.js';
|
|
4
4
|
import { fromJSON, } from '../../../store/index.js';
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
|
-
import { REFERENCE_NODE } from '../../consts';
|
|
7
|
-
import { ImageSelection } from '../../selection';
|
|
8
|
-
import { ParseDocUrlProvider, TelemetryProvider, } from '../../services';
|
|
9
|
-
import { matchModels, referenceToNode } from '../../utils';
|
|
6
|
+
import { REFERENCE_NODE } from '../../consts/index.js';
|
|
7
|
+
import { ImageSelection } from '../../selection/index.js';
|
|
8
|
+
import { ParseDocUrlProvider, TelemetryProvider, } from '../../services/index.js';
|
|
9
|
+
import { matchModels, referenceToNode } from '../../utils/index.js';
|
|
10
10
|
function findLastMatchingNode(root, fn) {
|
|
11
11
|
let lastMatchingNode = null;
|
|
12
12
|
function traverse(node) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreExtension } from '../../../store/index.js';
|
|
2
|
-
import { DEFAULT_IMAGE_PROXY_ENDPOINT } from '../../consts';
|
|
2
|
+
import { DEFAULT_IMAGE_PROXY_ENDPOINT } from '../../consts/index.js';
|
|
3
3
|
export const customImageProxyMiddleware = (imageProxyURL) => {
|
|
4
4
|
return ({ adapterConfigs }) => {
|
|
5
5
|
adapterConfigs.set('imageProxy', imageProxyURL);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatabaseBlockModel, EmbedLinkedDocModel, EmbedSyncedDocModel, ListBlockModel, ParagraphBlockModel, SurfaceRefBlockModel, } from '../../../affine-model/index.js';
|
|
2
2
|
import { BlockSuiteError } from '../../../global/exceptions/index.js';
|
|
3
3
|
import { filter, map } from 'rxjs';
|
|
4
|
-
import { matchModels } from '../../utils';
|
|
4
|
+
import { matchModels } from '../../utils/index.js';
|
|
5
5
|
export const replaceIdMiddleware = (idGenerator) => ({ slots, docCRUD, assetsManager }) => {
|
|
6
6
|
const idMap = new Map();
|
|
7
7
|
// After Import
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultTheme, NoteDisplayMode } from '../../affine-model/index.js';
|
|
2
2
|
import { ASTWalker, BaseAdapter, BlockSnapshotSchema, nanoid, } from '../../store/index.js';
|
|
3
|
-
import { MarkdownAdapter } from './markdown/markdown';
|
|
4
|
-
import { AdapterFactoryIdentifier } from './types/adapter';
|
|
3
|
+
import { MarkdownAdapter } from './markdown/markdown.js';
|
|
4
|
+
import { AdapterFactoryIdentifier } from './types/adapter.js';
|
|
5
5
|
export class MixTextAdapter extends BaseAdapter {
|
|
6
6
|
constructor(job, provider) {
|
|
7
7
|
super(job, provider);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createIdentifier, } from '../../../global/di/index.js';
|
|
2
|
-
import isEqual from 'lodash-es/isEqual';
|
|
2
|
+
import isEqual from 'lodash-es/isEqual.js';
|
|
3
3
|
import { DeltaASTConverter, } from '../types/delta-converter.js';
|
|
4
4
|
export const NotionHtmlASTToDeltaMatcherIdentifier = createIdentifier('NotionHtmlASTToDeltaMatcher');
|
|
5
5
|
export function NotionHtmlASTToDeltaExtension(matcher) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ServiceProvider } from '../../../global/di/index.js';
|
|
2
2
|
import { type AssetsManager, BaseAdapter, type BlockSnapshot, type DocSnapshot, type ExtensionType, type FromBlockSnapshotPayload, type FromBlockSnapshotResult, type FromDocSnapshotPayload, type FromDocSnapshotResult, type FromSliceSnapshotPayload, type FromSliceSnapshotResult, type SliceSnapshot, type Transformer } from '../../../store/index.js';
|
|
3
|
-
import { type BlockNotionHtmlAdapterMatcher } from './block-adapter';
|
|
4
|
-
import { NotionHtmlDeltaConverter } from './delta-converter';
|
|
3
|
+
import { type BlockNotionHtmlAdapterMatcher } from './block-adapter.js';
|
|
4
|
+
import { NotionHtmlDeltaConverter } from './delta-converter.js';
|
|
5
5
|
export type NotionHtml = string;
|
|
6
6
|
type NotionHtmlToSliceSnapshotPayload = {
|
|
7
7
|
file: NotionHtml;
|
|
@@ -3,10 +3,10 @@ import { BlockSuiteError, ErrorCode } from '../../../global/exceptions/index.js'
|
|
|
3
3
|
import { ASTWalker, BaseAdapter, nanoid, } from '../../../store/index.js';
|
|
4
4
|
import rehypeParse from 'rehype-parse';
|
|
5
5
|
import { unified } from 'unified';
|
|
6
|
-
import { AdapterFactoryIdentifier, } from '../types/adapter';
|
|
7
|
-
import { HastUtils } from '../utils/hast';
|
|
8
|
-
import { BlockNotionHtmlAdapterMatcherIdentifier, } from './block-adapter';
|
|
9
|
-
import { NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './delta-converter';
|
|
6
|
+
import { AdapterFactoryIdentifier, } from '../types/adapter.js';
|
|
7
|
+
import { HastUtils } from '../utils/hast.js';
|
|
8
|
+
import { BlockNotionHtmlAdapterMatcherIdentifier, } from './block-adapter.js';
|
|
9
|
+
import { NotionHtmlASTToDeltaMatcherIdentifier, NotionHtmlDeltaConverter, } from './delta-converter.js';
|
|
10
10
|
export class NotionHtmlAdapter extends BaseAdapter {
|
|
11
11
|
constructor(job, provider) {
|
|
12
12
|
super(job, provider);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultTheme } from '../../affine-model/index.js';
|
|
2
2
|
import { BlockSuiteError, ErrorCode } from '../../global/exceptions/index.js';
|
|
3
3
|
import { BaseAdapter, nanoid, } from '../../store/index.js';
|
|
4
|
-
import { AdapterFactoryIdentifier } from './types/adapter';
|
|
4
|
+
import { AdapterFactoryIdentifier } from './types/adapter.js';
|
|
5
5
|
export class NotionTextAdapter extends BaseAdapter {
|
|
6
6
|
fromBlockSnapshot() {
|
|
7
7
|
throw new BlockSuiteError(ErrorCode.TransformerNotImplementedError, 'NotionTextAdapter.fromBlockSnapshot is not implemented.');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ServiceProvider } from '../../../global/di/index.js';
|
|
2
2
|
import { type AssetsManager, BaseAdapter, type BlockSnapshot, type DocSnapshot, type ExtensionType, type FromBlockSnapshotPayload, type FromBlockSnapshotResult, type FromDocSnapshotPayload, type FromDocSnapshotResult, type FromSliceSnapshotPayload, type FromSliceSnapshotResult, type SliceSnapshot, type ToBlockSnapshotPayload, type ToDocSnapshotPayload, type Transformer } from '../../../store/index.js';
|
|
3
|
-
import { type BlockPlainTextAdapterMatcher } from './block-adapter';
|
|
4
|
-
import { PlainTextDeltaConverter } from './delta-converter';
|
|
3
|
+
import { type BlockPlainTextAdapterMatcher } from './block-adapter.js';
|
|
4
|
+
import { PlainTextDeltaConverter } from './delta-converter.js';
|
|
5
5
|
export type PlainText = string;
|
|
6
6
|
type PlainTextToSliceSnapshotPayload = {
|
|
7
7
|
file: PlainText;
|
|
@@ -21,6 +21,6 @@ export declare class PlainTextAdapter extends BaseAdapter<PlainText> {
|
|
|
21
21
|
toDocSnapshot(payload: ToDocSnapshotPayload<PlainText>): DocSnapshot;
|
|
22
22
|
toSliceSnapshot(payload: PlainTextToSliceSnapshotPayload): SliceSnapshot | null;
|
|
23
23
|
}
|
|
24
|
-
export declare const PlainTextAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types").AdapterFactory>;
|
|
24
|
+
export declare const PlainTextAdapterFactoryIdentifier: import("../../../global/di/types.js").ServiceIdentifier<import("../types/index.js").AdapterFactory>;
|
|
25
25
|
export declare const PlainTextAdapterFactoryExtension: ExtensionType;
|
|
26
26
|
export {};
|