@readerseye2/cr_viewer 1.0.30 → 1.0.31
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/CR_Viewer.d.ts
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import { SectionData, ViewerEventCallback } from '@readerseye2/cr_type';
|
|
1
|
+
import { SectionData, ViewerEventCallback, QuizResult, QuizQuestionResult } from '@readerseye2/cr_type';
|
|
2
2
|
import { GazeSyncApi } from './stores/progress/crViewer_progress.provider';
|
|
3
3
|
import { CRViewerHandle } from './stores/eventBridge/viewerEventBridge.provider';
|
|
4
|
-
export type { CRViewerHandle, GazeSyncApi };
|
|
5
|
-
/** 문항별 결과 */
|
|
6
|
-
export type QuizQuestionResult = {
|
|
7
|
-
qid: string;
|
|
8
|
-
index: number;
|
|
9
|
-
question?: string;
|
|
10
|
-
score: number;
|
|
11
|
-
isCorrect: boolean;
|
|
12
|
-
selected: number[];
|
|
13
|
-
correctIdxes: number[];
|
|
14
|
-
ms: number;
|
|
15
|
-
timedOut: boolean;
|
|
16
|
-
};
|
|
17
|
-
/** 퀴즈 전체 완료 결과 */
|
|
18
|
-
export type QuizResult = {
|
|
19
|
-
sectionId: string;
|
|
20
|
-
total: number;
|
|
21
|
-
correct: number;
|
|
22
|
-
rate: number;
|
|
23
|
-
totalScore: number;
|
|
24
|
-
gainedScore: number;
|
|
25
|
-
timeMsTotal: number;
|
|
26
|
-
perQuestion: QuizQuestionResult[];
|
|
27
|
-
};
|
|
4
|
+
export type { CRViewerHandle, GazeSyncApi, QuizResult, QuizQuestionResult };
|
|
28
5
|
export type CRViewerProps = {
|
|
29
6
|
section: SectionData;
|
|
30
7
|
initialViewerState?: import('./stores/viewer/crViewer.store').CRViewerStoreOptions['init'];
|
package/dist/CR_Viewer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CR_Viewer.d.ts","sourceRoot":"","sources":["../src/CR_Vi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tE,QAAQ,CAAC,EAAE,WAAW,CAAC;IAGvB,mCAAmC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAGF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,OAAO,EACP,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,YAAY,EACZ,SAAiB,EACjB,SAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAsB,EACtB,aAAa,EACb,KAAa,GACd,EAAE,aAAa,2CA6Ef"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SectionData } from '@readerseye2/cr_type';
|
|
3
|
-
import { QuizResult } from '../../CR_Viewer';
|
|
2
|
+
import { SectionData, QuizResult } from '@readerseye2/cr_type';
|
|
4
3
|
type Props = PropsWithChildren<{
|
|
5
4
|
/** 초기에 특정 섹션을 미리 적재하고 싶을 때 */
|
|
6
5
|
initialState: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quiz_progress.provider.d.ts","sourceRoot":"","sources":["../../../src/stores/quizprogress/quiz_progress.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAG3E,OAAO,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"quiz_progress.provider.d.ts","sourceRoot":"","sources":["../../../src/stores/quizprogress/quiz_progress.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAG3E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,8BAA8B;IAC9B,YAAY,EAAE;QACZ,OAAO,EAAE,WAAW,CAAC;QACrB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,2CAqE7E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readerseye2/cr_viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@readerseye2/cr_type": "^1.0.
|
|
31
|
+
"@readerseye2/cr_type": "^1.0.134",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"react-icons": "^5.0.0",
|
|
34
34
|
"react-virtuoso": "^4.0.0",
|