@blinkk/root-cms 1.0.10 → 1.1.2

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/project.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as Schema } from './schema-RrFWaz5J.js';
1
+ import { S as Schema } from './schema-rxMNCT2a.js';
2
2
  import 'preact';
3
3
 
4
4
  /**
@@ -88,6 +88,18 @@ declare function file(field: Omit<FileField, 'type'>): FileField;
88
88
  type ObjectField = CommonFieldProps & {
89
89
  type: 'object';
90
90
  fields: FieldWithId[];
91
+ /** Defaults to "drawer". */
92
+ variant?: 'drawer';
93
+ /** Options for the "drawer" variant. */
94
+ drawerOptions?: {
95
+ /** Whether the drawer should initialize to the "collapsed" state. */
96
+ collapsed?: boolean;
97
+ /**
98
+ * Whether to render the drawer "inline" (this removes borders from the
99
+ * toggle button).
100
+ */
101
+ inline?: boolean;
102
+ };
91
103
  };
92
104
  declare function object(field: Omit<ObjectField, 'type'>): ObjectField;
93
105
  type ArrayField = CommonFieldProps & {
@@ -152,7 +164,15 @@ declare function defineSchema(schema: Schema): Schema;
152
164
  /** Defines the schema for a collection or reusable component. */
153
165
  declare const define: typeof defineSchema;
154
166
  type Collection = Schema & {
155
- /** URL path where the collection serves from. */
167
+ /**
168
+ * Domain where the collection serves from. Used for multi-domain sites,
169
+ * defaults to the "domain" value `from root.config.ts`.
170
+ */
171
+ domain?: string;
172
+ /**
173
+ * URL path where the collection serves from. This is what's displayed in the
174
+ * preview pane in the CMS.
175
+ */
156
176
  url?: string;
157
177
  /**
158
178
  * URL that can be used to render a preview page. Used by the side-by-side