@flowgram.ai/form-materials 0.2.17 → 0.2.19

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/index.d.mts CHANGED
@@ -160,7 +160,7 @@ interface RendererProps<Value = any> {
160
160
  onChange?: (value: Value) => void;
161
161
  readonly?: boolean;
162
162
  }
163
- interface PropsType$2 extends RendererProps {
163
+ interface PropsType$3 extends RendererProps {
164
164
  schema: IJsonSchema;
165
165
  strategies?: Strategy[];
166
166
  [key: string]: any;
@@ -171,14 +171,14 @@ interface PropsType$2 extends RendererProps {
171
171
  * SPDX-License-Identifier: MIT
172
172
  */
173
173
 
174
- declare function ConstantInput(props: PropsType$2): React$1.JSX.Element;
174
+ declare function ConstantInput(props: PropsType$3): React$1.JSX.Element;
175
175
 
176
176
  /**
177
177
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
178
178
  * SPDX-License-Identifier: MIT
179
179
  */
180
180
 
181
- interface PropsType$1 {
181
+ interface PropsType$2 {
182
182
  value?: IFlowConstantRefValue;
183
183
  onChange: (value?: IFlowConstantRefValue) => void;
184
184
  readonly?: boolean;
@@ -191,7 +191,7 @@ interface PropsType$1 {
191
191
  [key: string]: any;
192
192
  };
193
193
  }
194
- declare function DynamicValueInput({ value, onChange, readonly, style, schema, constantProps, }: PropsType$1): React$1.JSX.Element;
194
+ declare function DynamicValueInput({ value, onChange, readonly, style, schema, constantProps, }: PropsType$2): React$1.JSX.Element;
195
195
 
196
196
  /**
197
197
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -239,7 +239,7 @@ declare function ConditionRow({ style, value, onChange, readonly }: PropTypes):
239
239
  */
240
240
 
241
241
  type ValueType = Record<string, IFlowRefValue | undefined>;
242
- interface PropsType {
242
+ interface PropsType$1 {
243
243
  value?: ValueType;
244
244
  onChange: (value?: ValueType) => void;
245
245
  readonly?: boolean;
@@ -252,7 +252,35 @@ interface PropsType {
252
252
  * SPDX-License-Identifier: MIT
253
253
  */
254
254
 
255
- declare function BatchOutputs(props: PropsType): React$1.JSX.Element;
255
+ declare function BatchOutputs(props: PropsType$1): React$1.JSX.Element;
256
+
257
+ /**
258
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
259
+ * SPDX-License-Identifier: MIT
260
+ */
261
+
262
+ type PropsType = React$1.PropsWithChildren<{
263
+ value?: IFlowTemplateValue;
264
+ onChange: (value?: IFlowTemplateValue) => void;
265
+ readonly?: boolean;
266
+ hasError?: boolean;
267
+ style?: React$1.CSSProperties;
268
+ }>;
269
+
270
+ /**
271
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
272
+ * SPDX-License-Identifier: MIT
273
+ */
274
+
275
+ type PromptEditorPropsType = PropsType;
276
+ declare function PromptEditor(props: PropsType): React$1.JSX.Element;
277
+
278
+ /**
279
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
280
+ * SPDX-License-Identifier: MIT
281
+ */
282
+
283
+ declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$1.JSX.Element;
256
284
 
257
285
  /**
258
286
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -430,4 +458,4 @@ declare const createBatchOutputsFormPlugin: FormPluginCreator<{
430
458
  outputKey: string;
431
459
  }>;
432
460
 
433
- export { ArrayIcons, BatchOutputs, BatchVariableSelector, ConditionRow, type ConditionRowValueType, ConstantInput, DynamicValueInput, type IBasicJsonSchema, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IJsonSchema, type JsonSchemaBasicType, JsonSchemaEditor, JsonSchemaUtils, TypeSelector, VariableSelector, type VariableSelectorProps, VariableTypeIcons, autoRenameRefEffect, createBatchOutputsFormPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getSchemaIcon, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useVariableTree };
461
+ export { ArrayIcons, BatchOutputs, BatchVariableSelector, ConditionRow, type ConditionRowValueType, ConstantInput, DynamicValueInput, type IBasicJsonSchema, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IJsonSchema, type JsonSchemaBasicType, JsonSchemaEditor, JsonSchemaUtils, PromptEditor, type PromptEditorPropsType, PromptEditorWithVariables, TypeSelector, VariableSelector, type VariableSelectorProps, VariableTypeIcons, autoRenameRefEffect, createBatchOutputsFormPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getSchemaIcon, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useVariableTree };
package/dist/index.d.ts CHANGED
@@ -160,7 +160,7 @@ interface RendererProps<Value = any> {
160
160
  onChange?: (value: Value) => void;
161
161
  readonly?: boolean;
162
162
  }
163
- interface PropsType$2 extends RendererProps {
163
+ interface PropsType$3 extends RendererProps {
164
164
  schema: IJsonSchema;
165
165
  strategies?: Strategy[];
166
166
  [key: string]: any;
@@ -171,14 +171,14 @@ interface PropsType$2 extends RendererProps {
171
171
  * SPDX-License-Identifier: MIT
172
172
  */
173
173
 
174
- declare function ConstantInput(props: PropsType$2): React$1.JSX.Element;
174
+ declare function ConstantInput(props: PropsType$3): React$1.JSX.Element;
175
175
 
176
176
  /**
177
177
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
178
178
  * SPDX-License-Identifier: MIT
179
179
  */
180
180
 
181
- interface PropsType$1 {
181
+ interface PropsType$2 {
182
182
  value?: IFlowConstantRefValue;
183
183
  onChange: (value?: IFlowConstantRefValue) => void;
184
184
  readonly?: boolean;
@@ -191,7 +191,7 @@ interface PropsType$1 {
191
191
  [key: string]: any;
192
192
  };
193
193
  }
194
- declare function DynamicValueInput({ value, onChange, readonly, style, schema, constantProps, }: PropsType$1): React$1.JSX.Element;
194
+ declare function DynamicValueInput({ value, onChange, readonly, style, schema, constantProps, }: PropsType$2): React$1.JSX.Element;
195
195
 
196
196
  /**
197
197
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -239,7 +239,7 @@ declare function ConditionRow({ style, value, onChange, readonly }: PropTypes):
239
239
  */
240
240
 
241
241
  type ValueType = Record<string, IFlowRefValue | undefined>;
242
- interface PropsType {
242
+ interface PropsType$1 {
243
243
  value?: ValueType;
244
244
  onChange: (value?: ValueType) => void;
245
245
  readonly?: boolean;
@@ -252,7 +252,35 @@ interface PropsType {
252
252
  * SPDX-License-Identifier: MIT
253
253
  */
254
254
 
255
- declare function BatchOutputs(props: PropsType): React$1.JSX.Element;
255
+ declare function BatchOutputs(props: PropsType$1): React$1.JSX.Element;
256
+
257
+ /**
258
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
259
+ * SPDX-License-Identifier: MIT
260
+ */
261
+
262
+ type PropsType = React$1.PropsWithChildren<{
263
+ value?: IFlowTemplateValue;
264
+ onChange: (value?: IFlowTemplateValue) => void;
265
+ readonly?: boolean;
266
+ hasError?: boolean;
267
+ style?: React$1.CSSProperties;
268
+ }>;
269
+
270
+ /**
271
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
272
+ * SPDX-License-Identifier: MIT
273
+ */
274
+
275
+ type PromptEditorPropsType = PropsType;
276
+ declare function PromptEditor(props: PropsType): React$1.JSX.Element;
277
+
278
+ /**
279
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
280
+ * SPDX-License-Identifier: MIT
281
+ */
282
+
283
+ declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$1.JSX.Element;
256
284
 
257
285
  /**
258
286
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -430,4 +458,4 @@ declare const createBatchOutputsFormPlugin: FormPluginCreator<{
430
458
  outputKey: string;
431
459
  }>;
432
460
 
433
- export { ArrayIcons, BatchOutputs, BatchVariableSelector, ConditionRow, type ConditionRowValueType, ConstantInput, DynamicValueInput, type IBasicJsonSchema, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IJsonSchema, type JsonSchemaBasicType, JsonSchemaEditor, JsonSchemaUtils, TypeSelector, VariableSelector, type VariableSelectorProps, VariableTypeIcons, autoRenameRefEffect, createBatchOutputsFormPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getSchemaIcon, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useVariableTree };
461
+ export { ArrayIcons, BatchOutputs, BatchVariableSelector, ConditionRow, type ConditionRowValueType, ConstantInput, DynamicValueInput, type IBasicJsonSchema, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IJsonSchema, type JsonSchemaBasicType, JsonSchemaEditor, JsonSchemaUtils, PromptEditor, type PromptEditorPropsType, PromptEditorWithVariables, TypeSelector, VariableSelector, type VariableSelectorProps, VariableTypeIcons, autoRenameRefEffect, createBatchOutputsFormPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getSchemaIcon, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useVariableTree };