mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(editor): replace debounce and throttle with lodash (#10639)
This commit is contained in:
@@ -2,14 +2,11 @@ import {
|
||||
type EditorHost,
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
SignalWatcher,
|
||||
throttle,
|
||||
WithDisposable,
|
||||
} from '@blocksuite/affine/global/utils';
|
||||
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/utils';
|
||||
import { Signal } from '@preact/signals-core';
|
||||
import { html, type PropertyValues } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import throttle from 'lodash-es/throttle';
|
||||
|
||||
import { extractMarkdownFromDoc } from '../../utils/extract';
|
||||
import type { DocDisplayConfig } from '../chat-config';
|
||||
|
||||
@@ -3,10 +3,11 @@ import {
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import { scrollbarStyle } from '@blocksuite/affine/blocks';
|
||||
import { throttle, WithDisposable } from '@blocksuite/affine/global/utils';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/utils';
|
||||
import type { PropertyValues } from 'lit';
|
||||
import { css, html } from 'lit';
|
||||
import { property, query } from 'lit/decorators.js';
|
||||
import throttle from 'lodash-es/throttle';
|
||||
|
||||
import type {
|
||||
AffineAIPanelState,
|
||||
|
||||
Reference in New Issue
Block a user