@byline/cli 0.1.1

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.
Files changed (251) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +23 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +72 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/commands/doctor.d.ts +2 -0
  8. package/dist/commands/doctor.d.ts.map +1 -0
  9. package/dist/commands/doctor.js +36 -0
  10. package/dist/commands/doctor.js.map +1 -0
  11. package/dist/commands/init.d.ts +16 -0
  12. package/dist/commands/init.d.ts.map +1 -0
  13. package/dist/commands/init.js +76 -0
  14. package/dist/commands/init.js.map +1 -0
  15. package/dist/context.d.ts +38 -0
  16. package/dist/context.d.ts.map +1 -0
  17. package/dist/context.js +37 -0
  18. package/dist/context.js.map +1 -0
  19. package/dist/index.d.ts +5 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +4 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/lib/pg-url.d.ts +11 -0
  24. package/dist/lib/pg-url.d.ts.map +1 -0
  25. package/dist/lib/pg-url.js +22 -0
  26. package/dist/lib/pg-url.js.map +1 -0
  27. package/dist/manifest/deps.d.ts +29 -0
  28. package/dist/manifest/deps.d.ts.map +1 -0
  29. package/dist/manifest/deps.js +97 -0
  30. package/dist/manifest/deps.js.map +1 -0
  31. package/dist/manifest/env.d.ts +18 -0
  32. package/dist/manifest/env.d.ts.map +1 -0
  33. package/dist/manifest/env.js +38 -0
  34. package/dist/manifest/env.js.map +1 -0
  35. package/dist/phases/db-init.d.ts +3 -0
  36. package/dist/phases/db-init.d.ts.map +1 -0
  37. package/dist/phases/db-init.js +163 -0
  38. package/dist/phases/db-init.js.map +1 -0
  39. package/dist/phases/db.d.ts +11 -0
  40. package/dist/phases/db.d.ts.map +1 -0
  41. package/dist/phases/db.js +93 -0
  42. package/dist/phases/db.js.map +1 -0
  43. package/dist/phases/deps.d.ts +3 -0
  44. package/dist/phases/deps.d.ts.map +1 -0
  45. package/dist/phases/deps.js +115 -0
  46. package/dist/phases/deps.js.map +1 -0
  47. package/dist/phases/env.d.ts +3 -0
  48. package/dist/phases/env.d.ts.map +1 -0
  49. package/dist/phases/env.js +172 -0
  50. package/dist/phases/env.js.map +1 -0
  51. package/dist/phases/host.d.ts +3 -0
  52. package/dist/phases/host.d.ts.map +1 -0
  53. package/dist/phases/host.js +99 -0
  54. package/dist/phases/host.js.map +1 -0
  55. package/dist/phases/index.d.ts +7 -0
  56. package/dist/phases/index.d.ts.map +1 -0
  57. package/dist/phases/index.js +40 -0
  58. package/dist/phases/index.js.map +1 -0
  59. package/dist/phases/preflight.d.ts +4 -0
  60. package/dist/phases/preflight.d.ts.map +1 -0
  61. package/dist/phases/preflight.js +81 -0
  62. package/dist/phases/preflight.js.map +1 -0
  63. package/dist/phases/routes.d.ts +3 -0
  64. package/dist/phases/routes.d.ts.map +1 -0
  65. package/dist/phases/routes.js +145 -0
  66. package/dist/phases/routes.js.map +1 -0
  67. package/dist/phases/scaffold.d.ts +3 -0
  68. package/dist/phases/scaffold.d.ts.map +1 -0
  69. package/dist/phases/scaffold.js +113 -0
  70. package/dist/phases/scaffold.js.map +1 -0
  71. package/dist/phases/stub.d.ts +3 -0
  72. package/dist/phases/stub.d.ts.map +1 -0
  73. package/dist/phases/stub.js +25 -0
  74. package/dist/phases/stub.js.map +1 -0
  75. package/dist/phases/ui.d.ts +3 -0
  76. package/dist/phases/ui.d.ts.map +1 -0
  77. package/dist/phases/ui.js +93 -0
  78. package/dist/phases/ui.js.map +1 -0
  79. package/dist/phases/wire/index.d.ts +3 -0
  80. package/dist/phases/wire/index.d.ts.map +1 -0
  81. package/dist/phases/wire/index.js +67 -0
  82. package/dist/phases/wire/index.js.map +1 -0
  83. package/dist/phases/wire/root-tsx.d.ts +3 -0
  84. package/dist/phases/wire/root-tsx.d.ts.map +1 -0
  85. package/dist/phases/wire/root-tsx.js +57 -0
  86. package/dist/phases/wire/root-tsx.js.map +1 -0
  87. package/dist/phases/wire/server-ts.d.ts +3 -0
  88. package/dist/phases/wire/server-ts.d.ts.map +1 -0
  89. package/dist/phases/wire/server-ts.js +54 -0
  90. package/dist/phases/wire/server-ts.js.map +1 -0
  91. package/dist/phases/wire/shared.d.ts +34 -0
  92. package/dist/phases/wire/shared.d.ts.map +1 -0
  93. package/dist/phases/wire/shared.js +2 -0
  94. package/dist/phases/wire/shared.js.map +1 -0
  95. package/dist/phases/wire/start-ts.d.ts +3 -0
  96. package/dist/phases/wire/start-ts.d.ts.map +1 -0
  97. package/dist/phases/wire/start-ts.js +149 -0
  98. package/dist/phases/wire/start-ts.js.map +1 -0
  99. package/dist/phases/wire/tsconfig.d.ts +3 -0
  100. package/dist/phases/wire/tsconfig.d.ts.map +1 -0
  101. package/dist/phases/wire/tsconfig.js +105 -0
  102. package/dist/phases/wire/tsconfig.js.map +1 -0
  103. package/dist/phases/wire/vite-config.d.ts +3 -0
  104. package/dist/phases/wire/vite-config.d.ts.map +1 -0
  105. package/dist/phases/wire/vite-config.js +46 -0
  106. package/dist/phases/wire/vite-config.js.map +1 -0
  107. package/dist/prompts.d.ts +34 -0
  108. package/dist/prompts.d.ts.map +1 -0
  109. package/dist/prompts.js +49 -0
  110. package/dist/prompts.js.map +1 -0
  111. package/dist/runner.d.ts +5 -0
  112. package/dist/runner.d.ts.map +1 -0
  113. package/dist/runner.js +91 -0
  114. package/dist/runner.js.map +1 -0
  115. package/dist/state.d.ts +18 -0
  116. package/dist/state.d.ts.map +1 -0
  117. package/dist/state.js +68 -0
  118. package/dist/state.js.map +1 -0
  119. package/dist/templates/byline/admin.config.ts +41 -0
  120. package/dist/templates/byline/i18n.ts +47 -0
  121. package/dist/templates/byline/routes.ts +28 -0
  122. package/dist/templates/byline/seed.ts +19 -0
  123. package/dist/templates/byline/seeds/admin.ts +62 -0
  124. package/dist/templates/byline/server.config.ts +92 -0
  125. package/dist/templates/byline-examples/admin.config.ts +74 -0
  126. package/dist/templates/byline-examples/blocks/photo-block.ts +59 -0
  127. package/dist/templates/byline-examples/blocks/richtext-block.ts +35 -0
  128. package/dist/templates/byline-examples/collections/doc-example-flat-locale-all.ts +373 -0
  129. package/dist/templates/byline-examples/collections/doc-example-flat-locale-en.ts +283 -0
  130. package/dist/templates/byline-examples/collections/doc-example-tree-locale-all.ts +278 -0
  131. package/dist/templates/byline-examples/collections/doc-example-tree-locale-en.ts +205 -0
  132. package/dist/templates/byline-examples/collections/docs/admin.tsx +204 -0
  133. package/dist/templates/byline-examples/collections/docs/components/.gitkeep +0 -0
  134. package/dist/templates/byline-examples/collections/docs/components/feature-formatter.tsx +10 -0
  135. package/dist/templates/byline-examples/collections/docs/hooks/.gitkeep +0 -0
  136. package/dist/templates/byline-examples/collections/docs/index.ts +10 -0
  137. package/dist/templates/byline-examples/collections/docs/schema.ts +209 -0
  138. package/dist/templates/byline-examples/collections/docs-categories/admin.tsx +78 -0
  139. package/dist/templates/byline-examples/collections/docs-categories/components/.gitkeep +0 -0
  140. package/dist/templates/byline-examples/collections/docs-categories/hooks/.gitkeep +0 -0
  141. package/dist/templates/byline-examples/collections/docs-categories/index.ts +10 -0
  142. package/dist/templates/byline-examples/collections/docs-categories/schema.ts +33 -0
  143. package/dist/templates/byline-examples/collections/media/admin.tsx +188 -0
  144. package/dist/templates/byline-examples/collections/media/components/media-list-view.tsx +330 -0
  145. package/dist/templates/byline-examples/collections/media/components/media-thumbnail.tsx +63 -0
  146. package/dist/templates/byline-examples/collections/media/hooks/.gitkeep +0 -0
  147. package/dist/templates/byline-examples/collections/media/index.ts +10 -0
  148. package/dist/templates/byline-examples/collections/media/schema.ts +157 -0
  149. package/dist/templates/byline-examples/collections/news/admin.tsx +192 -0
  150. package/dist/templates/byline-examples/collections/news/components/.gitkeep +0 -0
  151. package/dist/templates/byline-examples/collections/news/hooks/.gitkeep +0 -0
  152. package/dist/templates/byline-examples/collections/news/index.ts +10 -0
  153. package/dist/templates/byline-examples/collections/news/schema.ts +91 -0
  154. package/dist/templates/byline-examples/collections/news-categories/admin.tsx +78 -0
  155. package/dist/templates/byline-examples/collections/news-categories/components/.gitkeep +0 -0
  156. package/dist/templates/byline-examples/collections/news-categories/hooks/.gitkeep +0 -0
  157. package/dist/templates/byline-examples/collections/news-categories/index.ts +10 -0
  158. package/dist/templates/byline-examples/collections/news-categories/schema.ts +33 -0
  159. package/dist/templates/byline-examples/collections/pages/admin.tsx +183 -0
  160. package/dist/templates/byline-examples/collections/pages/components/.gitkeep +0 -0
  161. package/dist/templates/byline-examples/collections/pages/hooks/.gitkeep +0 -0
  162. package/dist/templates/byline-examples/collections/pages/index.ts +10 -0
  163. package/dist/templates/byline-examples/collections/pages/schema.ts +96 -0
  164. package/dist/templates/byline-examples/components/length-indicator.tsx +138 -0
  165. package/dist/templates/byline-examples/components/pill.tsx +38 -0
  166. package/dist/templates/byline-examples/components/summary-length.tsx +39 -0
  167. package/dist/templates/byline-examples/fields/available-languages-field.ts +90 -0
  168. package/dist/templates/byline-examples/fields/lexical-richtext-compact.ts +88 -0
  169. package/dist/templates/byline-examples/i18n.ts +47 -0
  170. package/dist/templates/byline-examples/routes.ts +28 -0
  171. package/dist/templates/byline-examples/scripts/regenerate-media.ts +275 -0
  172. package/dist/templates/byline-examples/seed.ts +25 -0
  173. package/dist/templates/byline-examples/seeds/admin.ts +62 -0
  174. package/dist/templates/byline-examples/seeds/doc-categories.ts +71 -0
  175. package/dist/templates/byline-examples/seeds/docs.ts +293 -0
  176. package/dist/templates/byline-examples/seeds/news-categories.ts +71 -0
  177. package/dist/templates/byline-examples/server.config.ts +179 -0
  178. package/dist/templates/host/vite.config.ts +41 -0
  179. package/dist/templates/migrations/0000_condemned_kronos.sql +324 -0
  180. package/dist/templates/migrations/0001_sudden_phantom_reporter.sql +1 -0
  181. package/dist/templates/migrations/meta/0000_snapshot.json +2793 -0
  182. package/dist/templates/migrations/meta/0001_snapshot.json +2799 -0
  183. package/dist/templates/migrations/meta/_journal.json +20 -0
  184. package/dist/templates/routes/(byline)/admin/account/index.tsx +11 -0
  185. package/dist/templates/routes/(byline)/admin/collections/$collection/$id/api.tsx +16 -0
  186. package/dist/templates/routes/(byline)/admin/collections/$collection/$id/history.tsx +19 -0
  187. package/dist/templates/routes/(byline)/admin/collections/$collection/$id/index.tsx +16 -0
  188. package/dist/templates/routes/(byline)/admin/collections/$collection/create.tsx +11 -0
  189. package/dist/templates/routes/(byline)/admin/collections/$collection/index.tsx +11 -0
  190. package/dist/templates/routes/(byline)/admin/index.tsx +11 -0
  191. package/dist/templates/routes/(byline)/admin/permissions/index.tsx +11 -0
  192. package/dist/templates/routes/(byline)/admin/roles/$id/index.tsx +11 -0
  193. package/dist/templates/routes/(byline)/admin/roles/index.tsx +11 -0
  194. package/dist/templates/routes/(byline)/admin/route.tsx +11 -0
  195. package/dist/templates/routes/(byline)/admin/users/$id/index.tsx +11 -0
  196. package/dist/templates/routes/(byline)/admin/users/index.tsx +11 -0
  197. package/dist/templates/routes/(byline)/sign-in.tsx +11 -0
  198. package/dist/templates/ui-byline/blocks/photo-block/index.tsx +80 -0
  199. package/dist/templates/ui-byline/blocks/richtext-block/index.tsx +46 -0
  200. package/dist/templates/ui-byline/components/admonition/index.tsx +40 -0
  201. package/dist/templates/ui-byline/components/code/code-serializer.tsx +20 -0
  202. package/dist/templates/ui-byline/components/code/code.tsx +50 -0
  203. package/dist/templates/ui-byline/components/code/index.module.scss +137 -0
  204. package/dist/templates/ui-byline/components/code/index.ts +2 -0
  205. package/dist/templates/ui-byline/components/code/types.ts +5 -0
  206. package/dist/templates/ui-byline/components/code/utils.ts +20 -0
  207. package/dist/templates/ui-byline/components/heading-anchor/heading-anchor.tsx +69 -0
  208. package/dist/templates/ui-byline/components/heading-anchor/index.ts +1 -0
  209. package/dist/templates/ui-byline/components/heading-anchor/utils.ts +15 -0
  210. package/dist/templates/ui-byline/components/inline-image/index.tsx +109 -0
  211. package/dist/templates/ui-byline/components/layout/index.tsx +63 -0
  212. package/dist/templates/ui-byline/components/link/lang-link.tsx +70 -0
  213. package/dist/templates/ui-byline/components/link/link-field.tsx +298 -0
  214. package/dist/templates/ui-byline/components/link/link-lexical.tsx +191 -0
  215. package/dist/templates/ui-byline/components/list/index.ts +2 -0
  216. package/dist/templates/ui-byline/components/list/list-item.tsx +32 -0
  217. package/dist/templates/ui-byline/components/list/list.tsx +17 -0
  218. package/dist/templates/ui-byline/components/responsive-image/index.tsx +205 -0
  219. package/dist/templates/ui-byline/components/richtext-lexical/index.tsx +31 -0
  220. package/dist/templates/ui-byline/components/richtext-lexical/serialize/index.tsx +249 -0
  221. package/dist/templates/ui-byline/components/richtext-lexical/serialize/richtext-node-formats.ts +66 -0
  222. package/dist/templates/ui-byline/components/richtext-lexical/serialize/types.ts +48 -0
  223. package/dist/templates/ui-byline/components/richtext-lexical/serialize/utils.ts +15 -0
  224. package/dist/templates/ui-byline/components/table-cell/index.tsx +36 -0
  225. package/dist/templates/ui-byline/components/vimeo/index.tsx +21 -0
  226. package/dist/templates/ui-byline/components/youtube/index.tsx +22 -0
  227. package/dist/templates/ui-byline/render-blocks.tsx +71 -0
  228. package/dist/templates/ui-byline/types/i18n.ts +14 -0
  229. package/dist/templates/ui-byline/utils/image-sources.ts +102 -0
  230. package/dist/templates/ui-byline/utils/to-kebab-case.ts +5 -0
  231. package/dist/types.d.ts +54 -0
  232. package/dist/types.d.ts.map +1 -0
  233. package/dist/types.js +2 -0
  234. package/dist/types.js.map +1 -0
  235. package/dist/ui/diff.d.ts +4 -0
  236. package/dist/ui/diff.d.ts.map +1 -0
  237. package/dist/ui/diff.js +23 -0
  238. package/dist/ui/diff.js.map +1 -0
  239. package/dist/ui/grid.d.ts +7 -0
  240. package/dist/ui/grid.d.ts.map +1 -0
  241. package/dist/ui/grid.js +24 -0
  242. package/dist/ui/grid.js.map +1 -0
  243. package/dist/ui/logger.d.ts +14 -0
  244. package/dist/ui/logger.d.ts.map +1 -0
  245. package/dist/ui/logger.js +30 -0
  246. package/dist/ui/logger.js.map +1 -0
  247. package/dist/ui/snippet.d.ts +2 -0
  248. package/dist/ui/snippet.d.ts.map +1 -0
  249. package/dist/ui/snippet.js +7 -0
  250. package/dist/ui/snippet.js.map +1 -0
  251. package/package.json +69 -0
@@ -0,0 +1,373 @@
1
+ const _doc_flat_locale_all = {
2
+ document_version_id: '01981ef7-6782-71a7-a779-3e36d9b2bc05',
3
+ document_id: '01981ef7-6782-71a7-a779-432fe33aaa80',
4
+ path: 'my-first-bulk-document-13325',
5
+ status: 'draft',
6
+ created_at: '2025-07-18T19:16:27.138Z',
7
+ updated_at: '2025-07-18T19:16:27.138Z',
8
+ fields: [
9
+ {
10
+ field_path: 'path',
11
+ field_name: 'path',
12
+ locale: 'all',
13
+ field_type: 'text',
14
+ value: 'my-first-bulk-document-13325',
15
+ },
16
+ {
17
+ field_path: 'publishedOn',
18
+ field_name: 'publishedOn',
19
+ locale: 'all',
20
+ field_type: 'datetime',
21
+ date_type: 'datetime',
22
+ value_time: null,
23
+ value_date: null,
24
+ value_timestamp_tz: '2024-01-15 03:00:00+00',
25
+ },
26
+ {
27
+ field_path: 'title',
28
+ field_name: 'title',
29
+ locale: 'en',
30
+ field_type: 'text',
31
+ value: 'A bulk created document. 981',
32
+ },
33
+ {
34
+ field_path: 'title',
35
+ field_name: 'title',
36
+ locale: 'es',
37
+ field_type: 'text',
38
+ value: 'Mi Primer Documento',
39
+ },
40
+ {
41
+ field_path: 'summary',
42
+ field_name: 'summary',
43
+ locale: 'en',
44
+ field_type: 'text',
45
+ value: 'This is a sample document for testing purposes.',
46
+ },
47
+ {
48
+ field_path: 'summary',
49
+ field_name: 'summary',
50
+ locale: 'es',
51
+ field_type: 'text',
52
+ value: 'Este es un documento de muestra para fines de prueba.',
53
+ },
54
+ {
55
+ field_path: 'featured',
56
+ field_name: 'featured',
57
+ locale: 'all',
58
+ field_type: 'boolean',
59
+ value: false,
60
+ },
61
+ {
62
+ field_path: 'content.0.richTextBlock.0.richText',
63
+ field_name: 'richText',
64
+ locale: 'en',
65
+ parent_path: 'content.0.richTextBlock.0',
66
+ field_type: 'richText',
67
+ value: {
68
+ root: {
69
+ type: 'root',
70
+ format: '',
71
+ indent: 0,
72
+ version: 1,
73
+ children: [
74
+ {
75
+ type: 'paragraph',
76
+ format: '',
77
+ indent: 0,
78
+ version: 1,
79
+ children: [
80
+ {
81
+ mode: 'normal',
82
+ text: 'Some richtext here...',
83
+ type: 'text',
84
+ style: '',
85
+ detail: 0,
86
+ format: 0,
87
+ version: 1,
88
+ },
89
+ ],
90
+ direction: 'ltr',
91
+ textStyle: '',
92
+ textFormat: 0,
93
+ },
94
+ ],
95
+ direction: 'ltr',
96
+ },
97
+ },
98
+ },
99
+ {
100
+ field_path: 'content.0.richTextBlock.0.richText',
101
+ field_name: 'richText',
102
+ locale: 'es',
103
+ parent_path: 'content.0.richTextBlock.0',
104
+ field_type: 'richText',
105
+ value: {
106
+ root: {
107
+ type: 'root',
108
+ format: '',
109
+ indent: 0,
110
+ version: 1,
111
+ children: [
112
+ {
113
+ type: 'paragraph',
114
+ format: '',
115
+ indent: 0,
116
+ version: 1,
117
+ children: [
118
+ {
119
+ mode: 'normal',
120
+ text: 'Aquí hay un campo de texto enriquecido...',
121
+ type: 'text',
122
+ style: '',
123
+ detail: 0,
124
+ format: 0,
125
+ version: 1,
126
+ },
127
+ ],
128
+ direction: 'ltr',
129
+ textStyle: '',
130
+ textFormat: 0,
131
+ },
132
+ ],
133
+ direction: 'ltr',
134
+ },
135
+ },
136
+ },
137
+ {
138
+ field_path: 'content.0.richTextBlock.1.constrainedWidth',
139
+ field_name: 'constrainedWidth',
140
+ locale: 'all',
141
+ parent_path: 'content.0.richTextBlock.1',
142
+ field_type: 'boolean',
143
+ value: true,
144
+ },
145
+ {
146
+ field_path: 'content.1.photoBlock.0.display',
147
+ field_name: 'display',
148
+ locale: 'all',
149
+ parent_path: 'content.1.photoBlock.0',
150
+ field_type: 'text',
151
+ value: 'wide',
152
+ },
153
+ {
154
+ field_path: 'content.1.photoBlock.1.photo',
155
+ field_name: 'photo',
156
+ locale: 'all',
157
+ parent_path: 'content.1.photoBlock.1',
158
+ field_type: 'file',
159
+ file_id: '01981ef7-2e41-7084-add9-3bf27c9b27c3',
160
+ filename: 'docs-photo-01.jpg',
161
+ original_filename: 'some-original-filename.jpg',
162
+ mime_type: 'image/jpeg',
163
+ file_size: '123456',
164
+ storage_provider: 'local',
165
+ storage_path: 'uploads/docs-photo-01.jpg',
166
+ storage_url: null,
167
+ file_hash: null,
168
+ image_width: null,
169
+ image_height: null,
170
+ image_format: null,
171
+ processing_status: 'pending',
172
+ thumbnail_generated: false,
173
+ },
174
+ {
175
+ field_path: 'content.1.photoBlock.2.alt',
176
+ field_name: 'alt',
177
+ locale: 'all',
178
+ parent_path: 'content.1.photoBlock.2',
179
+ field_type: 'text',
180
+ value: 'Some alt text here',
181
+ },
182
+ {
183
+ field_path: 'content.1.photoBlock.3.caption',
184
+ field_name: 'caption',
185
+ locale: 'en',
186
+ parent_path: 'content.1.photoBlock.3',
187
+ field_type: 'richText',
188
+ value: {
189
+ root: {
190
+ type: 'root',
191
+ format: '',
192
+ indent: 0,
193
+ version: 1,
194
+ children: [
195
+ {
196
+ type: 'paragraph',
197
+ format: '',
198
+ indent: 0,
199
+ version: 1,
200
+ children: [
201
+ {
202
+ mode: 'normal',
203
+ text: 'Here is a richtext field Here is a richtext field Here is a richtext field Here is a rich text field.',
204
+ type: 'text',
205
+ style: '',
206
+ detail: 0,
207
+ format: 0,
208
+ version: 1,
209
+ },
210
+ ],
211
+ direction: 'ltr',
212
+ textStyle: '',
213
+ textFormat: 0,
214
+ },
215
+ ],
216
+ direction: 'ltr',
217
+ },
218
+ },
219
+ },
220
+ {
221
+ field_path: 'content.1.photoBlock.3.caption',
222
+ field_name: 'caption',
223
+ locale: 'es',
224
+ parent_path: 'content.1.photoBlock.3',
225
+ field_type: 'richText',
226
+ value: {
227
+ root: {
228
+ type: 'root',
229
+ format: '',
230
+ indent: 0,
231
+ version: 1,
232
+ children: [
233
+ {
234
+ type: 'paragraph',
235
+ format: '',
236
+ indent: 0,
237
+ version: 1,
238
+ children: [
239
+ {
240
+ mode: 'normal',
241
+ text: 'Aquí hay un campo de texto enriquecido. Aquí hay un campo de texto enriquecido. Aquí hay un campo de texto enriquecido. Aquí hay un campo de texto enriquecido.',
242
+ type: 'text',
243
+ style: '',
244
+ detail: 0,
245
+ format: 0,
246
+ version: 1,
247
+ },
248
+ ],
249
+ direction: 'ltr',
250
+ textStyle: '',
251
+ textFormat: 0,
252
+ },
253
+ ],
254
+ direction: 'ltr',
255
+ },
256
+ },
257
+ },
258
+ {
259
+ field_path: 'links.0.link',
260
+ field_name: 'link',
261
+ locale: 'all',
262
+ parent_path: 'links.0',
263
+ field_type: 'text',
264
+ value: 'https://example.com',
265
+ },
266
+ {
267
+ field_path: 'links.1.link',
268
+ field_name: 'link',
269
+ locale: 'all',
270
+ parent_path: 'links.1',
271
+ field_type: 'text',
272
+ value: 'https://another-example.com',
273
+ },
274
+ {
275
+ field_path: 'reviews.0.reviewItem.0.rating',
276
+ field_name: 'rating',
277
+ locale: 'all',
278
+ parent_path: 'reviews.0.reviewItem.0',
279
+ field_type: 'integer',
280
+ number_type: 'integer',
281
+ value_integer: 5,
282
+ value_decimal: null,
283
+ value_float: null,
284
+ },
285
+ {
286
+ field_path: 'reviews.0.reviewItem.1.comment',
287
+ field_name: 'comment',
288
+ locale: 'all',
289
+ parent_path: 'reviews.0.reviewItem.1',
290
+ field_type: 'richText',
291
+ value: {
292
+ root: {
293
+ type: 'root',
294
+ format: '',
295
+ indent: 0,
296
+ version: 1,
297
+ children: [
298
+ {
299
+ type: 'paragraph',
300
+ format: '',
301
+ indent: 0,
302
+ version: 1,
303
+ children: [
304
+ {
305
+ mode: 'normal',
306
+ text: 'Some review text here...',
307
+ type: 'text',
308
+ style: '',
309
+ detail: 0,
310
+ format: 0,
311
+ version: 1,
312
+ },
313
+ ],
314
+ direction: 'ltr',
315
+ textStyle: '',
316
+ textFormat: 0,
317
+ },
318
+ ],
319
+ direction: 'ltr',
320
+ },
321
+ },
322
+ },
323
+ {
324
+ field_path: 'reviews.1.reviewItem.0.rating',
325
+ field_name: 'rating',
326
+ locale: 'all',
327
+ parent_path: 'reviews.1.reviewItem.0',
328
+ field_type: 'integer',
329
+ number_type: 'integer',
330
+ value_integer: 3,
331
+ value_decimal: null,
332
+ value_float: null,
333
+ },
334
+ {
335
+ field_path: 'reviews.1.reviewItem.1.comment',
336
+ field_name: 'comment',
337
+ locale: 'all',
338
+ parent_path: 'reviews.1.reviewItem.1',
339
+ field_type: 'richText',
340
+ value: {
341
+ root: {
342
+ type: 'root',
343
+ format: '',
344
+ indent: 0,
345
+ version: 1,
346
+ children: [
347
+ {
348
+ type: 'paragraph',
349
+ format: '',
350
+ indent: 0,
351
+ version: 1,
352
+ children: [
353
+ {
354
+ mode: 'normal',
355
+ text: 'Some review text here...',
356
+ type: 'text',
357
+ style: '',
358
+ detail: 0,
359
+ format: 0,
360
+ version: 1,
361
+ },
362
+ ],
363
+ direction: 'ltr',
364
+ textStyle: '',
365
+ textFormat: 0,
366
+ },
367
+ ],
368
+ direction: 'ltr',
369
+ },
370
+ },
371
+ },
372
+ ],
373
+ }
@@ -0,0 +1,283 @@
1
+ const _doc_flat_locale_en = {
2
+ document_version_id: '01981ef7-6782-71a7-a779-3e36d9b2bc05',
3
+ document_id: '01981ef7-6782-71a7-a779-432fe33aaa80',
4
+ path: 'my-first-bulk-document-13325',
5
+ status: 'draft',
6
+ created_at: '2025-07-18T19:16:27.138Z',
7
+ updated_at: '2025-07-18T19:16:27.138Z',
8
+ fields: [
9
+ {
10
+ field_path: 'path',
11
+ field_name: 'path',
12
+ locale: 'all',
13
+ field_type: 'text',
14
+ value: 'my-first-bulk-document-13325',
15
+ },
16
+ {
17
+ field_path: 'publishedOn',
18
+ field_name: 'publishedOn',
19
+ locale: 'all',
20
+ field_type: 'datetime',
21
+ date_type: 'datetime',
22
+ value_time: null,
23
+ value_date: null,
24
+ value_timestamp_tz: '2024-01-15 03:00:00+00',
25
+ },
26
+ {
27
+ field_path: 'title',
28
+ field_name: 'title',
29
+ locale: 'en',
30
+ field_type: 'text',
31
+ value: 'A bulk created document. 981',
32
+ },
33
+ {
34
+ field_path: 'summary',
35
+ field_name: 'summary',
36
+ locale: 'en',
37
+ field_type: 'text',
38
+ value: 'This is a sample document for testing purposes.',
39
+ },
40
+ {
41
+ field_path: 'featured',
42
+ field_name: 'featured',
43
+ locale: 'all',
44
+ field_type: 'boolean',
45
+ value: false,
46
+ },
47
+ {
48
+ field_path: 'content.0.richTextBlock.0.richText',
49
+ field_name: 'richText',
50
+ locale: 'en',
51
+ parent_path: 'content.0.richTextBlock.0',
52
+ field_type: 'richText',
53
+ value: {
54
+ root: {
55
+ type: 'root',
56
+ format: '',
57
+ indent: 0,
58
+ version: 1,
59
+ children: [
60
+ {
61
+ type: 'paragraph',
62
+ format: '',
63
+ indent: 0,
64
+ version: 1,
65
+ children: [
66
+ {
67
+ mode: 'normal',
68
+ text: 'Some richtext here...',
69
+ type: 'text',
70
+ style: '',
71
+ detail: 0,
72
+ format: 0,
73
+ version: 1,
74
+ },
75
+ ],
76
+ direction: 'ltr',
77
+ textStyle: '',
78
+ textFormat: 0,
79
+ },
80
+ ],
81
+ direction: 'ltr',
82
+ },
83
+ },
84
+ },
85
+ {
86
+ field_path: 'content.0.richTextBlock.1.constrainedWidth',
87
+ field_name: 'constrainedWidth',
88
+ locale: 'all',
89
+ parent_path: 'content.0.richTextBlock.1',
90
+ field_type: 'boolean',
91
+ value: true,
92
+ },
93
+ {
94
+ field_path: 'content.1.photoBlock.0.display',
95
+ field_name: 'display',
96
+ locale: 'all',
97
+ parent_path: 'content.1.photoBlock.0',
98
+ field_type: 'text',
99
+ value: 'wide',
100
+ },
101
+ {
102
+ field_path: 'content.1.photoBlock.1.photo',
103
+ field_name: 'photo',
104
+ locale: 'all',
105
+ parent_path: 'content.1.photoBlock.1',
106
+ field_type: 'file',
107
+ file_id: '01981ef7-2e41-7084-add9-3bf27c9b27c3',
108
+ filename: 'docs-photo-01.jpg',
109
+ original_filename: 'some-original-filename.jpg',
110
+ mime_type: 'image/jpeg',
111
+ file_size: '123456',
112
+ storage_provider: 'local',
113
+ storage_path: 'uploads/docs-photo-01.jpg',
114
+ storage_url: null,
115
+ file_hash: null,
116
+ image_width: null,
117
+ image_height: null,
118
+ image_format: null,
119
+ processing_status: 'pending',
120
+ thumbnail_generated: false,
121
+ },
122
+ {
123
+ field_path: 'content.1.photoBlock.2.alt',
124
+ field_name: 'alt',
125
+ locale: 'all',
126
+ parent_path: 'content.1.photoBlock.2',
127
+ field_type: 'text',
128
+ value: 'Some alt text here',
129
+ },
130
+ {
131
+ field_path: 'content.1.photoBlock.3.caption',
132
+ field_name: 'caption',
133
+ locale: 'en',
134
+ parent_path: 'content.1.photoBlock.3',
135
+ field_type: 'richText',
136
+ value: {
137
+ root: {
138
+ type: 'root',
139
+ format: '',
140
+ indent: 0,
141
+ version: 1,
142
+ children: [
143
+ {
144
+ type: 'paragraph',
145
+ format: '',
146
+ indent: 0,
147
+ version: 1,
148
+ children: [
149
+ {
150
+ mode: 'normal',
151
+ text: 'Here is a richtext field Here is a richtext field Here is a richtext field Here is a rich text field.',
152
+ type: 'text',
153
+ style: '',
154
+ detail: 0,
155
+ format: 0,
156
+ version: 1,
157
+ },
158
+ ],
159
+ direction: 'ltr',
160
+ textStyle: '',
161
+ textFormat: 0,
162
+ },
163
+ ],
164
+ direction: 'ltr',
165
+ },
166
+ },
167
+ },
168
+ {
169
+ field_path: 'links.0.link',
170
+ field_name: 'link',
171
+ locale: 'all',
172
+ parent_path: 'links.0',
173
+ field_type: 'text',
174
+ value: 'https://example.com',
175
+ },
176
+ {
177
+ field_path: 'links.1.link',
178
+ field_name: 'link',
179
+ locale: 'all',
180
+ parent_path: 'links.1',
181
+ field_type: 'text',
182
+ value: 'https://another-example.com',
183
+ },
184
+ {
185
+ field_path: 'reviews.0.reviewItem.0.rating',
186
+ field_name: 'rating',
187
+ locale: 'all',
188
+ parent_path: 'reviews.0.reviewItem.0',
189
+ field_type: 'integer',
190
+ number_type: 'integer',
191
+ value_integer: 5,
192
+ value_decimal: null,
193
+ value_float: null,
194
+ },
195
+ {
196
+ field_path: 'reviews.0.reviewItem.1.comment',
197
+ field_name: 'comment',
198
+ locale: 'all',
199
+ parent_path: 'reviews.0.reviewItem.1',
200
+ field_type: 'richText',
201
+ value: {
202
+ root: {
203
+ type: 'root',
204
+ format: '',
205
+ indent: 0,
206
+ version: 1,
207
+ children: [
208
+ {
209
+ type: 'paragraph',
210
+ format: '',
211
+ indent: 0,
212
+ version: 1,
213
+ children: [
214
+ {
215
+ mode: 'normal',
216
+ text: 'Some review text here...',
217
+ type: 'text',
218
+ style: '',
219
+ detail: 0,
220
+ format: 0,
221
+ version: 1,
222
+ },
223
+ ],
224
+ direction: 'ltr',
225
+ textStyle: '',
226
+ textFormat: 0,
227
+ },
228
+ ],
229
+ direction: 'ltr',
230
+ },
231
+ },
232
+ },
233
+ {
234
+ field_path: 'reviews.1.reviewItem.0.rating',
235
+ field_name: 'rating',
236
+ locale: 'all',
237
+ parent_path: 'reviews.1.reviewItem.0',
238
+ field_type: 'integer',
239
+ number_type: 'integer',
240
+ value_integer: 3,
241
+ value_decimal: null,
242
+ value_float: null,
243
+ },
244
+ {
245
+ field_path: 'reviews.1.reviewItem.1.comment',
246
+ field_name: 'comment',
247
+ locale: 'all',
248
+ parent_path: 'reviews.1.reviewItem.1',
249
+ field_type: 'richText',
250
+ value: {
251
+ root: {
252
+ type: 'root',
253
+ format: '',
254
+ indent: 0,
255
+ version: 1,
256
+ children: [
257
+ {
258
+ type: 'paragraph',
259
+ format: '',
260
+ indent: 0,
261
+ version: 1,
262
+ children: [
263
+ {
264
+ mode: 'normal',
265
+ text: 'Some review text here...',
266
+ type: 'text',
267
+ style: '',
268
+ detail: 0,
269
+ format: 0,
270
+ version: 1,
271
+ },
272
+ ],
273
+ direction: 'ltr',
274
+ textStyle: '',
275
+ textFormat: 0,
276
+ },
277
+ ],
278
+ direction: 'ltr',
279
+ },
280
+ },
281
+ },
282
+ ],
283
+ }