qt-ui-kit 1.0.35 → 1.0.38
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -66,7 +66,7 @@ type TicketComment = {
|
|
|
66
66
|
type Props$6 = {
|
|
67
67
|
eventID: string;
|
|
68
68
|
onSelected?: (eventID: string) => void;
|
|
69
|
-
|
|
69
|
+
selected?: boolean;
|
|
70
70
|
onChecked?: (eventID: string) => void;
|
|
71
71
|
service?: IntegrationService;
|
|
72
72
|
subjectLine?: string;
|
|
@@ -80,7 +80,7 @@ type Props$6 = {
|
|
|
80
80
|
alert?: boolean;
|
|
81
81
|
read?: boolean;
|
|
82
82
|
};
|
|
83
|
-
declare function PreviewCard({ eventID, onSelected,
|
|
83
|
+
declare function PreviewCard({ eventID, onSelected, selected, onChecked, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, read, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
type NavButtonKey = "queue" | "account" | "logout";
|
|
86
86
|
type NavButtonConfig = {
|
|
@@ -114,9 +114,9 @@ type Props$3 = {
|
|
|
114
114
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$3): react_jsx_runtime.JSX.Element;
|
|
115
115
|
|
|
116
116
|
type Props$2 = {
|
|
117
|
-
messages?:
|
|
117
|
+
messages?: ChatData[];
|
|
118
118
|
};
|
|
119
|
-
type
|
|
119
|
+
type ChatData = {
|
|
120
120
|
name?: string;
|
|
121
121
|
timeStamp?: string;
|
|
122
122
|
body?: string;
|
|
@@ -240,6 +240,6 @@ type Event = {
|
|
|
240
240
|
};
|
|
241
241
|
}[keyof EventDataMap];
|
|
242
242
|
|
|
243
|
-
declare const fakeMessages:
|
|
243
|
+
declare const fakeMessages: ChatData[];
|
|
244
244
|
|
|
245
245
|
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, FilterBar, type FilterValues, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ type TicketComment = {
|
|
|
66
66
|
type Props$6 = {
|
|
67
67
|
eventID: string;
|
|
68
68
|
onSelected?: (eventID: string) => void;
|
|
69
|
-
|
|
69
|
+
selected?: boolean;
|
|
70
70
|
onChecked?: (eventID: string) => void;
|
|
71
71
|
service?: IntegrationService;
|
|
72
72
|
subjectLine?: string;
|
|
@@ -80,7 +80,7 @@ type Props$6 = {
|
|
|
80
80
|
alert?: boolean;
|
|
81
81
|
read?: boolean;
|
|
82
82
|
};
|
|
83
|
-
declare function PreviewCard({ eventID, onSelected,
|
|
83
|
+
declare function PreviewCard({ eventID, onSelected, selected, onChecked, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, read, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
type NavButtonKey = "queue" | "account" | "logout";
|
|
86
86
|
type NavButtonConfig = {
|
|
@@ -114,9 +114,9 @@ type Props$3 = {
|
|
|
114
114
|
declare function EmailBody({ subjectLine, to, date, from, CC, BCC, attachments, body, }: Props$3): react_jsx_runtime.JSX.Element;
|
|
115
115
|
|
|
116
116
|
type Props$2 = {
|
|
117
|
-
messages?:
|
|
117
|
+
messages?: ChatData[];
|
|
118
118
|
};
|
|
119
|
-
type
|
|
119
|
+
type ChatData = {
|
|
120
120
|
name?: string;
|
|
121
121
|
timeStamp?: string;
|
|
122
122
|
body?: string;
|
|
@@ -240,6 +240,6 @@ type Event = {
|
|
|
240
240
|
};
|
|
241
241
|
}[keyof EventDataMap];
|
|
242
242
|
|
|
243
|
-
declare const fakeMessages:
|
|
243
|
+
declare const fakeMessages: ChatData[];
|
|
244
244
|
|
|
245
245
|
export { type Attachment, BaseIconName, type CalendarData, ChatBody, ColorVariants, EmailBody, type EmailData, type Event, EventCard, type EventData, type EventGroup, EventState, type EventSummaryParts, EventType, type ExternalPerson, FilterBar, type FilterValues, type IconSize, IntegrationService, type MessageData, NavBar, PreviewCard, SearchBar, TicketBody, type TicketComment, type TicketData, UrgencyLevel, fakeMessages };
|
package/dist/index.js
CHANGED
|
@@ -15155,7 +15155,7 @@ var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
|
15155
15155
|
function PreviewCard({
|
|
15156
15156
|
eventID,
|
|
15157
15157
|
onSelected,
|
|
15158
|
-
|
|
15158
|
+
selected,
|
|
15159
15159
|
onChecked,
|
|
15160
15160
|
service,
|
|
15161
15161
|
subjectLine,
|
|
@@ -15169,7 +15169,6 @@ function PreviewCard({
|
|
|
15169
15169
|
alert,
|
|
15170
15170
|
read
|
|
15171
15171
|
}) {
|
|
15172
|
-
const [selected, setSelected] = (0, import_react.useState)(false);
|
|
15173
15172
|
const [checked, setChecked] = (0, import_react.useState)(false);
|
|
15174
15173
|
function getColorVariant(urgency) {
|
|
15175
15174
|
switch (urgency) {
|
|
@@ -15183,15 +15182,6 @@ function PreviewCard({
|
|
|
15183
15182
|
return void 0;
|
|
15184
15183
|
}
|
|
15185
15184
|
}
|
|
15186
|
-
function toggleSelected() {
|
|
15187
|
-
if (unSelectable) {
|
|
15188
|
-
return;
|
|
15189
|
-
}
|
|
15190
|
-
setSelected(!selected);
|
|
15191
|
-
if (onSelected) {
|
|
15192
|
-
onSelected(eventID);
|
|
15193
|
-
}
|
|
15194
|
-
}
|
|
15195
15185
|
function toggleChecked() {
|
|
15196
15186
|
setChecked(!checked);
|
|
15197
15187
|
if (onChecked) {
|
|
@@ -15208,7 +15198,7 @@ function PreviewCard({
|
|
|
15208
15198
|
),
|
|
15209
15199
|
onClick: (e) => {
|
|
15210
15200
|
e.stopPropagation();
|
|
15211
|
-
|
|
15201
|
+
onSelected && onSelected(eventID);
|
|
15212
15202
|
},
|
|
15213
15203
|
children: [
|
|
15214
15204
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-4 place-items-center", children: [
|