@flowgram.ai/form-materials 0.4.3 → 0.4.4

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-materials",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "homepage": "https://flowgram.ai/",
5
5
  "repository": "https://github.com/bytedance/flowgram.ai",
6
6
  "license": "MIT",
@@ -35,8 +35,8 @@
35
35
  "@codemirror/state": "~6.5.2",
36
36
  "typescript": "^5.8.3",
37
37
  "zod": "^3.24.4",
38
- "@flowgram.ai/editor": "0.4.3",
39
- "@flowgram.ai/json-schema": "0.4.3"
38
+ "@flowgram.ai/editor": "0.4.4",
39
+ "@flowgram.ai/json-schema": "0.4.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/lodash": "^4.14.137",
@@ -52,8 +52,8 @@
52
52
  "tsup": "^8.0.1",
53
53
  "typescript": "^5.8.3",
54
54
  "vitest": "^0.34.6",
55
- "@flowgram.ai/eslint-config": "0.4.3",
56
- "@flowgram.ai/ts-config": "0.4.3"
55
+ "@flowgram.ai/ts-config": "0.4.4",
56
+ "@flowgram.ai/eslint-config": "0.4.4"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": ">=16.8",
@@ -12,6 +12,7 @@ import { CodeEditor, type CodeEditorPropsType } from '@/components/code-editor';
12
12
 
13
13
  import { VariableTree } from './extensions/variable-tree';
14
14
  import { VariableTagInject } from './extensions/variable-tag';
15
+ import { I18n } from '@flowgram.ai/editor';
15
16
 
16
17
  type Match = { match: string; range: [number, number] };
17
18
  function findAllMatches(inputString: string, regex: RegExp): Match[] {
@@ -52,7 +53,7 @@ export function JsonEditorWithVariables(props: Omit<CodeEditorPropsType, 'langua
52
53
  return (
53
54
  <CodeEditor
54
55
  languageId="json"
55
- activeLinePlaceholder="Press '@' to Select variable"
56
+ activeLinePlaceholder={I18n.t("Press '@' to Select variable")}
56
57
  {...props}
57
58
  options={{
58
59
  transformer,
@@ -132,7 +132,7 @@ function PropertyEdit(props: {
132
132
  <UIName>
133
133
  <BlurInput
134
134
  disabled={readonly}
135
- placeholder={config?.placeholder ?? 'Input Variable Name'}
135
+ placeholder={config?.placeholder ?? I18n.t('Input Variable Name')}
136
136
  size="small"
137
137
  value={name}
138
138
  onChange={(value) => onChange('name', value)}