@next-bricks/ai-portal 0.59.4 → 0.59.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.
@@ -3,7 +3,16 @@ import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
4
  import { Placement } from "@next-bricks/basic/popover";
5
5
  import { Target } from "@next-bricks/basic/link";
6
- import { NoticeItem } from "../shared/interfaces.js";
6
+ export interface NoticeItem {
7
+ id: string;
8
+ type: string;
9
+ isRead: boolean;
10
+ title: string;
11
+ description?: string;
12
+ time: number;
13
+ /** 单个消息详情链接,优先级高于 urlTemplate */
14
+ url?: string;
15
+ }
7
16
  export interface NoticeDropdownProps {
8
17
  /** 消息数据列表 */
9
18
  dataSource?: NoticeItem[];
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
- import { NoticeItem } from "../shared/interfaces.js";
5
4
  import { Target } from "@next-bricks/basic/link";
6
5
  import type { CheckboxValueType } from "@next-bricks/form/checkbox";
6
+ import { NoticeItem } from "../notice-dropdown/index.js";
7
7
  export interface CheckboxEvents {
8
8
  change: CustomEvent<CheckboxValueType[]>;
9
9
  }
@@ -230,14 +230,6 @@ export interface PlanStep {
230
230
  taskId?: string;
231
231
  state?: TaskState;
232
232
  }
233
- export interface NoticeItem {
234
- id: string;
235
- type: string;
236
- isRead: boolean;
237
- title: string;
238
- description?: string;
239
- time: number;
240
- }
241
233
  export interface ActiveImages {
242
234
  files: FileInfo[];
243
235
  file: FileInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.59.4",
3
+ "version": "0.59.5",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,5 +47,5 @@
47
47
  "@next-bricks/presentational": "*",
48
48
  "@next-bricks/vs": "*"
49
49
  },
50
- "gitHead": "ebd0fba01d17d7306589ddeec590acec6700b2c4"
50
+ "gitHead": "e6b1d42b07a32b108f730d2cb2e3df5ee650708b"
51
51
  }