@yamlresume/playground 0.13.1 → 0.13.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.
- package/dist/index.d.ts +19 -20
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { OnMount } from '@monaco-editor/react';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
+
import { OnMount } from '@monaco-editor/react';
|
|
5
4
|
import { Resume, LayoutEngine } from '@yamlresume/core';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -30,7 +29,7 @@ interface EditorProps {
|
|
|
30
29
|
* @param props - The component props.
|
|
31
30
|
* @returns The rendered Editor component.
|
|
32
31
|
*/
|
|
33
|
-
declare function Editor({ value, onChange, language, readOnly, lineNumbers, minimap, onMount, }: EditorProps):
|
|
32
|
+
declare function Editor({ value, onChange, language, readOnly, lineNumbers, minimap, onMount, }: EditorProps): react.JSX.Element;
|
|
34
33
|
|
|
35
34
|
/**
|
|
36
35
|
* MIT License
|
|
@@ -105,7 +104,7 @@ interface EditorPanelProps {
|
|
|
105
104
|
* @param props - The component props.
|
|
106
105
|
* @returns The rendered editor panel.
|
|
107
106
|
*/
|
|
108
|
-
declare function EditorPanel({ value, onChange, filename, tooltips, }: EditorPanelProps):
|
|
107
|
+
declare function EditorPanel({ value, onChange, filename, tooltips, }: EditorPanelProps): react.JSX.Element;
|
|
109
108
|
|
|
110
109
|
/**
|
|
111
110
|
* Props for the ResumeEditor component.
|
|
@@ -134,7 +133,7 @@ interface ResumeEditorProps {
|
|
|
134
133
|
* @param props.onChange - Handler called when content is modified.
|
|
135
134
|
* @returns The rendered editor component.
|
|
136
135
|
*/
|
|
137
|
-
declare function ResumeEditor({ value, onChange, onMount }: ResumeEditorProps):
|
|
136
|
+
declare function ResumeEditor({ value, onChange, onMount }: ResumeEditorProps): react.JSX.Element;
|
|
138
137
|
|
|
139
138
|
/**
|
|
140
139
|
* Props for the Playground component.
|
|
@@ -159,7 +158,7 @@ interface PlaygroundProps {
|
|
|
159
158
|
* @param props - The component props.
|
|
160
159
|
* @returns The rendered Playground component.
|
|
161
160
|
*/
|
|
162
|
-
declare function Playground({ yaml: yamlStr, onChange, filename, messages, }: PlaygroundProps):
|
|
161
|
+
declare function Playground({ yaml: yamlStr, onChange, filename, messages, }: PlaygroundProps): react.JSX.Element;
|
|
163
162
|
|
|
164
163
|
/**
|
|
165
164
|
* Props for the PlaygroundDesktop component.
|
|
@@ -178,7 +177,7 @@ interface PlaygroundDesktopProps {
|
|
|
178
177
|
* @param props - The component props.
|
|
179
178
|
* @returns The rendered desktop layout.
|
|
180
179
|
*/
|
|
181
|
-
declare function PlaygroundDesktop({ editorPanel, previewPanel, }: PlaygroundDesktopProps):
|
|
180
|
+
declare function PlaygroundDesktop({ editorPanel, previewPanel, }: PlaygroundDesktopProps): react.JSX.Element;
|
|
182
181
|
|
|
183
182
|
/**
|
|
184
183
|
* Props for the PlaygroundMobile component.
|
|
@@ -197,7 +196,7 @@ interface PlaygroundMobileProps {
|
|
|
197
196
|
* @param props - The component props.
|
|
198
197
|
* @returns The rendered mobile layout.
|
|
199
198
|
*/
|
|
200
|
-
declare function PlaygroundMobile({ editorPanel, previewPanel, }: PlaygroundMobileProps):
|
|
199
|
+
declare function PlaygroundMobile({ editorPanel, previewPanel, }: PlaygroundMobileProps): react.JSX.Element;
|
|
201
200
|
|
|
202
201
|
/**
|
|
203
202
|
* MIT License
|
|
@@ -237,7 +236,7 @@ interface CodeViewerProps {
|
|
|
237
236
|
* @param props - The props for the CodePreview component.
|
|
238
237
|
* @returns The rendered Monaco Editor.
|
|
239
238
|
*/
|
|
240
|
-
declare function CodeViewer({ content, language }: CodeViewerProps):
|
|
239
|
+
declare function CodeViewer({ content, language }: CodeViewerProps): react.JSX.Element;
|
|
241
240
|
|
|
242
241
|
/**
|
|
243
242
|
* MIT License
|
|
@@ -275,7 +274,7 @@ interface DocxViewerProps {
|
|
|
275
274
|
* @param props - The props for the DocxViewer component.
|
|
276
275
|
* @returns The rendered DocxViewer component.
|
|
277
276
|
*/
|
|
278
|
-
declare function DocxViewer({ content }: DocxViewerProps):
|
|
277
|
+
declare function DocxViewer({ content }: DocxViewerProps): react.JSX.Element;
|
|
279
278
|
|
|
280
279
|
/**
|
|
281
280
|
* MIT License
|
|
@@ -313,7 +312,7 @@ interface HtmlViewerProps {
|
|
|
313
312
|
* @param props - The props for the HtmlPreview component.
|
|
314
313
|
* @returns The rendered iframe element.
|
|
315
314
|
*/
|
|
316
|
-
declare function HtmlViewer({ content }: HtmlViewerProps):
|
|
315
|
+
declare function HtmlViewer({ content }: HtmlViewerProps): react.JSX.Element;
|
|
317
316
|
|
|
318
317
|
/**
|
|
319
318
|
* Props for the PreviewPanel component.
|
|
@@ -336,7 +335,7 @@ interface PreviewPanelProps {
|
|
|
336
335
|
* @param props - The component props.
|
|
337
336
|
* @returns The rendered preview panel.
|
|
338
337
|
*/
|
|
339
|
-
declare function PreviewPanel({ activeLayoutIndex, filename, resume, setActiveLayoutIndex, tooltips, }: PreviewPanelProps):
|
|
338
|
+
declare function PreviewPanel({ activeLayoutIndex, filename, resume, setActiveLayoutIndex, tooltips, }: PreviewPanelProps): react.JSX.Element;
|
|
340
339
|
|
|
341
340
|
/**
|
|
342
341
|
* Props for the ResumeViewer component.
|
|
@@ -354,7 +353,7 @@ interface ResumeViewerProps {
|
|
|
354
353
|
* @param props - The props for the ResumeViewer component.
|
|
355
354
|
* @returns The rendered ResumeViewer component.
|
|
356
355
|
*/
|
|
357
|
-
declare function ResumeViewer({ resume, layoutIndex }: ResumeViewerProps):
|
|
356
|
+
declare function ResumeViewer({ resume, layoutIndex }: ResumeViewerProps): react.JSX.Element;
|
|
358
357
|
|
|
359
358
|
/**
|
|
360
359
|
* A styled panel container component for the Playground.
|
|
@@ -367,7 +366,7 @@ declare function ResumeViewer({ resume, layoutIndex }: ResumeViewerProps): react
|
|
|
367
366
|
* @param props - The component props.
|
|
368
367
|
* @returns The rendered panel container.
|
|
369
368
|
*/
|
|
370
|
-
declare function Panel({ children }: PropsWithChildren):
|
|
369
|
+
declare function Panel({ children }: PropsWithChildren): react.JSX.Element;
|
|
371
370
|
|
|
372
371
|
/**
|
|
373
372
|
* A shared container for panel content.
|
|
@@ -376,7 +375,7 @@ declare function Panel({ children }: PropsWithChildren): react_jsx_runtime.JSX.E
|
|
|
376
375
|
* @param props - The component props.
|
|
377
376
|
* @returns The rendered content container.
|
|
378
377
|
*/
|
|
379
|
-
declare function PanelContent({ children }: PropsWithChildren):
|
|
378
|
+
declare function PanelContent({ children }: PropsWithChildren): react.JSX.Element;
|
|
380
379
|
|
|
381
380
|
/**
|
|
382
381
|
* MIT License
|
|
@@ -406,7 +405,7 @@ declare function PanelContent({ children }: PropsWithChildren): react_jsx_runtim
|
|
|
406
405
|
*
|
|
407
406
|
* @returns The rendered separator.
|
|
408
407
|
*/
|
|
409
|
-
declare function PanelSeparator():
|
|
408
|
+
declare function PanelSeparator(): react.JSX.Element;
|
|
410
409
|
|
|
411
410
|
/**
|
|
412
411
|
* A shared toolbar component for panels.
|
|
@@ -414,7 +413,7 @@ declare function PanelSeparator(): react_jsx_runtime.JSX.Element;
|
|
|
414
413
|
* @param props - The component props.
|
|
415
414
|
* @returns The rendered toolbar.
|
|
416
415
|
*/
|
|
417
|
-
declare function PanelToolbar({ children }: PropsWithChildren):
|
|
416
|
+
declare function PanelToolbar({ children }: PropsWithChildren): react.JSX.Element;
|
|
418
417
|
|
|
419
418
|
/**
|
|
420
419
|
* Props for the ToolbarButton component.
|
|
@@ -435,7 +434,7 @@ interface ToolbarButtonProps {
|
|
|
435
434
|
* @param props - The component props.
|
|
436
435
|
* @returns The rendered toolbar button.
|
|
437
436
|
*/
|
|
438
|
-
declare function ToolbarButton({ onClick, children, title, }: ToolbarButtonProps):
|
|
437
|
+
declare function ToolbarButton({ onClick, children, title, }: ToolbarButtonProps): react.JSX.Element;
|
|
439
438
|
|
|
440
439
|
/**
|
|
441
440
|
* MIT License
|
|
@@ -476,7 +475,7 @@ interface ToolbarCopyButtonProps {
|
|
|
476
475
|
* @param props - The component props.
|
|
477
476
|
* @returns The rendered copy button.
|
|
478
477
|
*/
|
|
479
|
-
declare function ToolbarCopyButton({ onClick, title, }: ToolbarCopyButtonProps):
|
|
478
|
+
declare function ToolbarCopyButton({ onClick, title, }: ToolbarCopyButtonProps): react.JSX.Element;
|
|
480
479
|
|
|
481
480
|
/**
|
|
482
481
|
* MIT License
|
|
@@ -506,7 +505,7 @@ declare function ToolbarCopyButton({ onClick, title, }: ToolbarCopyButtonProps):
|
|
|
506
505
|
*
|
|
507
506
|
* @returns The rendered separator.
|
|
508
507
|
*/
|
|
509
|
-
declare function ToolbarSeparator():
|
|
508
|
+
declare function ToolbarSeparator(): react.JSX.Element;
|
|
510
509
|
|
|
511
510
|
/**
|
|
512
511
|
* MIT License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamlresume/playground",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "Shared playground component for YAMLResume",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"next-themes": "^0.4.6",
|
|
46
46
|
"react-resizable-panels": "^4.7.2",
|
|
47
47
|
"yaml": "^2.8.3",
|
|
48
|
-
"@yamlresume/core": "0.13.
|
|
48
|
+
"@yamlresume/core": "0.13.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/react": "^16.3.2",
|
|
52
|
-
"@types/react": "^
|
|
53
|
-
"@types/react-dom": "^
|
|
54
|
-
"@vitejs/plugin-react": "^
|
|
55
|
-
"jsdom": "^29.
|
|
52
|
+
"@types/react": "^19.2.17",
|
|
53
|
+
"@types/react-dom": "^19.2.3",
|
|
54
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
55
|
+
"jsdom": "^29.1.1",
|
|
56
56
|
"monaco-editor": "^0.55.1",
|
|
57
|
-
"react": "^
|
|
58
|
-
"react-dom": "^
|
|
57
|
+
"react": "^19.2.7",
|
|
58
|
+
"react-dom": "^19.2.7"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|