@knapsack/renderer-web-components 4.69.0--canary.4433.d5d9fce.1 → 4.69.0--canary.4627.955e589.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +36 -0
- package/dist/infer-spec.d.ts +7 -0
- package/dist/infer-spec.d.ts.map +1 -0
- package/dist/infer-spec.js +123 -0
- package/dist/infer-spec.js.map +1 -0
- package/dist/infer-spec.test.d.ts +2 -0
- package/dist/infer-spec.test.d.ts.map +1 -0
- package/dist/infer-spec.test.js +154 -0
- package/dist/infer-spec.test.js.map +1 -0
- package/dist/renderer-web-components.d.ts +12 -1
- package/dist/renderer-web-components.d.ts.map +1 -1
- package/dist/renderer-web-components.js +79 -3
- package/dist/renderer-web-components.js.map +1 -1
- package/dist/test-fixtures/custom-element.d.ts +3 -0
- package/dist/test-fixtures/custom-element.d.ts.map +1 -0
- package/dist/test-fixtures/custom-element.js +133 -0
- package/dist/test-fixtures/custom-element.js.map +1 -0
- package/dist/utils.d.ts +217 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +43 -0
- package/dist/utils.js.map +1 -1
- package/dist/utils.test.js +2 -2
- package/dist/utils.test.js.map +1 -1
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,39 @@
|
|
1
|
+
# v4.68.12 (Thu Aug 29 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- Merge branch 'latest' into KSP-5360-infer-mui-component-types ([@brittanysmart](https://github.com/brittanysmart))
|
6
|
+
|
7
|
+
#### 🏠 Internal
|
8
|
+
|
9
|
+
- add MUI infer spec test [#4510](https://github.com/knapsack-labs/app-monorepo/pull/4510) ([@brittanysmart](https://github.com/brittanysmart))
|
10
|
+
|
11
|
+
#### Authors: 1
|
12
|
+
|
13
|
+
- Brittany Smart ([@brittanysmart](https://github.com/brittanysmart))
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
# v4.68.11 (Tue Aug 27 2024)
|
18
|
+
|
19
|
+
#### 🐛 Bug Fix
|
20
|
+
|
21
|
+
- Fix merge conflict with navs ([@rockymountainhigh1943](https://github.com/rockymountainhigh1943))
|
22
|
+
- Merge branch 'latest' into feature/ksp-5388-ability-to-set-the-header-page-background-color-globally ([@GormanDesign](https://github.com/GormanDesign))
|
23
|
+
- Merge branch 'feature/ksp-5388-ability-to-set-the-header-page-background-color-globally' of github.com:knapsack-labs/app-monorepo into feature/ksp-5388-ability-to-set-the-header-page-background-color-globally ([@GormanDesign](https://github.com/GormanDesign))
|
24
|
+
- Merge branch 'latest' into feature/ksp-5337-add-slot-item-ux-refactor ([@GormanDesign](https://github.com/GormanDesign))
|
25
|
+
- Merge remote-tracking branch 'origin/latest' into feature/ksp-5337-add-slot-item-ux-refactor ([@EvanLovely](https://github.com/EvanLovely))
|
26
|
+
- Merge branch 'latest' into feature/ksp-5337-add-slot-item-ux-refactor ([@illepic](https://github.com/illepic))
|
27
|
+
|
28
|
+
#### Authors: 4
|
29
|
+
|
30
|
+
- Christopher Bloom ([@illepic](https://github.com/illepic))
|
31
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
32
|
+
- Jake Love ([@rockymountainhigh1943](https://github.com/rockymountainhigh1943))
|
33
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
34
|
+
|
35
|
+
---
|
36
|
+
|
1
37
|
# v4.68.9 (Wed Aug 21 2024)
|
2
38
|
|
3
39
|
#### 🐛 Bug Fix
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { KsTemplateSpec } from '@knapsack/types';
|
2
|
+
import { CustomElementManifest } from './utils';
|
3
|
+
export declare function inferSpec({ customElementManifestSchema, tagName, }: {
|
4
|
+
tagName: string;
|
5
|
+
customElementManifestSchema: CustomElementManifest;
|
6
|
+
}): KsTemplateSpec | false;
|
7
|
+
//# sourceMappingURL=infer-spec.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infer-spec.d.ts","sourceRoot":"","sources":["../src/infer-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,SAAS,CAAC,EACxB,2BAA2B,EAC3B,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B,EAAE,qBAAqB,CAAC;CACpD,GAAG,cAAc,GAAG,KAAK,CA8HzB"}
|
@@ -0,0 +1,123 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.inferSpec = inferSpec;
|
4
|
+
const utils_1 = require("@knapsack/utils");
|
5
|
+
function inferSpec({ customElementManifestSchema, tagName, }) {
|
6
|
+
var _a, _b, _c, _d, _e;
|
7
|
+
if (!customElementManifestSchema)
|
8
|
+
return false;
|
9
|
+
const tag = customElementManifestSchema.tags.find(({ name }) => name === tagName);
|
10
|
+
if (!tag || !((_a = tag.attributes) === null || _a === void 0 ? void 0 : _a.length))
|
11
|
+
return false;
|
12
|
+
const props = {
|
13
|
+
type: 'object',
|
14
|
+
required: [],
|
15
|
+
properties: {},
|
16
|
+
};
|
17
|
+
const attrDocs = {
|
18
|
+
id: 'attributes',
|
19
|
+
title: 'Attributes',
|
20
|
+
description: 'Attributes for the custom element',
|
21
|
+
tableRows: [],
|
22
|
+
};
|
23
|
+
const eventDocs = {
|
24
|
+
id: 'events',
|
25
|
+
title: 'Events',
|
26
|
+
description: 'Events for the custom element',
|
27
|
+
tableRows: ((_b = tag.events) === null || _b === void 0 ? void 0 : _b.map(({ name }) => ({
|
28
|
+
Name: name,
|
29
|
+
}))) || [],
|
30
|
+
};
|
31
|
+
const cssPropsDocs = {
|
32
|
+
id: 'css-properties',
|
33
|
+
title: 'CSS Properties',
|
34
|
+
description: 'CSS Properties for the custom element',
|
35
|
+
tableRows: ((_c = tag.cssProperties) === null || _c === void 0 ? void 0 : _c.map(({ name, description = '' }) => ({
|
36
|
+
Name: name,
|
37
|
+
Description: description,
|
38
|
+
}))) || [],
|
39
|
+
};
|
40
|
+
(_d = tag.attributes) === null || _d === void 0 ? void 0 : _d.forEach(({ name, type, description = '', default: defaultValue }) => {
|
41
|
+
if (!type)
|
42
|
+
return;
|
43
|
+
attrDocs.tableRows.push({
|
44
|
+
Name: name,
|
45
|
+
Type: `\`${type}\``,
|
46
|
+
Description: description,
|
47
|
+
Default: defaultValue,
|
48
|
+
});
|
49
|
+
switch (type) {
|
50
|
+
case 'string': {
|
51
|
+
props.properties[name] = {
|
52
|
+
type: 'string',
|
53
|
+
description,
|
54
|
+
default: (0, utils_1.removeWrappingDoubleQuotes)(defaultValue),
|
55
|
+
};
|
56
|
+
break;
|
57
|
+
}
|
58
|
+
case 'number': {
|
59
|
+
props.properties[name] = {
|
60
|
+
type: 'number',
|
61
|
+
description,
|
62
|
+
default: typeof defaultValue === 'number'
|
63
|
+
? defaultValue
|
64
|
+
: parseInt((0, utils_1.removeWrappingDoubleQuotes)(defaultValue), 10),
|
65
|
+
};
|
66
|
+
break;
|
67
|
+
}
|
68
|
+
case 'boolean': {
|
69
|
+
props.properties[name] = {
|
70
|
+
type: 'boolean',
|
71
|
+
description,
|
72
|
+
default: typeof defaultValue === 'boolean'
|
73
|
+
? defaultValue
|
74
|
+
: (0, utils_1.removeWrappingDoubleQuotes)(defaultValue) === 'true',
|
75
|
+
};
|
76
|
+
break;
|
77
|
+
}
|
78
|
+
default: {
|
79
|
+
if (type.includes('|')) {
|
80
|
+
// enums / unions (multi-choice strings)
|
81
|
+
// comes in like this: `{ name: '"option1" | "option2" | "option3"' }`
|
82
|
+
const options = type
|
83
|
+
.split('|')
|
84
|
+
.map((enumItem) => (0, utils_1.removeWrappingDoubleQuotes)(enumItem.trim()))
|
85
|
+
.filter(Boolean);
|
86
|
+
if (options === null || options === void 0 ? void 0 : options.length) {
|
87
|
+
props.properties[name] = {
|
88
|
+
type: 'string',
|
89
|
+
// ensuring list is unique
|
90
|
+
enum: [...new Set(options)],
|
91
|
+
default: (0, utils_1.removeWrappingDoubleQuotes)(defaultValue),
|
92
|
+
};
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
});
|
98
|
+
const extraDocs = [];
|
99
|
+
if (attrDocs.tableRows.length) {
|
100
|
+
extraDocs.push(attrDocs);
|
101
|
+
}
|
102
|
+
if (eventDocs.tableRows.length) {
|
103
|
+
extraDocs.push(eventDocs);
|
104
|
+
}
|
105
|
+
if (cssPropsDocs.tableRows.length) {
|
106
|
+
extraDocs.push(cssPropsDocs);
|
107
|
+
}
|
108
|
+
const slots = {};
|
109
|
+
(_e = tag.slots) === null || _e === void 0 ? void 0 : _e.forEach(({ name, description }) => {
|
110
|
+
slots[name] = {
|
111
|
+
title: name,
|
112
|
+
description,
|
113
|
+
};
|
114
|
+
});
|
115
|
+
return {
|
116
|
+
isInferred: true,
|
117
|
+
props,
|
118
|
+
slots,
|
119
|
+
extraDocs,
|
120
|
+
hidePropsTable: true,
|
121
|
+
};
|
122
|
+
}
|
123
|
+
//# sourceMappingURL=infer-spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infer-spec.js","sourceRoot":"","sources":["../src/infer-spec.ts"],"names":[],"mappings":";;AAIA,8BAoIC;AAvID,2CAA6D;AAG7D,SAAgB,SAAS,CAAC,EACxB,2BAA2B,EAC3B,OAAO,GAIR;;IACC,IAAI,CAAC,2BAA2B;QAAE,OAAO,KAAK,CAAC;IAC/C,MAAM,GAAG,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAC/C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAC/B,CAAC;IACF,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA,MAAA,GAAG,CAAC,UAAU,0CAAE,MAAM,CAAA;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,KAAK,GAA4B;QACrC,IAAI,EAAE,QAA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E,QAAQ;4BACd,0BAA0B;4BAC1B,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;4BAC3B,OAAO,EAAE,IAAA,kCAA0B,EAAC,YAAY,CAAC;yBAClD,CAAC;oBACJ,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;IAEF,MAAM,SAAS,GAAgC,EAAE,CAAC;IAClD,IAAI,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAC9B,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAC/B,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,YAAY,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,KAAK,GAA4B,EAAE,CAAC;IAC1C,MAAA,GAAG,CAAC,KAAK,0CAAE,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAC3C,KAAK,CAAC,IAAI,CAAC,GAAG;YACZ,KAAK,EAAE,IAAI;YACX,WAAW;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,KAAK;QACL,KAAK;QACL,SAAS;QACT,cAAc,EAAE,IAAI;KACrB,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infer-spec.test.d.ts","sourceRoot":"","sources":["../src/infer-spec.test.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const ava_1 = __importDefault(require("ava"));
|
7
|
+
const infer_spec_1 = require("./infer-spec");
|
8
|
+
const custom_element_1 = require("./test-fixtures/custom-element");
|
9
|
+
(0, ava_1.default)('inferSpec', (t) => {
|
10
|
+
const spec = (0, infer_spec_1.inferSpec)({
|
11
|
+
customElementManifestSchema: custom_element_1.customElementManifestSchema,
|
12
|
+
tagName: 'ks-alert',
|
13
|
+
});
|
14
|
+
t.deepEqual(spec, {
|
15
|
+
extraDocs: [
|
16
|
+
{
|
17
|
+
description: 'Attributes for the custom element',
|
18
|
+
id: 'attributes',
|
19
|
+
tableRows: [
|
20
|
+
{
|
21
|
+
Default: '"2"',
|
22
|
+
Description: '',
|
23
|
+
Name: 'priority',
|
24
|
+
Type: '`"1" | "2" | "3" | "4"`',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
Default: '"info"',
|
28
|
+
Description: '',
|
29
|
+
Name: 'statusType',
|
30
|
+
Type: '`"info" | "warning" | "error" | "success"`',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
Default: '"large"',
|
34
|
+
Description: '',
|
35
|
+
Name: 'size',
|
36
|
+
Type: '`"small" | "large"`',
|
37
|
+
},
|
38
|
+
{
|
39
|
+
Default: 'false',
|
40
|
+
Description: 'This is important context for screen readers.',
|
41
|
+
Name: 'isInteractive',
|
42
|
+
Type: '`boolean`',
|
43
|
+
},
|
44
|
+
{
|
45
|
+
Default: 'true',
|
46
|
+
Description: '',
|
47
|
+
Name: 'shouldShowIcon',
|
48
|
+
Type: '`boolean`',
|
49
|
+
},
|
50
|
+
],
|
51
|
+
title: 'Attributes',
|
52
|
+
},
|
53
|
+
{
|
54
|
+
description: 'CSS Properties for the custom element',
|
55
|
+
id: 'css-properties',
|
56
|
+
tableRows: [
|
57
|
+
{
|
58
|
+
Description: 'The background color for the info alert.',
|
59
|
+
Name: '--ks-alert-info-background',
|
60
|
+
},
|
61
|
+
{
|
62
|
+
Description: 'The text color for the info alert.',
|
63
|
+
Name: '--ks-alert-info-text',
|
64
|
+
},
|
65
|
+
{
|
66
|
+
Description: 'The border color for the info alert.',
|
67
|
+
Name: '--ks-alert-info-border',
|
68
|
+
},
|
69
|
+
{
|
70
|
+
Description: 'The background color for the success alert.',
|
71
|
+
Name: '--ks-alert-success-background',
|
72
|
+
},
|
73
|
+
{
|
74
|
+
Description: 'The text color for the success alert.',
|
75
|
+
Name: '--ks-alert-success-text',
|
76
|
+
},
|
77
|
+
{
|
78
|
+
Description: 'The border color for the success alert.',
|
79
|
+
Name: '--ks-alert-success-border',
|
80
|
+
},
|
81
|
+
{
|
82
|
+
Description: 'The background color for the warning alert.',
|
83
|
+
Name: '--ks-alert-warning-background',
|
84
|
+
},
|
85
|
+
{
|
86
|
+
Description: 'The text color for the warning alert.',
|
87
|
+
Name: '--ks-alert-warning-text',
|
88
|
+
},
|
89
|
+
{
|
90
|
+
Description: 'The border color for the warning alert.',
|
91
|
+
Name: '--ks-alert-warning-border',
|
92
|
+
},
|
93
|
+
{
|
94
|
+
Description: 'The background color for the error alert.',
|
95
|
+
Name: '--ks-alert-error-background',
|
96
|
+
},
|
97
|
+
{
|
98
|
+
Description: 'The text color for the error alert.',
|
99
|
+
Name: '--ks-alert-error-text',
|
100
|
+
},
|
101
|
+
{
|
102
|
+
Description: 'The border color for the error alert.',
|
103
|
+
Name: '--ks-alert-error-border',
|
104
|
+
},
|
105
|
+
],
|
106
|
+
title: 'CSS Properties',
|
107
|
+
},
|
108
|
+
],
|
109
|
+
hidePropsTable: true,
|
110
|
+
isInferred: true,
|
111
|
+
props: {
|
112
|
+
type: 'object',
|
113
|
+
required: [],
|
114
|
+
properties: {
|
115
|
+
isInteractive: {
|
116
|
+
default: false,
|
117
|
+
description: 'This is important context for screen readers.',
|
118
|
+
type: 'boolean',
|
119
|
+
},
|
120
|
+
priority: {
|
121
|
+
default: '2',
|
122
|
+
enum: ['1', '2', '3', '4'],
|
123
|
+
type: 'string',
|
124
|
+
},
|
125
|
+
shouldShowIcon: {
|
126
|
+
default: true,
|
127
|
+
description: '',
|
128
|
+
type: 'boolean',
|
129
|
+
},
|
130
|
+
size: {
|
131
|
+
default: 'large',
|
132
|
+
enum: ['small', 'large'],
|
133
|
+
type: 'string',
|
134
|
+
},
|
135
|
+
statusType: {
|
136
|
+
default: 'info',
|
137
|
+
enum: ['info', 'warning', 'error', 'success'],
|
138
|
+
type: 'string',
|
139
|
+
},
|
140
|
+
},
|
141
|
+
},
|
142
|
+
slots: {
|
143
|
+
default: {
|
144
|
+
title: 'default',
|
145
|
+
description: 'The alert contents.',
|
146
|
+
},
|
147
|
+
header: {
|
148
|
+
title: 'header',
|
149
|
+
description: 'The header in the alert.',
|
150
|
+
},
|
151
|
+
},
|
152
|
+
});
|
153
|
+
});
|
154
|
+
//# sourceMappingURL=infer-spec.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infer-spec.test.js","sourceRoot":"","sources":["../src/infer-spec.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,6CAAyC;AACzC,mEAA6E;AAE7E,IAAA,aAAI,EAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;IACtB,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC;QACrB,2BAA2B,EAA3B,4CAA2B;QAC3B,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;IACH,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;QAChB,SAAS,EAAE;YACT;gBACE,WAAW,EAAE,mCAAmC;gBAChD,EAAE,EAAE,YAAY;gBAChB,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,KAAK;wBACd,WAAW,EAAE,EAAE;wBACf,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,yBAAyB;qBAChC;oBACD;wBACE,OAAO,EAAE,QAAQ;wBACjB,WAAW,EAAE,EAAE;wBACf,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,4CAA4C;qBACnD;oBACD;wBACE,OAA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AAI,EAAE,yBAAyB;qBAChC;iBACF;gBACD,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE;gBACV,aAAa,EAAE;oBACb,OAAO,EAAE,KAAK;oBACd,WAAW,EAAE,+CAA+C;oBAC5D,IAAI,EAAE,SAAS;iBAChB;gBACD,QAAQ,EAAE;oBACR,OAAO,EAAE,GAAG;oBACZ,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;oBAC1B,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,OAAO,EAAE,IAAI;oBACb,WAAW,EAAE,EAAE;oBACf,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;oBAChB,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC;oBAC7C,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qBAAqB;aACnC;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;aACxC;SACF;KACoB,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC"}
|
@@ -1,9 +1,20 @@
|
|
1
1
|
import { KnapsackRendererBase } from '@knapsack/app';
|
2
2
|
import type { KnapsackRenderParams, KnapsackTemplateRenderer, KnapsackTemplateRendererResults, KnapsackTemplateRendererBase } from '@knapsack/app/types';
|
3
3
|
export declare class KnapsackWebComponentRenderer extends KnapsackRendererBase implements KnapsackTemplateRenderer {
|
4
|
-
|
4
|
+
#private;
|
5
|
+
constructor({ customElementManifestSchemaPath, }: {
|
6
|
+
/**
|
7
|
+
* Path to a custom-elements.json file.
|
8
|
+
* https://github.com/webcomponents/custom-elements-manifest
|
9
|
+
* https://github.com/runem/web-component-analyzer
|
10
|
+
*/
|
11
|
+
customElementManifestSchemaPath?: string;
|
12
|
+
});
|
5
13
|
render(opt: KnapsackRenderParams): Promise<KnapsackTemplateRendererResults>;
|
6
14
|
getUsage(opt: KnapsackRenderParams): Promise<string>;
|
15
|
+
inferSpec({ template, }: Parameters<KnapsackTemplateRendererBase['inferSpec']>[0]): Promise<false | import("@knapsack/types").KsTemplateSpec>;
|
16
|
+
getTemplateSuggestions({ newPath, }: Parameters<KnapsackTemplateRendererBase['getTemplateSuggestions']>[0]): ReturnType<KnapsackTemplateRendererBase['getTemplateSuggestions']>;
|
17
|
+
watch(): Promise<void>;
|
7
18
|
getMeta: KnapsackTemplateRenderer['getMeta'];
|
8
19
|
getTemplateMeta: KnapsackTemplateRendererBase['getTemplateMeta'];
|
9
20
|
alterTemplateMetaFiles: KnapsackTemplateRendererBase['alterTemplateMetaFiles'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-web-components.d.ts","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"renderer-web-components.d.ts","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAO,MAAM,eAAe,CAAC;AAC1E,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AA8B7B,qBAAa,4BACX,SAAQ,oBACR,YAAW,wBAAwB;;gBAKvB,EACV,+BAA+B,GAChC,EAAE;QACD;;;;WAIG;QACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;KAC1C;IAsCK,MAAM,CACV,GAAG,EAAE,oBAAoB,GACxB,OAAO,CAAC,+BAA+B,CAAC;IAYrC,QAAQ,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IAoKpD,SAAS,CAAC,EACd,QAAQ,GACT,EAAE,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAQrD,sBAAsB,CAAC,EAC3B,OAAO,GACR,EAAE,UAAU,CACX,4BAA4B,CAAC,wBAAwB,CAAC,CACvD,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;IAanE,KAAK;IAcX,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC,CA2BzC;IAEH,eAAe,EAAE,4BAA4B,CAAC,iBAAiB,CAAC,CAyE9D;IAEF,sBAAsB,EAAE,4BAA4B,CAAC,wBAAwB,CAAC,CAuB1E;CACL"}
|
@@ -1,6 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
7
|
+
};
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
var _KnapsackWebComponentRenderer_instances, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, _KnapsackWebComponentRenderer_customElementManifestSchema, _KnapsackWebComponentRenderer_setCustomElementManifestSchema;
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
18
|
exports.KnapsackWebComponentRenderer = void 0;
|
19
|
+
const chokidar_1 = __importDefault(require("chokidar"));
|
4
20
|
const app_1 = require("@knapsack/app");
|
5
21
|
const fs_extra_1 = require("fs-extra");
|
6
22
|
const types_1 = require("@knapsack/types");
|
@@ -8,17 +24,21 @@ const path_1 = require("path");
|
|
8
24
|
const file_utils_1 = require("@knapsack/file-utils");
|
9
25
|
const cheerio_1 = require("cheerio");
|
10
26
|
const utils_1 = require("./utils");
|
27
|
+
const infer_spec_1 = require("./infer-spec");
|
11
28
|
const pkg = JSON.parse((0, fs_extra_1.readFileSync)((0, path_1.join)(__dirname, '../package.json'), 'utf-8'));
|
12
29
|
app_1.log.setupUpdateNotifier(pkg);
|
13
30
|
// static methods only
|
14
31
|
const { createSlotOptionsHtmlTags } = app_1.KnapsackRendererBase;
|
15
32
|
class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
16
|
-
constructor() {
|
33
|
+
constructor({ customElementManifestSchemaPath, }) {
|
17
34
|
super({
|
18
35
|
id: types_1.rendererIds['web-components'],
|
19
36
|
language: 'html',
|
20
37
|
extension: '.html',
|
21
38
|
});
|
39
|
+
_KnapsackWebComponentRenderer_instances.add(this);
|
40
|
+
_KnapsackWebComponentRenderer_customElementManifestSchemaPath.set(this, void 0);
|
41
|
+
_KnapsackWebComponentRenderer_customElementManifestSchema.set(this, void 0);
|
22
42
|
this.getMeta = () => ({
|
23
43
|
id: this.id,
|
24
44
|
title: 'Web Components',
|
@@ -30,8 +50,8 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
30
50
|
hasSlotsSupport: true,
|
31
51
|
hasSlotOptionsSupport: true,
|
32
52
|
version: pkg.version,
|
33
|
-
hasInferSpecSupport:
|
34
|
-
hasTemplateSuggestionsSupport:
|
53
|
+
hasInferSpecSupport: !!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"),
|
54
|
+
hasTemplateSuggestionsSupport: !!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"),
|
35
55
|
prototypingTemplate: {
|
36
56
|
path: '',
|
37
57
|
alias: 'div',
|
@@ -137,6 +157,17 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
137
157
|
});
|
138
158
|
return newFiles;
|
139
159
|
};
|
160
|
+
if (customElementManifestSchemaPath) {
|
161
|
+
const { absolutePath, exists } = (0, file_utils_1.resolvePathSync)({
|
162
|
+
path: customElementManifestSchemaPath,
|
163
|
+
resolveFromDir: this.userConfigDir,
|
164
|
+
});
|
165
|
+
if (!exists) {
|
166
|
+
throw new Error(`Cannot find custom element manifest schema at ${customElementManifestSchemaPath}`);
|
167
|
+
}
|
168
|
+
__classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, absolutePath, "f");
|
169
|
+
__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
|
170
|
+
}
|
140
171
|
}
|
141
172
|
async render(opt) {
|
142
173
|
const usage = await this.getUsage(opt);
|
@@ -262,6 +293,51 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
262
293
|
throw new Error(`Must pass in a demo.type`);
|
263
294
|
}
|
264
295
|
}
|
296
|
+
async inferSpec({ template, }) {
|
297
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
298
|
+
return false;
|
299
|
+
return (0, infer_spec_1.inferSpec)({
|
300
|
+
customElementManifestSchema: __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, "f"),
|
301
|
+
tagName: template.alias,
|
302
|
+
});
|
303
|
+
}
|
304
|
+
async getTemplateSuggestions({ newPath, }) {
|
305
|
+
var _a;
|
306
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
307
|
+
return { suggestions: [] };
|
308
|
+
const tagNames = ((_a = __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, "f").tags) === null || _a === void 0 ? void 0 : _a.map(({ name }) => name)) || [];
|
309
|
+
const usedNames = this.getMyTemplates().allTemplates.map(({ alias }) => alias);
|
310
|
+
const unusedNames = tagNames.filter((name) => !usedNames.includes(name));
|
311
|
+
return {
|
312
|
+
suggestions: unusedNames.map((name) => ({ alias: name, path: '' })),
|
313
|
+
};
|
314
|
+
}
|
315
|
+
async watch() {
|
316
|
+
super.watch({ templatePaths: [] });
|
317
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
318
|
+
return;
|
319
|
+
const watcher = chokidar_1.default.watch(__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"), {
|
320
|
+
ignoreInitial: true,
|
321
|
+
});
|
322
|
+
watcher.on('change', () => {
|
323
|
+
__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
|
324
|
+
app_1.knapsackEvents.emitAppClientDataChanged();
|
325
|
+
this.onChange();
|
326
|
+
});
|
327
|
+
app_1.knapsackEvents.onShutdown(() => watcher.close());
|
328
|
+
}
|
265
329
|
}
|
266
330
|
exports.KnapsackWebComponentRenderer = KnapsackWebComponentRenderer;
|
331
|
+
_KnapsackWebComponentRenderer_customElementManifestSchemaPath = new WeakMap(), _KnapsackWebComponentRenderer_customElementManifestSchema = new WeakMap(), _KnapsackWebComponentRenderer_instances = new WeakSet(), _KnapsackWebComponentRenderer_setCustomElementManifestSchema = function _KnapsackWebComponentRenderer_setCustomElementManifestSchema() {
|
332
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
333
|
+
return;
|
334
|
+
const customElementManifestSchema = (0, file_utils_1.readJSONSync)(__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"));
|
335
|
+
try {
|
336
|
+
const data = utils_1.CustomElementsSchema.parse(customElementManifestSchema);
|
337
|
+
__classPrivateFieldSet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, data, "f");
|
338
|
+
}
|
339
|
+
catch (e) {
|
340
|
+
throw new Error(`Validation errors in custom element manifest schema from ${__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f")}.\n${e.message}`);
|
341
|
+
}
|
342
|
+
};
|
267
343
|
//# sourceMappingURL=renderer-web-components.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-web-components.js","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAO1D,uCAAkD;AAClD,2CAKyB;AAKzB,+BAA4B;AAC5B,qDAAkD;AAClD,qCAA8C;AAC9C,mCAAmC;AAEnC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,IAAA,uBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAC1D,CAAC;AACF,SAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAE7B,sBAAsB;AACtB,MAAM,EAAE,yBAAyB,EAAE,GAAG,0BAAoB,CAAC;AAE3D,MAAa,4BACX,SAAQ,0BAAoB;IAG5B;QACE,KAAK,CAAC;YACJ,EAAE,EAAE,mBAAW,CAAC,gBAAgB,CAAC;YACjC,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,OAAO;S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KAAK,CAAC,2BAA2B,CAAC,CAAC;QACrE,uBAAA,IAAI,6DAAgC,IAAI,MAAA,CAAC;IAC3C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,4DACE,uBAAA,IAAI,qEACN,MAAM,CAAC,CAAC,OAAO,EAAE,CAClB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/custom-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,EAAE,qBAgIzC,CAAC"}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.customElementManifestSchema = void 0;
|
4
|
+
exports.customElementManifestSchema = {
|
5
|
+
version: 'experimental',
|
6
|
+
tags: [
|
7
|
+
{
|
8
|
+
name: 'ks-alert',
|
9
|
+
path: './components/base/ks-alert/ks-alert.ts',
|
10
|
+
attributes: [
|
11
|
+
{
|
12
|
+
name: 'priority',
|
13
|
+
type: '"1" | "2" | "3" | "4"',
|
14
|
+
default: '"2"',
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: 'statusType',
|
18
|
+
type: '"info" | "warning" | "error" | "success"',
|
19
|
+
default: '"info"',
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'size',
|
23
|
+
type: '"small" | "large"',
|
24
|
+
default: '"large"',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'isInteractive',
|
28
|
+
description: 'This is important context for screen readers.',
|
29
|
+
type: 'boolean',
|
30
|
+
default: 'false',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
name: 'shouldShowIcon',
|
34
|
+
type: 'boolean',
|
35
|
+
default: 'true',
|
36
|
+
},
|
37
|
+
],
|
38
|
+
properties: [
|
39
|
+
{
|
40
|
+
name: 'statusType',
|
41
|
+
attribute: 'statusType',
|
42
|
+
type: '"info" | "warning" | "error" | "success"',
|
43
|
+
default: '"info"',
|
44
|
+
},
|
45
|
+
{
|
46
|
+
name: 'size',
|
47
|
+
attribute: 'size',
|
48
|
+
type: '"small" | "large"',
|
49
|
+
default: '"large"',
|
50
|
+
},
|
51
|
+
{
|
52
|
+
name: 'isInteractive',
|
53
|
+
attribute: 'isInteractive',
|
54
|
+
description: 'This is important context for screen readers.',
|
55
|
+
type: 'boolean',
|
56
|
+
default: 'false',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
name: 'shouldShowIcon',
|
60
|
+
attribute: 'shouldShowIcon',
|
61
|
+
type: 'boolean',
|
62
|
+
default: 'true',
|
63
|
+
},
|
64
|
+
{
|
65
|
+
name: 'styles',
|
66
|
+
type: 'CSSResultGroup',
|
67
|
+
default: '["componentVars","componentStyles"]',
|
68
|
+
},
|
69
|
+
],
|
70
|
+
slots: [
|
71
|
+
{
|
72
|
+
name: 'default',
|
73
|
+
description: 'The alert contents.',
|
74
|
+
},
|
75
|
+
{
|
76
|
+
name: 'header',
|
77
|
+
description: 'The header in the alert.',
|
78
|
+
},
|
79
|
+
],
|
80
|
+
cssProperties: [
|
81
|
+
{
|
82
|
+
name: '--ks-alert-info-background',
|
83
|
+
description: 'The background color for the info alert.',
|
84
|
+
},
|
85
|
+
{
|
86
|
+
name: '--ks-alert-info-text',
|
87
|
+
description: 'The text color for the info alert.',
|
88
|
+
},
|
89
|
+
{
|
90
|
+
name: '--ks-alert-info-border',
|
91
|
+
description: 'The border color for the info alert.',
|
92
|
+
},
|
93
|
+
{
|
94
|
+
name: '--ks-alert-success-background',
|
95
|
+
description: 'The background color for the success alert.',
|
96
|
+
},
|
97
|
+
{
|
98
|
+
name: '--ks-alert-success-text',
|
99
|
+
description: 'The text color for the success alert.',
|
100
|
+
},
|
101
|
+
{
|
102
|
+
name: '--ks-alert-success-border',
|
103
|
+
description: 'The border color for the success alert.',
|
104
|
+
},
|
105
|
+
{
|
106
|
+
name: '--ks-alert-warning-background',
|
107
|
+
description: 'The background color for the warning alert.',
|
108
|
+
},
|
109
|
+
{
|
110
|
+
name: '--ks-alert-warning-text',
|
111
|
+
description: 'The text color for the warning alert.',
|
112
|
+
},
|
113
|
+
{
|
114
|
+
name: '--ks-alert-warning-border',
|
115
|
+
description: 'The border color for the warning alert.',
|
116
|
+
},
|
117
|
+
{
|
118
|
+
name: '--ks-alert-error-background',
|
119
|
+
description: 'The background color for the error alert.',
|
120
|
+
},
|
121
|
+
{
|
122
|
+
name: '--ks-alert-error-text',
|
123
|
+
description: 'The text color for the error alert.',
|
124
|
+
},
|
125
|
+
{
|
126
|
+
name: '--ks-alert-error-border',
|
127
|
+
description: 'The border color for the error alert.',
|
128
|
+
},
|
129
|
+
],
|
130
|
+
},
|
131
|
+
],
|
132
|
+
};
|
133
|
+
//# sourceMappingURL=custom-element.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"custom-element.js","sourceRoot":"","sources":["../../src/test-fixtures/custom-element.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAA0B;IAChE,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,wCAAwC;YAC9C,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,uBAAuB;oBAC7B,OAAO,EAAE,KAAK;iBACf;gBACD;oBACE,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,0CAA0C;oBAChD,OAAO,EAAE,QAAQ;iBAClB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,mBAAmB;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,WAAW,EAAE,+CAA+C;oBAC5D,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,OAAO;iBACjB;gBACD;oBAC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;oBACjC,WAAW,EAAE,yCAAyC;iBACvD;gBACD;oBACE,IAAI,EAAE,+BAA+B;oBACrC,WAAW,EAAE,6CAA6C;iBAC3D;gBACD;oBACE,IAAI,EAAE,yBAAyB;oBAC/B,WAAW,EAAE,uCAAuC;iBACrD;gBACD;oBACE,IAAI,EAAE,2BAA2B;oBACjC,WAAW,EAAE,yCAAyC;iBACvD;gBACD;oBACE,IAAI,EAAE,6BAA6B;oBACnC,WAAW,EAAE,2CAA2C;iBACzD;gBACD;oBACE,IAAI,EAAE,uBAAuB;oBAC7B,WAAW,EAAE,qCAAqC;iBACnD;gBACD;oBACE,IAAI,EAAE,yBAAyB;oBAC/B,WAAW,EAAE,uCAAuC;iBACrD;aACF;SACF;KACF;CACF,CAAC"}
|
package/dist/utils.d.ts
CHANGED
@@ -1,3 +1,220 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
declare const CustomElementsSchema: z.ZodObject<{
|
3
|
+
version: z.ZodString;
|
4
|
+
tags: z.ZodArray<z.ZodObject<{
|
5
|
+
name: z.ZodString;
|
6
|
+
path: z.ZodString;
|
7
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
8
|
+
name: z.ZodString;
|
9
|
+
type: z.ZodString;
|
10
|
+
default: z.ZodString;
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
name?: string;
|
14
|
+
type?: string;
|
15
|
+
default?: string;
|
16
|
+
description?: string;
|
17
|
+
}, {
|
18
|
+
name?: string;
|
19
|
+
type?: string;
|
20
|
+
default?: string;
|
21
|
+
description?: string;
|
22
|
+
}>, "many">>;
|
23
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
24
|
+
name: z.ZodString;
|
25
|
+
type: z.ZodString;
|
26
|
+
default: z.ZodString;
|
27
|
+
attribute: z.ZodOptional<z.ZodString>;
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
name?: string;
|
31
|
+
type?: string;
|
32
|
+
default?: string;
|
33
|
+
description?: string;
|
34
|
+
attribute?: string;
|
35
|
+
}, {
|
36
|
+
name?: string;
|
37
|
+
type?: string;
|
38
|
+
default?: string;
|
39
|
+
description?: string;
|
40
|
+
attribute?: string;
|
41
|
+
}>, "many">>;
|
42
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
43
|
+
name: z.ZodString;
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
45
|
+
name?: string;
|
46
|
+
}, {
|
47
|
+
name?: string;
|
48
|
+
}>, "many">>;
|
49
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
50
|
+
name: z.ZodString;
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
53
|
+
name?: string;
|
54
|
+
description?: string;
|
55
|
+
}, {
|
56
|
+
name?: string;
|
57
|
+
description?: string;
|
58
|
+
}>, "many">>;
|
59
|
+
cssProperties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
60
|
+
name: z.ZodString;
|
61
|
+
description: z.ZodOptional<z.ZodString>;
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
63
|
+
name?: string;
|
64
|
+
description?: string;
|
65
|
+
}, {
|
66
|
+
name?: string;
|
67
|
+
description?: string;
|
68
|
+
}>, "many">>;
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
70
|
+
name?: string;
|
71
|
+
path?: string;
|
72
|
+
attributes?: {
|
73
|
+
name?: string;
|
74
|
+
type?: string;
|
75
|
+
default?: string;
|
76
|
+
description?: string;
|
77
|
+
}[];
|
78
|
+
properties?: {
|
79
|
+
name?: string;
|
80
|
+
type?: string;
|
81
|
+
default?: string;
|
82
|
+
description?: string;
|
83
|
+
attribute?: string;
|
84
|
+
}[];
|
85
|
+
events?: {
|
86
|
+
name?: string;
|
87
|
+
}[];
|
88
|
+
slots?: {
|
89
|
+
name?: string;
|
90
|
+
description?: string;
|
91
|
+
}[];
|
92
|
+
cssProperties?: {
|
93
|
+
name?: string;
|
94
|
+
description?: string;
|
95
|
+
}[];
|
96
|
+
}, {
|
97
|
+
name?: string;
|
98
|
+
path?: string;
|
99
|
+
attributes?: {
|
100
|
+
name?: string;
|
101
|
+
type?: string;
|
102
|
+
default?: string;
|
103
|
+
description?: string;
|
104
|
+
}[];
|
105
|
+
properties?: {
|
106
|
+
name?: string;
|
107
|
+
type?: string;
|
108
|
+
default?: string;
|
109
|
+
description?: string;
|
110
|
+
attribute?: string;
|
111
|
+
}[];
|
112
|
+
events?: {
|
113
|
+
name?: string;
|
114
|
+
}[];
|
115
|
+
slots?: {
|
116
|
+
name?: string;
|
117
|
+
description?: string;
|
118
|
+
}[];
|
119
|
+
cssProperties?: {
|
120
|
+
name?: string;
|
121
|
+
description?: string;
|
122
|
+
}[];
|
123
|
+
}>, "many">;
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
125
|
+
version?: string;
|
126
|
+
tags?: {
|
127
|
+
name?: string;
|
128
|
+
path?: string;
|
129
|
+
attributes?: {
|
130
|
+
name?: string;
|
131
|
+
type?: string;
|
132
|
+
default?: string;
|
133
|
+
description?: string;
|
134
|
+
}[];
|
135
|
+
properties?: {
|
136
|
+
name?: string;
|
137
|
+
type?: string;
|
138
|
+
default?: string;
|
139
|
+
description?: string;
|
140
|
+
attribute?: string;
|
141
|
+
}[];
|
142
|
+
events?: {
|
143
|
+
name?: string;
|
144
|
+
}[];
|
145
|
+
slots?: {
|
146
|
+
name?: string;
|
147
|
+
description?: string;
|
148
|
+
}[];
|
149
|
+
cssProperties?: {
|
150
|
+
name?: string;
|
151
|
+
description?: string;
|
152
|
+
}[];
|
153
|
+
}[];
|
154
|
+
}, {
|
155
|
+
version?: string;
|
156
|
+
tags?: {
|
157
|
+
name?: string;
|
158
|
+
path?: string;
|
159
|
+
attributes?: {
|
160
|
+
name?: string;
|
161
|
+
type?: string;
|
162
|
+
default?: string;
|
163
|
+
description?: string;
|
164
|
+
}[];
|
165
|
+
properties?: {
|
166
|
+
name?: string;
|
167
|
+
type?: string;
|
168
|
+
default?: string;
|
169
|
+
description?: string;
|
170
|
+
attribute?: string;
|
171
|
+
}[];
|
172
|
+
events?: {
|
173
|
+
name?: string;
|
174
|
+
}[];
|
175
|
+
slots?: {
|
176
|
+
name?: string;
|
177
|
+
description?: string;
|
178
|
+
}[];
|
179
|
+
cssProperties?: {
|
180
|
+
name?: string;
|
181
|
+
description?: string;
|
182
|
+
}[];
|
183
|
+
}[];
|
184
|
+
}>;
|
185
|
+
declare const validateCustomElements: (data: unknown) => {
|
186
|
+
version?: string;
|
187
|
+
tags?: {
|
188
|
+
name?: string;
|
189
|
+
path?: string;
|
190
|
+
attributes?: {
|
191
|
+
name?: string;
|
192
|
+
type?: string;
|
193
|
+
default?: string;
|
194
|
+
description?: string;
|
195
|
+
}[];
|
196
|
+
properties?: {
|
197
|
+
name?: string;
|
198
|
+
type?: string;
|
199
|
+
default?: string;
|
200
|
+
description?: string;
|
201
|
+
attribute?: string;
|
202
|
+
}[];
|
203
|
+
events?: {
|
204
|
+
name?: string;
|
205
|
+
}[];
|
206
|
+
slots?: {
|
207
|
+
name?: string;
|
208
|
+
description?: string;
|
209
|
+
}[];
|
210
|
+
cssProperties?: {
|
211
|
+
name?: string;
|
212
|
+
description?: string;
|
213
|
+
}[];
|
214
|
+
}[];
|
215
|
+
};
|
216
|
+
export { CustomElementsSchema, validateCustomElements };
|
217
|
+
export type CustomElementManifest = z.infer<typeof CustomElementsSchema>;
|
1
218
|
export declare function getUsage(data: {
|
2
219
|
templateName: string;
|
3
220
|
props?: Record<string, unknown>;
|
package/dist/utils.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyCxB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,SAAU,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACX,CAAC;AAEnC,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAmCzE,wBAAsB,QAAQ,CAAC,IAAI,EAAE;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqClB"}
|
package/dist/utils.js
CHANGED
@@ -1,9 +1,52 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.validateCustomElements = exports.CustomElementsSchema = void 0;
|
3
4
|
exports.getUsage = getUsage;
|
4
5
|
const ejs_1 = require("ejs");
|
5
6
|
const path_1 = require("path");
|
6
7
|
const fs_1 = require("fs");
|
8
|
+
const zod_1 = require("zod");
|
9
|
+
const AttributeSchema = zod_1.z.object({
|
10
|
+
name: zod_1.z.string(),
|
11
|
+
type: zod_1.z.string(),
|
12
|
+
default: zod_1.z.string(),
|
13
|
+
description: zod_1.z.string().optional(),
|
14
|
+
});
|
15
|
+
const PropertySchema = zod_1.z.object({
|
16
|
+
name: zod_1.z.string(),
|
17
|
+
type: zod_1.z.string(),
|
18
|
+
default: zod_1.z.string(),
|
19
|
+
attribute: zod_1.z.string().optional(),
|
20
|
+
description: zod_1.z.string().optional(),
|
21
|
+
});
|
22
|
+
const EventSchema = zod_1.z.object({
|
23
|
+
name: zod_1.z.string(),
|
24
|
+
});
|
25
|
+
const SlotSchema = zod_1.z.object({
|
26
|
+
name: zod_1.z.string(),
|
27
|
+
description: zod_1.z.string().optional(),
|
28
|
+
});
|
29
|
+
const CssPropertiesSchema = zod_1.z.object({
|
30
|
+
name: zod_1.z.string(),
|
31
|
+
description: zod_1.z.string().optional(),
|
32
|
+
});
|
33
|
+
const TagSchema = zod_1.z.object({
|
34
|
+
name: zod_1.z.string(),
|
35
|
+
path: zod_1.z.string(),
|
36
|
+
attributes: zod_1.z.array(AttributeSchema).optional(),
|
37
|
+
properties: zod_1.z.array(PropertySchema).optional(),
|
38
|
+
events: zod_1.z.array(EventSchema).optional(),
|
39
|
+
slots: zod_1.z.array(SlotSchema).optional(),
|
40
|
+
cssProperties: zod_1.z.array(CssPropertiesSchema).optional(),
|
41
|
+
});
|
42
|
+
const CustomElementsSchema = zod_1.z.object({
|
43
|
+
version: zod_1.z.string(),
|
44
|
+
tags: zod_1.z.array(TagSchema),
|
45
|
+
});
|
46
|
+
exports.CustomElementsSchema = CustomElementsSchema;
|
47
|
+
// You can use this to validate your JSON
|
48
|
+
const validateCustomElements = (data) => CustomElementsSchema.parse(data);
|
49
|
+
exports.validateCustomElements = validateCustomElements;
|
7
50
|
const renderUsageTemplate = (0, ejs_1.compile)((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../template.web-components.ejs'), 'utf8'), {
|
8
51
|
filename: 'template.web-components.ejs',
|
9
52
|
async: true,
|
package/dist/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":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,cAAc,GAAG,CAAC;YACtC,CAAC;YACD,KAAK,SAAS;gBACZ,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/B;gBACE,OAAO,GAAG,GAAG,KAAK,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAChE,CAAC;IACH,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvD,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC;QACvC,YAAY;QACZ,UAAU;QACV,KAAK;QACL,QAAQ;QACR,MAAM;QACN,KAAK;KACN,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC"}
|
package/dist/utils.test.js
CHANGED
@@ -22,7 +22,7 @@ const format = (code) => (0, file_utils_1.formatCode)({ contents: code, path: 'x
|
|
22
22
|
</my-button>`;
|
23
23
|
t.is(await format(actual), await format(expected));
|
24
24
|
});
|
25
|
-
ava_1.default
|
25
|
+
(0, ava_1.default)('renderer-web-components new test', async (t) => {
|
26
26
|
const actual = await (0, utils_1.getUsage)({
|
27
27
|
templateName: 'my-button',
|
28
28
|
props: {
|
@@ -35,6 +35,6 @@ ava_1.default.failing('renderer-web-components new test', async (t) => {
|
|
35
35
|
<my-button url="#" is-light>
|
36
36
|
<p slot="content">This is the content of my component.</p>
|
37
37
|
</my-button>`;
|
38
|
-
t.is(format(actual), format(expected));
|
38
|
+
t.is(await format(actual), await format(expected));
|
39
39
|
});
|
40
40
|
//# sourceMappingURL=utils.test.js.map
|
package/dist/utils.test.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings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C,MAAM,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kCAAkC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAQ,EAAC;QAC5B,YAAY,EAAE,WAAW;QACzB,KAAK,EAAE;YACL,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE,4DAA4D;KACvE,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG;;;aAGN,CAAC;IAEZ,CAAC,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-web-components",
|
3
3
|
"description": "Render Web Components",
|
4
|
-
"version": "4.69.0--canary.
|
4
|
+
"version": "4.69.0--canary.4627.955e589.0",
|
5
5
|
"main": "dist/renderer-web-components.js",
|
6
6
|
"types": "dist/renderer-web-components.d.ts",
|
7
7
|
"sideEffects": false,
|
@@ -15,17 +15,20 @@
|
|
15
15
|
},
|
16
16
|
"author": "Knapsack (https://www.knapsack.cloud)",
|
17
17
|
"dependencies": {
|
18
|
-
"@knapsack/app": "4.69.0--canary.
|
19
|
-
"@knapsack/file-utils": "4.69.0--canary.
|
20
|
-
"@knapsack/types": "4.69.0--canary.
|
18
|
+
"@knapsack/app": "4.69.0--canary.4627.955e589.0",
|
19
|
+
"@knapsack/file-utils": "4.69.0--canary.4627.955e589.0",
|
20
|
+
"@knapsack/types": "4.69.0--canary.4627.955e589.0",
|
21
|
+
"@knapsack/utils": "4.69.0--canary.4627.955e589.0",
|
21
22
|
"cheerio": "^1.0.0",
|
23
|
+
"chokidar": "^3.6.0",
|
22
24
|
"ejs": "^3.1.10",
|
23
|
-
"fs-extra": "^11.2.0"
|
25
|
+
"fs-extra": "^11.2.0",
|
26
|
+
"zod": "^3.23.8"
|
24
27
|
},
|
25
28
|
"devDependencies": {
|
26
|
-
"@knapsack/eslint-config-starter": "4.69.0--canary.
|
27
|
-
"@knapsack/test-ava": "4.69.0--canary.
|
28
|
-
"@knapsack/typescript-config-starter": "4.69.0--canary.
|
29
|
+
"@knapsack/eslint-config-starter": "4.69.0--canary.4627.955e589.0",
|
30
|
+
"@knapsack/test-ava": "4.69.0--canary.4627.955e589.0",
|
31
|
+
"@knapsack/typescript-config-starter": "4.69.0--canary.4627.955e589.0",
|
29
32
|
"@types/fs-extra": "^11.0.4",
|
30
33
|
"@types/node": "^20.16.1",
|
31
34
|
"ava": "^6.1.3",
|
@@ -41,5 +44,5 @@
|
|
41
44
|
"directory": "apps/client/renderers/renderer-web-components",
|
42
45
|
"type": "git"
|
43
46
|
},
|
44
|
-
"gitHead": "
|
47
|
+
"gitHead": "955e589c6780d78c44112c9a2896c283084befbe"
|
45
48
|
}
|