qt-ui-kit 1.0.23 → 1.0.26
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.mts +93 -7
- package/dist/index.d.ts +93 -7
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,14 +39,15 @@ declare enum ColorVariants {
|
|
|
39
39
|
declare enum EventType {
|
|
40
40
|
EMAIL = "email",
|
|
41
41
|
MESSAGE = "message",
|
|
42
|
-
TICKET = "ticket"
|
|
42
|
+
TICKET = "ticket",
|
|
43
|
+
CALENDAR = "calendar"
|
|
43
44
|
}
|
|
44
45
|
declare enum UrgencyLevel {
|
|
45
46
|
HIGH = "high",
|
|
46
47
|
MEDIUM = "medium",
|
|
47
48
|
LOW = "low"
|
|
48
49
|
}
|
|
49
|
-
type
|
|
50
|
+
type EventGroup = {
|
|
50
51
|
urgency?: UrgencyLevel;
|
|
51
52
|
urgencyText?: string;
|
|
52
53
|
summary?: string;
|
|
@@ -82,7 +83,7 @@ declare function NavBar({}: Props$4): react_jsx_runtime.JSX.Element;
|
|
|
82
83
|
|
|
83
84
|
type Props$3 = {
|
|
84
85
|
eventType?: EventType;
|
|
85
|
-
eventData?:
|
|
86
|
+
eventData?: EventGroup[];
|
|
86
87
|
groupUrgency?: UrgencyLevel;
|
|
87
88
|
groupUrgencyText?: string;
|
|
88
89
|
groupSummary?: string;
|
|
@@ -102,9 +103,9 @@ type Props$2 = {
|
|
|
102
103
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
105
|
type Props$1 = {
|
|
105
|
-
messages?: MessageData[];
|
|
106
|
+
messages?: MessageData$1[];
|
|
106
107
|
};
|
|
107
|
-
type MessageData = {
|
|
108
|
+
type MessageData$1 = {
|
|
108
109
|
name?: string;
|
|
109
110
|
timeStamp?: string;
|
|
110
111
|
body?: string;
|
|
@@ -137,6 +138,91 @@ declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
|
137
138
|
|
|
138
139
|
type IconSize = 16 | 20 | 24 | 36;
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare enum EventState {
|
|
142
|
+
NEW = "new",
|
|
143
|
+
READ = "read"
|
|
144
|
+
}
|
|
145
|
+
interface ExternalPerson {
|
|
146
|
+
firstName: string;
|
|
147
|
+
middleName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
externalID: string;
|
|
150
|
+
}
|
|
151
|
+
interface Attachment {
|
|
152
|
+
fileName: string;
|
|
153
|
+
link: string;
|
|
154
|
+
}
|
|
155
|
+
interface EmailData {
|
|
156
|
+
subjectLine: string;
|
|
157
|
+
from: ExternalPerson;
|
|
158
|
+
to: ExternalPerson[];
|
|
159
|
+
cc: ExternalPerson[];
|
|
160
|
+
bcc: ExternalPerson[];
|
|
161
|
+
attachments: Attachment[];
|
|
162
|
+
body: string;
|
|
163
|
+
}
|
|
164
|
+
interface MessageData {
|
|
165
|
+
messageGroup: string;
|
|
166
|
+
from: ExternalPerson;
|
|
167
|
+
to: ExternalPerson[];
|
|
168
|
+
reactions: string[];
|
|
169
|
+
attachments: Attachment[];
|
|
170
|
+
body: string;
|
|
171
|
+
}
|
|
172
|
+
interface TicketData {
|
|
173
|
+
title: string;
|
|
174
|
+
projectName: string;
|
|
175
|
+
taskName: string;
|
|
176
|
+
attachments: Attachment[];
|
|
177
|
+
dueDate: string;
|
|
178
|
+
startDate: string;
|
|
179
|
+
assignees: ExternalPerson[];
|
|
180
|
+
reporter: ExternalPerson;
|
|
181
|
+
teamName: string;
|
|
182
|
+
location: string;
|
|
183
|
+
relatedDetails: string[];
|
|
184
|
+
body: string;
|
|
185
|
+
}
|
|
186
|
+
interface CalendarData {
|
|
187
|
+
from: ExternalPerson;
|
|
188
|
+
to: ExternalPerson[];
|
|
189
|
+
meetingLink: string;
|
|
190
|
+
location: string;
|
|
191
|
+
body: string;
|
|
192
|
+
}
|
|
193
|
+
type EventData = EmailData | MessageData | TicketData | CalendarData;
|
|
194
|
+
interface EventSummaryParts {
|
|
195
|
+
deadline: string;
|
|
196
|
+
"potential impact": string;
|
|
197
|
+
"potential next steps": string;
|
|
198
|
+
risk: string;
|
|
199
|
+
}
|
|
200
|
+
type BaseEventFields = {
|
|
201
|
+
eventID: string;
|
|
202
|
+
sourceSystemAssignedID: string;
|
|
203
|
+
groupingID: string;
|
|
204
|
+
service: IntegrationService;
|
|
205
|
+
state: EventState;
|
|
206
|
+
timestamp: string;
|
|
207
|
+
sourceUserID: string;
|
|
208
|
+
eventCategory: string;
|
|
209
|
+
eventSummaryParts: EventSummaryParts;
|
|
210
|
+
tags: string[];
|
|
211
|
+
link: string;
|
|
212
|
+
};
|
|
213
|
+
type EventDataMap = {
|
|
214
|
+
[EventType.EMAIL]: EmailData;
|
|
215
|
+
[EventType.MESSAGE]: MessageData;
|
|
216
|
+
[EventType.TICKET]: TicketData;
|
|
217
|
+
[EventType.CALENDAR]: CalendarData;
|
|
218
|
+
};
|
|
219
|
+
type Event = {
|
|
220
|
+
[K in keyof EventDataMap]: BaseEventFields & {
|
|
221
|
+
eventType: K;
|
|
222
|
+
eventData: EventDataMap[K];
|
|
223
|
+
};
|
|
224
|
+
}[keyof EventDataMap];
|
|
225
|
+
|
|
226
|
+
declare const fakeMessages: MessageData$1[];
|
|
141
227
|
|
|
142
|
-
export { BaseIconName, ChatBody, ColorVariants, EmailBody, EventCard, type EventData, EventType, NavBar as FilterBar, type IconSize, IntegrationService, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, UrgencyLevel, fakeMessages };
|
|
228
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, NavBar as FilterBar, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,14 +39,15 @@ declare enum ColorVariants {
|
|
|
39
39
|
declare enum EventType {
|
|
40
40
|
EMAIL = "email",
|
|
41
41
|
MESSAGE = "message",
|
|
42
|
-
TICKET = "ticket"
|
|
42
|
+
TICKET = "ticket",
|
|
43
|
+
CALENDAR = "calendar"
|
|
43
44
|
}
|
|
44
45
|
declare enum UrgencyLevel {
|
|
45
46
|
HIGH = "high",
|
|
46
47
|
MEDIUM = "medium",
|
|
47
48
|
LOW = "low"
|
|
48
49
|
}
|
|
49
|
-
type
|
|
50
|
+
type EventGroup = {
|
|
50
51
|
urgency?: UrgencyLevel;
|
|
51
52
|
urgencyText?: string;
|
|
52
53
|
summary?: string;
|
|
@@ -82,7 +83,7 @@ declare function NavBar({}: Props$4): react_jsx_runtime.JSX.Element;
|
|
|
82
83
|
|
|
83
84
|
type Props$3 = {
|
|
84
85
|
eventType?: EventType;
|
|
85
|
-
eventData?:
|
|
86
|
+
eventData?: EventGroup[];
|
|
86
87
|
groupUrgency?: UrgencyLevel;
|
|
87
88
|
groupUrgencyText?: string;
|
|
88
89
|
groupSummary?: string;
|
|
@@ -102,9 +103,9 @@ type Props$2 = {
|
|
|
102
103
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
105
|
type Props$1 = {
|
|
105
|
-
messages?: MessageData[];
|
|
106
|
+
messages?: MessageData$1[];
|
|
106
107
|
};
|
|
107
|
-
type MessageData = {
|
|
108
|
+
type MessageData$1 = {
|
|
108
109
|
name?: string;
|
|
109
110
|
timeStamp?: string;
|
|
110
111
|
body?: string;
|
|
@@ -137,6 +138,91 @@ declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
|
137
138
|
|
|
138
139
|
type IconSize = 16 | 20 | 24 | 36;
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare enum EventState {
|
|
142
|
+
NEW = "new",
|
|
143
|
+
READ = "read"
|
|
144
|
+
}
|
|
145
|
+
interface ExternalPerson {
|
|
146
|
+
firstName: string;
|
|
147
|
+
middleName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
externalID: string;
|
|
150
|
+
}
|
|
151
|
+
interface Attachment {
|
|
152
|
+
fileName: string;
|
|
153
|
+
link: string;
|
|
154
|
+
}
|
|
155
|
+
interface EmailData {
|
|
156
|
+
subjectLine: string;
|
|
157
|
+
from: ExternalPerson;
|
|
158
|
+
to: ExternalPerson[];
|
|
159
|
+
cc: ExternalPerson[];
|
|
160
|
+
bcc: ExternalPerson[];
|
|
161
|
+
attachments: Attachment[];
|
|
162
|
+
body: string;
|
|
163
|
+
}
|
|
164
|
+
interface MessageData {
|
|
165
|
+
messageGroup: string;
|
|
166
|
+
from: ExternalPerson;
|
|
167
|
+
to: ExternalPerson[];
|
|
168
|
+
reactions: string[];
|
|
169
|
+
attachments: Attachment[];
|
|
170
|
+
body: string;
|
|
171
|
+
}
|
|
172
|
+
interface TicketData {
|
|
173
|
+
title: string;
|
|
174
|
+
projectName: string;
|
|
175
|
+
taskName: string;
|
|
176
|
+
attachments: Attachment[];
|
|
177
|
+
dueDate: string;
|
|
178
|
+
startDate: string;
|
|
179
|
+
assignees: ExternalPerson[];
|
|
180
|
+
reporter: ExternalPerson;
|
|
181
|
+
teamName: string;
|
|
182
|
+
location: string;
|
|
183
|
+
relatedDetails: string[];
|
|
184
|
+
body: string;
|
|
185
|
+
}
|
|
186
|
+
interface CalendarData {
|
|
187
|
+
from: ExternalPerson;
|
|
188
|
+
to: ExternalPerson[];
|
|
189
|
+
meetingLink: string;
|
|
190
|
+
location: string;
|
|
191
|
+
body: string;
|
|
192
|
+
}
|
|
193
|
+
type EventData = EmailData | MessageData | TicketData | CalendarData;
|
|
194
|
+
interface EventSummaryParts {
|
|
195
|
+
deadline: string;
|
|
196
|
+
"potential impact": string;
|
|
197
|
+
"potential next steps": string;
|
|
198
|
+
risk: string;
|
|
199
|
+
}
|
|
200
|
+
type BaseEventFields = {
|
|
201
|
+
eventID: string;
|
|
202
|
+
sourceSystemAssignedID: string;
|
|
203
|
+
groupingID: string;
|
|
204
|
+
service: IntegrationService;
|
|
205
|
+
state: EventState;
|
|
206
|
+
timestamp: string;
|
|
207
|
+
sourceUserID: string;
|
|
208
|
+
eventCategory: string;
|
|
209
|
+
eventSummaryParts: EventSummaryParts;
|
|
210
|
+
tags: string[];
|
|
211
|
+
link: string;
|
|
212
|
+
};
|
|
213
|
+
type EventDataMap = {
|
|
214
|
+
[EventType.EMAIL]: EmailData;
|
|
215
|
+
[EventType.MESSAGE]: MessageData;
|
|
216
|
+
[EventType.TICKET]: TicketData;
|
|
217
|
+
[EventType.CALENDAR]: CalendarData;
|
|
218
|
+
};
|
|
219
|
+
type Event = {
|
|
220
|
+
[K in keyof EventDataMap]: BaseEventFields & {
|
|
221
|
+
eventType: K;
|
|
222
|
+
eventData: EventDataMap[K];
|
|
223
|
+
};
|
|
224
|
+
}[keyof EventDataMap];
|
|
225
|
+
|
|
226
|
+
declare const fakeMessages: MessageData$1[];
|
|
141
227
|
|
|
142
|
-
export { BaseIconName, ChatBody, ColorVariants, EmailBody, EventCard, type EventData, EventType, NavBar as FilterBar, type IconSize, IntegrationService, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, UrgencyLevel, fakeMessages };
|
|
228
|
+
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, NavBar as FilterBar, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.js
CHANGED
|
@@ -11182,6 +11182,7 @@ __export(index_exports, {
|
|
|
11182
11182
|
ColorVariants: () => ColorVariants,
|
|
11183
11183
|
EmailBody: () => EmailBody,
|
|
11184
11184
|
EventCard: () => EventCard,
|
|
11185
|
+
EventState: () => EventState,
|
|
11185
11186
|
EventType: () => EventType,
|
|
11186
11187
|
FilterBar: () => NavBar,
|
|
11187
11188
|
IntegrationService: () => IntegrationService,
|
|
@@ -11240,6 +11241,7 @@ var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
|
11240
11241
|
EventType2["EMAIL"] = "email";
|
|
11241
11242
|
EventType2["MESSAGE"] = "message";
|
|
11242
11243
|
EventType2["TICKET"] = "ticket";
|
|
11244
|
+
EventType2["CALENDAR"] = "calendar";
|
|
11243
11245
|
return EventType2;
|
|
11244
11246
|
})(EventType || {});
|
|
11245
11247
|
var UrgencyLevel = /* @__PURE__ */ ((UrgencyLevel4) => {
|
|
@@ -14898,9 +14900,9 @@ function formatCustomRelative(date) {
|
|
|
14898
14900
|
return `Tomorrow @ ${format(date, "h:mm a")}`;
|
|
14899
14901
|
}
|
|
14900
14902
|
if (isSameWeek(date, now, { weekStartsOn: 1 })) {
|
|
14901
|
-
return `${format(date, "
|
|
14903
|
+
return `${format(date, "EEE")} @ ${format(date, "h:mm a")}`;
|
|
14902
14904
|
}
|
|
14903
|
-
return `${format(date, "
|
|
14905
|
+
return `${format(date, "EEE, do MMMM")} @ ${format(date, "h:mm a")}`;
|
|
14904
14906
|
}
|
|
14905
14907
|
|
|
14906
14908
|
// src/components/molecules/text_content/sender_source_row/sender_source_row.tsx
|
|
@@ -16398,6 +16400,13 @@ function SearchBar() {
|
|
|
16398
16400
|
] });
|
|
16399
16401
|
}
|
|
16400
16402
|
|
|
16403
|
+
// src/types/events.ts
|
|
16404
|
+
var EventState = /* @__PURE__ */ ((EventState2) => {
|
|
16405
|
+
EventState2["NEW"] = "new";
|
|
16406
|
+
EventState2["READ"] = "read";
|
|
16407
|
+
return EventState2;
|
|
16408
|
+
})(EventState || {});
|
|
16409
|
+
|
|
16401
16410
|
// src/util/mockdata.ts
|
|
16402
16411
|
var fakeMessages = [
|
|
16403
16412
|
{
|
|
@@ -16496,6 +16505,7 @@ This is a *markdown* **example**.
|
|
|
16496
16505
|
ColorVariants,
|
|
16497
16506
|
EmailBody,
|
|
16498
16507
|
EventCard,
|
|
16508
|
+
EventState,
|
|
16499
16509
|
EventType,
|
|
16500
16510
|
FilterBar,
|
|
16501
16511
|
IntegrationService,
|