@rindo/core 3.0.1 → 3.2.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/cli/config-flags.d.ts +122 -122
- package/cli/index.cjs +2335 -2432
- package/cli/index.d.ts +19 -19
- package/cli/index.js +2336 -2433
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.d.ts +73 -73
- package/compiler/rindo.js +66180 -62899
- package/compiler/rindo.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -218
- package/compiler/transpile.d.ts +32 -32
- package/dev-server/client/app-error.d.ts +18 -18
- package/dev-server/client/events.d.ts +6 -6
- package/dev-server/client/hmr-components.d.ts +1 -1
- package/dev-server/client/hmr-external-styles.d.ts +1 -1
- package/dev-server/client/hmr-images.d.ts +1 -1
- package/dev-server/client/hmr-inline-styles.d.ts +1 -1
- package/dev-server/client/hmr-util.d.ts +9 -9
- package/dev-server/client/hmr-window.d.ts +10 -10
- package/dev-server/client/index.d.ts +6 -6
- package/dev-server/client/index.js +781 -781
- package/dev-server/client/logger.d.ts +5 -5
- package/dev-server/client/package.json +1 -1
- package/dev-server/client/progress.d.ts +3 -3
- package/dev-server/client/status.d.ts +4 -4
- package/dev-server/connector.html +2 -2
- package/dev-server/index.d.ts +3 -3
- package/dev-server/index.js +228 -228
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1300 -1281
- package/dev-server/ws.js +1 -1
- package/dev-server/xdg-open +0 -0
- package/internal/app-data/index.cjs +88 -88
- package/internal/app-data/index.d.ts +4 -4
- package/internal/app-data/index.js +88 -88
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +3380 -3380
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +155 -155
- package/internal/client/patch-esm.js +25 -25
- package/internal/client/shadow-css.js +382 -382
- package/internal/hydrate/package.json +1 -1
- package/internal/index.d.ts +2 -2
- package/internal/index.js +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-private.d.ts +2289 -2268
- package/internal/rindo-public-compiler.d.ts +2429 -2356
- package/internal/rindo-public-docs.d.ts +139 -139
- package/internal/rindo-public-runtime.d.ts +1636 -1636
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4766 -4766
- package/mock-doc/index.d.ts +1006 -1006
- package/mock-doc/index.js +4766 -4766
- package/mock-doc/package.json +1 -1
- package/package.json +9 -9
- package/screenshot/connector-base.d.ts +42 -42
- package/screenshot/connector-local.d.ts +7 -7
- package/screenshot/index.d.ts +3 -3
- package/screenshot/index.js +615 -615
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.d.ts +1 -1
- package/screenshot/pixel-match.js +14 -14
- package/screenshot/screenshot-compare.d.ts +3 -3
- package/screenshot/screenshot-fs.d.ts +15 -15
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/graceful-fs.js +1 -1
- package/sys/node/index.d.ts +22 -22
- package/sys/node/index.js +14 -8
- package/sys/node/node-fetch.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +12 -12
- package/testing/index.js +7 -3
- package/testing/jest/jest-config.d.ts +16 -16
- package/testing/jest/jest-environment.d.ts +15 -15
- package/testing/jest/jest-preprocessor.d.ts +59 -59
- package/testing/jest/jest-runner.d.ts +10 -10
- package/testing/jest/jest-screenshot.d.ts +2 -2
- package/testing/jest/jest-serializer.d.ts +4 -4
- package/testing/jest/jest-setup-test-framework.d.ts +1 -1
- package/testing/jest-preset.js +1 -1
- package/testing/matchers/attributes.d.ts +14 -14
- package/testing/matchers/class-list.d.ts +12 -12
- package/testing/matchers/events.d.ts +21 -21
- package/testing/matchers/html.d.ts +12 -12
- package/testing/matchers/index.d.ts +23 -23
- package/testing/matchers/screenshot.d.ts +5 -5
- package/testing/matchers/text.d.ts +4 -4
- package/testing/mock-fetch.d.ts +11 -11
- package/testing/mocks.d.ts +56 -56
- package/testing/package.json +1 -1
- package/testing/puppeteer/index.d.ts +2 -2
- package/testing/puppeteer/puppeteer-browser.d.ts +6 -6
- package/testing/puppeteer/puppeteer-declarations.d.ts +403 -403
- package/testing/puppeteer/puppeteer-element.d.ts +67 -67
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +21 -21
- package/testing/puppeteer/puppeteer-page.d.ts +2 -2
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -4
- package/testing/reset-build-conditionals.d.ts +2 -2
- package/testing/spec-page.d.ts +2 -2
- package/testing/test-transpile.d.ts +2 -2
- package/testing/testing-logger.d.ts +25 -25
- package/testing/testing-sys.d.ts +6 -6
- package/testing/testing-utils.d.ts +79 -79
- package/testing/testing.d.ts +2 -2
- package/dependencies.json +0 -120
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
export interface JsonDocs {
|
|
2
|
-
components: JsonDocsComponent[];
|
|
3
|
-
timestamp: string;
|
|
4
|
-
compiler: {
|
|
5
|
-
name: string;
|
|
6
|
-
version: string;
|
|
7
|
-
typescriptVersion: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface JsonDocsComponent {
|
|
11
|
-
dirPath?: string;
|
|
12
|
-
fileName?: string;
|
|
13
|
-
filePath?: string;
|
|
14
|
-
readmePath?: string;
|
|
15
|
-
usagesDir?: string;
|
|
16
|
-
encapsulation: 'shadow' | 'scoped' | 'none';
|
|
17
|
-
tag: string;
|
|
18
|
-
readme: string;
|
|
19
|
-
docs: string;
|
|
20
|
-
docsTags: JsonDocsTag[];
|
|
21
|
-
/**
|
|
22
|
-
* The text from the class-level JSDoc for a Rindo component, if present.
|
|
23
|
-
*/
|
|
24
|
-
overview?: string;
|
|
25
|
-
usage: JsonDocsUsage;
|
|
26
|
-
props: JsonDocsProp[];
|
|
27
|
-
methods: JsonDocsMethod[];
|
|
28
|
-
events: JsonDocsEvent[];
|
|
29
|
-
listeners: JsonDocsListener[];
|
|
30
|
-
styles: JsonDocsStyle[];
|
|
31
|
-
slots: JsonDocsSlot[];
|
|
32
|
-
parts: JsonDocsPart[];
|
|
33
|
-
dependents: string[];
|
|
34
|
-
dependencies: string[];
|
|
35
|
-
dependencyGraph: JsonDocsDependencyGraph;
|
|
36
|
-
deprecation?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface JsonDocsDependencyGraph {
|
|
39
|
-
[tagName: string]: string[];
|
|
40
|
-
}
|
|
41
|
-
export interface JsonDocsTag {
|
|
42
|
-
name: string;
|
|
43
|
-
text?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface JsonDocsValue {
|
|
46
|
-
value?: string;
|
|
47
|
-
type: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* A mapping of file names to their contents.
|
|
51
|
-
*
|
|
52
|
-
* This type is meant to be used when reading one or more usage markdown files associated with a component. For the
|
|
53
|
-
* given directory structure:
|
|
54
|
-
* ```
|
|
55
|
-
* src/components/my-component
|
|
56
|
-
* ├── my-component.tsx
|
|
57
|
-
* └── usage
|
|
58
|
-
* ├── bar.md
|
|
59
|
-
* └── foo.md
|
|
60
|
-
* ```
|
|
61
|
-
* an instance of this type would include the name of the markdown file, mapped to its contents:
|
|
62
|
-
* ```ts
|
|
63
|
-
* {
|
|
64
|
-
* 'bar': STRING_CONTENTS_OF_BAR.MD
|
|
65
|
-
* 'foo': STRING_CONTENTS_OF_FOO.MD
|
|
66
|
-
* }
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export interface JsonDocsUsage {
|
|
70
|
-
[key: string]: string;
|
|
71
|
-
}
|
|
72
|
-
export interface JsonDocsProp {
|
|
73
|
-
name: string;
|
|
74
|
-
type: string;
|
|
75
|
-
mutable: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* The name of the attribute that is exposed to configure a compiled web component
|
|
78
|
-
*/
|
|
79
|
-
attr?: string;
|
|
80
|
-
reflectToAttr: boolean;
|
|
81
|
-
docs: string;
|
|
82
|
-
docsTags: JsonDocsTag[];
|
|
83
|
-
default: string;
|
|
84
|
-
deprecation?: string;
|
|
85
|
-
values: JsonDocsValue[];
|
|
86
|
-
optional: boolean;
|
|
87
|
-
required: boolean;
|
|
88
|
-
}
|
|
89
|
-
export interface JsonDocsMethod {
|
|
90
|
-
name: string;
|
|
91
|
-
docs: string;
|
|
92
|
-
docsTags: JsonDocsTag[];
|
|
93
|
-
deprecation?: string;
|
|
94
|
-
signature: string;
|
|
95
|
-
returns: JsonDocsMethodReturn;
|
|
96
|
-
parameters: JsonDocMethodParameter[];
|
|
97
|
-
}
|
|
98
|
-
export interface JsonDocsMethodReturn {
|
|
99
|
-
type: string;
|
|
100
|
-
docs: string;
|
|
101
|
-
}
|
|
102
|
-
export interface JsonDocMethodParameter {
|
|
103
|
-
name: string;
|
|
104
|
-
type: string;
|
|
105
|
-
docs: string;
|
|
106
|
-
}
|
|
107
|
-
export interface JsonDocsEvent {
|
|
108
|
-
event: string;
|
|
109
|
-
bubbles: boolean;
|
|
110
|
-
cancelable: boolean;
|
|
111
|
-
composed: boolean;
|
|
112
|
-
docs: string;
|
|
113
|
-
docsTags: JsonDocsTag[];
|
|
114
|
-
deprecation?: string;
|
|
115
|
-
detail: string;
|
|
116
|
-
}
|
|
117
|
-
export interface JsonDocsStyle {
|
|
118
|
-
name: string;
|
|
119
|
-
docs: string;
|
|
120
|
-
annotation: string;
|
|
121
|
-
}
|
|
122
|
-
export interface JsonDocsListener {
|
|
123
|
-
event: string;
|
|
124
|
-
target?: string;
|
|
125
|
-
capture: boolean;
|
|
126
|
-
passive: boolean;
|
|
127
|
-
}
|
|
128
|
-
export interface JsonDocsSlot {
|
|
129
|
-
name: string;
|
|
130
|
-
docs: string;
|
|
131
|
-
}
|
|
132
|
-
export interface JsonDocsPart {
|
|
133
|
-
name: string;
|
|
134
|
-
docs: string;
|
|
135
|
-
}
|
|
136
|
-
export interface StyleDoc {
|
|
137
|
-
name: string;
|
|
138
|
-
docs: string;
|
|
139
|
-
annotation: 'prop';
|
|
1
|
+
export interface JsonDocs {
|
|
2
|
+
components: JsonDocsComponent[];
|
|
3
|
+
timestamp: string;
|
|
4
|
+
compiler: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
typescriptVersion: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface JsonDocsComponent {
|
|
11
|
+
dirPath?: string;
|
|
12
|
+
fileName?: string;
|
|
13
|
+
filePath?: string;
|
|
14
|
+
readmePath?: string;
|
|
15
|
+
usagesDir?: string;
|
|
16
|
+
encapsulation: 'shadow' | 'scoped' | 'none';
|
|
17
|
+
tag: string;
|
|
18
|
+
readme: string;
|
|
19
|
+
docs: string;
|
|
20
|
+
docsTags: JsonDocsTag[];
|
|
21
|
+
/**
|
|
22
|
+
* The text from the class-level JSDoc for a Rindo component, if present.
|
|
23
|
+
*/
|
|
24
|
+
overview?: string;
|
|
25
|
+
usage: JsonDocsUsage;
|
|
26
|
+
props: JsonDocsProp[];
|
|
27
|
+
methods: JsonDocsMethod[];
|
|
28
|
+
events: JsonDocsEvent[];
|
|
29
|
+
listeners: JsonDocsListener[];
|
|
30
|
+
styles: JsonDocsStyle[];
|
|
31
|
+
slots: JsonDocsSlot[];
|
|
32
|
+
parts: JsonDocsPart[];
|
|
33
|
+
dependents: string[];
|
|
34
|
+
dependencies: string[];
|
|
35
|
+
dependencyGraph: JsonDocsDependencyGraph;
|
|
36
|
+
deprecation?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface JsonDocsDependencyGraph {
|
|
39
|
+
[tagName: string]: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface JsonDocsTag {
|
|
42
|
+
name: string;
|
|
43
|
+
text?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface JsonDocsValue {
|
|
46
|
+
value?: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A mapping of file names to their contents.
|
|
51
|
+
*
|
|
52
|
+
* This type is meant to be used when reading one or more usage markdown files associated with a component. For the
|
|
53
|
+
* given directory structure:
|
|
54
|
+
* ```
|
|
55
|
+
* src/components/my-component
|
|
56
|
+
* ├── my-component.tsx
|
|
57
|
+
* └── usage
|
|
58
|
+
* ├── bar.md
|
|
59
|
+
* └── foo.md
|
|
60
|
+
* ```
|
|
61
|
+
* an instance of this type would include the name of the markdown file, mapped to its contents:
|
|
62
|
+
* ```ts
|
|
63
|
+
* {
|
|
64
|
+
* 'bar': STRING_CONTENTS_OF_BAR.MD
|
|
65
|
+
* 'foo': STRING_CONTENTS_OF_FOO.MD
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export interface JsonDocsUsage {
|
|
70
|
+
[key: string]: string;
|
|
71
|
+
}
|
|
72
|
+
export interface JsonDocsProp {
|
|
73
|
+
name: string;
|
|
74
|
+
type: string;
|
|
75
|
+
mutable: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The name of the attribute that is exposed to configure a compiled web component
|
|
78
|
+
*/
|
|
79
|
+
attr?: string;
|
|
80
|
+
reflectToAttr: boolean;
|
|
81
|
+
docs: string;
|
|
82
|
+
docsTags: JsonDocsTag[];
|
|
83
|
+
default: string;
|
|
84
|
+
deprecation?: string;
|
|
85
|
+
values: JsonDocsValue[];
|
|
86
|
+
optional: boolean;
|
|
87
|
+
required: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface JsonDocsMethod {
|
|
90
|
+
name: string;
|
|
91
|
+
docs: string;
|
|
92
|
+
docsTags: JsonDocsTag[];
|
|
93
|
+
deprecation?: string;
|
|
94
|
+
signature: string;
|
|
95
|
+
returns: JsonDocsMethodReturn;
|
|
96
|
+
parameters: JsonDocMethodParameter[];
|
|
97
|
+
}
|
|
98
|
+
export interface JsonDocsMethodReturn {
|
|
99
|
+
type: string;
|
|
100
|
+
docs: string;
|
|
101
|
+
}
|
|
102
|
+
export interface JsonDocMethodParameter {
|
|
103
|
+
name: string;
|
|
104
|
+
type: string;
|
|
105
|
+
docs: string;
|
|
106
|
+
}
|
|
107
|
+
export interface JsonDocsEvent {
|
|
108
|
+
event: string;
|
|
109
|
+
bubbles: boolean;
|
|
110
|
+
cancelable: boolean;
|
|
111
|
+
composed: boolean;
|
|
112
|
+
docs: string;
|
|
113
|
+
docsTags: JsonDocsTag[];
|
|
114
|
+
deprecation?: string;
|
|
115
|
+
detail: string;
|
|
116
|
+
}
|
|
117
|
+
export interface JsonDocsStyle {
|
|
118
|
+
name: string;
|
|
119
|
+
docs: string;
|
|
120
|
+
annotation: string;
|
|
121
|
+
}
|
|
122
|
+
export interface JsonDocsListener {
|
|
123
|
+
event: string;
|
|
124
|
+
target?: string;
|
|
125
|
+
capture: boolean;
|
|
126
|
+
passive: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface JsonDocsSlot {
|
|
129
|
+
name: string;
|
|
130
|
+
docs: string;
|
|
131
|
+
}
|
|
132
|
+
export interface JsonDocsPart {
|
|
133
|
+
name: string;
|
|
134
|
+
docs: string;
|
|
135
|
+
}
|
|
136
|
+
export interface StyleDoc {
|
|
137
|
+
name: string;
|
|
138
|
+
docs: string;
|
|
139
|
+
annotation: 'prop';
|
|
140
140
|
}
|