@mirantes-micro/foundation-design-system 1.2.92 → 1.2.94

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.
Files changed (26) hide show
  1. package/dist/index.d.ts +16 -0
  2. package/dist/index.js +169 -130
  3. package/package.json +25 -2
  4. package/src/components/tiptap-node/blockquote-node/blockquote-node.css +35 -0
  5. package/src/components/tiptap-node/code-block-node/code-block-node.css +51 -0
  6. package/src/components/tiptap-node/heading-node/heading-node.css +43 -0
  7. package/src/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +25 -0
  8. package/src/components/tiptap-node/image-node/image-node.css +29 -0
  9. package/src/components/tiptap-node/image-upload-node/image-upload-node.css +239 -0
  10. package/src/components/tiptap-node/list-node/list-node.css +151 -0
  11. package/src/components/tiptap-node/paragraph-node/paragraph-node.css +238 -0
  12. package/src/components/tiptap-templates/simple/simple-editor.css +93 -0
  13. package/src/components/tiptap-ui/color-highlight-button/color-highlight-button.css +42 -0
  14. package/src/components/tiptap-ui-primitive/badge/badge-colors.css +215 -0
  15. package/src/components/tiptap-ui-primitive/badge/badge-group.css +16 -0
  16. package/src/components/tiptap-ui-primitive/badge/badge.css +95 -0
  17. package/src/components/tiptap-ui-primitive/button/button-colors.css +394 -0
  18. package/src/components/tiptap-ui-primitive/button/button-group.css +22 -0
  19. package/src/components/tiptap-ui-primitive/button/button.css +336 -0
  20. package/src/components/tiptap-ui-primitive/card/card.css +76 -0
  21. package/src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css +63 -0
  22. package/src/components/tiptap-ui-primitive/input/input.css +44 -0
  23. package/src/components/tiptap-ui-primitive/popover/popover.css +63 -0
  24. package/src/components/tiptap-ui-primitive/separator/separator.css +23 -0
  25. package/src/components/tiptap-ui-primitive/toolbar/toolbar.css +101 -0
  26. package/src/components/tiptap-ui-primitive/tooltip/tooltip.css +43 -0
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;