@flowgram.ai/form-antd-materials 0.1.0-alpha.13 → 0.1.0-alpha.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowgram.ai/form-antd-materials",
3
- "version": "0.1.0-alpha.13",
3
+ "version": "0.1.0-alpha.14",
4
4
  "homepage": "https://flowgram.ai/",
5
5
  "repository": "https://github.com/bytedance/flowgram.ai",
6
6
  "license": "MIT",
@@ -19,12 +19,12 @@
19
19
  "dependencies": {
20
20
  "@ant-design/icons": "5.x",
21
21
  "antd": "^5.25.4",
22
- "lodash": "^4.17.21",
22
+ "lodash-es": "^4.17.21",
23
23
  "nanoid": "^4.0.2",
24
- "@flowgram.ai/editor": "0.1.0-alpha.13"
24
+ "@flowgram.ai/editor": "0.1.0-alpha.14"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/lodash": "^4.14.137",
27
+ "@types/lodash-es": "^4.17.12",
28
28
  "@types/node": "^18",
29
29
  "@types/react": "^18",
30
30
  "@types/react-dom": "^18",
@@ -37,8 +37,8 @@
37
37
  "tsup": "^8.0.1",
38
38
  "typescript": "^5.8.3",
39
39
  "vitest": "^0.34.6",
40
- "@flowgram.ai/eslint-config": "0.1.0-alpha.13",
41
- "@flowgram.ai/ts-config": "0.1.0-alpha.13"
40
+ "@flowgram.ai/ts-config": "0.1.0-alpha.14",
41
+ "@flowgram.ai/eslint-config": "0.1.0-alpha.14"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8",
@@ -8,13 +8,14 @@ import React, { useMemo } from 'react';
8
8
 
9
9
  import { PropsType, Strategy } from './types';
10
10
  import { UIInput, UIInputNumber, UISelect } from './styles';
11
+ import { I18n } from '@flowgram.ai/editor';
11
12
 
12
13
  const defaultStrategies: Strategy[] = [
13
14
  {
14
15
  hit: (schema) => schema?.type === 'string',
15
16
  Renderer: (props) => (
16
17
  <UIInput
17
- placeholder="Please Input String"
18
+ placeholder={I18n.t('Please Input String')}
18
19
  size="small"
19
20
  disabled={props.readonly}
20
21
  {...props}
@@ -25,7 +26,7 @@ const defaultStrategies: Strategy[] = [
25
26
  hit: (schema) => schema?.type === 'number',
26
27
  Renderer: (props) => (
27
28
  <UIInputNumber
28
- placeholder="Please Input Number"
29
+ placeholder={I18n.t('Please Input Number')}
29
30
  size="small"
30
31
  disabled={props.readonly}
31
32
  {...props}
@@ -36,7 +37,7 @@ const defaultStrategies: Strategy[] = [
36
37
  hit: (schema) => schema?.type === 'integer',
37
38
  Renderer: (props) => (
38
39
  <UIInputNumber
39
- placeholder="Please Input Integer"
40
+ placeholder={I18n.t('Please Input Integer')}
40
41
  size="small"
41
42
  disabled={props.readonly}
42
43
  precision={0}
@@ -39,6 +39,7 @@ import {
39
39
  import { usePropertiesEdit } from './hooks';
40
40
  import { DefaultValue } from './default-value';
41
41
  import { BlurInput } from './components/blur-input';
42
+ import { I18n } from '@flowgram.ai/editor';
42
43
 
43
44
  export function JsonSchemaEditor(props: {
44
45
  value?: IJsonSchema;
@@ -155,7 +156,7 @@ function PropertyEdit(props: {
155
156
  <UIRow>
156
157
  <UIName>
157
158
  <BlurInput
158
- placeholder={config?.placeholder ?? 'Input Variable Name'}
159
+ placeholder={config?.placeholder ?? I18n.t('Input Variable Name')}
159
160
  size="small"
160
161
  value={name}
161
162
  onChange={(value) => onChange('name', value)}
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "name": "auto-rename-ref",
3
- "depMaterials": ["flow-value"],
4
- "depPackages": ["lodash"]
3
+ "depMaterials": [
4
+ "flow-value"
5
+ ],
6
+ "depPackages": [
7
+ "lodash-es"
8
+ ]
5
9
  }
@@ -3,7 +3,7 @@
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
5
 
6
- import { isArray, isObject } from 'lodash';
6
+ import { isArray, isObject } from 'lodash-es';
7
7
  import {
8
8
  DataEvent,
9
9
  Effect,
@@ -3,7 +3,7 @@
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
5
 
6
- import { isObject } from 'lodash';
6
+ import { isObject } from 'lodash-es';
7
7
 
8
8
  interface LegacyFlowRefValueSchema {
9
9
  type: 'ref';
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "name": "json-schema",
3
- "depMaterials": ["typings/json-schema"],
4
- "depPackages": ["lodash"]
3
+ "depMaterials": [
4
+ "typings/json-schema"
5
+ ],
6
+ "depPackages": [
7
+ "lodash-es"
8
+ ]
5
9
  }
@@ -3,7 +3,7 @@
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
5
 
6
- import { get } from 'lodash';
6
+ import { get } from 'lodash-es';
7
7
  import { ASTFactory, ASTKind, ASTMatch, ASTNode, ASTNodeJSON, BaseType } from '@flowgram.ai/editor';
8
8
 
9
9
  import { IJsonSchema } from '../../typings/json-schema';