@glidevvr/storage-payload-types-pkg 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +14 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -286,7 +286,7 @@ export interface Brand {
286
286
  */
287
287
  footerLogo?: (string | null) | Media;
288
288
  /**
289
- * Suggested image dimensions: 512 by 512 pixels.
289
+ * Suggested image dimensions: 512 by 512 pixels. The image will be cropped to a square if it is not already.
290
290
  */
291
291
  favicon?: (string | null) | Media;
292
292
  primaryColor: string;
@@ -334,6 +334,9 @@ export interface Brand {
334
334
  export interface Media {
335
335
  id: string;
336
336
  tenant?: (string | null) | Tenant;
337
+ /**
338
+ * Many screen readers will cut off alt text at 125 characters, so try to limit your alt text to below 100 characters when possible.
339
+ */
337
340
  alt: string;
338
341
  caption?: {
339
342
  root: {
@@ -354,15 +357,15 @@ export interface Media {
354
357
  updatedBy?: string | null;
355
358
  updatedAt: string;
356
359
  createdAt: string;
357
- url?: string | null;
360
+ url: string;
358
361
  thumbnailURL?: string | null;
359
- filename?: string | null;
360
- mimeType?: string | null;
361
- filesize?: number | null;
362
- width?: number | null;
363
- height?: number | null;
364
- focalX?: number | null;
365
- focalY?: number | null;
362
+ filename: string;
363
+ mimeType: string;
364
+ filesize: number;
365
+ width: number;
366
+ height: number;
367
+ focalX: number;
368
+ focalY: number;
366
369
  sizes?: {
367
370
  thumbnail?: {
368
371
  url?: string | null;
@@ -1225,7 +1228,7 @@ export interface Menu {
1225
1228
  id: string;
1226
1229
  tenant?: (string | null) | Tenant;
1227
1230
  title: string;
1228
- location?: ('main_menu' | 'footer_menu_1' | 'footer_menu_2' | 'footer_menu_3' | 'footer_menu_4') | null;
1231
+ location: 'main_menu' | 'footer_menu_1' | 'footer_menu_2' | 'footer_menu_3' | 'footer_menu_4' | 'none';
1229
1232
  columns?: number | null;
1230
1233
  navItems?:
1231
1234
  | {
@@ -1324,7 +1327,7 @@ export interface Redirect {
1324
1327
  * If the URL is an internal page, it should be entered without a domain, with a leading slash. If the URL is an external URL, it should be entered with the full domain including the protocol (https://).
1325
1328
  */
1326
1329
  to: string;
1327
- type?: ('301' | '302') | null;
1330
+ type: 'permanent' | 'temporary';
1328
1331
  createdBy?: string | null;
1329
1332
  updatedBy?: string | null;
1330
1333
  updatedAt: string;