@blocklet/labels 1.6.211 → 1.6.213

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,6 @@
1
- /// <reference types="react" />
1
+ import { CreateLabel, FetchLabels } from '../../types';
2
2
  import { Label } from './types';
3
- import type { CreateLabel, FetchLabels } from '../../types';
3
+
4
4
  interface LabelsProviderProps {
5
5
  fetchLabels: FetchLabels;
6
6
  createLabel: CreateLabel;
@@ -1,5 +1,6 @@
1
- import { GroupBase } from 'react-select';
2
1
  import { Label } from './types';
2
+ import { GroupBase } from 'react-select';
3
+
3
4
  interface LabelPickerProps {
4
5
  data: Label[];
5
6
  value: string[];
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { SxProps } from '@mui/system';
3
1
  import { Label } from './types';
2
+ import { SxProps } from '@mui/system';
3
+
4
4
  interface SharedProps {
5
5
  selectable?: boolean;
6
6
  selected?: string[];
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { type SxProps } from '@mui/material';
3
1
  import { Label } from './types';
2
+ import { SxProps } from '@mui/material';
3
+
4
4
  interface LabelsProps {
5
5
  labels: string[] | undefined | null;
6
6
  editable?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { LabelDto, Label } from './types';
2
+
2
3
  export declare const flatten: <T extends {
3
4
  children?: T[] | undefined;
4
5
  }>(data: T[]) => T[];
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { type BoxProps } from '@mui/material';
1
+ import { BoxProps } from '@mui/material';
2
+
3
3
  export interface GithubLabelPickerProps {
4
4
  value: string[];
5
5
  onChange: (value: string[]) => void;
@@ -1,11 +1,12 @@
1
+ import { CreateLabel, LabelPayload, LabelsResponse } from '../types';
1
2
  import { LabelTreeNode } from './tree';
2
- import type { CreateLabel, LabelPayload, LabelsResponse } from '../types';
3
+
3
4
  interface InitialState {
4
5
  loading: boolean;
5
6
  data?: LabelsResponse;
6
7
  createLabel: CreateLabel;
7
8
  }
8
- export declare const LabelsContainer: import("unstated-next").Container<{
9
+ export declare const LabelsContainer: import('unstated-next').Container<{
9
10
  flattenedLabels: LabelTreeNode[];
10
11
  popularLabels: LabelTreeNode[];
11
12
  counts: Record<string, number>;
@@ -1,5 +1,6 @@
1
+ import { GithubLabelPickerProps } from './github-label-picker';
1
2
  import { TextFieldProps } from '@mui/material';
2
- import { type GithubLabelPickerProps } from './github-label-picker';
3
+
3
4
  export interface LabelsInputProps {
4
5
  value: string[];
5
6
  onChange: (value: string[]) => void;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { type SxProps } from '@mui/material';
3
- import type { LabelTreeNode } from './tree';
1
+ import { LabelTreeNode } from './tree';
2
+ import { SxProps } from '@mui/material';
3
+
4
4
  export interface LabelsProps {
5
5
  labels: string[] | undefined | null;
6
6
  sx?: SxProps;
@@ -1,4 +1,5 @@
1
- import type { BaseLabel, LabelType } from '../types';
1
+ import { BaseLabel, LabelType } from '../types';
2
+
2
3
  export declare class TreeNode<T> {
3
4
  data: T;
4
5
  parent?: TreeNode<T>;
@@ -1,2 +1,3 @@
1
- import type { Label } from '../../components/label/types';
1
+ import { Label } from '../../components/label/types';
2
+
2
3
  export declare const labels: Label[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "1.6.211",
3
+ "version": "1.6.213",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@blocklet/translation-input": "1.6.211",
31
+ "@blocklet/translation-input": "1.6.213",
32
32
  "@emotion/css": "^11.10.5",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
@@ -61,7 +61,7 @@
61
61
  "@storybook/addon-essentials": "^6.5.13",
62
62
  "@storybook/addon-interactions": "^6.5.13",
63
63
  "@storybook/addon-links": "^6.5.13",
64
- "@storybook/builder-vite": "^0.2.7",
64
+ "@storybook/builder-vite": "^8.0.6",
65
65
  "@storybook/react": "^6.5.13",
66
66
  "@storybook/testing-library": "^0.0.13",
67
67
  "@svgr/core": "^6.5.1",
@@ -76,12 +76,12 @@
76
76
  "rollup-plugin-node-externals": "^5.1.3",
77
77
  "typescript": "^4.6.4",
78
78
  "unplugin-icons": "^0.14.14",
79
- "vite": "^5.0.11",
80
- "vite-plugin-dts": "^3.7.0",
79
+ "vite": "^5.2.8",
80
+ "vite-plugin-dts": "^3.8.1",
81
81
  "vite-plugin-libcss": "^1.1.1"
82
82
  },
83
83
  "resolutions": {
84
84
  "react": "^18.2.0"
85
85
  },
86
- "gitHead": "e05a68eda61886f45f568316e981da8ae3f665f7"
86
+ "gitHead": "03b4c48a34d63d8d539a94c3fc77313fb44b7fbe"
87
87
  }