@brunoalz/smartgesti-site-editor 1.7.0 → 1.9.0

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 (37) hide show
  1. package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts.map +1 -1
  2. package/dist/engine/export/exporters/sections/BlogPostExporters.js +585 -227
  3. package/dist/engine/export/exporters/sections/BlogPostExporters.js.map +1 -1
  4. package/dist/engine/plugins/builtin/blog/manifest.d.ts.map +1 -1
  5. package/dist/engine/plugins/builtin/blog/manifest.js +264 -112
  6. package/dist/engine/plugins/builtin/blog/manifest.js.map +1 -1
  7. package/dist/engine/plugins/contentHydration.js +93 -77
  8. package/dist/engine/plugins/contentHydration.js.map +1 -1
  9. package/dist/engine/registry/blocks/sections/blogCategoryFilter.d.ts.map +1 -1
  10. package/dist/engine/registry/blocks/sections/blogCategoryFilter.js +0 -1
  11. package/dist/engine/registry/blocks/sections/blogCategoryFilter.js.map +1 -1
  12. package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts.map +1 -1
  13. package/dist/engine/registry/blocks/sections/blogPostGrid.js +321 -6
  14. package/dist/engine/registry/blocks/sections/blogPostGrid.js.map +1 -1
  15. package/dist/engine/registry/blocks/sections/blogRecentPosts.d.ts.map +1 -1
  16. package/dist/engine/registry/blocks/sections/blogRecentPosts.js +11 -2
  17. package/dist/engine/registry/blocks/sections/blogRecentPosts.js.map +1 -1
  18. package/dist/engine/registry/blocks/sections/blogTagCloud.d.ts.map +1 -1
  19. package/dist/engine/registry/blocks/sections/blogTagCloud.js +0 -1
  20. package/dist/engine/registry/blocks/sections/blogTagCloud.js.map +1 -1
  21. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts.map +1 -1
  22. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js +35 -33
  23. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js.map +1 -1
  24. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts.map +1 -1
  25. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js +251 -66
  26. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js.map +1 -1
  27. package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.d.ts.map +1 -1
  28. package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.js +31 -30
  29. package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.js.map +1 -1
  30. package/dist/engine/schema/siteDocument.d.ts +36 -1
  31. package/dist/engine/schema/siteDocument.d.ts.map +1 -1
  32. package/dist/engine/schema/siteDocument.js.map +1 -1
  33. package/dist/engine/shared/iconUtils.d.ts +25 -0
  34. package/dist/engine/shared/iconUtils.d.ts.map +1 -0
  35. package/dist/engine/shared/iconUtils.js +43 -0
  36. package/dist/engine/shared/iconUtils.js.map +1 -0
  37. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { pluginRegistry as f } from "../../pluginRegistry.js";
2
- import { logger as d } from "../../../../utils/logger.js";
2
+ import { logger as g } from "../../../../utils/logger.js";
3
3
  const m = "plugin-blog-home-grid", c = [
4
4
  {
5
5
  title: "Feira de Ciências 2026: Inovação e Criatividade",
6
6
  excerpt: "Nossos alunos apresentaram projetos incríveis na Feira de Ciências deste ano. Confira os destaques e premiações!",
7
- image: "https://images.unsplash.com/photo-1567168544230-3b9e5ec47659?w=800&h=400&fit=crop",
7
+ image: "https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=800&h=400&fit=crop",
8
8
  category: "Eventos",
9
9
  date: "05 Fev 2026",
10
10
  linkHref: "/site/p/blog/feira-de-ciencias-2026",
@@ -13,7 +13,7 @@ const m = "plugin-blog-home-grid", c = [
13
13
  {
14
14
  title: "Matrículas Abertas para o Segundo Semestre",
15
15
  excerpt: "Garanta a vaga do seu filho na melhor escola da região. Condições especiais para matrículas antecipadas.",
16
- image: "https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=800&h=400&fit=crop",
16
+ image: "https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=800&h=400&fit=crop",
17
17
  category: "Institucional",
18
18
  date: "01 Fev 2026",
19
19
  linkHref: "/site/p/blog/matriculas-segundo-semestre",
@@ -27,6 +27,96 @@ const m = "plugin-blog-home-grid", c = [
27
27
  date: "28 Jan 2026",
28
28
  linkHref: "/site/p/blog/dicas-preparar-ano-letivo",
29
29
  linkText: "Ler mais"
30
+ },
31
+ {
32
+ title: "Projeto de Robótica Conquista Prêmio Regional",
33
+ excerpt: "Nossa equipe de robótica conquistou o primeiro lugar na competição regional. Saiba como foi essa jornada!",
34
+ image: "https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=800&h=400&fit=crop",
35
+ category: "Conquistas",
36
+ date: "22 Jan 2026",
37
+ linkHref: "/site/p/blog/robotica-premio-regional",
38
+ linkText: "Ler mais"
39
+ },
40
+ {
41
+ title: "Como a Tecnologia Transforma a Educação",
42
+ excerpt: "Descubra como ferramentas digitais e metodologias ativas estão revolucionando o aprendizado em sala de aula.",
43
+ image: "https://images.unsplash.com/photo-1509062522246-3755977927d7?w=800&h=400&fit=crop",
44
+ category: "Educação",
45
+ date: "18 Jan 2026",
46
+ linkHref: "/site/p/blog/tecnologia-educacao",
47
+ linkText: "Ler mais"
48
+ },
49
+ {
50
+ title: "Calendário Escolar 2026: Datas Importantes",
51
+ excerpt: "Confira todas as datas importantes do ano letivo 2026, incluindo feriados, provas e eventos especiais.",
52
+ image: "https://images.unsplash.com/photo-1506784983877-45594efa4cbe?w=800&h=400&fit=crop",
53
+ category: "Institucional",
54
+ date: "10 Jan 2026",
55
+ linkHref: "/site/p/blog/calendario-escolar-2026",
56
+ linkText: "Ler mais"
57
+ },
58
+ {
59
+ title: "Atividades Extracurriculares: Inscrições Abertas",
60
+ excerpt: "Música, esportes, artes e idiomas. Conheça as atividades disponíveis e inscreva seu filho!",
61
+ image: "https://images.unsplash.com/photo-1571260899304-425eee4c7efc?w=800&h=400&fit=crop",
62
+ category: "Novidades",
63
+ date: "05 Jan 2026",
64
+ linkHref: "/site/p/blog/atividades-extracurriculares",
65
+ linkText: "Ler mais"
66
+ },
67
+ {
68
+ title: "Parceria com Universidades para Projetos de Pesquisa",
69
+ excerpt: "Alunos do Ensino Médio agora podem participar de projetos de iniciação científica em parceria com universidades da região.",
70
+ image: "https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=800&h=400&fit=crop",
71
+ category: "Conquistas",
72
+ date: "28 Dez 2025",
73
+ linkHref: "/site/p/blog/parceria-universidades",
74
+ linkText: "Ler mais"
75
+ },
76
+ {
77
+ title: "Semana da Leitura: Escritores Visitam a Escola",
78
+ excerpt: "Autores renomados da literatura infanto-juvenil participaram de bate-papos e oficinas com nossos alunos.",
79
+ image: "https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=800&h=400&fit=crop",
80
+ category: "Eventos",
81
+ date: "20 Dez 2025",
82
+ linkHref: "/site/p/blog/semana-leitura",
83
+ linkText: "Ler mais"
84
+ },
85
+ {
86
+ title: "Olimpíada de Matemática: Resultados Impressionantes",
87
+ excerpt: "Nossos alunos conquistaram 5 medalhas de ouro e 8 de prata na Olimpíada Regional de Matemática 2025.",
88
+ image: "https://images.unsplash.com/photo-1635070041078-e363dbe005cb?w=800&h=400&fit=crop",
89
+ category: "Conquistas",
90
+ date: "15 Dez 2025",
91
+ linkHref: "/site/p/blog/olimpiada-matematica",
92
+ linkText: "Ler mais"
93
+ },
94
+ {
95
+ title: "Nova Biblioteca Digital para Alunos e Professores",
96
+ excerpt: "A escola lança plataforma digital com mais de 10.000 livros, artigos e materiais didáticos acessíveis de qualquer dispositivo.",
97
+ image: "https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=800&h=400&fit=crop",
98
+ category: "Novidades",
99
+ date: "10 Dez 2025",
100
+ linkHref: "/site/p/blog/biblioteca-digital",
101
+ linkText: "Ler mais"
102
+ },
103
+ {
104
+ title: "Formatura do Ensino Médio: Celebrando Conquistas",
105
+ excerpt: "Uma noite emocionante de celebração para os formandos de 2025. Confira os melhores momentos da cerimônia.",
106
+ image: "https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?w=800&h=400&fit=crop",
107
+ category: "Eventos",
108
+ date: "05 Dez 2025",
109
+ linkHref: "/site/p/blog/formatura-2025",
110
+ linkText: "Ler mais"
111
+ },
112
+ {
113
+ title: "Projeto Horta Escolar: Aprendendo com a Natureza",
114
+ excerpt: "Alunos do Fundamental cultivam alimentos orgânicos e aprendem sobre sustentabilidade, nutrição e trabalho em equipe.",
115
+ image: "https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=800&h=400&fit=crop",
116
+ category: "Educação",
117
+ date: "28 Nov 2025",
118
+ linkHref: "/site/p/blog/horta-escolar",
119
+ linkText: "Ler mais"
30
120
  }
31
121
  ], v = `
32
122
  <h2>O que é a Feira de Ciências?</h2>
@@ -58,8 +148,8 @@ const m = "plugin-blog-home-grid", c = [
58
148
  <p>Os três projetos finalistas representarão nossa escola na <strong>Feira Regional de Ciências</strong>, que acontecerá em março na capital. Os alunos já estão se preparando para levar suas apresentações a um público ainda maior.</p>
59
149
  <p>Parabéns a todos os participantes, professores orientadores e famílias que apoiaram essa jornada de descobertas!</p>
60
150
  `.trim();
61
- function b(t, n) {
62
- return { ...JSON.parse(JSON.stringify(t)), id: n };
151
+ function b(i, p) {
152
+ return { ...JSON.parse(JSON.stringify(i)), id: p };
63
153
  }
64
154
  const y = {
65
155
  manifest: {
@@ -127,105 +217,172 @@ const y = {
127
217
  requiredPages: ["blog-listing", "blog-post"]
128
218
  }
129
219
  },
130
- onActivate(t) {
131
- d.debug("Blog plugin activating...");
132
- const n = new Set(t.pages.map((e) => e.id)), a = [...t.pages], i = t.pages.find((e) => e.slug === "home") || t.pages[0], l = i?.structure.find((e) => e.type === "navbar"), r = i?.structure.find((e) => e.type === "footer");
133
- if (i && l) {
134
- const e = a.findIndex((o) => o.id === i.id);
220
+ onActivate(i) {
221
+ g.debug("Blog plugin activating...");
222
+ const p = new Set(i.pages.map((e) => e.id)), t = [...i.pages], s = i.pages.find((e) => e.slug === "home") || i.pages[0], n = s?.structure.find((e) => e.type === "navbar"), r = s?.structure.find((e) => e.type === "footer");
223
+ if (s && n) {
224
+ const e = t.findIndex((o) => o.id === s.id);
135
225
  if (e >= 0) {
136
- const o = l.props, s = Array.isArray(o.links) ? [...o.links] : [];
137
- if (!s.some(
138
- (p) => p.href === "/p/blog"
226
+ const o = n.props;
227
+ let a = Array.isArray(o.links) ? [...o.links] : [];
228
+ if (a = a.filter((d) => d.href !== "/p/blog"), !a.some(
229
+ (d) => d.href === "/site/p/blog"
139
230
  )) {
140
- const p = s.length > 0 ? s.length - 1 : 0;
141
- s.splice(p, 0, { text: "Blog", href: "/p/blog" });
142
- const h = a[e].structure.map((u) => u.id === l.id ? { ...u, props: { ...u.props, links: s } } : u);
143
- a[e] = { ...a[e], structure: h }, d.debug("Blog link added to home navbar"), l.props = { ...o, links: s };
231
+ const d = a.length > 0 ? a.length - 1 : 0;
232
+ a.splice(d, 0, { text: "Blog", href: "/site/p/blog" });
233
+ const h = t[e].structure.map((u) => u.id === n.id ? { ...u, props: { ...u.props, links: a } } : u);
234
+ t[e] = { ...t[e], structure: h }, g.debug("Blog link added to home navbar"), n.props = { ...o, links: a };
144
235
  }
145
236
  }
146
237
  }
147
- if (i) {
148
- const e = a.findIndex((s) => s.id === i.id), o = i.structure.some(
149
- (s) => s.id === m
238
+ if (s) {
239
+ const e = t.findIndex((a) => a.id === s.id), o = s.structure.some(
240
+ (a) => a.id === m
150
241
  );
151
242
  if (e >= 0 && !o) {
152
- const s = {
243
+ const a = {
153
244
  id: m,
154
245
  type: "blogPostGrid",
155
246
  props: {
156
247
  title: "Blog",
157
248
  subtitle: "Últimas publicações",
158
249
  columns: 3,
159
- cards: c,
250
+ cards: c.slice(0, 3),
160
251
  variant: "default",
161
252
  showViewAll: !0,
162
253
  viewAllText: "Ver todos os posts",
163
254
  viewAllHref: "/site/p/blog"
164
255
  }
165
- }, g = [...a[e].structure], p = g.findIndex(
256
+ }, l = [...t[e].structure], d = l.findIndex(
166
257
  (h) => h.type === "footer"
167
258
  );
168
- p >= 0 ? g.splice(p, 0, s) : g.push(s), a[e] = {
169
- ...a[e],
170
- structure: g
171
- }, d.debug("Blog section injected into home page");
259
+ d >= 0 ? l.splice(d, 0, a) : l.push(a), t[e] = {
260
+ ...t[e],
261
+ structure: l
262
+ }, g.debug("Blog section injected into home page");
172
263
  }
173
264
  }
174
- if (!n.has("blog")) {
265
+ if (!p.has("blog")) {
175
266
  const e = [];
176
- l && e.push(b(l, "blog-page-navbar")), e.push({
177
- id: "blog-page-hero",
178
- type: "hero",
179
- props: {
180
- title: "Blog",
181
- subtitle: "Novidades & Publicações",
182
- description: "Acompanhe as últimas novidades, eventos e conquistas da nossa comunidade escolar.",
183
- variant: "centered",
184
- align: "center",
185
- overlay: !0,
186
- overlayColor: "rgba(79, 70, 229, 0.9)",
187
- background: "#4f46e5",
188
- minHeight: "280px"
189
- }
190
- }), e.push({
191
- id: "blog-search-bar",
192
- type: "blogSearchBar",
193
- props: {
194
- placeholder: "Buscar posts...",
195
- variant: "simple",
196
- showIcon: !0,
197
- searchUrl: "/site/p/blog"
198
- }
199
- }), e.push({
200
- id: "blog-category-filter",
201
- type: "blogCategoryFilter",
202
- props: {
203
- title: "",
204
- categories: c.map((o) => ({
205
- name: o.category,
206
- slug: o.category.toLowerCase().replace(/\s+/g, "-"),
207
- count: 1
208
- })),
209
- variant: "chips",
210
- showCount: !1,
211
- showAll: !0,
212
- allLabel: "Todas",
213
- filterUrl: "/site/p/blog"
214
- }
215
- }), e.push({
216
- id: "blog-grid-main",
217
- type: "blogPostGrid",
267
+ n && e.push(b(n, "blog-page-navbar"));
268
+ const o = [...new Set(c.map((a) => a.category))];
269
+ e.push({
270
+ id: "blog-listing-layout",
271
+ type: "grid",
218
272
  props: {
219
- title: "",
220
- subtitle: "",
221
- columns: 3,
222
- cards: c,
223
- variant: "default",
224
- showViewAll: !1,
225
- viewAllText: "Ver todos",
226
- viewAllHref: "/site/p/blog"
273
+ cols: 2,
274
+ colTemplate: "1fr 320px",
275
+ gap: "2.5rem",
276
+ maxWidth: "1200px",
277
+ padding: "2rem",
278
+ paddingTop: "7rem",
279
+ paddingBottom: "6rem",
280
+ bg: "var(--sg-bg)",
281
+ children: [
282
+ // Coluna principal: blogPostGrid com variant "magazine"
283
+ {
284
+ id: "blog-grid-main",
285
+ type: "blogPostGrid",
286
+ props: {
287
+ title: "",
288
+ subtitle: "",
289
+ columns: 3,
290
+ cards: c,
291
+ variant: "magazine",
292
+ showViewAll: !1
293
+ }
294
+ },
295
+ // Sidebar: stack vertical com widgets
296
+ {
297
+ id: "blog-listing-sidebar",
298
+ type: "stack",
299
+ props: {
300
+ direction: "col",
301
+ gap: "1.5rem",
302
+ sticky: !0,
303
+ stickyOffset: "100px",
304
+ children: [
305
+ {
306
+ id: "blog-listing-search",
307
+ type: "blogSearchBar",
308
+ props: {
309
+ placeholder: "Buscar posts...",
310
+ variant: "simple",
311
+ showIcon: !0,
312
+ searchUrl: "/site/p/blog",
313
+ borderRadius: "0.75rem",
314
+ shadow: "sm"
315
+ }
316
+ },
317
+ {
318
+ id: "blog-listing-categories",
319
+ type: "blogCategoryFilter",
320
+ props: {
321
+ title: "Categorias",
322
+ categories: o.map((a) => ({
323
+ name: a,
324
+ slug: a.toLowerCase().replace(/\s+/g, "-"),
325
+ count: c.filter((l) => l.category === a).length
326
+ })),
327
+ variant: "list",
328
+ showCount: !0,
329
+ showAll: !0,
330
+ allLabel: "Todas",
331
+ filterUrl: "/site/p/blog",
332
+ linkColor: "#374151",
333
+ linkHoverColor: "#2563eb",
334
+ borderRadius: "0.75rem",
335
+ shadow: "sm"
336
+ }
337
+ },
338
+ {
339
+ id: "blog-listing-recent",
340
+ type: "blogRecentPosts",
341
+ props: {
342
+ title: "Posts Recentes",
343
+ count: 5,
344
+ showThumbnail: !0,
345
+ showDate: !0,
346
+ showCategory: !1,
347
+ posts: c.map((a) => ({
348
+ title: a.title,
349
+ slug: a.linkHref.replace("/site/p/blog/", ""),
350
+ date: a.date,
351
+ image: a.image,
352
+ category: a.category
353
+ })),
354
+ linkColor: "#374151",
355
+ linkHoverColor: "#2563eb",
356
+ borderRadius: "0.75rem",
357
+ shadow: "sm"
358
+ }
359
+ },
360
+ {
361
+ id: "blog-listing-tags",
362
+ type: "blogTagCloud",
363
+ props: {
364
+ title: "Tags",
365
+ tags: [
366
+ { name: "Eventos", count: 3 },
367
+ { name: "Educação", count: 4 },
368
+ { name: "Institucional", count: 2 },
369
+ { name: "Tecnologia", count: 2 },
370
+ { name: "Conquistas", count: 1 },
371
+ { name: "Sustentabilidade", count: 1 }
372
+ ],
373
+ variant: "badges",
374
+ linkColor: "#374151",
375
+ linkHoverColor: "#2563eb",
376
+ borderRadius: "0.75rem",
377
+ shadow: "sm"
378
+ }
379
+ }
380
+ ]
381
+ }
382
+ }
383
+ ]
227
384
  }
228
- }), r && e.push(b(r, "blog-page-footer")), a.push({
385
+ }), r && e.push(b(r, "blog-page-footer")), t.push({
229
386
  id: "blog",
230
387
  name: "Blog",
231
388
  slug: "blog",
@@ -237,15 +394,11 @@ const y = {
237
394
  mode: "list",
238
395
  defaultParams: { limit: 15 }
239
396
  }
240
- }), d.debug("Blog listing page created");
397
+ }), g.debug("Blog listing page created with magazine layout");
241
398
  }
242
- if (!n.has("blog-post")) {
399
+ if (!p.has("blog-post")) {
243
400
  const e = [];
244
- if (l) {
245
- const o = b(l, "post-page-navbar");
246
- o.props.sticky = !0, e.push(o);
247
- }
248
- e.push({
401
+ n && e.push(b(n, "post-page-navbar")), e.push({
249
402
  id: "blog-detail-layout",
250
403
  type: "grid",
251
404
  props: {
@@ -254,7 +407,7 @@ const y = {
254
407
  gap: "2.5rem",
255
408
  maxWidth: "1200px",
256
409
  padding: "2rem",
257
- paddingTop: "6rem",
410
+ paddingTop: "7rem",
258
411
  paddingBottom: "6rem",
259
412
  bg: "var(--sg-bg)",
260
413
  children: [
@@ -265,7 +418,7 @@ const y = {
265
418
  props: {
266
419
  title: "Feira de Ciências 2026: Inovação e Criatividade",
267
420
  content: v,
268
- featuredImage: "https://images.unsplash.com/photo-1567168544230-3b9e5ec47659?w=1200&h=600&fit=crop",
421
+ featuredImage: "https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1200&h=600&fit=crop",
269
422
  date: "05 Fev 2026",
270
423
  category: "Eventos",
271
424
  authorVariant: "inline",
@@ -288,7 +441,6 @@ const y = {
288
441
  gap: "1.5rem",
289
442
  sticky: !0,
290
443
  stickyOffset: "100px",
291
- paddingBottom: "6rem",
292
444
  children: [
293
445
  {
294
446
  id: "blog-sidebar-search",
@@ -368,7 +520,7 @@ const y = {
368
520
  }
369
521
  ]
370
522
  }
371
- }), r && e.push(b(r, "post-page-footer")), a.push({
523
+ }), r && e.push(b(r, "post-page-footer")), t.push({
372
524
  id: "blog-post",
373
525
  name: "Post",
374
526
  slug: "blog/:slug",
@@ -384,48 +536,48 @@ const y = {
384
536
  editRestrictions: {
385
537
  nonRemovable: !0
386
538
  }
387
- }), d.debug("Blog post detail page created with sidebar layout");
539
+ }), g.debug("Blog post detail page created with sidebar layout");
388
540
  }
389
541
  return {
390
- ...t,
391
- pages: a
542
+ ...i,
543
+ pages: t
392
544
  };
393
545
  },
394
- onDeactivate(t) {
395
- d.debug("Blog plugin deactivating...");
396
- const n = t.pages.filter((a) => a.pluginId !== "blog").map((a) => {
397
- let i = a.structure;
398
- return i.some(
546
+ onDeactivate(i) {
547
+ g.debug("Blog plugin deactivating...");
548
+ const p = i.pages.filter((t) => t.pluginId !== "blog").map((t) => {
549
+ let s = t.structure;
550
+ return s.some(
399
551
  (r) => r.id === m
400
- ) && (i = i.filter(
552
+ ) && (s = s.filter(
401
553
  (r) => r.id !== m
402
- )), i = i.map((r) => {
554
+ )), s = s.map((r) => {
403
555
  if (r.type !== "navbar") return r;
404
- const e = r.props, o = Array.isArray(e.links) ? e.links : [], s = o.filter((g) => g.href !== "/p/blog");
405
- return s.length !== o.length ? { ...r, props: { ...e, links: s } } : r;
406
- }), i !== a.structure ? { ...a, structure: i } : a;
556
+ const e = r.props, o = Array.isArray(e.links) ? e.links : [], a = o.filter((l) => l.href !== "/site/p/blog" && l.href !== "/p/blog");
557
+ return a.length !== o.length ? { ...r, props: { ...e, links: a } } : r;
558
+ }), s !== t.structure ? { ...t, structure: s } : t;
407
559
  });
408
- return d.debug(
409
- `Removed ${t.pages.length - n.length} blog page(s) and injected section`
560
+ return g.debug(
561
+ `Removed ${i.pages.length - p.length} blog page(s) and injected section`
410
562
  ), {
411
- ...t,
412
- pages: n
563
+ ...i,
564
+ pages: p
413
565
  };
414
566
  },
415
- getEditorRestrictions(t) {
416
- if (t === "blogPostDetail")
567
+ getEditorRestrictions(i) {
568
+ if (i === "blogPostDetail")
417
569
  return {
418
570
  lockedFields: ["content", "date"]
419
571
  };
420
- if (t === "blogCategoryFilter")
572
+ if (i === "blogCategoryFilter")
421
573
  return {
422
574
  lockedFields: ["categories"]
423
575
  };
424
- if (t === "blogRecentPosts")
576
+ if (i === "blogRecentPosts")
425
577
  return {
426
578
  lockedFields: ["posts"]
427
579
  };
428
- if (t === "blogTagCloud")
580
+ if (i === "blogTagCloud")
429
581
  return {
430
582
  lockedFields: ["tags"]
431
583
  };