@knkcs/mediahub-ui 0.3.0 → 0.4.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 +160 -0
- package/dist/index.js +2675 -2108
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,47 @@ export declare interface AIProcessClient {
|
|
|
94
94
|
delete(id: string): Promise<void>;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* The AI-Processes tab of the packaged asset-type detail screen: the processes
|
|
99
|
+
* an asset type runs when an asset is analyzed, in order — listed, reordered,
|
|
100
|
+
* enabled/disabled, deleted, created and edited (knkCS/mediahub#157).
|
|
101
|
+
*
|
|
102
|
+
* No routing of its own: where a host's AI-connection settings live is the
|
|
103
|
+
* host's URL, so the "no connections" hint is text, not a link.
|
|
104
|
+
*/
|
|
105
|
+
export declare function AIProcessesTab({ typeId, metadataSchema, }: AIProcessesTabProps): React.JSX.Element;
|
|
106
|
+
|
|
107
|
+
export declare namespace AIProcessesTab {
|
|
108
|
+
var displayName: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare interface AIProcessesTabProps {
|
|
112
|
+
/** The asset type whose processes are listed. */
|
|
113
|
+
typeId: string;
|
|
114
|
+
/** The asset type's metadata schema, source of the metadata output targets. */
|
|
115
|
+
metadataSchema: string | undefined;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Create or edit one AI process for an asset type. Packaged from the
|
|
120
|
+
* standalone's host-local dialog (knkCS/mediahub#157) — same behaviour, same
|
|
121
|
+
* mount semantics, strings under the package's i18n namespace.
|
|
122
|
+
*/
|
|
123
|
+
export declare function AIProcessFormDialog({ open, onClose, assetTypeId, metadataAccessors, editProcess, }: AIProcessFormDialogProps): React.JSX.Element;
|
|
124
|
+
|
|
125
|
+
export declare namespace AIProcessFormDialog {
|
|
126
|
+
var displayName: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export declare interface AIProcessFormDialogProps {
|
|
130
|
+
open: boolean;
|
|
131
|
+
onClose: () => void;
|
|
132
|
+
assetTypeId: string;
|
|
133
|
+
metadataAccessors: MetadataAccessorOption[];
|
|
134
|
+
/** If provided, the dialog opens in edit mode for this process. */
|
|
135
|
+
editProcess?: AIProcessInfo;
|
|
136
|
+
}
|
|
137
|
+
|
|
97
138
|
export declare interface AIProcessInfo {
|
|
98
139
|
id: string;
|
|
99
140
|
workspaceId: string;
|
|
@@ -1057,6 +1098,7 @@ export declare const i18nResources: {
|
|
|
1057
1098
|
backButtonAria: string;
|
|
1058
1099
|
generalTab: string;
|
|
1059
1100
|
metadataTab: string;
|
|
1101
|
+
aiProcessesTab: string;
|
|
1060
1102
|
nameLabel: string;
|
|
1061
1103
|
nameRequired: string;
|
|
1062
1104
|
slugLabel: string;
|
|
@@ -1359,6 +1401,62 @@ export declare const i18nResources: {
|
|
|
1359
1401
|
noMatchesDescription: string;
|
|
1360
1402
|
loadFailedHeader: string;
|
|
1361
1403
|
};
|
|
1404
|
+
aiProcesses: {
|
|
1405
|
+
intro: string;
|
|
1406
|
+
newProcess: string;
|
|
1407
|
+
noConnectionsHint: string;
|
|
1408
|
+
empty: string;
|
|
1409
|
+
outputCount_one: string;
|
|
1410
|
+
outputCount_other: string;
|
|
1411
|
+
active: string;
|
|
1412
|
+
inactive: string;
|
|
1413
|
+
enableAria: string;
|
|
1414
|
+
disableAria: string;
|
|
1415
|
+
moveUpAria: string;
|
|
1416
|
+
moveDownAria: string;
|
|
1417
|
+
editAria: string;
|
|
1418
|
+
deleteAria: string;
|
|
1419
|
+
deleteConfirmTitle: string;
|
|
1420
|
+
deleteConfirmMessage: string;
|
|
1421
|
+
deleteConfirmLabel: string;
|
|
1422
|
+
deletedToast: string;
|
|
1423
|
+
deleteFailedToast: string;
|
|
1424
|
+
updateFailedToast: string;
|
|
1425
|
+
reorderFailedToast: string;
|
|
1426
|
+
};
|
|
1427
|
+
aiProcessDialog: {
|
|
1428
|
+
createHeader: string;
|
|
1429
|
+
editHeader: string;
|
|
1430
|
+
createLabel: string;
|
|
1431
|
+
saveLabel: string;
|
|
1432
|
+
nameLabel: string;
|
|
1433
|
+
namePlaceholder: string;
|
|
1434
|
+
nameRequired: string;
|
|
1435
|
+
connectionLabel: string;
|
|
1436
|
+
connectionPlaceholder: string;
|
|
1437
|
+
connectionRequired: string;
|
|
1438
|
+
promptLabel: string;
|
|
1439
|
+
promptPlaceholder: string;
|
|
1440
|
+
promptRequired: string;
|
|
1441
|
+
outputsLabel: string;
|
|
1442
|
+
outputKeyLabel: string;
|
|
1443
|
+
outputKeyPlaceholder: string;
|
|
1444
|
+
outputKeyRequired: string;
|
|
1445
|
+
outputRequired: string;
|
|
1446
|
+
addOutput: string;
|
|
1447
|
+
removeOutputAria: string;
|
|
1448
|
+
targetLabel: string;
|
|
1449
|
+
targetDescription: string;
|
|
1450
|
+
targetTags: string;
|
|
1451
|
+
targetMetadata: string;
|
|
1452
|
+
metadataFieldLabel: string;
|
|
1453
|
+
metadataFieldPlaceholder: string;
|
|
1454
|
+
metadataFieldRequired: string;
|
|
1455
|
+
createdToast: string;
|
|
1456
|
+
createFailedToast: string;
|
|
1457
|
+
updatedToast: string;
|
|
1458
|
+
updateFailedToast: string;
|
|
1459
|
+
};
|
|
1362
1460
|
};
|
|
1363
1461
|
};
|
|
1364
1462
|
de: {
|
|
@@ -1428,6 +1526,7 @@ export declare const i18nResources: {
|
|
|
1428
1526
|
backButtonAria: string;
|
|
1429
1527
|
generalTab: string;
|
|
1430
1528
|
metadataTab: string;
|
|
1529
|
+
aiProcessesTab: string;
|
|
1431
1530
|
nameLabel: string;
|
|
1432
1531
|
nameRequired: string;
|
|
1433
1532
|
slugLabel: string;
|
|
@@ -1730,6 +1829,62 @@ export declare const i18nResources: {
|
|
|
1730
1829
|
noMatchesDescription: string;
|
|
1731
1830
|
loadFailedHeader: string;
|
|
1732
1831
|
};
|
|
1832
|
+
aiProcesses: {
|
|
1833
|
+
intro: string;
|
|
1834
|
+
newProcess: string;
|
|
1835
|
+
noConnectionsHint: string;
|
|
1836
|
+
empty: string;
|
|
1837
|
+
outputCount_one: string;
|
|
1838
|
+
outputCount_other: string;
|
|
1839
|
+
active: string;
|
|
1840
|
+
inactive: string;
|
|
1841
|
+
enableAria: string;
|
|
1842
|
+
disableAria: string;
|
|
1843
|
+
moveUpAria: string;
|
|
1844
|
+
moveDownAria: string;
|
|
1845
|
+
editAria: string;
|
|
1846
|
+
deleteAria: string;
|
|
1847
|
+
deleteConfirmTitle: string;
|
|
1848
|
+
deleteConfirmMessage: string;
|
|
1849
|
+
deleteConfirmLabel: string;
|
|
1850
|
+
deletedToast: string;
|
|
1851
|
+
deleteFailedToast: string;
|
|
1852
|
+
updateFailedToast: string;
|
|
1853
|
+
reorderFailedToast: string;
|
|
1854
|
+
};
|
|
1855
|
+
aiProcessDialog: {
|
|
1856
|
+
createHeader: string;
|
|
1857
|
+
editHeader: string;
|
|
1858
|
+
createLabel: string;
|
|
1859
|
+
saveLabel: string;
|
|
1860
|
+
nameLabel: string;
|
|
1861
|
+
namePlaceholder: string;
|
|
1862
|
+
nameRequired: string;
|
|
1863
|
+
connectionLabel: string;
|
|
1864
|
+
connectionPlaceholder: string;
|
|
1865
|
+
connectionRequired: string;
|
|
1866
|
+
promptLabel: string;
|
|
1867
|
+
promptPlaceholder: string;
|
|
1868
|
+
promptRequired: string;
|
|
1869
|
+
outputsLabel: string;
|
|
1870
|
+
outputKeyLabel: string;
|
|
1871
|
+
outputKeyPlaceholder: string;
|
|
1872
|
+
outputKeyRequired: string;
|
|
1873
|
+
outputRequired: string;
|
|
1874
|
+
addOutput: string;
|
|
1875
|
+
removeOutputAria: string;
|
|
1876
|
+
targetLabel: string;
|
|
1877
|
+
targetDescription: string;
|
|
1878
|
+
targetTags: string;
|
|
1879
|
+
targetMetadata: string;
|
|
1880
|
+
metadataFieldLabel: string;
|
|
1881
|
+
metadataFieldPlaceholder: string;
|
|
1882
|
+
metadataFieldRequired: string;
|
|
1883
|
+
createdToast: string;
|
|
1884
|
+
createFailedToast: string;
|
|
1885
|
+
updatedToast: string;
|
|
1886
|
+
updateFailedToast: string;
|
|
1887
|
+
};
|
|
1733
1888
|
};
|
|
1734
1889
|
};
|
|
1735
1890
|
};
|
|
@@ -1884,6 +2039,11 @@ export declare interface MediahubProviderProps {
|
|
|
1884
2039
|
children: ReactNode;
|
|
1885
2040
|
}
|
|
1886
2041
|
|
|
2042
|
+
export declare interface MetadataAccessorOption {
|
|
2043
|
+
label: string;
|
|
2044
|
+
value: string;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
1887
2047
|
/**
|
|
1888
2048
|
* The asset type's fieldkit metadata schema, edited on a page with room for it
|
|
1889
2049
|
* (spec knkCS/mediahub#138, story 7) rather than as a JSON textarea.
|