Skip to content

Commit 861d67b

Browse files
committed
feat: Bump version to v0.1.3 for release
1 parent 7b2a8ca commit 861d67b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+265
-255
lines changed

sitecustomize.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/pyinkcli/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
__version__ = "0.1.3"
44

5-
from . import component, cursor_helpers, dom, render_node_to_output, yoga_compat
6-
5+
from . import ( # noqa: E402,F401
6+
component,
7+
cursor_helpers,
8+
dom,
9+
log_update,
10+
render_node_to_output,
11+
styles,
12+
suspense_runtime,
13+
yoga_compat,
14+
)
715
from .index import ( # noqa: E402,F401
816
Box,
917
DOMElement,
@@ -31,7 +39,6 @@
3139
useStdout,
3240
useWindowSize,
3341
)
34-
from . import log_update, styles, suspense_runtime # noqa: E402,F401
3542
from .index import __all__ as _index_all # noqa: E402
3643

3744
__all__ = list(_index_all)

src/pyinkcli/component.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ class RenderableNode:
1010
props: dict[str, Any] = field(default_factory=dict)
1111
children: list[Any] = field(default_factory=list)
1212
key: str | None = None
13+
_suspended_by: list[dict[str, Any]] | None = None
14+
_class_instance: Any | None = None
15+
_devtools_owner_id: str | None = None
16+
_component_instance_id: str | None = None
17+
_component_type: Any = None
18+
_component_props: dict[str, Any] = field(default_factory=dict)
19+
_owner_infos: list[Any] = field(default_factory=list)
1320

1421

1522
def _flatten_children(values: tuple[Any, ...]) -> list[Any]:
@@ -39,4 +46,3 @@ def isElement(value: Any) -> bool:
3946

4047

4148
__all__ = ["createElement", "component", "isElement", "RenderableNode"]
42-

src/pyinkcli/components/App.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
from ..component import createElement
43
from .AppContext import create_app_context_value
54
from .StderrContext import create_stderr_context_value
65
from .StdinContext import create_stdin_context_value

src/pyinkcli/components/StderrContext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import sys
34

45
Props = dict

src/pyinkcli/components/StdinContext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
2+
23
import sys
4+
35
from ..hooks.use_stdin import _StdinHandle
46

57
PublicProps = dict

src/pyinkcli/components/StdoutContext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import sys
34

45
Props = dict

src/pyinkcli/components/Text.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ def Text(*children, **props):
5757
}
5858
if "background_color" in props and "backgroundColor" not in props:
5959
props["backgroundColor"] = props["background_color"]
60-
if "wrap" in props:
61-
style["textWrap"] = props["wrap"]
62-
else:
63-
style["textWrap"] = "wrap"
60+
style["textWrap"] = props.get("wrap", "wrap")
6461
props = dict(props)
6562
props["style"] = style
6663
props["internal_transform"] = lambda text: _transform_text(text, props)

src/pyinkcli/components/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
from . import AccessibilityContext, AppContext, BackgroundContext, CursorContext, FocusContext, StderrContext, StdinContext, StdoutContext
1+
from . import (
2+
AccessibilityContext,
3+
AppContext,
4+
BackgroundContext,
5+
CursorContext,
6+
FocusContext,
7+
StderrContext,
8+
StdinContext,
9+
StdoutContext,
10+
)
211
from .App import App
312
from .Box import Box
413
from .ErrorBoundary import ErrorBoundary

src/pyinkcli/dom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class DOMNodeAttribute:
1313
@dataclass
1414
class DOMNode:
1515
nodeName: str
16-
childNodes: list["DOMNode"] = field(default_factory=list)
17-
parentNode: "DOMNode | None" = None
16+
childNodes: list[DOMNode] = field(default_factory=list)
17+
parentNode: DOMNode | None = None
1818
attributes: dict[str, Any] = field(default_factory=dict)
1919
style: dict[str, Any] = field(default_factory=dict)
2020
internal_layoutListeners: list[Any] = field(default_factory=list)

0 commit comments

Comments
 (0)