@cuemath/leap 2.9.7-rj-0 → 2.9.7-rj-2

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.
Files changed (26) hide show
  1. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +51 -51
  2. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  3. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +33 -33
  4. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  5. package/dist/features/circle-games/games/tutorial/tutorial.js +25 -19
  6. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  7. package/dist/features/journey/comps/coachmark/coachmark.js +20 -19
  8. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  9. package/dist/features/journey/use-journey/constants.js +2 -4
  10. package/dist/features/journey/use-journey/constants.js.map +1 -1
  11. package/dist/features/journey/use-journey/journey-styled.js +3 -4
  12. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  13. package/dist/features/ui/constants/z-index.js +2 -1
  14. package/dist/features/ui/constants/z-index.js.map +1 -1
  15. package/dist/features/ui/theme/breakpoints.js +7 -0
  16. package/dist/features/ui/theme/breakpoints.js.map +1 -0
  17. package/dist/features/ui/theme/get-theme.js +20 -18
  18. package/dist/features/ui/theme/get-theme.js.map +1 -1
  19. package/dist/index.d.ts +7 -5
  20. package/dist/index.js +133 -135
  21. package/dist/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/features/hooks/use-breakpoint/constants.js +0 -7
  24. package/dist/features/hooks/use-breakpoint/constants.js.map +0 -1
  25. package/dist/features/hooks/use-breakpoint/use-breakpoint.js +0 -16
  26. package/dist/features/hooks/use-breakpoint/use-breakpoint.js.map +0 -1
@@ -1,26 +1,32 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as I, useState as v, useRef as u, useCallback as C, useImperativeHandle as V } from "react";
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as I, useState as C, useRef as u, useCallback as V, useImperativeHandle as v } from "react";
3
3
  import x from "../../../../assets/line-icons/icons/cross.js";
4
- import { useJourney as H } from "../../../journey/use-journey/use-journey.js";
5
- import T from "../../../ui/text/text.js";
6
- import { GameTutorialWrapper as $, GameTutorialHeader as G, HeaderIconContainer as P, GameTutorialContainer as R, VideoContainer as W, VideoProgressWrapper as b, VideoProgressContainer as j, VideoProgress as k } from "./tutorial-styled.js";
7
- const q = I(
8
- ({ src: m, title: o, onCross: t, showProgress: p = !0, onTutorialPlayedOnce: e }, f) => {
9
- const [i, l] = v(0), n = u(!1), s = u(null), { isJourneyActive: h } = H(), g = C(
10
- (c) => {
11
- const a = (c.target.currentTime || 0) / (c.target.duration || 1) * 100;
12
- a >= 90 && !n.current && (n.current = !0, e == null || e()), l(a);
4
+ import H from "../../../ui/text/text.js";
5
+ import { GameTutorialWrapper as T, GameTutorialHeader as $, HeaderIconContainer as G, GameTutorialContainer as P, VideoContainer as R, VideoProgressWrapper as W, VideoProgressContainer as b, VideoProgress as j } from "./tutorial-styled.js";
6
+ const U = I(
7
+ ({
8
+ src: m,
9
+ title: o,
10
+ onCross: t,
11
+ showProgress: p = !0,
12
+ onTutorialPlayedOnce: e,
13
+ isJourneyActive: f
14
+ }, l) => {
15
+ const [i, h] = C(0), n = u(!1), s = u(null), g = V(
16
+ (a) => {
17
+ const d = (a.target.currentTime || 0) / (a.target.duration || 1) * 100;
18
+ d >= 90 && !n.current && (n.current = !0, e == null || e()), h(d);
13
19
  },
14
20
  [e]
15
21
  );
16
- return V(f, () => ({
22
+ return v(l, () => ({
17
23
  videoRef: s
18
- })), /* @__PURE__ */ d($, { children: [
19
- (o || t) && /* @__PURE__ */ d(G, { children: [
20
- o && /* @__PURE__ */ r(T, { $renderAs: "ac3", $color: "WHITE", $align: "center", children: o }),
21
- t && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(x, { color: "#fff", onClick: t }) })
24
+ })), /* @__PURE__ */ c(T, { children: [
25
+ (o || t) && /* @__PURE__ */ c($, { children: [
26
+ o && /* @__PURE__ */ r(H, { $renderAs: "ac3", $color: "WHITE", $align: "center", children: o }),
27
+ t && /* @__PURE__ */ r(G, { children: /* @__PURE__ */ r(x, { color: "#fff", onClick: t }) })
22
28
  ] }),
23
- /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(W, { isJourneyActive: h, children: /* @__PURE__ */ r(
29
+ /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(R, { isJourneyActive: f, children: /* @__PURE__ */ r(
24
30
  "video",
25
31
  {
26
32
  ref: s,
@@ -34,11 +40,11 @@ const q = I(
34
40
  playsInline: !0
35
41
  }
36
42
  ) }) }),
37
- p && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(j, { children: i > 0 && /* @__PURE__ */ r(k, { $width: i }) }) })
43
+ p && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(b, { children: i > 0 && /* @__PURE__ */ r(j, { $width: i }) }) })
38
44
  ] });
39
45
  }
40
46
  );
41
47
  export {
42
- q as Tutorial
48
+ U as Tutorial
43
49
  };
44
50
  //# sourceMappingURL=tutorial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial.tsx"],"sourcesContent":["import type { ITutorialProps, ITutorialRef } from './tutorial-types';\nimport type { ChangeEvent } from 'react';\n\nimport { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react';\n\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\nimport { useJourney } from '../../../journey/use-journey/use-journey';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './tutorial-styled';\n\nexport const Tutorial = forwardRef<ITutorialRef, ITutorialProps>(\n ({ src, title, onCross, showProgress = true, onTutorialPlayedOnce }: ITutorialProps, ref) => {\n const [progress, setProgress] = useState(0);\n const hasVideoEnded = useRef(false);\n const videoRef = useRef<HTMLVideoElement>(null);\n\n const { isJourneyActive } = useJourney();\n\n const onProgress = useCallback(\n (e: ChangeEvent<HTMLVideoElement>) => {\n const p = ((e.target.currentTime || 0) / (e.target.duration || 1)) * 100;\n\n if (p >= 90 && !hasVideoEnded.current) {\n hasVideoEnded.current = true;\n onTutorialPlayedOnce?.();\n }\n\n setProgress(p);\n },\n [onTutorialPlayedOnce],\n );\n\n useImperativeHandle(ref, () => ({\n videoRef,\n }));\n\n return (\n <Styled.GameTutorialWrapper>\n {(title || onCross) && (\n <Styled.GameTutorialHeader>\n {title && (\n <Text $renderAs=\"ac3\" $color=\"WHITE\" $align=\"center\">\n {title}\n </Text>\n )}\n {onCross && (\n <Styled.HeaderIconContainer>\n <CrossIcon color=\"#fff\" onClick={onCross} />\n </Styled.HeaderIconContainer>\n )}\n </Styled.GameTutorialHeader>\n )}\n <Styled.GameTutorialContainer>\n <Styled.VideoContainer isJourneyActive={isJourneyActive}>\n <video\n ref={videoRef}\n loop={true}\n autoPlay={true}\n muted={true}\n src={src}\n onTimeUpdate={onProgress}\n disablePictureInPicture={true}\n itemType=\"video/mp4\"\n playsInline\n />\n </Styled.VideoContainer>\n </Styled.GameTutorialContainer>\n\n {showProgress && (\n <Styled.VideoProgressWrapper>\n <Styled.VideoProgressContainer>\n {progress > 0 && <Styled.VideoProgress $width={progress} />}\n </Styled.VideoProgressContainer>\n </Styled.VideoProgressWrapper>\n )}\n </Styled.GameTutorialWrapper>\n );\n },\n);\n"],"names":["Tutorial","forwardRef","src","title","onCross","showProgress","onTutorialPlayedOnce","ref","progress","setProgress","useState","hasVideoEnded","useRef","videoRef","isJourneyActive","useJourney","onProgress","useCallback","e","p","useImperativeHandle","jsxs","Styled.GameTutorialWrapper","Styled.GameTutorialHeader","jsx","Text","Styled.HeaderIconContainer","CrossIcon","Styled.GameTutorialContainer","Styled.VideoContainer","Styled.VideoProgressWrapper","Styled.V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AAA,UACT,aAAW;AAAA,QAAA;AAAA,SAEf,EACF,CAAA;AAAA,MAECX,KACE,gBAAAmB,EAAAM,GAAA,EACC,UAAA,gBAAAN,EAACO,GAAA,EACE,UAAWvB,IAAA,uBAAMwB,GAAA,EAAqB,QAAQxB,EAAU,CAAA,EAC3D,CAAA,GACF;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"tutorial.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial.tsx"],"sourcesContent":["import type { ITutorialProps, ITutorialRef } from './tutorial-types';\nimport type { ChangeEvent } from 'react';\n\nimport { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react';\n\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './tutorial-styled';\n\nexport const Tutorial = forwardRef<ITutorialRef, ITutorialProps>(\n (\n {\n src,\n title,\n onCross,\n showProgress = true,\n onTutorialPlayedOnce,\n isJourneyActive,\n }: ITutorialProps,\n ref,\n ) => {\n const [progress, setProgress] = useState(0);\n const hasVideoEnded = useRef(false);\n const videoRef = useRef<HTMLVideoElement>(null);\n\n const onProgress = useCallback(\n (e: ChangeEvent<HTMLVideoElement>) => {\n const p = ((e.target.currentTime || 0) / (e.target.duration || 1)) * 100;\n\n if (p >= 90 && !hasVideoEnded.current) {\n hasVideoEnded.current = true;\n onTutorialPlayedOnce?.();\n }\n\n setProgress(p);\n },\n [onTutorialPlayedOnce],\n );\n\n useImperativeHandle(ref, () => ({\n videoRef,\n }));\n\n return (\n <Styled.GameTutorialWrapper>\n {(title || onCross) && (\n <Styled.GameTutorialHeader>\n {title && (\n <Text $renderAs=\"ac3\" $color=\"WHITE\" $align=\"center\">\n {title}\n </Text>\n )}\n {onCross && (\n <Styled.HeaderIconContainer>\n <CrossIcon color=\"#fff\" onClick={onCross} />\n </Styled.HeaderIconContainer>\n )}\n </Styled.GameTutorialHeader>\n )}\n <Styled.GameTutorialContainer>\n <Styled.VideoContainer isJourneyActive={isJourneyActive}>\n <video\n ref={videoRef}\n loop={true}\n autoPlay={true}\n muted={true}\n src={src}\n onTimeUpdate={onProgress}\n disablePictureInPicture={true}\n itemType=\"video/mp4\"\n playsInline\n />\n </Styled.VideoContainer>\n </Styled.GameTutorialContainer>\n\n {showProgress && (\n <Styled.VideoProgressWrapper>\n <Styled.VideoProgressContainer>\n {progress > 0 && <Styled.VideoProgress $width={progress} />}\n </Styled.VideoProgressContainer>\n </Styled.VideoProgressWrapper>\n )}\n </Styled.GameTutorialWrapper>\n );\n },\n);\n"],"names":["Tutorial","forwardRef","src","title","onCross","showProgress","onTutorialPlayedOnce","isJourneyActive","ref","progress","setProgress","useState","hasVideoEnded","useRef","videoRef","onProgress","useCallback","e","p","useImperativeHandle","jsxs","Styled.GameTutorialWrapper","Styled.GameTutorialHeader","jsx","Text","Styled.HeaderIconContainer","CrossIcon","Styled.GameTutorialContainer","Styled.VideoContainer","Styled.VideoProgressWrapper","Styled.VideoProgressContainer","Styled.VideoProgress"],"mappings":";;;;;AASO,MAAMA,IAAWC;AAAA,EACtB,CACE;AAAA,IACE,KAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,sBAAAC;AAAA,IACA,iBAAAC;AAAA,KAEFC,MACG;AACH,UAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,CAAC,GACpCC,IAAgBC,EAAO,EAAK,GAC5BC,IAAWD,EAAyB,IAAI,GAExCE,IAAaC;AAAA,MACjB,CAACC,MAAqC;AAC9B,cAAAC,KAAMD,EAAE,OAAO,eAAe,MAAMA,EAAE,OAAO,YAAY,KAAM;AAErE,QAAIC,KAAK,MAAM,CAACN,EAAc,YAC5BA,EAAc,UAAU,IACDN,KAAA,QAAAA,MAGzBI,EAAYQ,CAAC;AAAA,MACf;AAAA,MACA,CAACZ,CAAoB;AAAA,IAAA;AAGvB,WAAAa,EAAoBX,GAAK,OAAO;AAAA,MAC9B,UAAAM;AAAA,IACA,EAAA,GAGA,gBAAAM,EAACC,GAAA,EACG,UAAA;AAAA,OAAAlB,KAASC,MACT,gBAAAgB,EAACE,GAAA,EACE,UAAA;AAAA,QACCnB,KAAA,gBAAAoB,EAACC,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UACzC,UACHrB,EAAA,CAAA;AAAA,QAEDC,KACE,gBAAAmB,EAAAE,GAAA,EACC,UAAC,gBAAAF,EAAAG,GAAA,EAAU,OAAM,QAAO,SAAStB,EAAA,CAAS,EAC5C,CAAA;AAAA,MAAA,GAEJ;AAAA,MAEF,gBAAAmB,EAACI,GAAA,EACC,4BAACC,GAAA,EAAsB,iBAAArB,GACrB,UAAA,gBAAAgB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAKT;AAAA,UACL,MAAM;AAAA,UACN,UAAU;AAAA,UACV,OAAO;AAAA,UACP,KAAAZ;AAAA,UACA,cAAca;AAAA,UACd,yBAAyB;AAAA,UACzB,UAAS;AAAA,UACT,aAAW;AAAA,QAAA;AAAA,SAEf,EACF,CAAA;AAAA,MAECV,KACE,gBAAAkB,EAAAM,GAAA,EACC,UAAA,gBAAAN,EAACO,GAAA,EACE,UAAWrB,IAAA,uBAAMsB,GAAA,EAAqB,QAAQtB,EAAU,CAAA,EAC3D,CAAA,GACF;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;"}
@@ -1,21 +1,22 @@
1
- import { jsx as o, jsxs as g, Fragment as f } from "react/jsx-runtime";
2
- import { useMemo as p } from "react";
3
- import m from "../../../ui/arrow-tooltip/arrow-tooltip.js";
4
- import y from "../../../ui/nudge/nudge.js";
5
- import { BLUR_OVERLAY_Z_INDEX as T, IndicatorType as d } from "../../use-journey/constants.js";
6
- import { CoachmarkBody as P, ClonedElementWrapper as s } from "./coachmark-styled.js";
7
- import { toolTipGetXCoordinates as $ } from "./coachmark-utils.js";
8
- const H = ({ coachmark: t }) => {
9
- const i = t.originalElementToHighlightRef.current, { top: r = 0, left: n = 0, height: h = 0, width: C = 0 } = (i == null ? void 0 : i.getBoundingClientRect()) || {}, l = p(() => () => i ? window.getComputedStyle(i).position === "absolute" : !1, [i]), u = p(() => {
1
+ import { jsx as o, jsxs as m, Fragment as f } from "react/jsx-runtime";
2
+ import { useMemo as s } from "react";
3
+ import T from "../../../ui/arrow-tooltip/arrow-tooltip.js";
4
+ import O from "../../../ui/nudge/nudge.js";
5
+ import { getTheme as P } from "../../../ui/theme/get-theme.js";
6
+ import { IndicatorType as d } from "../../use-journey/constants.js";
7
+ import { CoachmarkBody as $, ClonedElementWrapper as u } from "./coachmark-styled.js";
8
+ import { toolTipGetXCoordinates as b } from "./coachmark-utils.js";
9
+ const X = ({ coachmark: t }) => {
10
+ const i = t.originalElementToHighlightRef.current, { top: r = 0, left: n = 0, height: h = 0, width: I = 0 } = (i == null ? void 0 : i.getBoundingClientRect()) || {}, { zIndex: C } = P(), p = C.JOURNEY_OVERLAY, l = s(() => () => i ? window.getComputedStyle(i).position === "absolute" : !1, [i]), g = s(() => {
10
11
  const e = t.indicator;
11
12
  return {
12
13
  width: 264,
13
14
  // Can be over ridden
14
- tooltipXCoOrdinates: $(e.position) + (e.tooltipXCoOrdinates ?? 0),
15
+ tooltipXCoOrdinates: b(e.position) + (e.tooltipXCoOrdinates ?? 0),
15
16
  // For absolutely positioned elements
16
- zIndex: T + 1,
17
+ zIndex: p + 1,
17
18
  ...e,
18
- tooltipItem: /* @__PURE__ */ o(P, { children: e.tooltipItem }),
19
+ tooltipItem: /* @__PURE__ */ o($, { children: e.tooltipItem }),
19
20
  alwaysVisible: !0,
20
21
  renderAs: "primary",
21
22
  // Deprecate this
@@ -25,7 +26,7 @@ const H = ({ coachmark: t }) => {
25
26
  type: d.TOOLTIP,
26
27
  isAnimated: !0
27
28
  };
28
- }, [t.indicator]), I = p(() => {
29
+ }, [p, t.indicator]), y = s(() => {
29
30
  const e = t.indicator;
30
31
  return {
31
32
  ...e,
@@ -33,12 +34,12 @@ const H = ({ coachmark: t }) => {
33
34
  nudgePointerY: r + (e.nudgePointerY ?? 0)
34
35
  };
35
36
  }, [t.indicator, n, r]);
36
- return !i || !t.isActive ? null : t.type === d.TOOLTIP ? l() ? /* @__PURE__ */ g(f, { children: [
37
+ return !i || !t.isActive ? null : t.type === d.TOOLTIP ? l() ? /* @__PURE__ */ m(f, { children: [
37
38
  t.elementToHighlight,
38
- /* @__PURE__ */ o(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(m, { ...u, children: /* @__PURE__ */ o("div", { style: { height: h, width: C } }) }) })
39
- ] }) : /* @__PURE__ */ o(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(m, { ...u, children: t.elementToHighlight }) }) : t.type === d.NUDGE ? /* @__PURE__ */ g(f, { children: [
39
+ /* @__PURE__ */ o(u, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(T, { ...g, children: /* @__PURE__ */ o("div", { style: { height: h, width: I } }) }) })
40
+ ] }) : /* @__PURE__ */ o(u, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(T, { ...g, children: t.elementToHighlight }) }) : t.type === d.NUDGE ? /* @__PURE__ */ m(f, { children: [
40
41
  /* @__PURE__ */ o(
41
- s,
42
+ u,
42
43
  {
43
44
  $top: l() ? 0 : r,
44
45
  $left: l() ? 0 : n,
@@ -46,10 +47,10 @@ const H = ({ coachmark: t }) => {
46
47
  children: t.elementToHighlight
47
48
  }
48
49
  ),
49
- /* @__PURE__ */ o(y, { zIndex: T + 1, ...I })
50
+ /* @__PURE__ */ o(O, { zIndex: p + 1, ...y })
50
51
  ] }) : null;
51
52
  };
52
53
  export {
53
- H as Coachmark
54
+ X as Coachmark
54
55
  };
55
56
  //# sourceMappingURL=coachmark.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coachmark.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../ui/nudge/nudge-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport React, { useMemo } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Nudge from '../../../ui/nudge/nudge';\nimport { BLUR_OVERLAY_Z_INDEX, IndicatorType } from '../../use-journey/constants';\nimport * as S from './coachmark-styled';\nimport { toolTipGetXCoordinates } from './coachmark-utils';\n\nexport const Coachmark: React.FC<{ coachmark: ICoachmarkProps }> = ({ coachmark }) => {\n const targetElement = coachmark.originalElementToHighlightRef.current;\n const { top = 0, left = 0, height = 0, width = 0 } = targetElement?.getBoundingClientRect() || {};\n\n const isAbsolute = useMemo(() => {\n return () => {\n if (!targetElement) return false;\n\n return window.getComputedStyle(targetElement).position === 'absolute';\n };\n }, [targetElement]);\n\n const tooltipProps = useMemo(() => {\n const arrowToolTipProps = coachmark.indicator as IArrowTooltipProps;\n\n return {\n width: 264, // Can be over ridden\n tooltipXCoOrdinates:\n toolTipGetXCoordinates(arrowToolTipProps.position) +\n (arrowToolTipProps.tooltipXCoOrdinates ?? 0), // For absolutely positioned elements\n zIndex: BLUR_OVERLAY_Z_INDEX + 1,\n ...arrowToolTipProps,\n tooltipItem: <S.CoachmarkBody>{arrowToolTipProps.tooltipItem}</S.CoachmarkBody>,\n alwaysVisible: true,\n renderAs: 'primary', // Deprecate this\n borderWidth: 1,\n arrowColor: 'WHITE',\n borderColor: 'WHITE',\n type: IndicatorType.TOOLTIP,\n isAnimated: true,\n } as IArrowTooltipProps;\n }, [coachmark.indicator]);\n\n const nudgeProps = useMemo(() => {\n const props: INudgeProps = coachmark.indicator as INudgeProps;\n\n return {\n ...props,\n nudgePointerX: left + (props.nudgePointerX ?? 0),\n nudgePointerY: top + (props.nudgePointerY ?? 0),\n };\n }, [coachmark.indicator, left, top]);\n\n if (!targetElement || !coachmark.isActive) {\n return null;\n }\n\n if (coachmark.type === IndicatorType.TOOLTIP) {\n if (isAbsolute()) {\n return (\n <>\n {coachmark.elementToHighlight}\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>\n <div style={{ height, width }} />\n </ArrowTooltip>\n </S.ClonedElementWrapper>\n </>\n );\n }\n\n return (\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>{coachmark.elementToHighlight}</ArrowTooltip>\n </S.ClonedElementWrapper>\n );\n }\n\n if (coachmark.type === IndicatorType.NUDGE) {\n return (\n <>\n <S.ClonedElementWrapper\n $top={isAbsolute() ? 0 : top}\n $left={isAbsolute() ? 0 : left}\n $position={isAbsolute() ? 'relative' : 'absolute'}\n >\n {coachmark.elementToHighlight}\n </S.ClonedElementWrapper>\n <Nudge zIndex={BLUR_OVERLAY_Z_INDEX + 1} {...nudgeProps} />\n </>\n );\n }\n\n return null;\n};\n"],"names":["Coachmark","coachmark","targetElement","top","left","height","width","isAbsolute","useMemo","tooltipProps","arrowToolTipProps","toolTipGetXCoordinates","BLUR_OVERLAY_Z_INDEX","jsx","S.CoachmarkBody","IndicatorType","nudgeProps","props","jsxs","Fragment","S.ClonedElementWrapper","ArrowTooltip","Nudge"],"mappings":";;;;;;;AAYO,MAAMA,IAAsD,CAAC,EAAE,WAAAC,QAAgB;AAC9E,QAAAC,IAAgBD,EAAU,8BAA8B,SACxD,EAAE,KAAAE,IAAM,GAAG,MAAAC,IAAO,GAAG,QAAAC,IAAS,GAAG,OAAAC,IAAQ,EAAE,KAAIJ,KAAA,gBAAAA,EAAe,4BAA2B,CAAA,GAEzFK,IAAaC,EAAQ,MAClB,MACAN,IAEE,OAAO,iBAAiBA,CAAa,EAAE,aAAa,aAFhC,IAI5B,CAACA,CAAa,CAAC,GAEZO,IAAeD,EAAQ,MAAM;AACjC,UAAME,IAAoBT,EAAU;AAE7B,WAAA;AAAA,MACL,OAAO;AAAA;AAAA,MACP,qBACEU,EAAuBD,E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OAAOI,MAAe,IAAIH;AAAA,QAC1B,WAAWG,MAAe,aAAa;AAAA,QAEtC,UAAUN,EAAA;AAAA,MAAA;AAAA,IACb;AAAA,sBACCqB,GAAM,EAAA,QAAQV,IAAuB,GAAI,GAAGI,GAAY;AAAA,EAC3D,EAAA,CAAA,IAIG;AACT;"}
1
+ {"version":3,"file":"coachmark.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../ui/nudge/nudge-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport React, { useMemo } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Nudge from '../../../ui/nudge/nudge';\nimport { getTheme } from '../../../ui/theme/get-theme';\nimport { IndicatorType } from '../../use-journey/constants';\nimport * as S from './coachmark-styled';\nimport { toolTipGetXCoordinates } from './coachmark-utils';\n\nexport const Coachmark: React.FC<{ coachmark: ICoachmarkProps }> = ({ coachmark }) => {\n const targetElement = coachmark.originalElementToHighlightRef.current;\n const { top = 0, left = 0, height = 0, width = 0 } = targetElement?.getBoundingClientRect() || {};\n\n const { zIndex } = getTheme();\n const BLUR_OVERLAY_Z_INDEX = zIndex.JOURNEY_OVERLAY;\n\n const isAbsolute = useMemo(() => {\n return () => {\n if (!targetElement) return false;\n\n return window.getComputedStyle(targetElement).position === 'absolute';\n };\n }, [targetElement]);\n\n const tooltipProps = useMemo(() => {\n const arrowToolTipProps = coachmark.indicator as IArrowTooltipProps;\n\n return {\n width: 264, // Can be over ridden\n tooltipXCoOrdinates:\n toolTipGetXCoordinates(arrowToolTipProps.position) +\n (arrowToolTipProps.tooltipXCoOrdinates ?? 0), // For absolutely positioned elements\n zIndex: BLUR_OVERLAY_Z_INDEX + 1,\n ...arrowToolTipProps,\n tooltipItem: <S.CoachmarkBody>{arrowToolTipProps.tooltipItem}</S.CoachmarkBody>,\n alwaysVisible: true,\n renderAs: 'primary', // Deprecate this\n borderWidth: 1,\n arrowColor: 'WHITE',\n borderColor: 'WHITE',\n type: IndicatorType.TOOLTIP,\n isAnimated: true,\n } as IArrowTooltipProps;\n }, [BLUR_OVERLAY_Z_INDEX, coachmark.indicator]);\n\n const nudgeProps = useMemo(() => {\n const props: INudgeProps = coachmark.indicator as INudgeProps;\n\n return {\n ...props,\n nudgePointerX: left + (props.nudgePointerX ?? 0),\n nudgePointerY: top + (props.nudgePointerY ?? 0),\n };\n }, [coachmark.indicator, left, top]);\n\n if (!targetElement || !coachmark.isActive) {\n return null;\n }\n\n if (coachmark.type === IndicatorType.TOOLTIP) {\n if (isAbsolute()) {\n return (\n <>\n {coachmark.elementToHighlight}\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>\n <div style={{ height, width }} />\n </ArrowTooltip>\n </S.ClonedElementWrapper>\n </>\n );\n }\n\n return (\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>{coachmark.elementToHighlight}</ArrowTooltip>\n </S.ClonedElementWrapper>\n );\n }\n\n if (coachmark.type === IndicatorType.NUDGE) {\n return (\n <>\n <S.ClonedElementWrapper\n $top={isAbsolute() ? 0 : top}\n $left={isAbsolute() ? 0 : left}\n $position={isAbsolute() ? 'relative' : 'absolute'}\n >\n {coachmark.elementToHighlight}\n </S.ClonedElementWrapper>\n <Nudge zIndex={BLUR_OVERLAY_Z_INDEX + 1} {...nudgeProps} />\n </>\n );\n }\n\n return null;\n};\n"],"names":["Coachmark","coachmark","targetElement","top","left","height","width","zIndex","getTheme","BLUR_OVERLAY_Z_INDEX","isAbsolute","useMemo","tooltipProps","arrowToolTipProps","toolTipGetXCoordinates","jsx","S.CoachmarkBody","IndicatorType","nudgeProps","props","jsxs","Fragment","S.ClonedElementWrapper","ArrowTooltip","Nudge"],"mappings":";;;;;;;;AAaO,MAAMA,I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GAAA,EAAuB,WAAU,YAAW,MAAMnB,GAAK,OAAOC,GAC7D,UAAA,gBAAAW,EAACQ,KAAc,GAAGX,GAChB,4BAAC,OAAI,EAAA,OAAO,EAAE,QAAAP,GAAQ,OAAAC,EAAA,GAAS,EAAA,CACjC,EACF,CAAA;AAAA,EACF,EAAA,CAAA,sBAKDgB,GAAA,EAAuB,WAAU,YAAW,MAAMnB,GAAK,OAAOC,GAC7D,4BAACmB,GAAc,EAAA,GAAGX,GAAe,UAAAX,EAAU,oBAAmB,EAChE,CAAA,IAIAA,EAAU,SAASgB,EAAc,QAG/B,gBAAAG,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAN;AAAA,MAACO;AAAAA,MAAA;AAAA,QACC,MAAMZ,MAAe,IAAIP;AAAA,QACzB,OAAOO,MAAe,IAAIN;AAAA,QAC1B,WAAWM,MAAe,aAAa;AAAA,QAEtC,UAAUT,EAAA;AAAA,MAAA;AAAA,IACb;AAAA,sBACCuB,GAAM,EAAA,QAAQf,IAAuB,GAAI,GAAGS,GAAY;AAAA,EAC3D,EAAA,CAAA,IAIG;AACT;"}
@@ -1,7 +1,5 @@
1
- var e = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.NUDGE = "nudge", t))(e || {});
2
- const o = 1e3;
1
+ var t = /* @__PURE__ */ ((r) => (r.TOOLTIP = "tooltip", r.NUDGE = "nudge", r))(t || {});
3
2
  export {
4
- o as BLUR_OVERLAY_Z_INDEX,
5
- e as IndicatorType
3
+ t as IndicatorType
6
4
  };
7
5
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/journey/use-journey/constants.ts"],"sourcesContent":["export enum IndicatorType {\n TOOLTIP = 'tooltip',\n NUDGE = 'nudge',\n}\nexport const BLUR_OVERLAY_Z_INDEX = 1000;\n"],"names":["IndicatorType","BLUR_OVERLAY_Z_INDEX"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAIL,MAAMC,IAAuB;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/journey/use-journey/constants.ts"],"sourcesContent":["export enum IndicatorType {\n TOOLTIP = 'tooltip',\n NUDGE = 'nudge',\n}\n"],"names":["IndicatorType"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,14 +1,13 @@
1
1
  import o from "styled-components";
2
- import { BLUR_OVERLAY_Z_INDEX as t } from "./constants.js";
3
- const e = o.div`
2
+ const i = o.div`
4
3
  position: fixed;
5
4
  top: 0;
6
5
  right: 0;
7
6
  bottom: 0;
8
7
  left: 0;
9
- z-index: ${t};
8
+ z-index: ${({ theme: t }) => t.zIndex.JOURNEY_OVERLAY};
10
9
  `;
11
10
  export {
12
- e as Overlay
11
+ i as Overlay
13
12
  };
14
13
  //# sourceMappingURL=journey-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"journey-styled.js","sources":["../../../../src/features/journey/use-journey/journey-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BLUR_OVERLAY_Z_INDEX } from './constants';\n\nexport const Overlay = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: ${BLUR_OVERLAY_Z_INDEX};\n`;\n"],"names":["Overlay","styled","BLUR_OVERLAY_Z_INDEX"],"mappings":";;AAIO,MAAMA,IAAUC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMjBC,CAAoB;AAAA;"}
1
+ {"version":3,"file":"journey-styled.js","sources":["../../../../src/features/journey/use-journey/journey-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const Overlay = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: ${({ theme }) => theme.zIndex.JOURNEY_OVERLAY};\n`;\n"],"names":["Overlay","styled","theme"],"mappings":";AAEO,MAAMA,IAAUC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMjB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,eAAe;AAAA;"}
@@ -13,7 +13,8 @@ const _ = {
13
13
  //whiteboard
14
14
  QUESTION_TIPS: -1,
15
15
  DESMOS_CALCULATOR: 2,
16
- GOAL_CHAPTER_SHEETS_MENU: 4
16
+ GOAL_CHAPTER_SHEETS_MENU: 4,
17
+ JOURNEY_OVERLAY: 1e3
17
18
  };
18
19
  export {
19
20
  _ as ZINDEX
@@ -1 +1 @@
1
- {"version":3,"file":"z-index.js","sources":["../../../../src/features/ui/constants/z-index.ts"],"sourcesContent":["const ZINDEX = {\n CHAPTER_CROWN_ICON: 4,\n CHAPTER_PLUS_ICON: 2,\n CHAPTER_PROGRESS_SVG: 1,\n LPAR_SHEET_ITEM_BOTTOM_DASH_BOX: 1,\n LPAR_SHEET_ITEM_TOP_VERTICAL_ICON: 2,\n MODAL: 20,\n SAT_SUMMARY_SCORE: 25, //* SAT_SUMMARY_SCORE > MODAL\n CANVAS_SCRIBBLING: 26, //* CANVAS_SCRIBBLING > Learnosity\n TILE_CONTAINER: 30, //whiteboard\n QUESTION_TIPS: -1,\n DESMOS_CALCULATOR: 2,\n GOAL_CHAPTER_SHEETS_MENU: 4,\n} as const;\n\nexport { ZINDEX };\n"],"names":["ZINDEX"],"mappings":"AAAA,MAAMA,IAAS;AAAA,EACb,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,iCAAiC;AAAA,EACjC,mCAAmC;AAAA,EACnC,OAAO;AAAA,EACP,mBAAmB;AAAA;AAAA,EACnB,mBAAmB;AAAA;AAAA,EACnB,gBAAgB;AAAA;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,0BAA0B;AAC5B;"}
1
+ {"version":3,"file":"z-index.js","sources":["../../../../src/features/ui/constants/z-index.ts"],"sourcesContent":["const ZINDEX = {\n CHAPTER_CROWN_ICON: 4,\n CHAPTER_PLUS_ICON: 2,\n CHAPTER_PROGRESS_SVG: 1,\n LPAR_SHEET_ITEM_BOTTOM_DASH_BOX: 1,\n LPAR_SHEET_ITEM_TOP_VERTICAL_ICON: 2,\n MODAL: 20,\n SAT_SUMMARY_SCORE: 25, //* SAT_SUMMARY_SCORE > MODAL\n CANVAS_SCRIBBLING: 26, //* CANVAS_SCRIBBLING > Learnosity\n TILE_CONTAINER: 30, //whiteboard\n QUESTION_TIPS: -1,\n DESMOS_CALCULATOR: 2,\n GOAL_CHAPTER_SHEETS_MENU: 4,\n JOURNEY_OVERLAY: 1000,\n} as const;\n\nexport { ZINDEX };\n"],"names":["ZINDEX"],"mappings":"AAAA,MAAMA,IAAS;AAAA,EACb,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,iCAAiC;AAAA,EACjC,mCAAmC;AAAA,EACnC,OAAO;AAAA,EACP,mBAAmB;AAAA;AAAA,EACnB,mBAAmB;AAAA;AAAA,EACnB,gBAAgB;AAAA;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,0BAA0B;AAAA,EAC1B,iBAAiB;AACnB;"}
@@ -0,0 +1,7 @@
1
+ const t = () => ({
2
+ MOBILE: 600
3
+ });
4
+ export {
5
+ t as getBreakpointsConfig
6
+ };
7
+ //# sourceMappingURL=breakpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.js","sources":["../../../../src/features/ui/theme/breakpoints.ts"],"sourcesContent":["export const getBreakpointsConfig = () => {\n return {\n MOBILE: 600,\n };\n};\n"],"names":["getBreakpointsConfig"],"mappings":"AAAO,MAAMA,IAAuB,OAC3B;AAAA,EACL,QAAQ;AAAA;"}
@@ -1,30 +1,32 @@
1
1
  import r from "./arrow-tooltip.js";
2
- import e from "./button.js";
2
+ import { getBreakpointsConfig as e } from "./breakpoints.js";
3
+ import i from "./button.js";
3
4
  import m from "./checkbox.js";
4
- import g, { hues as i } from "./clrs.js";
5
- import n from "./input.js";
6
- import f from "./layout.js";
7
- import p from "./tab.js";
8
- import u from "./text.js";
9
- import x from "./text-button.js";
10
- import { getZIndexConfig as C } from "./z-index.js";
11
- const d = () => {
12
- const t = f(), { gutter: o } = t;
5
+ import g, { hues as n } from "./clrs.js";
6
+ import f from "./input.js";
7
+ import p from "./layout.js";
8
+ import u from "./tab.js";
9
+ import C from "./text.js";
10
+ import s from "./text-button.js";
11
+ import { getZIndexConfig as x } from "./z-index.js";
12
+ const w = () => {
13
+ const t = p(), { gutter: o } = t;
13
14
  return {
14
15
  arrowTooltip: r(),
15
- button: e(o),
16
+ button: i(o),
16
17
  colors: g(),
17
- hues: i,
18
- input: n(o),
18
+ hues: n,
19
+ input: f(o),
19
20
  checkbox: m(o),
20
21
  layout: t,
21
- tab: p(t.gutter),
22
- text: u(),
23
- textButton: x(),
24
- zIndex: C()
22
+ tab: u(t.gutter),
23
+ text: C(),
24
+ textButton: s(),
25
+ zIndex: x(),
26
+ breakpoints: e()
25
27
  };
26
28
  };
27
29
  export {
28
- d as getTheme
30
+ w as getTheme
29
31
  };
30
32
  //# sourceMappingURL=get-theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-theme.js","sources":["../../../../src/features/ui/theme/get-theme.ts"],"sourcesContent":["import type { DefaultTheme } from 'styled-components';\n\nimport getArrowTooltipConfig from './arrow-tooltip';\nimport getButtonConfig from './button';\nimport getCheckboxConfig from './checkbox';\nimport getColors, { hues } from './clrs';\nimport getInputConfig from './input';\nimport getLayout from './layout';\nimport getTabConfig from './tab';\nimport getTextTypes from './text';\nimport getTextButtonConfig from './text-button';\nimport { getZIndexConfig } from './z-index';\n\nconst getTheme: () => DefaultTheme = () => {\n const layout = getLayout();\n const { gutter } = layout;\n\n return {\n arrowTooltip: getArrowTooltipConfig(),\n button: getButtonConfig(gutter),\n colors: getColors(),\n hues: hues,\n input: getInputConfig(gutter),\n checkbox: getCheckboxConfig(gutter),\n layout,\n tab: getTabConfig(layout.gutter),\n text: getTextTypes(),\n textButton: getTextButtonConfig(),\n zIndex: getZIndexConfig(),\n };\n};\n\nexport { getTheme };\n"],"names":["getTheme","layout","getLayout","gutter","getArrowTooltipConfig","getButtonConfig","getColors","hues","getInputConfig","getCheckboxConfig","getTabConfig","getTextTypes","getTextButtonConfig","getZIndexConfig"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAA+B,MAAM;AACzC,QAAMC,IAASC,KACT,EAAE,QAAAC,EAAW,IAAAF;AAEZ,SAAA;AAAA,IACL,cAAcG,EAAsB;AAAA,IACpC,QAAQC,EAAgBF,CAAM;AAAA,IAC9B,QAAQG,EAAU;AAAA,IAClB,MAAAC;AAAA,IACA,OAAOC,EAAeL,CAAM;AAAA,IAC5B,UAAUM,EAAkBN,CAAM;AAAA,IAClC,QAAAF;AAAA,IACA,KAAKS,EAAaT,EAAO,MAAM;AAAA,IAC/B,MAAMU,EAAa;AAAA,IACnB,YAAYC,EAAoB;AAAA,IAChC,QAAQC,EAAgB;AAAA,EAAA;AAE5B;"}
1
+ {"version":3,"file":"get-theme.js","sources":["../../../../src/features/ui/theme/get-theme.ts"],"sourcesContent":["import type { DefaultTheme } from 'styled-components';\n\nimport getArrowTooltipConfig from './arrow-tooltip';\nimport { getBreakpointsConfig } from './breakpoints';\nimport getButtonConfig from './button';\nimport getCheckboxConfig from './checkbox';\nimport getColors, { hues } from './clrs';\nimport getInputConfig from './input';\nimport getLayout from './layout';\nimport getTabConfig from './tab';\nimport getTextTypes from './text';\nimport getTextButtonConfig from './text-button';\nimport { getZIndexConfig } from './z-index';\n\nconst getTheme: () => DefaultTheme = () => {\n const layout = getLayout();\n const { gutter } = layout;\n\n return {\n arrowTooltip: getArrowTooltipConfig(),\n button: getButtonConfig(gutter),\n colors: getColors(),\n hues: hues,\n input: getInputConfig(gutter),\n checkbox: getCheckboxConfig(gutter),\n layout,\n tab: getTabConfig(layout.gutter),\n text: getTextTypes(),\n textButton: getTextButtonConfig(),\n zIndex: getZIndexConfig(),\n breakpoints: getBreakpointsConfig(),\n };\n};\n\nexport { getTheme };\n"],"names":["getTheme","layout","getLayout","gutter","getArrowTooltipConfig","getButtonConfig","getColors","hues","getInputConfig","getCheckboxConfig","getTabConfig","getTextTypes","getTextButtonConfig","getZIndexConfig","getBreakpointsConfig"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAA+B,MAAM;AACzC,QAAMC,IAASC,KACT,EAAE,QAAAC,EAAW,IAAAF;AAEZ,SAAA;AAAA,IACL,cAAcG,EAAsB;AAAA,IACpC,QAAQC,EAAgBF,CAAM;AAAA,IAC9B,QAAQG,EAAU;AAAA,IAClB,MAAAC;AAAA,IACA,OAAOC,EAAeL,CAAM;AAAA,IAC5B,UAAUM,EAAkBN,CAAM;AAAA,IAClC,QAAAF;AAAA,IACA,KAAKS,EAAaT,EAAO,MAAM;AAAA,IAC/B,MAAMU,EAAa;AAAA,IACnB,YAAYC,EAAoB;AAAA,IAChC,QAAQC,EAAgB;AAAA,IACxB,aAAaC,EAAqB;AAAA,EAAA;AAEtC;"}
package/dist/index.d.ts CHANGED
@@ -425,6 +425,10 @@ declare enum GENDER {
425
425
 
426
426
  declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
427
427
 
428
+ declare const getBreakpointsConfig: () => {
429
+ MOBILE: number;
430
+ };
431
+
428
432
  declare const getButtonConfig: IGetButtonConfig;
429
433
 
430
434
  declare const getCheckboxConfig: IGetCheckboxConfig;
@@ -2872,6 +2876,7 @@ export declare interface ITheme {
2872
2876
  textButton: ReturnType<typeof getTextButtonConfig>;
2873
2877
  zIndex: ReturnType<typeof getZIndexConfig>;
2874
2878
  checkbox: ReturnType<typeof getCheckboxConfig>;
2879
+ breakpoints: ReturnType<typeof getBreakpointsConfig>;
2875
2880
  }
2876
2881
 
2877
2882
  declare interface ITile {
@@ -2993,6 +2998,7 @@ export declare interface ITutorialProps {
2993
2998
  onCross?: () => void;
2994
2999
  showProgress?: boolean;
2995
3000
  onTutorialPlayedOnce?: () => void;
3001
+ isJourneyActive?: boolean;
2996
3002
  }
2997
3003
 
2998
3004
  export declare interface ITutorialRef {
@@ -4972,11 +4978,6 @@ export declare const UpIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4972
4978
 
4973
4979
  export declare const useAutoPlayPermission: () => IAutoPlayPermissionContextType;
4974
4980
 
4975
- export declare const useBreakpoint: () => {
4976
- isMobile: boolean;
4977
- width: number;
4978
- };
4979
-
4980
4981
  export declare const useCanvasSyncBroker: (channelId: string, logEvent: (type: string, payload?: Record<string, unknown>) => void, initialCanvasData?: Array<IChannelMessage>) => {
4981
4982
  publishStrokes: ((message: unknown) => boolean) | undefined;
4982
4983
  channelStatus: ChannelStatus | undefined;
@@ -5182,6 +5183,7 @@ declare const ZINDEX: {
5182
5183
  readonly QUESTION_TIPS: -1;
5183
5184
  readonly DESMOS_CALCULATOR: 2;
5184
5185
  readonly GOAL_CHAPTER_SHEETS_MENU: 4;
5186
+ readonly JOURNEY_OVERLAY: 1000;
5185
5187
  };
5186
5188
 
5187
5189
  export { }