@nocobase/preset-nocobase 1.3.52 → 1.3.54

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.
@@ -56,7 +56,7 @@ const _PresetNocoBase = class _PresetNocoBase extends import_server.Plugin {
56
56
  "verification",
57
57
  "users",
58
58
  "acl",
59
- "field-china-region",
59
+ // 'field-china-region',
60
60
  "workflow",
61
61
  "workflow-action-trigger",
62
62
  "workflow-aggregate",
@@ -104,7 +104,8 @@ const _PresetNocoBase = class _PresetNocoBase extends import_server.Plugin {
104
104
  "field-markdown-vditor>=0.21.0-alpha.16",
105
105
  "workflow-mailer",
106
106
  "field-m2m-array",
107
- "backup-restore"
107
+ "backup-restore",
108
+ "field-china-region"
108
109
  ];
109
110
  splitNames(name) {
110
111
  return (name || "").split(",").filter(Boolean);
@@ -0,0 +1,5 @@
1
+ import { Migration } from '@nocobase/server';
2
+ export default class extends Migration {
3
+ on: string;
4
+ up(): Promise<void>;
5
+ }
@@ -0,0 +1,50 @@
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
15
+ var __export = (target, all) => {
16
+ for (var name in all)
17
+ __defProp(target, name, { get: all[name], enumerable: true });
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var set_china_regin_local_exports = {};
29
+ __export(set_china_regin_local_exports, {
30
+ default: () => set_china_regin_local_default
31
+ });
32
+ module.exports = __toCommonJS(set_china_regin_local_exports);
33
+ var import_server = require("@nocobase/server");
34
+ const _set_china_regin_local_default = class _set_china_regin_local_default extends import_server.Migration {
35
+ on = "beforeLoad";
36
+ // 'beforeLoad' or 'afterLoad'
37
+ // appVersion = '<1.3.52';
38
+ async up() {
39
+ await this.pm.repository.update({
40
+ values: {
41
+ builtIn: false
42
+ },
43
+ filter: {
44
+ name: "field-china-region"
45
+ }
46
+ });
47
+ }
48
+ };
49
+ __name(_set_china_regin_local_default, "default");
50
+ let set_china_regin_local_default = _set_china_regin_local_default;
package/package.json CHANGED
@@ -1,70 +1,70 @@
1
1
  {
2
2
  "name": "@nocobase/preset-nocobase",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "./lib/server/index.js",
6
6
  "dependencies": {
7
7
  "@formily/json-schema": "2.x",
8
- "@nocobase/plugin-acl": "1.3.52",
9
- "@nocobase/plugin-action-bulk-edit": "1.3.52",
10
- "@nocobase/plugin-action-bulk-update": "1.3.52",
11
- "@nocobase/plugin-action-custom-request": "1.3.52",
12
- "@nocobase/plugin-action-duplicate": "1.3.52",
13
- "@nocobase/plugin-action-export": "1.3.52",
14
- "@nocobase/plugin-action-import": "1.3.52",
15
- "@nocobase/plugin-action-print": "1.3.52",
16
- "@nocobase/plugin-api-doc": "1.3.52",
17
- "@nocobase/plugin-api-keys": "1.3.52",
18
- "@nocobase/plugin-audit-logs": "1.3.52",
19
- "@nocobase/plugin-auth": "1.3.52",
20
- "@nocobase/plugin-auth-sms": "1.3.52",
21
- "@nocobase/plugin-backup-restore": "1.3.52",
22
- "@nocobase/plugin-block-iframe": "1.3.52",
23
- "@nocobase/plugin-block-workbench": "1.3.52",
24
- "@nocobase/plugin-calendar": "1.3.52",
25
- "@nocobase/plugin-charts": "1.3.52",
26
- "@nocobase/plugin-client": "1.3.52",
27
- "@nocobase/plugin-collection-sql": "1.3.52",
28
- "@nocobase/plugin-collection-tree": "1.3.52",
29
- "@nocobase/plugin-data-source-main": "1.3.52",
30
- "@nocobase/plugin-data-source-manager": "1.3.52",
31
- "@nocobase/plugin-data-visualization": "1.3.52",
32
- "@nocobase/plugin-error-handler": "1.3.52",
33
- "@nocobase/plugin-field-china-region": "1.3.52",
34
- "@nocobase/plugin-field-formula": "1.3.52",
35
- "@nocobase/plugin-field-m2m-array": "1.3.52",
36
- "@nocobase/plugin-field-markdown-vditor": "1.3.52",
37
- "@nocobase/plugin-field-sequence": "1.3.52",
38
- "@nocobase/plugin-file-manager": "1.3.52",
39
- "@nocobase/plugin-gantt": "1.3.52",
40
- "@nocobase/plugin-graph-collection-manager": "1.3.52",
41
- "@nocobase/plugin-kanban": "1.3.52",
42
- "@nocobase/plugin-localization": "1.3.52",
43
- "@nocobase/plugin-logger": "1.3.52",
44
- "@nocobase/plugin-map": "1.3.52",
45
- "@nocobase/plugin-mobile": "1.3.52",
46
- "@nocobase/plugin-mobile-client": "1.3.52",
47
- "@nocobase/plugin-mock-collections": "1.3.52",
48
- "@nocobase/plugin-multi-app-manager": "1.3.52",
49
- "@nocobase/plugin-multi-app-share-collection": "1.3.52",
50
- "@nocobase/plugin-snapshot-field": "1.3.52",
51
- "@nocobase/plugin-system-settings": "1.3.52",
52
- "@nocobase/plugin-theme-editor": "1.3.52",
53
- "@nocobase/plugin-ui-schema-storage": "1.3.52",
54
- "@nocobase/plugin-users": "1.3.52",
55
- "@nocobase/plugin-verification": "1.3.52",
56
- "@nocobase/plugin-workflow": "1.3.52",
57
- "@nocobase/plugin-workflow-action-trigger": "1.3.52",
58
- "@nocobase/plugin-workflow-aggregate": "1.3.52",
59
- "@nocobase/plugin-workflow-delay": "1.3.52",
60
- "@nocobase/plugin-workflow-dynamic-calculation": "1.3.52",
61
- "@nocobase/plugin-workflow-loop": "1.3.52",
62
- "@nocobase/plugin-workflow-mailer": "1.3.52",
63
- "@nocobase/plugin-workflow-manual": "1.3.52",
64
- "@nocobase/plugin-workflow-parallel": "1.3.52",
65
- "@nocobase/plugin-workflow-request": "1.3.52",
66
- "@nocobase/plugin-workflow-sql": "1.3.52",
67
- "@nocobase/server": "1.3.52",
8
+ "@nocobase/plugin-acl": "1.3.54",
9
+ "@nocobase/plugin-action-bulk-edit": "1.3.54",
10
+ "@nocobase/plugin-action-bulk-update": "1.3.54",
11
+ "@nocobase/plugin-action-custom-request": "1.3.54",
12
+ "@nocobase/plugin-action-duplicate": "1.3.54",
13
+ "@nocobase/plugin-action-export": "1.3.54",
14
+ "@nocobase/plugin-action-import": "1.3.54",
15
+ "@nocobase/plugin-action-print": "1.3.54",
16
+ "@nocobase/plugin-api-doc": "1.3.54",
17
+ "@nocobase/plugin-api-keys": "1.3.54",
18
+ "@nocobase/plugin-audit-logs": "1.3.54",
19
+ "@nocobase/plugin-auth": "1.3.54",
20
+ "@nocobase/plugin-auth-sms": "1.3.54",
21
+ "@nocobase/plugin-backup-restore": "1.3.54",
22
+ "@nocobase/plugin-block-iframe": "1.3.54",
23
+ "@nocobase/plugin-block-workbench": "1.3.54",
24
+ "@nocobase/plugin-calendar": "1.3.54",
25
+ "@nocobase/plugin-charts": "1.3.54",
26
+ "@nocobase/plugin-client": "1.3.54",
27
+ "@nocobase/plugin-collection-sql": "1.3.54",
28
+ "@nocobase/plugin-collection-tree": "1.3.54",
29
+ "@nocobase/plugin-data-source-main": "1.3.54",
30
+ "@nocobase/plugin-data-source-manager": "1.3.54",
31
+ "@nocobase/plugin-data-visualization": "1.3.54",
32
+ "@nocobase/plugin-error-handler": "1.3.54",
33
+ "@nocobase/plugin-field-china-region": "1.3.54",
34
+ "@nocobase/plugin-field-formula": "1.3.54",
35
+ "@nocobase/plugin-field-m2m-array": "1.3.54",
36
+ "@nocobase/plugin-field-markdown-vditor": "1.3.54",
37
+ "@nocobase/plugin-field-sequence": "1.3.54",
38
+ "@nocobase/plugin-file-manager": "1.3.54",
39
+ "@nocobase/plugin-gantt": "1.3.54",
40
+ "@nocobase/plugin-graph-collection-manager": "1.3.54",
41
+ "@nocobase/plugin-kanban": "1.3.54",
42
+ "@nocobase/plugin-localization": "1.3.54",
43
+ "@nocobase/plugin-logger": "1.3.54",
44
+ "@nocobase/plugin-map": "1.3.54",
45
+ "@nocobase/plugin-mobile": "1.3.54",
46
+ "@nocobase/plugin-mobile-client": "1.3.54",
47
+ "@nocobase/plugin-mock-collections": "1.3.54",
48
+ "@nocobase/plugin-multi-app-manager": "1.3.54",
49
+ "@nocobase/plugin-multi-app-share-collection": "1.3.54",
50
+ "@nocobase/plugin-snapshot-field": "1.3.54",
51
+ "@nocobase/plugin-system-settings": "1.3.54",
52
+ "@nocobase/plugin-theme-editor": "1.3.54",
53
+ "@nocobase/plugin-ui-schema-storage": "1.3.54",
54
+ "@nocobase/plugin-users": "1.3.54",
55
+ "@nocobase/plugin-verification": "1.3.54",
56
+ "@nocobase/plugin-workflow": "1.3.54",
57
+ "@nocobase/plugin-workflow-action-trigger": "1.3.54",
58
+ "@nocobase/plugin-workflow-aggregate": "1.3.54",
59
+ "@nocobase/plugin-workflow-delay": "1.3.54",
60
+ "@nocobase/plugin-workflow-dynamic-calculation": "1.3.54",
61
+ "@nocobase/plugin-workflow-loop": "1.3.54",
62
+ "@nocobase/plugin-workflow-mailer": "1.3.54",
63
+ "@nocobase/plugin-workflow-manual": "1.3.54",
64
+ "@nocobase/plugin-workflow-parallel": "1.3.54",
65
+ "@nocobase/plugin-workflow-request": "1.3.54",
66
+ "@nocobase/plugin-workflow-sql": "1.3.54",
67
+ "@nocobase/server": "1.3.54",
68
68
  "cronstrue": "^2.11.0"
69
69
  },
70
70
  "deprecated": [
@@ -93,7 +93,6 @@
93
93
  "@nocobase/plugin-data-source-manager",
94
94
  "@nocobase/plugin-data-visualization",
95
95
  "@nocobase/plugin-error-handler",
96
- "@nocobase/plugin-field-china-region",
97
96
  "@nocobase/plugin-field-formula",
98
97
  "@nocobase/plugin-field-sequence",
99
98
  "@nocobase/plugin-file-manager",
@@ -125,5 +124,5 @@
125
124
  "url": "git+https://github.com/nocobase/nocobase.git",
126
125
  "directory": "packages/presets/nocobase"
127
126
  },
128
- "gitHead": "90afbd90f915cf5df0ee6766ddbdf7803b3ab7ea"
127
+ "gitHead": "33b487952c467cbce819533b056de538728c3226"
129
128
  }