@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
34 lines (33 loc) • 1.26 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenderContext = exports.BuilderContext = void 0;
const react_1 = __importDefault(require("react"));
const BuilderContext = react_1.default.createContext({
uniquifyKey: (key) => key,
supportedLanguageCodes: ['nl', 'en'],
richTextColors: [],
theme: 'light',
getFormComponents: () => [],
getValidatorPlugins: async () => [],
getRegistrationAttributes: async () => [],
getServices: async () => [],
getReferenceListsTables: async () => [],
getReferenceListsTableItems: async () => [],
getPrefillPlugins: async () => [],
getPrefillAttributes: async () => [],
getFileTypes: async () => [],
serverUploadLimit: '(unknown)',
getDocumentTypes: async () => [],
getConfidentialityLevels: async () => [],
getAuthPlugins: async () => [],
getMapTileLayers: async () => [],
});
exports.BuilderContext = BuilderContext;
BuilderContext.displayName = 'BuilderContext';
const RenderContext = react_1.default.createContext({
bareInput: false,
});
exports.RenderContext = RenderContext;