@e-llm-studio/citation 0.0.40 → 0.0.42

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BookemonTest.d.ts","sourceRoot":"","sources":["../../src/BookemonTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY,+CAyMjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"BookemonTest.d.ts","sourceRoot":"","sources":["../../src/BookemonTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY,+CAoOjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const DatagestMonTest: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DatagestMonTest;
3
+ //# sourceMappingURL=DatagestMonTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatagestMonTest.d.ts","sourceRoot":"","sources":["../../src/DatagestMonTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,eAAe,+CAgEpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BookPreview.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/BookPreview/BookPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqQ3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"BookPreview.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/BookPreview/BookPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqP3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export interface IBookReview {
2
3
  text: string;
3
4
  source: string;
@@ -11,10 +12,21 @@ export interface IBookDetails {
11
12
  subjectCategories: string[];
12
13
  reviews: IBookReview[];
13
14
  }
14
- declare const Bookemon: ({ open, onClose, data, }: {
15
+ export interface IComingSoonOverlay {
16
+ header?: string;
17
+ subheader?: string;
18
+ icon?: React.ReactNode;
19
+ }
20
+ declare const Bookemon: ({ open, onClose, data, showComingSoon, comingSoonData, }: {
15
21
  open: boolean;
16
22
  onClose: () => void;
17
23
  data: any;
24
+ showComingSoon?: boolean | undefined;
25
+ comingSoonData?: {
26
+ header?: string | undefined;
27
+ subheader?: string | undefined;
28
+ icon?: React.ReactNode;
29
+ } | undefined;
18
30
  }) => import("react/jsx-runtime").JSX.Element;
19
31
  export default Bookemon;
20
32
  //# sourceMappingURL=Bookemon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bookemon.d.ts","sourceRoot":"","sources":["../../../../src/features/Bookemon/Bookemon.tsx"],"names":[],"mappings":"AAiEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AACD,QAAA,MAAM,QAAQ;UAKN,OAAO;aACJ,MAAM,IAAI;UACb,GAAG;6CAkGV,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Bookemon.d.ts","sourceRoot":"","sources":["../../../../src/features/Bookemon/Bookemon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAkKvD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,QAAA,MAAM,QAAQ;UAWN,OAAO;aACJ,MAAM,IAAI;UACb,GAAG;;;;;eAKA,MAAM,SAAS;;6CAsHzB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
1
+ export interface IBookReview {
2
+ text: string;
3
+ source: string;
4
+ }
5
+ export interface IBookDetails {
6
+ isbn: string;
7
+ isbn10: string;
8
+ imprint: string;
9
+ publisher: string;
10
+ age: string;
11
+ subjectCategories: string[];
12
+ reviews: IBookReview[];
13
+ }
14
+ declare const DatagestMon: ({ open, onClose, data, url }: {
15
+ open: boolean;
16
+ onClose: () => void;
17
+ data: any;
18
+ url?: string | undefined;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ export default DatagestMon;
21
+ //# sourceMappingURL=DatagestMon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatagestMon.d.ts","sourceRoot":"","sources":["../../../../src/features/DatagestMon/DatagestMon.tsx"],"names":[],"mappings":"AAwFA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AACD,QAAA,MAAM,WAAW;UAMT,OAAO;aACJ,MAAM,IAAI;UACb,GAAG;;6CAoCV,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface ProcessedData {
3
+ [key: string]: string | number | boolean | any;
4
+ }
5
+ interface ErrorData {
6
+ [key: string]: any;
7
+ }
8
+ interface SectionData {
9
+ processed_data?: ProcessedData;
10
+ error_data?: ErrorData;
11
+ }
12
+ interface DynamicDataDisplayProps {
13
+ data: {
14
+ [sectionName: string]: SectionData;
15
+ };
16
+ }
17
+ declare const DynamicDataDisplay: React.FC<DynamicDataDisplayProps>;
18
+ export default DynamicDataDisplay;
19
+ //# sourceMappingURL=DynamicDataPreviewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicDataPreviewer.d.ts","sourceRoot":"","sources":["../../../../../src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,UAAU,aAAa;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,GAAG,CAAC;CAChD;AAED,UAAU,SAAS;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE;QACJ,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CAAC;KACpC,CAAC;CACH;AA8JD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0DzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ url?: string;
3
+ onClose: () => void;
4
+ }
5
+ export default function EpubViewer({ url, onClose }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=EpubPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpubPreview.d.ts","sourceRoot":"","sources":["../../../../../src/features/DatagestMon/EpubPreviewer/EpubPreview.tsx"],"names":[],"mappings":"AASA,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAkBD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,GAAG,EAAG,OAAO,EAAC,EAAE,KAAK,2CAsJzD"}
@@ -0,0 +1,6 @@
1
+ import { ViewerLayout } from "../../types/epubItems";
2
+ /** Epub viewer layout size */
3
+ declare const viewerLayout: ViewerLayout;
4
+ export declare const contextmenuWidth = 160;
5
+ export default viewerLayout;
6
+ //# sourceMappingURL=viewerLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewerLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/styles/viewerLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,8BAA8B;AAC9B,QAAA,MAAM,YAAY,EAAE,YAMnB,CAAA;AAED,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,eAAe,YAAY,CAAA"}
@@ -0,0 +1,23 @@
1
+ export type EpubItem = {
2
+ id: string;
3
+ name: string;
4
+ size: number;
5
+ url: string;
6
+ };
7
+ /**
8
+ * Epub viewer layout size type
9
+ * @type
10
+ * @param MIN_VIEWER_WIDTH Viewer min width (px)
11
+ * @param MIN_VIEWER_HEIGHT Viewer min height (px)
12
+ * @param VIEWER_HEADER_HEIGHT Viewer header height (px)
13
+ * @param VIEWER_FOOTER_HEIGHT Viewer footer height (px)
14
+ * @param VIEWER_SIDEMENU_WIDTH Viewer sideMenu width (px)
15
+ */
16
+ export interface ViewerLayout {
17
+ MIN_VIEWER_WIDTH: number;
18
+ MIN_VIEWER_HEIGHT: number;
19
+ VIEWER_HEADER_HEIGHT: number;
20
+ VIEWER_FOOTER_HEIGHT: number;
21
+ VIEWER_SIDEMENU_WIDTH: number;
22
+ }
23
+ //# sourceMappingURL=epubItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epubItems.d.ts","sourceRoot":"","sources":["../../../src/types/epubItems.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAGD;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;CAC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -83,6 +83,7 @@
83
83
  "moment": "2.29.4",
84
84
  "moment-timezone": "0.5.34",
85
85
  "react-markdown": "^8.0.7",
86
+ "react-reader": "^2.0.13",
86
87
  "react-router-dom": "5.2.0",
87
88
  "react-scripts": ">=5.0.1",
88
89
  "react-syntax-highlighter": "^15.6.1",