@qodalis/react-cli 2.0.0-beta.17 → 2.0.0-beta.18

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.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { RefObject } from 'react';
3
3
  import { ICliModule, ICliCommandProcessor, CliEngineSnapshot, CliPanelConfig, CliPanelPosition, ICliPanelRef } from '@qodalis/cli-core';
4
- import { CliEngineOptions, CliEngine } from '@qodalis/cli';
4
+ import { CliEngineOptions, CliEngine, CreateCliEngineConfig } from '@qodalis/cli';
5
5
  export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
6
 
7
7
  interface CliProps {
@@ -84,13 +84,10 @@ interface CliConfigProviderProps extends CliConfigValue {
84
84
  }
85
85
  declare function CliConfigProvider({ modules, processors, options, services, children, }: CliConfigProviderProps): React__default.JSX.Element;
86
86
 
87
- interface UseCliEngineConfig {
88
- modules?: ICliModule[];
89
- processors?: ICliCommandProcessor[];
90
- options?: CliEngineOptions;
91
- services?: Record<string, any>;
87
+ interface UseCliEngineConfig extends Omit<CreateCliEngineConfig, 'framework'> {
92
88
  disabled?: boolean;
93
89
  }
94
90
  declare function useCliEngine(containerRef: RefObject<HTMLElement | null>, config?: UseCliEngineConfig): CliEngine | null;
95
91
 
96
- export { Cli, CliConfigProvider, type CliConfigProviderProps, type CliConfigValue, CliContext, type CliContextValue, CliPanel, type CliPanelOptions, type CliPanelProps, type CliProps, CliProvider, type CliProviderProps, type UseCliEngineConfig, useCli, useCliConfig, useCliEngine };
92
+ export { Cli, CliConfigProvider, CliContext, CliPanel, CliProvider, useCli, useCliConfig, useCliEngine };
93
+ export type { CliConfigProviderProps, CliConfigValue, CliContextValue, CliPanelOptions, CliPanelProps, CliProps, CliProviderProps, UseCliEngineConfig };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { RefObject } from 'react';
3
3
  import { ICliModule, ICliCommandProcessor, CliEngineSnapshot, CliPanelConfig, CliPanelPosition, ICliPanelRef } from '@qodalis/cli-core';
4
- import { CliEngineOptions, CliEngine } from '@qodalis/cli';
4
+ import { CliEngineOptions, CliEngine, CreateCliEngineConfig } from '@qodalis/cli';
5
5
  export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
6
 
7
7
  interface CliProps {
@@ -84,13 +84,10 @@ interface CliConfigProviderProps extends CliConfigValue {
84
84
  }
85
85
  declare function CliConfigProvider({ modules, processors, options, services, children, }: CliConfigProviderProps): React__default.JSX.Element;
86
86
 
87
- interface UseCliEngineConfig {
88
- modules?: ICliModule[];
89
- processors?: ICliCommandProcessor[];
90
- options?: CliEngineOptions;
91
- services?: Record<string, any>;
87
+ interface UseCliEngineConfig extends Omit<CreateCliEngineConfig, 'framework'> {
92
88
  disabled?: boolean;
93
89
  }
94
90
  declare function useCliEngine(containerRef: RefObject<HTMLElement | null>, config?: UseCliEngineConfig): CliEngine | null;
95
91
 
96
- export { Cli, CliConfigProvider, type CliConfigProviderProps, type CliConfigValue, CliContext, type CliContextValue, CliPanel, type CliPanelOptions, type CliPanelProps, type CliProps, CliProvider, type CliProviderProps, type UseCliEngineConfig, useCli, useCliConfig, useCliEngine };
92
+ export { Cli, CliConfigProvider, CliContext, CliPanel, CliProvider, useCli, useCliConfig, useCliEngine };
93
+ export type { CliConfigProviderProps, CliConfigValue, CliContextValue, CliPanelOptions, CliPanelProps, CliProps, CliProviderProps, UseCliEngineConfig };