@knapsack/renderer-web-components 4.70.0--canary.4628.1068e46.0 → 4.70.0--canary.4854.b1d79a8.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,117 @@
|
|
1
|
+
# v4.69.11 (Fri Sep 20 2024)
|
2
|
+
|
3
|
+
#### 🏠 Internal
|
4
|
+
|
5
|
+
- adds select all option to exclude patterns filters [#4803](https://github.com/knapsack-labs/app-monorepo/pull/4803) ([@GormanDesign](https://github.com/GormanDesign))
|
6
|
+
|
7
|
+
#### Authors: 1
|
8
|
+
|
9
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
10
|
+
|
11
|
+
---
|
12
|
+
|
13
|
+
# v4.69.9 (Sat Sep 14 2024)
|
14
|
+
|
15
|
+
#### 🏠 Internal
|
16
|
+
|
17
|
+
- update template stage ui [#4763](https://github.com/knapsack-labs/app-monorepo/pull/4763) ([@GormanDesign](https://github.com/GormanDesign))
|
18
|
+
- add spacing under form feedback banner [#4747](https://github.com/knapsack-labs/app-monorepo/pull/4747) ([@GormanDesign](https://github.com/GormanDesign))
|
19
|
+
|
20
|
+
#### Authors: 1
|
21
|
+
|
22
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
23
|
+
|
24
|
+
---
|
25
|
+
|
26
|
+
# v4.69.8 (Thu Sep 12 2024)
|
27
|
+
|
28
|
+
#### 🐛 Bug Fix
|
29
|
+
|
30
|
+
- refactor Renderers for cleaner types [#4746](https://github.com/knapsack-labs/app-monorepo/pull/4746) ([@EvanLovely](https://github.com/EvanLovely))
|
31
|
+
|
32
|
+
#### Authors: 1
|
33
|
+
|
34
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
35
|
+
|
36
|
+
---
|
37
|
+
|
38
|
+
# v4.69.7 (Wed Sep 11 2024)
|
39
|
+
|
40
|
+
#### 🐛 Bug Fix
|
41
|
+
|
42
|
+
- Merge branch 'latest' into feature/ksp-5497-setup-status-id-in-client ([@mabry1985](https://github.com/mabry1985))
|
43
|
+
|
44
|
+
#### 🏠 Internal
|
45
|
+
|
46
|
+
- fixes schema form select appearance [#4700](https://github.com/knapsack-labs/app-monorepo/pull/4700) ([@GormanDesign](https://github.com/GormanDesign))
|
47
|
+
- add scroll indicator to popover [#4697](https://github.com/knapsack-labs/app-monorepo/pull/4697) ([@GormanDesign](https://github.com/GormanDesign))
|
48
|
+
|
49
|
+
#### Authors: 2
|
50
|
+
|
51
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
52
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
53
|
+
|
54
|
+
---
|
55
|
+
|
56
|
+
# v4.69.6 (Fri Sep 06 2024)
|
57
|
+
|
58
|
+
#### 🐛 Bug Fix
|
59
|
+
|
60
|
+
- add default val for web component renderer constructor [#4699](https://github.com/knapsack-labs/app-monorepo/pull/4699) ([@mabry1985](https://github.com/mabry1985))
|
61
|
+
- Merge branch 'latest' into feature/ksp-5458-anchor-links-not-jumping-to-the-right-spot ([@GormanDesign](https://github.com/GormanDesign))
|
62
|
+
|
63
|
+
#### 🏠 Internal
|
64
|
+
|
65
|
+
- Update dependency @types/node to ^20.16.5 [#4669](https://github.com/knapsack-labs/app-monorepo/pull/4669) ([@renovate[bot]](https://github.com/renovate[bot]))
|
66
|
+
- restores hash link handling [#4637](https://github.com/knapsack-labs/app-monorepo/pull/4637) ([@GormanDesign](https://github.com/GormanDesign))
|
67
|
+
|
68
|
+
#### Authors: 3
|
69
|
+
|
70
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
71
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
72
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
# v4.69.3 (Wed Sep 04 2024)
|
77
|
+
|
78
|
+
#### 🏠 Internal
|
79
|
+
|
80
|
+
- Update dependency @types/node to ^20.16.3 [#4643](https://github.com/knapsack-labs/app-monorepo/pull/4643) ([@renovate[bot]](https://github.com/renovate[bot]))
|
81
|
+
|
82
|
+
#### Authors: 1
|
83
|
+
|
84
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
85
|
+
|
86
|
+
---
|
87
|
+
|
88
|
+
# v4.69.2 (Fri Aug 30 2024)
|
89
|
+
|
90
|
+
#### 🐛 Bug Fix
|
91
|
+
|
92
|
+
- add error info [#4628](https://github.com/knapsack-labs/app-monorepo/pull/4628) ([@EvanLovely](https://github.com/EvanLovely) [@mabry1985](https://github.com/mabry1985))
|
93
|
+
- Merge branch 'latest' into EvanLovely-patch-24 ([@mabry1985](https://github.com/mabry1985))
|
94
|
+
- add error info ([@EvanLovely](https://github.com/EvanLovely))
|
95
|
+
|
96
|
+
#### Authors: 2
|
97
|
+
|
98
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
99
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
100
|
+
|
101
|
+
---
|
102
|
+
|
103
|
+
# v4.69.1 (Fri Aug 30 2024)
|
104
|
+
|
105
|
+
#### 🐛 Bug Fix
|
106
|
+
|
107
|
+
- Merge branch 'latest' into feature/ksp-5460-nested-menu-item-is-finicky ([@GormanDesign](https://github.com/GormanDesign))
|
108
|
+
|
109
|
+
#### Authors: 1
|
110
|
+
|
111
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
112
|
+
|
113
|
+
---
|
114
|
+
|
1
115
|
# v4.69.0 (Fri Aug 30 2024)
|
2
116
|
|
3
117
|
#### 🚀 Enhancement
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
export declare class KnapsackWebComponentRenderer extends KnapsackRendererBase implements KnapsackTemplateRenderer {
|
1
|
+
import { Renderer, RendererBase, Renderable } from '@knapsack/app/renderers';
|
2
|
+
export declare class KnapsackWebComponentRenderer extends RendererBase implements Renderable {
|
4
3
|
#private;
|
5
|
-
constructor({ customElementManifestSchemaPath, }
|
4
|
+
constructor({ customElementManifestSchemaPath, }?: {
|
6
5
|
/**
|
7
6
|
* Path to a custom-elements.json file.
|
8
7
|
* https://github.com/webcomponents/custom-elements-manifest
|
@@ -10,13 +9,13 @@ export declare class KnapsackWebComponentRenderer extends KnapsackRendererBase i
|
|
10
9
|
*/
|
11
10
|
customElementManifestSchemaPath?: string;
|
12
11
|
});
|
13
|
-
render
|
14
|
-
getUsage
|
15
|
-
inferSpec({ template
|
16
|
-
getTemplateSuggestions
|
17
|
-
watch
|
18
|
-
getMeta:
|
19
|
-
getTemplateMeta:
|
20
|
-
alterTemplateMetaFiles:
|
12
|
+
render: Renderer['render'];
|
13
|
+
getUsage: Renderer['getUsage'];
|
14
|
+
inferSpec({ template }: Parameters<Renderer['inferSpec']>[0]): Promise<false | import("@knapsack/types").KsTemplateSpec>;
|
15
|
+
getTemplateSuggestions: Renderer['getTemplateSuggestions'];
|
16
|
+
watch: Renderer['watch'];
|
17
|
+
getMeta: Renderer['getMeta'];
|
18
|
+
getTemplateMeta: Renderer['getTemplateMeta'];
|
19
|
+
alterTemplateMetaFiles: Renderer['alterTemplateMetaFiles'];
|
21
20
|
}
|
22
21
|
//# sourceMappingURL=renderer-web-components.d.ts.map
|
@@ -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":"AAEA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EAEX,MAAM,yBAAyB,CAAC;AA2BjC,qBAAa,4BACX,SAAQ,YACR,YAAW,UAAU;;gBAKT,EACV,+BAA+B,GAChC,GAAE;QACD;;;;WAIG;QACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;KACrC;IAsCN,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAUxB;IAEF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAsK5B;IAEI,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAQlE,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAWxD;IAEO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAY/B;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CA2BzB;IAEH,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAyE1C;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAwBxD;CACH"}
|
@@ -18,19 +18,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.KnapsackWebComponentRenderer = void 0;
|
19
19
|
const chokidar_1 = __importDefault(require("chokidar"));
|
20
20
|
const app_1 = require("@knapsack/app");
|
21
|
-
const
|
21
|
+
const renderers_1 = require("@knapsack/app/renderers");
|
22
22
|
const types_1 = require("@knapsack/types");
|
23
23
|
const path_1 = require("path");
|
24
24
|
const file_utils_1 = require("@knapsack/file-utils");
|
25
25
|
const cheerio_1 = require("cheerio");
|
26
26
|
const utils_1 = require("./utils");
|
27
27
|
const infer_spec_1 = require("./infer-spec");
|
28
|
-
const pkg = JSON.parse((0,
|
28
|
+
const pkg = JSON.parse((0, file_utils_1.readFileSync)((0, path_1.join)(__dirname, '../package.json')));
|
29
29
|
app_1.log.setupUpdateNotifier(pkg);
|
30
|
-
|
31
|
-
|
32
|
-
class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
33
|
-
constructor({ customElementManifestSchemaPath, }) {
|
30
|
+
class KnapsackWebComponentRenderer extends renderers_1.RendererBase {
|
31
|
+
constructor({ customElementManifestSchemaPath, } = {}) {
|
34
32
|
super({
|
35
33
|
id: types_1.rendererIds['web-components'],
|
36
34
|
language: 'html',
|
@@ -39,6 +37,160 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
39
37
|
_KnapsackWebComponentRenderer_instances.add(this);
|
40
38
|
_KnapsackWebComponentRenderer_customElementManifestSchemaPath.set(this, void 0);
|
41
39
|
_KnapsackWebComponentRenderer_customElementManifestSchema.set(this, void 0);
|
40
|
+
this.render = async (opt) => {
|
41
|
+
const usage = await this.getUsage(opt);
|
42
|
+
return {
|
43
|
+
ok: true,
|
44
|
+
html: await (0, file_utils_1.formatCode)({
|
45
|
+
contents: usage,
|
46
|
+
path: 'x.html',
|
47
|
+
}),
|
48
|
+
};
|
49
|
+
};
|
50
|
+
this.getUsage = async (opt) => {
|
51
|
+
const { pattern, template, demo,
|
52
|
+
/**
|
53
|
+
* The Patterns class
|
54
|
+
*/
|
55
|
+
patternManifest, } = opt;
|
56
|
+
if (!demo) {
|
57
|
+
return (0, utils_1.getUsage)({
|
58
|
+
templateName: template.alias,
|
59
|
+
});
|
60
|
+
}
|
61
|
+
switch (demo.type) {
|
62
|
+
case 'template': {
|
63
|
+
const { templateInfo } = demo;
|
64
|
+
const { absolutePath, exists } = await (0, file_utils_1.resolvePath)({
|
65
|
+
path: demo.templateInfo.path,
|
66
|
+
pkgPathAliases: this.pkgPathAliases,
|
67
|
+
resolveFromDir: this.dataDir,
|
68
|
+
});
|
69
|
+
if (!exists) {
|
70
|
+
throw new Error(`Cannot find template demo at ${absolutePath}`);
|
71
|
+
}
|
72
|
+
return (0, file_utils_1.readFile)(absolutePath);
|
73
|
+
}
|
74
|
+
case 'data': {
|
75
|
+
const { data: { props, slots, slotsOptionsComputed }, } = demo;
|
76
|
+
if (!slots) {
|
77
|
+
return (0, utils_1.getUsage)({
|
78
|
+
templateName: template.alias,
|
79
|
+
props,
|
80
|
+
});
|
81
|
+
}
|
82
|
+
const children = [];
|
83
|
+
await Promise.all(Object.keys(slots).map(async (slotName) => {
|
84
|
+
const slottedTemplates = slots[slotName];
|
85
|
+
await Promise.all(slottedTemplates.map(async (slottedTemplate) => {
|
86
|
+
if (slottedTemplate.type === 'text') {
|
87
|
+
return {
|
88
|
+
slottedTemplate,
|
89
|
+
content: slottedTemplate.text,
|
90
|
+
};
|
91
|
+
}
|
92
|
+
if (slottedTemplate.type === 'template-reference') {
|
93
|
+
throw new Error(`Cannot handle slotted template references in ${JSON.stringify({
|
94
|
+
patternId: pattern.id,
|
95
|
+
templateId: template.id,
|
96
|
+
demoId: demo.id,
|
97
|
+
slottedTemplate,
|
98
|
+
})}`);
|
99
|
+
}
|
100
|
+
if (!slottedTemplate.patternId ||
|
101
|
+
!slottedTemplate.templateId ||
|
102
|
+
!slottedTemplate.demoId) {
|
103
|
+
return {
|
104
|
+
slottedTemplate,
|
105
|
+
content: '',
|
106
|
+
};
|
107
|
+
}
|
108
|
+
const thisPattern = patternManifest.getPattern(slottedTemplate.patternId);
|
109
|
+
const thisTemplate = thisPattern.templates.find((t) => t.id === slottedTemplate.templateId);
|
110
|
+
if (!thisTemplate) {
|
111
|
+
throw new Error(`Cannot find template id "${slottedTemplate.templateId}" in "${slottedTemplate.patternId}"`);
|
112
|
+
}
|
113
|
+
const usage = await this.getUsage({
|
114
|
+
pattern: thisPattern,
|
115
|
+
template: thisTemplate,
|
116
|
+
patternManifest,
|
117
|
+
demo: slottedTemplate.demo ||
|
118
|
+
this.patterns.demosById[slottedTemplate.demoId],
|
119
|
+
});
|
120
|
+
return {
|
121
|
+
slottedTemplate,
|
122
|
+
content: usage,
|
123
|
+
};
|
124
|
+
})).then((usages) => {
|
125
|
+
var _a;
|
126
|
+
const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
|
127
|
+
const { openTag, closeTag } = (0, renderers_1.createSlotOptionsHtmlTags)({
|
128
|
+
slotOptionsComputed,
|
129
|
+
classAttributeName: 'class',
|
130
|
+
stylesValueType: 'string',
|
131
|
+
});
|
132
|
+
const content = usages.map((usage) => usage.content).join('\n');
|
133
|
+
if (slotName === 'default') {
|
134
|
+
children.push(openTag, content, closeTag);
|
135
|
+
return;
|
136
|
+
}
|
137
|
+
if (usages.length === 1 &&
|
138
|
+
usages.every((usage) => usage.slottedTemplate.type === 'text')) {
|
139
|
+
// this may be a single slot item with HTML in it
|
140
|
+
const text = ((_a = usages[0].content) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
141
|
+
if (text.startsWith('<') && text.endsWith('>')) {
|
142
|
+
// looks enough like HTML given the starting and ending angle brackets
|
143
|
+
// say it was `<p>hi</p>` - we want `<p slot="my-slot">hi</p>` instead of `<div slot="my-slot"><p>hi</p></div>`
|
144
|
+
const $ = (0, cheerio_1.load)(text);
|
145
|
+
const firstElem = $('body :first');
|
146
|
+
if (firstElem) {
|
147
|
+
firstElem.attr('slot', slotName);
|
148
|
+
children.push(openTag, $('body').html(), closeTag);
|
149
|
+
return;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
children.push(`<div slot="${slotName}">`, openTag, content, closeTag, `</div>`);
|
154
|
+
});
|
155
|
+
}));
|
156
|
+
const usage = await (0, utils_1.getUsage)({
|
157
|
+
templateName: template.alias,
|
158
|
+
props,
|
159
|
+
children: children.filter(Boolean).join('\n'),
|
160
|
+
});
|
161
|
+
return usage;
|
162
|
+
}
|
163
|
+
default:
|
164
|
+
throw new Error(`Must pass in a known demo.type, received ${
|
165
|
+
// @ts-expect-error - demo.type *should of* been handled...
|
166
|
+
demo.type}`);
|
167
|
+
}
|
168
|
+
};
|
169
|
+
this.getTemplateSuggestions = async () => {
|
170
|
+
var _a;
|
171
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
172
|
+
return { suggestions: [] };
|
173
|
+
const tagNames = ((_a = __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, "f").tags) === null || _a === void 0 ? void 0 : _a.map(({ name }) => name)) || [];
|
174
|
+
const usedNames = this.getMyTemplates().allTemplates.map(({ alias }) => alias);
|
175
|
+
const unusedNames = tagNames.filter((name) => !usedNames.includes(name));
|
176
|
+
return {
|
177
|
+
suggestions: unusedNames.map((name) => ({ alias: name, path: '' })),
|
178
|
+
};
|
179
|
+
};
|
180
|
+
this.watch = async () => {
|
181
|
+
super.watch({ templatePaths: [] });
|
182
|
+
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
183
|
+
return;
|
184
|
+
const watcher = chokidar_1.default.watch(__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"), {
|
185
|
+
ignoreInitial: true,
|
186
|
+
});
|
187
|
+
watcher.on('change', () => {
|
188
|
+
__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
|
189
|
+
app_1.knapsackEvents.emitAppClientDataChanged();
|
190
|
+
this.onChange();
|
191
|
+
});
|
192
|
+
app_1.knapsackEvents.onShutdown(() => watcher.close());
|
193
|
+
};
|
42
194
|
this.getMeta = () => ({
|
43
195
|
id: this.id,
|
44
196
|
title: 'Web Components',
|
@@ -135,7 +287,7 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
135
287
|
}
|
136
288
|
return files;
|
137
289
|
};
|
138
|
-
this.alterTemplateMetaFiles = async ({ files }) => {
|
290
|
+
this.alterTemplateMetaFiles = async ({ files, }) => {
|
139
291
|
const newFiles = [];
|
140
292
|
const htmlCustomData = {
|
141
293
|
version: 1.1,
|
@@ -169,133 +321,7 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
169
321
|
__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
|
170
322
|
}
|
171
323
|
}
|
172
|
-
async
|
173
|
-
const usage = await this.getUsage(opt);
|
174
|
-
return {
|
175
|
-
ok: true,
|
176
|
-
html: await (0, file_utils_1.formatCode)({
|
177
|
-
contents: usage,
|
178
|
-
path: 'x.html',
|
179
|
-
}),
|
180
|
-
};
|
181
|
-
}
|
182
|
-
async getUsage(opt) {
|
183
|
-
const { pattern, template, demo,
|
184
|
-
/**
|
185
|
-
* The Patterns class
|
186
|
-
*/
|
187
|
-
patternManifest, } = opt;
|
188
|
-
if (!demo) {
|
189
|
-
return (0, utils_1.getUsage)({
|
190
|
-
templateName: template.alias,
|
191
|
-
});
|
192
|
-
}
|
193
|
-
switch (demo.type) {
|
194
|
-
case 'template': {
|
195
|
-
const { templateInfo } = demo;
|
196
|
-
const templateDemoPath = patternManifest.getTemplateDemoAbsolutePath({
|
197
|
-
patternId: pattern.id,
|
198
|
-
templateId: template.id,
|
199
|
-
demoId: demo.id,
|
200
|
-
});
|
201
|
-
return (0, fs_extra_1.readFile)(templateDemoPath, 'utf8');
|
202
|
-
}
|
203
|
-
case 'data': {
|
204
|
-
const { data: { props, slots, slotsOptionsComputed }, } = demo;
|
205
|
-
if (!slots) {
|
206
|
-
return (0, utils_1.getUsage)({
|
207
|
-
templateName: template.alias,
|
208
|
-
props,
|
209
|
-
});
|
210
|
-
}
|
211
|
-
const children = [];
|
212
|
-
await Promise.all(Object.keys(slots).map(async (slotName) => {
|
213
|
-
const slottedTemplates = slots[slotName];
|
214
|
-
await Promise.all(slottedTemplates.map(async (slottedTemplate) => {
|
215
|
-
if (app_1.KnapsackRendererBase.isSlottedText(slottedTemplate)) {
|
216
|
-
return {
|
217
|
-
slottedTemplate,
|
218
|
-
content: slottedTemplate.text,
|
219
|
-
};
|
220
|
-
}
|
221
|
-
if (app_1.KnapsackRendererBase.isSlottedTemplateReference(slottedTemplate)) {
|
222
|
-
throw new Error(`Cannot handle slotted template references in ${JSON.stringify({
|
223
|
-
patternId: pattern.id,
|
224
|
-
templateId: template.id,
|
225
|
-
demoId: demo.id,
|
226
|
-
slottedTemplate,
|
227
|
-
})}`);
|
228
|
-
}
|
229
|
-
if (!slottedTemplate.patternId ||
|
230
|
-
!slottedTemplate.templateId ||
|
231
|
-
!slottedTemplate.demoId) {
|
232
|
-
return {
|
233
|
-
slottedTemplate,
|
234
|
-
content: '',
|
235
|
-
};
|
236
|
-
}
|
237
|
-
const thisPattern = patternManifest.getPattern(slottedTemplate.patternId);
|
238
|
-
const thisTemplate = thisPattern.templates.find((t) => t.id === slottedTemplate.templateId);
|
239
|
-
if (!thisTemplate) {
|
240
|
-
throw new Error(`Cannot find template id "${slottedTemplate.templateId}" in "${slottedTemplate.patternId}"`);
|
241
|
-
}
|
242
|
-
const usage = await this.getUsage({
|
243
|
-
pattern: thisPattern,
|
244
|
-
template: thisTemplate,
|
245
|
-
patternManifest,
|
246
|
-
demo: slottedTemplate.demo ||
|
247
|
-
this.patterns.demosById[slottedTemplate.demoId],
|
248
|
-
});
|
249
|
-
return {
|
250
|
-
slottedTemplate,
|
251
|
-
content: usage,
|
252
|
-
};
|
253
|
-
})).then((usages) => {
|
254
|
-
var _a;
|
255
|
-
const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
|
256
|
-
const { openTag, closeTag } = createSlotOptionsHtmlTags({
|
257
|
-
slotOptionsComputed,
|
258
|
-
classAttributeName: 'class',
|
259
|
-
stylesValueType: 'string',
|
260
|
-
});
|
261
|
-
const content = usages.map((usage) => usage.content).join('\n');
|
262
|
-
if (slotName === 'default') {
|
263
|
-
children.push(openTag, content, closeTag);
|
264
|
-
return;
|
265
|
-
}
|
266
|
-
if (usages.length === 1 &&
|
267
|
-
usages.every((usage) => usage.slottedTemplate.type === 'text')) {
|
268
|
-
// this may be a single slot item with HTML in it
|
269
|
-
const text = ((_a = usages[0].content) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
270
|
-
if (text.startsWith('<') && text.endsWith('>')) {
|
271
|
-
// looks enough like HTML given the starting and ending angle brackets
|
272
|
-
// say it was `<p>hi</p>` - we want `<p slot="my-slot">hi</p>` instead of `<div slot="my-slot"><p>hi</p></div>`
|
273
|
-
const $ = (0, cheerio_1.load)(text);
|
274
|
-
const firstElem = $('body :first');
|
275
|
-
if (firstElem) {
|
276
|
-
firstElem.attr('slot', slotName);
|
277
|
-
children.push(openTag, $('body').html(), closeTag);
|
278
|
-
return;
|
279
|
-
}
|
280
|
-
}
|
281
|
-
}
|
282
|
-
children.push(`<div slot="${slotName}">`, openTag, content, closeTag, `</div>`);
|
283
|
-
});
|
284
|
-
}));
|
285
|
-
const usage = await (0, utils_1.getUsage)({
|
286
|
-
templateName: template.alias,
|
287
|
-
props,
|
288
|
-
children: children.filter(Boolean).join('\n'),
|
289
|
-
});
|
290
|
-
return usage;
|
291
|
-
}
|
292
|
-
default:
|
293
|
-
throw new Error(`Must pass in a known demo.type, received ${
|
294
|
-
// @ts-expect-error - demo.type *should of* been handled...
|
295
|
-
demo.type}`);
|
296
|
-
}
|
297
|
-
}
|
298
|
-
async inferSpec({ template, }) {
|
324
|
+
async inferSpec({ template }) {
|
299
325
|
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
300
326
|
return false;
|
301
327
|
return (0, infer_spec_1.inferSpec)({
|
@@ -303,31 +329,6 @@ class KnapsackWebComponentRenderer extends app_1.KnapsackRendererBase {
|
|
303
329
|
tagName: template.alias,
|
304
330
|
});
|
305
331
|
}
|
306
|
-
async getTemplateSuggestions({ newPath, }) {
|
307
|
-
var _a;
|
308
|
-
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
309
|
-
return { suggestions: [] };
|
310
|
-
const tagNames = ((_a = __classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchema, "f").tags) === null || _a === void 0 ? void 0 : _a.map(({ name }) => name)) || [];
|
311
|
-
const usedNames = this.getMyTemplates().allTemplates.map(({ alias }) => alias);
|
312
|
-
const unusedNames = tagNames.filter((name) => !usedNames.includes(name));
|
313
|
-
return {
|
314
|
-
suggestions: unusedNames.map((name) => ({ alias: name, path: '' })),
|
315
|
-
};
|
316
|
-
}
|
317
|
-
async watch() {
|
318
|
-
super.watch({ templatePaths: [] });
|
319
|
-
if (!__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"))
|
320
|
-
return;
|
321
|
-
const watcher = chokidar_1.default.watch(__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_customElementManifestSchemaPath, "f"), {
|
322
|
-
ignoreInitial: true,
|
323
|
-
});
|
324
|
-
watcher.on('change', () => {
|
325
|
-
__classPrivateFieldGet(this, _KnapsackWebComponentRenderer_instances, "m", _KnapsackWebComponentRenderer_setCustomElementManifestSchema).call(this);
|
326
|
-
app_1.knapsackEvents.emitAppClientDataChanged();
|
327
|
-
this.onChange();
|
328
|
-
});
|
329
|
-
app_1.knapsackEvents.onShutdown(() => watcher.close());
|
330
|
-
}
|
331
332
|
}
|
332
333
|
exports.KnapsackWebComponentRenderer = KnapsackWebComponentRenderer;
|
333
334
|
_KnapsackWebComponentRenderer_customElementManifestSchemaPath = new WeakMap(), _KnapsackWebComponentRenderer_customElementManifestSchema = new WeakMap(), _KnapsackWebComponentRenderer_instances = new WeakSet(), _KnapsackWebComponentRenderer_setCustomElementManifestSchema = function _KnapsackWebComponentRenderer_setCustomElementManifestSchema() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-web-components.js","sourceRoot":"","sources":["../src/renderer-web-components.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,uCAA0E;AAO1E,uCAAkD;AAClD,2CAKyB;AAKzB,+BAA4B;AAC5B,qDAI8B;AAC9B,qCAA8C;AAC9C,mCAAgF;AAChF,6CAAyC;AAEzC,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;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,CAAC;IACH,CAAC;IAuMD,KAAK,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAwC;QAChE,IAAI,CAAC,uBAAA,IAAI,qEAAiC;YAAE,OAAO,KAAK,CAAC;QACzD,OAAO,IAAA,sBAAS,EAAC;YACf,2BAA2B,EAAE,uBAAA,IAAI,iEAA6B;YAC9D,OAAO,EAAE,QAAQ,CAAC,KAAK;SACxB,CAAC,CAAC;IACL,CAAC;CA8JF;AA9YD,oEA8YC;;IAxWG,IAAI,CAAC,uBAAA,IAAI,qEAAiC;QAAE,OAAO;IACnD,MAAM,2BAA2B,GAAG,IAAA,yBAAY,EAC9C,uBAAA,IAAI,qEAAiC,CACtC,CAAC;IACF,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,4BAAoB,CAAC,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"}
|
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.70.0--canary.
|
4
|
+
"version": "4.70.0--canary.4854.b1d79a8.0",
|
5
5
|
"main": "dist/renderer-web-components.js",
|
6
6
|
"types": "dist/renderer-web-components.d.ts",
|
7
7
|
"sideEffects": false,
|
@@ -15,22 +15,20 @@
|
|
15
15
|
},
|
16
16
|
"author": "Knapsack (https://www.knapsack.cloud)",
|
17
17
|
"dependencies": {
|
18
|
-
"@knapsack/app": "4.70.0--canary.
|
19
|
-
"@knapsack/file-utils": "4.70.0--canary.
|
20
|
-
"@knapsack/types": "4.70.0--canary.
|
21
|
-
"@knapsack/utils": "4.70.0--canary.
|
18
|
+
"@knapsack/app": "4.70.0--canary.4854.b1d79a8.0",
|
19
|
+
"@knapsack/file-utils": "4.70.0--canary.4854.b1d79a8.0",
|
20
|
+
"@knapsack/types": "4.70.0--canary.4854.b1d79a8.0",
|
21
|
+
"@knapsack/utils": "4.70.0--canary.4854.b1d79a8.0",
|
22
22
|
"cheerio": "^1.0.0",
|
23
23
|
"chokidar": "^3.6.0",
|
24
24
|
"ejs": "^3.1.10",
|
25
|
-
"fs-extra": "^11.2.0",
|
26
25
|
"zod": "^3.23.8"
|
27
26
|
},
|
28
27
|
"devDependencies": {
|
29
|
-
"@knapsack/eslint-config-starter": "4.70.0--canary.
|
30
|
-
"@knapsack/test-ava": "4.70.0--canary.
|
31
|
-
"@knapsack/typescript-config-starter": "4.70.0--canary.
|
32
|
-
"@types/
|
33
|
-
"@types/node": "^20.16.1",
|
28
|
+
"@knapsack/eslint-config-starter": "4.70.0--canary.4854.b1d79a8.0",
|
29
|
+
"@knapsack/test-ava": "4.70.0--canary.4854.b1d79a8.0",
|
30
|
+
"@knapsack/typescript-config-starter": "4.70.0--canary.4854.b1d79a8.0",
|
31
|
+
"@types/node": "^20.16.5",
|
34
32
|
"ava": "^6.1.3",
|
35
33
|
"eslint": "^8.57.0",
|
36
34
|
"typescript": "^5.5.4",
|
@@ -44,5 +42,5 @@
|
|
44
42
|
"directory": "apps/client/renderers/renderer-web-components",
|
45
43
|
"type": "git"
|
46
44
|
},
|
47
|
-
"gitHead": "
|
45
|
+
"gitHead": "b1d79a8caffe3537b921ff76bae2f2e8bcabbc43"
|
48
46
|
}
|