@crystaldesign/diva-backoffice 26.9.0 → 26.10.0-beta.10
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/build/esm/index.js +2065 -1457
- package/build/types/backoffice/src/store/RootStore.d.ts +1 -4
- package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/types.d.ts +2 -0
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts +2 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/components/StatsRow.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/components/StatusBadges.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts +1 -11
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/utils/getColumnFilterProps.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts +10 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/FullscreenViewer/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts +2 -3
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts +2 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.d.ts +3 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts +17 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts +18 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts +21 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts +32 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts +0 -6
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/constants.d.ts +9 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/constants.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useAddRenderJobImageVariant.d.ts +9 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useAddRenderJobImageVariant.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useSelectRenderJobVariant.d.ts +10 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useSelectRenderJobVariant.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUploadRenderJobImage.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts +38 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts +0 -14
- package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts.map +0 -1
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts +0 -8
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts.map +0 -1
|
@@ -28,10 +28,7 @@ export default class {
|
|
|
28
28
|
searchParams: URLSearchParams;
|
|
29
29
|
path: string;
|
|
30
30
|
};
|
|
31
|
-
/**
|
|
32
|
-
* In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`);
|
|
33
|
-
* dropped as soon as the user navigates outside the table's own route branch.
|
|
34
|
-
*/
|
|
31
|
+
/** In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`); lives for the SPA session. */
|
|
35
32
|
private _tableFilterStates;
|
|
36
33
|
error?: any;
|
|
37
34
|
resetErrorBoundary?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAoB,MAAM,0BAA0B,C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|
17
17
|
* @param props.uploadHint - Hint text for the upload area
|
|
18
18
|
* @returns JSX element representing the upload modal
|
|
19
19
|
*/
|
|
20
|
-
export default function UploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, onUploadComplete, modalTitle, isOpen, onClose, uploadHint, }: UploadModalProps): React.JSX.Element;
|
|
20
|
+
export default function UploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, catalogId, onUploadComplete, modalTitle, isOpen, onClose, uploadHint, }: UploadModalProps): React.JSX.Element;
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,cAAc,SAAS,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,OAAO,EACP,UAAU,GACX,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,cAAc,SAAS,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,OAAO,EACP,UAAU,GACX,EAAE,gBAAgB,qBA+ClB"}
|
|
@@ -44,6 +44,8 @@ export interface BaseUploadModalProps {
|
|
|
44
44
|
queryParams?: Record<string, string>;
|
|
45
45
|
/** Endpoint URL for the upload request */
|
|
46
46
|
endpoint: string;
|
|
47
|
+
/** Catalog ID; when set, a jobId in the upload response is treated as an async import job and polled for its result */
|
|
48
|
+
catalogId?: string;
|
|
47
49
|
/** Callback function when upload is completed successfully */
|
|
48
50
|
onUploadComplete?: (response: any) => void;
|
|
49
51
|
/** Callback function to close the modal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAC;IACnC,kDAAkD;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3C,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,sCAAsC;IACtC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CACnC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM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
|
@@ -10,6 +10,7 @@ import { UploadModalHookProps, UploadError } from './types';
|
|
|
10
10
|
* @param props.acceptedFileTypes - Comma-separated list of accepted file types
|
|
11
11
|
* @param props.queryParams - Query parameters for the upload request
|
|
12
12
|
* @param props.endpoint - Endpoint URL for the upload request
|
|
13
|
+
* @param props.catalogId - Catalog ID; when set, a jobId in the upload response is treated as an async import job and polled for its result
|
|
13
14
|
* @param props.onUploadComplete - Callback when upload completes
|
|
14
15
|
* @param props.formRef - Reference to the form component
|
|
15
16
|
* @param props.onClose - Callback to close the modal
|
|
@@ -24,7 +25,7 @@ import { UploadModalHookProps, UploadError } from './types';
|
|
|
24
25
|
* @returns {RcFile|undefined} currentFile - Currently selected file
|
|
25
26
|
* @returns {Function} onModalClose - Handler to close the modal and reset state
|
|
26
27
|
*/
|
|
27
|
-
export default function useUploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, onUploadComplete, formRef, onClose, uploadHint, autoZip, }: UploadModalHookProps): {
|
|
28
|
+
export default function useUploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, catalogId, onUploadComplete, formRef, onClose, uploadHint, autoZip, }: UploadModalHookProps): {
|
|
28
29
|
loading: boolean;
|
|
29
30
|
progress: number;
|
|
30
31
|
error: UploadError | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/useUploadState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"useUploadState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/UploadModal/useUploadState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE,oBAAoB;;;;qBAmGS,GAAG;;;;EA4GlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAe/C,eAAO,MAAM,UAAU;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAe/C,eAAO,MAAM,UAAU;;CAwFrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AActC,eAAO,MAAM,YAAY;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AActC,eAAO,MAAM,YAAY;;CAkEvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"StatsRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AA4ChE,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,EACR,CAAC,GACF,EAAE;IACD,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B,qBA4EA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadges.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatusBadges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,4BAGhF;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"StatusBadges.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatusBadges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,4BAGhF;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,qBAQpF"}
|
|
@@ -3,7 +3,7 @@ import { BaseModulConfiguration } from '../../Configuration';
|
|
|
3
3
|
export interface MaintenanceConfiguration extends BaseModulConfiguration {
|
|
4
4
|
type: 'Maintenance';
|
|
5
5
|
}
|
|
6
|
-
export type RefreshStatus = 'ok' | 'failed' | 'skipped'
|
|
6
|
+
export type RefreshStatus = 'ok' | 'failed' | 'skipped';
|
|
7
7
|
export type RefreshResult = Record<string, RefreshStatus>;
|
|
8
8
|
export type InstancesData<T> = Record<string, T | null>;
|
|
9
9
|
export interface NodeMemoryUsage {
|
|
@@ -41,16 +41,6 @@ export interface ServiceStats {
|
|
|
41
41
|
};
|
|
42
42
|
/** Service-specific: tracked in-flight upload temp-file sets. Should return to 0 at idle (diva-media). */
|
|
43
43
|
transformerTempFiles?: number;
|
|
44
|
-
/** Present for Node services with cron jobs: snapshot of the currently scheduled tasks. */
|
|
45
|
-
cronJobs?: CronJobsStats;
|
|
46
|
-
}
|
|
47
|
-
export interface CronJobsStats {
|
|
48
|
-
scheduled: number;
|
|
49
|
-
jobs: {
|
|
50
|
-
name: string;
|
|
51
|
-
status: string;
|
|
52
|
-
nextRun: string | null;
|
|
53
|
-
}[];
|
|
54
44
|
}
|
|
55
45
|
export interface PingResult {
|
|
56
46
|
reachable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Mainten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CAAC,UAAU,CAAC,CAAA;CAAE,GACxD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;CAAE,GAC1D;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getColumnFilterProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/getColumnFilterProps.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,MAwBjD"}
|
|
@@ -2,9 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import type { Swiper as SwiperClass } from 'swiper';
|
|
3
3
|
import { ShortcutItem } from '../ShortcutLegend';
|
|
4
4
|
import { SessionAction } from '../../hooks/useRenderApproveSession';
|
|
5
|
-
import { RenderApproveImages } from '../../../../types';
|
|
5
|
+
import { RenderApproveImages, RenderApproveMedia } from '../../../../types';
|
|
6
6
|
interface Props {
|
|
7
7
|
images: RenderApproveImages;
|
|
8
|
+
loading?: boolean;
|
|
8
9
|
readonlyDecision?: SessionAction;
|
|
9
10
|
onOpenFullscreenLeft: () => void;
|
|
10
11
|
onOpenFullscreenRight: () => void;
|
|
@@ -20,11 +21,18 @@ interface Props {
|
|
|
20
21
|
onNext: () => void;
|
|
21
22
|
onUpload?: () => void;
|
|
22
23
|
onSetReadyForProduction?: () => void;
|
|
24
|
+
compareOpen?: boolean;
|
|
25
|
+
/** Only set for multi-variant AI jobs; toggles the variant comparison grid. */
|
|
26
|
+
onToggleCompare?: () => void;
|
|
27
|
+
variantSelecting?: boolean;
|
|
28
|
+
onSelectVariant?: (mediaItemId: string) => void;
|
|
29
|
+
onOpenVariantFullscreen?: (media: RenderApproveMedia) => void;
|
|
30
|
+
onVariantSwiperInit?: (swiper: SwiperClass) => void;
|
|
23
31
|
}
|
|
24
32
|
/**
|
|
25
33
|
* Abnahme (approval) use case: side-by-side comparison of preview and result
|
|
26
34
|
* plus the full decision action bar (approve / reject / upload).
|
|
27
35
|
*/
|
|
28
|
-
export default function ApprovalWorkspace({ images, readonlyDecision, onOpenFullscreenLeft, onOpenFullscreenRight, onLeftSwiperInit, actionDisabled, busy, readOnly, isFirst, shortcutItems, onApprove, onReject, onPrev, onNext, onUpload, onSetReadyForProduction, }: Props): React.JSX.Element;
|
|
36
|
+
export default function ApprovalWorkspace({ images, loading, readonlyDecision, onOpenFullscreenLeft, onOpenFullscreenRight, onLeftSwiperInit, actionDisabled, busy, readOnly, isFirst, shortcutItems, onApprove, onReject, onPrev, onNext, onUpload, onSetReadyForProduction, compareOpen, onToggleCompare, variantSelecting, onSelectVariant, onOpenVariantFullscreen, onVariantSwiperInit, }: Props): React.JSX.Element;
|
|
29
37
|
export {};
|
|
30
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,UAAU,KAAK;IACb,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+EAA+E;IAC/E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC9D,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACrD;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,mBAAmB,GACpB,EAAE,KAAK,qBAmCP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/FullscreenViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/FullscreenViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAMD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,qBAiD9E"}
|
|
@@ -9,12 +9,11 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
interface Props {
|
|
11
11
|
title: string;
|
|
12
|
-
/** `undefined` means "not resolved yet" and renders the spinner. */
|
|
13
12
|
media?: RenderApproveMedia;
|
|
13
|
+
loading?: boolean;
|
|
14
14
|
alt?: string;
|
|
15
15
|
onOpenFullscreen?: () => void;
|
|
16
|
-
headerActions?: React.ReactNode;
|
|
17
16
|
}
|
|
18
|
-
export default function ImagePanel({ title, media, alt, onOpenFullscreen
|
|
17
|
+
export default function ImagePanel({ title, media, loading, alt, onOpenFullscreen }: Props): React.JSX.Element;
|
|
19
18
|
export {};
|
|
20
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAQD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,KAAK,qBAyFzF"}
|
|
@@ -6,6 +6,7 @@ import 'swiper/css/navigation';
|
|
|
6
6
|
import 'swiper/css/pagination';
|
|
7
7
|
interface Props {
|
|
8
8
|
slides: RenderApproveMedia[];
|
|
9
|
+
loading?: boolean;
|
|
9
10
|
/** Fullscreen handler used only for the realtime preview slide. */
|
|
10
11
|
onOpenFullscreenFirst?: () => void;
|
|
11
12
|
/** Receives the Swiper instance so the parent can drive prev/next from keyboard shortcuts. */
|
|
@@ -19,6 +20,6 @@ interface Props {
|
|
|
19
20
|
* Swiper's keyboard module is intentionally disabled because Arrow Left/Right
|
|
20
21
|
* are owned by `useKeyboardShortcuts` for navigating between render jobs.
|
|
21
22
|
*/
|
|
22
|
-
export default function LeftSlider({ slides, onOpenFullscreenFirst, onSwiperInit }: Props): React.JSX.Element;
|
|
23
|
+
export default function LeftSlider({ slides, loading, onOpenFullscreenFirst, onSwiperInit }: Props): React.JSX.Element;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAKpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAE/B,UAAU,KAAK;IACb,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,mEAAmE;IACnE,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,YAAY,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAKpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAE/B,UAAU,KAAK;IACb,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,EAAE,KAAK,qBAsCjG"}
|
|
@@ -10,7 +10,7 @@ interface Props {
|
|
|
10
10
|
onPromptOpenChange?: (open: boolean) => void;
|
|
11
11
|
promptActionDisabled?: boolean;
|
|
12
12
|
promptActionBusy?: boolean;
|
|
13
|
-
onPromptRestart?: (nextPrompt: string) => Promise<void>;
|
|
13
|
+
onPromptRestart?: (nextPrompt: string, nextNrOfVariants: number) => Promise<void>;
|
|
14
14
|
/** Whether saving the prompt restarts the render production (shows a warning). */
|
|
15
15
|
promptWarningMessage?: string;
|
|
16
16
|
/** Hides the prompt view/button entirely (e.g. during the image-selection phase). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAwC9C,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qFAAqF;IACrF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA4HD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,GAAG,EACH,QAAQ,EACR,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE,KAAK,qBA2SP"}
|
|
@@ -8,9 +8,10 @@ export type RenderApproveMode = 'select' | 'approve';
|
|
|
8
8
|
/**
|
|
9
9
|
* Builds the shortcut list for a given mode. The image-selector mode only
|
|
10
10
|
* exposes navigation/details/prompt/close; the approval mode exposes the full
|
|
11
|
-
* decision set. `showPrompt` adds the prompt-panel shortcut for AI jobs
|
|
11
|
+
* decision set. `showPrompt` adds the prompt-panel shortcut for AI jobs,
|
|
12
|
+
* `showVariants` the variant swiper and comparison ones for multi-variant jobs.
|
|
12
13
|
*/
|
|
13
|
-
export declare function buildShortcutItems(mode: RenderApproveMode, showPrompt: boolean): ShortcutItem[];
|
|
14
|
+
export declare function buildShortcutItems(mode: RenderApproveMode, showPrompt: boolean, showVariants?: boolean): ShortcutItem[];
|
|
14
15
|
interface Props {
|
|
15
16
|
items: ShortcutItem[];
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAiBrD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,UAAQ,GAAG,YAAY,EAAE,CASrH;AAED,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,qBAqBtD"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Swiper as SwiperClass } from 'swiper';
|
|
3
3
|
import { SessionAction } from '../../hooks/useRenderApproveSession';
|
|
4
|
-
import { RenderApproveImages } from '../../../../types';
|
|
4
|
+
import { RenderApproveImages, RenderApproveMedia } from '../../../../types';
|
|
5
5
|
interface Props {
|
|
6
6
|
images: RenderApproveImages;
|
|
7
|
+
loading?: boolean;
|
|
7
8
|
readonlyDecision?: SessionAction;
|
|
8
9
|
onOpenFullscreenLeft?: () => void;
|
|
9
10
|
onOpenFullscreenRight?: () => void;
|
|
@@ -12,7 +13,21 @@ interface Props {
|
|
|
12
13
|
onUpload?: () => void;
|
|
13
14
|
onSetReadyForProduction?: () => void;
|
|
14
15
|
actionsDisabled?: boolean;
|
|
16
|
+
/** Replaces both panels with the variant comparison grid while true. */
|
|
17
|
+
compareOpen?: boolean;
|
|
18
|
+
/** Only set for multi-variant AI jobs; toggles the variant comparison grid. */
|
|
19
|
+
onToggleCompare?: () => void;
|
|
20
|
+
/** Blocks the compare toggle. Unlike the other actions it stays usable on read-only jobs. */
|
|
21
|
+
compareDisabled?: boolean;
|
|
22
|
+
/** Blocks the take-over action (read-only job, session busy, ...). */
|
|
23
|
+
variantSelectDisabled?: boolean;
|
|
24
|
+
/** A take-over request is currently in flight. */
|
|
25
|
+
variantSelecting?: boolean;
|
|
26
|
+
onSelectVariant?: (mediaItemId: string) => void;
|
|
27
|
+
onOpenVariantFullscreen?: (media: RenderApproveMedia) => void;
|
|
28
|
+
/** Forwarded to VariantSlider so Q/E can drive the variant swiper. */
|
|
29
|
+
onVariantSwiperInit?: (swiper: SwiperClass) => void;
|
|
15
30
|
}
|
|
16
|
-
export default function SideBySideViewer({ images, readonlyDecision, onOpenFullscreenLeft, onOpenFullscreenRight, onLeftSwiperInit, onUpload, onSetReadyForProduction, actionsDisabled, }: Props): React.JSX.Element;
|
|
31
|
+
export default function SideBySideViewer({ images, loading, readonlyDecision, onOpenFullscreenLeft, onOpenFullscreenRight, onLeftSwiperInit, onUpload, onSetReadyForProduction, actionsDisabled, compareOpen, onToggleCompare, compareDisabled, variantSelectDisabled, variantSelecting, onSelectVariant, onOpenVariantFullscreen, onVariantSwiperInit, }: Props): React.JSX.Element;
|
|
17
32
|
export {};
|
|
18
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AASpD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAe5E,UAAU,KAAK;IACb,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+EAA+E;IAC/E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,6FAA6F;IAC7F,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC9D,sEAAsE;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,mBAAmB,GACpB,EAAE,KAAK,qBAwIP"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RenderApproveMedia, RenderApproveVariant } from '../../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
variants: RenderApproveVariant[];
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
busy?: boolean;
|
|
8
|
+
onSelect?: (mediaItemId: string) => void;
|
|
9
|
+
onOpenFullscreen?: (media: RenderApproveMedia) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Side-by-side comparison of all generated variants, each with its take-over
|
|
13
|
+
* action. Renders whatever is there - with partial generation failures a job can
|
|
14
|
+
* carry fewer variants than `nrOfVariants` asked for.
|
|
15
|
+
*/
|
|
16
|
+
export default function VariantCompareView({ variants, loading, disabled, busy, onSelect, onOpenFullscreen }: Props): React.JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG7E,UAAU,KAAK;IACb,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxD;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,KAAK,qBAmBlH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RenderApproveMedia, RenderApproveVariant } from '../../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
variant: RenderApproveVariant;
|
|
5
|
+
/** Number of variants in the batch, for the "Variante 2/3" label. */
|
|
6
|
+
total: number;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
/** Blocks the take-over action (read-only job, session busy, ...). */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** A take-over request is currently in flight. */
|
|
11
|
+
busy?: boolean;
|
|
12
|
+
onSelect?: (mediaItemId: string) => void;
|
|
13
|
+
onOpenFullscreen?: (media: RenderApproveMedia) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* One image variant with its take-over action. Shared by the variant slider and
|
|
17
|
+
* the comparison view so both offer the exact same interaction.
|
|
18
|
+
*/
|
|
19
|
+
export default function VariantPanel({ variant, total, loading, disabled, busy, onSelect, onOpenFullscreen }: Props): React.JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG7E,UAAU,KAAK;IACb,OAAO,EAAE,oBAAoB,CAAC;IAC9B,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxD;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,KAAK,qBA4BlH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Swiper as SwiperClass } from 'swiper';
|
|
3
|
+
import { RenderApproveMedia, RenderApproveVariant } from '../../../../types';
|
|
4
|
+
import 'swiper/css';
|
|
5
|
+
import 'swiper/css/navigation';
|
|
6
|
+
import 'swiper/css/pagination';
|
|
7
|
+
interface Props {
|
|
8
|
+
variants: RenderApproveVariant[];
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
busy?: boolean;
|
|
12
|
+
onSelect?: (mediaItemId: string) => void;
|
|
13
|
+
onOpenFullscreen?: (media: RenderApproveMedia) => void;
|
|
14
|
+
/** Receives the Swiper instance so the parent can drive prev/next from keyboard shortcuts. */
|
|
15
|
+
onSwiperInit?: (swiper: SwiperClass) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Horizontal swiper over the generated image variants on the result side of the
|
|
19
|
+
* approval viewer.
|
|
20
|
+
*
|
|
21
|
+
* Opens on the variant currently taken over as the product image; the generated
|
|
22
|
+
* order stays untouched so the "Variante 2/3" labels keep matching the slide
|
|
23
|
+
* positions.
|
|
24
|
+
*
|
|
25
|
+
* Not looped on purpose: with two or three slides the "Variante 2/3" label is
|
|
26
|
+
* the main orientation aid and wrapping around would make it misleading.
|
|
27
|
+
* Swiper's keyboard module stays disabled because Arrow Left/Right navigate
|
|
28
|
+
* between render jobs; Q/E drive this swiper via `useKeyboardShortcuts`.
|
|
29
|
+
*/
|
|
30
|
+
export default function VariantSlider({ variants, loading, disabled, busy, onSelect, onOpenFullscreen, onSwiperInit }: Props): React.JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAIpD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG7E,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAE/B,UAAU,KAAK;IACb,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,8FAA8F;IAC9F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,EAAE,KAAK,qBAiC3H"}
|
|
@@ -14,12 +14,6 @@ export declare function resolveMediaItem(baseUrl: string, jwt: string | undefine
|
|
|
14
14
|
* right (resolved media item) images. Each id change cancels the previous
|
|
15
15
|
* fetch via an abort flag so stale responses cannot overwrite newer state.
|
|
16
16
|
*
|
|
17
|
-
* Everything is revealed in stages, because a job switch otherwise shows
|
|
18
|
-
* nothing until the slowest request of the whole chain is done: the preview and
|
|
19
|
-
* the `renderImages` slides come straight from the job document, the result
|
|
20
|
-
* image is one further request away, and only the product media (one catalog
|
|
21
|
-
* call plus two media calls per image) and the slide names arrive late.
|
|
22
|
-
*
|
|
23
17
|
* State mutations (approve/reject) live in `useUpdateRenderJobState` so the
|
|
24
18
|
* session hook can call them without depending on the currently-loaded job.
|
|
25
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRenderJobData.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useRenderJobData.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAwB,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIvH,UAAU,sBAAsB;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8JAA8J;IAC9J,iBAAiB,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CAC1D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM7E;AAuHD,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,WAAW,CAAC,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAapC;AAyCD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAqJjG"}
|
package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAsD3D,MAAM,CAAC,OAAO,UAAU,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAsD3D,MAAM,CAAC,OAAO,UAAU,aAAa,sBA8rBpC"}
|
|
@@ -72,6 +72,15 @@ export declare const KEY_MAP: {
|
|
|
72
72
|
readonly swiperNext: {
|
|
73
73
|
readonly code: "KeyD";
|
|
74
74
|
};
|
|
75
|
+
readonly variantPrev: {
|
|
76
|
+
readonly code: "KeyQ";
|
|
77
|
+
};
|
|
78
|
+
readonly variantNext: {
|
|
79
|
+
readonly code: "KeyE";
|
|
80
|
+
};
|
|
81
|
+
readonly compare: {
|
|
82
|
+
readonly code: "KeyC";
|
|
83
|
+
};
|
|
75
84
|
readonly details: {
|
|
76
85
|
readonly code: "KeyD";
|
|
77
86
|
readonly mod: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/TableRenderJobs/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;CAQnB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/TableRenderJobs/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;CAQnB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBmC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a manually uploaded image to an AI job's image variants and takes it over as
|
|
3
|
+
* the result image via `POST ${mediaService}/renderjobs/:id/variants`.
|
|
4
|
+
*
|
|
5
|
+
* The endpoint also seeds the list from the previous result and moves the file name
|
|
6
|
+
* and job reference onto the upload, so a plain JSON patch cannot replace it.
|
|
7
|
+
*/
|
|
8
|
+
export default function useAddRenderJobImageVariant(): (id: string, mediaItemId: string, mediaItemRefId: string) => Promise<any>;
|
|
9
|
+
//# sourceMappingURL=useAddRenderJobImageVariant.d.ts.map
|
package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useAddRenderJobImageVariant.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddRenderJobImageVariant.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useAddRenderJobImageVariant.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,SAMpC,MAAM,eAAe,MAAM,kBAAkB,MAAM,kBA+BjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Takes one generated image variant over as the render job's result image via
|
|
3
|
+
* `POST ${mediaService}/renderjobs/:id/variants/select`.
|
|
4
|
+
*
|
|
5
|
+
* The endpoint moves the canonical file name and the job reference from the
|
|
6
|
+
* previously selected variant to the new one, so this must not be replaced by a
|
|
7
|
+
* plain JSON patch on `fileUrl` / `mediaItemRef`.
|
|
8
|
+
*/
|
|
9
|
+
export default function useSelectRenderJobVariant(): (id: string, mediaItemId: string) => Promise<any>;
|
|
10
|
+
//# sourceMappingURL=useSelectRenderJobVariant.d.ts.map
|
package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useSelectRenderJobVariant.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectRenderJobVariant.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useSelectRenderJobVariant.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,SAMlC,MAAM,eAAe,MAAM,kBA+BzC"}
|
package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUploadRenderJobImage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadRenderJobImage.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useUploadRenderJobImage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useUploadRenderJobImage.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useUploadRenderJobImage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAOpC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAkBrC;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAiCnG;AAED,MAAM,CAAC,OAAO,UAAU,uBAAuB;mBAa9B,IAAI,OAAO,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC;;;EAmFpD"}
|
|
@@ -10,6 +10,21 @@ export interface RenderImage {
|
|
|
10
10
|
mediaItemRefId?: string;
|
|
11
11
|
url: string;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* One generated AI output image of a multi-variant render job.
|
|
15
|
+
*
|
|
16
|
+
* Not to be confused with {@link RenderImage}, which holds the *input* images
|
|
17
|
+
* sent to the AI. The variant currently taken over as the product image is the
|
|
18
|
+
* one referenced by the job's `mediaItems[0]` - it is not flagged separately.
|
|
19
|
+
*/
|
|
20
|
+
export interface RenderImageVariant {
|
|
21
|
+
url: string;
|
|
22
|
+
mediaItemId?: string;
|
|
23
|
+
mediaItemRefId?: string;
|
|
24
|
+
/** Zero-based position in the generated batch. */
|
|
25
|
+
index: number;
|
|
26
|
+
created?: number;
|
|
27
|
+
}
|
|
13
28
|
/**
|
|
14
29
|
* Subset of the render job payload returned by `GET /renderjobs/:id`
|
|
15
30
|
* that the RenderApprove session actually uses. Extra fields from the API
|
|
@@ -43,6 +58,10 @@ export interface RenderJob {
|
|
|
43
58
|
}[];
|
|
44
59
|
/** Ordered list of input images sent to the AI, each with its CDN url and (when known) its MediaItemRef id. */
|
|
45
60
|
renderImages?: RenderImage[];
|
|
61
|
+
/** How many image variants the AI engine was asked to generate (1-3). Undefined behaves like 1. */
|
|
62
|
+
nrOfVariants?: number;
|
|
63
|
+
/** The generated output images. Only present on jobs that requested more than one variant. */
|
|
64
|
+
imageVariants?: RenderImageVariant[];
|
|
46
65
|
created?: number;
|
|
47
66
|
[key: string]: any;
|
|
48
67
|
}
|
|
@@ -69,11 +88,22 @@ export interface RenderApproveMedia {
|
|
|
69
88
|
name?: string;
|
|
70
89
|
/** Free-form metadata dictionary of the MediaItem / MediaItemRef. */
|
|
71
90
|
metadata?: Record<string, any>;
|
|
72
|
-
/** Storage-generated image variants keyed by size (e.g. `big`, `gal`). For TIFFs these are PNGs. */
|
|
73
|
-
variants?: Record<string, string>;
|
|
74
91
|
/** True for the realtime render preview slide (independent of its position). */
|
|
75
92
|
isPreview?: boolean;
|
|
76
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* One resolved image variant on the result side of the viewer. Carries the
|
|
96
|
+
* `mediaItemId` explicitly because that - not the ambiguous
|
|
97
|
+
* {@link RenderApproveMedia.id} - is the key the select endpoint expects.
|
|
98
|
+
*/
|
|
99
|
+
export interface RenderApproveVariant extends RenderApproveMedia {
|
|
100
|
+
/** MediaItem of this variant; the payload of `POST /renderjobs/:id/variants/select`. */
|
|
101
|
+
mediaItemId: string;
|
|
102
|
+
/** Zero-based position in the generated batch, used for the "Variante 2/3" label. */
|
|
103
|
+
index: number;
|
|
104
|
+
/** True for the variant currently taken over as the product image. */
|
|
105
|
+
selected: boolean;
|
|
106
|
+
}
|
|
77
107
|
export interface RenderApproveImages {
|
|
78
108
|
/** First slide / fullscreen source (always the realtime render preview). */
|
|
79
109
|
left?: RenderApproveMedia;
|
|
@@ -86,5 +116,11 @@ export interface RenderApproveImages {
|
|
|
86
116
|
*/
|
|
87
117
|
leftSlides?: RenderApproveMedia[];
|
|
88
118
|
right?: RenderApproveMedia;
|
|
119
|
+
/**
|
|
120
|
+
* All generated variants of an AI job, ordered by `index`. Empty for jobs that
|
|
121
|
+
* produced a single image - `right` alone is shown in that case, exactly as
|
|
122
|
+
* before variants existed.
|
|
123
|
+
*/
|
|
124
|
+
rightSlides?: RenderApproveVariant[];
|
|
89
125
|
}
|
|
90
126
|
//# sourceMappingURL=types.d.ts.map
|