@mgdis/stencil-helpers 1.0.4 → 1.1.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/dist/ide/index.d.ts +88 -0
- package/dist/ide/index.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +404 -296
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/storybook/index.d.ts +1 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { JsonDocs } from '@stencil/core/internal';
|
|
2
|
+
/**
|
|
3
|
+
* Generate Web Types metadata for IntelliJ's IDE
|
|
4
|
+
* @param name - Library name
|
|
5
|
+
* @param version - Library version
|
|
6
|
+
* @param jsonDocs - Stencil JSON doc
|
|
7
|
+
* @param storybookBaseUrl - Storybook Base Url
|
|
8
|
+
* @returns Web Types metadata
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const webTypesJson = webTypesGenerator('@mgdis/mg-components', '1.0.0', jsonDocs, 'https://storybook.example.com');
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const webTypesGenerator: (name: string, version: string, jsonDocs: JsonDocs, storybookBaseUrl: string) => {
|
|
15
|
+
$schema: string;
|
|
16
|
+
name: string;
|
|
17
|
+
version: string;
|
|
18
|
+
'description-markup': string;
|
|
19
|
+
contributions: {
|
|
20
|
+
html: {
|
|
21
|
+
elements: {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
'doc-url': string | undefined;
|
|
25
|
+
attributes: {
|
|
26
|
+
name: string | undefined;
|
|
27
|
+
description: string;
|
|
28
|
+
'doc-url': string | undefined;
|
|
29
|
+
value: {
|
|
30
|
+
type: string;
|
|
31
|
+
default: string | undefined;
|
|
32
|
+
required: boolean;
|
|
33
|
+
};
|
|
34
|
+
}[];
|
|
35
|
+
js: {
|
|
36
|
+
properties: {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
'doc-url': string | undefined;
|
|
40
|
+
value: {
|
|
41
|
+
type: string;
|
|
42
|
+
default: string | undefined;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
}[];
|
|
46
|
+
events: {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Generate custom HTML datasets for VS Code
|
|
57
|
+
* @param version - Library version
|
|
58
|
+
* @param jsonDocs - Stencil JSON doc
|
|
59
|
+
* @param storybookBaseUrl - Storybook Base Url
|
|
60
|
+
* @returns custom HTML datasets
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const customDataJson = vsCodeGenerator('1.0.0', jsonDocs, 'https://storybook.example.com', 'https://sources.example.com');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare const vsCodeGenerator: (version: string, jsonDocs: JsonDocs, storybookBaseUrl: string, sourceBaseUrl: string) => {
|
|
67
|
+
version: string;
|
|
68
|
+
tags: {
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
attributes: {
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
values: unknown[] | undefined;
|
|
75
|
+
references: {
|
|
76
|
+
name: string;
|
|
77
|
+
url: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
}[];
|
|
80
|
+
references: {
|
|
81
|
+
name: string;
|
|
82
|
+
url: string | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
globalAttributes: never[];
|
|
86
|
+
valueSets: never[];
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ide/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AAwFnF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAAW,MAAM,YAAY,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C3G,CAAC;AA+BH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAa,MAAM,YAAY,QAAQ,oBAAoB,MAAM,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;CAkBlH,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|