src/app/components/Embeds/Uploader/fixtures.ts
export const uploader = [
{
id: '2488a6c7',
type: 'aresUploader',
model: {
openingTime: '',
closingTime: '',
signinRequired: false,
campaignStatus: 'open',
blocks: [
{
id: '7bc611ad',
type: 'title',
model: {
blocks: [
{
id: 'ff83ac2d',
type: 'text',
model: {
blocks: [
{
id: '5a40fc62',
type: 'paragraph',
model: {
text: 'Get involved',
blocks: [
{
id: 'e29b1166',
type: 'fragment',
model: {
text: 'Get involved',
attributes: [],
},
position: [1, 1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1],
},
],
},
position: [1, 1, 1],
},
{
id: '84300d50',
type: 'text',
model: {
blocks: [
{
id: '32cae5cf',
type: 'paragraph',
model: {
text: 'UGC Core Features 1 - Custom Form',
blocks: [
{
id: '059ad032',
type: 'fragment',
model: {
text: 'UGC Core Features 1 - Custom Form',
attributes: [],
},
position: [1, 1, 2, 1, 1],
},
],
},
position: [1, 1, 2, 1],
},
],
},
position: [1, 1, 2],
},
{
id: 'd220c862',
type: 'link',
model: {
locator:
'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fsend%2Fu94753086',
blocks: [
{
id: 'f2c76b0a',
type: 'text',
model: {
blocks: [
{
id: '172eb0d5',
type: 'paragraph',
model: {
text: 'Send form',
blocks: [
{
id: '9e67d4d4',
type: 'urlLink',
model: {
text: 'Send form',
locator: 'https://www.bbc.com/send/u94753086',
blocks: [
{
id: 'b31d1113',
type: 'fragment',
model: {
text: 'Send form',
attributes: [],
},
position: [1, 1, 3, 1, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1],
},
],
},
position: [1, 1, 3, 1],
},
],
},
position: [1, 1, 3],
},
{
id: 'f21ce980',
type: 'aresSendCTA',
model: {
blocks: [
{
id: '075d32c5',
type: 'text',
model: {
blocks: [
{
id: 'd6deb3ba',
type: 'paragraph',
model: {
text: 'Send form',
blocks: [
{
id: 'b1cdac2a',
type: 'fragment',
model: {
text: 'Send form',
attributes: [],
},
position: [1, 1, 4, 1, 1, 1],
},
],
},
position: [1, 1, 4, 1, 1],
},
],
},
position: [1, 1, 4, 1],
},
],
},
position: [1, 1, 4],
},
],
},
position: [1, 1],
},
];
export const uploaderNonLatin = [
{
id: '2488a6c7',
type: 'aresUploader',
model: {
openingTime: '',
closingTime: '',
signinRequired: false,
campaignStatus: 'open',
blocks: [
{
id: '7bc611ad',
type: 'title',
model: {
blocks: [
{
id: 'ff83ac2d',
type: 'text',
model: {
blocks: [
{
id: '5a40fc62',
type: 'paragraph',
model: {
text: 'ပါဝင်လိုက်ပါ။',
blocks: [
{
id: 'e29b1166',
type: 'fragment',
model: {
text: 'ပါဝင်လိုက်ပါ။',
attributes: [],
},
position: [1, 1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1],
},
],
},
position: [1, 1, 1],
},
{
id: '84300d50',
type: 'text',
model: {
blocks: [
{
id: '32cae5cf',
type: 'paragraph',
model: {
text: 'အပ်လုဒ်လုပ်သူ အင်္ဂါရပ်များ 1 - စိတ်ကြိုက်ပုံစံ',
blocks: [
{
id: '059ad032',
type: 'fragment',
model: {
text: 'အပ်လုဒ်လုပ်သူ အင်္ဂါရပ်များ 1 - စိတ်ကြိုက်ပုံစံ',
attributes: [],
},
position: [1, 1, 2, 1, 1],
},
],
},
position: [1, 1, 2, 1],
},
],
},
position: [1, 1, 2],
},
{
id: 'd220c862',
type: 'link',
model: {
locator:
'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fsend%2Fu94753086',
blocks: [
{
id: 'f2c76b0a',
type: 'text',
model: {
blocks: [
{
id: '172eb0d5',
type: 'paragraph',
model: {
text: 'ဖောင်ပို့ပါ။',
blocks: [
{
id: '9e67d4d4',
type: 'urlLink',
model: {
text: 'ဖောင်ပို့ပါ။',
locator: 'https://www.bbc.com/send/u94753086',
blocks: [
{
id: 'b31d1113',
type: 'fragment',
model: {
text: 'ဖောင်ပို့ပါ။',
attributes: [],
},
position: [1, 1, 3, 1, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1],
},
],
},
position: [1, 1, 3, 1],
},
],
},
position: [1, 1, 3],
},
{
id: 'f21ce980',
type: 'aresSendCTA',
model: {
blocks: [
{
id: '075d32c5',
type: 'text',
model: {
blocks: [
{
id: 'd6deb3ba',
type: 'paragraph',
model: {
text: 'ဖောင်ပို့ပါ။',
blocks: [
{
id: 'b1cdac2a',
type: 'fragment',
model: {
text: 'ဖောင်ပို့ပါ။',
attributes: [],
},
position: [1, 1, 4, 1, 1, 1],
},
],
},
position: [1, 1, 4, 1, 1],
},
],
},
position: [1, 1, 4, 1],
},
],
},
position: [1, 1, 4],
},
],
},
position: [1, 1],
},
];
export const uploaderRTL = [
{
id: '2488a6c7',
type: 'aresUploader',
model: {
openingTime: '',
closingTime: '',
signinRequired: false,
campaignStatus: 'open',
blocks: [
{
id: '7bc611ad',
type: 'title',
model: {
blocks: [
{
id: 'ff83ac2d',
type: 'text',
model: {
blocks: [
{
id: '5a40fc62',
type: 'paragraph',
model: {
text: 'شارك',
blocks: [
{
id: 'e29b1166',
type: 'fragment',
model: {
text: 'شارك',
attributes: [],
},
position: [1, 1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1],
},
],
},
position: [1, 1, 1],
},
{
id: '84300d50',
type: 'text',
model: {
blocks: [
{
id: '32cae5cf',
type: 'paragraph',
model: {
text: 'الميزات الأساسية لبرنامج التحميل - نموذج مخصص',
blocks: [
{
id: '059ad032',
type: 'fragment',
model: {
text: 'الميزات الأساسية لبرنامج التحميل - نموذج مخصص',
attributes: [],
},
position: [1, 1, 2, 1, 1],
},
],
},
position: [1, 1, 2, 1],
},
],
},
position: [1, 1, 2],
},
{
id: 'd220c862',
type: 'link',
model: {
locator:
'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fsend%2Fu94753086',
blocks: [
{
id: 'f2c76b0a',
type: 'text',
model: {
blocks: [
{
id: '172eb0d5',
type: 'paragraph',
model: {
text: 'إرسال النموذج',
blocks: [
{
id: '9e67d4d4',
type: 'urlLink',
model: {
text: 'إرسال النموذج',
locator: 'https://www.bbc.com/send/u94753086',
blocks: [
{
id: 'b31d1113',
type: 'fragment',
model: {
text: 'إرسال النموذج',
attributes: [],
},
position: [1, 1, 3, 1, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1],
},
],
},
position: [1, 1, 3, 1],
},
],
},
position: [1, 1, 3],
},
{
id: 'f21ce980',
type: 'aresSendCTA',
model: {
blocks: [
{
id: '075d32c5',
type: 'text',
model: {
blocks: [
{
id: 'd6deb3ba',
type: 'paragraph',
model: {
text: 'إرسال النموذج',
blocks: [
{
id: 'b1cdac2a',
type: 'fragment',
model: {
text: 'إرسال النموذج',
attributes: [],
},
position: [1, 1, 4, 1, 1, 1],
},
],
},
position: [1, 1, 4, 1, 1],
},
],
},
position: [1, 1, 4, 1],
},
],
},
position: [1, 1, 4],
},
],
},
position: [1, 1],
},
];
export const uploaderWithIncorrectType = [
{
id: '2488a6c7',
type: 'aDifferentTypeOfUploader',
model: {
openingTime: '',
closingTime: '',
signinRequired: false,
campaignStatus: 'open',
blocks: [
{
id: '7bc611ad',
type: 'title',
model: {
blocks: [
{
id: 'ff83ac2d',
type: 'text',
model: {
blocks: [
{
id: '5a40fc62',
type: 'paragraph',
model: {
text: 'Get involved',
blocks: [
{
id: 'e29b1166',
type: 'fragment',
model: {
text: 'Get involved',
attributes: [],
},
position: [1, 1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1, 1],
},
],
},
position: [1, 1, 1, 1],
},
],
},
position: [1, 1, 1],
},
{
id: '84300d50',
type: 'text',
model: {
blocks: [
{
id: '32cae5cf',
type: 'paragraph',
model: {
text: 'UGC Core Features 1 - Custom Form',
blocks: [
{
id: '059ad032',
type: 'fragment',
model: {
text: 'UGC Core Features 1 - Custom Form',
attributes: [],
},
position: [1, 1, 2, 1, 1],
},
],
},
position: [1, 1, 2, 1],
},
],
},
position: [1, 1, 2],
},
{
id: 'd220c862',
type: 'link',
model: {
locator:
'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fsend%2Fu94753086',
blocks: [
{
id: 'f2c76b0a',
type: 'text',
model: {
blocks: [
{
id: '172eb0d5',
type: 'paragraph',
model: {
text: 'Send form',
blocks: [
{
id: '9e67d4d4',
type: 'urlLink',
model: {
text: 'Send form',
locator: 'https://www.bbc.com/send/u94753086',
blocks: [
{
id: 'b31d1113',
type: 'fragment',
model: {
text: 'Send form',
attributes: [],
},
position: [1, 1, 3, 1, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1, 1],
},
],
},
position: [1, 1, 3, 1, 1],
},
],
},
position: [1, 1, 3, 1],
},
],
},
position: [1, 1, 3],
},
{
id: 'f21ce980',
type: 'aresSendCTA',
model: {
blocks: [
{
id: '075d32c5',
type: 'text',
model: {
blocks: [
{
id: 'd6deb3ba',
type: 'paragraph',
model: {
text: 'Send form',
blocks: [
{
id: 'b1cdac2a',
type: 'fragment',
model: {
text: 'Send form',
attributes: [],
},
position: [1, 1, 4, 1, 1, 1],
},
],
},
position: [1, 1, 4, 1, 1],
},
],
},
position: [1, 1, 4, 1],
},
],
},
position: [1, 1, 4],
},
],
},
position: [1, 1],
},
];
export const missingAresUploader = undefined;