@stacksjs/types 0.75.569 → 0.75.572
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/dashboard.d.ts +14 -0
- package/package.json +7 -7
package/dist/dashboard.d.ts
CHANGED
|
@@ -141,6 +141,8 @@ export declare interface DashboardModelOptions {
|
|
|
141
141
|
| 'data'
|
|
142
142
|
| 'app'
|
|
143
143
|
columns?: string[]
|
|
144
|
+
filters?: string[]
|
|
145
|
+
regions?: DashboardModelRegions
|
|
144
146
|
writes?: DashboardModelWrite[]
|
|
145
147
|
fields?: Record<string, DashboardModelField>
|
|
146
148
|
actions?: DashboardModelAction[]
|
|
@@ -241,3 +243,15 @@ export type DashboardConfig = Partial<DashboardOptions>;
|
|
|
241
243
|
*/
|
|
242
244
|
/** A write the dashboard can make to a model's rows, in the `useApi` route vocabulary. */
|
|
243
245
|
export type DashboardModelWrite = 'store' | 'update' | 'destroy';
|
|
246
|
+
/**
|
|
247
|
+
* Where on a model's pages an app component can be placed
|
|
248
|
+
* (`dashboard.regions`):
|
|
249
|
+
*
|
|
250
|
+
* - `listTop`: on the model's list, under its title and above its search.
|
|
251
|
+
* - `listBottom`: on the model's list, under its table.
|
|
252
|
+
* - `recordTop`: on a record's page, under its title and above its fields.
|
|
253
|
+
* - `recordBottom`: on a record's page, under everything else.
|
|
254
|
+
*/
|
|
255
|
+
export type DashboardModelRegionName = 'listTop' | 'listBottom' | 'recordTop' | 'recordBottom';
|
|
256
|
+
/** The component drawn at each place, by its name: `OrderTimeline`. */
|
|
257
|
+
export type DashboardModelRegions = Partial<Record<DashboardModelRegionName, string>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.572",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@stacksjs/bunpress": "^0.2.15",
|
|
66
66
|
"@stacksjs/clapp": "^0.2.17",
|
|
67
|
-
"@stacksjs/events": "0.75.
|
|
68
|
-
"@stacksjs/strings": "0.75.
|
|
67
|
+
"@stacksjs/events": "0.75.572",
|
|
68
|
+
"@stacksjs/strings": "0.75.572",
|
|
69
69
|
"@stacksjs/stx": "^0.2.864",
|
|
70
70
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
|
-
"bun-query-builder": "^0.
|
|
71
|
+
"bun-query-builder": "^0.6.0",
|
|
72
72
|
"meilisearch": "^0.62.0",
|
|
73
73
|
"stripe": "23.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.75.
|
|
76
|
+
"@stacksjs/validation": "0.75.572",
|
|
77
77
|
"better-dx": "^0.2.24"
|
|
78
78
|
},
|
|
79
79
|
"sideEffects": false,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@stacksjs/actions": "0.75.
|
|
103
|
-
"@stacksjs/scheduler": "0.75.
|
|
102
|
+
"@stacksjs/actions": "0.75.572",
|
|
103
|
+
"@stacksjs/scheduler": "0.75.572"
|
|
104
104
|
}
|
|
105
105
|
}
|