@iblai/web-utils 1.10.8 → 1.10.9
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
CHANGED
|
@@ -1663,6 +1663,8 @@ declare const useTenantMetadata: ({ org, spa, skip, }: {
|
|
|
1663
1663
|
type?: "boolean" | "string" | "number";
|
|
1664
1664
|
}[];
|
|
1665
1665
|
getSupportEmail: () => any;
|
|
1666
|
+
getSupportPhone: (defaultSupportPhone?: string) => any;
|
|
1667
|
+
isSupportPhoneEnabled: () => boolean;
|
|
1666
1668
|
};
|
|
1667
1669
|
|
|
1668
1670
|
interface TenantMetadata$1 {
|
package/dist/index.esm.js
CHANGED
|
@@ -1609,6 +1609,14 @@ const useTenantMetadata = ({ org, spa, skip = false, }) => {
|
|
|
1609
1609
|
var _a;
|
|
1610
1610
|
return (_a = data === null || data === void 0 ? void 0 : data.metadata) === null || _a === void 0 ? void 0 : _a.support_email;
|
|
1611
1611
|
};
|
|
1612
|
+
const getSupportPhone = (defaultSupportPhone) => {
|
|
1613
|
+
var _a;
|
|
1614
|
+
return ((_a = data === null || data === void 0 ? void 0 : data.metadata) === null || _a === void 0 ? void 0 : _a.support_phone) || defaultSupportPhone || "";
|
|
1615
|
+
};
|
|
1616
|
+
const isSupportPhoneEnabled = () => {
|
|
1617
|
+
var _a;
|
|
1618
|
+
return ((_a = data === null || data === void 0 ? void 0 : data.metadata) === null || _a === void 0 ? void 0 : _a.enable_support_phone) !== false;
|
|
1619
|
+
};
|
|
1612
1620
|
const isMentorInappropriateContentEnabled = () => {
|
|
1613
1621
|
var _a;
|
|
1614
1622
|
return ((_a = data === null || data === void 0 ? void 0 : data.metadata) === null || _a === void 0 ? void 0 : _a.mentor_report_inappropriate_content) !== false;
|
|
@@ -1637,6 +1645,8 @@ const useTenantMetadata = ({ org, spa, skip = false, }) => {
|
|
|
1637
1645
|
metadataLoaded: !isLoading && (data === null || data === void 0 ? void 0 : data.metadata),
|
|
1638
1646
|
getAllMetadatas,
|
|
1639
1647
|
getSupportEmail,
|
|
1648
|
+
getSupportPhone,
|
|
1649
|
+
isSupportPhoneEnabled,
|
|
1640
1650
|
};
|
|
1641
1651
|
};
|
|
1642
1652
|
|