synos-helena 21.11.1-beta.1 → 21.11.1

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/lib/index.d.ts CHANGED
@@ -6,6 +6,7 @@
6
6
  // ../antd/lib/card
7
7
  // ../react
8
8
  // ../antd/lib/checkbox
9
+ // ../react-syntax-highlighter
9
10
  // ../antd/lib/collapse
10
11
  // util/constants
11
12
  // HLInput
@@ -23,6 +24,7 @@
23
24
  // HLModulesMenu
24
25
  // HLNotification
25
26
  // HLUserBox
27
+ // ../react-markdown/lib/react-markdown
26
28
  // ../react-router-dom
27
29
  // ../antd/lib/page-header
28
30
  // HLContext
@@ -39,6 +41,7 @@ import { Card } from 'antd';
39
41
  import { CardTabListType } from 'antd/lib/card';
40
42
  import { CSSProperties } from 'react';
41
43
  import { CheckboxChangeEvent } from 'antd/lib/checkbox';
44
+ import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
42
45
  import { CollapseProps } from 'antd/lib/collapse';
43
46
  import { CollapsePanelProps } from 'antd/lib/collapse';
44
47
  import { DATE_TIME, DATE } from 'src/util/constants';
@@ -62,6 +65,7 @@ import { HLModulesMenuPropTypes } from 'src/HLModulesMenu';
62
65
  import { HLNotificationPropTypes } from 'src/HLNotification';
63
66
  import { HLUserBoxPropTypes } from 'src/HLUserBox';
64
67
  import { Input } from 'antd';
68
+ import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
65
69
  import { Link } from 'react-router-dom';
66
70
  import { BreadcrumbProps } from 'antd';
67
71
  import { PageHeaderProps } from 'antd/lib/page-header';
@@ -78,6 +82,21 @@ export type HLAlertPropTypes = AlertProps;
78
82
 
79
83
  export const HLAlert: React.FC<HLAlertPropTypes>;
80
84
 
85
+ export type HLArticleSection = {
86
+ key: string;
87
+ title: string;
88
+ content: ReactNode;
89
+ subsections?: HLArticleSection[];
90
+ };
91
+
92
+ export type HLArticlePropTypes = {
93
+ href: string;
94
+ title?: string;
95
+ sections: HLArticleSection[];
96
+ };
97
+
98
+ export const HLArticle: React.FC<HLArticlePropTypes>;
99
+
81
100
 
82
101
  export type HLButtonPropTypes = ButtonProps & {
83
102
  premium?: boolean;
@@ -126,6 +145,13 @@ export interface HLCheckboxPropTypes {
126
145
  export const HLCheckbox: React.FC<HLCheckboxPropTypes>;
127
146
 
128
147
 
148
+ export type HLCodePropTypes = SyntaxHighlighterProps & {
149
+ copyToClipboard?: boolean;
150
+ };
151
+
152
+ export const HLCode: React.FC<HLCodePropTypes>;
153
+
154
+
129
155
  export type HLCollapsePropTypes = CollapseProps;
130
156
 
131
157
  export const HLCollapse: React.FC<HLCollapsePropTypes> & { Panel: typeof Panel };
@@ -140,6 +166,7 @@ export interface HLCollapseInfoPanelPropTypes {
140
166
  object: any;
141
167
  title: string;
142
168
  columns?: number;
169
+ isOpen?: boolean;
143
170
  }
144
171
 
145
172
 
@@ -441,6 +468,11 @@ export interface HLMainPropTypes {
441
468
 
442
469
  export const HLMain: React.FC<HLMainPropTypes>;
443
470
 
471
+
472
+ export type HLMarkdownPropTypes = ReactMarkdownOptions;
473
+
474
+ export const HLMarkdown: React.FC<HLMarkdownPropTypes>;
475
+
444
476
  interface Module {
445
477
  title: string;
446
478
  description?: string;
@@ -455,25 +487,11 @@ export interface HLModulesMenuPropTypes {
455
487
  export const HLModulesMenu: React.FC<HLModulesMenuPropTypes>;
456
488
 
457
489
 
458
- interface DateObject {
459
- chronology: any;
460
- dayOfMonth: number;
461
- dayOfWeek: string;
462
- dayOfYear: number;
463
- hour: number;
464
- minute: number;
465
- month: string;
466
- monthValue: number;
467
- nano: number;
468
- second: number;
469
- year: number;
470
- }
471
-
472
490
  interface Notification {
473
491
  title: string;
474
492
  description: string;
475
493
  type: string;
476
- date: DateObject | string;
494
+ date: number;
477
495
  isVisualized: boolean;
478
496
  link?: string;
479
497
  onClick?: Function;
@@ -498,7 +516,6 @@ export interface HLNotificationPropTypes {
498
516
  | 'rightBottom';
499
517
  Link?: Link;
500
518
  notifications?: Notification[];
501
- markAsReadCallback: (notification: Record<string, string>) => void;
502
519
  fetchNewNotifications: () => void;
503
520
  showFormat: string;
504
521
  refreshInterval: number;
@@ -507,25 +524,11 @@ export interface HLNotificationPropTypes {
507
524
  export const HLNotification: React.FC<HLNotificationPropTypes>;
508
525
 
509
526
 
510
- interface DateObject {
511
- chronology: any;
512
- dayOfMonth: number;
513
- dayOfWeek: string;
514
- dayOfYear: number;
515
- hour: number;
516
- minute: number;
517
- month: string;
518
- monthValue: number;
519
- nano: number;
520
- second: number;
521
- year: number;
522
- }
523
-
524
527
  interface Notification {
525
528
  title: string;
526
529
  description: string;
527
530
  type: string;
528
- date: DateObject | string;
531
+ date: number;
529
532
  isVisualized: boolean;
530
533
  link?: string;
531
534
  onClick?: Function;
@@ -533,7 +536,7 @@ interface Notification {
533
536
 
534
537
  export interface NotificationListPropTypes {
535
538
  Link?: Link;
536
- onClickNotification: (notification: Record<string, string>) => void;
539
+ onClickNotification?: Function;
537
540
  notifications?: Notification[];
538
541
  useDayjs?: boolean;
539
542
  }
@@ -751,8 +754,10 @@ export {
751
754
  HLAdvancedPowerSelect,
752
755
  AdvancedPowerSelectStoreInterface,
753
756
  HLFromTo,
754
- HLMarkDown,
757
+ HLMarkdown,
755
758
  HLEditTable,
759
+ HLArticle,
760
+ HLCode,
756
761
  };
757
762
 
758
763
  declare module '*.module.css';