@thanh01.pmt/presentation-kit 0.2.1 → 0.2.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.
@@ -0,0 +1,746 @@
1
+ import yaml from 'js-yaml';
2
+
3
+ // src/core/layout/serializer.ts
4
+ function serializeLayoutToComment(layout) {
5
+ if (!layout.boxes || layout.boxes.length === 0) return "";
6
+ const cleanData = {
7
+ boxes: layout.boxes.map((box) => {
8
+ const b = {
9
+ id: box.id,
10
+ target: box.target || `h1`,
11
+ pos: [
12
+ Math.round(box.pos[0]),
13
+ Math.round(box.pos[1]),
14
+ Math.round(box.pos[2]),
15
+ Math.round(box.pos[3])
16
+ ]
17
+ };
18
+ if (box.fontSize) b.fontSize = box.fontSize;
19
+ if (box.color) b.color = box.color;
20
+ if (box.textAlign) b.textAlign = box.textAlign;
21
+ if (box.style) b.style = box.style;
22
+ return b;
23
+ })
24
+ };
25
+ const yamlStr = yaml.dump(cleanData, {
26
+ indent: 2,
27
+ lineWidth: -1,
28
+ noRefs: true
29
+ }).trim();
30
+ return `<!-- layout:
31
+ ${yamlStr.split("\n").join("\n ")}
32
+ -->`;
33
+ }
34
+ function splitMarkdownSlides(markdown) {
35
+ const lines = markdown.split("\n");
36
+ let frontmatter = null;
37
+ const slideBuffers = [];
38
+ let currentBuffer = [];
39
+ let inCodeFence = false;
40
+ let lineIdx = 0;
41
+ if (lines.length > 0 && lines[0].trim() === "---") {
42
+ const fmBuffer = [lines[0]];
43
+ lineIdx = 1;
44
+ while (lineIdx < lines.length) {
45
+ const line = lines[lineIdx];
46
+ fmBuffer.push(line);
47
+ if (line.trim() === "---") {
48
+ frontmatter = fmBuffer.join("\n");
49
+ lineIdx++;
50
+ break;
51
+ }
52
+ lineIdx++;
53
+ }
54
+ }
55
+ for (let i = lineIdx; i < lines.length; i++) {
56
+ const line = lines[i];
57
+ if (/^```/.test(line.trim())) {
58
+ inCodeFence = !inCodeFence;
59
+ currentBuffer.push(line);
60
+ continue;
61
+ }
62
+ if (!inCodeFence && line.trim() === "---") {
63
+ slideBuffers.push(currentBuffer);
64
+ currentBuffer = [];
65
+ continue;
66
+ }
67
+ currentBuffer.push(line);
68
+ }
69
+ slideBuffers.push(currentBuffer);
70
+ const slides = slideBuffers.map((b) => b.join("\n"));
71
+ return { frontmatter, slides };
72
+ }
73
+ function updateSlideLayoutInMarkdown(markdown, slideIndex, layout) {
74
+ const { frontmatter, slides } = splitMarkdownSlides(markdown);
75
+ if (slideIndex < 0 || slideIndex >= slides.length) {
76
+ return markdown;
77
+ }
78
+ let slideContent = slides[slideIndex];
79
+ const layoutCommentRegex = /<!--\s*layout:\s*[\s\S]*?-->/i;
80
+ const newComment = layout && layout.boxes && layout.boxes.length > 0 ? serializeLayoutToComment(layout) : "";
81
+ if (layoutCommentRegex.test(slideContent)) {
82
+ if (newComment) {
83
+ slideContent = slideContent.replace(layoutCommentRegex, newComment);
84
+ } else {
85
+ slideContent = slideContent.replace(layoutCommentRegex, "").trim();
86
+ }
87
+ } else if (newComment) {
88
+ const trimmed = slideContent.trimStart();
89
+ slideContent = `${newComment}
90
+
91
+ ${trimmed}`;
92
+ }
93
+ slides[slideIndex] = slideContent;
94
+ const joinedSlides = slides.join("\n---\n");
95
+ if (frontmatter) {
96
+ return `${frontmatter}
97
+
98
+ ${joinedSlides}`;
99
+ }
100
+ return joinedSlides;
101
+ }
102
+
103
+ // src/core/layout/presets.ts
104
+ var SLIDE_LAYOUT_PRESETS = [
105
+ {
106
+ id: "title-hero",
107
+ name: "Title & Speaker Cover",
108
+ category: "cover",
109
+ description: "High-impact opening slide with large title, subtitle, and speaker credentials.",
110
+ layout: {
111
+ boxes: [
112
+ {
113
+ id: "title",
114
+ target: "h1",
115
+ pos: [100, 180, 1080, 140],
116
+ fontSize: "3rem",
117
+ textAlign: "center"
118
+ },
119
+ {
120
+ id: "subtitle",
121
+ target: "h3",
122
+ pos: [100, 350, 1080, 70],
123
+ fontSize: "1.5rem",
124
+ textAlign: "center"
125
+ },
126
+ {
127
+ id: "speaker-meta",
128
+ target: "p",
129
+ pos: [100, 460, 1080, 80],
130
+ fontSize: "1.1rem",
131
+ textAlign: "center"
132
+ }
133
+ ]
134
+ },
135
+ markdownSnippet: `<!-- layout:
136
+ boxes:
137
+ - id: title
138
+ target: h1
139
+ pos: [100, 180, 1080, 140]
140
+ fontSize: 3rem
141
+ textAlign: center
142
+ - id: subtitle
143
+ target: h3
144
+ pos: [100, 350, 1080, 70]
145
+ fontSize: 1.5rem
146
+ textAlign: center
147
+ - id: speaker-meta
148
+ target: p
149
+ pos: [100, 460, 1080, 80]
150
+ fontSize: 1.1rem
151
+ textAlign: center
152
+ -->
153
+
154
+ # \u{1F680} Engineering Scalable Cloud Systems
155
+ ### Principles, Bottlenecks, and Real-World Architecture Patterns
156
+
157
+ **Presenter:** Senior Systems Architect | **Duration:** 45 mins | **Level:** Intermediate
158
+
159
+ <!--
160
+ Presenter Notes:
161
+ - Welcome the audience and outline today's primary engineering goals.
162
+ - Spark curiosity with an opening hook about scaling under high concurrency.
163
+ -->`
164
+ },
165
+ {
166
+ id: "two-column-split",
167
+ name: "Two-Column Comparison",
168
+ category: "split",
169
+ description: "Balanced side-by-side comparison for legacy vs modern patterns or pros vs cons.",
170
+ layout: {
171
+ boxes: [
172
+ {
173
+ id: "heading",
174
+ target: "h2",
175
+ pos: [80, 50, 1120, 70],
176
+ fontSize: "2rem"
177
+ },
178
+ {
179
+ id: "col-left",
180
+ target: ".columns-2 > div:first-child",
181
+ pos: [80, 150, 530, 510]
182
+ },
183
+ {
184
+ id: "col-right",
185
+ target: ".columns-2 > div:last-child",
186
+ pos: [670, 150, 530, 510]
187
+ }
188
+ ]
189
+ },
190
+ markdownSnippet: `<!-- layout:
191
+ boxes:
192
+ - id: heading
193
+ target: h2
194
+ pos: [80, 50, 1120, 70]
195
+ fontSize: 2rem
196
+ - id: col-left
197
+ target: '.columns-2 > div:first-child'
198
+ pos: [80, 150, 530, 510]
199
+ - id: col-right
200
+ target: '.columns-2 > div:last-child'
201
+ pos: [670, 150, 530, 510]
202
+ -->
203
+
204
+ ## \u2696\uFE0F Monolithic Polling vs Event-Driven Architecture
205
+
206
+ <div class="columns-2">
207
+ <div>
208
+
209
+ ### \u{1F534} Legacy Polling
210
+ - Heavy database CPU overhead on idle cycles
211
+ - High network latency between updates
212
+ - Prone to cascading timeouts during spikes
213
+
214
+ </div>
215
+ <div>
216
+
217
+ ### \u{1F7E2} Event-Driven Streams
218
+ - Real-time event propagation via webhooks
219
+ - Zero idle compute waste with serverless consumers
220
+ - Automatic backpressure and queue isolation
221
+
222
+ </div>
223
+ </div>
224
+
225
+ <!--
226
+ Presenter Notes:
227
+ - Emphasize the core failure mode of periodic polling under sudden load spikes.
228
+ - Ask the room if anyone has experienced database lockups caused by polling loops.
229
+ -->`
230
+ },
231
+ {
232
+ id: "code-explainer",
233
+ name: "Code Walkthrough & Analysis",
234
+ category: "code",
235
+ description: "Syntax-highlighted code block on the left with step-by-step key annotations on the right.",
236
+ layout: {
237
+ boxes: [
238
+ {
239
+ id: "heading",
240
+ target: "h2",
241
+ pos: [80, 45, 1120, 65],
242
+ fontSize: "1.9rem"
243
+ },
244
+ {
245
+ id: "code-box",
246
+ target: ".columns-2 > div:first-child",
247
+ pos: [80, 135, 630, 535]
248
+ },
249
+ {
250
+ id: "notes-box",
251
+ target: ".columns-2 > div:last-child",
252
+ pos: [740, 135, 460, 535]
253
+ }
254
+ ]
255
+ },
256
+ markdownSnippet: `<!-- layout:
257
+ boxes:
258
+ - id: heading
259
+ target: h2
260
+ pos: [80, 45, 1120, 65]
261
+ fontSize: 1.9rem
262
+ - id: code-box
263
+ target: '.columns-2 > div:first-child'
264
+ pos: [80, 135, 630, 535]
265
+ - id: notes-box
266
+ target: '.columns-2 > div:last-child'
267
+ pos: [740, 135, 460, 535]
268
+ -->
269
+
270
+ ## \u{1F4BB} Robust Async Transaction Pipeline
271
+
272
+ <div class="columns-2">
273
+ <div>
274
+
275
+ \`\`\`ts
276
+ // Process payment with idempotency guarantee
277
+ export async function processPayment(order: Order) {
278
+ const isValid = await validateOrder(order);
279
+ if (!isValid) throw new Error("ValidationFailed");
280
+
281
+ const receipt = await chargeCard(order);
282
+ return sendConfirmation(receipt);
283
+ }
284
+ \`\`\`
285
+
286
+ </div>
287
+ <div>
288
+
289
+ ### \u{1F50D} Key Engineering Invariants:
290
+ 1. **Early Guard Clause:** Validates payload immediately at line 3 before triggering external calls.
291
+ 2. **Deterministic Sequence:** Enforces strict order of operations using native \`await\`.
292
+ 3. **Audit Trail:** Returns immutable payment receipt upon successful execution.
293
+
294
+ </div>
295
+ </div>
296
+
297
+ <!--
298
+ Presenter Notes:
299
+ - Walk through lines 1 to 7 sequentially.
300
+ - Cold-call check: "What happens if line 6 throws a network timeout?"
301
+ - Cognitive scaffolding: Highlight the importance of idempotency keys in payment APIs.
302
+ -->`
303
+ },
304
+ {
305
+ id: "metrics-3-card",
306
+ name: "3-Metric Key Results Grid",
307
+ category: "metrics",
308
+ description: "Three high-visibility KPI stat cards for benchmarks, impact, and success criteria.",
309
+ layout: {
310
+ boxes: [
311
+ {
312
+ id: "heading",
313
+ target: "h2",
314
+ pos: [80, 50, 1120, 70],
315
+ fontSize: "2rem",
316
+ textAlign: "center"
317
+ },
318
+ {
319
+ id: "metric-1",
320
+ target: ".columns-3 > div:nth-child(1)",
321
+ pos: [80, 165, 340, 485]
322
+ },
323
+ {
324
+ id: "metric-2",
325
+ target: ".columns-3 > div:nth-child(2)",
326
+ pos: [470, 165, 340, 485]
327
+ },
328
+ {
329
+ id: "metric-3",
330
+ target: ".columns-3 > div:nth-child(3)",
331
+ pos: [860, 165, 340, 485]
332
+ }
333
+ ]
334
+ },
335
+ markdownSnippet: `<!-- layout:
336
+ boxes:
337
+ - id: heading
338
+ target: h2
339
+ pos: [80, 50, 1120, 70]
340
+ fontSize: 2rem
341
+ textAlign: center
342
+ - id: metric-1
343
+ target: '.columns-3 > div:nth-child(1)'
344
+ pos: [80, 165, 340, 485]
345
+ - id: metric-2
346
+ target: '.columns-3 > div:nth-child(2)'
347
+ pos: [470, 165, 340, 485]
348
+ - id: metric-3
349
+ target: '.columns-3 > div:nth-child(3)'
350
+ pos: [860, 165, 340, 485]
351
+ -->
352
+
353
+ ## \u{1F4CA} Performance & Reliability Benchmarks
354
+
355
+ <div class="columns-3">
356
+ <div>
357
+
358
+ # \u26A1 99.99%
359
+ ### SLA Availability
360
+ High-availability multi-region cluster with automated failover routing.
361
+
362
+ </div>
363
+ <div>
364
+
365
+ # \u{1F680} 15ms
366
+ ### P99 Latency
367
+ Sub-20ms roundtrip response time via distributed edge caching.
368
+
369
+ </div>
370
+ <div>
371
+
372
+ # \u{1F6E1}\uFE0F Zero
373
+ ### Unhandled Breaches
374
+ Full SOC2 Type II compliance and end-to-end payload encryption.
375
+
376
+ </div>
377
+ </div>
378
+
379
+ <!--
380
+ Presenter Notes:
381
+ - Highlight the 15ms P99 latency target as the primary technical milestone.
382
+ - Connect these metrics directly to the architecture decisions discussed next.
383
+ -->`
384
+ },
385
+ {
386
+ id: "process-flow",
387
+ name: "Architecture & Process Flow",
388
+ category: "diagram",
389
+ description: "Multi-stage workflow with responsive Mermaid diagram and phase summaries.",
390
+ layout: {
391
+ boxes: [
392
+ {
393
+ id: "heading",
394
+ target: "h2",
395
+ pos: [80, 45, 1120, 65],
396
+ fontSize: "1.9rem"
397
+ },
398
+ {
399
+ id: "diagram-box",
400
+ target: "pre.mermaid, .mermaid",
401
+ pos: [80, 130, 1120, 310]
402
+ },
403
+ {
404
+ id: "summary-box",
405
+ target: "ul, p",
406
+ pos: [80, 465, 1120, 205]
407
+ }
408
+ ]
409
+ },
410
+ markdownSnippet: `<!-- layout:
411
+ boxes:
412
+ - id: heading
413
+ target: h2
414
+ pos: [80, 45, 1120, 65]
415
+ fontSize: 1.9rem
416
+ - id: diagram-box
417
+ target: 'pre.mermaid, .mermaid'
418
+ pos: [80, 130, 1120, 310]
419
+ - id: summary-box
420
+ target: 'ul, p'
421
+ pos: [80, 465, 1120, 205]
422
+ -->
423
+
424
+ ## \u{1F504} End-to-End Data Ingestion Pipeline
425
+
426
+ \`\`\`mermaid
427
+ graph LR
428
+ A[1. Client Ingress] --> B[2. API Gateway]
429
+ B --> C[3. Auth Verifier]
430
+ C --> D[4. Distributed DB]
431
+ style A fill:#0284c7,stroke:#38bdf8,stroke-width:2px,color:#fff
432
+ style B fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#fff
433
+ style C fill:#059669,stroke:#34d399,stroke-width:2px,color:#fff
434
+ style D fill:#7c3aed,stroke:#a78bfa,stroke-width:2px,color:#fff
435
+ \`\`\`
436
+
437
+ - **Ingress & Gateway:** Rate-limits traffic and applies reverse-proxy load balancing.
438
+ - **Verification & Storage:** Decodes cryptographic JWT tokens before transactional write commit.
439
+
440
+ <!--
441
+ Presenter Notes:
442
+ - Trace each hop across the diagram from left to right.
443
+ - Ask: "Where should rate limiting be applied to prevent DDoS attacks?"
444
+ -->`
445
+ },
446
+ {
447
+ id: "quote-highlight",
448
+ name: "Core Principle & Quote Highlight",
449
+ category: "quote",
450
+ description: "Prominent quote callout for fundamental engineering rules or memorable mantras.",
451
+ layout: {
452
+ boxes: [
453
+ {
454
+ id: "heading",
455
+ target: "h2",
456
+ pos: [100, 100, 1080, 80],
457
+ fontSize: "2.2rem",
458
+ textAlign: "center"
459
+ },
460
+ {
461
+ id: "quote-box",
462
+ target: "blockquote",
463
+ pos: [140, 230, 1e3, 360],
464
+ fontSize: "1.4rem"
465
+ }
466
+ ]
467
+ },
468
+ markdownSnippet: `<!-- layout:
469
+ boxes:
470
+ - id: heading
471
+ target: h2
472
+ pos: [100, 100, 1080, 80]
473
+ fontSize: 2.2rem
474
+ textAlign: center
475
+ - id: quote-box
476
+ target: blockquote
477
+ pos: [140, 230, 1000, 360]
478
+ fontSize: 1.4rem
479
+ -->
480
+
481
+ ## \u{1F4A1} Foundational Architecture Principle
482
+
483
+ > "Simplicity is prerequisite for reliability. A well-engineered distributed system is one where a new engineer can understand the request flow within their first hour."
484
+ >
485
+ > \u2014 **Edsger W. Dijkstra**
486
+
487
+ <!--
488
+ Presenter Notes:
489
+ - Pause for 5 seconds of silence to let the quote sink in.
490
+ - Ask: "How do our current architectural choices reflect this principle?"
491
+ -->`
492
+ },
493
+ {
494
+ id: "quiz-checkpoint",
495
+ name: "Interactive Formative Checkpoint",
496
+ category: "assessment",
497
+ description: "Interactive multiple-choice diagnostic checkpoint with A/B/C/D voting options.",
498
+ layout: {
499
+ boxes: [
500
+ {
501
+ id: "heading",
502
+ target: "h2",
503
+ pos: [80, 45, 1120, 65],
504
+ fontSize: "1.9rem"
505
+ },
506
+ {
507
+ id: "question-callout",
508
+ target: "blockquote",
509
+ pos: [80, 130, 1120, 110],
510
+ fontSize: "1.2rem"
511
+ },
512
+ {
513
+ id: "options-list",
514
+ target: "ul",
515
+ pos: [80, 260, 1120, 390],
516
+ fontSize: "1.15rem"
517
+ }
518
+ ]
519
+ },
520
+ markdownSnippet: `<!-- layout:
521
+ boxes:
522
+ - id: heading
523
+ target: h2
524
+ pos: [80, 45, 1120, 65]
525
+ fontSize: 1.9rem
526
+ - id: question-callout
527
+ target: blockquote
528
+ pos: [80, 130, 1120, 110]
529
+ fontSize: 1.2rem
530
+ - id: options-list
531
+ target: ul
532
+ pos: [80, 260, 1120, 390]
533
+ fontSize: 1.15rem
534
+ -->
535
+
536
+ ## \u{1F3AF} Formative Checkpoint: Verify Your Understanding
537
+
538
+ > **Question:** In an event-driven architecture, which pattern guarantees that messages are never permanently lost if a downstream consumer crashes?
539
+
540
+ - **A.** Direct HTTP POST call with a short 2-second timeout
541
+ - **B.** Persistent Message Broker with Dead-Letter Queue (DLQ) & retry policy
542
+ - **C.** In-memory client RAM cache without disk persistence
543
+ - **D.** Discarding failed packets and prompting the user to re-submit
544
+
545
+ <!--
546
+ Presenter Notes:
547
+ - Give students 30 seconds to vote on option A, B, C, or D.
548
+ - Correct answer: B.
549
+ - Explain why options A and C introduce catastrophic data loss in production.
550
+ -->`
551
+ },
552
+ {
553
+ id: "tiered-practice-3cards",
554
+ name: "Tiered Differentiation (Bronze / Silver / Gold)",
555
+ category: "content",
556
+ description: "Three progressive competency tiers allowing self-paced learning acceleration.",
557
+ layout: {
558
+ boxes: [
559
+ {
560
+ id: "heading",
561
+ target: "h2",
562
+ pos: [80, 45, 1120, 65],
563
+ fontSize: "1.9rem"
564
+ },
565
+ {
566
+ id: "tier-bronze",
567
+ target: ".columns-3 > div:nth-child(1)",
568
+ pos: [80, 140, 350, 520]
569
+ },
570
+ {
571
+ id: "tier-silver",
572
+ target: ".columns-3 > div:nth-child(2)",
573
+ pos: [465, 140, 350, 520]
574
+ },
575
+ {
576
+ id: "tier-gold",
577
+ target: ".columns-3 > div:nth-child(3)",
578
+ pos: [850, 140, 350, 520]
579
+ }
580
+ ]
581
+ },
582
+ markdownSnippet: `<!-- layout:
583
+ boxes:
584
+ - id: heading
585
+ target: h2
586
+ pos: [80, 45, 1120, 65]
587
+ fontSize: 1.9rem
588
+ - id: tier-bronze
589
+ target: '.columns-3 > div:nth-child(1)'
590
+ pos: [80, 140, 350, 520]
591
+ - id: tier-silver
592
+ target: '.columns-3 > div:nth-child(2)'
593
+ pos: [465, 140, 350, 520]
594
+ - id: tier-gold
595
+ target: '.columns-3 > div:nth-child(3)'
596
+ pos: [850, 140, 350, 520]
597
+ -->
598
+
599
+ ## \u{1F6E0}\uFE0F Hands-On Challenge: 3-Tier Differentiation
600
+
601
+ <div class="columns-3">
602
+ <div>
603
+
604
+ ### \u{1F949} Bronze Tier
605
+ - Implement basic handler logic
606
+ - Pass 3 baseline unit tests
607
+ - *Goal: Foundational mastery*
608
+
609
+ </div>
610
+ <div>
611
+
612
+ ### \u{1F948} Silver Tier
613
+ - Add boundary error handling
614
+ - Enforce O(N) memory complexity
615
+ - *Goal: Production-ready code*
616
+
617
+ </div>
618
+ <div>
619
+
620
+ ### \u{1F947} Gold Tier
621
+ - Design distributed retry queue
622
+ - Add 95% automated test coverage
623
+ - *Goal: Architectural leadership*
624
+
625
+ </div>
626
+ </div>
627
+
628
+ <!--
629
+ Presenter Notes:
630
+ - All learners begin at Bronze to establish baseline competency.
631
+ - Accelerate self-directed learners to Silver and Gold as they complete each tier.
632
+ -->`
633
+ },
634
+ {
635
+ id: "agenda-timeline",
636
+ name: "Session Agenda & Milestones",
637
+ category: "content",
638
+ description: "Structured time-budgeted agenda mapping stages to measurable deliverables.",
639
+ layout: {
640
+ boxes: [
641
+ {
642
+ id: "heading",
643
+ target: "h2",
644
+ pos: [80, 45, 1120, 65],
645
+ fontSize: "1.9rem"
646
+ },
647
+ {
648
+ id: "table-box",
649
+ target: "table",
650
+ pos: [80, 140, 1120, 520]
651
+ }
652
+ ]
653
+ },
654
+ markdownSnippet: `<!-- layout:
655
+ boxes:
656
+ - id: heading
657
+ target: h2
658
+ pos: [80, 45, 1120, 65]
659
+ fontSize: 1.9rem
660
+ - id: table-box
661
+ target: table
662
+ pos: [80, 140, 1120, 520]
663
+ -->
664
+
665
+ ## \u{1F5FA}\uFE0F Milestone Roadmap & Time Budget
666
+
667
+ | Allocated Time | Session Stage | Core Learning Focus | Deliverable Milestone |
668
+ |:---:|---|---|---|
669
+ | **05 mins** | Warm-Up | Real-World Scenario & Context | Identify system bottleneck |
670
+ | **15 mins** | Concept Discovery | Core Architectural Patterns | Deconstruct message queue models |
671
+ | **20 mins** | Hands-On Lab | Tiered Code Implementation | Complete Bronze + Silver tasks |
672
+ | **05 mins** | Wrap-Up | Formative Checkpoint & Debrief | Consolidate key principles |
673
+
674
+ <!--
675
+ Presenter Notes:
676
+ - Walk through the time budget so students understand expectations and pacing.
677
+ -->`
678
+ },
679
+ {
680
+ id: "takeaways-summary",
681
+ name: "Key Takeaways & Wrap-up",
682
+ category: "content",
683
+ description: "Three memorable synthesis takeaways with actionable next steps.",
684
+ layout: {
685
+ boxes: [
686
+ {
687
+ id: "heading",
688
+ target: "h2",
689
+ pos: [80, 50, 1120, 70],
690
+ fontSize: "2rem"
691
+ },
692
+ {
693
+ id: "list-box",
694
+ target: "ol",
695
+ pos: [80, 150, 1120, 340],
696
+ fontSize: "1.25rem"
697
+ },
698
+ {
699
+ id: "callout-next",
700
+ target: "blockquote",
701
+ pos: [80, 520, 1120, 140],
702
+ fontSize: "1.1rem"
703
+ }
704
+ ]
705
+ },
706
+ markdownSnippet: `<!-- layout:
707
+ boxes:
708
+ - id: heading
709
+ target: h2
710
+ pos: [80, 50, 1120, 70]
711
+ fontSize: 2rem
712
+ - id: list-box
713
+ target: ol
714
+ pos: [80, 150, 1120, 340]
715
+ fontSize: 1.25rem
716
+ - id: callout-next
717
+ target: blockquote
718
+ pos: [80, 520, 1120, 140]
719
+ fontSize: 1.1rem
720
+ -->
721
+
722
+ ## \u{1F3C1} Key Takeaways & Action Items
723
+
724
+ 1. **Decouple Before Scaling:** Separate producer rate from consumer processing capacity.
725
+ 2. **Design for Failure:** Always configure retries, backoff intervals, and dead-letter queues.
726
+ 3. **Measure End-to-End:** Track P99 latency and error rates across all distributed boundaries.
727
+
728
+ > \u{1F4DD} **Next Action Item:** Complete the Silver Tier refactoring challenge before our next peer-review session.
729
+
730
+ <!--
731
+ Presenter Notes:
732
+ - Deliver a crisp 2-minute wrap-up reinforcing the 3 core takeaways.
733
+ - Acknowledge strong peer collaboration during the hands-on lab.
734
+ -->`
735
+ }
736
+ ];
737
+ function getSlideLayoutPresetById(id) {
738
+ return SLIDE_LAYOUT_PRESETS.find((p) => p.id === id);
739
+ }
740
+ function getSlideLayoutPresetsByCategory(category) {
741
+ return SLIDE_LAYOUT_PRESETS.filter((p) => p.category === category);
742
+ }
743
+
744
+ export { SLIDE_LAYOUT_PRESETS, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, serializeLayoutToComment, splitMarkdownSlides, updateSlideLayoutInMarkdown };
745
+ //# sourceMappingURL=chunk-3IKL6SBP.js.map
746
+ //# sourceMappingURL=chunk-3IKL6SBP.js.map