@alchemy.run/sigil 0.0.0-alpha.2 → 0.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
- package/src/components/App.tsx +1 -0
- package/src/components/Box.tsx +1 -0
- package/src/components/ErrorBoundary.tsx +1 -0
- package/src/components/ErrorOverview.tsx +1 -0
- package/src/components/Newline.tsx +1 -0
- package/src/components/Spacer.tsx +1 -0
- package/src/components/Static.tsx +1 -0
- package/src/components/Text.tsx +1 -0
- package/src/components/Transform.tsx +1 -0
- package/src/ink.tsx +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1175,6 +1175,7 @@ Transform a string representation of React components before they're written to
|
|
|
1175
1175
|
declare function Transform({ children, transform, accessibilityLabel }: Props$7): import("react").JSX.Element | null;
|
|
1176
1176
|
//#endregion
|
|
1177
1177
|
//#region src/components/Newline.d.ts
|
|
1178
|
+
/** @jsxImportSource react */
|
|
1178
1179
|
type Props$2 = {
|
|
1179
1180
|
/**
|
|
1180
1181
|
Number of newlines to insert.
|
package/dist/index.js
CHANGED
|
@@ -312,6 +312,7 @@ const parseStackLine = (line) => {
|
|
|
312
312
|
const backgroundContext = createContext(void 0);
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/components/Box.tsx
|
|
315
|
+
/** @jsxImportSource react */
|
|
315
316
|
/**
|
|
316
317
|
`<Box>` is an essential Ink component to build your layout. It's like `<div style="display: flex">` in the browser.
|
|
317
318
|
*/
|
|
@@ -377,6 +378,7 @@ const colorize = (str, color, type) => {
|
|
|
377
378
|
};
|
|
378
379
|
//#endregion
|
|
379
380
|
//#region src/components/Text.tsx
|
|
381
|
+
/** @jsxImportSource react */
|
|
380
382
|
/**
|
|
381
383
|
This component can display text and change its style to make it bold, underlined, italic, or strikethrough.
|
|
382
384
|
*/
|
|
@@ -411,6 +413,7 @@ function Text({ color, backgroundColor, dimColor = false, bold = false, italic =
|
|
|
411
413
|
}
|
|
412
414
|
//#endregion
|
|
413
415
|
//#region src/components/ErrorOverview.tsx
|
|
416
|
+
/** @jsxImportSource react */
|
|
414
417
|
const cleanupPath = (path) => {
|
|
415
418
|
return path?.replace(`file://${cwd()}/`, "");
|
|
416
419
|
};
|
|
@@ -523,6 +526,7 @@ function ErrorOverview({ error }) {
|
|
|
523
526
|
}
|
|
524
527
|
//#endregion
|
|
525
528
|
//#region src/components/ErrorBoundary.tsx
|
|
529
|
+
/** @jsxImportSource react */
|
|
526
530
|
var ErrorBoundary = class extends PureComponent {
|
|
527
531
|
static displayName = "InternalErrorBoundary";
|
|
528
532
|
static getDerivedStateFromError(error) {
|
|
@@ -588,6 +592,7 @@ const StdoutContext = createContext({
|
|
|
588
592
|
StdoutContext.displayName = "InternalStdoutContext";
|
|
589
593
|
//#endregion
|
|
590
594
|
//#region src/components/App.tsx
|
|
595
|
+
/** @jsxImportSource react */
|
|
591
596
|
const tab = " ";
|
|
592
597
|
const shiftTab = `${CSI}Z`;
|
|
593
598
|
const escape = "\x1B";
|
|
@@ -2885,6 +2890,7 @@ function shouldSynchronize(stream, interactive) {
|
|
|
2885
2890
|
}
|
|
2886
2891
|
//#endregion
|
|
2887
2892
|
//#region src/ink.tsx
|
|
2893
|
+
/** @jsxImportSource react */
|
|
2888
2894
|
const noop = () => {};
|
|
2889
2895
|
const textEncoder = new TextEncoder();
|
|
2890
2896
|
const yieldImmediate = async () => new Promise((resolve) => {
|
|
@@ -3712,6 +3718,7 @@ const renderToString = (node, options) => {
|
|
|
3712
3718
|
};
|
|
3713
3719
|
//#endregion
|
|
3714
3720
|
//#region src/components/Static.tsx
|
|
3721
|
+
/** @jsxImportSource react */
|
|
3715
3722
|
/**
|
|
3716
3723
|
`<Static>` component permanently renders its output above everything else. It's useful for displaying activity like completed tasks or logs—things that don't change after they're rendered (hence the name "Static").
|
|
3717
3724
|
|
|
@@ -3744,6 +3751,7 @@ function Static(props) {
|
|
|
3744
3751
|
}
|
|
3745
3752
|
//#endregion
|
|
3746
3753
|
//#region src/components/Transform.tsx
|
|
3754
|
+
/** @jsxImportSource react */
|
|
3747
3755
|
/**
|
|
3748
3756
|
Transform a string representation of React components before they're written to output. For example, you might want to apply a gradient to text, add a clickable link, or create some text effects. These use cases can't accept React nodes as input; they expect a string. That's what the <Transform> component does: it gives you an output string of its child components and lets you transform it in any way.
|
|
3749
3757
|
*/
|
|
@@ -3770,6 +3778,7 @@ function Newline({ count = 1 }) {
|
|
|
3770
3778
|
}
|
|
3771
3779
|
//#endregion
|
|
3772
3780
|
//#region src/components/Spacer.tsx
|
|
3781
|
+
/** @jsxImportSource react */
|
|
3773
3782
|
/**
|
|
3774
3783
|
A flexible space that expands along the major axis of its containing layout.
|
|
3775
3784
|
|
package/package.json
CHANGED
package/src/components/App.tsx
CHANGED
package/src/components/Box.tsx
CHANGED
package/src/components/Text.tsx
CHANGED
package/src/ink.tsx
CHANGED