math-main-components 0.0.165 → 0.0.166

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/index.d.ts CHANGED
@@ -32,12 +32,18 @@ export * from './components/Table';
32
32
  export * from './components/Tabs';
33
33
  export * from './components/TextWithIcon';
34
34
  export * from './components/UsageCard';
35
+ export * from './types/marketing/About';
35
36
  export * from './types/marketing/BenefitForIndividual';
36
37
  export * from './types/marketing/BenefitForSchool';
38
+ export * from './types/marketing/Concept';
39
+ export * from './types/marketing/Content';
40
+ export * from './types/marketing/Faq';
37
41
  export * from './types/marketing/Feature';
38
42
  export * from './types/marketing/FooterLink';
43
+ export * from './types/marketing/Home';
39
44
  export * from './types/marketing/News';
40
45
  export * from './types/marketing/Pricing';
46
+ export * from './types/marketing/StaticPage';
41
47
  export * from './types/marketing/Website';
42
48
  export * from './types/Calculator';
43
49
  export * from './types/Category';
@@ -53,12 +59,8 @@ export * from './types/Organization';
53
59
  export * from './types/Product';
54
60
  export * from './types/S3File';
55
61
  export * from './types/Subscription';
62
+ export * from './types/Theory';
56
63
  export * from './types/UploadSignature';
57
64
  export * from './types/Usage';
58
65
  export * from './types/User';
59
- export * from './types/marketing/About';
60
- export * from './types/marketing/Concept';
61
- export * from './types/marketing/Content';
62
- export * from './types/marketing/Faq';
63
- export * from './types/marketing/Home';
64
- export * from './types/marketing/StaticPage';
66
+ export * from './types/Why';
@@ -8,6 +8,6 @@ export type Category = {
8
8
  hasWhy: boolean;
9
9
  hasCalculators: boolean;
10
10
  hasPoster: boolean;
11
- childrenCategories: Category[];
12
- relatedCategories: Category[];
11
+ childrenCategories?: Category[];
12
+ relatedCategories?: Category[];
13
13
  };
@@ -3,6 +3,7 @@ import { Organization } from "./Organization";
3
3
  import { User } from "./User";
4
4
  export type Course = {
5
5
  id: string;
6
+ _type?: string;
6
7
  title: string;
7
8
  description: JSONContent;
8
9
  content: Object;
@@ -18,6 +18,6 @@ export type Ebook = {
18
18
  fileUrl?: string;
19
19
  description: PortableTextBlock[];
20
20
  shortDescription: string;
21
- categories: Category[];
21
+ categories?: Category[];
22
22
  product?: Product;
23
23
  };
@@ -10,11 +10,11 @@ export type Material = {
10
10
  fileCategory: string;
11
11
  shortDescription: string;
12
12
  description: string;
13
+ categories?: Category[];
13
14
  previewImage: {
14
15
  asset: {
15
16
  _ref: string;
16
17
  _type: string;
17
18
  };
18
19
  };
19
- categories: Category[];
20
20
  };
@@ -17,5 +17,5 @@ export type Movie = {
17
17
  fileUrl?: string;
18
18
  shortDescription: string;
19
19
  description: PortableTextBlock[];
20
- categories: Category[];
20
+ categories?: Category[];
21
21
  };
@@ -0,0 +1,17 @@
1
+ import { PortableTextBlock } from "sanity";
2
+ import { Category } from "./Category";
3
+ export type Theory = {
4
+ _id: string;
5
+ _type: 'theory';
6
+ previewImage: {
7
+ asset: {
8
+ _ref: string;
9
+ _type: string;
10
+ };
11
+ };
12
+ title: string;
13
+ author: string;
14
+ categories: Category[];
15
+ shortDescription: string;
16
+ content: PortableTextBlock[];
17
+ };
@@ -0,0 +1,17 @@
1
+ import { PortableTextBlock } from "sanity";
2
+ import { Category } from "./Category";
3
+ export type Why = {
4
+ _id: string;
5
+ _type: 'why';
6
+ previewImage: {
7
+ asset: {
8
+ _ref: string;
9
+ _type: string;
10
+ };
11
+ };
12
+ title: string;
13
+ author: string;
14
+ categories: Category[];
15
+ shortDescription: string;
16
+ content: PortableTextBlock[];
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.165",
3
+ "version": "0.0.166",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"