nnews-react 2.0.1 → 2.0.2

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 CHANGED
@@ -8,12 +8,11 @@ import * as LabelPrimitive from '@radix-ui/react-label';
8
8
  import * as React_2 from 'react';
9
9
  import { VariantProps } from 'class-variance-authority';
10
10
 
11
- export declare function AIArticleGenerator({ mode, articleId, categories, onSuccess, onCancel, className, }: AIArticleGeneratorProps): JSX_2.Element;
11
+ export declare function AIArticleGenerator({ mode, articleId, onSuccess, onCancel, className, }: AIArticleGeneratorProps): JSX_2.Element;
12
12
 
13
13
  export declare interface AIArticleGeneratorProps {
14
14
  mode: 'create' | 'update';
15
15
  articleId?: number;
16
- categories?: Category[];
17
16
  onSuccess: (article: Article) => void;
18
17
  onCancel?: () => void;
19
18
  className?: string;
@@ -23,9 +22,6 @@ export declare interface AIArticleRequest {
23
22
  articleId?: number;
24
23
  prompt: string;
25
24
  generateImage?: boolean;
26
- categoryId?: number;
27
- roles?: string[];
28
- status?: ArticleStatus;
29
25
  }
30
26
 
31
27
  export declare interface Article {
@@ -352,6 +348,7 @@ declare interface MarkdownEditorProps {
352
348
  export declare interface NNewsConfig {
353
349
  apiUrl: string;
354
350
  apiClient?: AxiosInstance;
351
+ headers?: Record<string, string>;
355
352
  }
356
353
 
357
354
  export declare interface NNewsContextValue {