@blocklet/labels 1.5.213 → 1.6.0
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/components/label/context.d.ts +3 -2
- package/dist/components/label/index.d.ts +0 -1
- package/dist/components/label/types.d.ts +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +632 -321
- package/dist/index.umd.js +626 -308
- package/dist/label2/github-label-picker.d.ts +14 -0
- package/dist/label2/labels-context.d.ts +46 -3
- package/dist/label2/labels-input.d.ts +6 -0
- package/dist/label2/labels2.d.ts +10 -0
- package/dist/label2/tree.d.ts +13 -3
- package/dist/types.d.ts +23 -8
- package/package.json +3 -3
- package/dist/components/label/LabelManager.stories.d.ts +0 -8
- package/dist/components/label/LabelPicker.stories.d.ts +0 -5
- package/dist/components/label/LabelTree.stories.d.ts +0 -8
- package/dist/components/label/label-delete-dialog.d.ts +0 -9
- package/dist/components/label/label-form-dialog.d.ts +0 -9
- package/dist/components/label/label-manager.d.ts +0 -12
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Label } from './types';
|
|
3
|
-
import { FetchLabels } from '../../types';
|
|
3
|
+
import type { CreateLabel, FetchLabels } from '../../types';
|
|
4
4
|
interface LabelsProviderProps {
|
|
5
5
|
fetchLabels: FetchLabels;
|
|
6
|
+
createLabel: CreateLabel;
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
interface LabelsContextValue {
|
|
@@ -16,5 +17,5 @@ interface LabelsContextValue {
|
|
|
16
17
|
}
|
|
17
18
|
export declare const useLabelsContext: () => LabelsContextValue;
|
|
18
19
|
export declare const useLabelsUpdateOnDestroy: () => void;
|
|
19
|
-
export declare function LabelsProvider({ fetchLabels, children }: LabelsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function LabelsProvider({ fetchLabels, createLabel, children }: LabelsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as LabelTree } from './label-tree';
|
|
2
2
|
export { default as LabelPicker } from './label-picker';
|
|
3
|
-
export { default as LabelManager } from './label-manager';
|
|
4
3
|
export { default as Labels } from './labels';
|
|
5
4
|
export * from './context';
|
|
6
5
|
export * from './types';
|
|
@@ -5,7 +5,7 @@ export interface Label {
|
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: string;
|
|
8
|
-
color
|
|
8
|
+
color?: string;
|
|
9
9
|
translation?: Translation;
|
|
10
10
|
parent?: Label;
|
|
11
11
|
children?: Label[];
|
|
@@ -14,7 +14,7 @@ export interface LabelDto {
|
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
icon?: string;
|
|
17
|
-
color
|
|
17
|
+
color?: string;
|
|
18
18
|
translation?: string;
|
|
19
19
|
parentId?: string;
|
|
20
20
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export * from './components/label';
|
|
2
2
|
export * from './label2/labels-context';
|
|
3
|
+
export * from './label2/github-label-picker';
|
|
4
|
+
export * from './label2/labels-input';
|
|
5
|
+
export * from './label2/labels2';
|
|
6
|
+
export { LabelTreeNode } from './label2/tree';
|
|
7
|
+
export * from './types';
|