@kelet-ai/feedback-ui 0.2.4 → 0.2.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.
- package/dist/components/ui/button.d.ts +1 -1
- package/package.json +5 -3
- package/dist/README.stories.d.ts +0 -5
- package/dist/components/vote-feedback.stories.d.ts +0 -10
- package/dist/feedback-ui.es.d.ts +0 -56
- package/dist/feedback-ui.umd.d.ts +0 -1
- package/dist/hooks/feedback-state/use-feedback-state.stories.d.ts +0 -20
- package/dist/hooks/feedback-state/use-feedback-state.test.d.ts +0 -1
- package/dist/ui/shadcn/index.d.ts +0 -2
- package/dist/ui/shadcn/vote-feedback.d.ts +0 -13
- package/dist/ui/shadcn/vote-feedback.stories.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kelet-ai/feedback-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/kelet-ai/feedback-ui.git"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"license": "APACHE-2.0",
|
|
78
78
|
"scripts": {
|
|
79
79
|
"dev": "NODE_NO_WARNINGS=1 storybook dev -p 6006",
|
|
80
|
-
"build": "vite build",
|
|
80
|
+
"build": "tsc -b && vite build",
|
|
81
81
|
"build-storybook": "storybook build",
|
|
82
82
|
"test": "vitest",
|
|
83
83
|
"test:unit": "vitest --project=unit",
|
|
@@ -90,7 +90,9 @@
|
|
|
90
90
|
"preview": "vite preview",
|
|
91
91
|
"prepublishOnly": "bun run build",
|
|
92
92
|
"storybook": "NODE_NO_WARNINGS=1 storybook dev -p 6006",
|
|
93
|
-
"registry:build": "bun shadcn build"
|
|
93
|
+
"registry:build": "bun shadcn build",
|
|
94
|
+
"typecheck": "tsc -b",
|
|
95
|
+
"verify-build": "bun test ./.github/build-verification.test.ts"
|
|
94
96
|
},
|
|
95
97
|
"type": "module",
|
|
96
98
|
"types": "./dist/index.d.ts",
|
package/dist/README.stories.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { VoteFeedback } from './vote-feedback';
|
|
3
|
-
declare const meta: Meta<typeof VoteFeedback.Root>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const HeadlessBasic: Story;
|
|
7
|
-
export declare const HeadlessCustomStyling: Story;
|
|
8
|
-
export declare const HeadlessMinimal: Story;
|
|
9
|
-
export declare const AsChildPattern: Story;
|
|
10
|
-
export declare const CompleteWorkflow: Story;
|
package/dist/feedback-ui.es.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { default as Ae } from 'react';
|
|
2
|
-
declare const se: Ae.Context<null>;
|
|
3
|
-
declare function dt({ apiKey: r, project: e, children: n }: {
|
|
4
|
-
apiKey: any;
|
|
5
|
-
project: any;
|
|
6
|
-
children: any;
|
|
7
|
-
}): any;
|
|
8
|
-
declare namespace pt {
|
|
9
|
-
export { Le as Root };
|
|
10
|
-
export { Me as UpvoteButton };
|
|
11
|
-
export { $e as DownvoteButton };
|
|
12
|
-
export { qe as Popover };
|
|
13
|
-
export { We as Textarea };
|
|
14
|
-
export { Ye as SubmitButton };
|
|
15
|
-
}
|
|
16
|
-
declare function Pe(): any;
|
|
17
|
-
declare function ht(r: any, e: any, n: any): any[];
|
|
18
|
-
declare function ft(): never;
|
|
19
|
-
declare function Le({ children: r, onFeedback: e, defaultText: n, identifier: t, extra_metadata: i, trigger_name: u }: {
|
|
20
|
-
children: any;
|
|
21
|
-
onFeedback: any;
|
|
22
|
-
defaultText?: string | undefined;
|
|
23
|
-
identifier: any;
|
|
24
|
-
extra_metadata: any;
|
|
25
|
-
trigger_name: any;
|
|
26
|
-
}): any;
|
|
27
|
-
declare function Me({ asChild: r, children: e, onClick: n, ...t }: {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
asChild: any;
|
|
30
|
-
children: any;
|
|
31
|
-
onClick: any;
|
|
32
|
-
}): any;
|
|
33
|
-
declare function $e({ asChild: r, children: e, onClick: n, ...t }: {
|
|
34
|
-
[x: string]: any;
|
|
35
|
-
asChild: any;
|
|
36
|
-
children: any;
|
|
37
|
-
onClick: any;
|
|
38
|
-
}): any;
|
|
39
|
-
declare function qe({ asChild: r, children: e, ...n }: {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
asChild: any;
|
|
42
|
-
children: any;
|
|
43
|
-
}): any;
|
|
44
|
-
declare function We({ asChild: r, value: e, onChange: n, ...t }: {
|
|
45
|
-
[x: string]: any;
|
|
46
|
-
asChild: any;
|
|
47
|
-
value: any;
|
|
48
|
-
onChange: any;
|
|
49
|
-
}): any;
|
|
50
|
-
declare function Ye({ asChild: r, children: e, onClick: n, ...t }: {
|
|
51
|
-
[x: string]: any;
|
|
52
|
-
asChild: any;
|
|
53
|
-
children: any;
|
|
54
|
-
onClick: any;
|
|
55
|
-
}): any;
|
|
56
|
-
export { se as KeletContext, dt as KeletProvider, pt as VoteFeedback, Pe as useDefaultFeedbackHandler, ht as useFeedbackState, ft as useKelet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface FeedbackStateTestProps {
|
|
4
|
-
initialState: any;
|
|
5
|
-
identifier: string | ((state: any) => string);
|
|
6
|
-
options?: any;
|
|
7
|
-
onFeedback?: (data: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const FeedbackStateTest: React.FC<FeedbackStateTestProps>;
|
|
10
|
-
declare const meta: Meta<typeof FeedbackStateTest>;
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const PrimitiveState: Story;
|
|
14
|
-
export declare const ObjectState: Story;
|
|
15
|
-
export declare const ArrayState: Story;
|
|
16
|
-
export declare const StringState: Story;
|
|
17
|
-
export declare const CustomValue: Story;
|
|
18
|
-
export declare const RapidChanges: Story;
|
|
19
|
-
export declare const CustomVoteLogic: Story;
|
|
20
|
-
export declare const StaticVoteConfiguration: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VoteFeedbackRootProps } from '../../types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
interface ShadcnVoteFeedbackProps extends VoteFeedbackRootProps {
|
|
4
|
-
variant?: 'default' | 'outline' | 'ghost' | 'secondary';
|
|
5
|
-
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const ShadcnVoteFeedback: React.ForwardRefExoticComponent<ShadcnVoteFeedbackProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { ShadcnVoteFeedback };
|
|
13
|
-
export type { ShadcnVoteFeedbackProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { ShadcnVoteFeedback } from './vote-feedback';
|
|
3
|
-
declare const meta: Meta<typeof ShadcnVoteFeedback>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Ghost: Story;
|
|
8
|
-
export declare const Secondary: Story;
|
|
9
|
-
export declare const DefaultFilled: Story;
|
|
10
|
-
export declare const CustomContent: Story;
|
|
11
|
-
export declare const InlineUsage: Story;
|