@anzusystems/common-admin 1.47.0-beta.313 → 1.47.0-beta.314
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/common-admin.d.ts
CHANGED
|
@@ -18880,10 +18880,10 @@ export declare function useGrantOrigin(): {
|
|
|
18880
18880
|
export { useI18n }
|
|
18881
18881
|
|
|
18882
18882
|
export declare function useImageActions(config: ReturnType<typeof useCommonAdminImageOptions>): {
|
|
18883
|
-
widgetImageToDamImageUrl: (image: ImageAware | ImageCreateUpdateAware, width?: number, height?: number) => string;
|
|
18884
|
-
widgetImageToDamImageOriginalUrl: (image: ImageAware | ImageCreateUpdateAware) => string;
|
|
18885
|
-
damImageIdToDamImageUrl: (imageId: DocId, width?: number, height?: number) => string;
|
|
18886
|
-
damImageIdToDamImageOriginalUrl: (imageId: DocId) => string;
|
|
18883
|
+
widgetImageToDamImageUrl: (image: ImageAware | ImageCreateUpdateAware, width?: number, height?: number, random?: boolean) => string;
|
|
18884
|
+
widgetImageToDamImageOriginalUrl: (image: ImageAware | ImageCreateUpdateAware, random?: boolean) => string;
|
|
18885
|
+
damImageIdToDamImageUrl: (imageId: DocId, width?: number, height?: number, random?: boolean) => string;
|
|
18886
|
+
damImageIdToDamImageOriginalUrl: (imageId: DocId, random?: boolean) => string;
|
|
18887
18887
|
};
|
|
18888
18888
|
|
|
18889
18889
|
export declare const useImageStore: StoreDefinition<"commonImageStore", Pick<{
|
package/dist/common-admin.js
CHANGED
|
@@ -11826,10 +11826,10 @@ function qs(e = "default") {
|
|
|
11826
11826
|
}
|
|
11827
11827
|
function Ii(e) {
|
|
11828
11828
|
return {
|
|
11829
|
-
widgetImageToDamImageUrl: (i, r = e.imageWidth, n = e.imageHeight) => e.previewDomain + "/image/w" + r + "-h" + n + (i.dam.regionPosition > 0 ? "-c" + i.dam.regionPosition : "") + "/" + i.dam.damId + ".jpg",
|
|
11830
|
-
widgetImageToDamImageOriginalUrl: (i) => e.previewDomain + "/image/original/" + i.dam.damId + ".jpg",
|
|
11831
|
-
damImageIdToDamImageUrl: (i, r = e.imageWidth, n = e.imageHeight) => e.previewDomain + "/image/w" + r + "-h" + n + "/" + i + ".jpg",
|
|
11832
|
-
damImageIdToDamImageOriginalUrl: (i) => e.previewDomain + "/image/original/" + i + ".jpg"
|
|
11829
|
+
widgetImageToDamImageUrl: (i, r = e.imageWidth, n = e.imageHeight, l = !0) => e.previewDomain + "/image/w" + r + "-h" + n + (i.dam.regionPosition > 0 ? "-c" + i.dam.regionPosition : "") + "/" + i.dam.damId + ".jpg" + (l ? "?random=" + Date.now() : ""),
|
|
11830
|
+
widgetImageToDamImageOriginalUrl: (i, r = !0) => e.previewDomain + "/image/original/" + i.dam.damId + ".jpg" + (r ? "?random=" + Date.now() : ""),
|
|
11831
|
+
damImageIdToDamImageUrl: (i, r = e.imageWidth, n = e.imageHeight, l = !0) => e.previewDomain + "/image/w" + r + "-h" + n + "/" + i + ".jpg" + (l ? "?random=" + Date.now() : ""),
|
|
11832
|
+
damImageIdToDamImageOriginalUrl: (i, r = !0) => e.previewDomain + "/image/original/" + i + ".jpg" + (r ? "?random=" + Date.now() : "")
|
|
11833
11833
|
};
|
|
11834
11834
|
}
|
|
11835
11835
|
function Ur(e = void 0, a) {
|
|
@@ -14743,7 +14743,7 @@ const Ig = { class: "d-flex flex-column" }, kg = {
|
|
|
14743
14743
|
m.value = !m.value;
|
|
14744
14744
|
}, V = () => {
|
|
14745
14745
|
}, F = I(() => o.value?.attributes.assetType || ui), h = I(() => o.value ? o.value.attributes.assetStatus : qo), p = I(() => F.value === ae.Image), q = I(() => F.value === ae.Video), g = I(() => F.value === ae.Audio), C = I(() => F.value === ae.Document), X = I(() => o.value?.mainFile && o.value.mainFile.links && o.value.mainFile.links.image_detail ? {
|
|
14746
|
-
url: o.value.mainFile.links.image_detail.url,
|
|
14746
|
+
url: o.value.mainFile.links.image_detail.url + "?random=" + Date.now(),
|
|
14747
14747
|
width: o.value.mainFile.links.image_detail.width,
|
|
14748
14748
|
height: o.value.mainFile.links.image_detail.height,
|
|
14749
14749
|
bgColor: xi(o.value.mainFile) && o.value.mainFile.imageAttributes && o.value.mainFile.imageAttributes.mostDominantColor ? o.value.mainFile.imageAttributes.mostDominantColor : "#ccc"
|
|
@@ -15499,7 +15499,7 @@ const zg = { key: 0 }, Rg = /* @__PURE__ */ H({
|
|
|
15499
15499
|
}), X = S(!0), b = () => {
|
|
15500
15500
|
X.value = !X.value;
|
|
15501
15501
|
}, Y = I(() => C.value?.attributes.assetType || ui), x = I(() => C.value ? C.value.attributes.assetStatus : qo), y = I(() => Y.value === ae.Image), T = I(() => Y.value === ae.Video), E = I(() => Y.value === ae.Audio), j = I(() => Y.value === ae.Document), N = I(() => g.value?.imagePreview ? {
|
|
15502
|
-
url: g.value.imagePreview.url,
|
|
15502
|
+
url: g.value.imagePreview.url + "?random=" + Date.now(),
|
|
15503
15503
|
width: g.value.imagePreview.requestedWidth || void 0,
|
|
15504
15504
|
height: g.value.imagePreview.requestedHeight || void 0,
|
|
15505
15505
|
bgColor: xi(C.value?.mainFile) && C.value?.mainFile.imageAttributes && C.value?.mainFile.imageAttributes.mostDominantColor ? C.value.mainFile.imageAttributes.mostDominantColor : "#ccc"
|