@orion-studios/payload-studio 0.6.0-beta.20 → 0.6.0-beta.21

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.
@@ -378,6 +378,7 @@ function configureAdmin(config) {
378
378
  },
379
379
  ...studioEnabled ? {
380
380
  studioGlobals: {
381
+ exact: true,
381
382
  path: globalsBasePath,
382
383
  Component: {
383
384
  exportName: "AdminStudioGlobalsView",
@@ -389,10 +390,11 @@ function configureAdmin(config) {
389
390
  }
390
391
  }
391
392
  },
392
- studioPages: {
393
- path: pagesBasePath,
393
+ studioPageNew: {
394
+ exact: true,
395
+ path: `${pagesBasePath}/new`,
394
396
  Component: {
395
- exportName: "AdminStudioPagesListView",
397
+ exportName: "AdminStudioNewPageView",
396
398
  path: clientPath,
397
399
  clientProps: {
398
400
  ...studioNavClientProps,
@@ -401,6 +403,7 @@ function configureAdmin(config) {
401
403
  }
402
404
  },
403
405
  studioPageEditor: {
406
+ exact: true,
404
407
  path: `${pagesBasePath}/:id`,
405
408
  Component: {
406
409
  exportName: "AdminStudioPageEditView",
@@ -411,10 +414,11 @@ function configureAdmin(config) {
411
414
  }
412
415
  }
413
416
  },
414
- studioPageNew: {
415
- path: `${pagesBasePath}/new`,
417
+ studioPages: {
418
+ exact: true,
419
+ path: pagesBasePath,
416
420
  Component: {
417
- exportName: "AdminStudioNewPageView",
421
+ exportName: "AdminStudioPagesListView",
418
422
  path: clientPath,
419
423
  clientProps: {
420
424
  ...studioNavClientProps,
@@ -423,6 +427,7 @@ function configureAdmin(config) {
423
427
  }
424
428
  },
425
429
  studioContactForm: {
430
+ exact: true,
426
431
  path: contactFormStudioPath,
427
432
  Component: {
428
433
  exportName: "AdminStudioContactFormView",
@@ -435,20 +440,8 @@ function configureAdmin(config) {
435
440
  }
436
441
  },
437
442
  ...formsEnabled ? {
438
- studioForms: {
439
- path: formsBasePath,
440
- Component: {
441
- exportName: "AdminStudioFormsView",
442
- path: clientPath,
443
- clientProps: {
444
- ...studioNavClientProps,
445
- formsCollectionSlug,
446
- formSubmissionsCollectionSlug,
447
- formUploadsCollectionSlug
448
- }
449
- }
450
- },
451
443
  studioFormSubmission: {
444
+ exact: true,
452
445
  path: `${formsBasePath}/submissions/:id`,
453
446
  Component: {
454
447
  exportName: "AdminStudioFormSubmissionView",
@@ -462,6 +455,7 @@ function configureAdmin(config) {
462
455
  }
463
456
  },
464
457
  studioFormUpload: {
458
+ exact: true,
465
459
  path: `${formsBasePath}/uploads/:id`,
466
460
  Component: {
467
461
  exportName: "AdminStudioFormUploadView",
@@ -473,6 +467,7 @@ function configureAdmin(config) {
473
467
  }
474
468
  },
475
469
  studioFormDetail: {
470
+ exact: true,
476
471
  path: `${formsBasePath}/:id`,
477
472
  Component: {
478
473
  exportName: "AdminStudioFormDetailView",
@@ -483,12 +478,27 @@ function configureAdmin(config) {
483
478
  formSubmissionsCollectionSlug
484
479
  }
485
480
  }
481
+ },
482
+ studioForms: {
483
+ exact: true,
484
+ path: formsBasePath,
485
+ Component: {
486
+ exportName: "AdminStudioFormsView",
487
+ path: clientPath,
488
+ clientProps: {
489
+ ...studioNavClientProps,
490
+ formsCollectionSlug,
491
+ formSubmissionsCollectionSlug,
492
+ formUploadsCollectionSlug
493
+ }
494
+ }
486
495
  }
487
496
  } : {},
488
- studioMedia: {
489
- path: mediaBasePath,
497
+ studioMediaItem: {
498
+ exact: true,
499
+ path: `${mediaBasePath}/:id`,
490
500
  Component: {
491
- exportName: "AdminStudioMediaView",
501
+ exportName: "AdminStudioMediaItemView",
492
502
  path: clientPath,
493
503
  clientProps: {
494
504
  ...studioNavClientProps,
@@ -496,10 +506,11 @@ function configureAdmin(config) {
496
506
  }
497
507
  }
498
508
  },
499
- studioMediaItem: {
500
- path: `${mediaBasePath}/:id`,
509
+ studioMedia: {
510
+ exact: true,
511
+ path: mediaBasePath,
501
512
  Component: {
502
- exportName: "AdminStudioMediaItemView",
513
+ exportName: "AdminStudioMediaView",
503
514
  path: clientPath,
504
515
  clientProps: {
505
516
  ...studioNavClientProps,
@@ -508,6 +519,7 @@ function configureAdmin(config) {
508
519
  }
509
520
  },
510
521
  studioTools: {
522
+ exact: true,
511
523
  path: toolsBasePath,
512
524
  Component: {
513
525
  exportName: "AdminStudioToolsView",
package/dist/index.js CHANGED
@@ -433,6 +433,7 @@ function configureAdmin(config) {
433
433
  },
434
434
  ...studioEnabled ? {
435
435
  studioGlobals: {
436
+ exact: true,
436
437
  path: globalsBasePath,
437
438
  Component: {
438
439
  exportName: "AdminStudioGlobalsView",
@@ -444,10 +445,11 @@ function configureAdmin(config) {
444
445
  }
445
446
  }
446
447
  },
447
- studioPages: {
448
- path: pagesBasePath,
448
+ studioPageNew: {
449
+ exact: true,
450
+ path: `${pagesBasePath}/new`,
449
451
  Component: {
450
- exportName: "AdminStudioPagesListView",
452
+ exportName: "AdminStudioNewPageView",
451
453
  path: clientPath,
452
454
  clientProps: {
453
455
  ...studioNavClientProps,
@@ -456,6 +458,7 @@ function configureAdmin(config) {
456
458
  }
457
459
  },
458
460
  studioPageEditor: {
461
+ exact: true,
459
462
  path: `${pagesBasePath}/:id`,
460
463
  Component: {
461
464
  exportName: "AdminStudioPageEditView",
@@ -466,10 +469,11 @@ function configureAdmin(config) {
466
469
  }
467
470
  }
468
471
  },
469
- studioPageNew: {
470
- path: `${pagesBasePath}/new`,
472
+ studioPages: {
473
+ exact: true,
474
+ path: pagesBasePath,
471
475
  Component: {
472
- exportName: "AdminStudioNewPageView",
476
+ exportName: "AdminStudioPagesListView",
473
477
  path: clientPath,
474
478
  clientProps: {
475
479
  ...studioNavClientProps,
@@ -478,6 +482,7 @@ function configureAdmin(config) {
478
482
  }
479
483
  },
480
484
  studioContactForm: {
485
+ exact: true,
481
486
  path: contactFormStudioPath,
482
487
  Component: {
483
488
  exportName: "AdminStudioContactFormView",
@@ -490,20 +495,8 @@ function configureAdmin(config) {
490
495
  }
491
496
  },
492
497
  ...formsEnabled ? {
493
- studioForms: {
494
- path: formsBasePath,
495
- Component: {
496
- exportName: "AdminStudioFormsView",
497
- path: clientPath,
498
- clientProps: {
499
- ...studioNavClientProps,
500
- formsCollectionSlug,
501
- formSubmissionsCollectionSlug,
502
- formUploadsCollectionSlug
503
- }
504
- }
505
- },
506
498
  studioFormSubmission: {
499
+ exact: true,
507
500
  path: `${formsBasePath}/submissions/:id`,
508
501
  Component: {
509
502
  exportName: "AdminStudioFormSubmissionView",
@@ -517,6 +510,7 @@ function configureAdmin(config) {
517
510
  }
518
511
  },
519
512
  studioFormUpload: {
513
+ exact: true,
520
514
  path: `${formsBasePath}/uploads/:id`,
521
515
  Component: {
522
516
  exportName: "AdminStudioFormUploadView",
@@ -528,6 +522,7 @@ function configureAdmin(config) {
528
522
  }
529
523
  },
530
524
  studioFormDetail: {
525
+ exact: true,
531
526
  path: `${formsBasePath}/:id`,
532
527
  Component: {
533
528
  exportName: "AdminStudioFormDetailView",
@@ -538,12 +533,27 @@ function configureAdmin(config) {
538
533
  formSubmissionsCollectionSlug
539
534
  }
540
535
  }
536
+ },
537
+ studioForms: {
538
+ exact: true,
539
+ path: formsBasePath,
540
+ Component: {
541
+ exportName: "AdminStudioFormsView",
542
+ path: clientPath,
543
+ clientProps: {
544
+ ...studioNavClientProps,
545
+ formsCollectionSlug,
546
+ formSubmissionsCollectionSlug,
547
+ formUploadsCollectionSlug
548
+ }
549
+ }
541
550
  }
542
551
  } : {},
543
- studioMedia: {
544
- path: mediaBasePath,
552
+ studioMediaItem: {
553
+ exact: true,
554
+ path: `${mediaBasePath}/:id`,
545
555
  Component: {
546
- exportName: "AdminStudioMediaView",
556
+ exportName: "AdminStudioMediaItemView",
547
557
  path: clientPath,
548
558
  clientProps: {
549
559
  ...studioNavClientProps,
@@ -551,10 +561,11 @@ function configureAdmin(config) {
551
561
  }
552
562
  }
553
563
  },
554
- studioMediaItem: {
555
- path: `${mediaBasePath}/:id`,
564
+ studioMedia: {
565
+ exact: true,
566
+ path: mediaBasePath,
556
567
  Component: {
557
- exportName: "AdminStudioMediaItemView",
568
+ exportName: "AdminStudioMediaView",
558
569
  path: clientPath,
559
570
  clientProps: {
560
571
  ...studioNavClientProps,
@@ -563,6 +574,7 @@ function configureAdmin(config) {
563
574
  }
564
575
  },
565
576
  studioTools: {
577
+ exact: true,
566
578
  path: toolsBasePath,
567
579
  Component: {
568
580
  exportName: "AdminStudioToolsView",
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import {
2
- admin_exports
3
- } from "./chunk-3AHBR7RI.mjs";
4
1
  import {
5
2
  admin_app_exports
6
3
  } from "./chunk-RKTIFEUY.mjs";
4
+ import {
5
+ admin_exports
6
+ } from "./chunk-JC3UV74N.mjs";
7
7
  import "./chunk-W2UOCJDX.mjs";
8
8
  import {
9
9
  blocks_exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.20",
3
+ "version": "0.6.0-beta.21",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",