UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

39 lines (38 loc) 2.23 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { KnownFieldTypes } from '@progress/sitefinity-widget-designers-sdk/common'; import { Description } from '@progress/sitefinity-widget-designers-sdk/decorators/description'; import { DisplayName } from '@progress/sitefinity-widget-designers-sdk/decorators/display-name'; import { DataType } from '@progress/sitefinity-widget-designers-sdk/decorators/data-type'; import { Category } from '@progress/sitefinity-widget-designers-sdk/decorators/category'; import { WidgetEntity } from '@progress/sitefinity-widget-designers-sdk/decorators/widget-entity'; import { ContentContainer } from '@progress/sitefinity-widget-designers-sdk/decorators/content-container'; import { RegularExpression } from '@progress/sitefinity-widget-designers-sdk/decorators/validations'; let FormContentBlockEntity = class FormContentBlockEntity { Content = null; WrapperCssClass = null; TagName = 'div'; }; __decorate([ ContentContainer(), DataType(KnownFieldTypes.Html) ], FormContentBlockEntity.prototype, "Content", void 0); __decorate([ Category('Advanced'), DisplayName('CSS class'), DataType('string') ], FormContentBlockEntity.prototype, "WrapperCssClass", void 0); __decorate([ Category('Advanced'), DisplayName('Tag name'), Description('Up to twenty characters in the range a-z and A-Z are allowed'), RegularExpression('^[a-zA-Z]{1,20}$', 'Up to twenty characters in the range a-z and A-Z are allowed.') ], FormContentBlockEntity.prototype, "TagName", void 0); FormContentBlockEntity = __decorate([ WidgetEntity('SitefinityFormContentBlock', 'Content block') ], FormContentBlockEntity); export { FormContentBlockEntity };