@selfcommunity/react-core 0.5.0-embeds.17 → 0.5.0-live.65
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/lib/cjs/constants/Cache.d.ts +1 -0
- package/lib/cjs/constants/Cache.js +2 -1
- package/lib/cjs/constants/Preferences.d.ts +3 -1
- package/lib/cjs/constants/Preferences.js +9 -5
- package/lib/cjs/hooks/useSCFetchEvent.d.ts +1 -1
- package/lib/cjs/hooks/useSCFetchEvent.js +38 -28
- package/lib/cjs/index.d.ts +2 -2
- package/lib/cjs/index.js +2 -1
- package/lib/cjs/utils/hooks/index.d.ts +2 -1
- package/lib/cjs/utils/hooks/index.js +3 -1
- package/lib/cjs/utils/hooks/usePageVisibility.d.ts +2 -0
- package/lib/cjs/utils/hooks/usePageVisibility.js +17 -0
- package/lib/cjs/utils/validator.js +1 -2
- package/lib/esm/constants/Cache.d.ts +1 -0
- package/lib/esm/constants/Cache.js +1 -0
- package/lib/esm/constants/Preferences.d.ts +3 -1
- package/lib/esm/constants/Preferences.js +6 -2
- package/lib/esm/hooks/useSCFetchEvent.d.ts +1 -1
- package/lib/esm/hooks/useSCFetchEvent.js +38 -28
- package/lib/esm/index.d.ts +2 -2
- package/lib/esm/index.js +2 -2
- package/lib/esm/utils/hooks/index.d.ts +2 -1
- package/lib/esm/utils/hooks/index.js +2 -1
- package/lib/esm/utils/hooks/usePageVisibility.d.ts +2 -0
- package/lib/esm/utils/hooks/usePageVisibility.js +15 -0
- package/lib/esm/utils/validator.js +1 -2
- package/lib/umd/react-core.js +1 -1
- package/lib/umd/react-core.js.LICENSE.txt +2 -0
- package/package.json +132 -127
|
@@ -193,7 +193,7 @@ export const validateWebSocketDisableToastMessage = (value) => {
|
|
|
193
193
|
export const validateWebSocketSecure = (value) => {
|
|
194
194
|
const errors = [];
|
|
195
195
|
const warnings = [];
|
|
196
|
-
if (value) {
|
|
196
|
+
if ((value === null || value === void 0 ? void 0 : value.toString()) !== undefined) {
|
|
197
197
|
if (!(typeof value === 'boolean')) {
|
|
198
198
|
errors.push(ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE);
|
|
199
199
|
}
|
|
@@ -644,7 +644,6 @@ export const validateOpenAI = (v) => {
|
|
|
644
644
|
* @param v
|
|
645
645
|
*/
|
|
646
646
|
export const validateGeocoding = (v) => {
|
|
647
|
-
//console.log(v);
|
|
648
647
|
const errors = [];
|
|
649
648
|
const warnings = [];
|
|
650
649
|
if (v && !isObject(v)) {
|