@flowgram.ai/form-materials 0.5.3 → 0.5.5

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.
@@ -37,6 +37,7 @@ function BlurInput(props) {
37
37
  props.value
38
38
  ]);
39
39
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(semi_ui_namespaceObject.Input, {
40
+ ref: props.ref,
40
41
  ...props,
41
42
  value: value,
42
43
  onChange: (value)=>{
@@ -59,6 +59,7 @@ const UIValues = external_styled_components_default().div`
59
59
  flex-direction: column;
60
60
  align-items: center;
61
61
  gap: 4px;
62
+ overflow: hidden;
62
63
  `;
63
64
  exports.UIContainer = __webpack_exports__.UIContainer;
64
65
  exports.UILeft = __webpack_exports__.UILeft;
@@ -45,6 +45,7 @@ const UIContainer = external_styled_components_default().div`
45
45
  align-items: center;
46
46
  border-radius: 4px;
47
47
  border: 1px solid var(--semi-color-border);
48
+ line-height: normal;
48
49
 
49
50
  overflow: hidden;
50
51
 
@@ -9,6 +9,7 @@ function BlurInput(props) {
9
9
  props.value
10
10
  ]);
11
11
  return /*#__PURE__*/ jsx(Input, {
12
+ ref: props.ref,
12
13
  ...props,
13
14
  value: value,
14
15
  onChange: (value)=>{
@@ -17,5 +17,6 @@ const UIValues = styled_components.div`
17
17
  flex-direction: column;
18
18
  align-items: center;
19
19
  gap: 4px;
20
+ overflow: hidden;
20
21
  `;
21
22
  export { UIContainer, UILeft, UIOperator, UIRight, UIValues };
@@ -4,6 +4,7 @@ const UIContainer = styled_components.div`
4
4
  align-items: center;
5
5
  border-radius: 4px;
6
6
  border: 1px solid var(--semi-color-border);
7
+ line-height: normal;
7
8
 
8
9
  overflow: hidden;
9
10
 
@@ -8,6 +8,6 @@
8
8
  */
9
9
  import React from 'react';
10
10
  import { Input } from '@douyinfe/semi-ui';
11
- type InputProps = React.ComponentPropsWithoutRef<typeof Input>;
11
+ type InputProps = React.ComponentPropsWithRef<typeof Input>;
12
12
  export declare function BlurInput(props: InputProps): React.JSX.Element;
13
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowgram.ai/form-materials",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "homepage": "https://flowgram.ai/",
5
5
  "repository": "https://github.com/bytedance/flowgram.ai",
6
6
  "license": "MIT",
@@ -67,9 +67,9 @@
67
67
  "@codemirror/view": "~6.38.0",
68
68
  "@codemirror/state": "~6.5.2",
69
69
  "zod": "^3.24.4",
70
- "@flowgram.ai/editor": "0.5.3",
71
- "@flowgram.ai/json-schema": "0.5.3",
72
- "@flowgram.ai/coze-editor": "0.5.3"
70
+ "@flowgram.ai/editor": "0.5.5",
71
+ "@flowgram.ai/coze-editor": "0.5.5",
72
+ "@flowgram.ai/json-schema": "0.5.5"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/lodash-es": "^4.17.12",
@@ -88,8 +88,8 @@
88
88
  "cross-env": "~7.0.3",
89
89
  "@rsbuild/plugin-react": "^1.1.1",
90
90
  "date-fns": "~4.1.0",
91
- "@flowgram.ai/eslint-config": "0.5.3",
92
- "@flowgram.ai/ts-config": "0.5.3"
91
+ "@flowgram.ai/ts-config": "0.5.5",
92
+ "@flowgram.ai/eslint-config": "0.5.5"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "react": ">=16.8",
@@ -13,7 +13,7 @@ import React, { useEffect, useState } from 'react';
13
13
 
14
14
  import { Input } from '@douyinfe/semi-ui';
15
15
 
16
- type InputProps = React.ComponentPropsWithoutRef<typeof Input>;
16
+ type InputProps = React.ComponentPropsWithRef<typeof Input>;
17
17
 
18
18
  export function BlurInput(props: InputProps) {
19
19
  const [value, setValue] = useState('');
@@ -24,6 +24,7 @@ export function BlurInput(props: InputProps) {
24
24
 
25
25
  return (
26
26
  <Input
27
+ ref={props.ref}
27
28
  {...props}
28
29
  value={value}
29
30
  onChange={(value) => {
@@ -27,4 +27,5 @@ export const UIValues = styled.div`
27
27
  flex-direction: column;
28
28
  align-items: center;
29
29
  gap: 4px;
30
+ overflow: hidden;
30
31
  `;
@@ -10,6 +10,7 @@ export const UIContainer = styled.div`
10
10
  align-items: center;
11
11
  border-radius: 4px;
12
12
  border: 1px solid var(--semi-color-border);
13
+ line-height: normal;
13
14
 
14
15
  overflow: hidden;
15
16