tycho-components 0.0.15-SNAPSHOT → 0.0.15-SNAPSHOT-2

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,4 +1,4 @@
1
- import Corpus from '../../configs/Corpus';
1
+ import { Corpus } from '../../configs/Corpus';
2
2
  declare function available(): Promise<import("axios").AxiosResponse<Corpus[], any>>;
3
3
  declare const CorpusService: {
4
4
  available: typeof available;
@@ -1,4 +1,6 @@
1
- type Corpus = {
1
+ import { CorpusImage } from './CorpusImage';
2
+ import { User } from './User';
3
+ export type Corpus = {
2
4
  uid: string;
3
5
  name: string;
4
6
  picture: string;
@@ -7,8 +9,30 @@ type Corpus = {
7
9
  parser?: string;
8
10
  active: boolean;
9
11
  opened: boolean;
12
+ papers?: RelatedPaper[];
13
+ owner?: User;
14
+ github?: Github;
15
+ descriptions?: Record<string, string>;
16
+ featuredDescriptions?: Record<string, string>;
17
+ details?: Record<string, string>;
18
+ images?: CorpusImage[];
10
19
  keyboardLayout?: string;
11
20
  };
21
+ export type Github = {
22
+ username: string;
23
+ token: string;
24
+ remote: string;
25
+ path: string;
26
+ branch: string;
27
+ message: string;
28
+ };
29
+ export type RelatedPaper = {
30
+ uid?: string;
31
+ title: string;
32
+ author: string;
33
+ link: string;
34
+ resume: string;
35
+ };
12
36
  export declare const EMPTY_CORPUS: {
13
37
  uid: string;
14
38
  name: string;
@@ -20,5 +44,9 @@ export declare const EMPTY_CORPUS: {
20
44
  active: boolean;
21
45
  opened: boolean;
22
46
  keyboardLayout: string;
47
+ papers: never[];
48
+ descriptions: {};
49
+ featuredDescriptions: {};
50
+ details: {};
51
+ github: {};
23
52
  };
24
- export default Corpus;
@@ -7,4 +7,9 @@ export const EMPTY_CORPUS = {
7
7
  active: true,
8
8
  opened: false,
9
9
  keyboardLayout: '',
10
+ papers: [],
11
+ descriptions: {},
12
+ featuredDescriptions: {},
13
+ details: {},
14
+ github: {},
10
15
  };
@@ -0,0 +1,10 @@
1
+ export type CorpusImage = {
2
+ type?: CorpusImageType;
3
+ path: string;
4
+ };
5
+ export type CorpusImageType = 'COVER' | 'BANNER' | 'SLIDESHOW';
6
+ export declare const CorpusImageTypeNames: {
7
+ COVER: string;
8
+ BANNER: string;
9
+ SLIDESHOW: string;
10
+ };
@@ -0,0 +1,5 @@
1
+ export const CorpusImageTypeNames = {
2
+ COVER: 'Cover',
3
+ BANNER: 'Banner',
4
+ SLIDESHOW: 'Slideshow',
5
+ };
@@ -1,5 +1,5 @@
1
1
  import ToastMessage from '../../AppToast/ToastMessage';
2
- import Corpus from '../Corpus';
2
+ import { Corpus } from '../Corpus';
3
3
  import { User } from '../User';
4
4
  import { StoreAction } from './types';
5
5
  export declare const corpus: (data: Corpus | undefined) => StoreAction;
@@ -1,5 +1,5 @@
1
1
  import ToastMessage from '../../AppToast/ToastMessage';
2
- import Corpus from '../Corpus';
2
+ import { Corpus } from '../Corpus';
3
3
  import { User } from '../User';
4
4
  export type UserStore = {
5
5
  corpus: Corpus | undefined;
@@ -1,4 +1,4 @@
1
- import Corpus from './Corpus';
1
+ import { Corpus } from './Corpus';
2
2
  export declare const useCorpusUtils: () => {
3
3
  getCorpus: () => Corpus | {
4
4
  uid: string;
@@ -11,6 +11,11 @@ export declare const useCorpusUtils: () => {
11
11
  active: boolean;
12
12
  opened: boolean;
13
13
  keyboardLayout: string;
14
+ papers: never[];
15
+ descriptions: {};
16
+ featuredDescriptions: {};
17
+ details: {};
18
+ github: {};
14
19
  };
15
20
  setCorpus: (thisCorpus: Corpus | undefined) => void;
16
21
  hasCorpus: () => boolean;
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export { validateFormField } from './AppEditable/FormField';
21
21
  export { convertEnum, convertList } from './AppEditable/FormFieldOption';
22
22
  export { commonResources } from './configs/Localization';
23
23
  export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
24
+ export { CorpusImageTypeNames } from './configs/CorpusImage';
24
25
  export { UserStatusNames } from './configs/User';
25
26
  export { default as DateUtils } from './functions/DateUtils';
26
27
  export { default as FormUtils } from './functions/FormUtils';
@@ -29,6 +30,10 @@ export { default as SecurityUtils } from './functions/SecurityUtils';
29
30
  export { default as UsabilityUtils } from './functions/UsabilityUtils';
30
31
  export type { AppEditableField } from './AppEditable/AppEditableField';
31
32
  export type { Comment } from './Comments/types/Comment';
33
+ export type { Corpus } from './configs/Corpus';
34
+ export type { CorpusImage } from './configs/CorpusImage';
35
+ export type { CorpusImageType } from './configs/CorpusImage';
36
+ export type { Github } from './configs/Corpus';
32
37
  export type { FormFieldOption } from './AppEditable/FormFieldOption';
33
38
  export type { FieldOperations, FormField } from './AppEditable/FormField';
34
39
  export type { KeyboardLayout } from './VirtualKeyboard/KeyboardCustomLayout';
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ export { validateFormField } from './AppEditable/FormField';
21
21
  export { convertEnum, convertList } from './AppEditable/FormFieldOption';
22
22
  export { commonResources } from './configs/Localization';
23
23
  export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
24
+ export { CorpusImageTypeNames } from './configs/CorpusImage';
24
25
  export { UserStatusNames } from './configs/User';
25
26
  export { default as DateUtils } from './functions/DateUtils';
26
27
  export { default as FormUtils } from './functions/FormUtils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.0.15-SNAPSHOT",
4
+ "version": "0.0.15-SNAPSHOT-2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {