@zenuml/core 3.39.1 → 3.39.2

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,491 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ZenUML Test - Confluence Style</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
16
+ background-color: #f7f8f9;
17
+ color: #172b4d;
18
+ }
19
+
20
+ /* Top Banner */
21
+ .top-banner {
22
+ background: rgba(7, 71, 166, 0.5); /* Made transparent for debugging */
23
+ color: white;
24
+ padding: 8px 16px;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: space-between;
28
+ position: fixed;
29
+ top: 0;
30
+ left: 0;
31
+ right: 0;
32
+ z-index: 1000;
33
+ height: 56px;
34
+ }
35
+
36
+ .banner-left {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 12px;
40
+ }
41
+
42
+ .banner-center {
43
+ flex: 1;
44
+ max-width: 400px;
45
+ margin: 0 20px;
46
+ }
47
+
48
+ .search-box {
49
+ width: 100%;
50
+ padding: 8px 12px;
51
+ border: none;
52
+ border-radius: 4px;
53
+ background: rgba(255, 255, 255, 0.2);
54
+ color: white;
55
+ }
56
+
57
+ .search-box::placeholder {
58
+ color: rgba(255, 255, 255, 0.7);
59
+ }
60
+
61
+ .banner-right {
62
+ display: flex;
63
+ align-items: center;
64
+ gap: 8px;
65
+ }
66
+
67
+ .btn {
68
+ background: #0052cc;
69
+ color: white;
70
+ border: none;
71
+ padding: 8px 16px;
72
+ border-radius: 4px;
73
+ cursor: pointer;
74
+ font-size: 14px;
75
+ }
76
+
77
+ .btn:hover {
78
+ background: #0065ff;
79
+ }
80
+
81
+ /* Main Layout */
82
+ .main-layout {
83
+ margin-top: 56px;
84
+ display: flex;
85
+ min-height: calc(100vh - 56px);
86
+ }
87
+
88
+ /* Sidebar */
89
+ .sidebar {
90
+ width: 240px;
91
+ background: #f7f8f9;
92
+ border-right: 1px solid #dfe1e6;
93
+ padding: 16px;
94
+ position: fixed;
95
+ height: calc(100vh - 56px);
96
+ overflow-y: auto;
97
+ }
98
+
99
+ .sidebar h3 {
100
+ font-size: 14px;
101
+ font-weight: 600;
102
+ margin-bottom: 8px;
103
+ color: #5e6c84;
104
+ }
105
+
106
+ .sidebar-nav {
107
+ list-style: none;
108
+ }
109
+
110
+ .sidebar-nav li {
111
+ margin-bottom: 4px;
112
+ }
113
+
114
+ .sidebar-nav a {
115
+ color: #172b4d;
116
+ text-decoration: none;
117
+ padding: 4px 8px;
118
+ display: block;
119
+ border-radius: 3px;
120
+ font-size: 14px;
121
+ }
122
+
123
+ .sidebar-nav a:hover {
124
+ background: #ebecf0;
125
+ }
126
+
127
+ /* Content Area */
128
+ .content-wrapper {
129
+ flex: 1;
130
+ margin-left: 240px;
131
+ padding: 24px;
132
+ max-width: calc(100vw - 240px);
133
+ }
134
+
135
+ /* Page Header */
136
+ .page-header {
137
+ background: white;
138
+ padding: 24px;
139
+ border-radius: 8px;
140
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
141
+ margin-bottom: 24px;
142
+ }
143
+
144
+ .page-title {
145
+ font-size: 32px;
146
+ font-weight: 600;
147
+ margin-bottom: 16px;
148
+ color: #172b4d;
149
+ }
150
+
151
+ .page-meta {
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 16px;
155
+ font-size: 14px;
156
+ color: #5e6c84;
157
+ }
158
+
159
+ .page-actions {
160
+ display: flex;
161
+ gap: 8px;
162
+ margin-top: 16px;
163
+ }
164
+
165
+ .page-actions button {
166
+ padding: 6px 12px;
167
+ border: 1px solid #dfe1e6;
168
+ background: white;
169
+ color: #172b4d;
170
+ border-radius: 3px;
171
+ cursor: pointer;
172
+ font-size: 14px;
173
+ }
174
+
175
+ .page-actions button:hover {
176
+ background: #f4f5f7;
177
+ }
178
+
179
+ .page-actions .primary {
180
+ background: #0052cc;
181
+ color: white;
182
+ border-color: #0052cc;
183
+ }
184
+
185
+ .page-actions .primary:hover {
186
+ background: #0065ff;
187
+ }
188
+
189
+ /* Content Area */
190
+ .page-content {
191
+ background: white;
192
+ padding: 32px;
193
+ border-radius: 8px;
194
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
195
+ line-height: 1.6;
196
+ }
197
+
198
+ .content-section {
199
+ margin-bottom: 32px;
200
+ }
201
+
202
+ .content-section h2 {
203
+ font-size: 24px;
204
+ margin-bottom: 16px;
205
+ color: #172b4d;
206
+ }
207
+
208
+ .content-section p {
209
+ margin-bottom: 16px;
210
+ color: #42526e;
211
+ }
212
+
213
+ /* Iframe Container - mimics Confluence macro style */
214
+ .macro-container {
215
+ border: 1px solid #dfe1e6;
216
+ border-radius: 4px;
217
+ margin: 24px 0;
218
+ background: white;
219
+ overflow: hidden;
220
+ }
221
+
222
+ .macro-header {
223
+ background: #f4f5f7;
224
+ padding: 8px 16px;
225
+ border-bottom: 1px solid #dfe1e6;
226
+ font-size: 12px;
227
+ color: #5e6c84;
228
+ font-weight: 600;
229
+ }
230
+
231
+ .macro-content {
232
+ position: relative;
233
+ }
234
+
235
+ .macro-iframe {
236
+ width: 100%;
237
+ height: 800px; /* Full height to show entire diagram */
238
+ border: none;
239
+ display: block;
240
+ }
241
+
242
+ .loading-overlay {
243
+ position: absolute;
244
+ top: 0;
245
+ left: 0;
246
+ right: 0;
247
+ bottom: 0;
248
+ background: rgba(255, 255, 255, 0.9);
249
+ display: flex;
250
+ align-items: center;
251
+ justify-content: center;
252
+ color: #5e6c84;
253
+ font-size: 14px;
254
+ }
255
+
256
+ /* Debug Panel */
257
+ .debug-panel {
258
+ position: fixed;
259
+ top: 70px;
260
+ right: 16px;
261
+ width: 300px;
262
+ background: rgba(0, 0, 0, 0.9);
263
+ color: white;
264
+ padding: 16px;
265
+ border-radius: 6px;
266
+ font-family: 'Monaco', 'Menlo', monospace;
267
+ font-size: 12px;
268
+ z-index: 100;
269
+ }
270
+
271
+ .debug-panel h4 {
272
+ margin-bottom: 12px;
273
+ color: #4a9eff;
274
+ }
275
+
276
+ .debug-info {
277
+ margin-bottom: 8px;
278
+ }
279
+
280
+ /* Right Panel */
281
+ .right-panel {
282
+ position: fixed;
283
+ right: 0;
284
+ top: 56px;
285
+ width: 320px;
286
+ height: calc(100vh - 56px);
287
+ background: white;
288
+ border-left: 1px solid #dfe1e6;
289
+ padding: 16px;
290
+ overflow-y: auto;
291
+ transform: translateX(100%);
292
+ transition: transform 0.3s ease;
293
+ }
294
+
295
+ .right-panel.open {
296
+ transform: translateX(0);
297
+ }
298
+
299
+ .panel-tab {
300
+ padding: 8px 16px;
301
+ border: none;
302
+ background: #f4f5f7;
303
+ color: #42526e;
304
+ cursor: pointer;
305
+ margin-right: 4px;
306
+ border-radius: 3px 3px 0 0;
307
+ }
308
+
309
+ .panel-tab.active {
310
+ background: white;
311
+ border-bottom: 2px solid #0052cc;
312
+ }
313
+ </style>
314
+ </head>
315
+ <body>
316
+ <!-- Top Banner -->
317
+ <div class="top-banner">
318
+ <div class="banner-left">
319
+ <button class="btn">☰</button>
320
+ <strong>Confluence</strong>
321
+ </div>
322
+ <div class="banner-center">
323
+ <input type="text" class="search-box" placeholder="Search...">
324
+ </div>
325
+ <div class="banner-right">
326
+ <button class="btn">Create</button>
327
+ <button class="btn">🔔</button>
328
+ <button class="btn">?</button>
329
+ <button class="btn">👤</button>
330
+ </div>
331
+ </div>
332
+
333
+ <!-- Main Layout -->
334
+ <div class="main-layout">
335
+ <!-- Sidebar -->
336
+ <div class="sidebar">
337
+ <h3>ZenUML Staging</h3>
338
+ <ul class="sidebar-nav">
339
+ <li><a href="#">Home</a></li>
340
+ <li><a href="#">Recent</a></li>
341
+ <li><a href="#">Templates</a></li>
342
+ <li><a href="#">Create from template</a></li>
343
+ </ul>
344
+
345
+ <h3 style="margin-top: 24px;">Spaces</h3>
346
+ <ul class="sidebar-nav">
347
+ <li><a href="#" style="font-weight: 600;">ZenUML Staging</a></li>
348
+ <li><a href="#">Documentation</a></li>
349
+ <li><a href="#">Tests</a></li>
350
+ </ul>
351
+
352
+ <h3 style="margin-top: 24px;">Recent Pages</h3>
353
+ <ul class="sidebar-nav">
354
+ <li><a href="#">2025-09-05</a></li>
355
+ <li><a href="#">Sticky Test</a></li>
356
+ <li><a href="#">Previous Tests</a></li>
357
+ </ul>
358
+ </div>
359
+
360
+ <!-- Content Area -->
361
+ <div class="content-wrapper">
362
+ <!-- Page Header -->
363
+ <div class="page-header">
364
+ <h1 class="page-title">ZenUML Sticky Test - Confluence Environment</h1>
365
+ <div class="page-meta">
366
+ <span>Updated 2 minutes ago</span>
367
+ <span>•</span>
368
+ <span>By Test User</span>
369
+ <span>•</span>
370
+ <span>1 view</span>
371
+ </div>
372
+ <div class="page-actions">
373
+ <button class="primary">Edit</button>
374
+ <button>Share</button>
375
+ <button>Copy link</button>
376
+ <button>More actions</button>
377
+ </div>
378
+ </div>
379
+
380
+ <!-- Page Content -->
381
+ <div class="page-content">
382
+ <div class="content-section">
383
+ <h2>Testing ZenUML Sticky Effect in Confluence</h2>
384
+ <p>This page simulates the Confluence environment where ZenUML diagrams are embedded as macros. The sticky participant effect should work correctly when scrolling the main page content.</p>
385
+
386
+ <p><strong>Test Instructions:</strong></p>
387
+ <ul style="margin-left: 20px; margin-bottom: 20px;">
388
+ <li>Scroll down to see the embedded ZenUML diagram</li>
389
+ <li>Continue scrolling to test if participants become sticky</li>
390
+ <li>The participants should stay visible at the top when scrolling past them</li>
391
+ </ul>
392
+ </div>
393
+
394
+ <div class="content-section">
395
+ <h2>Content Before Diagram</h2>
396
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
397
+ <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
398
+ <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p>
399
+ </div>
400
+
401
+ <!-- ZenUML Macro Container -->
402
+ <div class="macro-container">
403
+ <div class="macro-header">
404
+ ZenUML Diagram Macro
405
+ </div>
406
+ <div class="macro-content">
407
+ <iframe
408
+ class="macro-iframe"
409
+ src="/confluence-iframe-content.html"
410
+ title="ZenUML Diagram">
411
+ </iframe>
412
+ <div class="loading-overlay" id="loading-overlay">
413
+ Loading ZenUML diagram...
414
+ </div>
415
+ </div>
416
+ </div>
417
+
418
+ <div class="content-section">
419
+ <h2>Content After Diagram</h2>
420
+ <p>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</p>
421
+ <p>Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
422
+ <p>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestae consequatur.</p>
423
+ <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.</p>
424
+ <p>Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio.</p>
425
+ </div>
426
+
427
+ <div class="content-section">
428
+ <h2>More Content for Scrolling</h2>
429
+ <p>Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p>
430
+ <p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.</p>
431
+ <p>Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>
432
+ </div>
433
+ </div>
434
+ </div>
435
+ </div>
436
+
437
+ <!-- Debug Panel -->
438
+ <div class="debug-panel">
439
+ <h4>Debug Information</h4>
440
+ <div class="debug-info" id="scroll-info">Page scroll: 0px</div>
441
+ <div class="debug-info" id="iframe-info">Iframe loaded: No</div>
442
+ <div class="debug-info" id="sticky-info">Sticky active: No</div>
443
+ <div class="debug-info" id="viewport-info">Viewport: 0x0</div>
444
+ </div>
445
+
446
+ <!-- Right Panel -->
447
+ <div class="right-panel" id="right-panel">
448
+ <div style="border-bottom: 1px solid #dfe1e6; margin-bottom: 16px;">
449
+ <button class="panel-tab active">Comments</button>
450
+ <button class="panel-tab">Details</button>
451
+ </div>
452
+ <div>
453
+ <p style="color: #5e6c84; font-size: 14px;">No comments yet.</p>
454
+ </div>
455
+ </div>
456
+
457
+ <script>
458
+ // Debug information updates
459
+ function updateDebugInfo() {
460
+ document.getElementById('scroll-info').textContent = `Page scroll: ${window.scrollY}px`;
461
+ document.getElementById('viewport-info').textContent = `Viewport: ${window.innerWidth}x${window.innerHeight}`;
462
+ }
463
+
464
+ // Hide loading overlay when iframe loads
465
+ const iframe = document.querySelector('.macro-iframe');
466
+ iframe.addEventListener('load', () => {
467
+ document.getElementById('loading-overlay').style.display = 'none';
468
+ document.getElementById('iframe-info').textContent = 'Iframe loaded: Yes';
469
+ });
470
+
471
+ // Update debug info on scroll and resize
472
+ window.addEventListener('scroll', updateDebugInfo);
473
+ window.addEventListener('resize', updateDebugInfo);
474
+
475
+ // Initial debug info
476
+ updateDebugInfo();
477
+
478
+ // Panel toggle (for testing)
479
+ document.addEventListener('keydown', (e) => {
480
+ if (e.key === 'Tab' && e.shiftKey) {
481
+ e.preventDefault();
482
+ const panel = document.getElementById('right-panel');
483
+ panel.classList.toggle('open');
484
+ }
485
+ });
486
+
487
+ console.log('Confluence-style test page loaded');
488
+ console.log('Environment: Main Confluence page with embedded iframe');
489
+ </script>
490
+ </body>
491
+ </html>