@cmssy/cli 11.9.0 → 12.0.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/dist/index.js +14 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1196,7 +1196,7 @@ function scalarType(field) {
|
|
|
1196
1196
|
case "boolean":
|
|
1197
1197
|
return "boolean";
|
|
1198
1198
|
case "media":
|
|
1199
|
-
return field.multiple ? "CmssyMedia[]" : "CmssyMedia";
|
|
1199
|
+
return field.multiple ? "CmssyMedia[]" : "CmssyMedia | null";
|
|
1200
1200
|
case "file":
|
|
1201
1201
|
return field.multiple ? "CmssyFile[]" : "CmssyFile";
|
|
1202
1202
|
case "select":
|
|
@@ -1263,8 +1263,19 @@ function objectType(fields, depth) {
|
|
|
1263
1263
|
var PREAMBLE = `/** A translatable field: one string, or one per enabled language. */
|
|
1264
1264
|
export type CmssyLocalized = string | Record<string, string>;
|
|
1265
1265
|
|
|
1266
|
-
/**
|
|
1267
|
-
|
|
1266
|
+
/**
|
|
1267
|
+
* What a media field reads back. Mirrors \`ResolvedMedia\` in @cmssy/types.
|
|
1268
|
+
* A single media field is \`CmssyMedia | null\`: a reference whose asset was
|
|
1269
|
+
* deleted resolves to nothing. A gallery drops such entries instead.
|
|
1270
|
+
*/
|
|
1271
|
+
export interface CmssyMedia {
|
|
1272
|
+
id: string;
|
|
1273
|
+
url: string | null;
|
|
1274
|
+
visibility: "public" | "private";
|
|
1275
|
+
alt?: string;
|
|
1276
|
+
width?: number;
|
|
1277
|
+
height?: number;
|
|
1278
|
+
}
|
|
1268
1279
|
|
|
1269
1280
|
/** What a file field holds. Mirrors \`FileFieldValue\` in @cmssy/types. */
|
|
1270
1281
|
export type CmssyFile = string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "The cmssy CLI: `cmssy init` wires cmssy into an existing Next.js, Astro or React Router app; `cmssy link` connects it to a workspace and verifies the editor wiring.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"assets"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cmssy/core": "
|
|
30
|
+
"@cmssy/core": "12.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.0.0",
|