@nmakarov/cli-toolkit 0.5.0 → 0.7.0

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.js CHANGED
@@ -734,6 +734,10 @@ var Params = class {
734
734
  var paramsInstance = null;
735
735
  var getParamsInstance = () => paramsInstance;
736
736
 
737
+ // src/screen/index.ts
738
+ import React5, { useState as useState3, useEffect as useEffect3, useRef as useRef3, useMemo, useCallback, createElement as createElement2 } from "react";
739
+ import { Box as Box5, Text as Text5, useInput as useInput2 } from "ink";
740
+
737
741
  // src/screen/screens.ts
738
742
  import { useState as useState2, createElement as h3 } from "react";
739
743
  import { render, useInput, Text as Text3 } from "ink";
@@ -1714,6 +1718,22 @@ function organizeFooterMessages(messages) {
1714
1718
  return lines;
1715
1719
  }
1716
1720
 
1721
+ // src/screen/index.ts
1722
+ var loadPromise = null;
1723
+ async function load() {
1724
+ if (loadPromise) return loadPromise;
1725
+ loadPromise = Promise.all([
1726
+ import("react"),
1727
+ import("ink")
1728
+ ]).then(() => {
1729
+ });
1730
+ return loadPromise;
1731
+ }
1732
+ if (typeof window === "undefined") {
1733
+ load().catch(() => {
1734
+ });
1735
+ }
1736
+
1717
1737
  // src/filedatabase/index.ts
1718
1738
  import fs3 from "fs";
1719
1739
  import path3 from "path";
@@ -3180,6 +3200,7 @@ function setupContext(opts = {}) {
3180
3200
  }
3181
3201
  export {
3182
3202
  Args,
3203
+ Box5 as Box,
3183
3204
  Db,
3184
3205
  Divider,
3185
3206
  FileDatabase,
@@ -3192,12 +3213,14 @@ export {
3192
3213
  MultiColumnListComponent,
3193
3214
  MultiColumnListWithPreviewComponent,
3194
3215
  Params,
3216
+ React5 as React,
3195
3217
  ScreenBody,
3196
3218
  ScreenContainer,
3197
3219
  ScreenDivider,
3198
3220
  ScreenFooter,
3199
3221
  ScreenRow,
3200
3222
  ScreenTitle,
3223
+ Text5 as Text,
3201
3224
  TextBlock,
3202
3225
  buildBreadcrumb,
3203
3226
  buildDetailBreadcrumb,
@@ -3206,8 +3229,10 @@ export {
3206
3229
  defaultVersionSynopsisFunction,
3207
3230
  getArgsInstance,
3208
3231
  getParamsInstance,
3232
+ createElement2 as h,
3209
3233
  joiEdateType,
3210
3234
  joiStringArrayType,
3235
+ load,
3211
3236
  organizeFooterMessages,
3212
3237
  setupContext,
3213
3238
  showListScreen,
@@ -3215,6 +3240,12 @@ export {
3215
3240
  showMultiColumnListScreen,
3216
3241
  showMultiColumnListWithPreviewScreen,
3217
3242
  showScreen,
3218
- showWordGridScreen
3243
+ showWordGridScreen,
3244
+ useCallback,
3245
+ useEffect3 as useEffect,
3246
+ useInput2 as useInput,
3247
+ useMemo,
3248
+ useRef3 as useRef,
3249
+ useState3 as useState
3219
3250
  };
3220
3251
  //# sourceMappingURL=index.js.map