@baishuyun/ai-design 2.0.33 → 2.0.35

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @baishuyun/ai-design
2
2
 
3
+ ## 2.0.35
4
+
5
+ ### Patch Changes
6
+
7
+ - fix style missing
8
+
9
+ ## 2.0.34
10
+
11
+ ### Patch Changes
12
+
13
+ - marked 版本降级
14
+
3
15
  ## 2.0.33
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ai-design",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -12,7 +12,7 @@
12
12
  "types": "./src/index.ts",
13
13
  "import": "./src/index.ts"
14
14
  },
15
- "./style.css": "./dist/ai-design.css",
15
+ "./style.css": "./style.css",
16
16
  "./*": {
17
17
  "types": "./src/components/*.tsx",
18
18
  "import": "./src/components/*.tsx"
@@ -50,7 +50,7 @@
50
50
  "codemirror": "^5.65.0",
51
51
  "date-fns": "^4.1.0",
52
52
  "lucide-react": "^0.554.0",
53
- "marked": "^17.0.1",
53
+ "marked": "^14.1.4",
54
54
  "radix-ui": "^1.5.0",
55
55
  "react-day-picker": "^9.11.2",
56
56
  "react-hook-form": "^7.76.0",
@@ -25,7 +25,12 @@ interface WidgetItem {
25
25
  }
26
26
 
27
27
  function getItems(field: FieldValueInputProps['field']): WidgetItem[] {
28
- return field.widget?.items?.filter((it) => typeof it.label === 'string') as WidgetItem[] ?? [];
28
+ return field.widget?.items
29
+ ?.filter((it) => typeof it.label === 'string' || typeof it.text === 'string')
30
+ .map((it) => ({
31
+ label: it.label ?? it.text ?? '',
32
+ value: it.value,
33
+ })) as WidgetItem[] ?? [];
29
34
  }
30
35
 
31
36
  function usePortalContainer(attr: string) {
@@ -20,6 +20,8 @@ const ALL_OPTIONS: Array<{ value: relationalOperator; label: string }> = [
20
20
  { value: 'empty', label: OPERATOR_LABEL_MAP.empty },
21
21
  { value: 'not_empty', label: OPERATOR_LABEL_MAP.not_empty },
22
22
  { value: 'range', label: OPERATOR_LABEL_MAP.range },
23
+ { value: 'like', label: OPERATOR_LABEL_MAP.like },
24
+ { value: 'unlike', label: OPERATOR_LABEL_MAP.unlike },
23
25
  ];
24
26
 
25
27
  export interface IRelationalOperatorSelectProps {
@@ -78,7 +78,7 @@ export function DateRangePicker({
78
78
  <CalendarIcon className="shrink-0 size-[16px] text-[#999999]" />
79
79
  </div>
80
80
  </PopoverTrigger>
81
- <PopoverContent className="w-auto p-0" align="start">
81
+ <PopoverContent className="w-auto min-w-[300px] p-0" align="start">
82
82
  <Calendar
83
83
  mode="range"
84
84
  selected={value}
@@ -21,7 +21,7 @@ function Calendar({
21
21
  classNames={{
22
22
  months: 'flex flex-col gap-2',
23
23
  month: 'flex flex-col gap-2',
24
- caption: 'flex justify-center pt-1 relative items-center w-full',
24
+ month_caption: 'flex justify-center pt-1 relative items-center w-full',
25
25
  caption_label: 'text-[12px] font-medium text-[#121111]',
26
26
  nav: 'flex items-center gap-1',
27
27
  button_previous: