nnews-react 0.3.10 → 0.4.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
@@ -35,6 +35,7 @@ export declare interface Article {
35
35
  imageName?: string;
36
36
  imageUrl?: string;
37
37
  status: ArticleStatus;
38
+ contentType?: ContentType;
38
39
  dateAt?: string | Date;
39
40
  createdAt?: string | Date;
40
41
  updatedAt?: string | Date;
@@ -123,6 +124,7 @@ export declare interface ArticleInput {
123
124
  content: string;
124
125
  imageName?: string;
125
126
  status: ArticleStatus;
127
+ contentType?: ContentType;
126
128
  categoryId?: number;
127
129
  dateAt?: string | Date;
128
130
  tagList?: string;
@@ -312,6 +314,12 @@ export declare interface CategoryUpdate extends CategoryInput {
312
314
 
313
315
  export declare function cn(...inputs: ClassValue[]): string;
314
316
 
317
+ export declare enum ContentType {
318
+ PlainText = 1,
319
+ Html = 2,
320
+ MarkDown = 3
321
+ }
322
+
315
323
  export declare function createI18nInstance(language?: string, customTranslations?: Record<string, Record<string, unknown>>): i18n;
316
324
 
317
325
  /**
@@ -369,6 +377,10 @@ export declare const defaultTranslations: {
369
377
  statusArchived: string;
370
378
  statusScheduled: string;
371
379
  statusReview: string;
380
+ contentType: string;
381
+ contentTypePlainText: string;
382
+ contentTypeHtml: string;
383
+ contentTypeMarkDown: string;
372
384
  featuredImage: string;
373
385
  uploading: string;
374
386
  imageHint: string;
@@ -521,6 +533,10 @@ export declare const defaultTranslations: {
521
533
  statusArchived: string;
522
534
  statusScheduled: string;
523
535
  statusReview: string;
536
+ contentType: string;
537
+ contentTypePlainText: string;
538
+ contentTypeHtml: string;
539
+ contentTypeMarkDown: string;
524
540
  featuredImage: string;
525
541
  uploading: string;
526
542
  imageHint: string;
@@ -675,6 +691,10 @@ export declare const enTranslations: {
675
691
  statusArchived: string;
676
692
  statusScheduled: string;
677
693
  statusReview: string;
694
+ contentType: string;
695
+ contentTypePlainText: string;
696
+ contentTypeHtml: string;
697
+ contentTypeMarkDown: string;
678
698
  featuredImage: string;
679
699
  uploading: string;
680
700
  imageHint: string;
@@ -905,6 +925,10 @@ export declare const ptTranslations: {
905
925
  statusArchived: string;
906
926
  statusScheduled: string;
907
927
  statusReview: string;
928
+ contentType: string;
929
+ contentTypePlainText: string;
930
+ contentTypeHtml: string;
931
+ contentTypeMarkDown: string;
908
932
  featuredImage: string;
909
933
  uploading: string;
910
934
  imageHint: string;