@fluid-app/portal-sdk 0.1.74 → 0.1.75
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/{ProductsScreen-xjbHMcvT.cjs → ProductsScreen-D1hLP4qn.cjs} +2 -2
- package/dist/{ProductsScreen-xjbHMcvT.cjs.map → ProductsScreen-D1hLP4qn.cjs.map} +1 -1
- package/dist/{ProductsScreen-BvpKx6qj.cjs → ProductsScreen-DD07WW44.cjs} +2 -2
- package/dist/{ProductsScreen-hvPMLQ9W.mjs → ProductsScreen-KLajmCLk.mjs} +2 -2
- package/dist/{ProductsScreen-hvPMLQ9W.mjs.map → ProductsScreen-KLajmCLk.mjs.map} +1 -1
- package/dist/{ProductsScreen-CI4XIK-8.mjs → ProductsScreen-SExV06P8.mjs} +2 -5
- package/dist/{ShareablesScreen-DdwtbkpR.cjs → ShareablesScreen-BKidUZz_.cjs} +2 -2
- package/dist/{ShareablesScreen-Cvo2ujdv.cjs → ShareablesScreen-CA8sm7n_.cjs} +2 -2
- package/dist/{ShareablesScreen-Cvo2ujdv.cjs.map → ShareablesScreen-CA8sm7n_.cjs.map} +1 -1
- package/dist/{ShareablesScreen-Bry6-PII.mjs → ShareablesScreen-CTruUco1.mjs} +2 -2
- package/dist/{ShareablesScreen-Bry6-PII.mjs.map → ShareablesScreen-CTruUco1.mjs.map} +1 -1
- package/dist/{ShareablesScreen-htQIO4oW.mjs → ShareablesScreen-C_aJXryA.mjs} +2 -5
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/dist/{src-2yiesCJi.cjs → src-B-aQFEbA.cjs} +17 -5
- package/dist/src-B-aQFEbA.cjs.map +1 -0
- package/dist/{src-CghkSQGd.mjs → src-CvQ9ezCI.mjs} +17 -5
- package/dist/src-CvQ9ezCI.mjs.map +1 -0
- package/package.json +12 -12
- package/dist/src-2yiesCJi.cjs.map +0 -1
- package/dist/src-CghkSQGd.mjs.map +0 -1
|
@@ -1008,7 +1008,15 @@ const AnalyticsPlaceholder = React.memo(function AnalyticsPlaceholder() {
|
|
|
1008
1008
|
})
|
|
1009
1009
|
});
|
|
1010
1010
|
});
|
|
1011
|
-
const
|
|
1011
|
+
const RELATEABLE_TYPE_LABELS = {
|
|
1012
|
+
Product: "product",
|
|
1013
|
+
Medium: "media",
|
|
1014
|
+
EnrollmentPack: "enrollment pack",
|
|
1015
|
+
MySite: "site",
|
|
1016
|
+
Library: "library"
|
|
1017
|
+
};
|
|
1018
|
+
const NoAssetsState = React.memo(function NoAssetsState({ relateable_type }) {
|
|
1019
|
+
const label = RELATEABLE_TYPE_LABELS[relateable_type] ?? "item";
|
|
1012
1020
|
return /* @__PURE__ */ jsx("div", {
|
|
1013
1021
|
className: "flex flex-1 items-center justify-center px-6",
|
|
1014
1022
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -1022,9 +1030,13 @@ const NoAssetsState = React.memo(function NoAssetsState() {
|
|
|
1022
1030
|
className: "mb-1 text-sm text-gray-500",
|
|
1023
1031
|
children: "No Marketing Assets"
|
|
1024
1032
|
}),
|
|
1025
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1026
1034
|
className: "text-xs text-gray-400",
|
|
1027
|
-
children:
|
|
1035
|
+
children: [
|
|
1036
|
+
"This ",
|
|
1037
|
+
label,
|
|
1038
|
+
" does not have any associated media"
|
|
1039
|
+
]
|
|
1028
1040
|
})
|
|
1029
1041
|
]
|
|
1030
1042
|
})
|
|
@@ -1035,7 +1047,7 @@ function MarketingAssetsGrid({ isLoading, error, activeTab, onTabChange, mediaIt
|
|
|
1035
1047
|
onMediaItemClick(mediaItem);
|
|
1036
1048
|
}, [onMediaItemClick]);
|
|
1037
1049
|
const renderContent = () => {
|
|
1038
|
-
if (showEmptyState) return /* @__PURE__ */ jsx(NoAssetsState, {});
|
|
1050
|
+
if (showEmptyState) return /* @__PURE__ */ jsx(NoAssetsState, { relateable_type });
|
|
1039
1051
|
if (activeMainTab === "Analytics" && relateable_type === "Medium") return /* @__PURE__ */ jsx(AnalyticsPlaceholder, {});
|
|
1040
1052
|
if (activeMainTab === "Related Sharables") return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
1041
1053
|
className: "mb-4 px-4 pt-4",
|
|
@@ -8985,4 +8997,4 @@ function ProductsApp({ countryCode, companyLogoUrl, productId: controlledProduct
|
|
|
8985
8997
|
//#endregion
|
|
8986
8998
|
export { ShareablesCoreProvider as i, ShareablesApp as n, ShareablesUIProvider as r, ProductsApp as t };
|
|
8987
8999
|
|
|
8988
|
-
//# sourceMappingURL=src-
|
|
9000
|
+
//# sourceMappingURL=src-CvQ9ezCI.mjs.map
|