@flowgram.ai/form-antd-materials 0.4.16 → 0.4.18
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/dist/esm/index.js +7 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/effects/provide-batch-input/index.ts +1 -2
- package/src/effects/provide-batch-outputs/index.ts +1 -2
- package/src/effects/provide-json-schema-outputs/index.ts +1 -2
- package/src/form-plugins/batch-outputs-plugin/index.ts +1 -2
package/dist/esm/index.js
CHANGED
|
@@ -1820,8 +1820,7 @@ function ConditionRow({ style, value, onChange, readonly }) {
|
|
|
1820
1820
|
// src/effects/provide-batch-input/index.ts
|
|
1821
1821
|
import {
|
|
1822
1822
|
ASTFactory as ASTFactory2,
|
|
1823
|
-
createEffectFromVariableProvider
|
|
1824
|
-
getNodeForm
|
|
1823
|
+
createEffectFromVariableProvider
|
|
1825
1824
|
} from "@flowgram.ai/editor";
|
|
1826
1825
|
var provideBatchInputEffect = createEffectFromVariableProvider({
|
|
1827
1826
|
private: true,
|
|
@@ -1829,7 +1828,7 @@ var provideBatchInputEffect = createEffectFromVariableProvider({
|
|
|
1829
1828
|
ASTFactory2.createVariableDeclaration({
|
|
1830
1829
|
key: `${ctx.node.id}_locals`,
|
|
1831
1830
|
meta: {
|
|
1832
|
-
title:
|
|
1831
|
+
title: ctx.node.form?.getValueIn("title"),
|
|
1833
1832
|
icon: ctx.node.getNodeRegistry().info?.icon
|
|
1834
1833
|
},
|
|
1835
1834
|
type: ASTFactory2.createObject({
|
|
@@ -1855,15 +1854,14 @@ var provideBatchInputEffect = createEffectFromVariableProvider({
|
|
|
1855
1854
|
// src/effects/provide-batch-outputs/index.ts
|
|
1856
1855
|
import {
|
|
1857
1856
|
ASTFactory as ASTFactory3,
|
|
1858
|
-
createEffectFromVariableProvider as createEffectFromVariableProvider2
|
|
1859
|
-
getNodeForm as getNodeForm2
|
|
1857
|
+
createEffectFromVariableProvider as createEffectFromVariableProvider2
|
|
1860
1858
|
} from "@flowgram.ai/editor";
|
|
1861
1859
|
var provideBatchOutputsEffect = createEffectFromVariableProvider2({
|
|
1862
1860
|
parse: (value, ctx) => [
|
|
1863
1861
|
ASTFactory3.createVariableDeclaration({
|
|
1864
1862
|
key: `${ctx.node.id}`,
|
|
1865
1863
|
meta: {
|
|
1866
|
-
title:
|
|
1864
|
+
title: ctx.node.form?.getValueIn("title"),
|
|
1867
1865
|
icon: ctx.node.getNodeRegistry().info?.icon
|
|
1868
1866
|
},
|
|
1869
1867
|
type: ASTFactory3.createObject({
|
|
@@ -1945,15 +1943,14 @@ function traverseRef(name, value, cb) {
|
|
|
1945
1943
|
// src/effects/provide-json-schema-outputs/index.ts
|
|
1946
1944
|
import {
|
|
1947
1945
|
ASTFactory as ASTFactory4,
|
|
1948
|
-
createEffectFromVariableProvider as createEffectFromVariableProvider3
|
|
1949
|
-
getNodeForm as getNodeForm3
|
|
1946
|
+
createEffectFromVariableProvider as createEffectFromVariableProvider3
|
|
1950
1947
|
} from "@flowgram.ai/editor";
|
|
1951
1948
|
var provideJsonSchemaOutputs = createEffectFromVariableProvider3({
|
|
1952
1949
|
parse: (value, ctx) => [
|
|
1953
1950
|
ASTFactory4.createVariableDeclaration({
|
|
1954
1951
|
key: `${ctx.node.id}`,
|
|
1955
1952
|
meta: {
|
|
1956
|
-
title:
|
|
1953
|
+
title: ctx.node.form?.getValueIn("title") || ctx.node.id,
|
|
1957
1954
|
icon: ctx.node.getNodeRegistry().info?.icon
|
|
1958
1955
|
},
|
|
1959
1956
|
type: JsonSchemaUtils.schemaToAST(value)
|
|
@@ -1987,7 +1984,6 @@ import {
|
|
|
1987
1984
|
ASTFactory as ASTFactory5,
|
|
1988
1985
|
createEffectFromVariableProvider as createEffectFromVariableProvider4,
|
|
1989
1986
|
defineFormPluginCreator,
|
|
1990
|
-
getNodeForm as getNodeForm4,
|
|
1991
1987
|
getNodePrivateScope,
|
|
1992
1988
|
getNodeScope,
|
|
1993
1989
|
ScopeChainTransformService,
|
|
@@ -1998,7 +1994,7 @@ var provideBatchOutputsEffect2 = createEffectFromVariableProvider4({
|
|
|
1998
1994
|
ASTFactory5.createVariableDeclaration({
|
|
1999
1995
|
key: `${ctx.node.id}`,
|
|
2000
1996
|
meta: {
|
|
2001
|
-
title:
|
|
1997
|
+
title: ctx.node.form?.getValueIn("title"),
|
|
2002
1998
|
icon: ctx.node.getNodeRegistry().info?.icon
|
|
2003
1999
|
},
|
|
2004
2000
|
type: ASTFactory5.createObject({
|