@mirantes-micro/foundation-design-system 1.2.64 → 1.2.66

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,9 +1,9 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ChangeEvent, KeyboardEvent, FocusEvent, JSX } from 'react';
3
+ import * as _tanstack_react_query from '@tanstack/react-query';
3
4
  import { QueryClient } from '@tanstack/react-query';
4
5
  import { AxiosInstance } from 'axios';
5
6
  import * as zustand from 'zustand';
6
- export { useAssetVersions, useBestAssetVersion, useSignedUrl, useUploadAsset } from '../../mirantes-utils/index.js';
7
7
 
8
8
  declare function Spinner({ className }: {
9
9
  className?: string;
@@ -1115,10 +1115,10 @@ type PostReactionsProps = {
1115
1115
  id: string;
1116
1116
  userId: string;
1117
1117
  postId: string;
1118
- reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
1119
- createdAt: string;
1120
- updatedAt: string;
1121
- user: User;
1118
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
1119
+ createdAt?: string;
1120
+ updatedAt?: string;
1121
+ user?: User;
1122
1122
  };
1123
1123
  type CommentReactionsProps = {
1124
1124
  id: string;
@@ -1178,4 +1178,94 @@ declare function MessagesButtonFromPage({ user, label, className, disabled, onCl
1178
1178
 
1179
1179
  declare function useRestorePendingChat(): void;
1180
1180
 
1181
- export { AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, RadioButtonInput, RatingsCard, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility };
1181
+ type OwnerType = "user" | "organization" | "system" | "chat";
1182
+ interface AssetUploadRequest {
1183
+ file: File;
1184
+ owner_type: OwnerType;
1185
+ owner_id?: string;
1186
+ is_public: boolean;
1187
+ }
1188
+ interface AssetUploadResponse {
1189
+ data: {
1190
+ url: string;
1191
+ };
1192
+ message: string;
1193
+ }
1194
+ interface SignedUrlRequest {
1195
+ assetId: string;
1196
+ expiry: number;
1197
+ version: "small" | "medium" | "large";
1198
+ }
1199
+ interface SignedUrlResponse {
1200
+ data: {
1201
+ expiresAt: string;
1202
+ signedUrl: string;
1203
+ version: string;
1204
+ };
1205
+ message: string;
1206
+ }
1207
+ type AssetVersionKey = "small" | "medium" | "large";
1208
+ interface AssetVersion {
1209
+ format: string;
1210
+ platforms: string[];
1211
+ recommended: boolean;
1212
+ url: string;
1213
+ }
1214
+ interface AssetVersionsResponse {
1215
+ mediaID: string;
1216
+ platform: string;
1217
+ versions: Record<AssetVersionKey, AssetVersion>;
1218
+ }
1219
+ interface BulkAssetUploadItemSuccess {
1220
+ status: "success";
1221
+ message: string;
1222
+ data: {
1223
+ url: string;
1224
+ assetId?: string;
1225
+ };
1226
+ }
1227
+ interface BulkAssetUploadItemError {
1228
+ status: "error";
1229
+ message: string;
1230
+ data?: null;
1231
+ }
1232
+ type BulkAssetUploadItem = BulkAssetUploadItemSuccess | BulkAssetUploadItemError;
1233
+ interface AssetUploadBulkRequest {
1234
+ files: File[];
1235
+ owner_type: OwnerType;
1236
+ owner_id?: string;
1237
+ is_public: boolean;
1238
+ }
1239
+ interface AssetUploadBulkResponse {
1240
+ results: BulkAssetUploadItem[];
1241
+ }
1242
+
1243
+ /** POST /assets */
1244
+ declare function useUploadAsset(): {
1245
+ uploadAssets: _tanstack_react_query.UseMutateFunction<AssetUploadResponse, Error, AssetUploadRequest, unknown>;
1246
+ isUploadingAsset: boolean;
1247
+ };
1248
+ /** POST /assets/bulk */
1249
+ declare function useUploadAssetsBulk(): {
1250
+ uploadAssetsBulk: _tanstack_react_query.UseMutateFunction<AssetUploadBulkResponse, Error, AssetUploadBulkRequest, unknown>;
1251
+ isUploadingBulk: boolean;
1252
+ };
1253
+ /** POST /assets/signed-url */
1254
+ declare function useSignedUrl(): {
1255
+ postSignedUrl: _tanstack_react_query.UseMutateFunction<SignedUrlResponse, Error, SignedUrlRequest, unknown>;
1256
+ isPostingSignedUrl: boolean;
1257
+ };
1258
+ /** GET /assets/:id/versions */
1259
+ declare function useAssetVersions(assetId?: string): {
1260
+ assetVersions: AssetVersionsResponse | undefined;
1261
+ isGettingAssetVersions: boolean;
1262
+ error: Error | null;
1263
+ };
1264
+ /** Auto-picks best version (large/medium/small) */
1265
+ declare function useBestAssetVersion(assetId?: string): {
1266
+ url: string | null | undefined;
1267
+ isGettingUrl: boolean;
1268
+ error: Error | null;
1269
+ };
1270
+
1271
+ export { AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, RadioButtonInput, RatingsCard, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };