@mirantes-micro/foundation-design-system 1.2.93 → 1.2.95
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 +16 -0
- package/dist/index.js +383 -139
- package/package.json +25 -2
- package/dist/index.css +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1507,6 +1507,18 @@ interface ArticleContentProps {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
declare const ArticleContent: ({ isOpen, onClose }: ArticleContentProps) => React__default.JSX.Element;
|
|
1509
1509
|
|
|
1510
|
+
interface IUserDraft {
|
|
1511
|
+
id: string;
|
|
1512
|
+
content: string;
|
|
1513
|
+
title: string;
|
|
1514
|
+
isArticle: boolean;
|
|
1515
|
+
isDraft: boolean;
|
|
1516
|
+
user: {
|
|
1517
|
+
name: string;
|
|
1518
|
+
slug: string;
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1510
1522
|
type Profile = {
|
|
1511
1523
|
id: string;
|
|
1512
1524
|
name: string;
|
|
@@ -1540,6 +1552,7 @@ type ArticleState = {
|
|
|
1540
1552
|
isPublishing: boolean;
|
|
1541
1553
|
isSavingDraft: boolean;
|
|
1542
1554
|
lastSavedAt: Date | null;
|
|
1555
|
+
currentDraftId: string | null;
|
|
1543
1556
|
setTitle: (title: string) => void;
|
|
1544
1557
|
setContent: (content: string) => void;
|
|
1545
1558
|
setPost: (post: Post | null) => void;
|
|
@@ -1549,6 +1562,9 @@ type ArticleState = {
|
|
|
1549
1562
|
setIsUploading: (isUploading: boolean) => void;
|
|
1550
1563
|
toggleHashtag: (hashtagId: string) => void;
|
|
1551
1564
|
setSelectedHashtags: (hashtags: string[]) => void;
|
|
1565
|
+
loadDraft: (draft: IUserDraft) => void;
|
|
1566
|
+
clearDraft: () => void;
|
|
1567
|
+
setCurrentDraftId: (id: string | null) => void;
|
|
1552
1568
|
setViewMode: (mode: ArticleViewMode) => void;
|
|
1553
1569
|
setCurrentStep: (step: ArticleStep) => void;
|
|
1554
1570
|
openModal: () => void;
|