@blinkk/root-cms 1.0.10 → 1.1.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/cli.js +5 -2
- package/dist/{client-17zSZX1E.d.ts → client-HeqoTA-T.d.ts} +10 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +21 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +21 -1
- package/dist/functions.js +21 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +27 -4
- package/dist/project.d.ts +1 -1
- package/dist/{schema-RrFWaz5J.d.ts → schema-qGw0bi19.d.ts} +15 -1
- package/dist/ui/ui.css +332 -9
- package/dist/ui/ui.js +6641 -1943
- package/package.json +5 -3
package/dist/project.d.ts
CHANGED
|
@@ -88,6 +88,12 @@ 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
|
+
collapsed?: boolean;
|
|
96
|
+
};
|
|
91
97
|
};
|
|
92
98
|
declare function object(field: Omit<ObjectField, 'type'>): ObjectField;
|
|
93
99
|
type ArrayField = CommonFieldProps & {
|
|
@@ -152,7 +158,15 @@ declare function defineSchema(schema: Schema): Schema;
|
|
|
152
158
|
/** Defines the schema for a collection or reusable component. */
|
|
153
159
|
declare const define: typeof defineSchema;
|
|
154
160
|
type Collection = Schema & {
|
|
155
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* Domain where the collection serves from. Used for multi-domain sites,
|
|
163
|
+
* defaults to the "domain" value `from root.config.ts`.
|
|
164
|
+
*/
|
|
165
|
+
domain?: string;
|
|
166
|
+
/**
|
|
167
|
+
* URL path where the collection serves from. This is what's displayed in the
|
|
168
|
+
* preview pane in the CMS.
|
|
169
|
+
*/
|
|
156
170
|
url?: string;
|
|
157
171
|
/**
|
|
158
172
|
* URL that can be used to render a preview page. Used by the side-by-side
|