@knkcs/mediahub-ui 0.1.0 → 0.2.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/index.d.ts +609 -41
- package/dist/index.js +2223 -2062
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { StatusInfo } from '@knkcs/statushub-ui';
|
|
7
7
|
import { StoreApi } from 'zustand';
|
|
8
|
+
import { TFunction } from 'i18next';
|
|
8
9
|
import { UseBoundStore } from 'zustand';
|
|
9
10
|
import { UseMutateAsyncFunction } from '@tanstack/react-query';
|
|
10
11
|
import { UseMutateFunction } from '@tanstack/react-query';
|
|
@@ -174,7 +175,7 @@ export declare interface AssetDetailProps {
|
|
|
174
175
|
onDeleted?: () => void;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
export declare function AssetDetailRail({ assetId, assetName, currentVersionId, currentMimeType, currentFilename, currentFileSize, currentVersion, assetTypeId, createdBy, createdByName, folderId, tagIds, collectionIds, statusSlug, }: AssetDetailRailProps): default_2.JSX.Element;
|
|
178
|
+
export declare function AssetDetailRail({ assetId, assetName, currentVersionId, currentMimeType, currentFilename, currentFileSize, currentVersion, assetTypeId, createdBy, createdByName, folderId, tagIds, collectionIds, statusSlug, t, }: AssetDetailRailProps): default_2.JSX.Element;
|
|
178
179
|
|
|
179
180
|
export declare namespace AssetDetailRail {
|
|
180
181
|
var displayName: string;
|
|
@@ -195,6 +196,7 @@ declare interface AssetDetailRailProps {
|
|
|
195
196
|
tagIds: string[];
|
|
196
197
|
collectionIds: string[];
|
|
197
198
|
statusSlug: string;
|
|
199
|
+
t: TFunction;
|
|
198
200
|
}
|
|
199
201
|
|
|
200
202
|
export declare interface AssetFilters {
|
|
@@ -264,11 +266,6 @@ export declare interface AssetPickerProps {
|
|
|
264
266
|
accept?: string[];
|
|
265
267
|
/** Initial/locked filters (e.g. a fixed assetTypeId). */
|
|
266
268
|
initialFilters?: AssetFilters;
|
|
267
|
-
headerLabel?: string;
|
|
268
|
-
searchPlaceholder?: string;
|
|
269
|
-
insertLabel?: string;
|
|
270
|
-
cancelLabel?: string;
|
|
271
|
-
emptyLabel?: string;
|
|
272
269
|
}
|
|
273
270
|
|
|
274
271
|
export declare const AssetPreview: React.FC<AssetPreviewProps>;
|
|
@@ -399,10 +396,7 @@ export declare interface AuthzClient {
|
|
|
399
396
|
canManage(resourceType: GrantResourceType, resourceId: string): Promise<boolean>;
|
|
400
397
|
}
|
|
401
398
|
|
|
402
|
-
export declare const BulkActionBar: React.FC
|
|
403
|
-
|
|
404
|
-
declare interface BulkActionBarProps {
|
|
405
|
-
}
|
|
399
|
+
export declare const BulkActionBar: React.FC;
|
|
406
400
|
|
|
407
401
|
export declare const CollectionChipField: React.FC<CollectionChipFieldProps>;
|
|
408
402
|
|
|
@@ -470,12 +464,6 @@ export declare interface CollectionPickerProps {
|
|
|
470
464
|
onSelect: (selection: CollectionSelection) => void;
|
|
471
465
|
/** Show the inline "New collection" affordance. @default false */
|
|
472
466
|
allowCreate?: boolean;
|
|
473
|
-
headerLabel?: string;
|
|
474
|
-
searchPlaceholder?: string;
|
|
475
|
-
confirmLabel?: string;
|
|
476
|
-
cancelLabel?: string;
|
|
477
|
-
emptyLabel?: string;
|
|
478
|
-
createLabel?: string;
|
|
479
467
|
}
|
|
480
468
|
|
|
481
469
|
/** Result of confirming a CollectionPicker selection. */
|
|
@@ -894,6 +882,597 @@ export declare interface GrantRoster {
|
|
|
894
882
|
grants: GrantEntry[];
|
|
895
883
|
}
|
|
896
884
|
|
|
885
|
+
/** The package's bundled translations, keyed by language, then by
|
|
886
|
+
* `MEDIAHUB_UI_NS`. */
|
|
887
|
+
export declare const i18nResources: {
|
|
888
|
+
en: {
|
|
889
|
+
"mediahub-ui": {
|
|
890
|
+
common: {
|
|
891
|
+
selectedCount: string;
|
|
892
|
+
assetPreviewAlt: string;
|
|
893
|
+
};
|
|
894
|
+
assetDetail: {
|
|
895
|
+
backButtonAria: string;
|
|
896
|
+
moreActionsAria: string;
|
|
897
|
+
breadcrumbAssets: string;
|
|
898
|
+
enhanceWithAi: string;
|
|
899
|
+
download: string;
|
|
900
|
+
discard: string;
|
|
901
|
+
save: string;
|
|
902
|
+
moveAction: string;
|
|
903
|
+
manageAccessAction: string;
|
|
904
|
+
deleteAction: string;
|
|
905
|
+
overviewTab: string;
|
|
906
|
+
versionsTab: string;
|
|
907
|
+
discardConfirmTitle: string;
|
|
908
|
+
discardConfirmMessage: string;
|
|
909
|
+
discardConfirmLabel: string;
|
|
910
|
+
saveSuccessToast: string;
|
|
911
|
+
saveFailedToast: string;
|
|
912
|
+
downloadFailedToast: string;
|
|
913
|
+
metadataEnhancedToast: string;
|
|
914
|
+
enhanceFailedToast: string;
|
|
915
|
+
deleteConfirmTitle: string;
|
|
916
|
+
deleteConfirmMessage: string;
|
|
917
|
+
deleteConfirmLabel: string;
|
|
918
|
+
deleteSuccessToast: string;
|
|
919
|
+
deleteFailedToast: string;
|
|
920
|
+
notFound: string;
|
|
921
|
+
noVersions: string;
|
|
922
|
+
versionColumn: string;
|
|
923
|
+
fileColumn: string;
|
|
924
|
+
sizeColumn: string;
|
|
925
|
+
authorColumn: string;
|
|
926
|
+
dateColumn: string;
|
|
927
|
+
currentVersionTooltip: string;
|
|
928
|
+
downloadVersion: string;
|
|
929
|
+
rail: {
|
|
930
|
+
assetEyebrow: string;
|
|
931
|
+
statusSection: string;
|
|
932
|
+
newVersionSection: string;
|
|
933
|
+
dropHint: string;
|
|
934
|
+
uploading: string;
|
|
935
|
+
detailsSection: string;
|
|
936
|
+
typeLabel: string;
|
|
937
|
+
formatLabel: string;
|
|
938
|
+
sizeLabel: string;
|
|
939
|
+
versionLabel: string;
|
|
940
|
+
createdByLabel: string;
|
|
941
|
+
folderLabel: string;
|
|
942
|
+
tagsSection: string;
|
|
943
|
+
collectionsSection: string;
|
|
944
|
+
aiProcessingSection: string;
|
|
945
|
+
unknownValue: string;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
assetLibrary: {
|
|
949
|
+
pageTitle: string;
|
|
950
|
+
uploadButton: string;
|
|
951
|
+
searchPlaceholder: string;
|
|
952
|
+
behaviorAll: string;
|
|
953
|
+
behaviorActive: string;
|
|
954
|
+
behaviorArchived: string;
|
|
955
|
+
behaviorInactive: string;
|
|
956
|
+
behaviorDeleted: string;
|
|
957
|
+
viewModeList: string;
|
|
958
|
+
viewModeGrid: string;
|
|
959
|
+
statusFilterAll: string;
|
|
960
|
+
assetsCount: string;
|
|
961
|
+
allAssets: string;
|
|
962
|
+
uploadSection: string;
|
|
963
|
+
tagsSection: string;
|
|
964
|
+
collectionsSection: string;
|
|
965
|
+
columnName: string;
|
|
966
|
+
columnType: string;
|
|
967
|
+
columnStatus: string;
|
|
968
|
+
columnUpdated: string;
|
|
969
|
+
columnUpdatedBy: string;
|
|
970
|
+
actionDownload: string;
|
|
971
|
+
actionDelete: string;
|
|
972
|
+
deleteConfirmTitle: string;
|
|
973
|
+
deleteConfirmMessage: string;
|
|
974
|
+
deleteConfirmLabel: string;
|
|
975
|
+
deleteSuccessToast: string;
|
|
976
|
+
deleteFailedToast: string;
|
|
977
|
+
statusesUnavailableHeader: string;
|
|
978
|
+
statusesUnavailableDescription: string;
|
|
979
|
+
clearStatusGroup: string;
|
|
980
|
+
assetsLoadFailedHeader: string;
|
|
981
|
+
noAssetsFound: string;
|
|
982
|
+
};
|
|
983
|
+
assetPicker: {
|
|
984
|
+
headerSingle: string;
|
|
985
|
+
headerMulti: string;
|
|
986
|
+
searchPlaceholder: string;
|
|
987
|
+
statusLabel: string;
|
|
988
|
+
statusFilterAll: string;
|
|
989
|
+
insert: string;
|
|
990
|
+
insertCount: string;
|
|
991
|
+
cancel: string;
|
|
992
|
+
emptyLabel: string;
|
|
993
|
+
moreCount: string;
|
|
994
|
+
selectedCount: string;
|
|
995
|
+
previewAlt: string;
|
|
996
|
+
};
|
|
997
|
+
collectionPicker: {
|
|
998
|
+
headerSingle: string;
|
|
999
|
+
headerMulti: string;
|
|
1000
|
+
searchPlaceholder: string;
|
|
1001
|
+
confirm: string;
|
|
1002
|
+
confirmCount: string;
|
|
1003
|
+
cancel: string;
|
|
1004
|
+
emptyLabel: string;
|
|
1005
|
+
createPlaceholder: string;
|
|
1006
|
+
createButton: string;
|
|
1007
|
+
createSuccessToast: string;
|
|
1008
|
+
createFailedToast: string;
|
|
1009
|
+
selectedCount: string;
|
|
1010
|
+
};
|
|
1011
|
+
assetGrid: {
|
|
1012
|
+
previewAlt: string;
|
|
1013
|
+
categoryImage: string;
|
|
1014
|
+
categoryVideo: string;
|
|
1015
|
+
categoryAudio: string;
|
|
1016
|
+
categoryPdf: string;
|
|
1017
|
+
categoryUnknown: string;
|
|
1018
|
+
};
|
|
1019
|
+
bulkActionBar: {
|
|
1020
|
+
deleteConfirmTitle: string;
|
|
1021
|
+
deleteConfirmMessage_one: string;
|
|
1022
|
+
deleteConfirmMessage_other: string;
|
|
1023
|
+
deleteConfirmLabel: string;
|
|
1024
|
+
deleteSuccessToast_one: string;
|
|
1025
|
+
deleteSuccessToast_other: string;
|
|
1026
|
+
deletePartialFailureToast: string;
|
|
1027
|
+
tagsUpdatedToast: string;
|
|
1028
|
+
addedToCollectionToast: string;
|
|
1029
|
+
errorToast: string;
|
|
1030
|
+
countSelected: string;
|
|
1031
|
+
addTagsAction: string;
|
|
1032
|
+
noTagsAvailable: string;
|
|
1033
|
+
addToCollectionAction: string;
|
|
1034
|
+
noCollectionsAvailable: string;
|
|
1035
|
+
deleteAction: string;
|
|
1036
|
+
};
|
|
1037
|
+
folderTree: {
|
|
1038
|
+
allAssets: string;
|
|
1039
|
+
allAssetsMenuAria: string;
|
|
1040
|
+
newRestrictedFolder: string;
|
|
1041
|
+
folderMenuAria: string;
|
|
1042
|
+
rename: string;
|
|
1043
|
+
move: string;
|
|
1044
|
+
manageAccess: string;
|
|
1045
|
+
restrict: string;
|
|
1046
|
+
unrestrict: string;
|
|
1047
|
+
delete: string;
|
|
1048
|
+
newFolderPlaceholder: string;
|
|
1049
|
+
newFolder: string;
|
|
1050
|
+
deleteConfirmTitle: string;
|
|
1051
|
+
deleteConfirmMessage: string;
|
|
1052
|
+
deleteConfirmLabel: string;
|
|
1053
|
+
unrestrictConfirmTitle: string;
|
|
1054
|
+
unrestrictConfirmMessage: string;
|
|
1055
|
+
unrestrictConfirmLabel: string;
|
|
1056
|
+
deleteSuccessToast: string;
|
|
1057
|
+
deleteFailedToast: string;
|
|
1058
|
+
renameSuccessToast: string;
|
|
1059
|
+
renameFailedToast: string;
|
|
1060
|
+
folderRestrictedToast: string;
|
|
1061
|
+
folderUnrestrictedToast: string;
|
|
1062
|
+
restrictFailedToast: string;
|
|
1063
|
+
unrestrictFailedToast: string;
|
|
1064
|
+
createSuccessToast: string;
|
|
1065
|
+
createFailedToast: string;
|
|
1066
|
+
};
|
|
1067
|
+
manageAccessDialog: {
|
|
1068
|
+
header: string;
|
|
1069
|
+
doneLabel: string;
|
|
1070
|
+
ownerBadgeLabel: string;
|
|
1071
|
+
addPersonLabel: string;
|
|
1072
|
+
grantLabel: string;
|
|
1073
|
+
viewerLabel: string;
|
|
1074
|
+
editorLabel: string;
|
|
1075
|
+
openAccessNote: {
|
|
1076
|
+
asset: string;
|
|
1077
|
+
folder: string;
|
|
1078
|
+
collection: string;
|
|
1079
|
+
};
|
|
1080
|
+
restrictedAccessNote: {
|
|
1081
|
+
asset: string;
|
|
1082
|
+
folder: string;
|
|
1083
|
+
collection: string;
|
|
1084
|
+
};
|
|
1085
|
+
accessLevelForAria: string;
|
|
1086
|
+
revokeAccessForAria: string;
|
|
1087
|
+
addPersonAria: string;
|
|
1088
|
+
accessLevelAria: string;
|
|
1089
|
+
couldntLoadAccess: string;
|
|
1090
|
+
grantFailedToast: string;
|
|
1091
|
+
updateFailedToast: string;
|
|
1092
|
+
revokeFailedToast: string;
|
|
1093
|
+
accessGrantedToast: string;
|
|
1094
|
+
accessUpdatedToast: string;
|
|
1095
|
+
accessRevokedToast: string;
|
|
1096
|
+
};
|
|
1097
|
+
moveDialog: {
|
|
1098
|
+
header: string;
|
|
1099
|
+
confirmLabel: string;
|
|
1100
|
+
cancelLabel: string;
|
|
1101
|
+
rootLabel: string;
|
|
1102
|
+
currentLocationLabel: string;
|
|
1103
|
+
selfLocationLabel: string;
|
|
1104
|
+
blockedAssetLabel: string;
|
|
1105
|
+
blockedFolderLabel: string;
|
|
1106
|
+
expandAria: string;
|
|
1107
|
+
collapseAria: string;
|
|
1108
|
+
moveFailedToast: string;
|
|
1109
|
+
folderMovedToast: string;
|
|
1110
|
+
assetMovedToast: string;
|
|
1111
|
+
};
|
|
1112
|
+
uploadDialog: {
|
|
1113
|
+
header_one: string;
|
|
1114
|
+
header_other: string;
|
|
1115
|
+
uploadButton: string;
|
|
1116
|
+
assetTypeLabel: string;
|
|
1117
|
+
selectAssetType: string;
|
|
1118
|
+
assetTypeHint: string;
|
|
1119
|
+
analyzeWithAi: string;
|
|
1120
|
+
selectType: string;
|
|
1121
|
+
changeType: string;
|
|
1122
|
+
};
|
|
1123
|
+
collectionPanel: {
|
|
1124
|
+
createPlaceholder: string;
|
|
1125
|
+
createLabel: string;
|
|
1126
|
+
emptyText: string;
|
|
1127
|
+
createSuccessToast: string;
|
|
1128
|
+
errorToast: string;
|
|
1129
|
+
};
|
|
1130
|
+
tagPanel: {
|
|
1131
|
+
createPlaceholder: string;
|
|
1132
|
+
createLabel: string;
|
|
1133
|
+
emptyText: string;
|
|
1134
|
+
createSuccessToast: string;
|
|
1135
|
+
errorToast: string;
|
|
1136
|
+
};
|
|
1137
|
+
collectionChipField: {
|
|
1138
|
+
addLabel: string;
|
|
1139
|
+
emptyLabel: string;
|
|
1140
|
+
errorToast: string;
|
|
1141
|
+
};
|
|
1142
|
+
tagChipField: {
|
|
1143
|
+
addLabel: string;
|
|
1144
|
+
emptyLabel: string;
|
|
1145
|
+
errorToast: string;
|
|
1146
|
+
};
|
|
1147
|
+
assetStatusControl: {
|
|
1148
|
+
transitionFailedToast: string;
|
|
1149
|
+
};
|
|
1150
|
+
restrictedFolderDialog: {
|
|
1151
|
+
header: string;
|
|
1152
|
+
createLabel: string;
|
|
1153
|
+
namePlaceholder: string;
|
|
1154
|
+
createSuccessToast: string;
|
|
1155
|
+
createFailedToast: string;
|
|
1156
|
+
};
|
|
1157
|
+
folderBreadcrumbs: {
|
|
1158
|
+
rootLabel: string;
|
|
1159
|
+
};
|
|
1160
|
+
restricted: {
|
|
1161
|
+
containerWarning: {
|
|
1162
|
+
folder: string;
|
|
1163
|
+
collection: string;
|
|
1164
|
+
};
|
|
1165
|
+
unrestrictDisclosure: {
|
|
1166
|
+
folder: string;
|
|
1167
|
+
collection: string;
|
|
1168
|
+
};
|
|
1169
|
+
lockBadgeAria: string;
|
|
1170
|
+
};
|
|
1171
|
+
assetPreview: {
|
|
1172
|
+
previewNotAvailable: string;
|
|
1173
|
+
download: string;
|
|
1174
|
+
};
|
|
1175
|
+
leakGuardRefusalDialog: {
|
|
1176
|
+
closeLabel: string;
|
|
1177
|
+
resolveHint: string;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
de: {
|
|
1182
|
+
"mediahub-ui": {
|
|
1183
|
+
common: {
|
|
1184
|
+
selectedCount: string;
|
|
1185
|
+
assetPreviewAlt: string;
|
|
1186
|
+
};
|
|
1187
|
+
assetDetail: {
|
|
1188
|
+
backButtonAria: string;
|
|
1189
|
+
moreActionsAria: string;
|
|
1190
|
+
breadcrumbAssets: string;
|
|
1191
|
+
enhanceWithAi: string;
|
|
1192
|
+
download: string;
|
|
1193
|
+
discard: string;
|
|
1194
|
+
save: string;
|
|
1195
|
+
moveAction: string;
|
|
1196
|
+
manageAccessAction: string;
|
|
1197
|
+
deleteAction: string;
|
|
1198
|
+
overviewTab: string;
|
|
1199
|
+
versionsTab: string;
|
|
1200
|
+
discardConfirmTitle: string;
|
|
1201
|
+
discardConfirmMessage: string;
|
|
1202
|
+
discardConfirmLabel: string;
|
|
1203
|
+
saveSuccessToast: string;
|
|
1204
|
+
saveFailedToast: string;
|
|
1205
|
+
downloadFailedToast: string;
|
|
1206
|
+
metadataEnhancedToast: string;
|
|
1207
|
+
enhanceFailedToast: string;
|
|
1208
|
+
deleteConfirmTitle: string;
|
|
1209
|
+
deleteConfirmMessage: string;
|
|
1210
|
+
deleteConfirmLabel: string;
|
|
1211
|
+
deleteSuccessToast: string;
|
|
1212
|
+
deleteFailedToast: string;
|
|
1213
|
+
notFound: string;
|
|
1214
|
+
noVersions: string;
|
|
1215
|
+
versionColumn: string;
|
|
1216
|
+
fileColumn: string;
|
|
1217
|
+
sizeColumn: string;
|
|
1218
|
+
authorColumn: string;
|
|
1219
|
+
dateColumn: string;
|
|
1220
|
+
currentVersionTooltip: string;
|
|
1221
|
+
downloadVersion: string;
|
|
1222
|
+
rail: {
|
|
1223
|
+
assetEyebrow: string;
|
|
1224
|
+
statusSection: string;
|
|
1225
|
+
newVersionSection: string;
|
|
1226
|
+
dropHint: string;
|
|
1227
|
+
uploading: string;
|
|
1228
|
+
detailsSection: string;
|
|
1229
|
+
typeLabel: string;
|
|
1230
|
+
formatLabel: string;
|
|
1231
|
+
sizeLabel: string;
|
|
1232
|
+
versionLabel: string;
|
|
1233
|
+
createdByLabel: string;
|
|
1234
|
+
folderLabel: string;
|
|
1235
|
+
tagsSection: string;
|
|
1236
|
+
collectionsSection: string;
|
|
1237
|
+
aiProcessingSection: string;
|
|
1238
|
+
unknownValue: string;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
assetLibrary: {
|
|
1242
|
+
pageTitle: string;
|
|
1243
|
+
uploadButton: string;
|
|
1244
|
+
searchPlaceholder: string;
|
|
1245
|
+
behaviorAll: string;
|
|
1246
|
+
behaviorActive: string;
|
|
1247
|
+
behaviorArchived: string;
|
|
1248
|
+
behaviorInactive: string;
|
|
1249
|
+
behaviorDeleted: string;
|
|
1250
|
+
viewModeList: string;
|
|
1251
|
+
viewModeGrid: string;
|
|
1252
|
+
statusFilterAll: string;
|
|
1253
|
+
assetsCount: string;
|
|
1254
|
+
allAssets: string;
|
|
1255
|
+
uploadSection: string;
|
|
1256
|
+
tagsSection: string;
|
|
1257
|
+
collectionsSection: string;
|
|
1258
|
+
columnName: string;
|
|
1259
|
+
columnType: string;
|
|
1260
|
+
columnStatus: string;
|
|
1261
|
+
columnUpdated: string;
|
|
1262
|
+
columnUpdatedBy: string;
|
|
1263
|
+
actionDownload: string;
|
|
1264
|
+
actionDelete: string;
|
|
1265
|
+
deleteConfirmTitle: string;
|
|
1266
|
+
deleteConfirmMessage: string;
|
|
1267
|
+
deleteConfirmLabel: string;
|
|
1268
|
+
deleteSuccessToast: string;
|
|
1269
|
+
deleteFailedToast: string;
|
|
1270
|
+
statusesUnavailableHeader: string;
|
|
1271
|
+
statusesUnavailableDescription: string;
|
|
1272
|
+
clearStatusGroup: string;
|
|
1273
|
+
assetsLoadFailedHeader: string;
|
|
1274
|
+
noAssetsFound: string;
|
|
1275
|
+
};
|
|
1276
|
+
assetPicker: {
|
|
1277
|
+
headerSingle: string;
|
|
1278
|
+
headerMulti: string;
|
|
1279
|
+
searchPlaceholder: string;
|
|
1280
|
+
statusLabel: string;
|
|
1281
|
+
statusFilterAll: string;
|
|
1282
|
+
insert: string;
|
|
1283
|
+
insertCount: string;
|
|
1284
|
+
cancel: string;
|
|
1285
|
+
emptyLabel: string;
|
|
1286
|
+
moreCount: string;
|
|
1287
|
+
selectedCount: string;
|
|
1288
|
+
previewAlt: string;
|
|
1289
|
+
};
|
|
1290
|
+
collectionPicker: {
|
|
1291
|
+
headerSingle: string;
|
|
1292
|
+
headerMulti: string;
|
|
1293
|
+
searchPlaceholder: string;
|
|
1294
|
+
confirm: string;
|
|
1295
|
+
confirmCount: string;
|
|
1296
|
+
cancel: string;
|
|
1297
|
+
emptyLabel: string;
|
|
1298
|
+
createPlaceholder: string;
|
|
1299
|
+
createButton: string;
|
|
1300
|
+
createSuccessToast: string;
|
|
1301
|
+
createFailedToast: string;
|
|
1302
|
+
selectedCount: string;
|
|
1303
|
+
};
|
|
1304
|
+
assetGrid: {
|
|
1305
|
+
previewAlt: string;
|
|
1306
|
+
categoryImage: string;
|
|
1307
|
+
categoryVideo: string;
|
|
1308
|
+
categoryAudio: string;
|
|
1309
|
+
categoryPdf: string;
|
|
1310
|
+
categoryUnknown: string;
|
|
1311
|
+
};
|
|
1312
|
+
bulkActionBar: {
|
|
1313
|
+
deleteConfirmTitle: string;
|
|
1314
|
+
deleteConfirmMessage_one: string;
|
|
1315
|
+
deleteConfirmMessage_other: string;
|
|
1316
|
+
deleteConfirmLabel: string;
|
|
1317
|
+
deleteSuccessToast_one: string;
|
|
1318
|
+
deleteSuccessToast_other: string;
|
|
1319
|
+
deletePartialFailureToast: string;
|
|
1320
|
+
tagsUpdatedToast: string;
|
|
1321
|
+
addedToCollectionToast: string;
|
|
1322
|
+
errorToast: string;
|
|
1323
|
+
countSelected: string;
|
|
1324
|
+
addTagsAction: string;
|
|
1325
|
+
noTagsAvailable: string;
|
|
1326
|
+
addToCollectionAction: string;
|
|
1327
|
+
noCollectionsAvailable: string;
|
|
1328
|
+
deleteAction: string;
|
|
1329
|
+
};
|
|
1330
|
+
folderTree: {
|
|
1331
|
+
allAssets: string;
|
|
1332
|
+
allAssetsMenuAria: string;
|
|
1333
|
+
newRestrictedFolder: string;
|
|
1334
|
+
folderMenuAria: string;
|
|
1335
|
+
rename: string;
|
|
1336
|
+
move: string;
|
|
1337
|
+
manageAccess: string;
|
|
1338
|
+
restrict: string;
|
|
1339
|
+
unrestrict: string;
|
|
1340
|
+
delete: string;
|
|
1341
|
+
newFolderPlaceholder: string;
|
|
1342
|
+
newFolder: string;
|
|
1343
|
+
deleteConfirmTitle: string;
|
|
1344
|
+
deleteConfirmMessage: string;
|
|
1345
|
+
deleteConfirmLabel: string;
|
|
1346
|
+
unrestrictConfirmTitle: string;
|
|
1347
|
+
unrestrictConfirmMessage: string;
|
|
1348
|
+
unrestrictConfirmLabel: string;
|
|
1349
|
+
deleteSuccessToast: string;
|
|
1350
|
+
deleteFailedToast: string;
|
|
1351
|
+
renameSuccessToast: string;
|
|
1352
|
+
renameFailedToast: string;
|
|
1353
|
+
folderRestrictedToast: string;
|
|
1354
|
+
folderUnrestrictedToast: string;
|
|
1355
|
+
restrictFailedToast: string;
|
|
1356
|
+
unrestrictFailedToast: string;
|
|
1357
|
+
createSuccessToast: string;
|
|
1358
|
+
createFailedToast: string;
|
|
1359
|
+
};
|
|
1360
|
+
manageAccessDialog: {
|
|
1361
|
+
header: string;
|
|
1362
|
+
doneLabel: string;
|
|
1363
|
+
ownerBadgeLabel: string;
|
|
1364
|
+
addPersonLabel: string;
|
|
1365
|
+
grantLabel: string;
|
|
1366
|
+
viewerLabel: string;
|
|
1367
|
+
editorLabel: string;
|
|
1368
|
+
openAccessNote: {
|
|
1369
|
+
asset: string;
|
|
1370
|
+
folder: string;
|
|
1371
|
+
collection: string;
|
|
1372
|
+
};
|
|
1373
|
+
restrictedAccessNote: {
|
|
1374
|
+
asset: string;
|
|
1375
|
+
folder: string;
|
|
1376
|
+
collection: string;
|
|
1377
|
+
};
|
|
1378
|
+
accessLevelForAria: string;
|
|
1379
|
+
revokeAccessForAria: string;
|
|
1380
|
+
addPersonAria: string;
|
|
1381
|
+
accessLevelAria: string;
|
|
1382
|
+
couldntLoadAccess: string;
|
|
1383
|
+
grantFailedToast: string;
|
|
1384
|
+
updateFailedToast: string;
|
|
1385
|
+
revokeFailedToast: string;
|
|
1386
|
+
accessGrantedToast: string;
|
|
1387
|
+
accessUpdatedToast: string;
|
|
1388
|
+
accessRevokedToast: string;
|
|
1389
|
+
};
|
|
1390
|
+
moveDialog: {
|
|
1391
|
+
header: string;
|
|
1392
|
+
confirmLabel: string;
|
|
1393
|
+
cancelLabel: string;
|
|
1394
|
+
rootLabel: string;
|
|
1395
|
+
currentLocationLabel: string;
|
|
1396
|
+
selfLocationLabel: string;
|
|
1397
|
+
blockedAssetLabel: string;
|
|
1398
|
+
blockedFolderLabel: string;
|
|
1399
|
+
expandAria: string;
|
|
1400
|
+
collapseAria: string;
|
|
1401
|
+
moveFailedToast: string;
|
|
1402
|
+
folderMovedToast: string;
|
|
1403
|
+
assetMovedToast: string;
|
|
1404
|
+
};
|
|
1405
|
+
uploadDialog: {
|
|
1406
|
+
header_one: string;
|
|
1407
|
+
header_other: string;
|
|
1408
|
+
uploadButton: string;
|
|
1409
|
+
assetTypeLabel: string;
|
|
1410
|
+
selectAssetType: string;
|
|
1411
|
+
assetTypeHint: string;
|
|
1412
|
+
analyzeWithAi: string;
|
|
1413
|
+
selectType: string;
|
|
1414
|
+
changeType: string;
|
|
1415
|
+
};
|
|
1416
|
+
collectionPanel: {
|
|
1417
|
+
createPlaceholder: string;
|
|
1418
|
+
createLabel: string;
|
|
1419
|
+
emptyText: string;
|
|
1420
|
+
createSuccessToast: string;
|
|
1421
|
+
errorToast: string;
|
|
1422
|
+
};
|
|
1423
|
+
tagPanel: {
|
|
1424
|
+
createPlaceholder: string;
|
|
1425
|
+
createLabel: string;
|
|
1426
|
+
emptyText: string;
|
|
1427
|
+
createSuccessToast: string;
|
|
1428
|
+
errorToast: string;
|
|
1429
|
+
};
|
|
1430
|
+
collectionChipField: {
|
|
1431
|
+
addLabel: string;
|
|
1432
|
+
emptyLabel: string;
|
|
1433
|
+
errorToast: string;
|
|
1434
|
+
};
|
|
1435
|
+
tagChipField: {
|
|
1436
|
+
addLabel: string;
|
|
1437
|
+
emptyLabel: string;
|
|
1438
|
+
errorToast: string;
|
|
1439
|
+
};
|
|
1440
|
+
assetStatusControl: {
|
|
1441
|
+
transitionFailedToast: string;
|
|
1442
|
+
};
|
|
1443
|
+
restrictedFolderDialog: {
|
|
1444
|
+
header: string;
|
|
1445
|
+
createLabel: string;
|
|
1446
|
+
namePlaceholder: string;
|
|
1447
|
+
createSuccessToast: string;
|
|
1448
|
+
createFailedToast: string;
|
|
1449
|
+
};
|
|
1450
|
+
folderBreadcrumbs: {
|
|
1451
|
+
rootLabel: string;
|
|
1452
|
+
};
|
|
1453
|
+
restricted: {
|
|
1454
|
+
containerWarning: {
|
|
1455
|
+
folder: string;
|
|
1456
|
+
collection: string;
|
|
1457
|
+
};
|
|
1458
|
+
unrestrictDisclosure: {
|
|
1459
|
+
folder: string;
|
|
1460
|
+
collection: string;
|
|
1461
|
+
};
|
|
1462
|
+
lockBadgeAria: string;
|
|
1463
|
+
};
|
|
1464
|
+
assetPreview: {
|
|
1465
|
+
previewNotAvailable: string;
|
|
1466
|
+
download: string;
|
|
1467
|
+
};
|
|
1468
|
+
leakGuardRefusalDialog: {
|
|
1469
|
+
closeLabel: string;
|
|
1470
|
+
resolveHint: string;
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
|
|
897
1476
|
/**
|
|
898
1477
|
* Thin wrapper around anker's InlineEdit that adds async save with error handling.
|
|
899
1478
|
* On error, the value reverts to the previous value automatically.
|
|
@@ -948,9 +1527,6 @@ export declare interface LeakGuardRefusalDialogProps {
|
|
|
948
1527
|
refusal: RpcErrorDescription | null;
|
|
949
1528
|
open: boolean;
|
|
950
1529
|
onClose: () => void;
|
|
951
|
-
closeLabel?: string;
|
|
952
|
-
/** Line under the pair list telling the user how to proceed. */
|
|
953
|
-
resolveHint?: string;
|
|
954
1530
|
}
|
|
955
1531
|
|
|
956
1532
|
/**
|
|
@@ -971,17 +1547,6 @@ export declare interface ManageAccessDialogProps {
|
|
|
971
1547
|
open: boolean;
|
|
972
1548
|
onOpenChange: (open: boolean) => void;
|
|
973
1549
|
subject: ManageAccessSubject;
|
|
974
|
-
headerLabel?: string;
|
|
975
|
-
doneLabel?: string;
|
|
976
|
-
ownerBadgeLabel?: string;
|
|
977
|
-
addPersonLabel?: string;
|
|
978
|
-
grantLabel?: string;
|
|
979
|
-
viewerLabel?: string;
|
|
980
|
-
editorLabel?: string;
|
|
981
|
-
/** Derived-Access note on open content. */
|
|
982
|
-
openAccessNote?: string;
|
|
983
|
-
/** Derived-Access note on Restricted content (explicit Grants only). */
|
|
984
|
-
restrictedAccessNote?: string;
|
|
985
1550
|
}
|
|
986
1551
|
|
|
987
1552
|
/** What the panel manages access to: the full record is carried so the
|
|
@@ -998,6 +1563,16 @@ export declare type ManageAccessSubject = {
|
|
|
998
1563
|
collection: CollectionInfo;
|
|
999
1564
|
};
|
|
1000
1565
|
|
|
1566
|
+
/**
|
|
1567
|
+
* The i18next namespace every string in this package is looked up under. A
|
|
1568
|
+
* host merges `i18nResources` and lists this constant among its namespaces —
|
|
1569
|
+
* never the literal, so a rename here fails the host's compile rather than
|
|
1570
|
+
* rendering raw keys (knkcms/core ADR 0005's provider checklist; #807). The
|
|
1571
|
+
* package's own `useTranslation` calls name the same string, which
|
|
1572
|
+
* `resources.test.ts` holds them to.
|
|
1573
|
+
*/
|
|
1574
|
+
export declare const MEDIAHUB_UI_NS = "mediahub-ui";
|
|
1575
|
+
|
|
1001
1576
|
/**
|
|
1002
1577
|
* @knkcs/mediahub-ui — reusable mediahub asset-management surfaces.
|
|
1003
1578
|
*
|
|
@@ -1067,14 +1642,6 @@ export declare interface MoveDialogProps {
|
|
|
1067
1642
|
/** Called after a successful move with the destination folder id
|
|
1068
1643
|
* ("" = workspace root). */
|
|
1069
1644
|
onMoved?: (destinationId: string) => void;
|
|
1070
|
-
headerLabel?: string;
|
|
1071
|
-
confirmLabel?: string;
|
|
1072
|
-
cancelLabel?: string;
|
|
1073
|
-
rootLabel?: string;
|
|
1074
|
-
currentLocationLabel?: string;
|
|
1075
|
-
selfLocationLabel?: string;
|
|
1076
|
-
/** Reason shown on leak-guarded destinations. */
|
|
1077
|
-
blockedLabel?: string;
|
|
1078
1645
|
}
|
|
1079
1646
|
|
|
1080
1647
|
/** What the dialog moves: a folder (from the tree's context menu) or an
|
|
@@ -1113,8 +1680,9 @@ declare type ProtoResponse = {
|
|
|
1113
1680
|
|
|
1114
1681
|
/** The shared Restricted-container warning (guardian#48): shown when creating
|
|
1115
1682
|
* a Restricted folder and, with the other noun, on the collection dialog's
|
|
1116
|
-
* Restricted switch.
|
|
1117
|
-
|
|
1683
|
+
* Restricted switch. Takes `t` explicitly (rather than calling
|
|
1684
|
+
* `useTranslation` itself) so it stays callable from non-component code. */
|
|
1685
|
+
export declare function restrictedContainerWarning(kind: "folder" | "collection", t: TFunction): string;
|
|
1118
1686
|
|
|
1119
1687
|
/** Deliberate-path dialog for creating a Restricted folder. The everyday
|
|
1120
1688
|
* inline "New Folder" input stays the fast path for ordinary folders. */
|
|
@@ -1225,7 +1793,7 @@ declare interface TagPanelProps {
|
|
|
1225
1793
|
|
|
1226
1794
|
/** The explicit unrestrict disclosure (guardian#55): spelled out before the
|
|
1227
1795
|
* toggle because it widens the audience to the whole workspace. */
|
|
1228
|
-
export declare function unrestrictDisclosure(kind: "folder" | "collection", name: string): string;
|
|
1796
|
+
export declare function unrestrictDisclosure(kind: "folder" | "collection", name: string, t: TFunction): string;
|
|
1229
1797
|
|
|
1230
1798
|
declare interface UploadActions {
|
|
1231
1799
|
addFiles: (files: File[]) => void;
|