@teleporthq/teleport-project-generator-next 0.31.2 → 0.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { FileType } from '@teleporthq/teleport-types'
1
+ import { FileType, GeneratedFolder } from '@teleporthq/teleport-types'
2
2
  import fallbackUidlSample from '../../../../examples/uidl-samples/project.json'
3
3
  import uidlSample from '../../../../examples/test-samples/project-sample.json'
4
4
  import invalidUidlSample from '../../../../examples/test-samples/project-invalid-sample.json'
@@ -6,6 +6,7 @@ import uidlSampleWithDependencies from '../../../../examples/test-samples/projec
6
6
  import uidlSampleWithoutProjectStyleesButImports from './project-with-import-without-global-styles.json'
7
7
  import uidlSampleWithProjectStyleSheet from '../../../../examples/test-samples/project-with-import-global-styles.json'
8
8
  import uidlSampleWithJustTokens from '../../../../examples/test-samples/project-with-only-tokens.json'
9
+ import uidlSampleWithMultiplePagesWithSameName from './project-with-same-page-names-in-diff-routes.json'
9
10
  import template from './template-definition.json'
10
11
  import { createNextProjectGenerator } from '../../src'
11
12
 
@@ -96,9 +97,35 @@ describe('React Next Project Generator', () => {
96
97
  expect(fallbackPage).toBeDefined()
97
98
  })
98
99
 
100
+ it('preserves the pages with same name if they are defined in different routes', async () => {
101
+ const { subFolders } = await generator.generateProject(uidlSampleWithMultiplePagesWithSameName)
102
+ const pagesFolder = getFolderFromSubFolders('pages', subFolders)
103
+
104
+ expect(pagesFolder).toBeDefined()
105
+
106
+ const booksFolder = getFolderFromSubFolders('book', pagesFolder?.subFolders)
107
+ expect(booksFolder).toBeDefined()
108
+ const hasPageInsideBooksFolder = booksFolder?.files.find((file) => file.name === 'page')
109
+ expect(hasPageInsideBooksFolder).toBeDefined()
110
+
111
+ const blogFolder = getFolderFromSubFolders('blog', pagesFolder?.subFolders)
112
+ expect(blogFolder).toBeDefined()
113
+ expect(blogFolder?.files?.length).toBe(2)
114
+
115
+ const hasPageInsideBlogFolder = blogFolder?.files.find((file) => file.name === 'page')
116
+ const hasDuplicatedPageInsideBlogFolder = blogFolder?.files.find(
117
+ (file) => file.name === 'page1'
118
+ )
119
+ expect(hasPageInsideBlogFolder).toBeDefined()
120
+ expect(hasDuplicatedPageInsideBlogFolder).toBeDefined()
121
+ })
122
+
99
123
  it('throws error when invalid UIDL sample is used', async () => {
100
124
  const result = generator.generateProject(invalidUidlSample, template)
101
125
 
102
126
  await expect(result).rejects.toThrow(Error)
103
127
  })
104
128
  })
129
+
130
+ const getFolderFromSubFolders = (folderName: string, folders: GeneratedFolder[] = []) =>
131
+ folders.find((folder) => folder.name === folderName)
@@ -0,0 +1,1010 @@
1
+ {
2
+ "name": "Bowed Secondary Human",
3
+ "globals": {
4
+ "settings": {
5
+ "title": "Bowed Secondary Human",
6
+ "language": "en"
7
+ },
8
+ "assets": [
9
+ {
10
+ "type": "style",
11
+ "attrs": {
12
+ "data-tag": {
13
+ "type": "static",
14
+ "content": "reset-style-sheet"
15
+ }
16
+ },
17
+ "content": "html { line-height: 1.15;}body { margin: 0;}* { box-sizing: border-box; border-width: 0; border-style: solid;}p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0;}button { background-color: transparent;}button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;}button,select { text-transform: none;}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"] { -webkit-appearance: button;}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner { border-style: none; padding: 0;}button:-moz-focus,[type=\"button\"]:-moz-focus,[type=\"reset\"]:-moz-focus,[type=\"submit\"]:-moz-focus { outline: 1px dotted ButtonText;}a { color: inherit; text-decoration: inherit;}input { padding: 2px 4px;}img { display: block;}html { scroll-behavior: smooth }"
18
+ },
19
+ {
20
+ "type": "style",
21
+ "attrs": {
22
+ "data-tag": {
23
+ "type": "static",
24
+ "content": "default-style-sheet"
25
+ }
26
+ },
27
+ "content": "\n html {\n font-family: Inter;\n font-size: 16px;\n }\n\n body {\n font-weight: 400;\n font-style:normal;\n text-decoration: none;\n text-transform: none;\n letter-spacing: normal;\n line-height: 1.15;\n color: var(--dl-color-gray-black);\n background-color: var(--dl-color-gray-white);\n \n }\n\n \n\n "
28
+ },
29
+ {
30
+ "type": "font",
31
+ "path": "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap",
32
+ "attrs": {
33
+ "data-tag": {
34
+ "type": "static",
35
+ "content": "font"
36
+ }
37
+ }
38
+ }
39
+ ],
40
+ "meta": [
41
+ {
42
+ "name": "viewport",
43
+ "content": "width=device-width, initial-scale=1.0"
44
+ },
45
+ {
46
+ "charSet": "utf-8"
47
+ },
48
+ {
49
+ "property": "twitter:card",
50
+ "content": "summary_large_image"
51
+ }
52
+ ],
53
+ "customCode": {
54
+ "head": "",
55
+ "body": ""
56
+ }
57
+ },
58
+ "root": {
59
+ "name": "App",
60
+ "designLanguage": {
61
+ "tokens": {
62
+ "--dl-color-primary-100": {
63
+ "type": "static",
64
+ "content": "#003EB3"
65
+ },
66
+ "--dl-color-primary-300": {
67
+ "type": "static",
68
+ "content": "#0074F0"
69
+ },
70
+ "--dl-color-primary-500": {
71
+ "type": "static",
72
+ "content": "#14A9FF"
73
+ },
74
+ "--dl-color-primary-700": {
75
+ "type": "static",
76
+ "content": "#85DCFF"
77
+ },
78
+ "--dl-color-gray-black": {
79
+ "type": "static",
80
+ "content": "#000000"
81
+ },
82
+ "--dl-color-gray-500": {
83
+ "type": "static",
84
+ "content": "#595959"
85
+ },
86
+ "--dl-color-gray-700": {
87
+ "type": "static",
88
+ "content": "#999999"
89
+ },
90
+ "--dl-color-gray-900": {
91
+ "type": "static",
92
+ "content": "#D9D9D9"
93
+ },
94
+ "--dl-color-gray-white": {
95
+ "type": "static",
96
+ "content": "#FFFFFF"
97
+ },
98
+ "--dl-color-success-300": {
99
+ "type": "static",
100
+ "content": "#199033"
101
+ },
102
+ "--dl-color-success-500": {
103
+ "type": "static",
104
+ "content": "#32A94C"
105
+ },
106
+ "--dl-color-success-700": {
107
+ "type": "static",
108
+ "content": "#4CC366"
109
+ },
110
+ "--dl-color-danger-300": {
111
+ "type": "static",
112
+ "content": "#A22020"
113
+ },
114
+ "--dl-color-danger-500": {
115
+ "type": "static",
116
+ "content": "#BF2626"
117
+ },
118
+ "--dl-color-danger-700": {
119
+ "type": "static",
120
+ "content": "#E14747"
121
+ },
122
+ "--dl-size-size-xsmall": {
123
+ "type": "static",
124
+ "content": "16px"
125
+ },
126
+ "--dl-size-size-small": {
127
+ "type": "static",
128
+ "content": "48px"
129
+ },
130
+ "--dl-size-size-medium": {
131
+ "type": "static",
132
+ "content": "96px"
133
+ },
134
+ "--dl-size-size-large": {
135
+ "type": "static",
136
+ "content": "144px"
137
+ },
138
+ "--dl-size-size-xlarge": {
139
+ "type": "static",
140
+ "content": "192px"
141
+ },
142
+ "--dl-size-size-xxlarge": {
143
+ "type": "static",
144
+ "content": "288px"
145
+ },
146
+ "--dl-size-size-maxwidth": {
147
+ "type": "static",
148
+ "content": "1400px"
149
+ },
150
+ "--dl-space-space-halfunit": {
151
+ "type": "static",
152
+ "content": "8px"
153
+ },
154
+ "--dl-space-space-unit": {
155
+ "type": "static",
156
+ "content": "16px"
157
+ },
158
+ "--dl-space-space-oneandhalfunits": {
159
+ "type": "static",
160
+ "content": "24px"
161
+ },
162
+ "--dl-space-space-twounits": {
163
+ "type": "static",
164
+ "content": "32px"
165
+ },
166
+ "--dl-space-space-threeunits": {
167
+ "type": "static",
168
+ "content": "48px"
169
+ },
170
+ "--dl-space-space-fourunits": {
171
+ "type": "static",
172
+ "content": "64px"
173
+ },
174
+ "--dl-space-space-fiveunits": {
175
+ "type": "static",
176
+ "content": "80px"
177
+ },
178
+ "--dl-space-space-sixunits": {
179
+ "type": "static",
180
+ "content": "96px"
181
+ },
182
+ "--dl-radius-radius-radius2": {
183
+ "type": "static",
184
+ "content": "2px"
185
+ },
186
+ "--dl-radius-radius-radius4": {
187
+ "type": "static",
188
+ "content": "4px"
189
+ },
190
+ "--dl-radius-radius-radius8": {
191
+ "type": "static",
192
+ "content": "8px"
193
+ },
194
+ "--dl-radius-radius-round": {
195
+ "type": "static",
196
+ "content": "50%"
197
+ }
198
+ }
199
+ },
200
+ "styleSetDefinitions": {
201
+ "button": {
202
+ "type": "reusable-project-style-map",
203
+ "content": {
204
+ "display": {
205
+ "type": "static",
206
+ "content": "inline-block"
207
+ },
208
+ "backgroundColor": {
209
+ "type": "dynamic",
210
+ "content": {
211
+ "referenceType": "token",
212
+ "id": "--dl-color-gray-white"
213
+ }
214
+ },
215
+ "color": {
216
+ "type": "dynamic",
217
+ "content": {
218
+ "referenceType": "token",
219
+ "id": "--dl-color-gray-black"
220
+ }
221
+ },
222
+ "borderRadius": {
223
+ "type": "static",
224
+ "content": "4px"
225
+ },
226
+ "borderColor": {
227
+ "type": "dynamic",
228
+ "content": {
229
+ "referenceType": "token",
230
+ "id": "--dl-color-gray-black"
231
+ }
232
+ },
233
+ "borderWidth": {
234
+ "type": "static",
235
+ "content": "1px"
236
+ },
237
+ "padding": {
238
+ "type": "static",
239
+ "content": "0.5rem 1rem"
240
+ }
241
+ },
242
+ "conditions": []
243
+ },
244
+ "input": {
245
+ "type": "reusable-project-style-map",
246
+ "content": {
247
+ "backgroundColor": {
248
+ "type": "dynamic",
249
+ "content": {
250
+ "referenceType": "token",
251
+ "id": "--dl-color-gray-white"
252
+ }
253
+ },
254
+ "borderColor": {
255
+ "type": "dynamic",
256
+ "content": {
257
+ "referenceType": "token",
258
+ "id": "--dl-color-gray-black"
259
+ }
260
+ },
261
+ "color": {
262
+ "type": "dynamic",
263
+ "content": {
264
+ "referenceType": "token",
265
+ "id": "--dl-color-gray-black"
266
+ }
267
+ },
268
+ "borderWidth": {
269
+ "type": "static",
270
+ "content": "1px"
271
+ },
272
+ "borderRadius": {
273
+ "type": "static",
274
+ "content": "4px"
275
+ },
276
+ "padding": {
277
+ "type": "static",
278
+ "content": "0.5rem 1rem"
279
+ },
280
+ "cursor": {
281
+ "type": "static",
282
+ "content": "auto"
283
+ }
284
+ },
285
+ "conditions": []
286
+ },
287
+ "textarea": {
288
+ "type": "reusable-project-style-map",
289
+ "content": {
290
+ "backgroundColor": {
291
+ "type": "dynamic",
292
+ "content": {
293
+ "referenceType": "token",
294
+ "id": "--dl-color-gray-white"
295
+ }
296
+ },
297
+ "borderColor": {
298
+ "type": "dynamic",
299
+ "content": {
300
+ "referenceType": "token",
301
+ "id": "--dl-color-gray-black"
302
+ }
303
+ },
304
+ "color": {
305
+ "type": "dynamic",
306
+ "content": {
307
+ "referenceType": "token",
308
+ "id": "--dl-color-gray-black"
309
+ }
310
+ },
311
+ "borderWidth": {
312
+ "type": "static",
313
+ "content": "1px"
314
+ },
315
+ "borderRadius": {
316
+ "type": "static",
317
+ "content": "4px"
318
+ },
319
+ "padding": {
320
+ "type": "static",
321
+ "content": "0.5rem"
322
+ },
323
+ "cursor": {
324
+ "type": "static",
325
+ "content": "auto"
326
+ }
327
+ },
328
+ "conditions": []
329
+ },
330
+ "list": {
331
+ "type": "reusable-project-style-map",
332
+ "content": {
333
+ "display": {
334
+ "type": "static",
335
+ "content": "block"
336
+ },
337
+ "listStyleType": {
338
+ "type": "static",
339
+ "content": "none"
340
+ },
341
+ "listStylePosition": {
342
+ "type": "static",
343
+ "content": "outside"
344
+ },
345
+ "margin": {
346
+ "type": "static",
347
+ "content": "1em 0px 1em 0px"
348
+ },
349
+ "padding": {
350
+ "type": "static",
351
+ "content": "0px 0px 0px 1.5rem"
352
+ },
353
+ "width": {
354
+ "type": "static",
355
+ "content": "100%"
356
+ }
357
+ },
358
+ "conditions": []
359
+ },
360
+ "list-item": {
361
+ "type": "reusable-project-style-map",
362
+ "content": {
363
+ "display": {
364
+ "type": "static",
365
+ "content": "list-item"
366
+ }
367
+ },
368
+ "conditions": []
369
+ },
370
+ "teleport-show": {
371
+ "type": "reusable-project-style-map",
372
+ "content": {
373
+ "display": {
374
+ "type": "static",
375
+ "content": "flex !important"
376
+ },
377
+ "transform": {
378
+ "type": "static",
379
+ "content": "none !important"
380
+ }
381
+ },
382
+ "conditions": []
383
+ },
384
+ "Content": {
385
+ "type": "reusable-project-style-map",
386
+ "content": {
387
+ "fontFamily": {
388
+ "type": "static",
389
+ "content": "Inter"
390
+ },
391
+ "fontWeight": {
392
+ "type": "static",
393
+ "content": "400"
394
+ },
395
+ "fontSize": {
396
+ "type": "static",
397
+ "content": "16px"
398
+ },
399
+ "lineHeight": {
400
+ "type": "static",
401
+ "content": "1.15"
402
+ },
403
+ "textTransform": {
404
+ "type": "static",
405
+ "content": "none"
406
+ },
407
+ "textDecoration": {
408
+ "type": "static",
409
+ "content": "none"
410
+ }
411
+ }
412
+ },
413
+ "Heading": {
414
+ "type": "reusable-project-style-map",
415
+ "content": {
416
+ "fontFamily": {
417
+ "type": "static",
418
+ "content": "Inter"
419
+ },
420
+ "fontWeight": {
421
+ "type": "static",
422
+ "content": "700"
423
+ },
424
+ "fontSize": {
425
+ "type": "static",
426
+ "content": "32px"
427
+ },
428
+ "lineHeight": {
429
+ "type": "static",
430
+ "content": "1.15"
431
+ },
432
+ "textTransform": {
433
+ "type": "static",
434
+ "content": "none"
435
+ },
436
+ "textDecoration": {
437
+ "type": "static",
438
+ "content": "none"
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "stateDefinitions": {
444
+ "route": {
445
+ "type": "string",
446
+ "defaultValue": "Home",
447
+ "values": [
448
+ {
449
+ "value": "Home",
450
+ "seo": {
451
+ "title": "Bowed Secondary Human",
452
+ "metaTags": [
453
+ {
454
+ "property": "og:title",
455
+ "content": "Bowed Secondary Human"
456
+ }
457
+ ]
458
+ },
459
+ "pageOptions": {}
460
+ },
461
+ {
462
+ "value": "Blog-Page",
463
+ "seo": {
464
+ "title": "Blog-Page - Bowed Secondary Human",
465
+ "metaTags": [
466
+ {
467
+ "property": "og:title",
468
+ "content": "Blog-Page - Bowed Secondary Human"
469
+ }
470
+ ]
471
+ },
472
+ "pageOptions": {
473
+ "navLink": "/blog/page"
474
+ }
475
+ },
476
+ {
477
+ "value": "Book-Page",
478
+ "seo": {
479
+ "title": "Book-Page - Bowed Secondary Human",
480
+ "metaTags": [
481
+ {
482
+ "property": "og:title",
483
+ "content": "Book-Page - Bowed Secondary Human"
484
+ }
485
+ ]
486
+ },
487
+ "pageOptions": {
488
+ "navLink": "/book/page"
489
+ }
490
+ },
491
+ {
492
+ "value": "Blog-Page-Ducplicate",
493
+ "seo": {
494
+ "title": "Blog-Page-Ducplicate - Bowed Secondary Human",
495
+ "metaTags": [
496
+ {
497
+ "property": "og:title",
498
+ "content": "Blog-Page-Ducplicate - Bowed Secondary Human"
499
+ }
500
+ ]
501
+ },
502
+ "pageOptions": {
503
+ "navLink": "/blog/page"
504
+ }
505
+ },
506
+ {
507
+ "value": "404 - Not Found",
508
+ "seo": {
509
+ "title": "404 - Not Found"
510
+ },
511
+ "pageOptions": {
512
+ "fallback": true
513
+ }
514
+ }
515
+ ]
516
+ }
517
+ },
518
+ "propDefinitions": {},
519
+ "node": {
520
+ "type": "element",
521
+ "content": {
522
+ "elementType": "Router",
523
+ "children": [
524
+ {
525
+ "type": "conditional",
526
+ "content": {
527
+ "node": {
528
+ "type": "element",
529
+ "content": {
530
+ "elementType": "container",
531
+ "semanticType": "div",
532
+ "referencedStyles": {},
533
+ "abilities": {},
534
+ "style": {
535
+ "width": {
536
+ "type": "static",
537
+ "content": "100%"
538
+ },
539
+ "minHeight": {
540
+ "type": "static",
541
+ "content": "100vh"
542
+ },
543
+ "overflow": {
544
+ "type": "static",
545
+ "content": "auto"
546
+ },
547
+ "display": {
548
+ "type": "static",
549
+ "content": "flex"
550
+ },
551
+ "flexDirection": {
552
+ "type": "static",
553
+ "content": "column"
554
+ },
555
+ "alignItems": {
556
+ "type": "static",
557
+ "content": "center"
558
+ },
559
+ "justifyContent": {
560
+ "type": "static",
561
+ "content": "center"
562
+ }
563
+ },
564
+ "children": [
565
+ {
566
+ "type": "element",
567
+ "content": {
568
+ "elementType": "text",
569
+ "semanticType": "h3",
570
+ "referencedStyles": {},
571
+ "abilities": {},
572
+ "children": [
573
+ {
574
+ "type": "static",
575
+ "content": "OOPS! PAGE NOT FOUND"
576
+ }
577
+ ]
578
+ }
579
+ },
580
+ {
581
+ "type": "element",
582
+ "content": {
583
+ "elementType": "container",
584
+ "semanticType": "div",
585
+ "referencedStyles": {},
586
+ "abilities": {},
587
+ "style": {
588
+ "display": {
589
+ "type": "static",
590
+ "content": "flex"
591
+ },
592
+ "flexDirection": {
593
+ "type": "static",
594
+ "content": "column"
595
+ },
596
+ "justifyContent": {
597
+ "type": "static",
598
+ "content": "center"
599
+ },
600
+ "alignItems": {
601
+ "type": "static",
602
+ "content": "center"
603
+ },
604
+ "position": {
605
+ "type": "static",
606
+ "content": "relative"
607
+ }
608
+ },
609
+ "children": [
610
+ {
611
+ "type": "element",
612
+ "content": {
613
+ "elementType": "text",
614
+ "semanticType": "h1",
615
+ "referencedStyles": {},
616
+ "abilities": {},
617
+ "style": {
618
+ "fontWeight": {
619
+ "type": "static",
620
+ "content": "900"
621
+ },
622
+ "fontSize": {
623
+ "type": "static",
624
+ "content": "252px"
625
+ },
626
+ "letterSpacing": {
627
+ "type": "static",
628
+ "content": "-20px"
629
+ },
630
+ "color": {
631
+ "type": "static",
632
+ "content": "rgb(38, 38, 38)"
633
+ },
634
+ "marginTop": {
635
+ "type": "static",
636
+ "content": "-20px"
637
+ },
638
+ "marginBottom": {
639
+ "type": "static",
640
+ "content": "-20px"
641
+ }
642
+ },
643
+ "children": [
644
+ {
645
+ "type": "static",
646
+ "content": "404"
647
+ }
648
+ ]
649
+ }
650
+ }
651
+ ]
652
+ }
653
+ },
654
+ {
655
+ "type": "element",
656
+ "content": {
657
+ "elementType": "container",
658
+ "semanticType": "div",
659
+ "referencedStyles": {},
660
+ "abilities": {},
661
+ "style": {
662
+ "display": {
663
+ "type": "static",
664
+ "content": "flex"
665
+ },
666
+ "flexDirection": {
667
+ "type": "static",
668
+ "content": "column"
669
+ },
670
+ "justifyContent": {
671
+ "type": "static",
672
+ "content": "center"
673
+ },
674
+ "alignItems": {
675
+ "type": "static",
676
+ "content": "center"
677
+ },
678
+ "width": {
679
+ "type": "static",
680
+ "content": "421px"
681
+ }
682
+ },
683
+ "children": [
684
+ {
685
+ "type": "element",
686
+ "content": {
687
+ "elementType": "text",
688
+ "semanticType": "h2",
689
+ "referencedStyles": {},
690
+ "abilities": {},
691
+ "style": {
692
+ "textAlign": {
693
+ "type": "static",
694
+ "content": "center"
695
+ },
696
+ "fontWeight": {
697
+ "type": "static",
698
+ "content": "400"
699
+ }
700
+ },
701
+ "children": [
702
+ {
703
+ "type": "static",
704
+ "content": "WE ARE SORRY, BUT THE PAGE YOU REQUESTED WAS NOT FOUND"
705
+ }
706
+ ]
707
+ }
708
+ }
709
+ ]
710
+ }
711
+ }
712
+ ]
713
+ }
714
+ },
715
+ "value": "404 - Not Found",
716
+ "reference": {
717
+ "type": "dynamic",
718
+ "content": {
719
+ "referenceType": "state",
720
+ "id": "route"
721
+ }
722
+ }
723
+ }
724
+ },
725
+ {
726
+ "type": "conditional",
727
+ "content": {
728
+ "node": {
729
+ "type": "element",
730
+ "content": {
731
+ "elementType": "container",
732
+ "semanticType": "div",
733
+ "referencedStyles": {},
734
+ "abilities": {},
735
+ "style": {
736
+ "width": {
737
+ "type": "static",
738
+ "content": "100%"
739
+ },
740
+ "minHeight": {
741
+ "type": "static",
742
+ "content": "100vh"
743
+ },
744
+ "overflow": {
745
+ "type": "static",
746
+ "content": "auto"
747
+ },
748
+ "display": {
749
+ "type": "static",
750
+ "content": "flex"
751
+ },
752
+ "flexDirection": {
753
+ "type": "static",
754
+ "content": "column"
755
+ },
756
+ "alignItems": {
757
+ "type": "static",
758
+ "content": "center"
759
+ },
760
+ "justifyContent": {
761
+ "type": "static",
762
+ "content": "center"
763
+ }
764
+ },
765
+ "children": [
766
+ {
767
+ "type": "element",
768
+ "content": {
769
+ "elementType": "text",
770
+ "semanticType": "h1",
771
+ "referencedStyles": {},
772
+ "abilities": {},
773
+ "children": [
774
+ {
775
+ "type": "static",
776
+ "content": "Home"
777
+ }
778
+ ]
779
+ }
780
+ }
781
+ ]
782
+ }
783
+ },
784
+ "value": "Home",
785
+ "reference": {
786
+ "type": "dynamic",
787
+ "content": {
788
+ "referenceType": "state",
789
+ "id": "route"
790
+ }
791
+ }
792
+ }
793
+ },
794
+ {
795
+ "type": "conditional",
796
+ "content": {
797
+ "node": {
798
+ "type": "element",
799
+ "content": {
800
+ "elementType": "container",
801
+ "semanticType": "div",
802
+ "referencedStyles": {},
803
+ "abilities": {},
804
+ "style": {
805
+ "width": {
806
+ "type": "static",
807
+ "content": "100%"
808
+ },
809
+ "minHeight": {
810
+ "type": "static",
811
+ "content": "100vh"
812
+ },
813
+ "overflow": {
814
+ "type": "static",
815
+ "content": "auto"
816
+ },
817
+ "display": {
818
+ "type": "static",
819
+ "content": "flex"
820
+ },
821
+ "flexDirection": {
822
+ "type": "static",
823
+ "content": "column"
824
+ },
825
+ "alignItems": {
826
+ "type": "static",
827
+ "content": "center"
828
+ },
829
+ "justifyContent": {
830
+ "type": "static",
831
+ "content": "center"
832
+ }
833
+ },
834
+ "children": [
835
+ {
836
+ "type": "element",
837
+ "content": {
838
+ "elementType": "text",
839
+ "semanticType": "h1",
840
+ "referencedStyles": {},
841
+ "abilities": {},
842
+ "children": [
843
+ {
844
+ "type": "static",
845
+ "content": "Blog Page"
846
+ }
847
+ ]
848
+ }
849
+ }
850
+ ]
851
+ }
852
+ },
853
+ "value": "Blog-Page",
854
+ "reference": {
855
+ "type": "dynamic",
856
+ "content": {
857
+ "referenceType": "state",
858
+ "id": "route"
859
+ }
860
+ }
861
+ }
862
+ },
863
+ {
864
+ "type": "conditional",
865
+ "content": {
866
+ "node": {
867
+ "type": "element",
868
+ "content": {
869
+ "elementType": "container",
870
+ "semanticType": "div",
871
+ "referencedStyles": {},
872
+ "abilities": {},
873
+ "style": {
874
+ "width": {
875
+ "type": "static",
876
+ "content": "100%"
877
+ },
878
+ "minHeight": {
879
+ "type": "static",
880
+ "content": "100vh"
881
+ },
882
+ "overflow": {
883
+ "type": "static",
884
+ "content": "auto"
885
+ },
886
+ "display": {
887
+ "type": "static",
888
+ "content": "flex"
889
+ },
890
+ "flexDirection": {
891
+ "type": "static",
892
+ "content": "column"
893
+ },
894
+ "alignItems": {
895
+ "type": "static",
896
+ "content": "center"
897
+ },
898
+ "justifyContent": {
899
+ "type": "static",
900
+ "content": "center"
901
+ }
902
+ },
903
+ "children": [
904
+ {
905
+ "type": "element",
906
+ "content": {
907
+ "elementType": "text",
908
+ "semanticType": "h1",
909
+ "referencedStyles": {},
910
+ "abilities": {},
911
+ "children": [
912
+ {
913
+ "type": "static",
914
+ "content": "Book Page"
915
+ }
916
+ ]
917
+ }
918
+ }
919
+ ]
920
+ }
921
+ },
922
+ "value": "Book-Page",
923
+ "reference": {
924
+ "type": "dynamic",
925
+ "content": {
926
+ "referenceType": "state",
927
+ "id": "route"
928
+ }
929
+ }
930
+ }
931
+ },
932
+ {
933
+ "type": "conditional",
934
+ "content": {
935
+ "node": {
936
+ "type": "element",
937
+ "content": {
938
+ "elementType": "container",
939
+ "semanticType": "div",
940
+ "referencedStyles": {},
941
+ "abilities": {},
942
+ "style": {
943
+ "width": {
944
+ "type": "static",
945
+ "content": "100%"
946
+ },
947
+ "minHeight": {
948
+ "type": "static",
949
+ "content": "100vh"
950
+ },
951
+ "overflow": {
952
+ "type": "static",
953
+ "content": "auto"
954
+ },
955
+ "display": {
956
+ "type": "static",
957
+ "content": "flex"
958
+ },
959
+ "flexDirection": {
960
+ "type": "static",
961
+ "content": "column"
962
+ },
963
+ "alignItems": {
964
+ "type": "static",
965
+ "content": "center"
966
+ },
967
+ "justifyContent": {
968
+ "type": "static",
969
+ "content": "center"
970
+ }
971
+ },
972
+ "children": [
973
+ {
974
+ "type": "element",
975
+ "content": {
976
+ "elementType": "text",
977
+ "semanticType": "h1",
978
+ "referencedStyles": {},
979
+ "abilities": {},
980
+ "children": [
981
+ {
982
+ "type": "static",
983
+ "content": "Blog Page Duplicate"
984
+ }
985
+ ]
986
+ }
987
+ }
988
+ ]
989
+ }
990
+ },
991
+ "value": "Blog-Page-Ducplicate",
992
+ "reference": {
993
+ "type": "dynamic",
994
+ "content": {
995
+ "referenceType": "state",
996
+ "id": "route"
997
+ }
998
+ }
999
+ }
1000
+ }
1001
+ ]
1002
+ }
1003
+ }
1004
+ },
1005
+ "components": {},
1006
+ "resources": {
1007
+ "rootFolder": "pages/api",
1008
+ "items": {}
1009
+ }
1010
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teleporthq/teleport-project-generator-next",
3
- "version": "0.31.2",
3
+ "version": "0.31.3",
4
4
  "description": "Project generator for a standard Next.js project",
5
5
  "author": "teleportHQ",
6
6
  "license": "MIT",
@@ -25,17 +25,17 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/types": "^7.5.5",
28
- "@teleporthq/teleport-component-generator": "^0.31.2",
29
- "@teleporthq/teleport-component-generator-react": "^0.31.2",
30
- "@teleporthq/teleport-plugin-common": "^0.31.0",
31
- "@teleporthq/teleport-plugin-css": "^0.31.0",
32
- "@teleporthq/teleport-plugin-import-statements": "^0.31.0",
33
- "@teleporthq/teleport-plugin-jsx-head-config": "^0.31.0",
34
- "@teleporthq/teleport-plugin-jsx-next-image": "^0.31.0",
35
- "@teleporthq/teleport-postprocessor-prettier-js": "^0.31.0",
36
- "@teleporthq/teleport-project-generator": "^0.31.2",
37
- "@teleporthq/teleport-shared": "^0.31.0",
28
+ "@teleporthq/teleport-component-generator": "^0.31.3",
29
+ "@teleporthq/teleport-component-generator-react": "^0.31.3",
30
+ "@teleporthq/teleport-plugin-common": "^0.31.3",
31
+ "@teleporthq/teleport-plugin-css": "^0.31.3",
32
+ "@teleporthq/teleport-plugin-import-statements": "^0.31.3",
33
+ "@teleporthq/teleport-plugin-jsx-head-config": "^0.31.3",
34
+ "@teleporthq/teleport-plugin-jsx-next-image": "^0.31.3",
35
+ "@teleporthq/teleport-postprocessor-prettier-js": "^0.31.3",
36
+ "@teleporthq/teleport-project-generator": "^0.31.3",
37
+ "@teleporthq/teleport-shared": "^0.31.3",
38
38
  "@teleporthq/teleport-types": "^0.31.0"
39
39
  },
40
- "gitHead": "649e22fca4cbdbcf70f18454910dda3d2a61c3cd"
40
+ "gitHead": "290dbc03d87888316b91dae1eb937dbf10bd1ca5"
41
41
  }