@stoker-platform/types 0.5.20 → 0.5.22
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/package.json +3 -3
- package/src/types/schema.ts +18 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "src/main.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fullcalendar/core": "^6.1.20",
|
|
26
26
|
"@google-cloud/storage": "^7.19.0",
|
|
27
|
-
"firebase": "^12.
|
|
28
|
-
"firebase-admin": "^13.
|
|
27
|
+
"firebase": "^12.10.0",
|
|
28
|
+
"firebase-admin": "^13.7.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/types/schema.ts
CHANGED
|
@@ -493,9 +493,26 @@ export interface CardsConfig {
|
|
|
493
493
|
export interface ImagesConfig {
|
|
494
494
|
roles?: StokerRole[]
|
|
495
495
|
imageField: string
|
|
496
|
-
size: "sm" | "md" | "lg"
|
|
496
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
497
497
|
maxHeaderLines?: 1 | 2
|
|
498
498
|
title?: string
|
|
499
|
+
customComponent?: {
|
|
500
|
+
component: React.FC<{
|
|
501
|
+
record: StokerRecord | undefined
|
|
502
|
+
parentRecord?: StokerRecord
|
|
503
|
+
collection: CollectionSchema
|
|
504
|
+
parentCollection?: CollectionSchema
|
|
505
|
+
isAssigning?: boolean
|
|
506
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
507
|
+
components: any
|
|
508
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
509
|
+
hooks: any
|
|
510
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
511
|
+
utils: any
|
|
512
|
+
}>
|
|
513
|
+
height: number
|
|
514
|
+
condition?: (parentCollection?: CollectionSchema, parentRecord?: StokerRecord, isAssigning?: boolean) => boolean
|
|
515
|
+
}
|
|
499
516
|
}
|
|
500
517
|
|
|
501
518
|
export interface MapConfig {
|