@layers-app/shared 0.0.45 → 0.0.50

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 (69) hide show
  1. package/dist/KanbanLayout-oWz6EhPt.js +297 -0
  2. package/dist/assets/jsons/icons.min.json.d.ts +1 -1
  3. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  4. package/dist/components/AppContainer/types.d.ts +1 -0
  5. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +4 -2
  6. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +4 -1
  7. package/dist/components/AttachmentsGalleryModal/constants.d.ts +2 -1
  8. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
  9. package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
  10. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +9 -0
  11. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
  12. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +16 -11
  13. package/dist/components/CommentComposer/index.d.ts +2 -55
  14. package/dist/components/CommentComposer/types.d.ts +96 -0
  15. package/dist/components/CommentsPanel/index.d.ts +1 -26
  16. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  17. package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
  18. package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
  19. package/dist/components/FilePicker/FilePicker.d.ts +2 -1
  20. package/dist/components/FilePicker/types.d.ts +1 -0
  21. package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
  22. package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
  23. package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
  24. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
  25. package/dist/components/FormViewer/store/formStore.d.ts +6 -6
  26. package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
  27. package/dist/components/FormViewer/store/selectors.d.ts +342 -342
  28. package/dist/components/FormViewer/types/schemes.d.ts +22 -22
  29. package/dist/components/ProjectIcon/ProjectIcon.d.ts +5 -0
  30. package/dist/components/RichText/extensions/bold.d.ts +3 -0
  31. package/dist/components/RichText/extensions/check-list.d.ts +42 -0
  32. package/dist/components/RichText/extensions/color-picker.d.ts +28 -0
  33. package/dist/components/RichText/extensions/font-size.d.ts +23 -0
  34. package/dist/components/RichText/extensions/italic.d.ts +3 -0
  35. package/dist/components/RichText/extensions/underline.d.ts +3 -0
  36. package/dist/components/RichText/index.d.ts +41 -0
  37. package/dist/components/modals/RemoveConfirmModal.d.ts +6 -1
  38. package/dist/emoji-categorized-CRsMUQyD.js +4 -0
  39. package/dist/helpers/hotjar.d.ts +9 -0
  40. package/dist/helpers/pickRandomEmoji.d.ts +1 -0
  41. package/dist/icons.min-43tm8BtD.js +4 -0
  42. package/dist/index-tn5CWDGz.js +116605 -0
  43. package/dist/index.d.ts +4 -2
  44. package/dist/index.js +261 -310
  45. package/dist/index.umd.cjs +60 -429
  46. package/dist/lang/locales/ui_en.json.d.ts +5 -4
  47. package/dist/lang/locales/ui_es.json.d.ts +2 -1
  48. package/dist/lang/locales/ui_ru.json.d.ts +2 -1
  49. package/package.json +9 -17
  50. package/dist/KanbanLayout-C6wJBGZ2.js +0 -287
  51. package/dist/components/CommentFilterMenu/index.d.ts +0 -9
  52. package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +0 -10
  53. package/dist/components/CommentsPanel/components/CommentActions.d.ts +0 -16
  54. package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +0 -21
  55. package/dist/components/CommentsPanel/components/CommentTabFilter.d.ts +0 -7
  56. package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +0 -6
  57. package/dist/components/CommentsPanel/components/CommentsFilterHeader.d.ts +0 -3
  58. package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +0 -7
  59. package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +0 -18
  60. package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +0 -15
  61. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +0 -10
  62. package/dist/components/CommentsPanel/components/Icon.d.ts +0 -8
  63. package/dist/components/CommentsPanel/store.d.ts +0 -25
  64. package/dist/components/CommentsPanel/types.d.ts +0 -339
  65. package/dist/components/CommentsPanel/utils.d.ts +0 -14
  66. package/dist/emoji-categorized-DAOdcF53.js +0 -4
  67. package/dist/helpers/pickRandomIcon.d.ts +0 -1
  68. package/dist/icons.min-Chyr-bjL.js +0 -4
  69. package/dist/index-W83Evo8i.js +0 -78459
@@ -1627,6 +1627,7 @@ export declare namespace Schemes {
1627
1627
  } | undefined;
1628
1628
  align?: "center" | "end" | "start" | undefined;
1629
1629
  primaryColor?: string | undefined;
1630
+ borderRadius?: "sm" | "md" | "lg" | undefined;
1630
1631
  background?: {
1631
1632
  image?: string | undefined;
1632
1633
  color?: string | undefined;
@@ -1644,7 +1645,6 @@ export declare namespace Schemes {
1644
1645
  shadowSize?: number | undefined;
1645
1646
  shadowColor?: string | undefined;
1646
1647
  } | undefined;
1647
- borderRadius?: "sm" | "md" | "lg" | undefined;
1648
1648
  font?: {
1649
1649
  color?: string | undefined;
1650
1650
  fontSize?: number | undefined;
@@ -1673,6 +1673,7 @@ export declare namespace Schemes {
1673
1673
  } | undefined;
1674
1674
  align?: "center" | "end" | "start" | undefined;
1675
1675
  primaryColor?: string | undefined;
1676
+ borderRadius?: "sm" | "md" | "lg" | undefined;
1676
1677
  background?: {
1677
1678
  image?: string | undefined;
1678
1679
  color?: string | undefined;
@@ -1690,7 +1691,6 @@ export declare namespace Schemes {
1690
1691
  shadowSize?: number | undefined;
1691
1692
  shadowColor?: string | undefined;
1692
1693
  } | undefined;
1693
- borderRadius?: "sm" | "md" | "lg" | undefined;
1694
1694
  font?: {
1695
1695
  color?: string | undefined;
1696
1696
  fontSize?: number | undefined;
@@ -2525,6 +2525,7 @@ export declare namespace Schemes {
2525
2525
  } | undefined;
2526
2526
  align?: "center" | "end" | "start" | undefined;
2527
2527
  primaryColor?: string | undefined;
2528
+ borderRadius?: "sm" | "md" | "lg" | undefined;
2528
2529
  background?: {
2529
2530
  image?: string | undefined;
2530
2531
  color?: string | undefined;
@@ -2542,7 +2543,6 @@ export declare namespace Schemes {
2542
2543
  shadowSize?: number | undefined;
2543
2544
  shadowColor?: string | undefined;
2544
2545
  } | undefined;
2545
- borderRadius?: "sm" | "md" | "lg" | undefined;
2546
2546
  font?: {
2547
2547
  color?: string | undefined;
2548
2548
  fontSize?: number | undefined;
@@ -2571,6 +2571,7 @@ export declare namespace Schemes {
2571
2571
  } | undefined;
2572
2572
  align?: "center" | "end" | "start" | undefined;
2573
2573
  primaryColor?: string | undefined;
2574
+ borderRadius?: "sm" | "md" | "lg" | undefined;
2574
2575
  background?: {
2575
2576
  image?: string | undefined;
2576
2577
  color?: string | undefined;
@@ -2588,7 +2589,6 @@ export declare namespace Schemes {
2588
2589
  shadowSize?: number | undefined;
2589
2590
  shadowColor?: string | undefined;
2590
2591
  } | undefined;
2591
- borderRadius?: "sm" | "md" | "lg" | undefined;
2592
2592
  font?: {
2593
2593
  color?: string | undefined;
2594
2594
  fontSize?: number | undefined;
@@ -2851,6 +2851,7 @@ export declare namespace Schemes {
2851
2851
  } | undefined;
2852
2852
  align?: "center" | "end" | "start" | undefined;
2853
2853
  primaryColor?: string | undefined;
2854
+ borderRadius?: "sm" | "md" | "lg" | undefined;
2854
2855
  background?: {
2855
2856
  image?: string | undefined;
2856
2857
  color?: string | undefined;
@@ -2868,7 +2869,6 @@ export declare namespace Schemes {
2868
2869
  shadowSize?: number | undefined;
2869
2870
  shadowColor?: string | undefined;
2870
2871
  } | undefined;
2871
- borderRadius?: "sm" | "md" | "lg" | undefined;
2872
2872
  font?: {
2873
2873
  color?: string | undefined;
2874
2874
  fontSize?: number | undefined;
@@ -3131,6 +3131,7 @@ export declare namespace Schemes {
3131
3131
  } | undefined;
3132
3132
  align?: "center" | "end" | "start" | undefined;
3133
3133
  primaryColor?: string | undefined;
3134
+ borderRadius?: "sm" | "md" | "lg" | undefined;
3134
3135
  background?: {
3135
3136
  image?: string | undefined;
3136
3137
  color?: string | undefined;
@@ -3148,7 +3149,6 @@ export declare namespace Schemes {
3148
3149
  shadowSize?: number | undefined;
3149
3150
  shadowColor?: string | undefined;
3150
3151
  } | undefined;
3151
- borderRadius?: "sm" | "md" | "lg" | undefined;
3152
3152
  font?: {
3153
3153
  color?: string | undefined;
3154
3154
  fontSize?: number | undefined;
@@ -3995,6 +3995,7 @@ export declare namespace Schemes {
3995
3995
  } | undefined;
3996
3996
  align?: "center" | "end" | "start" | undefined;
3997
3997
  primaryColor?: string | undefined;
3998
+ borderRadius?: "sm" | "md" | "lg" | undefined;
3998
3999
  background?: {
3999
4000
  image?: string | undefined;
4000
4001
  color?: string | undefined;
@@ -4012,7 +4013,6 @@ export declare namespace Schemes {
4012
4013
  shadowSize?: number | undefined;
4013
4014
  shadowColor?: string | undefined;
4014
4015
  } | undefined;
4015
- borderRadius?: "sm" | "md" | "lg" | undefined;
4016
4016
  font?: {
4017
4017
  color?: string | undefined;
4018
4018
  fontSize?: number | undefined;
@@ -4041,6 +4041,7 @@ export declare namespace Schemes {
4041
4041
  } | undefined;
4042
4042
  align?: "center" | "end" | "start" | undefined;
4043
4043
  primaryColor?: string | undefined;
4044
+ borderRadius?: "sm" | "md" | "lg" | undefined;
4044
4045
  background?: {
4045
4046
  image?: string | undefined;
4046
4047
  color?: string | undefined;
@@ -4058,7 +4059,6 @@ export declare namespace Schemes {
4058
4059
  shadowSize?: number | undefined;
4059
4060
  shadowColor?: string | undefined;
4060
4061
  } | undefined;
4061
- borderRadius?: "sm" | "md" | "lg" | undefined;
4062
4062
  font?: {
4063
4063
  color?: string | undefined;
4064
4064
  fontSize?: number | undefined;
@@ -4321,6 +4321,7 @@ export declare namespace Schemes {
4321
4321
  } | undefined;
4322
4322
  align?: "center" | "end" | "start" | undefined;
4323
4323
  primaryColor?: string | undefined;
4324
+ borderRadius?: "sm" | "md" | "lg" | undefined;
4324
4325
  background?: {
4325
4326
  image?: string | undefined;
4326
4327
  color?: string | undefined;
@@ -4338,7 +4339,6 @@ export declare namespace Schemes {
4338
4339
  shadowSize?: number | undefined;
4339
4340
  shadowColor?: string | undefined;
4340
4341
  } | undefined;
4341
- borderRadius?: "sm" | "md" | "lg" | undefined;
4342
4342
  font?: {
4343
4343
  color?: string | undefined;
4344
4344
  fontSize?: number | undefined;
@@ -4601,6 +4601,7 @@ export declare namespace Schemes {
4601
4601
  } | undefined;
4602
4602
  align?: "center" | "end" | "start" | undefined;
4603
4603
  primaryColor?: string | undefined;
4604
+ borderRadius?: "sm" | "md" | "lg" | undefined;
4604
4605
  background?: {
4605
4606
  image?: string | undefined;
4606
4607
  color?: string | undefined;
@@ -4618,7 +4619,6 @@ export declare namespace Schemes {
4618
4619
  shadowSize?: number | undefined;
4619
4620
  shadowColor?: string | undefined;
4620
4621
  } | undefined;
4621
- borderRadius?: "sm" | "md" | "lg" | undefined;
4622
4622
  font?: {
4623
4623
  color?: string | undefined;
4624
4624
  fontSize?: number | undefined;
@@ -5464,6 +5464,7 @@ export declare namespace Schemes {
5464
5464
  } | undefined;
5465
5465
  align?: "center" | "end" | "start" | undefined;
5466
5466
  primaryColor?: string | undefined;
5467
+ borderRadius?: "sm" | "md" | "lg" | undefined;
5467
5468
  background?: {
5468
5469
  image?: string | undefined;
5469
5470
  color?: string | undefined;
@@ -5481,7 +5482,6 @@ export declare namespace Schemes {
5481
5482
  shadowSize?: number | undefined;
5482
5483
  shadowColor?: string | undefined;
5483
5484
  } | undefined;
5484
- borderRadius?: "sm" | "md" | "lg" | undefined;
5485
5485
  font?: {
5486
5486
  color?: string | undefined;
5487
5487
  fontSize?: number | undefined;
@@ -5510,6 +5510,7 @@ export declare namespace Schemes {
5510
5510
  } | undefined;
5511
5511
  align?: "center" | "end" | "start" | undefined;
5512
5512
  primaryColor?: string | undefined;
5513
+ borderRadius?: "sm" | "md" | "lg" | undefined;
5513
5514
  background?: {
5514
5515
  image?: string | undefined;
5515
5516
  color?: string | undefined;
@@ -5527,7 +5528,6 @@ export declare namespace Schemes {
5527
5528
  shadowSize?: number | undefined;
5528
5529
  shadowColor?: string | undefined;
5529
5530
  } | undefined;
5530
- borderRadius?: "sm" | "md" | "lg" | undefined;
5531
5531
  font?: {
5532
5532
  color?: string | undefined;
5533
5533
  fontSize?: number | undefined;
@@ -5790,6 +5790,7 @@ export declare namespace Schemes {
5790
5790
  } | undefined;
5791
5791
  align?: "center" | "end" | "start" | undefined;
5792
5792
  primaryColor?: string | undefined;
5793
+ borderRadius?: "sm" | "md" | "lg" | undefined;
5793
5794
  background?: {
5794
5795
  image?: string | undefined;
5795
5796
  color?: string | undefined;
@@ -5807,7 +5808,6 @@ export declare namespace Schemes {
5807
5808
  shadowSize?: number | undefined;
5808
5809
  shadowColor?: string | undefined;
5809
5810
  } | undefined;
5810
- borderRadius?: "sm" | "md" | "lg" | undefined;
5811
5811
  font?: {
5812
5812
  color?: string | undefined;
5813
5813
  fontSize?: number | undefined;
@@ -6070,6 +6070,7 @@ export declare namespace Schemes {
6070
6070
  } | undefined;
6071
6071
  align?: "center" | "end" | "start" | undefined;
6072
6072
  primaryColor?: string | undefined;
6073
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6073
6074
  background?: {
6074
6075
  image?: string | undefined;
6075
6076
  color?: string | undefined;
@@ -6087,7 +6088,6 @@ export declare namespace Schemes {
6087
6088
  shadowSize?: number | undefined;
6088
6089
  shadowColor?: string | undefined;
6089
6090
  } | undefined;
6090
- borderRadius?: "sm" | "md" | "lg" | undefined;
6091
6091
  font?: {
6092
6092
  color?: string | undefined;
6093
6093
  fontSize?: number | undefined;
@@ -6240,6 +6240,7 @@ export declare namespace Schemes {
6240
6240
  } | undefined;
6241
6241
  align?: "center" | "end" | "start" | undefined;
6242
6242
  primaryColor?: string | undefined;
6243
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6243
6244
  background?: {
6244
6245
  image?: string | undefined;
6245
6246
  color?: string | undefined;
@@ -6257,7 +6258,6 @@ export declare namespace Schemes {
6257
6258
  shadowSize?: number | undefined;
6258
6259
  shadowColor?: string | undefined;
6259
6260
  } | undefined;
6260
- borderRadius?: "sm" | "md" | "lg" | undefined;
6261
6261
  font?: {
6262
6262
  color?: string | undefined;
6263
6263
  fontSize?: number | undefined;
@@ -6286,6 +6286,7 @@ export declare namespace Schemes {
6286
6286
  } | undefined;
6287
6287
  align?: "center" | "end" | "start" | undefined;
6288
6288
  primaryColor?: string | undefined;
6289
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6289
6290
  background?: {
6290
6291
  image?: string | undefined;
6291
6292
  color?: string | undefined;
@@ -6303,7 +6304,6 @@ export declare namespace Schemes {
6303
6304
  shadowSize?: number | undefined;
6304
6305
  shadowColor?: string | undefined;
6305
6306
  } | undefined;
6306
- borderRadius?: "sm" | "md" | "lg" | undefined;
6307
6307
  font?: {
6308
6308
  color?: string | undefined;
6309
6309
  fontSize?: number | undefined;
@@ -6368,6 +6368,7 @@ export declare namespace Schemes {
6368
6368
  } | undefined;
6369
6369
  align?: "center" | "end" | "start" | undefined;
6370
6370
  primaryColor?: string | undefined;
6371
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6371
6372
  background?: {
6372
6373
  image?: string | undefined;
6373
6374
  color?: string | undefined;
@@ -6385,7 +6386,6 @@ export declare namespace Schemes {
6385
6386
  shadowSize?: number | undefined;
6386
6387
  shadowColor?: string | undefined;
6387
6388
  } | undefined;
6388
- borderRadius?: "sm" | "md" | "lg" | undefined;
6389
6389
  font?: {
6390
6390
  color?: string | undefined;
6391
6391
  fontSize?: number | undefined;
@@ -6650,6 +6650,7 @@ export declare namespace Schemes {
6650
6650
  } | undefined;
6651
6651
  align?: "center" | "end" | "start" | undefined;
6652
6652
  primaryColor?: string | undefined;
6653
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6653
6654
  background?: {
6654
6655
  image?: string | undefined;
6655
6656
  color?: string | undefined;
@@ -6667,7 +6668,6 @@ export declare namespace Schemes {
6667
6668
  shadowSize?: number | undefined;
6668
6669
  shadowColor?: string | undefined;
6669
6670
  } | undefined;
6670
- borderRadius?: "sm" | "md" | "lg" | undefined;
6671
6671
  font?: {
6672
6672
  color?: string | undefined;
6673
6673
  fontSize?: number | undefined;
@@ -6931,6 +6931,7 @@ export declare namespace Schemes {
6931
6931
  } | undefined;
6932
6932
  align?: "center" | "end" | "start" | undefined;
6933
6933
  primaryColor?: string | undefined;
6934
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6934
6935
  background?: {
6935
6936
  image?: string | undefined;
6936
6937
  color?: string | undefined;
@@ -6948,7 +6949,6 @@ export declare namespace Schemes {
6948
6949
  shadowSize?: number | undefined;
6949
6950
  shadowColor?: string | undefined;
6950
6951
  } | undefined;
6951
- borderRadius?: "sm" | "md" | "lg" | undefined;
6952
6952
  font?: {
6953
6953
  color?: string | undefined;
6954
6954
  fontSize?: number | undefined;
@@ -6990,6 +6990,7 @@ export declare namespace Schemes {
6990
6990
  } | undefined;
6991
6991
  align?: "center" | "end" | "start" | undefined;
6992
6992
  primaryColor?: string | undefined;
6993
+ borderRadius?: "sm" | "md" | "lg" | undefined;
6993
6994
  background?: {
6994
6995
  image?: string | undefined;
6995
6996
  color?: string | undefined;
@@ -7007,7 +7008,6 @@ export declare namespace Schemes {
7007
7008
  shadowSize?: number | undefined;
7008
7009
  shadowColor?: string | undefined;
7009
7010
  } | undefined;
7010
- borderRadius?: "sm" | "md" | "lg" | undefined;
7011
7011
  font?: {
7012
7012
  color?: string | undefined;
7013
7013
  fontSize?: number | undefined;
@@ -7272,6 +7272,7 @@ export declare namespace Schemes {
7272
7272
  } | undefined;
7273
7273
  align?: "center" | "end" | "start" | undefined;
7274
7274
  primaryColor?: string | undefined;
7275
+ borderRadius?: "sm" | "md" | "lg" | undefined;
7275
7276
  background?: {
7276
7277
  image?: string | undefined;
7277
7278
  color?: string | undefined;
@@ -7289,7 +7290,6 @@ export declare namespace Schemes {
7289
7290
  shadowSize?: number | undefined;
7290
7291
  shadowColor?: string | undefined;
7291
7292
  } | undefined;
7292
- borderRadius?: "sm" | "md" | "lg" | undefined;
7293
7293
  font?: {
7294
7294
  color?: string | undefined;
7295
7295
  fontSize?: number | undefined;
@@ -7553,6 +7553,7 @@ export declare namespace Schemes {
7553
7553
  } | undefined;
7554
7554
  align?: "center" | "end" | "start" | undefined;
7555
7555
  primaryColor?: string | undefined;
7556
+ borderRadius?: "sm" | "md" | "lg" | undefined;
7556
7557
  background?: {
7557
7558
  image?: string | undefined;
7558
7559
  color?: string | undefined;
@@ -7570,7 +7571,6 @@ export declare namespace Schemes {
7570
7571
  shadowSize?: number | undefined;
7571
7572
  shadowColor?: string | undefined;
7572
7573
  } | undefined;
7573
- borderRadius?: "sm" | "md" | "lg" | undefined;
7574
7574
  font?: {
7575
7575
  color?: string | undefined;
7576
7576
  fontSize?: number | undefined;
@@ -8,10 +8,15 @@ export type ProjectIconProps = {
8
8
  fallbackColorById?: string;
9
9
  initials?: boolean;
10
10
  } & Omit<AvatarProps, 'color' | 'name'>;
11
+ export declare enum IconType {
12
+ OUTLINED = "o",
13
+ FILLED = "f"
14
+ }
11
15
  type IconData = {
12
16
  icon: string;
13
17
  color: string;
14
18
  emoji: string;
19
+ type: IconType;
15
20
  };
16
21
  export declare namespace IconEntity {
17
22
  const parse: (value?: string | null) => IconData | null;
@@ -0,0 +1,3 @@
1
+ export declare const Bold: import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,42 @@
1
+ import { Node } from '@tiptap/core';
2
+ interface ICheckListOptions {
3
+ /**
4
+ * The node name for the list items
5
+ * @default 'listItem'
6
+ * @example 'paragraph'
7
+ */
8
+ itemTypeName: string;
9
+ /**
10
+ * HTML attributes to add to the check list element
11
+ * @default {}
12
+ * @example { class: 'foo' }
13
+ */
14
+ HTMLAttributes: Record<string, any>;
15
+ /**
16
+ * Keep the marks when splitting the list
17
+ * @default false
18
+ * @example true
19
+ */
20
+ keepMarks: boolean;
21
+ /**
22
+ * Keep the attributes when splitting the list
23
+ * @default false
24
+ * @example true
25
+ */
26
+ keepAttributes: boolean;
27
+ }
28
+ declare module '@tiptap/core' {
29
+ interface Commands<ReturnType> {
30
+ checkList: {
31
+ /**
32
+ * Toggle an check list
33
+ * @example editor.commands.toggleCheckList()
34
+ */
35
+ toggleCheckList: () => ReturnType;
36
+ };
37
+ }
38
+ }
39
+ export declare const CheckList: Node<ICheckListOptions, any> & {
40
+ Control: () => import("react/jsx-runtime").JSX.Element;
41
+ };
42
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export type ColorOptions = {
3
+ types: string[];
4
+ };
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ backColor: {
8
+ /**
9
+ * Set the text color
10
+ */
11
+ setBackColor: (color: string) => ReturnType;
12
+ /**
13
+ * Unset the text color
14
+ */
15
+ unsetBackColor: () => ReturnType;
16
+ };
17
+ }
18
+ }
19
+ export declare const BackColor: Extension<ColorOptions, any>;
20
+ export declare const ColorPicker: Extension<ColorOptions, any> & {
21
+ Control: ({ staticBg, onChange, }: {
22
+ staticBg?: boolean;
23
+ onChange?: (v: {
24
+ value: string;
25
+ mode: string;
26
+ }) => void;
27
+ }) => import("react/jsx-runtime").JSX.Element;
28
+ };
@@ -0,0 +1,23 @@
1
+ import { Extension } from '@tiptap/core';
2
+ interface IFontSizeOptions {
3
+ types: string[];
4
+ getStyle: (fontSize: string) => string;
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ fontSize: {
9
+ /**
10
+ * Set the font size attribute
11
+ */
12
+ setFontSize: (size: string) => ReturnType;
13
+ /**
14
+ * Unset the font size attribute
15
+ */
16
+ unsetFontSize: () => ReturnType;
17
+ };
18
+ }
19
+ }
20
+ export declare const FontSize: Extension<IFontSizeOptions, any> & {
21
+ Control: () => import("react/jsx-runtime").JSX.Element;
22
+ };
23
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const Italic: import('@tiptap/core').Mark<import('@tiptap/extension-italic').ItalicOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Underline: import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,41 @@
1
+ import { RichTextEditorContentProps } from '@mantine/tiptap';
2
+ interface IProps {
3
+ value?: string;
4
+ placeholder?: string;
5
+ style?: React.CSSProperties;
6
+ disabled?: boolean;
7
+ onChange?: (v: string) => void;
8
+ }
9
+ export declare const RichText: import('react').ForwardRefExoticComponent<IProps & {
10
+ children?: import('react').ReactNode | undefined;
11
+ } & import('react').RefAttributes<HTMLDivElement>> & {
12
+ Content: (props: RichTextEditorContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ Bold: () => import("react/jsx-runtime").JSX.Element;
14
+ Italic: () => import("react/jsx-runtime").JSX.Element;
15
+ Underline: () => import("react/jsx-runtime").JSX.Element;
16
+ OrderedList: import('react').ForwardRefExoticComponent<import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
17
+ BulletList: import('react').ForwardRefExoticComponent<import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
18
+ Link: import('@mantine/core').MantineComponent<{
19
+ props: import('@mantine/tiptap').RichTextEditorLinkControlProps;
20
+ ref: HTMLButtonElement;
21
+ stylesNames: import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorLinkControl').RichTextEditorLinkControlStylesNames;
22
+ compound: true;
23
+ }>;
24
+ CheckList: () => import("react/jsx-runtime").JSX.Element;
25
+ FontSize: () => import("react/jsx-runtime").JSX.Element;
26
+ ColorPicker: ({ staticBg, onChange, }: {
27
+ staticBg?: boolean;
28
+ onChange?: (v: {
29
+ value: string;
30
+ mode: string;
31
+ }) => void;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
+ };
34
+ export interface IRichTextRef extends HTMLDivElement {
35
+ isFocused: boolean;
36
+ text: string | undefined;
37
+ setContent: (v: string) => void;
38
+ focus: (v?: FocusOptions) => void;
39
+ setTextAlign: (v: 'left' | 'right' | 'center') => void;
40
+ }
41
+ export {};
@@ -1,2 +1,7 @@
1
1
  import { modals } from '@mantine/modals';
2
- export declare const openRemoveConfirmModal: (props: Parameters<typeof modals.openConfirmModal>[0]) => void;
2
+ export declare const openRemoveConfirmModal: (props: Parameters<typeof modals.openConfirmModal>[0] & {
3
+ labels?: {
4
+ confirm?: string;
5
+ cancel?: string;
6
+ };
7
+ }) => void;