openvibers/openvibe.shared index.js
index.js
| 1 | ; |
| 2 | |
| 3 | const { BRAND, BRAND_DEFAULTS, resolveBrandUrls, buildBrandFromRegistry } = require('./brand'); |
| 4 | const { OpenVibeAuthClient } = require('./auth-client'); |
| 5 | const { CSS_VARIABLES, DEFAULT_VARS, BUILTIN_THEMES, applyTheme, resolveBuiltinTheme, sanitizeCssValue, loadFromStorage, saveToStorage, syncThemeToServer } = require('./theme-sync'); |
| 6 | const { extractToken, requireOpenVibeAuth, optionalOpenVibeAuth } = require('./middleware'); |
| 7 | const { PRIORITY, CATEGORY, TYPES, SOUNDS, EMAIL_ELIGIBLE_CATEGORIES, createNotification, DEFAULT_NOTIFICATION_PREFS } = require('./notifications'); |
| 8 | const { AnalyticsTrackerPg, analyticsSchema, pruneRawEventsPg, classifyRequest, parseUserAgent, BOT_USER_AGENTS, SUSPICIOUS_PATTERNS } = require('./analytics'); |
| 9 | const { URL_DEFINITIONS, normalizeValue, validateValue, resolveRegistryValues, formatRegistryEntry } = require('./url-resolver'); |
| 10 | const seo = require('./seo'); |
| 11 | |
| 12 | module.exports = { |
| 13 | // Brand |
| 14 | BRAND, |
| 15 | BRAND_DEFAULTS, |
| 16 | buildBrandFromRegistry, |
| 17 | // Auth |
| 18 | OpenVibeAuthClient, |
| 19 | extractToken, |
| 20 | requireOpenVibeAuth, |
| 21 | optionalOpenVibeAuth, |
| 22 | // Themes |
| 23 | CSS_VARIABLES, |
| 24 | DEFAULT_VARS, |
| 25 | BUILTIN_THEMES, |
| 26 | applyTheme, |
| 27 | resolveBuiltinTheme, |
| 28 | sanitizeCssValue, |
| 29 | loadFromStorage, |
| 30 | saveToStorage, |
| 31 | syncThemeToServer, |
| 32 | // Notifications |
| 33 | PRIORITY, |
| 34 | CATEGORY, |
| 35 | NOTIFICATION_TYPES: TYPES, |
| 36 | SOUNDS, |
| 37 | EMAIL_ELIGIBLE_CATEGORIES, |
| 38 | createNotification, |
| 39 | DEFAULT_NOTIFICATION_PREFS, |
| 40 | // Analytics |
| 41 | AnalyticsTrackerPg, |
| 42 | analyticsSchema, |
| 43 | pruneRawEventsPg, |
| 44 | classifyRequest, |
| 45 | parseUserAgent, |
| 46 | BOT_USER_AGENTS, |
| 47 | SUSPICIOUS_PATTERNS, |
| 48 | // URL Registry Resolver |
| 49 | URL_DEFINITIONS, |
| 50 | normalizeValue, |
| 51 | validateValue, |
| 52 | resolveRegistryValues, |
| 53 | formatRegistryEntry, |
| 54 | resolveBrandUrls, |
| 55 | // SEO kit (also available from openvibe-shared/seo) |
| 56 | seo, |
| 57 | // Client-side modules (browser only — require() for bundlers, <script> tag for direct use) |
| 58 | // OpenVibeNotifications: require('./notification-ui'), |
| 59 | // OpenVibeUserCard: require('./user-card'), |
| 60 | // OpenVibeNavbar: require('./navbar'), |
| 61 | // OpenVibeAccountSwitcher: require('./account-switcher'), |
| 62 | }; |
| 63 |