@retinalabsllc/zairusjs 22.0.1 → 23.0.0
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +21 -67
- package/dist/index.mjs +23 -67
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1009,6 +1009,7 @@ interface UniversalHuddle {
|
|
|
1009
1009
|
status: string;
|
|
1010
1010
|
imageUrl?: string | null;
|
|
1011
1011
|
timeString: string;
|
|
1012
|
+
icon?: any;
|
|
1012
1013
|
}
|
|
1013
1014
|
interface UniversalHuddlesPageProps {
|
|
1014
1015
|
headerTitle: string;
|
|
@@ -1196,6 +1197,7 @@ interface HomeHuddleCalendarProps {
|
|
|
1196
1197
|
status: string;
|
|
1197
1198
|
imageUrl?: string | null;
|
|
1198
1199
|
timeString: string;
|
|
1200
|
+
icon?: any;
|
|
1199
1201
|
}>;
|
|
1200
1202
|
isLoading: boolean;
|
|
1201
1203
|
currentPage: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1009,6 +1009,7 @@ interface UniversalHuddle {
|
|
|
1009
1009
|
status: string;
|
|
1010
1010
|
imageUrl?: string | null;
|
|
1011
1011
|
timeString: string;
|
|
1012
|
+
icon?: any;
|
|
1012
1013
|
}
|
|
1013
1014
|
interface UniversalHuddlesPageProps {
|
|
1014
1015
|
headerTitle: string;
|
|
@@ -1196,6 +1197,7 @@ interface HomeHuddleCalendarProps {
|
|
|
1196
1197
|
status: string;
|
|
1197
1198
|
imageUrl?: string | null;
|
|
1198
1199
|
timeString: string;
|
|
1200
|
+
icon?: any;
|
|
1199
1201
|
}>;
|
|
1200
1202
|
isLoading: boolean;
|
|
1201
1203
|
currentPage: number;
|
package/dist/index.js
CHANGED
|
@@ -3230,8 +3230,8 @@ var FeatureCard = ({ feature, bgImage }) => {
|
|
|
3230
3230
|
"div",
|
|
3231
3231
|
{
|
|
3232
3232
|
className: `
|
|
3233
|
-
absolute
|
|
3234
|
-
${isLeft ? "-left-6
|
|
3233
|
+
absolute bottom-0 w-[85%] h-[85%] z-10 transition-transform duration-700 ease-out
|
|
3234
|
+
${isLeft ? "-left-6" : "-right-6"}
|
|
3235
3235
|
`
|
|
3236
3236
|
},
|
|
3237
3237
|
/* @__PURE__ */ import_react50.default.createElement(
|
|
@@ -5016,31 +5016,8 @@ var UniversalBuyCryptoPage = ({
|
|
|
5016
5016
|
var import_react83 = __toESM(require("react"));
|
|
5017
5017
|
var import_react84 = require("@hugeicons/react");
|
|
5018
5018
|
var import_core_free_icons31 = require("@hugeicons/core-free-icons");
|
|
5019
|
-
var HuddleAvatar = ({
|
|
5020
|
-
|
|
5021
|
-
switch (status?.toUpperCase()) {
|
|
5022
|
-
case "SCHEDULED":
|
|
5023
|
-
return "bg-amber-500";
|
|
5024
|
-
case "ONGOING":
|
|
5025
|
-
return "bg-emerald-500";
|
|
5026
|
-
case "COMPLETED":
|
|
5027
|
-
return "bg-stone-400";
|
|
5028
|
-
case "CANCELLED":
|
|
5029
|
-
return "bg-[#d97757]";
|
|
5030
|
-
default:
|
|
5031
|
-
return "bg-stone-200";
|
|
5032
|
-
}
|
|
5033
|
-
};
|
|
5034
|
-
let day = "--";
|
|
5035
|
-
let month = "---";
|
|
5036
|
-
if (timeString) {
|
|
5037
|
-
const parts = timeString.split(" ");
|
|
5038
|
-
if (parts.length >= 2) {
|
|
5039
|
-
day = parts[0];
|
|
5040
|
-
month = parts[1].substring(0, 3).toUpperCase();
|
|
5041
|
-
}
|
|
5042
|
-
}
|
|
5043
|
-
return /* @__PURE__ */ import_react83.default.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "w-full h-full aspect-square rounded-lg bg-neutral-50 flex flex-col items-center justify-center overflow-hidden" }, /* @__PURE__ */ import_react83.default.createElement("span", { className: "text-[9px] tracking-wider leading-tight", style: { color: "#d97757" } }, month), /* @__PURE__ */ import_react83.default.createElement("span", { className: "text-sm text-black leading-tight" }, day)), /* @__PURE__ */ import_react83.default.createElement("div", { className: `absolute -bottom-1 -right-1 w-3 h-3 rounded-full border-2 border-white z-10 ${getStatusColor()}` }));
|
|
5019
|
+
var HuddleAvatar = ({ icon, sizeClass = "w-10 h-10" }) => {
|
|
5020
|
+
return /* @__PURE__ */ import_react83.default.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "w-full h-full aspect-square rounded-full bg-neutral-50 flex items-center justify-center overflow-hidden" }, icon ? /* @__PURE__ */ import_react83.default.createElement(import_react84.HugeiconsIcon, { icon, size: 18, className: "text-stone-500" }) : /* @__PURE__ */ import_react83.default.createElement(import_react84.HugeiconsIcon, { icon: import_core_free_icons31.AiMicIcon, size: 18, className: "text-stone-500" })));
|
|
5044
5021
|
};
|
|
5045
5022
|
var PageSpinner6 = () => /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex justify-center items-center py-12" }, /* @__PURE__ */ import_react83.default.createElement(import_react84.HugeiconsIcon, { icon: import_core_free_icons31.Loading03Icon, size: 32, className: "animate-spin mb-4 text-black" }));
|
|
5046
5023
|
var UniversalHuddlesPage = ({
|
|
@@ -5054,10 +5031,10 @@ var UniversalHuddlesPage = ({
|
|
|
5054
5031
|
onHuddleClick,
|
|
5055
5032
|
onCreateHuddle
|
|
5056
5033
|
}) => {
|
|
5057
|
-
return /* @__PURE__ */ import_react83.default.createElement("div", { className: "w-full max-w-4xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-col gap-8 p-6 rounded-2xl bg-white w-full" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-row items-center justify-between gap-4" }, /* @__PURE__ */ import_react83.default.createElement("h2", { className: "text-black text-xl tracking-tight" }, headerTitle), /* @__PURE__ */ import_react83.default.createElement(
|
|
5034
|
+
return /* @__PURE__ */ import_react83.default.createElement("div", { className: "w-full max-w-4xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-col gap-8 p-6 rounded-2xl bg-white w-full" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-row items-center justify-between gap-4" }, /* @__PURE__ */ import_react83.default.createElement("h2", { className: "text-black text-xl tracking-tight" }, headerTitle), onCreateHuddle && /* @__PURE__ */ import_react83.default.createElement(
|
|
5058
5035
|
"button",
|
|
5059
5036
|
{
|
|
5060
|
-
onClick: () => onCreateHuddle
|
|
5037
|
+
onClick: () => onCreateHuddle(),
|
|
5061
5038
|
className: "shrink-0 px-4 py-1.5 border border-stone-200 text-black text-xs tracking-wide rounded-full hover:bg-stone-50 transition-colors outline-none"
|
|
5062
5039
|
},
|
|
5063
5040
|
"Create new"
|
|
@@ -5068,7 +5045,7 @@ var UniversalHuddlesPage = ({
|
|
|
5068
5045
|
onClick: () => onHuddleClick(huddle.id),
|
|
5069
5046
|
className: "flex flex-row items-center gap-4 py-2 hover:bg-stone-50 transition-colors cursor-pointer group min-w-0 px-3 -mx-3 rounded-xl"
|
|
5070
5047
|
},
|
|
5071
|
-
/* @__PURE__ */ import_react83.default.createElement(HuddleAvatar, {
|
|
5048
|
+
/* @__PURE__ */ import_react83.default.createElement(HuddleAvatar, { icon: huddle.icon }),
|
|
5072
5049
|
/* @__PURE__ */ import_react83.default.createElement("div", { className: "flex flex-col min-w-0 flex-1" }, /* @__PURE__ */ import_react83.default.createElement("p", { className: "text-sm text-black tracking-tight truncate" }, huddle.name), /* @__PURE__ */ import_react83.default.createElement("span", { className: "text-xs text-stone-500 truncate block mt-0.5" }, huddle.timeString)),
|
|
5073
5050
|
/* @__PURE__ */ import_react83.default.createElement(import_react84.HugeiconsIcon, { icon: import_core_free_icons31.ArrowRight01Icon, size: 14, className: "shrink-0 text-stone-400" })
|
|
5074
5051
|
))), /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex items-center justify-between pt-6 mt-2 " }, /* @__PURE__ */ import_react83.default.createElement("span", { className: "text-xs text-stone-400 tracking-[0.2em]" }, "Page ", currentPage, " of ", totalPages === 0 ? 1 : totalPages), /* @__PURE__ */ import_react83.default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ import_react83.default.createElement(
|
|
@@ -5497,7 +5474,7 @@ var UniversalHome2 = ({
|
|
|
5497
5474
|
{
|
|
5498
5475
|
...huddlesProps
|
|
5499
5476
|
}
|
|
5500
|
-
)), showOrgSwitcher && /* @__PURE__ */ import_react87.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ import_react87.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
5477
|
+
)), showOrgSwitcher && /* @__PURE__ */ import_react87.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ import_react87.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0 " }, /* @__PURE__ */ import_react87.default.createElement("h3", { className: "text-sm text-black tracking-tight" }, "Switch Workspace"), /* @__PURE__ */ import_react87.default.createElement("button", { onClick: () => setShowOrgSwitcher(false), className: "text-stone-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react87.default.createElement(import_react88.HugeiconsIcon, { icon: import_core_free_icons33.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react87.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "flex flex-col" }, organizations?.length === 0 ? /* @__PURE__ */ import_react87.default.createElement("div", { className: "p-8 text-center text-xs text-stone-400" }, "No organizations found.") : organizations?.map((org) => /* @__PURE__ */ import_react87.default.createElement(
|
|
5501
5478
|
"button",
|
|
5502
5479
|
{
|
|
5503
5480
|
key: org.id,
|
|
@@ -5510,7 +5487,7 @@ var UniversalHome2 = ({
|
|
|
5510
5487
|
/* @__PURE__ */ import_react87.default.createElement(OrgAvatar, { src: org.avatarUrl }),
|
|
5511
5488
|
/* @__PURE__ */ import_react87.default.createElement("div", { className: "flex flex-col items-start min-w-0 flex-1" }, /* @__PURE__ */ import_react87.default.createElement("span", { className: `text-sm tracking-tight truncate w-full text-left ${activeOrgId === org.id ? "text-black " : "text-stone-600"}` }, org.name), /* @__PURE__ */ import_react87.default.createElement("span", { className: "text-xs text-stone-500 capitalize truncate w-full text-left mt-0.5" }, org.role?.toLowerCase() || "Member")),
|
|
5512
5489
|
activeOrgId === org.id && /* @__PURE__ */ import_react87.default.createElement("div", { className: "w-2 h-2 rounded-full bg-[#d97757] shrink-0" })
|
|
5513
|
-
)))), /* @__PURE__ */ import_react87.default.createElement("div", { className: "p-4
|
|
5490
|
+
)))), /* @__PURE__ */ import_react87.default.createElement("div", { className: "p-4 shrink-0" }, /* @__PURE__ */ import_react87.default.createElement(
|
|
5514
5491
|
"button",
|
|
5515
5492
|
{
|
|
5516
5493
|
onClick: () => {
|
|
@@ -5521,7 +5498,7 @@ var UniversalHome2 = ({
|
|
|
5521
5498
|
},
|
|
5522
5499
|
/* @__PURE__ */ import_react87.default.createElement(import_react88.HugeiconsIcon, { icon: import_core_free_icons33.Logout01Icon, size: 15 }),
|
|
5523
5500
|
"Log Out"
|
|
5524
|
-
)))), showNotifDialog && /* @__PURE__ */ import_react87.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react87.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
5501
|
+
)))), showNotifDialog && /* @__PURE__ */ import_react87.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react87.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ import_react87.default.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ import_react87.default.createElement(import_react88.HugeiconsIcon, { icon: import_core_free_icons33.ArrowLeft01Icon, size: 14 }), " Back") : /* @__PURE__ */ import_react87.default.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ import_react87.default.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ import_react87.default.createElement(import_react88.HugeiconsIcon, { icon: import_core_free_icons33.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react87.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ import_react87.default.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ import_react87.default.createElement(import_react88.HugeiconsIcon, { icon: import_core_free_icons33.Loading03Icon, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ import_react87.default.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "HUDDLE_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ import_react87.default.createElement("div", { className: "" }) : /* @__PURE__ */ import_react87.default.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ import_react87.default.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ import_react87.default.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "HUDDLE_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ import_react87.default.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ import_react87.default.createElement(
|
|
5525
5502
|
"button",
|
|
5526
5503
|
{
|
|
5527
5504
|
onClick: () => handleResolve("ACCEPTED"),
|
|
@@ -6170,31 +6147,8 @@ var import_react94 = require("@hugeicons/react");
|
|
|
6170
6147
|
var import_core_free_icons36 = require("@hugeicons/core-free-icons");
|
|
6171
6148
|
var MONTHS2 = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
6172
6149
|
var DAYS_OF_WEEK2 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
6173
|
-
var HuddleAvatar2 = ({
|
|
6174
|
-
|
|
6175
|
-
switch (status?.toUpperCase()) {
|
|
6176
|
-
case "SCHEDULED":
|
|
6177
|
-
return "bg-amber-500";
|
|
6178
|
-
case "ONGOING":
|
|
6179
|
-
return "bg-emerald-500";
|
|
6180
|
-
case "COMPLETED":
|
|
6181
|
-
return "bg-stone-400";
|
|
6182
|
-
case "CANCELLED":
|
|
6183
|
-
return "bg-[#d97757]";
|
|
6184
|
-
default:
|
|
6185
|
-
return "bg-stone-200";
|
|
6186
|
-
}
|
|
6187
|
-
};
|
|
6188
|
-
let day = "--";
|
|
6189
|
-
let month = "---";
|
|
6190
|
-
if (timeString) {
|
|
6191
|
-
const parts = timeString.split(" ");
|
|
6192
|
-
if (parts.length >= 2) {
|
|
6193
|
-
day = parts[0];
|
|
6194
|
-
month = parts[1].substring(0, 3).toUpperCase();
|
|
6195
|
-
}
|
|
6196
|
-
}
|
|
6197
|
-
return /* @__PURE__ */ import_react93.default.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ import_react93.default.createElement("div", { className: "w-full h-full aspect-square rounded-lg bg-neutral-50 flex flex-col items-center justify-center overflow-hidden" }, /* @__PURE__ */ import_react93.default.createElement("span", { className: "text-[9px] tracking-wider leading-tight", style: { color: "#d97757" } }, month), /* @__PURE__ */ import_react93.default.createElement("span", { className: "text-sm text-black leading-tight" }, day)), /* @__PURE__ */ import_react93.default.createElement("div", { className: `absolute -bottom-1 -right-1 w-3 h-3 rounded-full border-2 border-white z-10 ${getStatusColor()}` }));
|
|
6150
|
+
var HuddleAvatar2 = ({ icon, sizeClass = "w-10 h-10" }) => {
|
|
6151
|
+
return /* @__PURE__ */ import_react93.default.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ import_react93.default.createElement("div", { className: "w-full h-full aspect-square rounded-full bg-neutral-50 flex items-center justify-center overflow-hidden" }, icon ? /* @__PURE__ */ import_react93.default.createElement(import_react94.HugeiconsIcon, { icon, size: 18, className: "text-stone-500" }) : /* @__PURE__ */ import_react93.default.createElement(import_react94.HugeiconsIcon, { icon: import_core_free_icons36.AiMicIcon, size: 18, className: "text-stone-500" })));
|
|
6198
6152
|
};
|
|
6199
6153
|
var HomeHuddleCalendar = ({
|
|
6200
6154
|
huddles = [],
|
|
@@ -6294,14 +6248,14 @@ var HomeHuddleCalendar = ({
|
|
|
6294
6248
|
"button",
|
|
6295
6249
|
{
|
|
6296
6250
|
onClick: () => setSelectedDate(thisDate),
|
|
6297
|
-
className: `relative h-10 w-10 rounded-full flex items-center justify-center text-xs
|
|
6298
|
-
${isSelected ? "bg-[#d97757] text-white" : "text-black hover:bg-stone-100"}`
|
|
6251
|
+
className: `relative h-10 w-10 rounded-full flex items-center justify-center text-xs transition-all outline-none
|
|
6252
|
+
${isSelected ? "bg-[#d97757] text-white" : dayEventsCount > 0 ? "bg-stone-50 text-black hover:bg-stone-100" : "text-black hover:bg-stone-100"}`
|
|
6299
6253
|
},
|
|
6300
6254
|
day,
|
|
6301
6255
|
dayEventsCount > 0 && /* @__PURE__ */ import_react93.default.createElement(
|
|
6302
6256
|
"span",
|
|
6303
6257
|
{
|
|
6304
|
-
className: `absolute -top-1 -right-1 flex h-4.5 w-4.5 items-center justify-center rounded-full text-[9px]
|
|
6258
|
+
className: `absolute -top-1 -right-1 flex h-4.5 w-4.5 items-center justify-center rounded-full text-[9px] ring-2 ring-white
|
|
6305
6259
|
${isSelected ? "bg-white text-[#d97757]" : "bg-stone-100 text-stone-900"}`
|
|
6306
6260
|
},
|
|
6307
6261
|
dayEventsCount
|
|
@@ -6314,7 +6268,7 @@ var HomeHuddleCalendar = ({
|
|
|
6314
6268
|
onClick: () => router.push(`/app/huddles/${huddle.id}`),
|
|
6315
6269
|
className: "flex flex-row items-center gap-4 py-3 hover:bg-stone-50 transition-colors cursor-pointer group min-w-0 px-3 -mx-3 rounded-xl"
|
|
6316
6270
|
},
|
|
6317
|
-
/* @__PURE__ */ import_react93.default.createElement(HuddleAvatar2, {
|
|
6271
|
+
/* @__PURE__ */ import_react93.default.createElement(HuddleAvatar2, { icon: huddle.icon }),
|
|
6318
6272
|
/* @__PURE__ */ import_react93.default.createElement("div", { className: "flex flex-col min-w-0 flex-1" }, /* @__PURE__ */ import_react93.default.createElement("p", { className: "text-sm text-black tracking-tight truncate" }, huddle.name), /* @__PURE__ */ import_react93.default.createElement("span", { className: "text-[11px] text-stone-500 truncate block mt-1 tracking-wide" }, isSearching ? huddle.timeString : huddle.timeString.split("|")[1]?.trim() || huddle.timeString)),
|
|
6319
6273
|
/* @__PURE__ */ import_react93.default.createElement(import_react94.HugeiconsIcon, { icon: import_core_free_icons36.ArrowRight01Icon, size: 14, className: "shrink-0 text-stone-400 group-hover:text-black transition-colors" })
|
|
6320
6274
|
)))), huddles.length > 0 && !isLoading && /* @__PURE__ */ import_react93.default.createElement("div", { className: "flex items-center justify-between pt-6 mt-4 mb-2" }, /* @__PURE__ */ import_react93.default.createElement("span", { className: "text-[10px] text-stone-400 tracking-widest " }, "Page ", currentPage, " of ", totalPages === 0 ? 1 : totalPages), /* @__PURE__ */ import_react93.default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ import_react93.default.createElement(
|
|
@@ -6553,7 +6507,7 @@ var UniversalHome3 = ({
|
|
|
6553
6507
|
{
|
|
6554
6508
|
...applicationsProps
|
|
6555
6509
|
}
|
|
6556
|
-
)), showOrgSwitcher && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
6510
|
+
)), showOrgSwitcher && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0 " }, /* @__PURE__ */ import_react97.default.createElement("h3", { className: "text-sm text-black tracking-tight" }, "Switch Workspace"), /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setShowOrgSwitcher(false), className: "text-stone-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex flex-col" }, organizations?.length === 0 ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "p-8 text-center text-xs text-stone-400" }, "No organizations found.") : organizations?.map((org) => /* @__PURE__ */ import_react97.default.createElement(
|
|
6557
6511
|
"button",
|
|
6558
6512
|
{
|
|
6559
6513
|
key: org.id,
|
|
@@ -6577,7 +6531,7 @@ var UniversalHome3 = ({
|
|
|
6577
6531
|
},
|
|
6578
6532
|
/* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.Logout01Icon, size: 15 }),
|
|
6579
6533
|
"Log Out"
|
|
6580
|
-
)))), showNotifDialog && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
6534
|
+
)))), showNotifDialog && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.ArrowLeft01Icon, size: 14 }), " Back") : /* @__PURE__ */ import_react97.default.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.Loading03Icon, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "" }) : /* @__PURE__ */ import_react97.default.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ import_react97.default.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ import_react97.default.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ import_react97.default.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ import_react97.default.createElement(
|
|
6581
6535
|
"button",
|
|
6582
6536
|
{
|
|
6583
6537
|
onClick: () => handleResolve("ACCEPTED"),
|
|
@@ -7157,14 +7111,14 @@ var UniversalDeveloperSettings = ({
|
|
|
7157
7111
|
setWebhookUrl(val.trim());
|
|
7158
7112
|
};
|
|
7159
7113
|
const downloadEnvironmentFile = (pubKey, secKey) => {
|
|
7160
|
-
const envContent = `
|
|
7161
|
-
|
|
7114
|
+
const envContent = `SDK_PUBLIC_KEY="${pubKey}"
|
|
7115
|
+
SDK_SECRET_KEY="${secKey}"
|
|
7162
7116
|
`;
|
|
7163
7117
|
const blob = new Blob([envContent], { type: "text/plain" });
|
|
7164
7118
|
const url = URL.createObjectURL(blob);
|
|
7165
7119
|
const link = document.createElement("a");
|
|
7166
7120
|
link.href = url;
|
|
7167
|
-
link.download = "
|
|
7121
|
+
link.download = "sdk_credentials.txt";
|
|
7168
7122
|
document.body.appendChild(link);
|
|
7169
7123
|
link.click();
|
|
7170
7124
|
document.body.removeChild(link);
|
package/dist/index.mjs
CHANGED
|
@@ -3221,8 +3221,8 @@ var FeatureCard = ({ feature, bgImage }) => {
|
|
|
3221
3221
|
"div",
|
|
3222
3222
|
{
|
|
3223
3223
|
className: `
|
|
3224
|
-
absolute
|
|
3225
|
-
${isLeft ? "-left-6
|
|
3224
|
+
absolute bottom-0 w-[85%] h-[85%] z-10 transition-transform duration-700 ease-out
|
|
3225
|
+
${isLeft ? "-left-6" : "-right-6"}
|
|
3226
3226
|
`
|
|
3227
3227
|
},
|
|
3228
3228
|
/* @__PURE__ */ React29.createElement(
|
|
@@ -5032,35 +5032,13 @@ var UniversalBuyCryptoPage = ({
|
|
|
5032
5032
|
import React49 from "react";
|
|
5033
5033
|
import { HugeiconsIcon as HugeiconsIcon35 } from "@hugeicons/react";
|
|
5034
5034
|
import {
|
|
5035
|
+
AiMicIcon,
|
|
5035
5036
|
ArrowLeft01Icon as ArrowLeft01Icon15,
|
|
5036
5037
|
ArrowRight01Icon as ArrowRight01Icon10,
|
|
5037
5038
|
Loading03Icon as Loading03Icon23
|
|
5038
5039
|
} from "@hugeicons/core-free-icons";
|
|
5039
|
-
var HuddleAvatar = ({
|
|
5040
|
-
|
|
5041
|
-
switch (status?.toUpperCase()) {
|
|
5042
|
-
case "SCHEDULED":
|
|
5043
|
-
return "bg-amber-500";
|
|
5044
|
-
case "ONGOING":
|
|
5045
|
-
return "bg-emerald-500";
|
|
5046
|
-
case "COMPLETED":
|
|
5047
|
-
return "bg-stone-400";
|
|
5048
|
-
case "CANCELLED":
|
|
5049
|
-
return "bg-[#d97757]";
|
|
5050
|
-
default:
|
|
5051
|
-
return "bg-stone-200";
|
|
5052
|
-
}
|
|
5053
|
-
};
|
|
5054
|
-
let day = "--";
|
|
5055
|
-
let month = "---";
|
|
5056
|
-
if (timeString) {
|
|
5057
|
-
const parts = timeString.split(" ");
|
|
5058
|
-
if (parts.length >= 2) {
|
|
5059
|
-
day = parts[0];
|
|
5060
|
-
month = parts[1].substring(0, 3).toUpperCase();
|
|
5061
|
-
}
|
|
5062
|
-
}
|
|
5063
|
-
return /* @__PURE__ */ React49.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ React49.createElement("div", { className: "w-full h-full aspect-square rounded-lg bg-neutral-50 flex flex-col items-center justify-center overflow-hidden" }, /* @__PURE__ */ React49.createElement("span", { className: "text-[9px] tracking-wider leading-tight", style: { color: "#d97757" } }, month), /* @__PURE__ */ React49.createElement("span", { className: "text-sm text-black leading-tight" }, day)), /* @__PURE__ */ React49.createElement("div", { className: `absolute -bottom-1 -right-1 w-3 h-3 rounded-full border-2 border-white z-10 ${getStatusColor()}` }));
|
|
5040
|
+
var HuddleAvatar = ({ icon, sizeClass = "w-10 h-10" }) => {
|
|
5041
|
+
return /* @__PURE__ */ React49.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ React49.createElement("div", { className: "w-full h-full aspect-square rounded-full bg-neutral-50 flex items-center justify-center overflow-hidden" }, icon ? /* @__PURE__ */ React49.createElement(HugeiconsIcon35, { icon, size: 18, className: "text-stone-500" }) : /* @__PURE__ */ React49.createElement(HugeiconsIcon35, { icon: AiMicIcon, size: 18, className: "text-stone-500" })));
|
|
5064
5042
|
};
|
|
5065
5043
|
var PageSpinner6 = () => /* @__PURE__ */ React49.createElement("div", { className: "flex justify-center items-center py-12" }, /* @__PURE__ */ React49.createElement(HugeiconsIcon35, { icon: Loading03Icon23, size: 32, className: "animate-spin mb-4 text-black" }));
|
|
5066
5044
|
var UniversalHuddlesPage = ({
|
|
@@ -5074,10 +5052,10 @@ var UniversalHuddlesPage = ({
|
|
|
5074
5052
|
onHuddleClick,
|
|
5075
5053
|
onCreateHuddle
|
|
5076
5054
|
}) => {
|
|
5077
|
-
return /* @__PURE__ */ React49.createElement("div", { className: "w-full max-w-4xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-col gap-8 p-6 rounded-2xl bg-white w-full" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-row items-center justify-between gap-4" }, /* @__PURE__ */ React49.createElement("h2", { className: "text-black text-xl tracking-tight" }, headerTitle), /* @__PURE__ */ React49.createElement(
|
|
5055
|
+
return /* @__PURE__ */ React49.createElement("div", { className: "w-full max-w-4xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-col gap-8 p-6 rounded-2xl bg-white w-full" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ React49.createElement("div", { className: "flex flex-row items-center justify-between gap-4" }, /* @__PURE__ */ React49.createElement("h2", { className: "text-black text-xl tracking-tight" }, headerTitle), onCreateHuddle && /* @__PURE__ */ React49.createElement(
|
|
5078
5056
|
"button",
|
|
5079
5057
|
{
|
|
5080
|
-
onClick: () => onCreateHuddle
|
|
5058
|
+
onClick: () => onCreateHuddle(),
|
|
5081
5059
|
className: "shrink-0 px-4 py-1.5 border border-stone-200 text-black text-xs tracking-wide rounded-full hover:bg-stone-50 transition-colors outline-none"
|
|
5082
5060
|
},
|
|
5083
5061
|
"Create new"
|
|
@@ -5088,7 +5066,7 @@ var UniversalHuddlesPage = ({
|
|
|
5088
5066
|
onClick: () => onHuddleClick(huddle.id),
|
|
5089
5067
|
className: "flex flex-row items-center gap-4 py-2 hover:bg-stone-50 transition-colors cursor-pointer group min-w-0 px-3 -mx-3 rounded-xl"
|
|
5090
5068
|
},
|
|
5091
|
-
/* @__PURE__ */ React49.createElement(HuddleAvatar, {
|
|
5069
|
+
/* @__PURE__ */ React49.createElement(HuddleAvatar, { icon: huddle.icon }),
|
|
5092
5070
|
/* @__PURE__ */ React49.createElement("div", { className: "flex flex-col min-w-0 flex-1" }, /* @__PURE__ */ React49.createElement("p", { className: "text-sm text-black tracking-tight truncate" }, huddle.name), /* @__PURE__ */ React49.createElement("span", { className: "text-xs text-stone-500 truncate block mt-0.5" }, huddle.timeString)),
|
|
5093
5071
|
/* @__PURE__ */ React49.createElement(HugeiconsIcon35, { icon: ArrowRight01Icon10, size: 14, className: "shrink-0 text-stone-400" })
|
|
5094
5072
|
))), /* @__PURE__ */ React49.createElement("div", { className: "flex items-center justify-between pt-6 mt-2 " }, /* @__PURE__ */ React49.createElement("span", { className: "text-xs text-stone-400 tracking-[0.2em]" }, "Page ", currentPage, " of ", totalPages === 0 ? 1 : totalPages), /* @__PURE__ */ React49.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React49.createElement(
|
|
@@ -5533,7 +5511,7 @@ var UniversalHome2 = ({
|
|
|
5533
5511
|
{
|
|
5534
5512
|
...huddlesProps
|
|
5535
5513
|
}
|
|
5536
|
-
)), showOrgSwitcher && /* @__PURE__ */ React51.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React51.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ React51.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
5514
|
+
)), showOrgSwitcher && /* @__PURE__ */ React51.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React51.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ React51.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ React51.createElement("div", { className: "flex items-center justify-between p-5 shrink-0 " }, /* @__PURE__ */ React51.createElement("h3", { className: "text-sm text-black tracking-tight" }, "Switch Workspace"), /* @__PURE__ */ React51.createElement("button", { onClick: () => setShowOrgSwitcher(false), className: "text-stone-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React51.createElement(HugeiconsIcon37, { icon: CancelCircleIcon13, size: 18 }))), /* @__PURE__ */ React51.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, /* @__PURE__ */ React51.createElement("div", { className: "flex flex-col" }, organizations?.length === 0 ? /* @__PURE__ */ React51.createElement("div", { className: "p-8 text-center text-xs text-stone-400" }, "No organizations found.") : organizations?.map((org) => /* @__PURE__ */ React51.createElement(
|
|
5537
5515
|
"button",
|
|
5538
5516
|
{
|
|
5539
5517
|
key: org.id,
|
|
@@ -5546,7 +5524,7 @@ var UniversalHome2 = ({
|
|
|
5546
5524
|
/* @__PURE__ */ React51.createElement(OrgAvatar, { src: org.avatarUrl }),
|
|
5547
5525
|
/* @__PURE__ */ React51.createElement("div", { className: "flex flex-col items-start min-w-0 flex-1" }, /* @__PURE__ */ React51.createElement("span", { className: `text-sm tracking-tight truncate w-full text-left ${activeOrgId === org.id ? "text-black " : "text-stone-600"}` }, org.name), /* @__PURE__ */ React51.createElement("span", { className: "text-xs text-stone-500 capitalize truncate w-full text-left mt-0.5" }, org.role?.toLowerCase() || "Member")),
|
|
5548
5526
|
activeOrgId === org.id && /* @__PURE__ */ React51.createElement("div", { className: "w-2 h-2 rounded-full bg-[#d97757] shrink-0" })
|
|
5549
|
-
)))), /* @__PURE__ */ React51.createElement("div", { className: "p-4
|
|
5527
|
+
)))), /* @__PURE__ */ React51.createElement("div", { className: "p-4 shrink-0" }, /* @__PURE__ */ React51.createElement(
|
|
5550
5528
|
"button",
|
|
5551
5529
|
{
|
|
5552
5530
|
onClick: () => {
|
|
@@ -5557,7 +5535,7 @@ var UniversalHome2 = ({
|
|
|
5557
5535
|
},
|
|
5558
5536
|
/* @__PURE__ */ React51.createElement(HugeiconsIcon37, { icon: Logout01Icon, size: 15 }),
|
|
5559
5537
|
"Log Out"
|
|
5560
|
-
)))), showNotifDialog && /* @__PURE__ */ React51.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React51.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React51.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
5538
|
+
)))), showNotifDialog && /* @__PURE__ */ React51.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React51.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React51.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ React51.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ React51.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ React51.createElement(HugeiconsIcon37, { icon: ArrowLeft01Icon17, size: 14 }), " Back") : /* @__PURE__ */ React51.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ React51.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ React51.createElement(HugeiconsIcon37, { icon: CancelCircleIcon13, size: 18 }))), /* @__PURE__ */ React51.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ React51.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ React51.createElement(HugeiconsIcon37, { icon: Loading03Icon25, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ React51.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "HUDDLE_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ React51.createElement("div", { className: "" }) : /* @__PURE__ */ React51.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ React51.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ React51.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "HUDDLE_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ React51.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ React51.createElement(
|
|
5561
5539
|
"button",
|
|
5562
5540
|
{
|
|
5563
5541
|
onClick: () => handleResolve("ACCEPTED"),
|
|
@@ -6225,6 +6203,7 @@ import React54, { useState as useState39, useRef as useRef16, useEffect as useEf
|
|
|
6225
6203
|
import { useRouter as useRouter4 } from "next/navigation";
|
|
6226
6204
|
import { HugeiconsIcon as HugeiconsIcon40 } from "@hugeicons/react";
|
|
6227
6205
|
import {
|
|
6206
|
+
AiMicIcon as AiMicIcon2,
|
|
6228
6207
|
ArrowLeft01Icon as ArrowLeft01Icon20,
|
|
6229
6208
|
ArrowRight01Icon as ArrowRight01Icon15,
|
|
6230
6209
|
Loading03Icon as Loading03Icon28,
|
|
@@ -6233,31 +6212,8 @@ import {
|
|
|
6233
6212
|
} from "@hugeicons/core-free-icons";
|
|
6234
6213
|
var MONTHS2 = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
6235
6214
|
var DAYS_OF_WEEK2 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
6236
|
-
var HuddleAvatar2 = ({
|
|
6237
|
-
|
|
6238
|
-
switch (status?.toUpperCase()) {
|
|
6239
|
-
case "SCHEDULED":
|
|
6240
|
-
return "bg-amber-500";
|
|
6241
|
-
case "ONGOING":
|
|
6242
|
-
return "bg-emerald-500";
|
|
6243
|
-
case "COMPLETED":
|
|
6244
|
-
return "bg-stone-400";
|
|
6245
|
-
case "CANCELLED":
|
|
6246
|
-
return "bg-[#d97757]";
|
|
6247
|
-
default:
|
|
6248
|
-
return "bg-stone-200";
|
|
6249
|
-
}
|
|
6250
|
-
};
|
|
6251
|
-
let day = "--";
|
|
6252
|
-
let month = "---";
|
|
6253
|
-
if (timeString) {
|
|
6254
|
-
const parts = timeString.split(" ");
|
|
6255
|
-
if (parts.length >= 2) {
|
|
6256
|
-
day = parts[0];
|
|
6257
|
-
month = parts[1].substring(0, 3).toUpperCase();
|
|
6258
|
-
}
|
|
6259
|
-
}
|
|
6260
|
-
return /* @__PURE__ */ React54.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ React54.createElement("div", { className: "w-full h-full aspect-square rounded-lg bg-neutral-50 flex flex-col items-center justify-center overflow-hidden" }, /* @__PURE__ */ React54.createElement("span", { className: "text-[9px] tracking-wider leading-tight", style: { color: "#d97757" } }, month), /* @__PURE__ */ React54.createElement("span", { className: "text-sm text-black leading-tight" }, day)), /* @__PURE__ */ React54.createElement("div", { className: `absolute -bottom-1 -right-1 w-3 h-3 rounded-full border-2 border-white z-10 ${getStatusColor()}` }));
|
|
6215
|
+
var HuddleAvatar2 = ({ icon, sizeClass = "w-10 h-10" }) => {
|
|
6216
|
+
return /* @__PURE__ */ React54.createElement("div", { className: `relative shrink-0 aspect-square ${sizeClass}` }, /* @__PURE__ */ React54.createElement("div", { className: "w-full h-full aspect-square rounded-full bg-neutral-50 flex items-center justify-center overflow-hidden" }, icon ? /* @__PURE__ */ React54.createElement(HugeiconsIcon40, { icon, size: 18, className: "text-stone-500" }) : /* @__PURE__ */ React54.createElement(HugeiconsIcon40, { icon: AiMicIcon2, size: 18, className: "text-stone-500" })));
|
|
6261
6217
|
};
|
|
6262
6218
|
var HomeHuddleCalendar = ({
|
|
6263
6219
|
huddles = [],
|
|
@@ -6357,14 +6313,14 @@ var HomeHuddleCalendar = ({
|
|
|
6357
6313
|
"button",
|
|
6358
6314
|
{
|
|
6359
6315
|
onClick: () => setSelectedDate(thisDate),
|
|
6360
|
-
className: `relative h-10 w-10 rounded-full flex items-center justify-center text-xs
|
|
6361
|
-
${isSelected ? "bg-[#d97757] text-white" : "text-black hover:bg-stone-100"}`
|
|
6316
|
+
className: `relative h-10 w-10 rounded-full flex items-center justify-center text-xs transition-all outline-none
|
|
6317
|
+
${isSelected ? "bg-[#d97757] text-white" : dayEventsCount > 0 ? "bg-stone-50 text-black hover:bg-stone-100" : "text-black hover:bg-stone-100"}`
|
|
6362
6318
|
},
|
|
6363
6319
|
day,
|
|
6364
6320
|
dayEventsCount > 0 && /* @__PURE__ */ React54.createElement(
|
|
6365
6321
|
"span",
|
|
6366
6322
|
{
|
|
6367
|
-
className: `absolute -top-1 -right-1 flex h-4.5 w-4.5 items-center justify-center rounded-full text-[9px]
|
|
6323
|
+
className: `absolute -top-1 -right-1 flex h-4.5 w-4.5 items-center justify-center rounded-full text-[9px] ring-2 ring-white
|
|
6368
6324
|
${isSelected ? "bg-white text-[#d97757]" : "bg-stone-100 text-stone-900"}`
|
|
6369
6325
|
},
|
|
6370
6326
|
dayEventsCount
|
|
@@ -6377,7 +6333,7 @@ var HomeHuddleCalendar = ({
|
|
|
6377
6333
|
onClick: () => router.push(`/app/huddles/${huddle.id}`),
|
|
6378
6334
|
className: "flex flex-row items-center gap-4 py-3 hover:bg-stone-50 transition-colors cursor-pointer group min-w-0 px-3 -mx-3 rounded-xl"
|
|
6379
6335
|
},
|
|
6380
|
-
/* @__PURE__ */ React54.createElement(HuddleAvatar2, {
|
|
6336
|
+
/* @__PURE__ */ React54.createElement(HuddleAvatar2, { icon: huddle.icon }),
|
|
6381
6337
|
/* @__PURE__ */ React54.createElement("div", { className: "flex flex-col min-w-0 flex-1" }, /* @__PURE__ */ React54.createElement("p", { className: "text-sm text-black tracking-tight truncate" }, huddle.name), /* @__PURE__ */ React54.createElement("span", { className: "text-[11px] text-stone-500 truncate block mt-1 tracking-wide" }, isSearching ? huddle.timeString : huddle.timeString.split("|")[1]?.trim() || huddle.timeString)),
|
|
6382
6338
|
/* @__PURE__ */ React54.createElement(HugeiconsIcon40, { icon: ArrowRight01Icon15, size: 14, className: "shrink-0 text-stone-400 group-hover:text-black transition-colors" })
|
|
6383
6339
|
)))), huddles.length > 0 && !isLoading && /* @__PURE__ */ React54.createElement("div", { className: "flex items-center justify-between pt-6 mt-4 mb-2" }, /* @__PURE__ */ React54.createElement("span", { className: "text-[10px] text-stone-400 tracking-widest " }, "Page ", currentPage, " of ", totalPages === 0 ? 1 : totalPages), /* @__PURE__ */ React54.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React54.createElement(
|
|
@@ -6629,7 +6585,7 @@ var UniversalHome3 = ({
|
|
|
6629
6585
|
{
|
|
6630
6586
|
...applicationsProps
|
|
6631
6587
|
}
|
|
6632
|
-
)), showOrgSwitcher && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
6588
|
+
)), showOrgSwitcher && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowOrgSwitcher(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ React56.createElement("div", { className: "flex items-center justify-between p-5 shrink-0 " }, /* @__PURE__ */ React56.createElement("h3", { className: "text-sm text-black tracking-tight" }, "Switch Workspace"), /* @__PURE__ */ React56.createElement("button", { onClick: () => setShowOrgSwitcher(false), className: "text-stone-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: CancelCircleIcon14, size: 18 }))), /* @__PURE__ */ React56.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, /* @__PURE__ */ React56.createElement("div", { className: "flex flex-col" }, organizations?.length === 0 ? /* @__PURE__ */ React56.createElement("div", { className: "p-8 text-center text-xs text-stone-400" }, "No organizations found.") : organizations?.map((org) => /* @__PURE__ */ React56.createElement(
|
|
6633
6589
|
"button",
|
|
6634
6590
|
{
|
|
6635
6591
|
key: org.id,
|
|
@@ -6653,7 +6609,7 @@ var UniversalHome3 = ({
|
|
|
6653
6609
|
},
|
|
6654
6610
|
/* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: Logout01Icon2, size: 15 }),
|
|
6655
6611
|
"Log Out"
|
|
6656
|
-
)))), showNotifDialog && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[
|
|
6612
|
+
)))), showNotifDialog && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 h-125 max-h-[85vh]" }, /* @__PURE__ */ React56.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ React56.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: ArrowLeft01Icon22, size: 14 }), " Back") : /* @__PURE__ */ React56.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ React56.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: CancelCircleIcon14, size: 18 }))), /* @__PURE__ */ React56.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: Loading03Icon30, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ React56.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ React56.createElement("div", { className: "" }) : /* @__PURE__ */ React56.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ React56.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ React56.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ React56.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ React56.createElement(
|
|
6657
6613
|
"button",
|
|
6658
6614
|
{
|
|
6659
6615
|
onClick: () => handleResolve("ACCEPTED"),
|
|
@@ -7248,14 +7204,14 @@ var UniversalDeveloperSettings = ({
|
|
|
7248
7204
|
setWebhookUrl(val.trim());
|
|
7249
7205
|
};
|
|
7250
7206
|
const downloadEnvironmentFile = (pubKey, secKey) => {
|
|
7251
|
-
const envContent = `
|
|
7252
|
-
|
|
7207
|
+
const envContent = `SDK_PUBLIC_KEY="${pubKey}"
|
|
7208
|
+
SDK_SECRET_KEY="${secKey}"
|
|
7253
7209
|
`;
|
|
7254
7210
|
const blob = new Blob([envContent], { type: "text/plain" });
|
|
7255
7211
|
const url = URL.createObjectURL(blob);
|
|
7256
7212
|
const link = document.createElement("a");
|
|
7257
7213
|
link.href = url;
|
|
7258
|
-
link.download = "
|
|
7214
|
+
link.download = "sdk_credentials.txt";
|
|
7259
7215
|
document.body.appendChild(link);
|
|
7260
7216
|
link.click();
|
|
7261
7217
|
document.body.removeChild(link);
|