nnews-react 2.0.2 → 2.0.4

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,14 +8,14 @@ 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, onSuccess, onCancel, className, }: AIArticleGeneratorProps): JSX_2.Element;
11
+ export declare function AIArticleGenerator({ mode, articleId, isOpen, onSuccess, onClose, }: AIArticleGeneratorProps): JSX_2.Element | null;
12
12
 
13
13
  export declare interface AIArticleGeneratorProps {
14
14
  mode: 'create' | 'update';
15
15
  articleId?: number;
16
+ isOpen: boolean;
16
17
  onSuccess: (article: Article) => void;
17
- onCancel?: () => void;
18
- className?: string;
18
+ onClose: () => void;
19
19
  }
20
20
 
21
21
  export declare interface AIArticleRequest {
@@ -125,7 +125,7 @@ export declare interface ArticleInput {
125
125
  roleIds?: string[];
126
126
  }
127
127
 
128
- export declare function ArticleList({ articles, loading, error, onArticleClick, onEditClick, onDeleteClick, showActions, emptyMessage, }: ArticleListProps_2): JSX_2.Element;
128
+ export declare function ArticleList({ articles, loading, error, onArticleClick, onEditClick, onDeleteClick, onAIClick, showActions, emptyMessage, }: ArticleListProps_2): JSX_2.Element;
129
129
 
130
130
  export declare interface ArticleListProps {
131
131
  categoryId?: number;
@@ -146,6 +146,7 @@ declare interface ArticleListProps_2 {
146
146
  onArticleClick?: (article: Article) => void;
147
147
  onEditClick?: (article: Article) => void;
148
148
  onDeleteClick?: (article: Article) => void;
149
+ onAIClick?: (article: Article) => void;
149
150
  showActions?: boolean;
150
151
  emptyMessage?: string;
151
152
  }