@pyreon/document-primitives 0.15.0 → 0.18.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.
package/lib/index.d.ts
CHANGED
|
@@ -81,10 +81,10 @@ declare const DocButton: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
81
81
|
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
82
82
|
href?: string;
|
|
83
83
|
}, {}, {
|
|
84
|
-
padding: string;
|
|
85
84
|
borderRadius: number;
|
|
86
85
|
fontSize: number;
|
|
87
86
|
fontWeight: string;
|
|
87
|
+
padding: string;
|
|
88
88
|
textAlign: string;
|
|
89
89
|
textDecoration: string;
|
|
90
90
|
}, {
|
|
@@ -118,10 +118,10 @@ declare const DocCode: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
118
118
|
language?: string;
|
|
119
119
|
}, {}, {
|
|
120
120
|
backgroundColor: string;
|
|
121
|
-
padding: string;
|
|
122
121
|
borderRadius: number;
|
|
123
122
|
fontFamily: string;
|
|
124
123
|
fontSize: number;
|
|
124
|
+
padding: string;
|
|
125
125
|
}, {
|
|
126
126
|
_documentType: "code";
|
|
127
127
|
}, {}, {
|
|
@@ -423,9 +423,9 @@ declare const DocImage: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
423
423
|
beforeContentCss: _$_pyreon_elements0.ExtendCss;
|
|
424
424
|
afterContentCss: _$_pyreon_elements0.ExtendCss;
|
|
425
425
|
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
426
|
+
height?: number | string;
|
|
426
427
|
width?: number | string;
|
|
427
428
|
caption?: string;
|
|
428
|
-
height?: number | string;
|
|
429
429
|
src?: string;
|
|
430
430
|
alt?: string;
|
|
431
431
|
}, {}, {}, {
|
|
@@ -535,7 +535,10 @@ declare const DocListItem: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
535
535
|
paragraph: boolean;
|
|
536
536
|
tag: _$_pyreon_ui_core0.HTMLTextTags;
|
|
537
537
|
css: _$_pyreon_elements0.ExtendCss;
|
|
538
|
-
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
538
|
+
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
539
|
+
tag: string;
|
|
540
|
+
_documentProps: {};
|
|
541
|
+
}, {}, {
|
|
539
542
|
fontSize: number;
|
|
540
543
|
lineHeight: number;
|
|
541
544
|
}, {
|
|
@@ -642,7 +645,10 @@ declare const DocPageBreak: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<
|
|
|
642
645
|
contentCss: _$_pyreon_elements0.ExtendCss;
|
|
643
646
|
beforeContentCss: _$_pyreon_elements0.ExtendCss;
|
|
644
647
|
afterContentCss: _$_pyreon_elements0.ExtendCss;
|
|
645
|
-
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
648
|
+
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
649
|
+
tag: string;
|
|
650
|
+
_documentProps: {};
|
|
651
|
+
}, {}, {}, {
|
|
646
652
|
_documentType: "page-break";
|
|
647
653
|
}, {}, {
|
|
648
654
|
readonly states: "state";
|
|
@@ -694,10 +700,10 @@ declare const DocQuote: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
694
700
|
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
695
701
|
borderColor?: string;
|
|
696
702
|
}, {}, {
|
|
697
|
-
padding: string;
|
|
698
703
|
borderColor: string;
|
|
699
704
|
color: string;
|
|
700
705
|
fontStyle: string;
|
|
706
|
+
padding: string;
|
|
701
707
|
}, {
|
|
702
708
|
_documentType: "quote";
|
|
703
709
|
}, {}, {
|
|
@@ -753,7 +759,12 @@ declare const DocRow: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
753
759
|
contentCss: _$_pyreon_elements0.ExtendCss;
|
|
754
760
|
beforeContentCss: _$_pyreon_elements0.ExtendCss;
|
|
755
761
|
afterContentCss: _$_pyreon_elements0.ExtendCss;
|
|
756
|
-
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
762
|
+
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
763
|
+
tag: string;
|
|
764
|
+
direction: "inline";
|
|
765
|
+
gap: number;
|
|
766
|
+
_documentProps: {};
|
|
767
|
+
}, {}, {}, {
|
|
757
768
|
_documentType: "row";
|
|
758
769
|
}, {}, {
|
|
759
770
|
readonly states: "state";
|
|
@@ -921,9 +932,9 @@ declare const DocTable: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
921
932
|
beforeContentCss: _$_pyreon_elements0.ExtendCss;
|
|
922
933
|
afterContentCss: _$_pyreon_elements0.ExtendCss;
|
|
923
934
|
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
935
|
+
columns?: unknown[];
|
|
924
936
|
caption?: string;
|
|
925
937
|
rows?: unknown[];
|
|
926
|
-
columns?: unknown[];
|
|
927
938
|
headerStyle?: Record<string, unknown>;
|
|
928
939
|
striped?: boolean;
|
|
929
940
|
bordered?: boolean;
|
|
@@ -943,7 +954,10 @@ declare const DocText: _$_pyreon_rocketstyle0.RocketStyleComponent<Partial<{
|
|
|
943
954
|
paragraph: boolean;
|
|
944
955
|
tag: _$_pyreon_ui_core0.HTMLTextTags;
|
|
945
956
|
css: _$_pyreon_elements0.ExtendCss;
|
|
946
|
-
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
957
|
+
}> & _$_pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
|
|
958
|
+
tag: string;
|
|
959
|
+
_documentProps: {};
|
|
960
|
+
}, {}, {
|
|
947
961
|
color: string;
|
|
948
962
|
lineHeight: number;
|
|
949
963
|
marginBottom: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/document-primitives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Rocketstyle document components — render in browser, export to 18 formats",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,30 +42,28 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@pyreon/connector-document": "^0.
|
|
45
|
+
"@pyreon/connector-document": "^0.18.0",
|
|
46
|
+
"@pyreon/core": "^0.18.0",
|
|
47
|
+
"@pyreon/document": "^0.18.0",
|
|
48
|
+
"@pyreon/elements": "^0.18.0",
|
|
49
|
+
"@pyreon/rocketstyle": "^0.18.0",
|
|
50
|
+
"@pyreon/styler": "^0.18.0",
|
|
51
|
+
"@pyreon/ui-core": "^0.18.0"
|
|
46
52
|
},
|
|
47
53
|
"devDependencies": {
|
|
48
|
-
"@pyreon/core": "^0.
|
|
49
|
-
"@pyreon/elements": "^0.
|
|
54
|
+
"@pyreon/core": "^0.18.0",
|
|
55
|
+
"@pyreon/elements": "^0.18.0",
|
|
50
56
|
"@pyreon/manifest": "0.13.1",
|
|
51
|
-
"@pyreon/reactivity": "^0.
|
|
52
|
-
"@pyreon/rocketstyle": "^0.
|
|
53
|
-
"@pyreon/runtime-dom": "^0.
|
|
54
|
-
"@pyreon/styler": "^0.
|
|
55
|
-
"@pyreon/test-utils": "^0.13.
|
|
56
|
-
"@pyreon/typescript": "^0.
|
|
57
|
-
"@pyreon/ui-core": "^0.
|
|
57
|
+
"@pyreon/reactivity": "^0.18.0",
|
|
58
|
+
"@pyreon/rocketstyle": "^0.18.0",
|
|
59
|
+
"@pyreon/runtime-dom": "^0.18.0",
|
|
60
|
+
"@pyreon/styler": "^0.18.0",
|
|
61
|
+
"@pyreon/test-utils": "^0.13.5",
|
|
62
|
+
"@pyreon/typescript": "^0.18.0",
|
|
63
|
+
"@pyreon/ui-core": "^0.18.0",
|
|
58
64
|
"@vitest/browser-playwright": "^4.1.4",
|
|
59
65
|
"@vitus-labs/tools-rolldown": "^2.3.0"
|
|
60
66
|
},
|
|
61
|
-
"peerDependencies": {
|
|
62
|
-
"@pyreon/core": "^0.15.0",
|
|
63
|
-
"@pyreon/document": "^0.15.0",
|
|
64
|
-
"@pyreon/elements": "^0.15.0",
|
|
65
|
-
"@pyreon/rocketstyle": "^0.15.0",
|
|
66
|
-
"@pyreon/styler": "^0.15.0",
|
|
67
|
-
"@pyreon/ui-core": "^0.15.0"
|
|
68
|
-
},
|
|
69
67
|
"engines": {
|
|
70
68
|
"node": ">= 22"
|
|
71
69
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { initTestConfig, renderProps } from '@pyreon/test-utils'
|
|
2
|
-
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
+
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'
|
|
3
|
+
|
|
4
|
+
// Each test dynamically imports a primitive module which transitively
|
|
5
|
+
// pulls in @pyreon/rocketstyle + @pyreon/attrs + @pyreon/styler chain.
|
|
6
|
+
// First-load on slow CI runners takes 5-30s per primitive. The default
|
|
7
|
+
// 5000ms timeout was hitting these on every cold load.
|
|
8
|
+
vi.setConfig({ testTimeout: 60_000 })
|
|
3
9
|
|
|
4
10
|
let cleanup: () => void
|
|
5
11
|
beforeAll(() => {
|
|
@@ -217,7 +217,7 @@ describe('DocDocument reactive metadata (D1 integration)', () => {
|
|
|
217
217
|
// compilation, rocketstyle wrapping, etc.) which takes 5+
|
|
218
218
|
// seconds on slow CI runners on first hit. The default 5000ms
|
|
219
219
|
// timeout fails reliably on CI.
|
|
220
|
-
it('DocDocument with accessor title produces live values across multiple extractions', { timeout:
|
|
220
|
+
it('DocDocument with accessor title produces live values across multiple extractions', { timeout: 60_000 }, async () => {
|
|
221
221
|
// Use happy-dom + initTestConfig like the rest of the test suite
|
|
222
222
|
const { initTestConfig } = await import('@pyreon/test-utils')
|
|
223
223
|
const { h } = await import('@pyreon/core')
|