Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
title =>
new LinkWidget({
link: new Scrivito.Link({ title, url: 'https://scrivito.com', target: '_blank' }),
})
),
currency: '€',
smallPlanName: 'Basic Plan',
mediumPlanName: 'Team Plan',
largePlanName: 'Corporate Plan',
smallPlanPrice: '20',
mediumPlanPrice: '30',
largePlanPrice: '40',
smallPlanPeriod: '/mo',
mediumPlanPeriod: '/mo',
largePlanPeriod: '/mo',
smallPlanSpecs: [new PricingSpecWidget({ variable: '5', unit: 'projects' })],
mediumPlanSpecs: [new PricingSpecWidget({ variable: '15', unit: 'projects' })],
largePlanSpecs: [new PricingSpecWidget({ variable: 'unlimited', unit: 'projects' })],
smallPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
mediumPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
largePlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
},
});
initialContent: {
currency: '€',
smallPlanName: 'Basic Plan',
mediumPlanName: 'Team Plan',
largePlanName: 'Corporate Plan',
smallPlanPrice: '20',
mediumPlanPrice: '30',
largePlanPrice: '40',
smallPlanPeriod: '/mo',
mediumPlanPeriod: '/mo',
largePlanPeriod: '/mo',
smallPlanSpecs: [new PricingSpecWidget({ variable: '5', unit: 'projects' })],
mediumPlanSpecs: [new PricingSpecWidget({ variable: '15', unit: 'projects' })],
largePlanSpecs: [new PricingSpecWidget({ variable: 'unlimited', unit: 'projects' })],
smallPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
mediumPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
largePlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
},
});
properties: ['currency', 'smallPlanButton', 'mediumPlanButton', 'largePlanButton'],
initialContent: {
currency: '€',
smallPlanName: 'Basic Plan',
mediumPlanName: 'Team Plan',
largePlanName: 'Corporate Plan',
smallPlanPrice: '20',
mediumPlanPrice: '30',
largePlanPrice: '40',
smallPlanPeriod: '/mo',
mediumPlanPeriod: '/mo',
largePlanPeriod: '/mo',
smallPlanSpecs: [new PricingSpecWidget({ variable: '5', unit: 'projects' })],
mediumPlanSpecs: [new PricingSpecWidget({ variable: '15', unit: 'projects' })],
largePlanSpecs: [new PricingSpecWidget({ variable: 'unlimited', unit: 'projects' })],
smallPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
mediumPlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
largePlanButton: new Scrivito.Link({ title: 'Buy now', url: 'https://scrivito.com' }),
},
});