@cuemath/leap 2.8.35-beta.0 → 2.8.35-rj-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/features/analytics-events/platform-events-student.js +6 -5
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +13 -15
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/circle-games/enum/circle-action-ids.js +5 -0
- package/dist/features/circle-games/enum/circle-action-ids.js.map +1 -0
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +40 -35
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
- package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.js +12 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.js.map +1 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar.js +11 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar.js.map +1 -0
- package/dist/features/circle-games/leaderboard/comps/leaderboard-item/leaderboard-item.js +6 -6
- package/dist/features/circle-games/leaderboard/comps/leaderboard-item/leaderboard-item.js.map +1 -1
- package/dist/features/circle-games/leaderboard/comps/streak-reduction-infobar/constants.js +5 -0
- package/dist/features/circle-games/leaderboard/comps/streak-reduction-infobar/constants.js.map +1 -0
- package/dist/features/circle-games/leaderboard/comps/streak-reduction-infobar/streak-reduction-infobar.js +50 -0
- package/dist/features/circle-games/leaderboard/comps/streak-reduction-infobar/streak-reduction-infobar.js.map +1 -0
- package/dist/features/circle-games/leaderboard/hooks/{useIntersectionObserver.js → use-intersection-observer/use-intersection-observer.tsx.js} +1 -1
- package/dist/features/circle-games/leaderboard/hooks/use-intersection-observer/use-intersection-observer.tsx.js.map +1 -0
- package/dist/features/circle-games/leaderboard/hooks/{useTimer.js → use-timer/use-timer.js} +1 -1
- package/dist/features/circle-games/leaderboard/hooks/use-timer/use-timer.js.map +1 -0
- package/dist/features/circle-games/leaderboard/leaderboard-styled.js +20 -16
- package/dist/features/circle-games/leaderboard/leaderboard-styled.js.map +1 -1
- package/dist/features/circle-games/leaderboard/leaderboard.js +96 -87
- package/dist/features/circle-games/leaderboard/leaderboard.js.map +1 -1
- package/dist/features/circle-games/utils/streak-reduction-localstorage-util.js +25 -0
- package/dist/features/circle-games/utils/streak-reduction-localstorage-util.js.map +1 -0
- package/dist/features/cue-canvas/cue-canvas-core.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +63 -54
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js +43 -42
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +73 -71
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/ui/grade-selector/grade-tab.js +15 -15
- package/dist/features/ui/grade-selector/grade-tab.js.map +1 -1
- package/dist/features/ui/tab/tab-styled.js +8 -7
- package/dist/features/ui/tab/tab-styled.js.map +1 -1
- package/dist/features/ui/tab/tab.js +31 -36
- package/dist/features/ui/tab/tab.js.map +1 -1
- package/dist/features/ui/theme/tab.js +1 -1
- package/dist/features/ui/theme/tab.js.map +1 -1
- package/dist/index.d.ts +44 -43
- package/dist/index.js +356 -354
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/sheet.js +0 -54
- package/dist/assets/line-icons/icons/sheet.js.map +0 -1
- package/dist/features/circle-games/leaderboard/hooks/useIntersectionObserver.js.map +0 -1
- package/dist/features/circle-games/leaderboard/hooks/useTimer.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js +0 -194
- package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/api/get-resource.js +0 -10
- package/dist/features/milestone/milestone-resources/resources-assign/api/get-resource.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +0 -9
- package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/api/lpar-resource-assign.js +0 -9
- package/dist/features/milestone/milestone-resources/resources-assign/api/lpar-resource-assign.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item-styled.js +0 -20
- package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item-styled.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item.js +0 -47
- package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item-styled.js +0 -22
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item-styled.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js +0 -60
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/utils.js +0 -6
- package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/utils.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resource-assign-analytics-events.js +0 -19
- package/dist/features/milestone/milestone-resources/resources-assign/resource-assign-analytics-events.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/no-resource-screen.js +0 -22
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/no-resource-screen.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items-styled.js +0 -17
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items-styled.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js +0 -95
- package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign-styled.js +0 -62
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign-styled.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +0 -189
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +0 -1
- package/dist/features/milestone/milestone-resources/resources-assign/utils.js +0 -8
- package/dist/features/milestone/milestone-resources/resources-assign/utils.js.map +0 -1
- package/dist/features/ui/inputs/searchable-input/searchable-input-styled.js +0 -28
- package/dist/features/ui/inputs/searchable-input/searchable-input-styled.js.map +0 -1
- package/dist/features/ui/inputs/searchable-input/searchable-input.js +0 -101
- package/dist/features/ui/inputs/searchable-input/searchable-input.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab-styled.js","sources":["../../../../src/features/ui/tab/tab-styled.tsx"],"sourcesContent":["import type { ITabWrapperProps } from './tab-types';\n\nimport styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\n\nconst TabWrapper = styled(FlexView)<ITabWrapperProps>(({\n theme,\n $selected,\n $size,\n $renderAs,\n $disabled,\n
|
1
|
+
{"version":3,"file":"tab-styled.js","sources":["../../../../src/features/ui/tab/tab-styled.tsx"],"sourcesContent":["import type { ITabWrapperProps } from './tab-types';\n\nimport styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\n\nconst TabWrapper = styled(FlexView)<ITabWrapperProps>(({\n theme,\n $width,\n $selected,\n $size,\n $renderAs,\n $disabled,\n}) => {\n const { colors, tab, layout } = theme;\n const { sizes, variants } = tab;\n const { height, paddingHorizontal } = sizes[$size];\n const { backgroundColorName, colorName, borderColorName, fontWeight } = variants[$renderAs];\n\n return `\n width: ${$width ? `${$width}px` : 'auto'};\n height:${height}px;\n padding:0 ${paddingHorizontal}px;\n border-radius:8px;\n cursor:${$disabled ? 'not-allowed' : 'pointer'};\n margin:${layout.gutter * 0.5}px;\n border:1px solid ${\n $disabled\n ? colors[borderColorName.disabled]\n : $selected\n ? colors[borderColorName.active]\n : colors[borderColorName.inactive]\n };\n background-color: ${\n $disabled\n ? colors[backgroundColorName.disabled]\n : $selected\n ? colors[backgroundColorName.active]\n : colors[backgroundColorName.inactive]\n };\n & div{\n font-weight:${\n $disabled ? fontWeight.disabled : $selected ? fontWeight.active : fontWeight.inactive\n };\n color: ${\n $disabled\n ? colors[colorName.disabled]\n : $selected\n ? colors[colorName.active]\n : colors[colorName.inactive]\n };\n }\n &:hover {\n background-color:${\n $disabled\n ? colors[backgroundColorName.disabled]\n : $selected\n ? colors[backgroundColorName.active]\n : colors[backgroundColorName.hover]\n };\n border-color: ${\n $disabled\n ? colors[borderColorName.disabled]\n : $selected\n ? colors[borderColorName.active]\n : colors[borderColorName.hover]\n };\n & div{\n font-weight:${fontWeight.hover};\n color:${\n $disabled\n ? colors[colorName.disabled]\n : $selected\n ? colors[colorName.active]\n : colors[colorName.hover]\n };\n } \n }\n `;\n});\n\nexport { TabWrapper };\n"],"names":["TabWrapper","styled","FlexView","theme","$width","$selected","$size","$renderAs","$disabled","colors","tab","layout","sizes","variants","height","paddingHorizontal","backgroundColorName","colorName","borderColorName","fontWeight"],"mappings":";;AAMA,MAAMA,IAAaC,EAAOC,CAAQ,EAAoB,CAAC;AAAA,EACrD,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAM,EAAE,QAAAC,GAAQ,KAAAC,GAAK,QAAAC,EAAA,IAAWR,GAC1B,EAAE,OAAAS,GAAO,UAAAC,EAAa,IAAAH,GACtB,EAAE,QAAAI,GAAQ,mBAAAC,EAAkB,IAAIH,EAAMN,CAAK,GAC3C,EAAE,qBAAAU,GAAqB,WAAAC,GAAW,iBAAAC,GAAiB,YAAAC,MAAeN,EAASN,CAAS;AAEnF,SAAA;AAAA,eACMH,IAAS,GAAGA,CAAM,OAAO,MAAM;AAAA,eAC/BU,CAAM;AAAA,kBACHC,CAAiB;AAAA;AAAA,eAEpBP,IAAY,gBAAgB,SAAS;AAAA,eACrCG,EAAO,SAAS,GAAG;AAAA,yBAE1BH,IACIC,EAAOS,EAAgB,QAAQ,IAC/Bb,IACEI,EAAOS,EAAgB,MAAM,IAC7BT,EAAOS,EAAgB,QAAQ,CACvC;AAAA,0BAEEV,IACIC,EAAOO,EAAoB,QAAQ,IACnCX,IACEI,EAAOO,EAAoB,MAAM,IACjCP,EAAOO,EAAoB,QAAQ,CAC3C;AAAA;AAAA,sBAGIR,IAAYW,EAAW,WAAWd,IAAYc,EAAW,SAASA,EAAW,QAC/E;AAAA,iBAEEX,IACIC,EAAOQ,EAAU,QAAQ,IACzBZ,IACEI,EAAOQ,EAAU,MAAM,IACvBR,EAAOQ,EAAU,QAAQ,CACjC;AAAA;AAAA;AAAA,2BAIET,IACIC,EAAOO,EAAoB,QAAQ,IACnCX,IACEI,EAAOO,EAAoB,MAAM,IACjCP,EAAOO,EAAoB,KAAK,CACxC;AAAA,wBAEER,IACIC,EAAOS,EAAgB,QAAQ,IAC/Bb,IACEI,EAAOS,EAAgB,MAAM,IAC7BT,EAAOS,EAAgB,KAAK,CACpC;AAAA;AAAA,wBAEgBC,EAAW,KAAK;AAAA,kBAE5BX,IACIC,EAAOQ,EAAU,QAAQ,IACzBZ,IACEI,EAAOQ,EAAU,MAAM,IACvBR,EAAOQ,EAAU,KAAK,CAC9B;AAAA;AAAA;AAAA;AAIV,CAAC;"}
|
@@ -1,40 +1,35 @@
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
children: /* @__PURE__ */ e(u, { $renderAs: s[r].textVariant, color: t ? "WHITE" : "BLACK", children: m })
|
33
|
-
}
|
34
|
-
);
|
35
|
-
}
|
36
|
-
), $ = l;
|
2
|
+
import { useTheme as s } from "styled-components";
|
3
|
+
import c from "../text/text.js";
|
4
|
+
import { TabWrapper as f } from "./tab-styled.js";
|
5
|
+
const T = ({
|
6
|
+
$renderAs: o = "primary",
|
7
|
+
$size: r = "regular",
|
8
|
+
label: n,
|
9
|
+
$selected: t,
|
10
|
+
$width: a,
|
11
|
+
$disabled: m,
|
12
|
+
onClick: i
|
13
|
+
}) => {
|
14
|
+
const {
|
15
|
+
tab: { sizes: p }
|
16
|
+
} = s();
|
17
|
+
return /* @__PURE__ */ e(
|
18
|
+
f,
|
19
|
+
{
|
20
|
+
$selected: t,
|
21
|
+
$width: a,
|
22
|
+
onClick: i,
|
23
|
+
$size: r,
|
24
|
+
$renderAs: o,
|
25
|
+
$disabled: m,
|
26
|
+
$justifyContent: "center",
|
27
|
+
$alignItems: "center",
|
28
|
+
children: /* @__PURE__ */ e(c, { $renderAs: p[r].textVariant, color: t ? "WHITE" : "BLACK", children: n })
|
29
|
+
}
|
30
|
+
);
|
31
|
+
}, d = T;
|
37
32
|
export {
|
38
|
-
|
33
|
+
d as default
|
39
34
|
};
|
40
35
|
//# sourceMappingURL=tab.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/tab/tab.tsx"],"sourcesContent":["import type { ITabProps } from './tab-types';\n\nimport React
|
1
|
+
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/tab/tab.tsx"],"sourcesContent":["import type { ITabProps } from './tab-types';\n\nimport React from 'react';\nimport { useTheme } from 'styled-components';\n\nimport Text from '../text/text';\nimport * as Styled from './tab-styled';\n\nconst TabComponent: React.FC<ITabProps> = ({\n $renderAs = 'primary',\n $size = 'regular',\n label,\n $selected,\n $width,\n $disabled,\n onClick,\n}) => {\n const {\n tab: { sizes },\n } = useTheme();\n\n return (\n <Styled.TabWrapper\n $selected={$selected}\n $width={$width}\n onClick={onClick}\n $size={$size}\n $renderAs={$renderAs}\n $disabled={$disabled}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <Text $renderAs={sizes[$size].textVariant} color={$selected ? 'WHITE' : 'BLACK'}>\n {label}\n </Text>\n </Styled.TabWrapper>\n );\n};\n\nexport default TabComponent;\n"],"names":["TabComponent","$renderAs","$size","label","$selected","$width","$disabled","onClick","sizes","useTheme","jsx","Styled.TabWrapper","Text","Tab"],"mappings":";;;;AAQA,MAAMA,IAAoC,CAAC;AAAA,EACzC,WAAAC,IAAY;AAAA,EACZ,OAAAC,IAAQ;AAAA,EACR,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACE,QAAA;AAAA,IACJ,KAAK,EAAE,OAAAC,EAAM;AAAA,MACXC,EAAS;AAGX,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAAP;AAAA,MACA,QAAAC;AAAA,MACA,SAAAE;AAAA,MACA,OAAAL;AAAA,MACA,WAAAD;AAAA,MACA,WAAAK;AAAA,MACA,iBAAgB;AAAA,MAChB,aAAY;AAAA,MAEZ,UAAA,gBAAAI,EAACE,GAAK,EAAA,WAAWJ,EAAMN,CAAK,EAAE,aAAa,OAAOE,IAAY,UAAU,SACrE,UACHD,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAU,IAAeb;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'body3',\n },\n small: {\n height: gutter * 2,\n paddingHorizontal: gutter * 0.
|
1
|
+
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'body3',\n },\n small: {\n height: gutter * 2,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'body2',\n },\n regular: {\n height: gutter * 2.5,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n medium: {\n height: gutter * 3,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n };\n\n const variants: Record<TTabVariants, ITabVariantConfig> = {\n primary: {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n hover: 'WHITE',\n disabled: 'GREY_1',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n hover: 'BLACK',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'GREY_3',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n fontWeight: {\n inactive: 400,\n active: 500,\n hover: 500,\n disabled: 400,\n },\n },\n };\n\n return { sizes, variants };\n};\n\nexport default getTabConfig;\n"],"names":["getTabConfig","gutter"],"mappings":"AASM,MAAAA,IAA8B,CAACC,OAqD5B,EAAE,OApDwC;AAAA,EAC/C,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAS;AAAA,IAC5B,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAS;AAAA,IAC5B,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA;AAAA,IACnB,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA;AAAA,IACnB,aAAa;AAAA,EACf;AAAA,GAgCc,UA7B0C;AAAA,EACxD,SAAS;AAAA,IACP,qBAAqB;AAAA,MACnB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,MACV,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AAAA;"}
|
package/dist/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ import type { Dispatch } from 'react';
|
|
9
9
|
import { FC } from 'react';
|
10
10
|
import { ForwardRefExoticComponent } from 'react';
|
11
11
|
import { HTMLAttributes } from 'react';
|
12
|
+
import { IChannelMessage } from '@cuemath/cue-message-broker';
|
12
13
|
import type { IframeHTMLAttributes } from 'react';
|
13
14
|
import type { InputHTMLAttributes } from 'react';
|
14
15
|
import { IProvidedProps } from 'google-maps-react';
|
@@ -165,6 +166,10 @@ export declare const ChevronLeftIcon: React_2.FC<IconProps_2>;
|
|
165
166
|
|
166
167
|
export declare const ChevronRightIcon: React_2.FC<IconProps>;
|
167
168
|
|
169
|
+
export declare enum CIRCLE_ACTION_IDS {
|
170
|
+
STREAK_DECREASED = "streak_decreased"
|
171
|
+
}
|
172
|
+
|
168
173
|
export declare enum CIRCLE_ONBOARDING_ANALYTICS_STEPS {
|
169
174
|
SKILL_ACTIVITY = "skill_activity",
|
170
175
|
GAMES_ACTIVITY = "games_activity",
|
@@ -298,8 +303,6 @@ export declare enum EPostGameStat {
|
|
298
303
|
POINT = "point"
|
299
304
|
}
|
300
305
|
|
301
|
-
export declare const EPResourceAssign: FC<IEPResourceAssign>;
|
302
|
-
|
303
306
|
export declare const EraserIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
304
307
|
|
305
308
|
declare const Error_2: React_2.FC<IErrorProps>;
|
@@ -831,6 +834,8 @@ export declare interface ICircleHomeDetails {
|
|
831
834
|
points: number;
|
832
835
|
streakDays: number;
|
833
836
|
streakStatus: TStreakStatus;
|
837
|
+
streakReduction: number;
|
838
|
+
streakDaysBeforeReduction: number;
|
834
839
|
tournamentRank: number;
|
835
840
|
projects: IProjects;
|
836
841
|
timestamps: ITodaysContentTimeStamps;
|
@@ -1035,17 +1040,6 @@ declare interface IEditMilestoneModalProps extends IMilestoneEditProps {
|
|
1035
1040
|
courseStream: TCourseStream;
|
1036
1041
|
}
|
1037
1042
|
|
1038
|
-
declare interface IEPResourceAssign {
|
1039
|
-
studentId: string;
|
1040
|
-
stream: TCourseStream;
|
1041
|
-
programId?: string;
|
1042
|
-
userMilestoneId?: string;
|
1043
|
-
onError: (errorMessage: string) => void;
|
1044
|
-
onResourceAssign: () => void;
|
1045
|
-
onExitResourceAssign: () => void;
|
1046
|
-
onViewResource: (resource: IResourceItemData) => void;
|
1047
|
-
}
|
1048
|
-
|
1049
1043
|
declare interface IErrorProps {
|
1050
1044
|
onTryAgain?: () => void;
|
1051
1045
|
height?: string | number;
|
@@ -1130,6 +1124,8 @@ declare interface IGetCircleHomeResponseModel {
|
|
1130
1124
|
points: number;
|
1131
1125
|
tournament_rank: number;
|
1132
1126
|
streak_days: number;
|
1127
|
+
streak_reduction: number;
|
1128
|
+
streak_days_before_reduction: number;
|
1133
1129
|
streak_status: 'pending' | 'completed';
|
1134
1130
|
projects: IProjects_2;
|
1135
1131
|
timestamps: ITimeStampsResponseModel;
|
@@ -1212,6 +1208,11 @@ declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape'
|
|
1212
1208
|
customBgColor?: TColorNames;
|
1213
1209
|
}
|
1214
1210
|
|
1211
|
+
declare interface IInfoBarProps {
|
1212
|
+
hue: THueNames;
|
1213
|
+
children: React.ReactNode;
|
1214
|
+
}
|
1215
|
+
|
1215
1216
|
export declare interface IInfoMessage {
|
1216
1217
|
message: string;
|
1217
1218
|
position: 'top' | 'bottom';
|
@@ -1355,6 +1356,10 @@ declare interface ILeaderboardProps {
|
|
1355
1356
|
userId: string;
|
1356
1357
|
onClose: () => void;
|
1357
1358
|
isLoading: boolean;
|
1359
|
+
streakInfo: {
|
1360
|
+
streakReduction: number;
|
1361
|
+
startTimestampToday: number;
|
1362
|
+
};
|
1358
1363
|
}
|
1359
1364
|
|
1360
1365
|
declare interface ILearningSheetData {
|
@@ -1983,6 +1988,8 @@ export declare enum IndicatorType {
|
|
1983
1988
|
|
1984
1989
|
export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
1985
1990
|
|
1991
|
+
export declare const InfoBar: React.FC<IInfoBarProps>;
|
1992
|
+
|
1986
1993
|
export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
1987
1994
|
|
1988
1995
|
export declare interface INudgeProps {
|
@@ -2060,6 +2067,7 @@ export declare interface IPlayer {
|
|
2060
2067
|
grade?: string;
|
2061
2068
|
avatar?: IAvatarLayer[] | null;
|
2062
2069
|
playerType: TUserTypes;
|
2070
|
+
countryCode: string;
|
2063
2071
|
}
|
2064
2072
|
|
2065
2073
|
export declare interface IPlayerStats {
|
@@ -2274,24 +2282,6 @@ declare interface IReferenceSheetProps {
|
|
2274
2282
|
};
|
2275
2283
|
}
|
2276
2284
|
|
2277
|
-
export declare interface IResourceItemData {
|
2278
|
-
boards: string[];
|
2279
|
-
created_on: string;
|
2280
|
-
created_on_ts: number;
|
2281
|
-
grades: string[];
|
2282
|
-
id: string;
|
2283
|
-
is_lesson_v3_enabled: boolean;
|
2284
|
-
is_live: boolean;
|
2285
|
-
learnosity_activity_ref: string;
|
2286
|
-
name: string;
|
2287
|
-
node_id: string;
|
2288
|
-
node_type: string;
|
2289
|
-
stream: TCourseStream;
|
2290
|
-
topics: string[];
|
2291
|
-
updated_on: string;
|
2292
|
-
updated_on_ts: number;
|
2293
|
-
}
|
2294
|
-
|
2295
2285
|
export declare interface IResponseAnalyticsProps extends Omit<IClickableAnalyticsProps, 'label'> {
|
2296
2286
|
}
|
2297
2287
|
|
@@ -2605,13 +2595,11 @@ export declare const isV3WorksheetAttempt: (attempt: IWorksheetAttemptModel) =>
|
|
2605
2595
|
declare interface ITabProps {
|
2606
2596
|
label: number | string;
|
2607
2597
|
$selected: boolean;
|
2608
|
-
$width?: number
|
2598
|
+
$width?: number;
|
2609
2599
|
$renderAs?: TTabVariants;
|
2610
2600
|
$size?: TTabSizes;
|
2611
2601
|
$disabled?: boolean;
|
2612
2602
|
onClick: () => void;
|
2613
|
-
shape?: 'curved' | 'square';
|
2614
|
-
minWidth?: number;
|
2615
2603
|
}
|
2616
2604
|
|
2617
2605
|
export declare interface ITabSizeConfig {
|
@@ -2766,7 +2754,7 @@ declare interface ITimeStampsResponseModel {
|
|
2766
2754
|
rush_hour_end_timestamp?: number;
|
2767
2755
|
}
|
2768
2756
|
|
2769
|
-
declare interface ITodaysContentTimeStamps {
|
2757
|
+
export declare interface ITodaysContentTimeStamps {
|
2770
2758
|
current: number;
|
2771
2759
|
startTimestamp: number;
|
2772
2760
|
endTimestamp: number;
|
@@ -2817,6 +2805,7 @@ declare interface ITrialSessionMetadata {
|
|
2817
2805
|
}
|
2818
2806
|
|
2819
2807
|
declare interface ITrialSessionProps {
|
2808
|
+
countryCode: string;
|
2820
2809
|
classStartedOn?: Date;
|
2821
2810
|
height?: string | number;
|
2822
2811
|
userType: TUserTypes;
|
@@ -3026,6 +3015,7 @@ export declare interface IWorksheetAttemptModel {
|
|
3026
3015
|
desmos_calculator_enabled: boolean;
|
3027
3016
|
due_date: number | null;
|
3028
3017
|
state: TLPARSheetAttemptState;
|
3018
|
+
canvas_data?: Array<IChannelMessage>;
|
3029
3019
|
}
|
3030
3020
|
|
3031
3021
|
export declare interface IWorksheetBehavior {
|
@@ -3273,14 +3263,15 @@ export declare enum JOURNEY_ID_STUDENT {
|
|
3273
3263
|
CIRCLE_LEADERBOARD_INTRO_JOURNEY = "CIRCLE_LEADERBOARD_INTRO_JOURNEY",
|
3274
3264
|
CIRCLE_POINTS_REWARD_JOURNEY = "CIRCLE_POINTS_REWARD_JOURNEY",
|
3275
3265
|
CIRCLE_STREAK_UPDATE_JOURNEY = "CIRCLE_STREAK_UPDATE_JOURNEY",
|
3276
|
-
CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY"
|
3266
|
+
CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY",
|
3267
|
+
CIRCLE_STREAK_REDUCTION_JOURNEY = "CIRCLE_STREAK_REDUCTION_JOURNEY"
|
3277
3268
|
}
|
3278
3269
|
|
3279
3270
|
export declare const JourneyProvider: FC<{
|
3280
3271
|
children: ReactNode;
|
3281
3272
|
}>;
|
3282
3273
|
|
3283
|
-
export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, }: ILeaderboardProps) => JSX_2.Element;
|
3274
|
+
export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, streakInfo, }: ILeaderboardProps) => JSX_2.Element;
|
3284
3275
|
|
3285
3276
|
export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloaderProps>>;
|
3286
3277
|
|
@@ -3576,7 +3567,8 @@ export declare enum PLATFORM_EVENTS_STUDENT {
|
|
3576
3567
|
STREAK_ICON_CLICKED = "streak_icon_clicked",
|
3577
3568
|
LEADERBOARD_BUTTON_CLICKED = "leaderboard_button_clicked",
|
3578
3569
|
ONBOARDING_STEP_VIEWED = "onboarding_step_viewed",
|
3579
|
-
ONBOARDING_STEP_COMPLETED = "onboarding_step_completed"
|
3570
|
+
ONBOARDING_STEP_COMPLETED = "onboarding_step_completed",
|
3571
|
+
COACHMARK_DISMISSED = "coachmark_dismissed"
|
3580
3572
|
}
|
3581
3573
|
|
3582
3574
|
export declare enum PLATFORM_EVENTS_TEACHER {
|
@@ -3781,8 +3773,6 @@ export declare const SHEET_STATE: Record<TSheetStateProps, TSheetStateProps>;
|
|
3781
3773
|
|
3782
3774
|
export declare const SheetError: NamedExoticComponent<ErrorProps>;
|
3783
3775
|
|
3784
|
-
export declare const SheetIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3785
|
-
|
3786
3776
|
export declare const SheetList: FC<ISheetsListProps>;
|
3787
3777
|
|
3788
3778
|
export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
|
@@ -3838,6 +3828,17 @@ declare const STICKER_BADGE: {
|
|
3838
3828
|
|
3839
3829
|
export declare const StreakIcon: React_2.FC<IStreakIconProps>;
|
3840
3830
|
|
3831
|
+
export declare class StreakReductionLocalStorageUtil {
|
3832
|
+
/**
|
3833
|
+
* Determines whether the streak reduction should be shown today.
|
3834
|
+
*/
|
3835
|
+
static showStreakReduction(storeKey: string, startTimestamp: number): boolean;
|
3836
|
+
/**
|
3837
|
+
* Call this when the user has dismissed the streak reduction.
|
3838
|
+
*/
|
3839
|
+
static markStreakReductionDismissed(storeKey: string, startTimestamp: number): void;
|
3840
|
+
}
|
3841
|
+
|
3841
3842
|
export declare const StrikedEyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3842
3843
|
|
3843
3844
|
export declare const StudentDetails: FC<IStudentDetailsProps>;
|
@@ -4828,7 +4829,7 @@ export declare const UpIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4828
4829
|
|
4829
4830
|
export declare const useAutoPlayPermission: () => IAutoPlayPermissionContextType;
|
4830
4831
|
|
4831
|
-
export declare const useCanvasSyncBroker: (channelId: string, logEvent: (type: string, payload?: Record<string, unknown>) => void) => {
|
4832
|
+
export declare const useCanvasSyncBroker: (channelId: string, logEvent: (type: string, payload?: Record<string, unknown>) => void, initialCanvasData?: Array<IChannelMessage>) => {
|
4832
4833
|
publishStrokes: ((message: unknown) => boolean) | undefined;
|
4833
4834
|
channelStatus: ChannelStatus | undefined;
|
4834
4835
|
closeChannel: () => void;
|
@@ -4879,9 +4880,9 @@ declare const useGetCircleHomeAPI: (initialId?: string, initialQuery?: IGetCircl
|
|
4879
4880
|
} & Record<string, unknown>) | undefined;
|
4880
4881
|
};
|
4881
4882
|
|
4882
|
-
export declare const useGetCircleHomeDetailsDal: (userId: string,
|
4883
|
+
export declare const useGetCircleHomeDetailsDal: (userId: string, grade: string) => Omit<ReturnType<typeof useGetCircleHomeAPI>, "data" | "get"> & {
|
4883
4884
|
data: ICircleHomeDetails | null;
|
4884
|
-
getCircleHomeDetails: () => void;
|
4885
|
+
getCircleHomeDetails: (countryCode: string) => void;
|
4885
4886
|
};
|
4886
4887
|
|
4887
4888
|
declare const useGetLeaderboard: (initialId?: string, initialQuery?: IGetLeaderboardPayloadModel | undefined) => {
|