touchstudy-core 0.1.70 → 0.1.72

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.
@@ -40,6 +40,7 @@ export declare const DEFAULT_LINE_CHART_OPTIONS: {
40
40
  show: boolean;
41
41
  fontSize: string;
42
42
  fontWeight: number;
43
+ height: number;
43
44
  markers: {
44
45
  width: number;
45
46
  height: number;
@@ -18,6 +18,9 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
18
18
  colors: string[];
19
19
  xaxis: {
20
20
  categories: any[];
21
+ tooltip: {
22
+ formatter: (val: number) => any;
23
+ };
21
24
  axisBorder: {
22
25
  show: boolean;
23
26
  color: string;
@@ -57,6 +60,7 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
57
60
  show: boolean;
58
61
  fontSize: string;
59
62
  fontWeight: number;
63
+ height: number;
60
64
  markers: {
61
65
  width: number;
62
66
  height: number;
@@ -93,6 +97,9 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
93
97
  };
94
98
  xaxis: {
95
99
  categories: any[];
100
+ tooltip: {
101
+ formatter: (val: number) => any;
102
+ };
96
103
  axisBorder: {
97
104
  show: boolean;
98
105
  color: string;
@@ -133,6 +140,7 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
133
140
  show: boolean;
134
141
  fontSize: string;
135
142
  fontWeight: number;
143
+ height: number;
136
144
  markers: {
137
145
  width: number;
138
146
  height: number;
@@ -9,5 +9,6 @@ export interface PassCodeCheckProps {
9
9
  registerUrl?: string;
10
10
  history: any;
11
11
  domain?: string;
12
+ as?: "page" | "component";
12
13
  }
13
14
  export declare const PassCodeCheck: FC<PassCodeCheckProps>;
package/dist/index.css CHANGED
@@ -486,8 +486,9 @@
486
486
  ._3fpky {
487
487
  overflow: hidden;
488
488
  display: -webkit-box;
489
+ line-clamp: 1;
489
490
  -webkit-box-orient: vertical;
490
- -webkit-line-clamp: 2;
491
+ -webkit-line-clamp: 1;
491
492
  line-height: 1.5;
492
493
  max-height: 3em;
493
494
  text-overflow: ellipsis;
package/dist/index.js CHANGED
@@ -11566,6 +11566,7 @@ var DEFAULT_LINE_CHART_OPTIONS = {
11566
11566
  show: true,
11567
11567
  fontSize: "12px",
11568
11568
  fontWeight: 600,
11569
+ height: 64,
11569
11570
  markers: {
11570
11571
  width: 16,
11571
11572
  height: 1
@@ -11833,11 +11834,17 @@ var useExamResult = function useExamResult(searchParam, history, examSessionId,
11833
11834
  }
11834
11835
  }),
11835
11836
  xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
11836
- categories: ["."].concat(Array.from({
11837
+ categories: [""].concat(Array.from({
11837
11838
  length: questionLength
11838
11839
  }, function (_, i) {
11839
11840
  return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
11840
- }), ["."])
11841
+ }), [""]),
11842
+ tooltip: {
11843
+ formatter: function formatter(val) {
11844
+ if (val > 1) return t(ORDER_NUMBERS[val - 1]);
11845
+ return null;
11846
+ }
11847
+ }
11841
11848
  }),
11842
11849
  yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
11843
11850
  tickAmount: questions.length + 1,
@@ -11913,11 +11920,17 @@ var useExamResult = function useExamResult(searchParam, history, examSessionId,
11913
11920
  }),
11914
11921
  colors: ['#3DC674', '#C3099A'],
11915
11922
  xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
11916
- categories: ["."].concat(Array.from({
11923
+ categories: [""].concat(Array.from({
11917
11924
  length: questionLength
11918
11925
  }, function (_, i) {
11919
11926
  return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
11920
- }), ["."])
11927
+ }), [""]),
11928
+ tooltip: {
11929
+ formatter: function formatter(val) {
11930
+ if (val > 1) return t(ORDER_NUMBERS[val - 1]);
11931
+ return null;
11932
+ }
11933
+ }
11921
11934
  }),
11922
11935
  yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
11923
11936
  tickAmount: questionLength + 1,
@@ -16380,6 +16393,8 @@ var PassCodeCheck = function PassCodeCheck(props) {
16380
16393
  var role = props.role,
16381
16394
  open = props.open,
16382
16395
  domain = props.domain,
16396
+ _props$as = props.as,
16397
+ as = _props$as === void 0 ? "component" : _props$as,
16383
16398
  onClose = props.onClose;
16384
16399
  var _usePassCodeCheck = usePassCodeCheck(props),
16385
16400
  academy = _usePassCodeCheck.academy,
@@ -16387,7 +16402,7 @@ var PassCodeCheck = function PassCodeCheck(props) {
16387
16402
  academyDomain = _usePassCodeCheck.academyDomain,
16388
16403
  email = _usePassCodeCheck.email,
16389
16404
  handleCheckPassCode = _usePassCodeCheck.handleCheckPassCode;
16390
- if (role !== exports.Role.Student || domain && isLoadingAcademy === false && !academy) return React__default.createElement(NotFound, null);
16405
+ if (role !== exports.Role.Student || domain && isLoadingAcademy === false && !academy) return as === "page" ? React__default.createElement(NotFound, null) : null;
16391
16406
  return React__default.createElement(React.Fragment, null, React__default.createElement(LoadingComponent, {
16392
16407
  isLoading: !!isLoadingAcademy
16393
16408
  }), !!email && !academyDomain && (!domain || !!academy) && React__default.createElement(PassCodeDialog, {