refactor(editor): rename block-std to std (#11250)

Closes: BS-2946
This commit is contained in:
Saul-Mirone
2025-03-28 07:20:34 +00:00
parent 4498676a96
commit 205cd7a86d
1029 changed files with 1580 additions and 1698 deletions

View File

@@ -1,9 +1,9 @@
import { CanvasElementType } from '@blocksuite/affine-block-surface';
import type { BrushElementModel } from '@blocksuite/affine-model';
import { TelemetryProvider } from '@blocksuite/affine-shared/services';
import type { PointerEventState } from '@blocksuite/block-std';
import { BaseTool } from '@blocksuite/block-std/gfx';
import type { IVec } from '@blocksuite/global/gfx';
import type { PointerEventState } from '@blocksuite/std';
import { BaseTool } from '@blocksuite/std/gfx';
export class BrushTool extends BaseTool {
static BRUSH_POP_GAP = 20;
@@ -178,7 +178,7 @@ export class BrushTool extends BaseTool {
}
}
declare module '@blocksuite/block-std/gfx' {
declare module '@blocksuite/std/gfx' {
interface GfxToolsMap {
brush: BrushTool;
}

View File

@@ -4,8 +4,6 @@ import {
type SurfaceBlockComponent,
} from '@blocksuite/affine-block-surface';
import { isTopLevelBlock } from '@blocksuite/affine-shared/utils';
import type { PointerEventState } from '@blocksuite/block-std';
import { BaseTool, type GfxModel } from '@blocksuite/block-std/gfx';
import {
Bound,
getStroke,
@@ -13,6 +11,8 @@ import {
type IVec,
linePolygonIntersects,
} from '@blocksuite/global/gfx';
import type { PointerEventState } from '@blocksuite/std';
import { BaseTool, type GfxModel } from '@blocksuite/std/gfx';
class EraserOverlay extends Overlay {
d = '';
@@ -156,7 +156,7 @@ export class EraserTool extends BaseTool {
}
}
declare module '@blocksuite/block-std/gfx' {
declare module '@blocksuite/std/gfx' {
interface GfxToolsMap {
eraser: EraserTool;
}

View File

@@ -1,9 +1,9 @@
import { CanvasElementType } from '@blocksuite/affine-block-surface';
import type { HighlighterElementModel } from '@blocksuite/affine-model';
import { TelemetryProvider } from '@blocksuite/affine-shared/services';
import type { PointerEventState } from '@blocksuite/block-std';
import { BaseTool } from '@blocksuite/block-std/gfx';
import type { IVec } from '@blocksuite/global/gfx';
import type { PointerEventState } from '@blocksuite/std';
import { BaseTool } from '@blocksuite/std/gfx';
export class HighlighterTool extends BaseTool {
static HIGHLIGHTER_POP_GAP = 20;
@@ -178,7 +178,7 @@ export class HighlighterTool extends BaseTool {
}
}
declare module '@blocksuite/block-std/gfx' {
declare module '@blocksuite/std/gfx' {
interface GfxToolsMap {
highlighter: HighlighterTool;
}

View File

@@ -1,6 +1,6 @@
import { ThemeProvider } from '@blocksuite/affine-shared/services';
import { EdgelessToolbarToolMixin } from '@blocksuite/affine-widget-edgeless-toolbar';
import type { GfxToolsFullOptionValue } from '@blocksuite/block-std/gfx';
import type { GfxToolsFullOptionValue } from '@blocksuite/std/gfx';
import { css, html, LitElement } from 'lit';
import { EdgelessEraserDarkIcon, EdgelessEraserLightIcon } from './icons.js';

View File

@@ -1,4 +1,4 @@
import type { GfxToolsFullOptionValue } from '@blocksuite/block-std/gfx';
import type { GfxToolsFullOptionValue } from '@blocksuite/std/gfx';
export type Pen = Extract<
GfxToolsFullOptionValue['type'],

View File

@@ -17,7 +17,7 @@ import {
getMostCommonResolvedValue,
getMostCommonValue,
} from '@blocksuite/affine-shared/utils';
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
import { BlockFlavourIdentifier } from '@blocksuite/std';
import { html } from 'lit';
export const brushToolbarConfig = {

View File

@@ -20,7 +20,7 @@ import {
getMostCommonResolvedValue,
getMostCommonValue,
} from '@blocksuite/affine-shared/utils';
import { BlockFlavourIdentifier } from '@blocksuite/block-std';
import { BlockFlavourIdentifier } from '@blocksuite/std';
import { html } from 'lit';
const trackBaseProps = {