@mirantes-micro/foundation-design-system 1.2.63 → 1.2.65
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;
|
|
@@ -1178,4 +1178,66 @@ declare function MessagesButtonFromPage({ user, label, className, disabled, onCl
|
|
|
1178
1178
|
|
|
1179
1179
|
declare function useRestorePendingChat(): void;
|
|
1180
1180
|
|
|
1181
|
-
|
|
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
|
+
|
|
1220
|
+
/** POST /assets */
|
|
1221
|
+
declare function useUploadAsset(): {
|
|
1222
|
+
uploadAssets: _tanstack_react_query.UseMutateFunction<AssetUploadResponse, Error, AssetUploadRequest, unknown>;
|
|
1223
|
+
isUploadingAsset: boolean;
|
|
1224
|
+
};
|
|
1225
|
+
/** POST /assets/signed-url */
|
|
1226
|
+
declare function useSignedUrl(): {
|
|
1227
|
+
postSignedUrl: _tanstack_react_query.UseMutateFunction<SignedUrlResponse, Error, SignedUrlRequest, unknown>;
|
|
1228
|
+
isPostingSignedUrl: boolean;
|
|
1229
|
+
};
|
|
1230
|
+
/** GET /assets/:id/versions */
|
|
1231
|
+
declare function useAssetVersions(assetId?: string): {
|
|
1232
|
+
assetVersions: AssetVersionsResponse | undefined;
|
|
1233
|
+
isGettingAssetVersions: boolean;
|
|
1234
|
+
error: Error | null;
|
|
1235
|
+
};
|
|
1236
|
+
/** Auto-picks best version (large/medium/small) */
|
|
1237
|
+
declare function useBestAssetVersion(assetId?: string): {
|
|
1238
|
+
url: string | null | undefined;
|
|
1239
|
+
isGettingUrl: boolean;
|
|
1240
|
+
error: Error | null;
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
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 };
|