@outtalent-dev/shared 1.1.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/README.md +77 -0
- package/dist/components/ui/badge/Badge.d.ts +15 -0
- package/dist/components/ui/badge/Badge.d.ts.map +1 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.d.ts.map +1 -0
- package/dist/components/ui/button/Button.d.ts +20 -0
- package/dist/components/ui/button/Button.d.ts.map +1 -0
- package/dist/components/ui/button/index.d.ts +8 -0
- package/dist/components/ui/button/index.d.ts.map +1 -0
- package/dist/components/ui/calendar/Calendar.d.ts +14 -0
- package/dist/components/ui/calendar/Calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarCell.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarCell.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarCellTrigger.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarCellTrigger.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarGrid.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarGrid.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarGridBody.d.ts +11 -0
- package/dist/components/ui/calendar/CalendarGridBody.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarGridHead.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarGridHead.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarGridRow.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarGridRow.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarHeadCell.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarHeadCell.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarHeader.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarHeader.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarHeading.d.ts +21 -0
- package/dist/components/ui/calendar/CalendarHeading.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarNextButton.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarNextButton.d.ts.map +1 -0
- package/dist/components/ui/calendar/CalendarPrevButton.d.ts +15 -0
- package/dist/components/ui/calendar/CalendarPrevButton.d.ts.map +1 -0
- package/dist/components/ui/calendar/index.d.ts +13 -0
- package/dist/components/ui/calendar/index.d.ts.map +1 -0
- package/dist/components/ui/checkbox/Checkbox.d.ts +19 -0
- package/dist/components/ui/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.d.ts.map +1 -0
- package/dist/components/ui/combobox/Combobox.d.ts +26 -0
- package/dist/components/ui/combobox/Combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxAnchor.d.ts +15 -0
- package/dist/components/ui/combobox/ComboboxAnchor.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxEmpty.d.ts +15 -0
- package/dist/components/ui/combobox/ComboboxEmpty.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxGroup.d.ts +16 -0
- package/dist/components/ui/combobox/ComboboxGroup.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxInput.d.ts +19 -0
- package/dist/components/ui/combobox/ComboboxInput.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxItem.d.ts +19 -0
- package/dist/components/ui/combobox/ComboboxItem.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxList.d.ts +29 -0
- package/dist/components/ui/combobox/ComboboxList.d.ts.map +1 -0
- package/dist/components/ui/combobox/ComboboxSeparator.d.ts +15 -0
- package/dist/components/ui/combobox/ComboboxSeparator.d.ts.map +1 -0
- package/dist/components/ui/combobox/index.d.ts +10 -0
- package/dist/components/ui/combobox/index.d.ts.map +1 -0
- package/dist/components/ui/dialog/Dialog.d.ts +15 -0
- package/dist/components/ui/dialog/Dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogClose.d.ts +11 -0
- package/dist/components/ui/dialog/DialogClose.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogContent.d.ts +29 -0
- package/dist/components/ui/dialog/DialogContent.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogDescription.d.ts +15 -0
- package/dist/components/ui/dialog/DialogDescription.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogFooter.d.ts +14 -0
- package/dist/components/ui/dialog/DialogFooter.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogHeader.d.ts +14 -0
- package/dist/components/ui/dialog/DialogHeader.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogScrollContent.d.ts +29 -0
- package/dist/components/ui/dialog/DialogScrollContent.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogTitle.d.ts +15 -0
- package/dist/components/ui/dialog/DialogTitle.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogTrigger.d.ts +11 -0
- package/dist/components/ui/dialog/DialogTrigger.d.ts.map +1 -0
- package/dist/components/ui/dialog/index.d.ts +10 -0
- package/dist/components/ui/dialog/index.d.ts.map +1 -0
- package/dist/components/ui/form/FormControl.d.ts +10 -0
- package/dist/components/ui/form/FormControl.d.ts.map +1 -0
- package/dist/components/ui/form/FormDescription.d.ts +14 -0
- package/dist/components/ui/form/FormDescription.d.ts.map +1 -0
- package/dist/components/ui/form/FormItem.d.ts +14 -0
- package/dist/components/ui/form/FormItem.d.ts.map +1 -0
- package/dist/components/ui/form/FormLabel.d.ts +15 -0
- package/dist/components/ui/form/FormLabel.d.ts.map +1 -0
- package/dist/components/ui/form/FormMessage.d.ts +3 -0
- package/dist/components/ui/form/FormMessage.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +9 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/form/injectionKeys.d.ts +3 -0
- package/dist/components/ui/form/injectionKeys.d.ts.map +1 -0
- package/dist/components/ui/form/useFormField.d.ts +12 -0
- package/dist/components/ui/form/useFormField.d.ts.map +1 -0
- package/dist/components/ui/hover-card/HoverCard.d.ts +15 -0
- package/dist/components/ui/hover-card/HoverCard.d.ts.map +1 -0
- package/dist/components/ui/hover-card/HoverCardContent.d.ts +17 -0
- package/dist/components/ui/hover-card/HoverCardContent.d.ts.map +1 -0
- package/dist/components/ui/hover-card/HoverCardTrigger.d.ts +11 -0
- package/dist/components/ui/hover-card/HoverCardTrigger.d.ts.map +1 -0
- package/dist/components/ui/hover-card/index.d.ts +4 -0
- package/dist/components/ui/hover-card/index.d.ts.map +1 -0
- package/dist/components/ui/input/Input.d.ts +19 -0
- package/dist/components/ui/input/Input.d.ts.map +1 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts.map +1 -0
- package/dist/components/ui/label/Label.d.ts +15 -0
- package/dist/components/ui/label/Label.d.ts.map +1 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.d.ts.map +1 -0
- package/dist/components/ui/popover/Popover.d.ts +15 -0
- package/dist/components/ui/popover/Popover.d.ts.map +1 -0
- package/dist/components/ui/popover/PopoverContent.d.ts +32 -0
- package/dist/components/ui/popover/PopoverContent.d.ts.map +1 -0
- package/dist/components/ui/popover/PopoverTrigger.d.ts +11 -0
- package/dist/components/ui/popover/PopoverTrigger.d.ts.map +1 -0
- package/dist/components/ui/popover/index.d.ts +5 -0
- package/dist/components/ui/popover/index.d.ts.map +1 -0
- package/dist/components/ui/select/Select.d.ts +18 -0
- package/dist/components/ui/select/Select.d.ts.map +1 -0
- package/dist/components/ui/select/SelectContent.d.ts +25 -0
- package/dist/components/ui/select/SelectContent.d.ts.map +1 -0
- package/dist/components/ui/select/SelectGroup.d.ts +15 -0
- package/dist/components/ui/select/SelectGroup.d.ts.map +1 -0
- package/dist/components/ui/select/SelectItem.d.ts +15 -0
- package/dist/components/ui/select/SelectItem.d.ts.map +1 -0
- package/dist/components/ui/select/SelectItemText.d.ts +11 -0
- package/dist/components/ui/select/SelectItemText.d.ts.map +1 -0
- package/dist/components/ui/select/SelectLabel.d.ts +15 -0
- package/dist/components/ui/select/SelectLabel.d.ts.map +1 -0
- package/dist/components/ui/select/SelectScrollDownButton.d.ts +15 -0
- package/dist/components/ui/select/SelectScrollDownButton.d.ts.map +1 -0
- package/dist/components/ui/select/SelectScrollUpButton.d.ts +15 -0
- package/dist/components/ui/select/SelectScrollUpButton.d.ts.map +1 -0
- package/dist/components/ui/select/SelectSeparator.d.ts +8 -0
- package/dist/components/ui/select/SelectSeparator.d.ts.map +1 -0
- package/dist/components/ui/select/SelectTrigger.d.ts +15 -0
- package/dist/components/ui/select/SelectTrigger.d.ts.map +1 -0
- package/dist/components/ui/select/SelectValue.d.ts +11 -0
- package/dist/components/ui/select/SelectValue.d.ts.map +1 -0
- package/dist/components/ui/select/index.d.ts +12 -0
- package/dist/components/ui/select/index.d.ts.map +1 -0
- package/dist/components/ui/switch/Switch.d.ts +19 -0
- package/dist/components/ui/switch/Switch.d.ts.map +1 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.d.ts.map +1 -0
- package/dist/components/ui/textarea/Textarea.d.ts +13 -0
- package/dist/components/ui/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.d.ts.map +1 -0
- package/dist/components/ui/toast/Toast.d.ts +93 -0
- package/dist/components/ui/toast/Toast.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastAction.d.ts +15 -0
- package/dist/components/ui/toast/ToastAction.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastClose.d.ts +8 -0
- package/dist/components/ui/toast/ToastClose.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastDescription.d.ts +15 -0
- package/dist/components/ui/toast/ToastDescription.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastProvider.d.ts +11 -0
- package/dist/components/ui/toast/ToastProvider.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastTitle.d.ts +15 -0
- package/dist/components/ui/toast/ToastTitle.d.ts.map +1 -0
- package/dist/components/ui/toast/ToastViewport.d.ts +8 -0
- package/dist/components/ui/toast/ToastViewport.d.ts.map +1 -0
- package/dist/components/ui/toast/Toaster.d.ts +3 -0
- package/dist/components/ui/toast/Toaster.d.ts.map +1 -0
- package/dist/components/ui/toast/index.d.ts +22 -0
- package/dist/components/ui/toast/index.d.ts.map +1 -0
- package/dist/components/ui/toast/use-toast.d.ts +275 -0
- package/dist/components/ui/toast/use-toast.d.ts.map +1 -0
- package/dist/composables/usePrivacy.d.ts +5 -0
- package/dist/composables/usePrivacy.d.ts.map +1 -0
- package/dist/composables/useSidebarStateSync.d.ts +20 -0
- package/dist/composables/useSidebarStateSync.d.ts.map +1 -0
- package/dist/constants/platformLinks.d.ts +9 -0
- package/dist/constants/platformLinks.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2010 -0
- package/dist/types/user.d.ts +84 -0
- package/dist/types/user.d.ts.map +1 -0
- package/dist/utils/api.d.ts +27 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/debounce.d.ts +4 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/jwtDecoder.d.ts +7 -0
- package/dist/utils/jwtDecoder.d.ts.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
id: number;
|
|
3
|
+
first_name: string;
|
|
4
|
+
last_name: string;
|
|
5
|
+
username: string;
|
|
6
|
+
email: string;
|
|
7
|
+
avatar_image?: string;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
linkedin_profile_url?: string | null;
|
|
10
|
+
leetcode_profile_url?: string | null;
|
|
11
|
+
bachelor_degree_status?: string | null;
|
|
12
|
+
full_time_swe_start_year?: number;
|
|
13
|
+
telegram_username?: string | null;
|
|
14
|
+
slack_member_id?: string | null;
|
|
15
|
+
gender?: {
|
|
16
|
+
id: number;
|
|
17
|
+
gender_name: string;
|
|
18
|
+
} | null;
|
|
19
|
+
current_job_role?: {
|
|
20
|
+
id: number;
|
|
21
|
+
job_name: string;
|
|
22
|
+
} | null;
|
|
23
|
+
country_code_iso_2?: {
|
|
24
|
+
id: string;
|
|
25
|
+
country_name: string;
|
|
26
|
+
} | null;
|
|
27
|
+
uuid: string;
|
|
28
|
+
airtable_fellow_id?: string | null;
|
|
29
|
+
is_guide?: boolean;
|
|
30
|
+
role?: 'COMMON' | 'MENTOR' | 'FELLOW' | 'GUIDE' | string;
|
|
31
|
+
user_role?: string;
|
|
32
|
+
has_personal_curriculum?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface UserUpdatePayload {
|
|
35
|
+
uuid?: string;
|
|
36
|
+
avatar_image?: string | null;
|
|
37
|
+
first_name?: string;
|
|
38
|
+
last_name?: string;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
username?: string;
|
|
41
|
+
email?: string;
|
|
42
|
+
linkedin_profile_url?: string | null;
|
|
43
|
+
leetcode_profile_url?: string | null;
|
|
44
|
+
bachelor_degree_status?: boolean | string | null;
|
|
45
|
+
full_time_swe_start_year?: number | null;
|
|
46
|
+
telegram_username?: string | null;
|
|
47
|
+
gender?: number | null;
|
|
48
|
+
current_job_role?: number | null;
|
|
49
|
+
country_code_iso_2?: number | null;
|
|
50
|
+
slack_member_id?: string | null;
|
|
51
|
+
airtable_fellow_id?: string | null;
|
|
52
|
+
role?: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface Credentials {
|
|
55
|
+
email: string;
|
|
56
|
+
password: string;
|
|
57
|
+
}
|
|
58
|
+
export interface DisplayUserDetails {
|
|
59
|
+
id: number;
|
|
60
|
+
first_name: string;
|
|
61
|
+
last_name: string;
|
|
62
|
+
email: string;
|
|
63
|
+
avatar_image?: string;
|
|
64
|
+
linkedin_profile_url?: string | null;
|
|
65
|
+
telegram_username?: string | null;
|
|
66
|
+
}
|
|
67
|
+
export interface PreferredCompany {
|
|
68
|
+
id: number;
|
|
69
|
+
name: string;
|
|
70
|
+
url?: string;
|
|
71
|
+
logo?: string;
|
|
72
|
+
is_active?: boolean;
|
|
73
|
+
category?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface PreferredCountry {
|
|
76
|
+
id: number;
|
|
77
|
+
country_name: string;
|
|
78
|
+
country_iso_2_code: string;
|
|
79
|
+
}
|
|
80
|
+
export interface CountryOfResidence {
|
|
81
|
+
id: number;
|
|
82
|
+
country_name: string;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export interface CreateApiOptions {
|
|
3
|
+
baseURL: string;
|
|
4
|
+
refreshEndpoint: string;
|
|
5
|
+
loginEndpoint?: string;
|
|
6
|
+
logoutEndpoint?: string;
|
|
7
|
+
/** Return the stored access token, or null if none. */
|
|
8
|
+
getToken: () => string | null;
|
|
9
|
+
/** Persist a new access token. */
|
|
10
|
+
setToken: (token: string) => void;
|
|
11
|
+
/** Return the stored refresh token, or null if none. */
|
|
12
|
+
getRefreshToken?: () => string | null;
|
|
13
|
+
/** Persist a new refresh token. */
|
|
14
|
+
setRefreshToken?: (token: string) => void;
|
|
15
|
+
/** Called when all refresh attempts fail (e.g. redirect to login). */
|
|
16
|
+
onUnauthorized?: () => void;
|
|
17
|
+
/** Called after a successful token refresh with the new access token. */
|
|
18
|
+
onTokenRefreshed?: (newToken: string) => void;
|
|
19
|
+
/** Whether to send cookies cross-origin. Defaults to true. */
|
|
20
|
+
withCredentials?: boolean;
|
|
21
|
+
/** Request timeout in ms. Defaults to 10000. */
|
|
22
|
+
timeout?: number;
|
|
23
|
+
/** Whether to prefix Authorization with "Bearer ". Defaults to false. */
|
|
24
|
+
useBearerPrefix?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function createApi(options: CreateApiOptions): AxiosInstance;
|
|
27
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;IAC7B,kCAAkC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;IACrC,mCAAmC;IACnC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,aAAa,CAwJlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function useDebouncedRef<T>(value: T, delay?: number): import('vue').Ref<T, T>;
|
|
2
|
+
export declare function useDebounce<T extends (...args: any[]) => any>(fn: T, delay?: number): (...args: Parameters<T>) => void;
|
|
3
|
+
export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
4
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,SAAM,2BAiBvD;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3D,EAAE,EAAE,CAAC,EACL,KAAK,SAAM,aAImB,WAAW,CAAC,CAAC,UAQ5C;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAOlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwtDecoder.d.ts","sourceRoot":"","sources":["../../src/utils/jwtDecoder.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,IAAI,CAAA;CACf;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAwB1D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@outtalent-dev/shared",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Shared UI components, composables, and utilities for Outtalent Vue 3 apps",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./style.css": "./dist/style.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite build --watch",
|
|
25
|
+
"build": "vite build",
|
|
26
|
+
"type-check": "vue-tsc --build --force",
|
|
27
|
+
"prepare": "husky"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"vue": "^3.4.0",
|
|
31
|
+
"vue-router": "^4.0.0",
|
|
32
|
+
"axios": "^1.0.0",
|
|
33
|
+
"reka-ui": "^2.0.0",
|
|
34
|
+
"class-variance-authority": "^0.7.0",
|
|
35
|
+
"clsx": "^2.0.0",
|
|
36
|
+
"tailwind-merge": "^3.0.0",
|
|
37
|
+
"lucide-vue-next": ">=0.400.0",
|
|
38
|
+
"vee-validate": "^4.0.0",
|
|
39
|
+
"@vueuse/core": "^13.0.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"vee-validate": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
"lucide-vue-next": {
|
|
46
|
+
"optional": true
|
|
47
|
+
},
|
|
48
|
+
"@vueuse/core": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@commitlint/cli": "^19.0.0",
|
|
54
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
55
|
+
"@semantic-release/changelog": "^6.0.0",
|
|
56
|
+
"@semantic-release/git": "^10.0.0",
|
|
57
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
58
|
+
"husky": "^9.0.0",
|
|
59
|
+
"semantic-release": "^24.0.0",
|
|
60
|
+
"typescript": "~5.4.0",
|
|
61
|
+
"vite": "^5.3.0",
|
|
62
|
+
"vite-plugin-dts": "^4.0.0",
|
|
63
|
+
"vue": "^3.5.0",
|
|
64
|
+
"vue-tsc": "^2.0.0",
|
|
65
|
+
"vue-router": "^4.4.0",
|
|
66
|
+
"axios": "^1.7.0",
|
|
67
|
+
"reka-ui": "^2.5.0",
|
|
68
|
+
"class-variance-authority": "^0.7.1",
|
|
69
|
+
"clsx": "^2.1.0",
|
|
70
|
+
"tailwind-merge": "^3.2.0",
|
|
71
|
+
"lucide-vue-next": "^0.441.0",
|
|
72
|
+
"vee-validate": "^4.15.0",
|
|
73
|
+
"@vueuse/core": "^13.9.0"
|
|
74
|
+
}
|
|
75
|
+
}
|