@guestbell/react-page-plugins
Version:
Plugins we use in GuestBell for working with amazing react-page package
29 lines • 1.29 kB
JavaScript
import * as React from 'react';
import { lazyLoad } from '@react-page/editor';
import { VideoTypeEnum } from '../types/enum/VideoTypeEnum';
var PlayArrow = lazyLoad(function () {
return import('@mui/icons-material/PlayArrow');
});
export var defaultTranslations = {
pluginName: 'Video',
pluginDescription: 'Include videos',
embeddedLabel: 'YouTube/Vimeo url',
uploadedLabel: 'File url',
embeddedPlaceholder: 'https://www.youtube.com/watch?v=ER97mPHhgtM',
uploadedPlaceholder: 'http://techslides.com/demos/sample-videos/small.mp4',
uploadedDescription: 'Use this if you have a video file uploaded on your server',
embeddedDescription: 'Use this if you have a video uploaded to Vimeo or YouTube'
};
export var defaultSettings = {
Controls: function Controls() {
return /*#__PURE__*/React.createElement(React.Fragment, null, " Controls for this plugin were not provided");
},
Renderer: function Renderer() {
return /*#__PURE__*/React.createElement(React.Fragment, null, "Renderer; for this plugin was not provided ");
},
translations: defaultTranslations,
icon: /*#__PURE__*/React.createElement(PlayArrow, null),
enabledTypes: VideoTypeEnum.Embedded | VideoTypeEnum.Uploaded,
defaultType: VideoTypeEnum.Embedded
};
//# sourceMappingURL=settings.js.map