@luminix/mui-cms 0.0.1-beta.1 → 0.0.1-beta.2

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/mui-cms.js CHANGED
@@ -342,31 +342,39 @@ const Re = p.createContext({
342
342
  children: /* @__PURE__ */ r(Nn, { children: /* @__PURE__ */ r(Ln, { children: e }) })
343
343
  }
344
344
  );
345
- }, Wn = (e, { Layout: t, Dashboard: n, ModelIndex: a, ModelItem: s, Error: o }, i) => [
345
+ }, Wn = (e, {
346
+ Layout: t,
347
+ Dashboard: n,
348
+ ModelIndex: a,
349
+ ModelItem: s
350
+ /* Error */
351
+ }, o) => [
346
352
  {
347
353
  element: /* @__PURE__ */ r(qn, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(vt, {}) }) }),
348
- errorElement: /* @__PURE__ */ r(o, {}),
354
+ // errorElement: (
355
+ // <Error />
356
+ // ),
349
357
  children: [
350
358
  {
351
359
  path: "/",
352
360
  name: "luminix.cms.dashboard",
353
361
  element: /* @__PURE__ */ r(n, {})
354
362
  },
355
- ...Object.entries(i).flatMap(([l, c]) => [
363
+ ...Object.entries(o).flatMap(([i, l]) => [
356
364
  {
357
- path: "/" + f.kebabCase(c.plural()),
358
- name: `luminix.cms.${l}.index`,
359
- element: /* @__PURE__ */ r(me, { Model: c, children: /* @__PURE__ */ r(Ft, { factory: c.query, children: /* @__PURE__ */ r(a, {}) }) })
365
+ path: "/" + f.kebabCase(l.plural()),
366
+ name: `luminix.cms.${i}.index`,
367
+ element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(Ft, { factory: l.query, children: /* @__PURE__ */ r(a, {}) }) })
360
368
  },
361
369
  {
362
- path: "/" + f.kebabCase(c.plural()) + "/create",
363
- name: `luminix.cms.${l}.item`,
364
- element: /* @__PURE__ */ r(me, { Model: c, children: /* @__PURE__ */ r(s, { create: !0 }) })
370
+ path: "/" + f.kebabCase(l.plural()) + "/create",
371
+ name: `luminix.cms.${i}.item`,
372
+ element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(s, { create: !0 }) })
365
373
  },
366
374
  {
367
- path: "/" + f.kebabCase(c.plural()) + "/:id",
368
- name: `luminix.cms.${l}.item`,
369
- element: /* @__PURE__ */ r(me, { Model: c, children: /* @__PURE__ */ r(s, {}) })
375
+ path: "/" + f.kebabCase(l.plural()) + "/:id",
376
+ name: `luminix.cms.${i}.item`,
377
+ element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(s, {}) })
370
378
  }
371
379
  ])
372
380
  ]
@@ -3216,13 +3224,7 @@ const _r = {
3216
3224
  new Xr(),
3217
3225
  new Jr(n),
3218
3226
  ...t || []
3219
- ],
3220
- config: {
3221
- app: {
3222
- debug: !0,
3223
- url: "http://localhost"
3224
- }
3225
- }
3227
+ ]
3226
3228
  }
3227
3229
  )
3228
3230
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/mui-cms",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.2",
4
4
  "type": "module",
5
5
  "main": "dist/mui-cms.js",
6
6
  "types": "types/index.d.ts",