@nocobase/plugin-ui-schema-storage 0.21.0-alpha.1 → 0.21.0-alpha.3

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.
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.21.0-alpha.1",
3
- "@nocobase/database": "0.21.0-alpha.1",
4
- "@nocobase/cache": "0.21.0-alpha.1",
5
- "@nocobase/utils": "0.21.0-alpha.1",
2
+ "@nocobase/client": "0.21.0-alpha.3",
3
+ "@nocobase/database": "0.21.0-alpha.3",
4
+ "@nocobase/cache": "0.21.0-alpha.3",
5
+ "@nocobase/utils": "0.21.0-alpha.3",
6
6
  "lodash": "4.17.21",
7
- "@nocobase/server": "0.21.0-alpha.1",
8
- "@nocobase/actions": "0.21.0-alpha.1",
9
- "@nocobase/resourcer": "0.21.0-alpha.1",
7
+ "@nocobase/server": "0.21.0-alpha.3",
8
+ "@nocobase/actions": "0.21.0-alpha.3",
9
+ "@nocobase/resourcer": "0.21.0-alpha.3",
10
10
  "@formily/json-schema": "2.3.0"
11
11
  };
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
  var form_field_exports = {};
19
29
  __export(form_field_exports, {
@@ -23,6 +33,7 @@ module.exports = __toCommonJS(form_field_exports);
23
33
  var import_json_schema = require("@formily/json-schema");
24
34
  var import_server = require("@nocobase/server");
25
35
  var import_utils = require("@nocobase/utils");
36
+ var import_lodash = __toESM(require("lodash"));
26
37
  class form_field_default extends import_server.Migration {
27
38
  appVersion = "<0.9.3-alpha.1";
28
39
  async up() {
@@ -43,7 +54,7 @@ class form_field_default extends import_server.Migration {
43
54
  const schema = item.schema;
44
55
  schema["type"] = "object";
45
56
  schema["x-component"] = "CollectionField";
46
- schema["x-component-props"]["mode"] = "Nester";
57
+ import_lodash.default.set(schema, "x-component-props.mode", "Nester");
47
58
  item.set("schema", schema);
48
59
  await item.save({ transaction });
49
60
  const s = await r.getProperties(item["x-uid"], { transaction });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "UI schema 存储服务",
5
5
  "description": "Provides centralized UI schema storage service.",
6
6
  "description.zh-CN": "提供中心化的 UI schema 存储服务。",
7
- "version": "0.21.0-alpha.1",
7
+ "version": "0.21.0-alpha.3",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/ui-schema-storage",
@@ -24,7 +24,7 @@
24
24
  "@nocobase/test": "0.x",
25
25
  "@nocobase/utils": "0.x"
26
26
  },
27
- "gitHead": "afd2f3d1341b85ea9daa7b2667dd4ace1fafb7ff",
27
+ "gitHead": "f7276aff14063a2cf825191a0c83aeacde05a912",
28
28
  "keywords": [
29
29
  "System & security"
30
30
  ]