@qtalo/qt-ui-library 0.1.25 → 0.1.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.ts CHANGED
@@ -631,16 +631,16 @@ export declare type EventCardSkeletonProps = {
631
631
  style?: CSSProperties;
632
632
  };
633
633
 
634
- export declare function EventDetail({ events, expandedEventIndex, }: EventDetailProps): JSX.Element | null;
634
+ export declare function EventDetail({ events, expandedEventIndex }: EventDetailProps): JSX.Element | null;
635
635
 
636
- export declare function EventDetailContentCalendar({ detail: { summary, body, priorityText, followUpTitle, followUpSubtitle, from, to, link, location }, className, }: EventDetailContentCalendarProps): JSX.Element;
636
+ export declare function EventDetailContentCalendar({ detail: { summary, body, priorityText, followUpTitle, followUpSubtitle, from, to, link, location, }, className, }: EventDetailContentCalendarProps): JSX.Element;
637
637
 
638
638
  export declare type EventDetailContentCalendarProps = {
639
639
  detail: CalendarDetail;
640
640
  className?: string;
641
641
  };
642
642
 
643
- export declare function EventDetailContentEmail({ detail: { summary, body, priorityText, followUpTitle, followUpSubtitle, subject, to, date, from }, className, }: EventDetailContentEmailProps): JSX.Element;
643
+ export declare function EventDetailContentEmail({ detail: { summary, body, priorityText, followUpTitle, followUpSubtitle, subject, to, date, from, }, className, }: EventDetailContentEmailProps): JSX.Element;
644
644
 
645
645
  export declare type EventDetailContentEmailProps = {
646
646
  detail: EmailDetail;
@@ -758,7 +758,7 @@ export declare type EventSummaryCardActions = {
758
758
  };
759
759
 
760
760
  export declare type EventSummaryCardFireAction = {
761
- onClick: () => void;
761
+ onClick?: () => void;
762
762
  active?: boolean;
763
763
  };
764
764
 
package/dist/index.js CHANGED
@@ -22986,10 +22986,8 @@ function findActiveStep(e, t, n) {
22986
22986
  return null;
22987
22987
  }
22988
22988
  function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r = !0, children: i }) {
22989
- let a = n ?? "onboarding_dismissed", [o, c] = useState(() => readDismissedFromStorage(a));
22990
- useLayoutEffect(() => {
22991
- c(readDismissedFromStorage(a));
22992
- }, [a]), useEffect(() => {
22989
+ let a = n ?? "onboarding_dismissed", [o, c] = useState(() => readDismissedFromStorage(a)), [u, f] = useState(a);
22990
+ a !== u && (f(a), c(readDismissedFromStorage(a))), useEffect(() => {
22993
22991
  if (!(typeof window > "u")) try {
22994
22992
  localStorage.setItem(a, JSON.stringify([...o]));
22995
22993
  } catch {}
@@ -23000,41 +22998,41 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
23000
22998
  c((e) => e.size === r.size && [...e].every((e) => r.has(e)) ? e : r);
23001
22999
  });
23002
23000
  }, [e, a]);
23003
- let u = useMemo(() => r ? findActiveStep(e, o, t) : null, [
23001
+ let h = useMemo(() => r ? findActiveStep(e, o, t) : null, [
23004
23002
  r,
23005
23003
  e,
23006
23004
  o,
23007
23005
  t
23008
- ]), h = u?.step ?? null, O = u?.index ?? null, Qo = useCallback((e) => {
23006
+ ]), O = h?.step ?? null, Qo = h?.index ?? null, $o = useCallback((e) => {
23009
23007
  c((t) => {
23010
23008
  if (t.has(e)) return t;
23011
23009
  let n = new Set(t);
23012
23010
  return n.add(e), n;
23013
23011
  });
23014
- }, []), $o = useCallback(() => {
23012
+ }, []), R = useCallback(() => {
23015
23013
  c((n) => {
23016
23014
  let r = findActiveStep(e, n, t);
23017
23015
  if (r == null || n.has(r.step.id)) return n;
23018
23016
  let i = new Set(n);
23019
23017
  return i.add(r.step.id), i;
23020
23018
  });
23021
- }, [e, t]), R = useCallback(() => {
23019
+ }, [e, t]), B = useCallback(() => {
23022
23020
  c(new Set(e.map((e) => e.id)));
23023
23021
  }, [e]);
23024
23022
  return /* @__PURE__ */ jsx(Fragment$1, { children: i({
23025
23023
  context: t,
23026
- currentStep: h,
23027
- currentStepIndex: O,
23024
+ currentStep: O,
23025
+ currentStepIndex: Qo,
23028
23026
  dismissedStepIds: o,
23029
23027
  actions: useMemo(() => ({
23030
- dismissCurrentStep: $o,
23031
- dismissStep: Qo,
23032
- skipAll: R,
23033
- close: R
23028
+ dismissCurrentStep: R,
23029
+ dismissStep: $o,
23030
+ skipAll: B,
23031
+ close: B
23034
23032
  }), [
23033
+ R,
23035
23034
  $o,
23036
- Qo,
23037
- R
23035
+ B
23038
23036
  ])
23039
23037
  }) });
23040
23038
  }
@@ -24725,7 +24723,7 @@ function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i
24725
24723
  children: a
24726
24724
  }),
24727
24725
  insightLabelVisible(g) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: g }),
24728
- /* @__PURE__ */ jsx(EventSummaryFireButton, {
24726
+ f.onClick && /* @__PURE__ */ jsx(EventSummaryFireButton, {
24729
24727
  active: f.active,
24730
24728
  onClick: f.onClick
24731
24729
  })