@kyro-cms/admin 0.7.0 → 0.9.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 CHANGED
@@ -3,7 +3,7 @@ import React17, { lazy, createContext, useState, useMemo, useCallback, useEffect
3
3
  import { create, useStore } from 'zustand';
4
4
  import { persist, createJSONStorage } from 'zustand/middleware';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
- import { mediaCollections, authCollections, minimalCollections, blogCollections, ecommerceCollections, kitchenSinkCollections, allSettingsGlobals, coreSettingsGlobals, ecommerceSettingsGlobals } from '@kyro-cms/core/templates';
6
+ import { mediaCollections, authCollections, minimalCollections, starterCollections, blogCollections, ecommerceCollections, kitchenSinkCollections, allSettingsGlobals, coreSettingsGlobals } from '@kyro-cms/core/templates';
7
7
  import { createStorage } from 'unstorage';
8
8
  import indexedbDriver from 'unstorage/drivers/indexedb';
9
9
  import { createPortal } from 'react-dom';
@@ -1384,17 +1384,22 @@ function getAdminConfig(template = "blog") {
1384
1384
  collections2.push(...Object.values(minimalCollections));
1385
1385
  globals2.push(...coreSettingsGlobals);
1386
1386
  break;
1387
+ case "starter":
1388
+ collections2.push(...Object.values(starterCollections));
1389
+ globals2.push(...coreSettingsGlobals);
1390
+ break;
1387
1391
  case "blog":
1388
1392
  collections2.push(...Object.values(blogCollections));
1389
1393
  globals2.push(...coreSettingsGlobals);
1390
1394
  break;
1391
1395
  case "ecommerce":
1392
1396
  collections2.push(...Object.values(ecommerceCollections));
1393
- globals2.push(...coreSettingsGlobals, ...ecommerceSettingsGlobals);
1397
+ globals2.push(...allSettingsGlobals);
1394
1398
  break;
1395
1399
  case "kitchen-sink":
1396
1400
  collections2.push(
1397
1401
  ...Object.values(minimalCollections),
1402
+ ...Object.values(starterCollections),
1398
1403
  ...Object.values(blogCollections),
1399
1404
  ...Object.values(ecommerceCollections),
1400
1405
  ...Object.values(kitchenSinkCollections)