@flowgram.ai/form-materials 0.2.24 → 0.2.26

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 CHANGED
@@ -943,6 +943,7 @@ var ConstantInputWrapper = styled2.div`
943
943
 
944
944
  // src/components/json-schema-editor/hooks.tsx
945
945
  import { useEffect, useMemo as useMemo3, useRef, useState } from "react";
946
+ import { omit } from "lodash";
946
947
  var _id = 0;
947
948
  function genId() {
948
949
  return _id++;
@@ -1015,7 +1016,7 @@ function usePropertiesEdit(value, onChange) {
1015
1016
  if (!_property.name) {
1016
1017
  continue;
1017
1018
  }
1018
- nextProperties[_property.name] = _property;
1019
+ nextProperties[_property.name] = omit(_property, ["key", "name", "isPropertyRequired"]);
1019
1020
  if (_property.isPropertyRequired) {
1020
1021
  nextRequired.push(_property.name);
1021
1022
  }
@@ -2092,7 +2093,8 @@ function PromptEditor(props) {
2092
2093
  activeLinePlaceholder,
2093
2094
  style,
2094
2095
  hasError,
2095
- children
2096
+ children,
2097
+ disableMarkdownHighlight
2096
2098
  } = props || {};
2097
2099
  const editorRef = useRef3(null);
2098
2100
  useEffect4(() => {
@@ -2117,7 +2119,7 @@ function PromptEditor(props) {
2117
2119
  onChange({ type: "template", content: e.value });
2118
2120
  }
2119
2121
  }
2120
- ), activeLinePlaceholder && /* @__PURE__ */ React15.createElement(ActiveLinePlaceholder, null, activeLinePlaceholder), /* @__PURE__ */ React15.createElement(markdown_default, null), /* @__PURE__ */ React15.createElement(language_support_default, null), /* @__PURE__ */ React15.createElement(jinja_default, null), children));
2122
+ ), activeLinePlaceholder && /* @__PURE__ */ React15.createElement(ActiveLinePlaceholder, null, activeLinePlaceholder), !disableMarkdownHighlight && /* @__PURE__ */ React15.createElement(markdown_default, null), /* @__PURE__ */ React15.createElement(language_support_default, null), /* @__PURE__ */ React15.createElement(jinja_default, null), children));
2121
2123
  }
2122
2124
 
2123
2125
  // src/components/prompt-editor-with-variables/index.tsx