@diagonal-hq/cli 0.7.0 → 0.8.1

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
@@ -30,6 +30,26 @@ export type StaticValue =
30
30
  | readonly StaticValue[]
31
31
  | { readonly [key: string]: StaticValue };
32
32
 
33
+ /**
34
+ * The stable identity of a definition: a lowercase UUID string literal, such as
35
+ * `'3f2b8c1e-7d4a-4e9b-a6c5-1d0e9f8a7b6c'`. `diagonal check` writes one into a
36
+ * definition that has none. A file move or a rename keeps it. Do not change it.
37
+ */
38
+ export type DefinitionUid = string;
39
+
40
+ /**
41
+ * The editable, user-facing name of a definition in kebab-case, such as
42
+ * `'job-postings'`. It matches `^[a-z0-9]+(?:-[a-z0-9]+)*$`. A slug change
43
+ * keeps the identity of the definition.
44
+ */
45
+ export type DefinitionSlug = string;
46
+
47
+ /** The `uid` option of a definition. */
48
+ export type UidOption = { uid?: DefinitionUid };
49
+
50
+ /** The `slug` option of a definition. */
51
+ export type SlugOption = { slug?: DefinitionSlug };
52
+
33
53
  export type ConfigDefinition = {
34
54
  name: string;
35
55
  brand?: { readonly [key: string]: StaticValue };
@@ -13121,7 +13121,9 @@ type SlideoverProps = {
13121
13121
  side?: SlideoverSide;
13122
13122
 
13123
13123
  /**
13124
- * Panel width preset. Defaults to `md`.
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`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {