@cagatayfdn/flora-components 0.0.148 → 0.0.150
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/ErrorLogModal-DhlD9tNj.js +3694 -0
- package/dist/ErrorLogModal.css +1 -1
- package/dist/Input.css +1 -1
- package/dist/{prodivers.css → ReactToastify.css} +1 -1
- package/dist/ScrollContainer.css +1 -1
- package/dist/Textarea.css +1 -1
- package/dist/components/ErrorLogModal/ErrorLogModal.js +19 -51
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/Icon/index.js +8 -8
- package/dist/components/Input/Input.js +95 -88
- package/dist/components/RealtimeLogModal/RealtimeLogModal.js +36 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +9 -9
- package/dist/components/StatusTag/StatusTag.js +10 -10
- package/dist/components/Textarea/Textarea.js +15 -15
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/index.js +110 -107
- package/dist/{helper-lFjvXQpv.js → helper-1SQ9SI45.js} +5 -5
- package/dist/index.d.mts +83 -4
- package/dist/index.d.ts +83 -4
- package/dist/index.js +154 -149
- package/dist/main.css +1 -1
- package/dist/main.js +12 -10
- package/dist/prodivers.js +3 -2
- package/dist/utils/fetcher.js +44 -0
- package/dist/utils/helper.js +1 -1
- package/dist/utils/index.js +27 -24
- package/dist/utils/table.js +9 -42
- package/package.json +2 -1
package/dist/components/index.js
CHANGED
|
@@ -1,137 +1,140 @@
|
|
|
1
1
|
import { default as r } from "./Button/Button.js";
|
|
2
2
|
import { N as t } from "../index-H7XbDVmH.js";
|
|
3
3
|
import { PermFallBack as l, getAuth as d } from "./AuthUserCan/index.js";
|
|
4
|
-
import { Accordion as m, AccordionItem as
|
|
4
|
+
import { Accordion as m, AccordionItem as s } from "./Accordion/Accordion.js";
|
|
5
5
|
import { default as u } from "./ActionButton/ActionButton.js";
|
|
6
6
|
import { default as n } from "./AlertCard/AlertCard.js";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
7
|
+
import { default as g } from "./AuthUserCan/Permission.js";
|
|
8
|
+
import { default as T } from "./Autocomplete/Autocomplete.js";
|
|
9
|
+
import { default as S } from "./Avatar/Avatar.js";
|
|
10
10
|
import { default as P } from "./Card/Card.js";
|
|
11
11
|
import { default as h } from "./Charts/index.js";
|
|
12
12
|
import { default as A } from "./Checkbox/Checkbox.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
13
|
+
import { default as R } from "./Config/Config.js";
|
|
14
|
+
import { default as D } from "./Confirm/Confirm.js";
|
|
15
|
+
import { default as B } from "./ContentHeader/ContentHeader.js";
|
|
16
16
|
import { default as U } from "./ContentLoader/ContentLoader.js";
|
|
17
17
|
import { default as y } from "./Countdown/Countdown.js";
|
|
18
|
-
import { default as
|
|
18
|
+
import { default as H } from "./Datepicker/Datepicker.js";
|
|
19
19
|
import { default as W } from "./Divider/Divider.js";
|
|
20
20
|
import { default as q } from "./Drawer/index.js";
|
|
21
21
|
import { default as G } from "./Dropdown/DropdownList.js";
|
|
22
|
-
import {
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { default as Ho } from "./
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as Ko } from "./
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as xe } from "./
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as Ce } from "./Table/
|
|
61
|
-
import { default as Ie } from "./Table/
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
22
|
+
import { E as K, R as O } from "../ErrorLogModal-DhlD9tNj.js";
|
|
23
|
+
import { default as X } from "./FileUpload/FileUpload.js";
|
|
24
|
+
import { default as Z } from "./FileUpload/ImagePreview.js";
|
|
25
|
+
import { default as $ } from "./FileUpload/LengthCard.js";
|
|
26
|
+
import { default as eo } from "./FileUpload/PreviewModal.js";
|
|
27
|
+
import { default as ao } from "./Grid/Column.js";
|
|
28
|
+
import { default as fo } from "./Grid/Row.js";
|
|
29
|
+
import { default as po } from "./Heading/Heading.js";
|
|
30
|
+
import { default as so } from "./Icon/index.js";
|
|
31
|
+
import { default as uo } from "./IconBox/IconBox.js";
|
|
32
|
+
import { default as no } from "./InfiniteScroll/InfiniteScroll.js";
|
|
33
|
+
import { default as go } from "./InfoBoxList/InfoBoxList.js";
|
|
34
|
+
import { createConnectedService as To } from "./InfoBoxList/helper.js";
|
|
35
|
+
import { default as So } from "./InfoDate/InfoDate.js";
|
|
36
|
+
import { InfoText as Po } from "./InfoText/InfoText.js";
|
|
37
|
+
import { default as ho } from "./Input/Input.js";
|
|
38
|
+
import { default as Ao } from "./Label/Label.js";
|
|
39
|
+
import { default as Ro } from "./Loading/Loading.js";
|
|
40
|
+
import { default as Do } from "./Modal/Modal.js";
|
|
41
|
+
import { default as Bo } from "./NavigatorCard/index.js";
|
|
42
|
+
import { default as Uo } from "./NoResult/NoResult.js";
|
|
43
|
+
import { Notification as yo } from "./Notification/Notification.js";
|
|
44
|
+
import { default as Ho } from "./PageWrapper/PageWrap.js";
|
|
45
|
+
import { default as Wo } from "./Pager/Pager.js";
|
|
46
|
+
import { default as qo } from "./Panel/Panel.js";
|
|
47
|
+
import { default as Go } from "./PermaLink/PermaLink.js";
|
|
48
|
+
import { default as Ko, RadioList as Oo } from "./Radio/Radio.js";
|
|
49
|
+
import { default as Xo } from "./ResultError/ResultError.js";
|
|
50
|
+
import { default as Zo } from "./ScrollContainer/ScrollContainer.js";
|
|
51
|
+
import { default as $o } from "./Select/NoData.js";
|
|
52
|
+
import { S as ee } from "../Select-nhp2PiJK.js";
|
|
53
|
+
import { default as ae } from "./Sidebar/index.js";
|
|
54
|
+
import { M as fe } from "../MenuItem-Df6Zsa7E.js";
|
|
55
|
+
import { default as de } from "./StatusTag/StatusTag.js";
|
|
56
|
+
import { default as me } from "./StatusTypography/StatusTypography.js";
|
|
57
|
+
import { default as xe } from "./Stepper/Stepper.js";
|
|
58
|
+
import { default as ie } from "./Switch/Switch.js";
|
|
59
|
+
import { default as ce } from "./Tab/Tab.js";
|
|
60
|
+
import { default as Ce } from "./Table/Table.js";
|
|
61
|
+
import { default as Ie } from "./Table/TableHeader.js";
|
|
62
|
+
import { default as Le } from "./Table/TableSort.js";
|
|
63
|
+
import { default as be } from "./Textarea/Textarea.js";
|
|
64
|
+
import { default as we } from "./Tooltip/Tooltip.js";
|
|
65
|
+
import { default as Me } from "./TypographyText/TypographyText.js";
|
|
66
|
+
import { default as ve } from "./UserInfo/UserInfo.js";
|
|
67
|
+
import { default as Ne } from "./ValidationError/ValidationError.js";
|
|
67
68
|
export {
|
|
68
69
|
m as Accordion,
|
|
69
|
-
|
|
70
|
+
s as AccordionItem,
|
|
70
71
|
u as ActionButton,
|
|
71
72
|
n as AlertCard,
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
T as Autocomplete,
|
|
74
|
+
S as Avatar,
|
|
74
75
|
r as Button,
|
|
75
76
|
P as Card,
|
|
76
77
|
h as Chart,
|
|
77
78
|
A as Checkbox,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
ao as Column,
|
|
80
|
+
R as Config,
|
|
81
|
+
D as Confirm,
|
|
82
|
+
B as ContentHeader,
|
|
82
83
|
U as ContentLoader,
|
|
83
84
|
y as Countdown,
|
|
84
|
-
|
|
85
|
+
H as Datepicker,
|
|
85
86
|
W as Divider,
|
|
86
87
|
q as Drawer,
|
|
87
88
|
G as DropdownList,
|
|
88
|
-
K as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
go as
|
|
98
|
-
So as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
89
|
+
K as ErrorLogModal,
|
|
90
|
+
X as FileUpload,
|
|
91
|
+
Z as FileUploadImagePreview,
|
|
92
|
+
$ as FileUploadLengthCard,
|
|
93
|
+
eo as FileUploadPreviewModal,
|
|
94
|
+
po as Heading,
|
|
95
|
+
so as Icon,
|
|
96
|
+
uo as IconBox,
|
|
97
|
+
no as InfiniteScroll,
|
|
98
|
+
go as InfoBoxList,
|
|
99
|
+
So as InfoDate,
|
|
100
|
+
Po as InfoText,
|
|
101
|
+
ho as Input,
|
|
102
|
+
Ao as Label,
|
|
103
|
+
Ro as Loading,
|
|
104
|
+
fe as MenuItem,
|
|
105
|
+
Do as Modal,
|
|
106
|
+
Bo as NavigatorCard,
|
|
105
107
|
t as NiceModal,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
$o as NoData,
|
|
109
|
+
Uo as NoResult,
|
|
110
|
+
yo as Notification,
|
|
111
|
+
Ho as PageWrapper,
|
|
112
|
+
Wo as Pager,
|
|
113
|
+
qo as Panel,
|
|
112
114
|
l as PermFallBack,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
xe as
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Ce as
|
|
129
|
-
Ie as
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
115
|
+
Go as PermaLink,
|
|
116
|
+
g as Permission,
|
|
117
|
+
Ko as Radio,
|
|
118
|
+
Oo as RadioList,
|
|
119
|
+
O as RealTimeLogModal,
|
|
120
|
+
Xo as ResultError,
|
|
121
|
+
fo as Row,
|
|
122
|
+
Zo as ScrollContainer,
|
|
123
|
+
ee as Select,
|
|
124
|
+
ae as Sidebar,
|
|
125
|
+
de as StatusTag,
|
|
126
|
+
me as StatusTypography,
|
|
127
|
+
xe as Stepper,
|
|
128
|
+
ie as Switch,
|
|
129
|
+
ce as Tab,
|
|
130
|
+
Ce as Table,
|
|
131
|
+
Ie as TableHeader,
|
|
132
|
+
Le as TableSort,
|
|
133
|
+
be as Textarea,
|
|
134
|
+
we as Tooltip,
|
|
135
|
+
Me as TypographyText,
|
|
136
|
+
ve as UserInfo,
|
|
137
|
+
Ne as ValidationError,
|
|
138
|
+
To as createConnectedService,
|
|
136
139
|
d as getAuth
|
|
137
140
|
};
|
|
@@ -1451,12 +1451,12 @@ export {
|
|
|
1451
1451
|
Nt as a,
|
|
1452
1452
|
St as b,
|
|
1453
1453
|
xt as c,
|
|
1454
|
-
|
|
1455
|
-
|
|
1454
|
+
qt as d,
|
|
1455
|
+
kt as e,
|
|
1456
1456
|
it as f,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1457
|
+
Et as g,
|
|
1458
|
+
Ft as h,
|
|
1459
|
+
It as i,
|
|
1460
1460
|
ft as p,
|
|
1461
1461
|
Lt as r,
|
|
1462
1462
|
Wt as s,
|
package/dist/index.d.mts
CHANGED
|
@@ -6,9 +6,10 @@ import { CustomLocale } from 'flatpickr/dist/types/locale';
|
|
|
6
6
|
import { DateLimit } from 'flatpickr/dist/types/options';
|
|
7
7
|
import { DateOption } from 'flatpickr/dist/types/options';
|
|
8
8
|
import dayjs from 'dayjs';
|
|
9
|
-
import { Dispatch
|
|
9
|
+
import { Dispatch } from 'react';
|
|
10
10
|
import { FC } from 'react';
|
|
11
11
|
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import { FieldValues } from 'react-hook-form';
|
|
12
13
|
import { format } from 'date-fns';
|
|
13
14
|
import i18n from 'i18next';
|
|
14
15
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -27,6 +28,8 @@ import { TFunction } from 'i18next';
|
|
|
27
28
|
import { TFunctionResult } from 'i18next';
|
|
28
29
|
import { Tick } from 'chart.js';
|
|
29
30
|
import { TooltipItem } from 'chart.js';
|
|
31
|
+
import { UseFormWatch } from 'react-hook-form';
|
|
32
|
+
import { WatchObserver } from 'react-hook-form';
|
|
30
33
|
|
|
31
34
|
export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
|
|
32
35
|
|
|
@@ -142,6 +145,13 @@ export declare enum AppearanceTag {
|
|
|
142
145
|
WARNING = "warning"
|
|
143
146
|
}
|
|
144
147
|
|
|
148
|
+
export declare interface ApplicationLogs {
|
|
149
|
+
id: string;
|
|
150
|
+
application_type: string;
|
|
151
|
+
log_timestamp: string;
|
|
152
|
+
message: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
145
155
|
export declare enum ApplicationTypeSlug {
|
|
146
156
|
COMMERCE = "commerce",
|
|
147
157
|
ZERO = "zero",
|
|
@@ -164,7 +174,7 @@ export declare enum AppTypeEnum {
|
|
|
164
174
|
|
|
165
175
|
declare type AuthContextType = [state: State & {
|
|
166
176
|
token?: string;
|
|
167
|
-
}, dispatch:
|
|
177
|
+
}, dispatch: Dispatch_2];
|
|
168
178
|
|
|
169
179
|
export declare const AuthProvider: (props: {
|
|
170
180
|
children: React_2.ReactNode;
|
|
@@ -430,7 +440,7 @@ export declare interface DateRange {
|
|
|
430
440
|
|
|
431
441
|
export { dayjs }
|
|
432
442
|
|
|
433
|
-
declare type
|
|
443
|
+
declare type Dispatch_2 = React_2.Dispatch<Actiontype>;
|
|
434
444
|
|
|
435
445
|
export declare const Divider: ({ appearance, className, margin, }: DividerProps) => JSX.Element;
|
|
436
446
|
|
|
@@ -488,6 +498,14 @@ export declare type DropdownListProps = {
|
|
|
488
498
|
isDisabled?: boolean;
|
|
489
499
|
};
|
|
490
500
|
|
|
501
|
+
export declare const ErrorLogModal: FC<ErrorLogModalProps & NiceModalHocProps>;
|
|
502
|
+
|
|
503
|
+
declare type ErrorLogModalProps = {
|
|
504
|
+
onClose?: () => void;
|
|
505
|
+
errors: GetDeployErrorLogsEntitiy[];
|
|
506
|
+
id: string;
|
|
507
|
+
};
|
|
508
|
+
|
|
491
509
|
export declare interface EventProps<T = HTMLElement> {
|
|
492
510
|
onClick?: (e: React.MouseEvent<T>) => void;
|
|
493
511
|
onFocus?: (e: React.FocusEvent<T>) => void;
|
|
@@ -509,6 +527,22 @@ declare type ExpandableType = {
|
|
|
509
527
|
onExpand?: (expanded: boolean, record: any) => void;
|
|
510
528
|
};
|
|
511
529
|
|
|
530
|
+
export declare type FetcherReturnType = {
|
|
531
|
+
fetch: (...params: any) => void;
|
|
532
|
+
stopInterval: () => void;
|
|
533
|
+
startInterval: (...params: any) => void;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export declare type FetcherType = (...params: any) => void;
|
|
537
|
+
|
|
538
|
+
export declare interface FetchLogsParams {
|
|
539
|
+
applications: string[];
|
|
540
|
+
scroll_mode?: 'older' | 'newer';
|
|
541
|
+
projectPk: string;
|
|
542
|
+
appPk: string;
|
|
543
|
+
withoutPermission?: boolean;
|
|
544
|
+
}
|
|
545
|
+
|
|
512
546
|
export declare const FileUpload: React_2.ForwardRefExoticComponent<{
|
|
513
547
|
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
514
548
|
id?: string | undefined;
|
|
@@ -635,6 +669,14 @@ export declare interface FormElementProps {
|
|
|
635
669
|
value?: string | number;
|
|
636
670
|
}
|
|
637
671
|
|
|
672
|
+
export declare type FormFetcherReturnType<T extends FieldValues> = {
|
|
673
|
+
fetch: (...params: any) => void;
|
|
674
|
+
stop: () => void;
|
|
675
|
+
startInterval: (page: number, limit: number, values: T) => void;
|
|
676
|
+
stopInterval: () => void;
|
|
677
|
+
startSubscription: (watch: UseFormWatch<T>, callback: WatchObserver<T>) => void;
|
|
678
|
+
};
|
|
679
|
+
|
|
638
680
|
export declare enum FormFieldAppearance {
|
|
639
681
|
LIGHT = "light",
|
|
640
682
|
DARK = "dark",
|
|
@@ -666,6 +708,13 @@ export declare function getCurrentLanguage(): string;
|
|
|
666
708
|
|
|
667
709
|
export declare function getDatepickerLocale(): "en" | CustomLocale;
|
|
668
710
|
|
|
711
|
+
export declare interface GetDeployErrorLogsEntitiy {
|
|
712
|
+
id: number;
|
|
713
|
+
created_date: string;
|
|
714
|
+
update_date: string;
|
|
715
|
+
log_data: string;
|
|
716
|
+
}
|
|
717
|
+
|
|
669
718
|
export declare const Heading: React_2.FC<HeadingProps>;
|
|
670
719
|
|
|
671
720
|
export declare type HeadingProps = {
|
|
@@ -745,6 +794,7 @@ export declare const Input: React_2.ForwardRefExoticComponent<{
|
|
|
745
794
|
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
746
795
|
prefix?: ReactNode;
|
|
747
796
|
suffix?: ReactNode;
|
|
797
|
+
prefixClickable?: boolean | undefined;
|
|
748
798
|
suffixClickable?: boolean | undefined;
|
|
749
799
|
id?: string | undefined;
|
|
750
800
|
size?: Size | undefined;
|
|
@@ -766,6 +816,7 @@ export declare type InputProps = {
|
|
|
766
816
|
type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
|
|
767
817
|
prefix?: ReactNode;
|
|
768
818
|
suffix?: ReactNode;
|
|
819
|
+
prefixClickable?: boolean;
|
|
769
820
|
suffixClickable?: boolean;
|
|
770
821
|
id?: string;
|
|
771
822
|
size?: Size;
|
|
@@ -1074,6 +1125,30 @@ export declare type RadioProps = {
|
|
|
1074
1125
|
setContext?: (v: OptionItem) => void;
|
|
1075
1126
|
} & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus'>;
|
|
1076
1127
|
|
|
1128
|
+
export declare const RealTimeLogModal: FC<RealTimeLogModalProps & NiceModalHocProps>;
|
|
1129
|
+
|
|
1130
|
+
export declare type RealTimeLogModalProps = {
|
|
1131
|
+
id: string;
|
|
1132
|
+
projectPk: string;
|
|
1133
|
+
logs: ApplicationLogs[];
|
|
1134
|
+
responseCount?: number;
|
|
1135
|
+
totalLogCount?: number;
|
|
1136
|
+
lastLogIndex?: number;
|
|
1137
|
+
withoutPermission?: boolean;
|
|
1138
|
+
appPk: string;
|
|
1139
|
+
interval: number;
|
|
1140
|
+
loading?: boolean;
|
|
1141
|
+
logTypes: {
|
|
1142
|
+
label: string;
|
|
1143
|
+
value: string;
|
|
1144
|
+
}[];
|
|
1145
|
+
setVisible?: Dispatch<SetStateAction<boolean>>;
|
|
1146
|
+
download: (value: any, isRealTime: boolean) => void;
|
|
1147
|
+
onClose?: () => void;
|
|
1148
|
+
onFetchLogs: (params: FetchLogsParams) => Promise<any>;
|
|
1149
|
+
onClearLogs: () => void;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1077
1152
|
export declare enum ReportStatus {
|
|
1078
1153
|
PENDING = "pending",
|
|
1079
1154
|
FAILED = "failed",
|
|
@@ -1185,6 +1260,10 @@ export declare enum SortEnum {
|
|
|
1185
1260
|
DESC = "desc"
|
|
1186
1261
|
}
|
|
1187
1262
|
|
|
1263
|
+
export declare function startFetcher(fetcher: FetcherType, ms: number): FetcherReturnType;
|
|
1264
|
+
|
|
1265
|
+
export declare function startFormFetcher<T extends FieldValues>(fetcher: FetcherType, ms: number): FormFetcherReturnType<T>;
|
|
1266
|
+
|
|
1188
1267
|
declare interface State {
|
|
1189
1268
|
user: UserEntity_2 | null;
|
|
1190
1269
|
status: Status;
|
|
@@ -1450,7 +1529,7 @@ export declare const useAuth: () => AuthContextType;
|
|
|
1450
1529
|
|
|
1451
1530
|
export declare function useDisclosure(isOpenInit?: boolean): {
|
|
1452
1531
|
isOpen: boolean;
|
|
1453
|
-
setIsOpen:
|
|
1532
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
1454
1533
|
onOpen: () => void;
|
|
1455
1534
|
onClose: () => void;
|
|
1456
1535
|
onToggle: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ import { CustomLocale } from 'flatpickr/dist/types/locale';
|
|
|
6
6
|
import { DateLimit } from 'flatpickr/dist/types/options';
|
|
7
7
|
import { DateOption } from 'flatpickr/dist/types/options';
|
|
8
8
|
import dayjs from 'dayjs';
|
|
9
|
-
import { Dispatch
|
|
9
|
+
import { Dispatch } from 'react';
|
|
10
10
|
import { FC } from 'react';
|
|
11
11
|
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import { FieldValues } from 'react-hook-form';
|
|
12
13
|
import { format } from 'date-fns';
|
|
13
14
|
import i18n from 'i18next';
|
|
14
15
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -27,6 +28,8 @@ import { TFunction } from 'i18next';
|
|
|
27
28
|
import { TFunctionResult } from 'i18next';
|
|
28
29
|
import { Tick } from 'chart.js';
|
|
29
30
|
import { TooltipItem } from 'chart.js';
|
|
31
|
+
import { UseFormWatch } from 'react-hook-form';
|
|
32
|
+
import { WatchObserver } from 'react-hook-form';
|
|
30
33
|
|
|
31
34
|
export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
|
|
32
35
|
|
|
@@ -142,6 +145,13 @@ export declare enum AppearanceTag {
|
|
|
142
145
|
WARNING = "warning"
|
|
143
146
|
}
|
|
144
147
|
|
|
148
|
+
export declare interface ApplicationLogs {
|
|
149
|
+
id: string;
|
|
150
|
+
application_type: string;
|
|
151
|
+
log_timestamp: string;
|
|
152
|
+
message: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
145
155
|
export declare enum ApplicationTypeSlug {
|
|
146
156
|
COMMERCE = "commerce",
|
|
147
157
|
ZERO = "zero",
|
|
@@ -164,7 +174,7 @@ export declare enum AppTypeEnum {
|
|
|
164
174
|
|
|
165
175
|
declare type AuthContextType = [state: State & {
|
|
166
176
|
token?: string;
|
|
167
|
-
}, dispatch:
|
|
177
|
+
}, dispatch: Dispatch_2];
|
|
168
178
|
|
|
169
179
|
export declare const AuthProvider: (props: {
|
|
170
180
|
children: React_2.ReactNode;
|
|
@@ -430,7 +440,7 @@ export declare interface DateRange {
|
|
|
430
440
|
|
|
431
441
|
export { dayjs }
|
|
432
442
|
|
|
433
|
-
declare type
|
|
443
|
+
declare type Dispatch_2 = React_2.Dispatch<Actiontype>;
|
|
434
444
|
|
|
435
445
|
export declare const Divider: ({ appearance, className, margin, }: DividerProps) => JSX.Element;
|
|
436
446
|
|
|
@@ -488,6 +498,14 @@ export declare type DropdownListProps = {
|
|
|
488
498
|
isDisabled?: boolean;
|
|
489
499
|
};
|
|
490
500
|
|
|
501
|
+
export declare const ErrorLogModal: FC<ErrorLogModalProps & NiceModalHocProps>;
|
|
502
|
+
|
|
503
|
+
declare type ErrorLogModalProps = {
|
|
504
|
+
onClose?: () => void;
|
|
505
|
+
errors: GetDeployErrorLogsEntitiy[];
|
|
506
|
+
id: string;
|
|
507
|
+
};
|
|
508
|
+
|
|
491
509
|
export declare interface EventProps<T = HTMLElement> {
|
|
492
510
|
onClick?: (e: React.MouseEvent<T>) => void;
|
|
493
511
|
onFocus?: (e: React.FocusEvent<T>) => void;
|
|
@@ -509,6 +527,22 @@ declare type ExpandableType = {
|
|
|
509
527
|
onExpand?: (expanded: boolean, record: any) => void;
|
|
510
528
|
};
|
|
511
529
|
|
|
530
|
+
export declare type FetcherReturnType = {
|
|
531
|
+
fetch: (...params: any) => void;
|
|
532
|
+
stopInterval: () => void;
|
|
533
|
+
startInterval: (...params: any) => void;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export declare type FetcherType = (...params: any) => void;
|
|
537
|
+
|
|
538
|
+
export declare interface FetchLogsParams {
|
|
539
|
+
applications: string[];
|
|
540
|
+
scroll_mode?: 'older' | 'newer';
|
|
541
|
+
projectPk: string;
|
|
542
|
+
appPk: string;
|
|
543
|
+
withoutPermission?: boolean;
|
|
544
|
+
}
|
|
545
|
+
|
|
512
546
|
export declare const FileUpload: React_2.ForwardRefExoticComponent<{
|
|
513
547
|
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
514
548
|
id?: string | undefined;
|
|
@@ -635,6 +669,14 @@ export declare interface FormElementProps {
|
|
|
635
669
|
value?: string | number;
|
|
636
670
|
}
|
|
637
671
|
|
|
672
|
+
export declare type FormFetcherReturnType<T extends FieldValues> = {
|
|
673
|
+
fetch: (...params: any) => void;
|
|
674
|
+
stop: () => void;
|
|
675
|
+
startInterval: (page: number, limit: number, values: T) => void;
|
|
676
|
+
stopInterval: () => void;
|
|
677
|
+
startSubscription: (watch: UseFormWatch<T>, callback: WatchObserver<T>) => void;
|
|
678
|
+
};
|
|
679
|
+
|
|
638
680
|
export declare enum FormFieldAppearance {
|
|
639
681
|
LIGHT = "light",
|
|
640
682
|
DARK = "dark",
|
|
@@ -666,6 +708,13 @@ export declare function getCurrentLanguage(): string;
|
|
|
666
708
|
|
|
667
709
|
export declare function getDatepickerLocale(): "en" | CustomLocale;
|
|
668
710
|
|
|
711
|
+
export declare interface GetDeployErrorLogsEntitiy {
|
|
712
|
+
id: number;
|
|
713
|
+
created_date: string;
|
|
714
|
+
update_date: string;
|
|
715
|
+
log_data: string;
|
|
716
|
+
}
|
|
717
|
+
|
|
669
718
|
export declare const Heading: React_2.FC<HeadingProps>;
|
|
670
719
|
|
|
671
720
|
export declare type HeadingProps = {
|
|
@@ -745,6 +794,7 @@ export declare const Input: React_2.ForwardRefExoticComponent<{
|
|
|
745
794
|
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
746
795
|
prefix?: ReactNode;
|
|
747
796
|
suffix?: ReactNode;
|
|
797
|
+
prefixClickable?: boolean | undefined;
|
|
748
798
|
suffixClickable?: boolean | undefined;
|
|
749
799
|
id?: string | undefined;
|
|
750
800
|
size?: Size | undefined;
|
|
@@ -766,6 +816,7 @@ export declare type InputProps = {
|
|
|
766
816
|
type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
|
|
767
817
|
prefix?: ReactNode;
|
|
768
818
|
suffix?: ReactNode;
|
|
819
|
+
prefixClickable?: boolean;
|
|
769
820
|
suffixClickable?: boolean;
|
|
770
821
|
id?: string;
|
|
771
822
|
size?: Size;
|
|
@@ -1074,6 +1125,30 @@ export declare type RadioProps = {
|
|
|
1074
1125
|
setContext?: (v: OptionItem) => void;
|
|
1075
1126
|
} & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus'>;
|
|
1076
1127
|
|
|
1128
|
+
export declare const RealTimeLogModal: FC<RealTimeLogModalProps & NiceModalHocProps>;
|
|
1129
|
+
|
|
1130
|
+
export declare type RealTimeLogModalProps = {
|
|
1131
|
+
id: string;
|
|
1132
|
+
projectPk: string;
|
|
1133
|
+
logs: ApplicationLogs[];
|
|
1134
|
+
responseCount?: number;
|
|
1135
|
+
totalLogCount?: number;
|
|
1136
|
+
lastLogIndex?: number;
|
|
1137
|
+
withoutPermission?: boolean;
|
|
1138
|
+
appPk: string;
|
|
1139
|
+
interval: number;
|
|
1140
|
+
loading?: boolean;
|
|
1141
|
+
logTypes: {
|
|
1142
|
+
label: string;
|
|
1143
|
+
value: string;
|
|
1144
|
+
}[];
|
|
1145
|
+
setVisible?: Dispatch<SetStateAction<boolean>>;
|
|
1146
|
+
download: (value: any, isRealTime: boolean) => void;
|
|
1147
|
+
onClose?: () => void;
|
|
1148
|
+
onFetchLogs: (params: FetchLogsParams) => Promise<any>;
|
|
1149
|
+
onClearLogs: () => void;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1077
1152
|
export declare enum ReportStatus {
|
|
1078
1153
|
PENDING = "pending",
|
|
1079
1154
|
FAILED = "failed",
|
|
@@ -1185,6 +1260,10 @@ export declare enum SortEnum {
|
|
|
1185
1260
|
DESC = "desc"
|
|
1186
1261
|
}
|
|
1187
1262
|
|
|
1263
|
+
export declare function startFetcher(fetcher: FetcherType, ms: number): FetcherReturnType;
|
|
1264
|
+
|
|
1265
|
+
export declare function startFormFetcher<T extends FieldValues>(fetcher: FetcherType, ms: number): FormFetcherReturnType<T>;
|
|
1266
|
+
|
|
1188
1267
|
declare interface State {
|
|
1189
1268
|
user: UserEntity_2 | null;
|
|
1190
1269
|
status: Status;
|
|
@@ -1450,7 +1529,7 @@ export declare const useAuth: () => AuthContextType;
|
|
|
1450
1529
|
|
|
1451
1530
|
export declare function useDisclosure(isOpenInit?: boolean): {
|
|
1452
1531
|
isOpen: boolean;
|
|
1453
|
-
setIsOpen:
|
|
1532
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
1454
1533
|
onOpen: () => void;
|
|
1455
1534
|
onClose: () => void;
|
|
1456
1535
|
onToggle: () => void;
|