randmarcomps 1.515.0 → 1.517.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.
@@ -406,6 +406,7 @@ export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimit
406
406
  export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
407
407
  animateExit?: boolean;
408
408
  overlayClassName?: string;
409
+ showOverlay?: boolean;
409
410
  } & React_2.RefAttributes<HTMLDivElement>>;
410
411
 
411
412
  export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
@@ -6197,18 +6197,25 @@ const DialogTrigger = Trigger$6, DialogPortal = Portal$4, DialogClose = Close$1,
6197
6197
  }
6198
6198
  ));
6199
6199
  DialogOverlay.displayName = Overlay.displayName;
6200
- const DialogContent = React.forwardRef(({ className: e, children: t, animateExit: n = !0, overlayClassName: a, ...s }, o) => /* @__PURE__ */ jsxs(DialogPortal, { forceMount: s.forceMount, children: [
6201
- /* @__PURE__ */ jsx(DialogOverlay, { className: a, forceMount: s.forceMount }),
6200
+ const DialogContent = React.forwardRef(({ className: e, children: t, animateExit: n = !0, overlayClassName: a, showOverlay: s, ...o }, l) => /* @__PURE__ */ jsxs(DialogPortal, { forceMount: o.forceMount, children: [
6201
+ a && s ? /* @__PURE__ */ jsx(
6202
+ "div",
6203
+ {
6204
+ "aria-hidden": "true",
6205
+ className: cn("fixed inset-0 z-[10000] pointer-events-none", a)
6206
+ }
6207
+ ) : null,
6208
+ /* @__PURE__ */ jsx(DialogOverlay, { className: a, forceMount: o.forceMount }),
6202
6209
  /* @__PURE__ */ jsxs(
6203
6210
  Content$3,
6204
6211
  {
6205
- ref: o,
6212
+ ref: l,
6206
6213
  className: cn(
6207
6214
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-2xl shadow-primary duration-200 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
6208
6215
  n && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",
6209
6216
  e
6210
6217
  ),
6211
- ...s,
6218
+ ...o,
6212
6219
  children: [
6213
6220
  t,
6214
6221
  /* @__PURE__ */ jsxs(Close$1, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
@@ -15167,6 +15174,13 @@ const emptySplitApi = createApi({
15167
15174
  body: t.body
15168
15175
  })
15169
15176
  }),
15177
+ postV4PartnerByApplicationIdGenerationImage: e.mutation({
15178
+ query: (t) => ({
15179
+ url: `/V4/Partner/${t.applicationId}/Generation/Image`,
15180
+ method: "POST",
15181
+ body: t.generateImageBody
15182
+ })
15183
+ }),
15170
15184
  postV4PartnerByApplicationIdGenerationRandmarAssistant: e.mutation({
15171
15185
  query: (t) => ({
15172
15186
  url: `/V4/Partner/${t.applicationId}/Generation/RandmarAssistant`,
@@ -75346,7 +75360,7 @@ const useConfig = () => {
75346
75360
  ] }) });
75347
75361
  return c ? /* @__PURE__ */ jsxs("div", { className: cn("flex h-full min-h-0 w-full overflow-hidden", a), children: [
75348
75362
  /* @__PURE__ */ jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: lr() ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
75349
- /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-20 flex items-center border-b bg-white p-4", children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
75363
+ /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-20 flex items-center border-b bg-white p-4 rounded-tl-lg", children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
75350
75364
  /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
75351
75365
  /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
75352
75366
  /* @__PURE__ */ jsx(
@@ -75375,7 +75389,7 @@ const useConfig = () => {
75375
75389
  " Clear Conversation"
75376
75390
  ] })
75377
75391
  ] }) }),
75378
- /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: nt ? wr ? /* @__PURE__ */ jsx("div", { className: "flex-1 bg-slate-50 flex items-center justify-center p-6 animate-in fade-in-0 duration-300", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-2xl", children: [
75392
+ /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: nt ? wr ? /* @__PURE__ */ jsx("div", { className: "flex-1 bg-slate-50 flex items-center justify-center p-6 rounded-bl-lg", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-2xl", children: [
75379
75393
  /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-slate-600", children: "Hi there!" }),
75380
75394
  /* @__PURE__ */ jsx("h1", { className: "mt-2 text-[32px] leading-[1.15] font-semibold text-slate-900", children: "How can I assist you with your Randmar tasks today?" }),
75381
75395
  /* @__PURE__ */ jsx(
@@ -75399,7 +75413,7 @@ const useConfig = () => {
75399
75413
  )
75400
75414
  }
75401
75415
  )
75402
- ] }) }) : /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col animate-in fade-in-0 duration-300", children: [
75416
+ ] }) }) : /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [
75403
75417
  /* @__PURE__ */ jsxs(ScrollArea, { className: "min-h-0 flex-1 bg-slate-50 pl-2 pr-2", children: [
75404
75418
  /* @__PURE__ */ jsx(
75405
75419
  ChatMessages,
@@ -75621,6 +75635,7 @@ const Navbar = forwardRef(
75621
75635
  forceMount: !0,
75622
75636
  animateExit: !1,
75623
75637
  overlayClassName: "randmar-assistant-overlay",
75638
+ showOverlay: R,
75624
75639
  children: /* @__PURE__ */ jsx(AIChatLayout, { className: "h-[85vh]", ref: g, inputRef: f, userId: s, userName: a ?? "Unknown user" })
75625
75640
  }
75626
75641
  )