File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6666 "widest-line" : " ^5.0.0" ,
6767 "wrap-ansi" : " ^9.0.0" ,
6868 "ws" : " ^8.18.0" ,
69- "yoga-wasm-web " : " ~0.3.3 "
69+ "yoga-layout " : " ~3.2.1 "
7070 },
7171 "devDependencies" : {
7272 "@faker-js/faker" : " ^9.2.0" ,
Original file line number Diff line number Diff line change 1- import Yoga , { type Node as YogaNode } from 'yoga-wasm-web/auto ' ;
1+ import Yoga , { type Node as YogaNode } from 'yoga-layout ' ;
22import measureText from './measure-text.js' ;
33import { type Styles } from './styles.js' ;
44import wrapText from './wrap-text.js' ;
Original file line number Diff line number Diff line change 1- import Yoga , { type Node as YogaNode } from 'yoga-wasm-web/auto ' ;
1+ import Yoga , { type Node as YogaNode } from 'yoga-layout ' ;
22
33const getMaxWidth = ( yogaNode : YogaNode ) => {
44 return (
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import autoBind from 'auto-bind';
77import signalExit from 'signal-exit' ;
88import patchConsole from 'patch-console' ;
99import { type FiberRoot } from 'react-reconciler' ;
10- import Yoga from 'yoga-wasm-web/auto ' ;
10+ import Yoga from 'yoga-layout ' ;
1111import reconciler from './reconciler.js' ;
1212import render from './renderer.js' ;
1313import * as dom from './dom.js' ;
Original file line number Diff line number Diff line change 11import process from 'node:process' ;
22import createReconciler from 'react-reconciler' ;
33import { DefaultEventPriority } from 'react-reconciler/constants.js' ;
4- import Yoga , { type Node as YogaNode } from 'yoga-wasm-web/auto ' ;
4+ import Yoga , { type Node as YogaNode } from 'yoga-layout ' ;
55import {
66 createTextNode ,
77 appendChildNode ,
Original file line number Diff line number Diff line change 11import widestLine from 'widest-line' ;
22import indentString from 'indent-string' ;
3- import Yoga from 'yoga-wasm-web/auto ' ;
3+ import Yoga from 'yoga-layout ' ;
44import wrapText from './wrap-text.js' ;
55import getMaxWidth from './get-max-width.js' ;
66import squashTextNodes from './squash-text-nodes.js' ;
Original file line number Diff line number Diff line change 22import { type Boxes , type BoxStyle } from 'cli-boxes' ;
33import { type LiteralUnion } from 'type-fest' ;
44import { type ForegroundColorName } from 'ansi-styles' ; // Note: We import directly from `ansi-styles` to avoid a bug in TypeScript.
5- import Yoga , { type Node as YogaNode } from 'yoga-wasm-web/auto ' ;
5+ import Yoga , { type Node as YogaNode } from 'yoga-layout ' ;
66
77export type Styles = {
88 readonly textWrap ?:
You can’t perform that action at this time.
0 commit comments