@blocklet/labels 2.1.166 → 2.1.168

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/dist/index.es.js CHANGED
@@ -417,6 +417,8 @@ class Label {
417
417
  constructor(data) {
418
418
  __publicField(this, "id");
419
419
  __publicField(this, "name");
420
+ __publicField(this, "desc");
421
+ __publicField(this, "image");
420
422
  __publicField(this, "icon");
421
423
  __publicField(this, "type");
422
424
  __publicField(this, "color");
@@ -424,6 +426,8 @@ class Label {
424
426
  __publicField(this, "translation");
425
427
  this.id = data.id;
426
428
  this.name = data.name;
429
+ this.desc = data.desc;
430
+ this.image = data.image;
427
431
  this.icon = data.icon;
428
432
  this.type = data.type;
429
433
  this.color = data.color || "#ddd";
package/dist/index.umd.js CHANGED
@@ -404,6 +404,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
404
404
  constructor(data) {
405
405
  __publicField(this, "id");
406
406
  __publicField(this, "name");
407
+ __publicField(this, "desc");
408
+ __publicField(this, "image");
407
409
  __publicField(this, "icon");
408
410
  __publicField(this, "type");
409
411
  __publicField(this, "color");
@@ -411,6 +413,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
411
413
  __publicField(this, "translation");
412
414
  this.id = data.id;
413
415
  this.name = data.name;
416
+ this.desc = data.desc;
417
+ this.image = data.image;
414
418
  this.icon = data.icon;
415
419
  this.type = data.type;
416
420
  this.color = data.color || "#ddd";
@@ -15,6 +15,8 @@ export declare const LabelsContainer: import('unstated-next').Container<{
15
15
  getRelatedLabels: (id: string) => import('./tree').TreeNode<{
16
16
  id: string;
17
17
  name: string;
18
+ desc?: string | undefined;
19
+ image?: string | undefined;
18
20
  icon?: string | undefined;
19
21
  type?: import('../types').LabelType;
20
22
  color: string;
@@ -30,6 +32,8 @@ export declare const LabelsContainer: import('unstated-next').Container<{
30
32
  getRecommended: (id?: string) => import('./tree').TreeNode<{
31
33
  id: string;
32
34
  name: string;
35
+ desc?: string | undefined;
36
+ image?: string | undefined;
33
37
  icon?: string | undefined;
34
38
  type?: import('../types').LabelType;
35
39
  color: string;
@@ -45,6 +49,8 @@ export declare const LabelsContainer: import('unstated-next').Container<{
45
49
  createLabel: (name: string) => Promise<{
46
50
  id: string;
47
51
  name: string;
52
+ desc?: string | undefined;
53
+ image?: string | undefined;
48
54
  icon?: string | undefined;
49
55
  type?: import('../types').LabelType;
50
56
  color: string;
@@ -20,6 +20,8 @@ export declare class TreeNode<T> {
20
20
  declare class Label {
21
21
  id: string;
22
22
  name: string;
23
+ desc?: string;
24
+ image?: string;
23
25
  icon?: string;
24
26
  type?: LabelType;
25
27
  color: string;
package/dist/types.d.ts CHANGED
@@ -2,6 +2,8 @@ export type LabelType = 'system' | undefined;
2
2
  export interface BaseLabel {
3
3
  id: string;
4
4
  name: string;
5
+ desc?: string;
6
+ image?: string;
5
7
  icon?: string;
6
8
  color?: string;
7
9
  type?: LabelType;
@@ -22,6 +24,8 @@ export type FetchLabels = () => Promise<LabelsResponse>;
22
24
  export interface CreateOrUpdateLabelPayload extends Omit<BaseLabel, 'id'> {
23
25
  id?: string;
24
26
  slug?: string;
27
+ desc?: string;
28
+ image?: string;
25
29
  parentId?: string;
26
30
  translation?: {
27
31
  [locale: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "2.1.166",
3
+ "version": "2.1.168",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,7 +29,7 @@
29
29
  "react-color": "^2.19.3",
30
30
  "react-select": "^5.8.1",
31
31
  "unstated-next": "^1.1.0",
32
- "@blocklet/translation-input": "^2.1.166"
32
+ "@blocklet/translation-input": "^2.1.168"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@arcblock/did-connect": "^2.10.36",