@selfcommunity/react-core 0.1.2-alpha.0
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/LICENSE.md +21 -0
- package/README.md +13 -0
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +67 -0
- package/lib/cjs/components/provider/SCContextProvider/index.js +117 -0
- package/lib/cjs/components/provider/SCLocaleProvider/index.js +158 -0
- package/lib/cjs/components/provider/SCNotificationProvider/index.js +73 -0
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js +93 -0
- package/lib/cjs/components/provider/SCRoutingProvider/index.js +146 -0
- package/lib/cjs/components/provider/SCThemeProvider/index.js +123 -0
- package/lib/cjs/components/provider/SCUserProvider/index.js +310 -0
- package/lib/cjs/components/router/index.js +91 -0
- package/lib/cjs/constants/Actions.js +6 -0
- package/lib/cjs/constants/ContextProviders.js +29 -0
- package/lib/cjs/constants/Device.js +11 -0
- package/lib/cjs/constants/Errors.js +10 -0
- package/lib/cjs/constants/Features.js +84 -0
- package/lib/cjs/constants/Locale.js +19 -0
- package/lib/cjs/constants/Notification.js +67 -0
- package/lib/cjs/constants/Notifications.js +27 -0
- package/lib/cjs/constants/Preferences.js +344 -0
- package/lib/cjs/constants/Routes.js +68 -0
- package/lib/cjs/constants/Session.js +22 -0
- package/lib/cjs/constants/Theme.js +6 -0
- package/lib/cjs/constants/WebSocket.js +10 -0
- package/lib/cjs/hooks/useSCAuth.js +340 -0
- package/lib/cjs/hooks/useSCCachingManager.js +58 -0
- package/lib/cjs/hooks/useSCConnectionsManager.js +285 -0
- package/lib/cjs/hooks/useSCFetchCategories.js +71 -0
- package/lib/cjs/hooks/useSCFetchCategory.js +68 -0
- package/lib/cjs/hooks/useSCFetchCommentObject.js +68 -0
- package/lib/cjs/hooks/useSCFetchCommentObjects.js +296 -0
- package/lib/cjs/hooks/useSCFetchCustomAdv.js +84 -0
- package/lib/cjs/hooks/useSCFetchFeedObject.js +79 -0
- package/lib/cjs/hooks/useSCFetchIncubator.js +68 -0
- package/lib/cjs/hooks/useSCFetchTag.js +68 -0
- package/lib/cjs/hooks/useSCFetchUser.js +68 -0
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +162 -0
- package/lib/cjs/hooks/useSCFollowersManager.js +232 -0
- package/lib/cjs/hooks/useSCMediaClick.js +27 -0
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +165 -0
- package/lib/cjs/hooks/useSCWebPushMessaging.js +286 -0
- package/lib/cjs/hooks/useSCWebSocket.js +120 -0
- package/lib/cjs/index.js +169 -0
- package/lib/cjs/scss/styles.scss +1 -0
- package/lib/cjs/themes/theme.js +165 -0
- package/lib/cjs/types/context.js +3 -0
- package/lib/cjs/types/index.js +22 -0
- package/lib/cjs/utils/errors.js +196 -0
- package/lib/cjs/utils/locale.js +56 -0
- package/lib/cjs/utils/logger.js +32 -0
- package/lib/cjs/utils/object.js +44 -0
- package/lib/cjs/utils/session.js +17 -0
- package/lib/cjs/utils/string.js +57 -0
- package/lib/cjs/utils/url.js +70 -0
- package/lib/cjs/utils/user.js +83 -0
- package/lib/cjs/utils/validator.js +771 -0
- package/lib/cjs/utils/webPushMessaging.js +110 -0
- package/lib/cjs/utils/websocket.js +307 -0
- package/lib/esm/api-services/src/client/index.d.ts +115 -0
- package/lib/esm/api-services/src/client/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/constants/Endpoints.d.ts +10 -0
- package/lib/esm/api-services/src/constants/Endpoints.d.ts.map +1 -0
- package/lib/esm/api-services/src/index.d.ts +24 -0
- package/lib/esm/api-services/src/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/category/index.d.ts +13 -0
- package/lib/esm/api-services/src/services/category/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/feature/index.d.ts +10 -0
- package/lib/esm/api-services/src/services/feature/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/preference/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/preference/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/services/user/index.d.ts +16 -0
- package/lib/esm/api-services/src/services/user/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/utils/http.d.ts +6 -0
- package/lib/esm/api-services/src/utils/http.d.ts.map +1 -0
- package/lib/esm/api-services/src/utils/token.d.ts +16 -0
- package/lib/esm/api-services/src/utils/token.d.ts.map +1 -0
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +67 -0
- package/lib/esm/components/provider/SCContextProvider/index.js +117 -0
- package/lib/esm/components/provider/SCLocaleProvider/index.js +158 -0
- package/lib/esm/components/provider/SCNotificationProvider/index.js +73 -0
- package/lib/esm/components/provider/SCPreferencesProvider/index.js +93 -0
- package/lib/esm/components/provider/SCRoutingProvider/index.js +146 -0
- package/lib/esm/components/provider/SCThemeProvider/index.js +123 -0
- package/lib/esm/components/provider/SCUserProvider/index.js +310 -0
- package/lib/esm/components/router/index.js +91 -0
- package/lib/esm/constants/Actions.js +6 -0
- package/lib/esm/constants/ContextProviders.js +29 -0
- package/lib/esm/constants/Device.js +11 -0
- package/lib/esm/constants/Errors.js +10 -0
- package/lib/esm/constants/Features.js +84 -0
- package/lib/esm/constants/Locale.js +19 -0
- package/lib/esm/constants/Notification.js +67 -0
- package/lib/esm/constants/Notifications.js +27 -0
- package/lib/esm/constants/Preferences.js +344 -0
- package/lib/esm/constants/Routes.js +68 -0
- package/lib/esm/constants/Session.js +22 -0
- package/lib/esm/constants/Theme.js +6 -0
- package/lib/esm/constants/WebSocket.js +10 -0
- package/lib/esm/hooks/useSCAuth.js +340 -0
- package/lib/esm/hooks/useSCCachingManager.js +58 -0
- package/lib/esm/hooks/useSCConnectionsManager.js +285 -0
- package/lib/esm/hooks/useSCFetchCategories.js +71 -0
- package/lib/esm/hooks/useSCFetchCategory.js +68 -0
- package/lib/esm/hooks/useSCFetchCommentObject.js +68 -0
- package/lib/esm/hooks/useSCFetchCommentObjects.js +296 -0
- package/lib/esm/hooks/useSCFetchCustomAdv.js +84 -0
- package/lib/esm/hooks/useSCFetchFeedObject.js +79 -0
- package/lib/esm/hooks/useSCFetchIncubator.js +68 -0
- package/lib/esm/hooks/useSCFetchTag.js +68 -0
- package/lib/esm/hooks/useSCFetchUser.js +68 -0
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js +162 -0
- package/lib/esm/hooks/useSCFollowersManager.js +232 -0
- package/lib/esm/hooks/useSCMediaClick.js +27 -0
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +165 -0
- package/lib/esm/hooks/useSCWebPushMessaging.js +286 -0
- package/lib/esm/hooks/useSCWebSocket.js +120 -0
- package/lib/esm/index.js +169 -0
- package/lib/esm/react-core/src/components/provider/SCAlertMessagesProvider/index.d.ts +37 -0
- package/lib/esm/react-core/src/components/provider/SCAlertMessagesProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCContextProvider/index.d.ts +35 -0
- package/lib/esm/react-core/src/components/provider/SCContextProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCLocaleProvider/index.d.ts +42 -0
- package/lib/esm/react-core/src/components/provider/SCLocaleProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCNotificationProvider/index.d.ts +37 -0
- package/lib/esm/react-core/src/components/provider/SCNotificationProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCPreferencesProvider/index.d.ts +38 -0
- package/lib/esm/react-core/src/components/provider/SCPreferencesProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCRoutingProvider/index.d.ts +39 -0
- package/lib/esm/react-core/src/components/provider/SCRoutingProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCThemeProvider/index.d.ts +49 -0
- package/lib/esm/react-core/src/components/provider/SCThemeProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/provider/SCUserProvider/index.d.ts +38 -0
- package/lib/esm/react-core/src/components/provider/SCUserProvider/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/components/router/index.d.ts +34 -0
- package/lib/esm/react-core/src/components/router/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Actions.d.ts +2 -0
- package/lib/esm/react-core/src/constants/Actions.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/ContextProviders.d.ts +6 -0
- package/lib/esm/react-core/src/constants/ContextProviders.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Device.d.ts +6 -0
- package/lib/esm/react-core/src/constants/Device.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Errors.d.ts +5 -0
- package/lib/esm/react-core/src/constants/Errors.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Features.d.ts +41 -0
- package/lib/esm/react-core/src/constants/Features.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Locale.d.ts +8 -0
- package/lib/esm/react-core/src/constants/Locale.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Notification.d.ts +55 -0
- package/lib/esm/react-core/src/constants/Notification.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Notifications.d.ts +11 -0
- package/lib/esm/react-core/src/constants/Notifications.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Routes.d.ts +29 -0
- package/lib/esm/react-core/src/constants/Routes.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Session.d.ts +10 -0
- package/lib/esm/react-core/src/constants/Session.d.ts.map +1 -0
- package/lib/esm/react-core/src/constants/Theme.d.ts +2 -0
- package/lib/esm/react-core/src/constants/Theme.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCAuth.d.ts +56 -0
- package/lib/esm/react-core/src/hooks/useSCAuth.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCCachingManager.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCCachingManager.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCConnectionsManager.d.ts +40 -0
- package/lib/esm/react-core/src/hooks/useSCConnectionsManager.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCategories.d.ts +17 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCategories.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCategory.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCategory.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCommentObject.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCommentObject.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts +54 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCustomAdv.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchCustomAdv.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchFeedObject.d.ts +21 -0
- package/lib/esm/react-core/src/hooks/useSCFetchFeedObject.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchIncubator.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchIncubator.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchTag.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchTag.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFetchUser.d.ts +19 -0
- package/lib/esm/react-core/src/hooks/useSCFetchUser.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts +37 -0
- package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCFollowersManager.d.ts +37 -0
- package/lib/esm/react-core/src/hooks/useSCFollowersManager.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCMediaClick.d.ts +4 -0
- package/lib/esm/react-core/src/hooks/useSCMediaClick.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCSubscribedIncubatorsManager.d.ts +27 -0
- package/lib/esm/react-core/src/hooks/useSCSubscribedIncubatorsManager.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCWebPushMessaging.d.ts +9 -0
- package/lib/esm/react-core/src/hooks/useSCWebPushMessaging.d.ts.map +1 -0
- package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts +12 -0
- package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts.map +1 -0
- package/lib/esm/react-core/src/index.d.ts +77 -0
- package/lib/esm/react-core/src/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/types/context.d.ts +428 -0
- package/lib/esm/react-core/src/types/context.d.ts.map +1 -0
- package/lib/esm/react-core/src/types/index.d.ts +3 -0
- package/lib/esm/react-core/src/types/index.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/errors.d.ts +98 -0
- package/lib/esm/react-core/src/utils/errors.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/locale.d.ts +10 -0
- package/lib/esm/react-core/src/utils/locale.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/logger.d.ts +11 -0
- package/lib/esm/react-core/src/utils/logger.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/object.d.ts +13 -0
- package/lib/esm/react-core/src/utils/object.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/session.d.ts +6 -0
- package/lib/esm/react-core/src/utils/session.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/string.d.ts +21 -0
- package/lib/esm/react-core/src/utils/string.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/url.d.ts +22 -0
- package/lib/esm/react-core/src/utils/url.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/user.d.ts +41 -0
- package/lib/esm/react-core/src/utils/user.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/validator.d.ts +239 -0
- package/lib/esm/react-core/src/utils/validator.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/webPushMessaging.d.ts +14 -0
- package/lib/esm/react-core/src/utils/webPushMessaging.d.ts.map +1 -0
- package/lib/esm/react-core/src/utils/websocket.d.ts +177 -0
- package/lib/esm/react-core/src/utils/websocket.d.ts.map +1 -0
- package/lib/esm/react-i18n/src/index.d.ts +815 -0
- package/lib/esm/react-i18n/src/index.d.ts.map +1 -0
- package/lib/esm/scss/styles.scss +1 -0
- package/lib/esm/themes/theme.js +165 -0
- package/lib/esm/types/context.js +3 -0
- package/lib/esm/types/index.js +22 -0
- package/lib/esm/types/src/index.d.ts +9 -0
- package/lib/esm/types/src/index.d.ts.map +1 -0
- package/lib/esm/types/src/types/auth.d.ts +26 -0
- package/lib/esm/types/src/types/auth.d.ts.map +1 -0
- package/lib/esm/types/src/types/broadcastMessage.d.ts +73 -0
- package/lib/esm/types/src/types/broadcastMessage.d.ts.map +1 -0
- package/lib/esm/types/src/types/category.d.ts +100 -0
- package/lib/esm/types/src/types/category.d.ts.map +1 -0
- package/lib/esm/types/src/types/comment.d.ts +97 -0
- package/lib/esm/types/src/types/comment.d.ts.map +1 -0
- package/lib/esm/types/src/types/customAdv.d.ts +53 -0
- package/lib/esm/types/src/types/customAdv.d.ts.map +1 -0
- package/lib/esm/types/src/types/customNotification.d.ts +28 -0
- package/lib/esm/types/src/types/customNotification.d.ts.map +1 -0
- package/lib/esm/types/src/types/embed.d.ts +33 -0
- package/lib/esm/types/src/types/embed.d.ts.map +1 -0
- package/lib/esm/types/src/types/feed.d.ts +208 -0
- package/lib/esm/types/src/types/feed.d.ts.map +1 -0
- package/lib/esm/types/src/types/incubator.d.ts +53 -0
- package/lib/esm/types/src/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/src/types/index.d.ts +22 -0
- package/lib/esm/types/src/types/index.d.ts.map +1 -0
- package/lib/esm/types/src/types/location.d.ts +61 -0
- package/lib/esm/types/src/types/location.d.ts.map +1 -0
- package/lib/esm/types/src/types/media.d.ts +52 -0
- package/lib/esm/types/src/types/media.d.ts.map +1 -0
- package/lib/esm/types/src/types/notification.d.ts +416 -0
- package/lib/esm/types/src/types/notification.d.ts.map +1 -0
- package/lib/esm/types/src/types/poll.d.ts +77 -0
- package/lib/esm/types/src/types/poll.d.ts.map +1 -0
- package/lib/esm/types/src/types/privateMessage.d.ts +109 -0
- package/lib/esm/types/src/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/src/types/prize.d.ts +48 -0
- package/lib/esm/types/src/types/prize.d.ts.map +1 -0
- package/lib/esm/types/src/types/tag.d.ts +47 -0
- package/lib/esm/types/src/types/tag.d.ts.map +1 -0
- package/lib/esm/types/src/types/user.d.ts +227 -0
- package/lib/esm/types/src/types/user.d.ts.map +1 -0
- package/lib/esm/utils/errors.js +196 -0
- package/lib/esm/utils/locale.js +56 -0
- package/lib/esm/utils/logger.js +32 -0
- package/lib/esm/utils/object.js +44 -0
- package/lib/esm/utils/session.js +17 -0
- package/lib/esm/utils/src/index.d.ts +7 -0
- package/lib/esm/utils/src/index.d.ts.map +1 -0
- package/lib/esm/utils/src/utils/string.d.ts +21 -0
- package/lib/esm/utils/src/utils/string.d.ts.map +1 -0
- package/lib/esm/utils/src/utils/url.d.ts +22 -0
- package/lib/esm/utils/src/utils/url.d.ts.map +1 -0
- package/lib/esm/utils/string.js +57 -0
- package/lib/esm/utils/url.js +70 -0
- package/lib/esm/utils/user.js +83 -0
- package/lib/esm/utils/validator.js +771 -0
- package/lib/esm/utils/webPushMessaging.js +110 -0
- package/lib/esm/utils/websocket.js +307 -0
- package/lib/umd/react-core.js +2 -0
- package/lib/umd/react-core.js.LICENSE.txt +1 -0
- package/package.json +128 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../react-i18n/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _styles = require("@mui/material/styles");
|
|
7
|
+
|
|
8
|
+
var _object = require("../utils/object");
|
|
9
|
+
|
|
10
|
+
var _validateColor = _interopRequireDefault(require("validate-color"));
|
|
11
|
+
|
|
12
|
+
var _Preferences = require("../constants/Preferences");
|
|
13
|
+
|
|
14
|
+
var _string = require("../utils/string");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* check if colorProp is a valid color
|
|
20
|
+
* @param preferences
|
|
21
|
+
* @param colorProp
|
|
22
|
+
* @param tFunc: type func validator
|
|
23
|
+
* @return {boolean|(function(*=): boolean)}
|
|
24
|
+
*/
|
|
25
|
+
const isValidPreference = (preferences, prop, tFunc) => {
|
|
26
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
27
|
+
if (preferences.hasOwnProperty(prop) && preferences[prop].hasOwnProperty('value')) {
|
|
28
|
+
return tFunc(preferences[prop].value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return false;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Overrides theme properties
|
|
35
|
+
* @param options: store.settings.theme
|
|
36
|
+
* @param preferences: community global preferences
|
|
37
|
+
* @return {Theme}
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
const getTheme = (options, preferences) => {
|
|
42
|
+
const defaultOptions = preferences ? {
|
|
43
|
+
palette: Object.assign({}, isValidPreference(preferences, _Preferences.COLORS_COLORBACK, _validateColor.default) && {
|
|
44
|
+
background: {
|
|
45
|
+
default: preferences[_Preferences.COLORS_COLORBACK].value
|
|
46
|
+
}
|
|
47
|
+
}, isValidPreference(preferences, _Preferences.COLORS_COLORFONT, _validateColor.default) && {
|
|
48
|
+
text: {
|
|
49
|
+
primary: preferences[_Preferences.COLORS_COLORFONT].value
|
|
50
|
+
}
|
|
51
|
+
}, isValidPreference(preferences, _Preferences.COLORS_COLORPRIMARY, _validateColor.default) && {
|
|
52
|
+
primary: {
|
|
53
|
+
main: preferences[_Preferences.COLORS_COLORPRIMARY].value
|
|
54
|
+
}
|
|
55
|
+
}, isValidPreference(preferences, _Preferences.COLORS_COLORSECONDARY, _validateColor.default) && {
|
|
56
|
+
secondary: {
|
|
57
|
+
main: preferences[_Preferences.COLORS_COLORSECONDARY].value
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
typography: Object.assign({}, isValidPreference(preferences, _Preferences.FONT_FAMILY, _string.isString) && {
|
|
61
|
+
fontFamily: preferences[_Preferences.FONT_FAMILY].value
|
|
62
|
+
}, {
|
|
63
|
+
body1: {
|
|
64
|
+
fontSize: '0.9rem'
|
|
65
|
+
},
|
|
66
|
+
body2: {
|
|
67
|
+
fontSize: '0.8rem'
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
components: {
|
|
71
|
+
MuiPaper: {// styleOverrides: {
|
|
72
|
+
// rounded: {
|
|
73
|
+
// borderRadius: 3,
|
|
74
|
+
// },
|
|
75
|
+
// },
|
|
76
|
+
},
|
|
77
|
+
SCWidget: {// variants: [
|
|
78
|
+
// {
|
|
79
|
+
// props: {elevation: 0},
|
|
80
|
+
// style: {
|
|
81
|
+
// border: 0,
|
|
82
|
+
// boxShadow: 'none',
|
|
83
|
+
// marginBottom: '0 !important',
|
|
84
|
+
// },
|
|
85
|
+
// },
|
|
86
|
+
// {
|
|
87
|
+
// props: {variant: 'outlined'},
|
|
88
|
+
// style: {
|
|
89
|
+
// border: '1px solid rgba(0, 0, 0, 0.12)',
|
|
90
|
+
// boxShadow: 'none',
|
|
91
|
+
// },
|
|
92
|
+
// },
|
|
93
|
+
// ],
|
|
94
|
+
// styleOverrides: {
|
|
95
|
+
// root: {
|
|
96
|
+
// border: '0 none',
|
|
97
|
+
// boxShadow: '0px 5px 20px rgba(0, 0, 0, 0.1)',
|
|
98
|
+
// borderRadius: '15px',
|
|
99
|
+
// },
|
|
100
|
+
// },
|
|
101
|
+
},
|
|
102
|
+
MuiDivider: {
|
|
103
|
+
styleOverrides: {
|
|
104
|
+
root: {
|
|
105
|
+
borderWidth: '1px'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
SCFeedObject: {
|
|
110
|
+
styleOverrides: {
|
|
111
|
+
root: {}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
SCTrendingFeed: {
|
|
115
|
+
styleOverrides: {
|
|
116
|
+
root: {
|
|
117
|
+
'& .MuiIcon-root': {
|
|
118
|
+
marginBottom: '0.5px'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
SCNotificationItem: {// styleOverrides: {
|
|
124
|
+
// root: {
|
|
125
|
+
// '&.SCNotificationItem-new-snippet': {
|
|
126
|
+
// '&::before': {
|
|
127
|
+
// backgroundColor: 'yellow',
|
|
128
|
+
// },
|
|
129
|
+
// },
|
|
130
|
+
// },
|
|
131
|
+
// },
|
|
132
|
+
},
|
|
133
|
+
SCSnippetNotifications: {
|
|
134
|
+
styleOverrides: {
|
|
135
|
+
root: {
|
|
136
|
+
'& .SCSnippetNotifications-notifications-list': {// wrap notifications list (ul)
|
|
137
|
+
},
|
|
138
|
+
'& .SCSnippetNotifications-notification-item': {// single notification item (li)
|
|
139
|
+
},
|
|
140
|
+
['& .SCUserFollowNotification-username, .SCUserFollowNotification-username, .SCCommentNotification-username,' + 'SCContributionFollowNotification-username, .SCContributionFollowNotification-username, .SCUserNotificationMention-username,' + '.SCUserNotificationMention-username, .SCUserNotificationPrivateMessage-message-sender, .SCVoteUpNotification-username']: {// username for notification types: user follow, comment/nested comment,
|
|
141
|
+
// follow contribution, mention, private message, vote up
|
|
142
|
+
},
|
|
143
|
+
['& .SCUserFollowNotification-list-item-snippet-new, .SCVoteUpNotification-list-item-snippet-new, ' + '.SCUserBlockedNotification-list-item-snippet-new, .SCUndeletedForNotification-list-item-snippet-new, ' + '.SCUserNotificationPrivateMessage-list-item-snippet-new, .SCUserNotificationMention-list-item-snippet-new,' + '.SCKindlyNoticeForNotification-list-item-snippet-new, .SCKindlyNoticeFlagNotification-list-item-snippet-new,' + '.SCIncubatorApprovedNotification-list-item-snippet-new, .SCDeletedForNotification-list-item-snippet-new,' + '.SCContributionFollowNotification-list-item-snippet-new, .SCCommentNotification-list-item-snippet-new,' + '.SCCollapsedForNotification-list-item-snippet-new']: {// border left indicate new notification of various type
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
SCPlatform: {
|
|
149
|
+
styleOverrides: {
|
|
150
|
+
root: {
|
|
151
|
+
'& .MuiIcon-root': {
|
|
152
|
+
fontSize: '18px',
|
|
153
|
+
marginLeft: '2px',
|
|
154
|
+
marginBottom: '-3px'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
} : {};
|
|
161
|
+
return (0, _styles.createTheme)((0, _object.mergeDeep)(defaultOptions, options));
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
var _default = getTheme;
|
|
165
|
+
exports.default = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
|
|
5
|
+
var _context = require("./context");
|
|
6
|
+
|
|
7
|
+
exports.SCUserContextType = _context.SCUserContextType;
|
|
8
|
+
exports.SCFollowedManagerType = _context.SCFollowedManagerType;
|
|
9
|
+
exports.SCFollowedCategoriesManagerType = _context.SCFollowedCategoriesManagerType;
|
|
10
|
+
exports.SCSubscribedIncubatorsManagerType = _context.SCSubscribedIncubatorsManagerType;
|
|
11
|
+
exports.SCConnectionsManagerType = _context.SCConnectionsManagerType;
|
|
12
|
+
exports.SCContextProviderType = _context.SCContextProviderType;
|
|
13
|
+
exports.SCContextType = _context.SCContextType;
|
|
14
|
+
exports.SCSettingsType = _context.SCSettingsType;
|
|
15
|
+
exports.SCSessionType = _context.SCSessionType;
|
|
16
|
+
exports.SCPreferencesContextType = _context.SCPreferencesContextType;
|
|
17
|
+
exports.SCNotificationContextType = _context.SCNotificationContextType;
|
|
18
|
+
exports.SCLocaleType = _context.SCLocaleType;
|
|
19
|
+
exports.SCThemeContextType = _context.SCThemeContextType;
|
|
20
|
+
exports.SCRoutingContextType = _context.SCRoutingContextType;
|
|
21
|
+
exports.SCLocaleContextType = _context.SCLocaleContextType;
|
|
22
|
+
exports.SCAlertMessagesContextType = _context.SCAlertMessagesContextType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types
|
|
3
|
+
*/
|
|
4
|
+
import { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCAuthTokenType, SCCustomAdvPosition, SCCustomAdvType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCIncubatorType, SCNotificationIncubatorType, SCNotificationTopicType, SCPrizeType } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* List all exports
|
|
7
|
+
*/
|
|
8
|
+
export { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCCustomAdvPosition, SCCustomAdvType, SCAuthTokenType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCNotificationTopicType, SCIncubatorType, SCNotificationIncubatorType, SCPrizeType };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../types/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,yBAAyB,EACzB,SAAS,EACT,cAAc,EACd,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,2BAA2B,EAC3B,uBAAuB,EACvB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,yBAAyB,EACzB,SAAS,EACT,cAAc,EACd,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,WAAW,EACZ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCAuthTokenType
|
|
3
|
+
*/
|
|
4
|
+
export interface SCAuthTokenType {
|
|
5
|
+
/**
|
|
6
|
+
* Access token.
|
|
7
|
+
*/
|
|
8
|
+
accessToken: string;
|
|
9
|
+
/**
|
|
10
|
+
* Refresh token.
|
|
11
|
+
*/
|
|
12
|
+
refreshToken?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Token Type.
|
|
15
|
+
*/
|
|
16
|
+
tokenType?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Expire in.
|
|
19
|
+
*/
|
|
20
|
+
expiresIn?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Token scopes;
|
|
23
|
+
*/
|
|
24
|
+
scope?: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/auth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define the various types of banners
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SCBroadcastMessageBannerType {
|
|
5
|
+
HTML = "html_banner",
|
|
6
|
+
NOTIFICATION = "notification_banner"
|
|
7
|
+
}
|
|
8
|
+
export interface SCBannerType {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the banner, based on it the behaviour of the render component must be different
|
|
11
|
+
*/
|
|
12
|
+
type_banner: SCBroadcastMessageBannerType;
|
|
13
|
+
/**
|
|
14
|
+
* The html to insert into the DOM
|
|
15
|
+
* This field is used when type_banner is html_banner
|
|
16
|
+
*/
|
|
17
|
+
html?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The title of the banner
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The text of the banner
|
|
24
|
+
*/
|
|
25
|
+
body_text?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The text of the link associated to the banner
|
|
28
|
+
*/
|
|
29
|
+
link_text?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The action link of the banner
|
|
32
|
+
*/
|
|
33
|
+
link?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The image url to insert into the banner
|
|
36
|
+
*/
|
|
37
|
+
image?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The date the Banner was created
|
|
40
|
+
*/
|
|
41
|
+
added_at: Date;
|
|
42
|
+
/**
|
|
43
|
+
* If true tell to open the banner in new tab
|
|
44
|
+
*/
|
|
45
|
+
open_in_new_tab: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Interface SCBroadcastMessageType.
|
|
49
|
+
* Broadcast Message object
|
|
50
|
+
*/
|
|
51
|
+
export interface SCBroadcastMessageType {
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the category.
|
|
54
|
+
*/
|
|
55
|
+
id: number;
|
|
56
|
+
/**
|
|
57
|
+
* The Banner associated to the Broadcast messages
|
|
58
|
+
*/
|
|
59
|
+
banner: SCBannerType;
|
|
60
|
+
/**
|
|
61
|
+
* The date the BroadcastMessage was added
|
|
62
|
+
*/
|
|
63
|
+
added_at: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The date the BroadcastMessage was disposed
|
|
66
|
+
*/
|
|
67
|
+
disposed_at: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
* The date the BroadcastMessage was viewed the first time
|
|
70
|
+
*/
|
|
71
|
+
viewed_at: Date | null;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=broadcastMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcastMessage.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/broadcastMessage.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,4BAA4B;IACtC,IAAI,gBAAgB;IACpB,YAAY,wBAAwB;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC;IAE1C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { SCTagType } from './tag';
|
|
2
|
+
/**
|
|
3
|
+
* Interface SCCategoryType.
|
|
4
|
+
* Category Schema.
|
|
5
|
+
*/
|
|
6
|
+
export interface SCCategoryType {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the category.
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* The manual ordering number of the category.
|
|
13
|
+
*/
|
|
14
|
+
order?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the category.
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* The synonyms/aliases of the category.
|
|
21
|
+
*/
|
|
22
|
+
name_synonyms?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The slug of the category.
|
|
25
|
+
*/
|
|
26
|
+
slug?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The slogan of the category.
|
|
29
|
+
*/
|
|
30
|
+
slogan?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The category's html text.
|
|
33
|
+
*/
|
|
34
|
+
html_info?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The category's html meta tag.
|
|
37
|
+
*/
|
|
38
|
+
seo_title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The description for category's html meta tag.
|
|
41
|
+
*/
|
|
42
|
+
seo_description?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The category's auto follow behaviour.
|
|
45
|
+
*/
|
|
46
|
+
auto_follow?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The category status.
|
|
49
|
+
*/
|
|
50
|
+
active?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The category status.
|
|
53
|
+
*/
|
|
54
|
+
deleted?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The category's image with min size.
|
|
57
|
+
*/
|
|
58
|
+
image_original?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The category's auto generated bigger size.
|
|
61
|
+
*/
|
|
62
|
+
image_bigger?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The category's auto generated big size.
|
|
65
|
+
*/
|
|
66
|
+
image_big?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The category's auto generated medium size.
|
|
69
|
+
*/
|
|
70
|
+
image_medium?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The category's auto generated small size.
|
|
73
|
+
*/
|
|
74
|
+
image_small?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The landscape format image for category hub.
|
|
77
|
+
*/
|
|
78
|
+
emotional_image_original?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The css background-position.
|
|
81
|
+
*/
|
|
82
|
+
emotional_image_position?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The last modify (datetime)
|
|
85
|
+
*/
|
|
86
|
+
lastmod_datetime?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The order of the category feed.
|
|
89
|
+
*/
|
|
90
|
+
stream_order_by?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The category's tags.
|
|
93
|
+
*/
|
|
94
|
+
tags?: Array<SCTagType>;
|
|
95
|
+
/**
|
|
96
|
+
* Followers counter for the category.
|
|
97
|
+
*/
|
|
98
|
+
followers_counter?: number;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { SCUserType } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* Typology Comment
|
|
4
|
+
*/
|
|
5
|
+
export declare const SCCommentTypologyType = "comment";
|
|
6
|
+
/**
|
|
7
|
+
* Interface SCCommentType.
|
|
8
|
+
* Comment Schema.
|
|
9
|
+
*/
|
|
10
|
+
export interface SCCommentType {
|
|
11
|
+
/**
|
|
12
|
+
* Id of the comment
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Id of the Discussion object
|
|
17
|
+
*/
|
|
18
|
+
discussion?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Id of the Post object
|
|
21
|
+
*/
|
|
22
|
+
post?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Id of the Status object
|
|
25
|
+
*/
|
|
26
|
+
status?: number;
|
|
27
|
+
/**
|
|
28
|
+
* User who commented
|
|
29
|
+
*/
|
|
30
|
+
author?: SCUserType;
|
|
31
|
+
/**
|
|
32
|
+
* Added at
|
|
33
|
+
*/
|
|
34
|
+
added_at: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Html of the comment
|
|
37
|
+
*/
|
|
38
|
+
html: string;
|
|
39
|
+
/**
|
|
40
|
+
* Summary
|
|
41
|
+
*/
|
|
42
|
+
summary: string;
|
|
43
|
+
/**
|
|
44
|
+
* If the comments is deleted
|
|
45
|
+
*/
|
|
46
|
+
deleted: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If the comments is hidden
|
|
49
|
+
*/
|
|
50
|
+
collapsed: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Id of the parent
|
|
53
|
+
*/
|
|
54
|
+
parent: number;
|
|
55
|
+
/**
|
|
56
|
+
* Id of the reply Comment, it must have the same parent
|
|
57
|
+
*/
|
|
58
|
+
in_reply_to?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Number of votes
|
|
61
|
+
*/
|
|
62
|
+
vote_count: number;
|
|
63
|
+
/**
|
|
64
|
+
* True if the logged user has already voted the comment
|
|
65
|
+
*/
|
|
66
|
+
voted: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Number of flags
|
|
69
|
+
*/
|
|
70
|
+
flag_count: number;
|
|
71
|
+
/**
|
|
72
|
+
* Number of comments
|
|
73
|
+
*/
|
|
74
|
+
comment_count: number;
|
|
75
|
+
/**
|
|
76
|
+
* Text of the comment
|
|
77
|
+
*/
|
|
78
|
+
text: string;
|
|
79
|
+
/**
|
|
80
|
+
* Comments childs
|
|
81
|
+
*/
|
|
82
|
+
latest_comments?: SCCommentType[];
|
|
83
|
+
/**
|
|
84
|
+
* Type: comment
|
|
85
|
+
*/
|
|
86
|
+
type: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Type of comments ordering
|
|
90
|
+
*/
|
|
91
|
+
export declare enum SCCommentsOrderBy {
|
|
92
|
+
ADDED_AT_DESC = "-added_at",
|
|
93
|
+
ADDED_AT_ASC = "added_at",
|
|
94
|
+
CONNECTION_DESC = "-connection",
|
|
95
|
+
CONNECTION_ASC = "connection"
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAElC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,aAAa,cAAc;IAC3B,YAAY,aAAa;IACzB,eAAe,gBAAgB;IAC/B,cAAc,eAAe;CAC9B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare enum SCCustomAdvPosition {
|
|
2
|
+
POSITION_BELOW_TOPBAR = "BELOW_TOPBAR",
|
|
3
|
+
POSITION_BELOW_FEED_OBJECT = "BELOW_THE_POST",
|
|
4
|
+
POSITION_ABOVE_FOOTER_BAR = "ABOVE_FOOTER_BAR",
|
|
5
|
+
POSITION_FOOTER_STICKY = "FOOTER_STICKY",
|
|
6
|
+
POSITION_IN_COMMENTS = "IN_POST_COMMENTS",
|
|
7
|
+
POSITION_RELATED_POSTS_COLUMN = "RELATED_POSTS_COLUMN",
|
|
8
|
+
POSITION_FEED_SIDEBAR = "TOOLS_COLUMN",
|
|
9
|
+
POSITION_FEED = "IN_STREAM"
|
|
10
|
+
}
|
|
11
|
+
export interface SCCustomAdvType {
|
|
12
|
+
/**
|
|
13
|
+
* Unique integer value identifying this adv
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* A string code representing the display position of the adv
|
|
18
|
+
*/
|
|
19
|
+
position: SCCustomAdvPosition;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the adv
|
|
22
|
+
*/
|
|
23
|
+
title: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The link/url of the adv
|
|
26
|
+
*/
|
|
27
|
+
link: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* An image banner for the adv
|
|
30
|
+
*/
|
|
31
|
+
image: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Html/js embeddable code
|
|
34
|
+
*/
|
|
35
|
+
embed_code: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* A flag to activate or deactivate this adv
|
|
38
|
+
*/
|
|
39
|
+
active: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* datetime of creation
|
|
42
|
+
*/
|
|
43
|
+
created_at: string;
|
|
44
|
+
/**
|
|
45
|
+
* last modify datetime
|
|
46
|
+
*/
|
|
47
|
+
lastmod_datetime: string;
|
|
48
|
+
/**
|
|
49
|
+
* The id of the category connected to this adv
|
|
50
|
+
*/
|
|
51
|
+
category: number | null;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=customAdv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customAdv.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/customAdv.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,qBAAqB,iBAAiB;IACtC,0BAA0B,mBAAmB;IAC7C,yBAAyB,qBAAqB;IAC9C,sBAAsB,kBAAkB;IACxC,oBAAoB,qBAAqB;IACzC,6BAA6B,yBAAyB;IACtD,qBAAqB,iBAAiB;IACtC,aAAa,cAAc;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SCEmbedType } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* Interface SCCustomNotificationType.
|
|
4
|
+
* Custom Notification Schema.
|
|
5
|
+
*/
|
|
6
|
+
export interface SCCustomNotificationType {
|
|
7
|
+
/**
|
|
8
|
+
* Id of the custom notification
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Custom type notification
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* Embed object if exist
|
|
17
|
+
*/
|
|
18
|
+
embed?: SCEmbedType;
|
|
19
|
+
/**
|
|
20
|
+
* Notification title
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Notification description
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=customNotification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customNotification.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/customNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCEmbedType.
|
|
3
|
+
* Embed Schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface SCEmbedType {
|
|
6
|
+
/**
|
|
7
|
+
* Id of the embed
|
|
8
|
+
*/
|
|
9
|
+
id: number;
|
|
10
|
+
/**
|
|
11
|
+
* Type of the embed, can be any string except
|
|
12
|
+
* sc_vimeo, sc_link or sc_shared_object that are used
|
|
13
|
+
* for embedded objects automatically created by the community
|
|
14
|
+
*/
|
|
15
|
+
embed_type: string;
|
|
16
|
+
/**
|
|
17
|
+
* External id for the embed object
|
|
18
|
+
*/
|
|
19
|
+
embed_id: number;
|
|
20
|
+
/**
|
|
21
|
+
* Url for the resource, if any
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Metadata associated to this embed. It mus be a valid json object.
|
|
26
|
+
* For embed_type sc_vimeo or sc_link it contains metadata associated
|
|
27
|
+
* with the external resource. For embed_type sc_shared_object it contains a field
|
|
28
|
+
* type that is the type of the object (Discussion or Post) and a field id
|
|
29
|
+
* that contains the id of the object shared
|
|
30
|
+
*/
|
|
31
|
+
metadata: Record<string, any>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=embed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/embed.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B"}
|