@nocobase/plugin-ui-layout 2.3.0-beta.3 → 2.3.0-beta.5

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.
@@ -8,21 +8,21 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.3.0-beta.3",
12
- "@nocobase/client-v2": "2.3.0-beta.3",
13
- "@nocobase/flow-engine": "2.3.0-beta.3",
11
+ "@nocobase/client": "2.3.0-beta.5",
12
+ "@nocobase/client-v2": "2.3.0-beta.5",
13
+ "@nocobase/flow-engine": "2.3.0-beta.5",
14
14
  "axios": "1.7.7",
15
15
  "react": "18.2.0",
16
16
  "react-router-dom": "6.30.1",
17
- "@nocobase/database": "2.3.0-beta.3",
17
+ "@nocobase/database": "2.3.0-beta.5",
18
18
  "sequelize": "6.35.2",
19
- "@nocobase/server": "2.3.0-beta.3",
20
- "@nocobase/resourcer": "2.3.0-beta.3",
19
+ "@nocobase/server": "2.3.0-beta.5",
20
+ "@nocobase/resourcer": "2.3.0-beta.5",
21
21
  "@ant-design/icons": "5.6.1",
22
22
  "@dnd-kit/core": "6.1.0",
23
23
  "@formily/reactive": "2.3.7",
24
24
  "@emotion/css": "11.13.4",
25
- "@nocobase/utils": "2.3.0-beta.3",
25
+ "@nocobase/utils": "2.3.0-beta.5",
26
26
  "antd": "5.24.2",
27
27
  "@formily/json-schema": "2.3.7",
28
28
  "@formily/shared": "2.3.7",
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Migration } from '@nocobase/server';
10
+ export default class extends Migration {
11
+ on: string;
12
+ up(): Promise<void>;
13
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var backfill_late_admin_layout_desktop_routes_exports = {};
28
+ __export(backfill_late_admin_layout_desktop_routes_exports, {
29
+ default: () => backfill_late_admin_layout_desktop_routes_default
30
+ });
31
+ module.exports = __toCommonJS(backfill_late_admin_layout_desktop_routes_exports);
32
+ var import_server = require("@nocobase/server");
33
+ var import_ensureDefaultUiLayout = require("../ensureDefaultUiLayout");
34
+ var import_backfill_admin_layout_desktop_routes = require("./20260615090000-backfill-admin-layout-desktop-routes");
35
+ function assertDesktopRouteLayoutSchema(db) {
36
+ const desktopRoutes = db.getCollection("desktopRoutes");
37
+ if (!desktopRoutes) {
38
+ throw new Error("The desktopRoutes collection is required to backfill late AdminLayout routes");
39
+ }
40
+ if (!db.getCollection("uiLayouts")) {
41
+ throw new Error("The uiLayouts collection is required to backfill late AdminLayout routes");
42
+ }
43
+ if (!desktopRoutes.getField("uiLayouts")) {
44
+ throw new Error("The desktopRoutes.uiLayouts relation is required to backfill late AdminLayout routes");
45
+ }
46
+ }
47
+ class backfill_late_admin_layout_desktop_routes_default extends import_server.Migration {
48
+ // The legacy menu migration creates desktop routes during afterLoad, after the original afterSync backfill.
49
+ on = "afterLoad";
50
+ async up() {
51
+ assertDesktopRouteLayoutSchema(this.db);
52
+ await (0, import_ensureDefaultUiLayout.ensureDefaultUiLayout)(this.db);
53
+ await (0, import_backfill_admin_layout_desktop_routes.backfillAdminLayoutDesktopRoutes)(this.db);
54
+ }
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-ui-layout",
3
- "version": "2.3.0-beta.3",
3
+ "version": "2.3.0-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/server/index.js",
6
6
  "displayName": "UI layout",
@@ -33,5 +33,5 @@
33
33
  "@nocobase/test": "2.x",
34
34
  "@nocobase/utils": "2.x"
35
35
  },
36
- "gitHead": "f8cb6ec699b9aaffcf500fe68a55f1271b8a331c"
36
+ "gitHead": "7047516aba0d14965ddf457b64587103a871b923"
37
37
  }