@blocklet/labels 2.1.11 → 2.1.13

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.
@@ -1,6 +1,5 @@
1
1
  import { Label } from './types';
2
2
  import { CreateLabel, FetchLabels } from '../../types';
3
-
4
3
  interface LabelsProviderProps {
5
4
  fetchLabels: FetchLabels;
6
5
  createLabel: CreateLabel;
@@ -1,6 +1,5 @@
1
1
  import { GroupBase } from 'react-select';
2
2
  import { Label } from './types';
3
-
4
3
  interface LabelPickerProps {
5
4
  data: Label[];
6
5
  value: string[];
@@ -1,6 +1,5 @@
1
1
  import { SxProps } from '@mui/system';
2
2
  import { Label } from './types';
3
-
4
3
  interface SharedProps {
5
4
  selectable?: boolean;
6
5
  selected?: string[];
@@ -1,6 +1,5 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { Label } from './types';
3
-
4
3
  interface LabelsProps {
5
4
  labels: string[] | undefined | null;
6
5
  editable?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { LabelDto, Label } from './types';
2
-
3
2
  export declare const flatten: <T extends {
4
3
  children?: T[] | undefined;
5
4
  }>(data: T[]) => T[];
@@ -1,5 +1,4 @@
1
1
  import { BoxProps } from '@mui/material';
2
-
3
2
  export interface GithubLabelPickerProps {
4
3
  value: string[];
5
4
  onChange: (value: string[]) => void;
@@ -1,6 +1,5 @@
1
1
  import { LabelTreeNode } from './tree';
2
2
  import { CreateLabel, LabelPayload, LabelsResponse } from '../types';
3
-
4
3
  interface InitialState {
5
4
  loading: boolean;
6
5
  data?: LabelsResponse;
@@ -1,6 +1,5 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
2
  import { GithubLabelPickerProps } from './github-label-picker';
3
-
4
3
  export interface LabelsInputProps {
5
4
  value: string[];
6
5
  onChange: (value: string[]) => void;
@@ -1,6 +1,5 @@
1
1
  import { Theme, SxProps } from '@mui/material';
2
2
  import { LabelTreeNode } from './tree';
3
-
4
3
  export interface LabelsProps {
5
4
  labels: string[] | undefined | null;
6
5
  sx?: SxProps;
@@ -1,5 +1,4 @@
1
1
  import { BaseLabel, LabelType } from '../types';
2
-
3
2
  export declare class TreeNode<T> {
4
3
  data: T;
5
4
  parent?: TreeNode<T>;
@@ -1,3 +1,2 @@
1
1
  import { Label } from '../../components/label/types';
2
-
3
2
  export declare const labels: Label[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,11 +29,11 @@
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.11"
32
+ "@blocklet/translation-input": "^2.1.13"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@arcblock/did-connect": "^2.10.36",
36
- "@arcblock/ux": "^2.10.36",
36
+ "@arcblock/ux": "^2.10.46",
37
37
  "@mui/icons-material": "^5.14.3",
38
38
  "@mui/material": "^5.14.4",
39
39
  "lodash": "^4.17.21",
@@ -48,7 +48,7 @@
48
48
  "@storybook/addon-essentials": "^6.5.16",
49
49
  "@storybook/addon-interactions": "^6.5.16",
50
50
  "@storybook/addon-links": "^6.5.16",
51
- "@storybook/builder-vite": "^8.3.3",
51
+ "@storybook/builder-vite": "^8.3.5",
52
52
  "@storybook/react": "^6.5.16",
53
53
  "@storybook/testing-library": "^0.0.13",
54
54
  "@svgr/core": "^6.5.1",
@@ -56,15 +56,15 @@
56
56
  "@types/react": "^18.3.9",
57
57
  "@types/react-color": "^3.0.12",
58
58
  "@types/react-dom": "^18.3.0",
59
- "@vitejs/plugin-react": "^4.3.1",
59
+ "@vitejs/plugin-react": "^4.3.2",
60
60
  "babel-loader": "^8.4.1",
61
61
  "react": "^18.3.1",
62
62
  "react-dom": "^18.3.1",
63
63
  "rollup-plugin-node-externals": "^7.1.3",
64
64
  "typescript": "^4.9.5",
65
65
  "unplugin-icons": "^0.14.15",
66
- "vite": "^5.4.8",
67
- "vite-plugin-dts": "^3.9.1",
66
+ "vite": "^5.4.9",
67
+ "vite-plugin-dts": "^4.2.4",
68
68
  "vite-plugin-libcss": "^1.1.1"
69
69
  },
70
70
  "scripts": {