@nocobase/plugin-workflow-javascript 2.2.0-beta.9 → 2.2.1
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/276.bfc00dac27f59a2d.js +10 -0
- package/dist/client/ScriptInstruction.d.ts +15 -127
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/276.244a1cb810576973.js +10 -0
- package/dist/client-v2/615.f243412a3cffbce9.js +10 -0
- package/dist/client-v2/components/CodeEditor.d.ts +16 -0
- package/dist/client-v2/index.d.ts +11 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +12 -0
- package/dist/{client/CodeEditor.d.ts → client-v2/nodes/components/script.d.ts} +2 -7
- package/dist/client-v2/nodes/script.d.ts +50 -0
- package/dist/client-v2/nodes/shared.d.ts +30 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/common/constants.d.ts +9 -0
- package/dist/common/constants.js +36 -0
- package/dist/externalVersion.js +10 -10
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/winston-transport/package.json +1 -1
- package/dist/server/QuickJs.js +9 -2
- package/dist/server/RunningJobs.d.ts +34 -0
- package/dist/server/RunningJobs.js +105 -0
- package/dist/server/ScriptInstruction.d.ts +9 -21
- package/dist/server/ScriptInstruction.js +45 -102
- package/dist/server/ScriptWorkerRunner.d.ts +27 -0
- package/dist/server/ScriptWorkerRunner.js +140 -0
- package/dist/server/TaskConsumer.d.ts +29 -0
- package/dist/server/TaskConsumer.js +317 -0
- package/dist/server/TaskRecovery.d.ts +22 -0
- package/dist/server/TaskRecovery.js +155 -0
- package/dist/server/Vm.js +8 -1
- package/dist/server/constants.d.ts +9 -0
- package/dist/server/constants.js +36 -0
- package/dist/server/plugin.d.ts +14 -0
- package/dist/server/plugin.js +92 -2
- package/package.json +4 -2
- package/dist/client/944.18159d8a1521708e.js +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-javascript",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"displayName": "Workflow: JavaScript",
|
|
5
5
|
"displayName.zh-CN": "工作流:JavaScript 节点",
|
|
6
6
|
"description": "Execute a piece of JavaScript in an isolated Node.js environment.",
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@nocobase/client": "2.x",
|
|
18
|
+
"@nocobase/client-v2": "2.x",
|
|
19
|
+
"@nocobase/flow-engine": "2.x",
|
|
18
20
|
"@nocobase/plugin-workflow": "2.x",
|
|
19
21
|
"@nocobase/server": "2.x",
|
|
20
22
|
"@nocobase/test": "2.x"
|
|
@@ -33,5 +35,5 @@
|
|
|
33
35
|
"Workflow"
|
|
34
36
|
],
|
|
35
37
|
"license": "Apache-2.0",
|
|
36
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "29eedb8aa0160d7574063422a0ce01824c195861"
|
|
37
39
|
}
|
|
@@ -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
|
-
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_workflow_javascript=self.webpackChunk_nocobase_plugin_workflow_javascript||[]).push([["944"],{795:function(e,r,n){n.r(r);var o=n(155),t=n.n(o),c=n(223),a=n(867),i=n(492),s=n(776),u=n(625);function l(){var e,r,n=(e=["\n display: flex;\n width: 100%;\n height: 20em;\n\n .cm-editor {\n width: 100%;\n border-radius: ","px;\n border: 1px solid ",";\n &:hover {\n border-color: ",";\n }\n overflow: hidden;\n\n &.cm-focused {\n border-color: ",";\n outline: none;\n }\n }\n "],r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}})));return l=function(){return n},n}var f=(0,n(235).createStyles)(function(e){var r=e.token;return{box:(0,e.css)(l(),r.borderRadius,r.colorBorder,r.colorPrimaryHover,r.colorPrimaryHover)}}),d=a.Lz.theme({".cm-scroller":{backgroundColor:"#f0f0f0"}}),b=a.Lz.theme({".cm-scroller":{backgroundColor:"#fff"}});r.default=function(e){var r=e.onChange,n=e.value,l=e.disabled,v=(0,o.useRef)(null),h=(0,u.useMemoizedFn)(function(e){r&&r(e)}),p=f().styles;return new i.xx,(0,o.useEffect)(function(){var e=i.$t.create({doc:n,extensions:[c.o,(0,s.Q2)(),a.Lz.updateListener.of(function(e){e.docChanged&&h(e.state.doc.toString())}),a.Lz.editable.of(!l),l?d:b]}),r=new a.Lz({state:e,parent:v.current});return function(){r.destroy()}},[l]),t().createElement("div",{ref:v,className:p.box})}}}]);
|