Skip to content

Commit 967a03f

Browse files
committed
refactor: remove unused Block/Elem exports from bem.ts
Remove legacy exports that are no longer used after completing BEM migration. Removed exports: - Block (component) - 0 usages in source code - Elem (component) - 0 usages in source code - BemWithSpecificContext (factory) - 0 usages - useBEM (hook) - 0 usages - BemComponent (type) - 0 usages Kept exports (still in use): - cn (function) - used in ~99 source files - BlockContext (context) - used in 2 test files - CN (type) - return type of cn() - CNTagName (type) - used in Button.tsx and Taxonomy.tsx This completes the BEM migration cleanup. All components now use cn() helper. refactor: remove BlockContext export from bem.ts Remove BlockContext from exports as it's no longer used anywhere in editor. After cleaning up test files to remove unnecessary BlockContext.Provider wrappers, BlockContext has 0 usages in the editor codebase. Final bem.ts exports (minimal set): - cn (function) - primary BEM helper used in ~99 files - CN (type) - return type of cn() - CNTagName (type) - used for dynamic tag types in Button and Taxonomy All legacy Block/Elem system exports now fully removed.
1 parent 96f6370 commit 967a03f

File tree

1 file changed

+0
-6
lines changed
  • web/libs/editor/src/utils

1 file changed

+0
-6
lines changed

web/libs/editor/src/utils/bem.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
export {
22
cnb as cn,
3-
Block,
4-
Elem,
5-
BemWithSpecificContext,
6-
BlockContext,
7-
useBEM,
83
type CN,
94
type CNTagName,
10-
type BemComponent,
115
} from "@humansignal/core/lib/utils/bem";

0 commit comments

Comments
 (0)