@alpaca-editor/core 1.0.3896 → 1.0.3898

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 (124) hide show
  1. package/dist/components/ActionButton.js +2 -2
  2. package/dist/components/ActionButton.js.map +1 -1
  3. package/dist/components/ui/button.js +3 -3
  4. package/dist/components/ui/button.js.map +1 -1
  5. package/dist/config/config.js +44 -22
  6. package/dist/config/config.js.map +1 -1
  7. package/dist/editor/FieldListField.js +1 -1
  8. package/dist/editor/FieldListField.js.map +1 -1
  9. package/dist/editor/Titlebar.js +2 -1
  10. package/dist/editor/Titlebar.js.map +1 -1
  11. package/dist/editor/client/EditorClient.d.ts +27 -2
  12. package/dist/editor/client/EditorClient.js +140 -1
  13. package/dist/editor/client/EditorClient.js.map +1 -1
  14. package/dist/editor/client/editContext.d.ts +6 -1
  15. package/dist/editor/client/editContext.js.map +1 -1
  16. package/dist/editor/client/itemsRepository.js +1 -1
  17. package/dist/editor/client/itemsRepository.js.map +1 -1
  18. package/dist/editor/client/operations.js +1 -1
  19. package/dist/editor/client/operations.js.map +1 -1
  20. package/dist/editor/control-center/About.d.ts +1 -0
  21. package/dist/editor/control-center/About.js +8 -0
  22. package/dist/editor/control-center/About.js.map +1 -0
  23. package/dist/editor/control-center/ControlCenterMenu.js +3 -0
  24. package/dist/editor/control-center/ControlCenterMenu.js.map +1 -1
  25. package/dist/editor/control-center/Info.d.ts +1 -0
  26. package/dist/editor/control-center/Info.js +10 -0
  27. package/dist/editor/control-center/Info.js.map +1 -0
  28. package/dist/editor/control-center/QuotaInfo.d.ts +1 -0
  29. package/dist/editor/control-center/QuotaInfo.js +102 -0
  30. package/dist/editor/control-center/QuotaInfo.js.map +1 -0
  31. package/dist/editor/control-center/Status.js +69 -2
  32. package/dist/editor/control-center/Status.js.map +1 -1
  33. package/dist/editor/control-center/WebSocketMessages.d.ts +1 -0
  34. package/dist/editor/control-center/WebSocketMessages.js +66 -0
  35. package/dist/editor/control-center/WebSocketMessages.js.map +1 -0
  36. package/dist/editor/page-editor-chrome/FieldActionIndicator.js +7 -6
  37. package/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -1
  38. package/dist/editor/page-viewer/PageViewer.js.map +1 -1
  39. package/dist/editor/services/aiService.d.ts +7 -1
  40. package/dist/editor/services/aiService.js +8 -1
  41. package/dist/editor/services/aiService.js.map +1 -1
  42. package/dist/editor/sidebar/ComponentTree.js +1 -1
  43. package/dist/editor/sidebar/ComponentTree.js.map +1 -1
  44. package/dist/editor/sidebar/ViewSelector.js +9 -4
  45. package/dist/editor/sidebar/ViewSelector.js.map +1 -1
  46. package/dist/editor/ui/Icons.d.ts +19 -1
  47. package/dist/editor/ui/Icons.js +23 -5
  48. package/dist/editor/ui/Icons.js.map +1 -1
  49. package/dist/editor/ui/SimpleMenu.js +1 -1
  50. package/dist/editor/ui/SimpleMenu.js.map +1 -1
  51. package/dist/fonts/index.d.ts +4 -0
  52. package/dist/fonts/index.js +9 -0
  53. package/dist/fonts/index.js.map +1 -0
  54. package/dist/images/wizard-bg.png +0 -0
  55. package/dist/index.d.ts +2 -1
  56. package/dist/index.js +1 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/page-wizard/WizardBox.d.ts +8 -0
  59. package/dist/page-wizard/WizardBox.js +6 -0
  60. package/dist/page-wizard/WizardBox.js.map +1 -0
  61. package/dist/page-wizard/WizardBoxConnector.d.ts +3 -0
  62. package/dist/page-wizard/WizardBoxConnector.js +6 -0
  63. package/dist/page-wizard/WizardBoxConnector.js.map +1 -0
  64. package/dist/page-wizard/WizardSteps.d.ts +4 -2
  65. package/dist/page-wizard/WizardSteps.js +44 -18
  66. package/dist/page-wizard/WizardSteps.js.map +1 -1
  67. package/dist/page-wizard/steps/CollectStep.js +16 -21
  68. package/dist/page-wizard/steps/CollectStep.js.map +1 -1
  69. package/dist/page-wizard/steps/ComponentTypesSelector.js +50 -45
  70. package/dist/page-wizard/steps/ComponentTypesSelector.js.map +1 -1
  71. package/dist/page-wizard/steps/CreatePage.js +6 -3
  72. package/dist/page-wizard/steps/CreatePage.js.map +1 -1
  73. package/dist/page-wizard/steps/CreatePageAndLayoutStep.js +21 -28
  74. package/dist/page-wizard/steps/CreatePageAndLayoutStep.js.map +1 -1
  75. package/dist/page-wizard/steps/Generate.js +27 -5
  76. package/dist/page-wizard/steps/Generate.js.map +1 -1
  77. package/dist/page-wizard/steps/ImagesStep.js +46 -44
  78. package/dist/page-wizard/steps/ImagesStep.js.map +1 -1
  79. package/dist/page-wizard/steps/SelectStep.js +11 -19
  80. package/dist/page-wizard/steps/SelectStep.js.map +1 -1
  81. package/dist/page-wizard/steps/usePageCreator.js +41 -12
  82. package/dist/page-wizard/steps/usePageCreator.js.map +1 -1
  83. package/dist/revision.d.ts +2 -2
  84. package/dist/revision.js +2 -2
  85. package/dist/styles.css +236 -120
  86. package/images/wizard-bg.png +0 -0
  87. package/package.json +1 -1
  88. package/src/components/ActionButton.tsx +6 -8
  89. package/src/components/ui/button.tsx +3 -3
  90. package/src/config/config.tsx +54 -22
  91. package/src/editor/FieldListField.tsx +2 -2
  92. package/src/editor/Titlebar.tsx +2 -1
  93. package/src/editor/client/EditorClient.tsx +192 -9
  94. package/src/editor/client/editContext.ts +12 -2
  95. package/src/editor/client/itemsRepository.ts +1 -1
  96. package/src/editor/client/operations.ts +1 -1
  97. package/src/editor/control-center/About.tsx +342 -0
  98. package/src/editor/control-center/ControlCenterMenu.tsx +5 -0
  99. package/src/editor/control-center/Info.tsx +104 -0
  100. package/src/editor/control-center/QuotaInfo.tsx +301 -0
  101. package/src/editor/control-center/Status.tsx +108 -2
  102. package/src/editor/control-center/WebSocketMessages.tsx +155 -0
  103. package/src/editor/page-editor-chrome/FieldActionIndicator.tsx +20 -5
  104. package/src/editor/page-viewer/PageViewer.tsx +1 -1
  105. package/src/editor/services/aiService.ts +17 -2
  106. package/src/editor/sidebar/ComponentTree.tsx +1 -1
  107. package/src/editor/sidebar/ViewSelector.tsx +10 -11
  108. package/src/editor/ui/Icons.tsx +146 -26
  109. package/src/editor/ui/SimpleMenu.tsx +1 -1
  110. package/src/fonts/index.ts +10 -0
  111. package/src/index.ts +7 -1
  112. package/src/page-wizard/WizardBox.tsx +40 -0
  113. package/src/page-wizard/WizardBoxConnector.tsx +21 -0
  114. package/src/page-wizard/WizardSteps.tsx +236 -116
  115. package/src/page-wizard/steps/CollectStep.tsx +129 -67
  116. package/src/page-wizard/steps/ComponentTypesSelector.tsx +32 -11
  117. package/src/page-wizard/steps/CreatePage.tsx +130 -84
  118. package/src/page-wizard/steps/CreatePageAndLayoutStep.tsx +47 -30
  119. package/src/page-wizard/steps/Generate.tsx +45 -17
  120. package/src/page-wizard/steps/ImagesStep.tsx +161 -141
  121. package/src/page-wizard/steps/SelectStep.tsx +92 -76
  122. package/src/page-wizard/steps/usePageCreator.ts +40 -14
  123. package/src/revision.ts +2 -2
  124. package/styles.css +49 -8
@@ -0,0 +1,342 @@
1
+ import React from "react";
2
+ import { useEditContext } from "../client/editContext";
3
+ import { version, buildDate } from "../../revision";
4
+
5
+ export function About() {
6
+ const editContext = useEditContext();
7
+
8
+ return (
9
+ <div className="max-h-full space-y-6 p-4">
10
+ <div className="space-y-4">
11
+ <h2 className="text-xl font-semibold text-gray-800">
12
+ About Alpaca Editor
13
+ </h2>
14
+ {/* Application Information */}
15
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
16
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
17
+ Application Information
18
+ </h3>
19
+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2">
20
+ <div>
21
+ <label className="text-sm font-medium text-gray-500">
22
+ Product Name
23
+ </label>
24
+ <p className="text-gray-900">Alpaca Editor</p>
25
+ </div>
26
+ <div>
27
+ <label className="text-sm font-medium text-gray-500">
28
+ Version
29
+ </label>
30
+ <p className="text-gray-900">{version}</p>
31
+ </div>
32
+
33
+ <div>
34
+ <label className="text-sm font-medium text-gray-500">
35
+ Build Date
36
+ </label>
37
+ <p className="text-gray-900">{buildDate}</p>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ {/* License Information */}{" "}
42
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
43
+ {" "}
44
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
45
+ {" "}
46
+ License Information{" "}
47
+ </h3>{" "}
48
+ <div className="space-y-4">
49
+ {" "}
50
+ <div>
51
+ {" "}
52
+ <label className="text-sm font-medium text-gray-500">
53
+ {" "}
54
+ Copyright{" "}
55
+ </label>{" "}
56
+ <p className="text-gray-900">© 2025 Canvas Reply GmbH</p>{" "}
57
+ </div>{" "}
58
+ <div>
59
+ {" "}
60
+ <label className="text-sm font-medium text-gray-500">
61
+ {" "}
62
+ License{" "}
63
+ </label>{" "}
64
+ <p className="text-gray-900">
65
+ {" "}
66
+ All rights reserved. Please contact Canvas Reply GmbH for
67
+ licensing information.{" "}
68
+ </p>{" "}
69
+ </div>{" "}
70
+ </div>{" "}
71
+ </div>
72
+ {/* Third-Party Licenses */}{" "}
73
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
74
+ {" "}
75
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
76
+ {" "}
77
+ Third-Party Components{" "}
78
+ </h3>{" "}
79
+ <div className="max-h-96 space-y-3 overflow-y-auto">
80
+ {" "}
81
+ <div className="rounded-lg bg-gray-50 p-3">
82
+ {" "}
83
+ <div className="mb-2 flex items-center justify-between">
84
+ {" "}
85
+ <h4 className="text-sm font-medium text-gray-700">
86
+ React
87
+ </h4>{" "}
88
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
89
+ </div>{" "}
90
+ <p className="text-xs text-gray-600">
91
+ {" "}
92
+ A JavaScript library for building user interfaces{" "}
93
+ </p>{" "}
94
+ </div>{" "}
95
+ <div className="rounded-lg bg-gray-50 p-3">
96
+ {" "}
97
+ <div className="mb-2 flex items-center justify-between">
98
+ {" "}
99
+ <h4 className="text-sm font-medium text-gray-700">
100
+ Next.js
101
+ </h4>{" "}
102
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
103
+ </div>{" "}
104
+ <p className="text-xs text-gray-600">
105
+ {" "}
106
+ The React Framework for Production{" "}
107
+ </p>{" "}
108
+ </div>{" "}
109
+ <div className="rounded-lg bg-gray-50 p-3">
110
+ {" "}
111
+ <div className="mb-2 flex items-center justify-between">
112
+ {" "}
113
+ <h4 className="text-sm font-medium text-gray-700">
114
+ TypeScript
115
+ </h4>{" "}
116
+ <span className="text-xs text-gray-500">
117
+ Apache 2.0 License
118
+ </span>{" "}
119
+ </div>{" "}
120
+ <p className="text-xs text-gray-600">
121
+ {" "}
122
+ TypeScript is a language for application scale JavaScript
123
+ development{" "}
124
+ </p>{" "}
125
+ </div>{" "}
126
+ <div className="rounded-lg bg-gray-50 p-3">
127
+ {" "}
128
+ <div className="mb-2 flex items-center justify-between">
129
+ {" "}
130
+ <h4 className="text-sm font-medium text-gray-700">
131
+ Tailwind CSS
132
+ </h4>{" "}
133
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
134
+ </div>{" "}
135
+ <p className="text-xs text-gray-600">
136
+ {" "}
137
+ A utility-first CSS framework for rapidly building custom
138
+ designs{" "}
139
+ </p>{" "}
140
+ </div>{" "}
141
+ <div className="rounded-lg bg-gray-50 p-3">
142
+ {" "}
143
+ <div className="mb-2 flex items-center justify-between">
144
+ {" "}
145
+ <h4 className="text-sm font-medium text-gray-700">
146
+ PrimeReact
147
+ </h4>{" "}
148
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
149
+ </div>{" "}
150
+ <p className="text-xs text-gray-600">
151
+ {" "}
152
+ React UI Component Library with rich set of components{" "}
153
+ </p>{" "}
154
+ </div>{" "}
155
+ <div className="rounded-lg bg-gray-50 p-3">
156
+ {" "}
157
+ <div className="mb-2 flex items-center justify-between">
158
+ {" "}
159
+ <h4 className="text-sm font-medium text-gray-700">
160
+ Lucide React
161
+ </h4>{" "}
162
+ <span className="text-xs text-gray-500">ISC License</span>{" "}
163
+ </div>{" "}
164
+ <p className="text-xs text-gray-600">
165
+ {" "}
166
+ Beautiful & consistent icon toolkit made by the community{" "}
167
+ </p>{" "}
168
+ </div>{" "}
169
+ <div className="rounded-lg bg-gray-50 p-3">
170
+ {" "}
171
+ <div className="mb-2 flex items-center justify-between">
172
+ {" "}
173
+ <h4 className="text-sm font-medium text-gray-700">
174
+ Radix UI
175
+ </h4>{" "}
176
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
177
+ </div>{" "}
178
+ <p className="text-xs text-gray-600">
179
+ {" "}
180
+ Low-level UI primitives for React with accessibility
181
+ built-in{" "}
182
+ </p>{" "}
183
+ </div>{" "}
184
+ <div className="rounded-lg bg-gray-50 p-3">
185
+ {" "}
186
+ <div className="mb-2 flex items-center justify-between">
187
+ {" "}
188
+ <h4 className="text-sm font-medium text-gray-700">
189
+ Axios
190
+ </h4>{" "}
191
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
192
+ </div>{" "}
193
+ <p className="text-xs text-gray-600">
194
+ {" "}
195
+ Promise based HTTP client for the browser and node.js{" "}
196
+ </p>{" "}
197
+ </div>{" "}
198
+ <div className="rounded-lg bg-gray-50 p-3">
199
+ {" "}
200
+ <div className="mb-2 flex items-center justify-between">
201
+ {" "}
202
+ <h4 className="text-sm font-medium text-gray-700">
203
+ Quill
204
+ </h4>{" "}
205
+ <span className="text-xs text-gray-500">
206
+ BSD 3-Clause License
207
+ </span>{" "}
208
+ </div>{" "}
209
+ <p className="text-xs text-gray-600">
210
+ {" "}
211
+ Modern WYSIWYG editor built for compatibility and
212
+ extensibility{" "}
213
+ </p>{" "}
214
+ </div>{" "}
215
+ <div className="rounded-lg bg-gray-50 p-3">
216
+ {" "}
217
+ <div className="mb-2 flex items-center justify-between">
218
+ {" "}
219
+ <h4 className="text-sm font-medium text-gray-700">
220
+ React Inspector
221
+ </h4>{" "}
222
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
223
+ </div>{" "}
224
+ <p className="text-xs text-gray-600">
225
+ {" "}
226
+ Power of Browser DevTools inspectors right inside your React
227
+ app{" "}
228
+ </p>{" "}
229
+ </div>{" "}
230
+ <div className="rounded-lg bg-gray-50 p-3">
231
+ {" "}
232
+ <div className="mb-2 flex items-center justify-between">
233
+ {" "}
234
+ <h4 className="text-sm font-medium text-gray-700">
235
+ Allotment
236
+ </h4>{" "}
237
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
238
+ </div>{" "}
239
+ <p className="text-xs text-gray-600">
240
+ {" "}
241
+ React split-pane component with support for multiple
242
+ layouts{" "}
243
+ </p>{" "}
244
+ </div>{" "}
245
+ <div className="rounded-lg bg-gray-50 p-3">
246
+ {" "}
247
+ <div className="mb-2 flex items-center justify-between">
248
+ {" "}
249
+ <h4 className="text-sm font-medium text-gray-700">
250
+ Lodash
251
+ </h4>{" "}
252
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
253
+ </div>{" "}
254
+ <p className="text-xs text-gray-600">
255
+ {" "}
256
+ A modern JavaScript utility library delivering modularity,
257
+ performance & extras{" "}
258
+ </p>{" "}
259
+ </div>{" "}
260
+ <div className="rounded-lg bg-gray-50 p-3">
261
+ {" "}
262
+ <div className="mb-2 flex items-center justify-between">
263
+ {" "}
264
+ <h4 className="text-sm font-medium text-gray-700">clsx</h4>{" "}
265
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
266
+ </div>{" "}
267
+ <p className="text-xs text-gray-600">
268
+ {" "}
269
+ A tiny utility for constructing className strings
270
+ conditionally{" "}
271
+ </p>{" "}
272
+ </div>{" "}
273
+ <div className="rounded-lg bg-gray-50 p-3">
274
+ {" "}
275
+ <div className="mb-2 flex items-center justify-between">
276
+ {" "}
277
+ <h4 className="text-sm font-medium text-gray-700">
278
+ PostCSS
279
+ </h4>{" "}
280
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
281
+ </div>{" "}
282
+ <p className="text-xs text-gray-600">
283
+ {" "}
284
+ Tool for transforming CSS with JavaScript{" "}
285
+ </p>{" "}
286
+ </div>{" "}
287
+ <div className="rounded-lg bg-gray-50 p-3">
288
+ {" "}
289
+ <div className="mb-2 flex items-center justify-between">
290
+ {" "}
291
+ <h4 className="text-sm font-medium text-gray-700">
292
+ Universal Cookie
293
+ </h4>{" "}
294
+ <span className="text-xs text-gray-500">MIT License</span>{" "}
295
+ </div>{" "}
296
+ <p className="text-xs text-gray-600">
297
+ {" "}
298
+ Universal cookies for JavaScript{" "}
299
+ </p>{" "}
300
+ </div>{" "}
301
+ </div>{" "}
302
+ </div>
303
+ {/* Contact Information */}
304
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
305
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
306
+ Contact & Support
307
+ </h3>
308
+ <div className="space-y-3">
309
+ <div>
310
+ <label className="text-sm font-medium text-gray-500">
311
+ Documentation
312
+ </label>
313
+ <p className="text-gray-900">
314
+ <a
315
+ href="#"
316
+ className="text-blue-600 underline hover:text-blue-800"
317
+ onClick={(e) => e.preventDefault()}
318
+ >
319
+ View Documentation
320
+ </a>
321
+ </p>
322
+ </div>
323
+ <div>
324
+ <label className="text-sm font-medium text-gray-500">
325
+ Support
326
+ </label>
327
+ <p className="text-gray-900">
328
+ <a
329
+ href="#"
330
+ className="text-blue-600 underline hover:text-blue-800"
331
+ onClick={(e) => e.preventDefault()}
332
+ >
333
+ Contact Support
334
+ </a>
335
+ </p>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ </div>
341
+ );
342
+ }
@@ -50,6 +50,11 @@ export function ControlCenterMenu() {
50
50
  const item = groups
51
51
  ?.flatMap((x) => x.panels)
52
52
  ?.find((item) => item.id === activeItemKey);
53
+
54
+ if (!item) {
55
+ setActiveItemKey(groups?.[0]?.panels?.[0]?.id || null);
56
+ }
57
+
53
58
  if (item) {
54
59
  editContext?.setCenterPanelView(item.content);
55
60
  }
@@ -0,0 +1,104 @@
1
+ import React from "react";
2
+ import { useEditContext } from "../client/editContext";
3
+
4
+ export function Info() {
5
+ const editContext = useEditContext();
6
+ const user = editContext?.user;
7
+
8
+ return (
9
+ <div className="space-y-6 p-4">
10
+ <div className="space-y-4">
11
+ <h2 className="text-xl font-semibold text-gray-800">
12
+ System Information
13
+ </h2>
14
+
15
+ {/* User Information */}
16
+ {user && (
17
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
18
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
19
+ User Information
20
+ </h3>
21
+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2">
22
+ <div>
23
+ <label className="text-sm font-medium text-gray-500">
24
+ Name
25
+ </label>
26
+ <p className="text-gray-900">{user.displayName || user.name}</p>
27
+ </div>
28
+ <div>
29
+ <label className="text-sm font-medium text-gray-500">
30
+ Email
31
+ </label>
32
+ <p className="text-gray-900">{user.email || "Not available"}</p>
33
+ </div>
34
+ <div>
35
+ <label className="text-sm font-medium text-gray-500">
36
+ User Type
37
+ </label>
38
+ <p className="text-gray-900">
39
+ {user.isLimitedPreviewUser
40
+ ? "Limited Preview User"
41
+ : "Regular User"}
42
+ </p>
43
+ </div>
44
+ <div>
45
+ <label className="text-sm font-medium text-gray-500">
46
+ Session ID
47
+ </label>
48
+ <p className="font-mono text-xs text-gray-900">
49
+ {editContext?.sessionId}
50
+ </p>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ )}
55
+
56
+ {/* Editor Information */}
57
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
58
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
59
+ Editor Information
60
+ </h3>
61
+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2">
62
+ <div>
63
+ <label className="text-sm font-medium text-gray-500">
64
+ Active Sessions
65
+ </label>
66
+ <p className="text-gray-900">
67
+ {editContext?.activeSessions?.length || 0}
68
+ </p>
69
+ </div>
70
+ <div>
71
+ <label className="text-sm font-medium text-gray-500">
72
+ Mobile View
73
+ </label>
74
+ <p className="text-gray-900">
75
+ {editContext?.isMobile ? "Yes" : "No"}
76
+ </p>
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ {/* Technical Information */}
82
+ <div className="rounded-lg border border-gray-200 bg-white p-4">
83
+ <h3 className="mb-3 text-lg font-medium text-gray-700">
84
+ Technical Information
85
+ </h3>
86
+ <div className="space-y-2 text-sm">
87
+ <div>
88
+ <span className="font-medium text-gray-500">User Agent:</span>
89
+ <p className="mt-1 font-mono text-xs break-all text-gray-900">
90
+ {navigator.userAgent}
91
+ </p>
92
+ </div>
93
+ <div>
94
+ <span className="font-medium text-gray-500">Viewport Size:</span>
95
+ <p className="text-gray-900">
96
+ {window.innerWidth} × {window.innerHeight}
97
+ </p>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ );
104
+ }