@readerseye2/cr_viewer 1.0.29 → 1.0.30
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 +5 -12
- package/dist/CR_Viewer.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1251 -1230
- package/dist/stores/progress/crViewer_progress.provider.d.ts +17 -2
- package/dist/stores/progress/crViewer_progress.provider.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { SectionData, SectionId, SectionSummary } from '@readerseye2/cr_type';
|
|
3
|
+
/** 외부 gaze store 동기화 인터페이스 (리렌더 없이 sync) */
|
|
4
|
+
export type GazeSyncApi = {
|
|
5
|
+
/** gaze 관련 상태 변경 구독 (리턴: unsubscribe) */
|
|
6
|
+
subscribe: (cb: () => void) => () => void;
|
|
7
|
+
/** 현재 gaze 상태 스냅샷 */
|
|
8
|
+
getSnapshot: () => {
|
|
9
|
+
canTracking: boolean;
|
|
10
|
+
canToggleShowGaze: boolean;
|
|
11
|
+
showGaze: boolean;
|
|
12
|
+
onToggleShowGaze?: () => void;
|
|
13
|
+
handleAskCalibration?: () => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
3
16
|
type InitialState = {
|
|
4
17
|
/** 섹션 식별자(옵션). 바뀌면 switchSection 트리거에만 사용 */
|
|
5
18
|
section: SectionData;
|
|
@@ -8,8 +21,10 @@ type InitialState = {
|
|
|
8
21
|
sectionList?: SectionSummary[];
|
|
9
22
|
onSectionChange?: (nextId: SectionId) => void;
|
|
10
23
|
};
|
|
11
|
-
|
|
24
|
+
type ProviderProps = {
|
|
12
25
|
initialState: InitialState;
|
|
13
|
-
|
|
26
|
+
gazeSync?: GazeSyncApi;
|
|
27
|
+
};
|
|
28
|
+
export declare function InternalCRViewerProgressProvider({ children, initialState, gazeSync, }: PropsWithChildren<ProviderProps>): import("react/jsx-runtime").JSX.Element;
|
|
14
29
|
export {};
|
|
15
30
|
//# sourceMappingURL=crViewer_progress.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crViewer_progress.provider.d.ts","sourceRoot":"","sources":["../../../src/stores/progress/crViewer_progress.provider.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"crViewer_progress.provider.d.ts","sourceRoot":"","sources":["../../../src/stores/progress/crViewer_progress.provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGnF,4CAA4C;AAC5C,MAAM,MAAM,WAAW,GAAG;IACxB,yCAAyC;IACzC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,qBAAqB;IACrB,WAAW,EAAE,MAAM;QACjB,WAAW,EAAE,OAAO,CAAC;QACrB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,QAAQ,EAAE,OAAO,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;QAC9B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;KACnC,CAAC;CACH,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,6CAA6C;IAC7C,OAAO,EAAE,WAAW,CAAC;IAErB,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE,iBAAiB,CAAC,aAAa,CAAC,2CAgDlC"}
|