@nocobase/plugin-field-markdown-vditor 2.1.0-alpha.11 → 2.1.0-alpha.13

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,14 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.11",
12
- "@nocobase/database": "2.1.0-alpha.11",
13
- "@nocobase/flow-engine": "2.1.0-alpha.11",
14
- "@nocobase/server": "2.1.0-alpha.11",
11
+ "@nocobase/client": "2.1.0-alpha.13",
12
+ "@nocobase/database": "2.1.0-alpha.13",
13
+ "@nocobase/server": "2.1.0-alpha.13",
15
14
  "@formily/core": "2.3.7",
16
15
  "@formily/react": "2.3.7",
17
16
  "antd": "5.24.2",
18
17
  "react": "18.2.0",
19
18
  "react-i18next": "11.18.6",
20
- "@nocobase/utils": "2.1.0-alpha.11"
19
+ "@nocobase/utils": "2.1.0-alpha.13",
20
+ "@nocobase/flow-engine": "2.1.0-alpha.13"
21
21
  };
@@ -1 +1 @@
1
- {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-03-25T08:50:29.721Z"}
1
+ {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-03-27T05:50:10.240Z"}
@@ -6,11 +6,9 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
9
  import { Plugin } from '@nocobase/server';
11
10
  export declare class PluginFieldMarkdownVditorServer extends Plugin {
12
11
  afterAdd(): Promise<void>;
13
- getFlowSchemaContributions(): FlowSchemaContribution;
14
12
  beforeLoad(): Promise<void>;
15
13
  load(): Promise<void>;
16
14
  setResource(): void;
@@ -43,15 +43,11 @@ module.exports = __toCommonJS(plugin_exports);
43
43
  var import_server = require("@nocobase/server");
44
44
  var import_fs_extra = __toESM(require("fs-extra"));
45
45
  var import_path = __toESM(require("path"));
46
- var import_flow_schema_contributions = require("./flow-schema-contributions");
47
46
  var import_package = __toESM(require("../../package.json"));
48
47
  const namespace = import_package.default.name;
49
48
  class PluginFieldMarkdownVditorServer extends import_server.Plugin {
50
49
  async afterAdd() {
51
50
  }
52
- getFlowSchemaContributions() {
53
- return import_flow_schema_contributions.flowSchemaContribution;
54
- }
55
51
  async beforeLoad() {
56
52
  }
57
53
  async load() {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Used to store Markdown and render it using Vditor editor, supports common Markdown syntax such as list, code, quote, etc., and supports uploading images, recordings, etc.It also allows for instant rendering, where what you see is what you get.",
7
7
  "description.ru-RU": "Используется для хранения Markdown и его отображения с помощью редактора Vditor, поддерживает общие синтаксисы Markdown: списки, код, цитаты и т.д., а также загрузку изображений и аудиозаписей. Обеспечивает мгновенный рендеринг «что видишь — то получаешь».",
8
8
  "description.zh-CN": "用于存储 Markdown,并使用 Vditor 编辑器渲染,支持常见 Markdown 语法,如列表,代码,引用等,并支持上传图片,录音等。同时可以做到即时渲染,所见即所得。",
9
- "version": "2.1.0-alpha.11",
9
+ "version": "2.1.0-alpha.13",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/field-markdown-vditor",
@@ -30,5 +30,5 @@
30
30
  "keywords": [
31
31
  "Collection fields"
32
32
  ],
33
- "gitHead": "bb96d633a6371afb586072ff516bd0613c757db0"
33
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173"
34
34
  }
@@ -1,10 +0,0 @@
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 type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
- export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -1,92 +0,0 @@
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 flow_schema_contributions_exports = {};
28
- __export(flow_schema_contributions_exports, {
29
- flowSchemaContribution: () => flowSchemaContribution
30
- });
31
- module.exports = __toCommonJS(flow_schema_contributions_exports);
32
- function createFieldContribution(use, title) {
33
- return {
34
- use,
35
- title,
36
- source: "plugin",
37
- strict: false,
38
- exposure: "internal",
39
- stepParamsSchema: {
40
- type: "object",
41
- properties: {
42
- fieldSettings: {
43
- type: "object",
44
- properties: {
45
- init: {
46
- type: "object",
47
- properties: {
48
- dataSourceKey: { type: "string" },
49
- collectionName: { type: "string" },
50
- fieldPath: { type: "string" }
51
- },
52
- additionalProperties: true
53
- }
54
- },
55
- additionalProperties: true
56
- }
57
- },
58
- additionalProperties: true
59
- },
60
- skeleton: {
61
- uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
62
- use
63
- }
64
- };
65
- }
66
- const flowSchemaContribution = {
67
- models: [
68
- createFieldContribution("VditorFieldModel", "Vditor"),
69
- createFieldContribution("DisplayVditorFieldModel", "Display vditor")
70
- ],
71
- fieldBindings: [
72
- {
73
- context: "editable-field",
74
- use: "VditorFieldModel",
75
- interfaces: ["vditor", "markdown"],
76
- isDefault: true
77
- },
78
- {
79
- context: "display-field",
80
- use: "DisplayVditorFieldModel",
81
- interfaces: ["vditor", "markdown"],
82
- isDefault: true
83
- }
84
- ],
85
- defaults: {
86
- source: "plugin"
87
- }
88
- };
89
- // Annotate the CommonJS export names for ESM import in node:
90
- 0 && (module.exports = {
91
- flowSchemaContribution
92
- });