@diagonal-hq/cli 0.8.0 → 0.9.0
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/README.md +36 -11
- package/dist/cli.mjs +939 -584
- package/dist/index.d.ts +6 -5
- package/dist/sdk-contract.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare function defineResource<const TFields extends Record<string, Fiel
|
|
|
157
157
|
export type PageMetaResolver = { readonly type: string; readonly [key: string]: unknown };
|
|
158
158
|
|
|
159
159
|
export type PageRouteParam = {
|
|
160
|
-
/** The resource whose record the parameter names, as `Resources.<Name
|
|
160
|
+
/** The resource whose record the parameter names, as `Resources.<Name>.slug`. */
|
|
161
161
|
resource: ResourceReference;
|
|
162
162
|
/** The field the parameter matches. Defaults to the record id. */
|
|
163
163
|
lookupField?: string | null;
|
|
@@ -170,7 +170,7 @@ export type PageAuthorizer =
|
|
|
170
170
|
| null
|
|
171
171
|
| 'authenticated'
|
|
172
172
|
| {
|
|
173
|
-
/** The resource whose signed-in records may view the page, as `Resources.<Name
|
|
173
|
+
/** The resource whose signed-in records may view the page, as `Resources.<Name>.slug`. */
|
|
174
174
|
resource?: ResourceReference | null;
|
|
175
175
|
/** Permission ids. A viewer needs any one of them. */
|
|
176
176
|
permissions?: readonly string[];
|
|
@@ -227,9 +227,10 @@ export type NavigationDefinition = { id: string; items: readonly NavigationItem[
|
|
|
227
227
|
export declare function defineNavigation<const T extends NavigationDefinition>(navigation: T): T;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* The slug of a resource: its file name in `resources/`. Use
|
|
231
|
-
* from `@app/generated/resources`, which `diagonal check`
|
|
232
|
-
* and the build catch a wrong name. A slug string builds
|
|
230
|
+
* The slug of a resource: its file name in `resources/`. Use
|
|
231
|
+
* `Resources.<Name>.slug` from `@app/generated/resources`, which `diagonal check`
|
|
232
|
+
* writes, so the editor and the build catch a wrong name. A slug string builds
|
|
233
|
+
* with a warning.
|
|
233
234
|
*/
|
|
234
235
|
export type ResourceReference = string;
|
|
235
236
|
|
package/dist/sdk-contract.d.ts
CHANGED
|
@@ -13121,7 +13121,9 @@ type SlideoverProps = {
|
|
|
13121
13121
|
side?: SlideoverSide;
|
|
13122
13122
|
|
|
13123
13123
|
/**
|
|
13124
|
-
* Panel width preset
|
|
13124
|
+
* Panel width preset: `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `6xl`, or `full`.
|
|
13125
|
+
* Defaults to `md`. On desktop, `3xl`, `4xl`, and `6xl` use up to 80% of the viewport;
|
|
13126
|
+
* `full` is 100% wide.
|
|
13125
13127
|
*/
|
|
13126
13128
|
size?: SlideoverSize;
|
|
13127
13129
|
|
|
@@ -13130,7 +13132,7 @@ type SlideoverProps = {
|
|
|
13130
13132
|
|
|
13131
13133
|
type SlideoverSide = 'top' | 'right' | 'bottom' | 'left';
|
|
13132
13134
|
|
|
13133
|
-
type SlideoverSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
13135
|
+
type SlideoverSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '6xl' | 'full';
|
|
13134
13136
|
|
|
13135
13137
|
type SlotPickerProps = {
|
|
13136
13138
|
/** The result of `Sdk.hooks.useAvailableSlots`. */
|