UNPKG

@memberjunction/react-runtime

Version:

Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.

53 lines 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCoreRuntimeLibrary = exports.getCoreRuntimeLibraries = exports.CORE_RUNTIME_LIBRARIES = void 0; exports.CORE_RUNTIME_LIBRARIES = [ { id: 'react', name: 'react', displayName: 'React', category: 'runtime', globalVariable: 'React', version: '18.2.0', cdnUrl: 'https://unpkg.com/react@18.2.0/umd/react.production.min.js', description: 'React core library', isEnabled: true, isCore: true, isRuntimeOnly: true }, { id: 'react-dom', name: 'react-dom', displayName: 'ReactDOM', category: 'runtime', globalVariable: 'ReactDOM', version: '18.2.0', cdnUrl: 'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js', description: 'React DOM library', isEnabled: true, isCore: true, isRuntimeOnly: true }, { id: 'babel-standalone', name: '@babel/standalone', displayName: 'Babel Standalone', category: 'runtime', globalVariable: 'Babel', version: '7.24.4', cdnUrl: 'https://unpkg.com/@babel/standalone@7.24.4/babel.min.js', description: 'Babel compiler for JSX transformation', isEnabled: true, isCore: true, isRuntimeOnly: true } ]; function getCoreRuntimeLibraries() { return exports.CORE_RUNTIME_LIBRARIES; } exports.getCoreRuntimeLibraries = getCoreRuntimeLibraries; function isCoreRuntimeLibrary(libraryId) { return exports.CORE_RUNTIME_LIBRARIES.some(lib => lib.id === libraryId); } exports.isCoreRuntimeLibrary = isCoreRuntimeLibrary; //# sourceMappingURL=core-libraries.js.map