@paris-ias/trees 2.1.5 → 2.1.6

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,7 +1,7 @@
1
1
  import type { Form } from "../../index"
2
2
 
3
3
  // Inline type definitions
4
- export enum videoType {
4
+ export enum mediaType {
5
5
  Fellows = "FELLOWS",
6
6
  Events = "EVENTS",
7
7
  Ideas = "IDEAS",
@@ -34,6 +34,24 @@ export enum newsCategories {
34
34
  Video = "VIDEO",
35
35
  }
36
36
 
37
+ export enum publicationType {
38
+ // Publication
39
+ Article = "ARTICLE", // Aka PPIAS publication
40
+ Book = "BOOK",
41
+ BookChapter = "BOOK_CHAPTER",
42
+ ConferencePaper = "CONFERENCE_PAPER",
43
+ Data = "DATA",
44
+ Report = "REPORT",
45
+ Software = "SOFTWARE",
46
+ Thesis = "THESIS",
47
+ // Media
48
+ Audio = "AUDIO",
49
+ Podcast = "PODCAST",
50
+ Video = "VIDEO",
51
+ // News
52
+ News = "NEWS",
53
+ }
54
+
37
55
  export interface Publications {
38
56
  authors: [RelatedPeople]
39
57
  color?: string
@@ -56,21 +74,6 @@ export interface Publications {
56
74
  video?: Video
57
75
  }
58
76
 
59
- export enum publicationType {
60
- Article = "ARTICLE",
61
- ConferencePaper = "CONFERENCE_PAPER",
62
- Book = "BOOK",
63
- BookChapter = "BOOK_CHAPTER",
64
- Thesis = "THESIS",
65
- Report = "REPORT",
66
- Software = "SOFTWARE",
67
- News = "NEWS",
68
- Data = "DATA",
69
- Video = "VIDEO",
70
- Audio = "AUDIO",
71
- Podcast = "PODCAST",
72
- }
73
-
74
77
  export interface FormModule {
75
78
  _defaults: Record<string, any>
76
79
  schema: Record<string, Form>
@@ -183,17 +183,17 @@ const data = {
183
183
  "type": "Select",
184
184
  "items": {
185
185
  "Article": "ARTICLE",
186
- "ConferencePaper": "CONFERENCE_PAPER",
187
186
  "Book": "BOOK",
188
187
  "BookChapter": "BOOK_CHAPTER",
189
- "Thesis": "THESIS",
188
+ "ConferencePaper": "CONFERENCE_PAPER",
189
+ "Data": "DATA",
190
190
  "Report": "REPORT",
191
191
  "Software": "SOFTWARE",
192
- "News": "NEWS",
193
- "Data": "DATA",
194
- "Video": "VIDEO",
192
+ "Thesis": "THESIS",
195
193
  "Audio": "AUDIO",
196
- "Podcast": "PODCAST"
194
+ "Podcast": "PODCAST",
195
+ "Video": "VIDEO",
196
+ "News": "NEWS"
197
197
  },
198
198
  "multiple": true,
199
199
  "value": ""
@@ -230,13 +230,19 @@ const data = {
230
230
  "default": true,
231
231
  "switchIf": [
232
232
  {
233
- "groups": "NEWS"
233
+ "type": "NEWS"
234
234
  },
235
235
  {
236
236
  "type": "VIDEOS"
237
+ },
238
+ {
239
+ "type": "AUDIO"
240
+ },
241
+ {
242
+ "type": "PODCAST"
237
243
  }
238
244
  ],
239
- "disjonctive": false
245
+ "disjonctive": true
240
246
  },
241
247
  "value": ""
242
248
  },
@@ -278,18 +284,24 @@ const data = {
278
284
  "default": false,
279
285
  "switchIf": [
280
286
  {
281
- "groups": "NEWS"
287
+ "type": "NEWS"
282
288
  },
283
289
  {
284
290
  "type": "VIDEOS"
291
+ },
292
+ {
293
+ "type": "AUDIO"
294
+ },
295
+ {
296
+ "type": "PODCAST"
285
297
  }
286
298
  ],
287
- "disjonctive": false
299
+ "disjonctive": true
288
300
  },
289
301
  "multiple": true,
290
302
  "value": ""
291
303
  },
292
- "videoType": {
304
+ "mediaType": {
293
305
  "type": "Select",
294
306
  "items": {
295
307
  "Fellows": "FELLOWS",
@@ -303,9 +315,15 @@ const data = {
303
315
  "switchIf": [
304
316
  {
305
317
  "type": "VIDEOS"
318
+ },
319
+ {
320
+ "type": "AUDIO"
321
+ },
322
+ {
323
+ "type": "PODCAST"
306
324
  }
307
325
  ],
308
- "disjonctive": false
326
+ "disjonctive": true
309
327
  },
310
328
  "multiple": true,
311
329
  "value": ""
@@ -1,7 +1,7 @@
1
1
  import type { Sort, Views } from "../../index"
2
2
 
3
3
  // Inline type definitions
4
- export enum videoType {
4
+ export enum mediaType {
5
5
  Fellows = "FELLOWS",
6
6
  Events = "EVENTS",
7
7
  Ideas = "IDEAS",
@@ -34,6 +34,24 @@ export enum newsCategories {
34
34
  Video = "VIDEO",
35
35
  }
36
36
 
37
+ export enum publicationType {
38
+ // Publication
39
+ Article = "ARTICLE", // Aka PPIAS publication
40
+ Book = "BOOK",
41
+ BookChapter = "BOOK_CHAPTER",
42
+ ConferencePaper = "CONFERENCE_PAPER",
43
+ Data = "DATA",
44
+ Report = "REPORT",
45
+ Software = "SOFTWARE",
46
+ Thesis = "THESIS",
47
+ // Media
48
+ Audio = "AUDIO",
49
+ Podcast = "PODCAST",
50
+ Video = "VIDEO",
51
+ // News
52
+ News = "NEWS",
53
+ }
54
+
37
55
  export interface Publications {
38
56
  authors: [RelatedPeople]
39
57
  color?: string
@@ -56,21 +74,6 @@ export interface Publications {
56
74
  video?: Video
57
75
  }
58
76
 
59
- export enum publicationType {
60
- Article = "ARTICLE",
61
- ConferencePaper = "CONFERENCE_PAPER",
62
- Book = "BOOK",
63
- BookChapter = "BOOK_CHAPTER",
64
- Thesis = "THESIS",
65
- Report = "REPORT",
66
- Software = "SOFTWARE",
67
- News = "NEWS",
68
- Data = "DATA",
69
- Video = "VIDEO",
70
- Audio = "AUDIO",
71
- Podcast = "PODCAST",
72
- }
73
-
74
77
  export interface ListModule {
75
78
  items: Publications[]
76
79
  itemsPerPage?: number
@@ -181,17 +181,17 @@ const data = {
181
181
  "type": "Select",
182
182
  "items": {
183
183
  "Article": "ARTICLE",
184
- "ConferencePaper": "CONFERENCE_PAPER",
185
184
  "Book": "BOOK",
186
185
  "BookChapter": "BOOK_CHAPTER",
187
- "Thesis": "THESIS",
186
+ "ConferencePaper": "CONFERENCE_PAPER",
187
+ "Data": "DATA",
188
188
  "Report": "REPORT",
189
189
  "Software": "SOFTWARE",
190
- "News": "NEWS",
191
- "Data": "DATA",
192
- "Video": "VIDEO",
190
+ "Thesis": "THESIS",
193
191
  "Audio": "AUDIO",
194
- "Podcast": "PODCAST"
192
+ "Podcast": "PODCAST",
193
+ "Video": "VIDEO",
194
+ "News": "NEWS"
195
195
  },
196
196
  "multiple": true,
197
197
  "value": ""
@@ -228,13 +228,19 @@ const data = {
228
228
  "default": true,
229
229
  "switchIf": [
230
230
  {
231
- "groups": "NEWS"
231
+ "type": "NEWS"
232
232
  },
233
233
  {
234
234
  "type": "VIDEOS"
235
+ },
236
+ {
237
+ "type": "AUDIO"
238
+ },
239
+ {
240
+ "type": "PODCAST"
235
241
  }
236
242
  ],
237
- "disjonctive": false
243
+ "disjonctive": true
238
244
  },
239
245
  "value": ""
240
246
  },
@@ -276,18 +282,24 @@ const data = {
276
282
  "default": false,
277
283
  "switchIf": [
278
284
  {
279
- "groups": "NEWS"
285
+ "type": "NEWS"
280
286
  },
281
287
  {
282
288
  "type": "VIDEOS"
289
+ },
290
+ {
291
+ "type": "AUDIO"
292
+ },
293
+ {
294
+ "type": "PODCAST"
283
295
  }
284
296
  ],
285
- "disjonctive": false
297
+ "disjonctive": true
286
298
  },
287
299
  "multiple": true,
288
300
  "value": ""
289
301
  },
290
- "videoType": {
302
+ "mediaType": {
291
303
  "type": "Select",
292
304
  "items": {
293
305
  "Fellows": "FELLOWS",
@@ -301,9 +313,15 @@ const data = {
301
313
  "switchIf": [
302
314
  {
303
315
  "type": "VIDEOS"
316
+ },
317
+ {
318
+ "type": "AUDIO"
319
+ },
320
+ {
321
+ "type": "PODCAST"
304
322
  }
305
323
  ],
306
- "disjonctive": false
324
+ "disjonctive": true
307
325
  },
308
326
  "multiple": true,
309
327
  "value": ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",