@knapsack/renderer-hbs 4.70.0--canary.3797.b249674.0 → 4.70.0--canary.4821.56b0218.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/renderer-hbs.d.ts +2 -0
- package/dist/renderer-hbs.d.ts.map +1 -1
- package/dist/renderer-hbs.js +36 -28
- package/dist/renderer-hbs.js.map +1 -1
- package/package.json +10 -10
package/dist/renderer-hbs.d.ts
CHANGED
@@ -12,7 +12,9 @@ export declare class KnapsackHbsRenderer extends RendererBase implements Rendera
|
|
12
12
|
});
|
13
13
|
registerComponentPaths(): Promise<void>;
|
14
14
|
init: Renderer['init'];
|
15
|
+
hydrate: Renderer['hydrate'];
|
15
16
|
onChange: Renderer['onChange'];
|
17
|
+
watch: Renderer['watch'];
|
16
18
|
render: Renderer['render'];
|
17
19
|
getUsage: Renderer['getUsage'];
|
18
20
|
getTemplateSuggestions: Renderer['getTemplateSuggestions'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-hbs.d.ts","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,GAAG,MAAM,YAAY,CAAC;AAO7B,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,UAAU;IAEzE,UAAU,EAAE,OAAO,GAAG,CAAC;IACvB,eAAe,EAAE,CAAC,UAAU,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC;gBAEtC,EACV,eAA0B,GAC3B,GAAE;QACD;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,mBAAmB,CAAC,SAAS,CAAC,eAAe,CAAC;KACnE;
|
1
|
+
{"version":3,"file":"renderer-hbs.d.ts","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,GAAG,MAAM,YAAY,CAAC;AAO7B,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,UAAU;IAEzE,UAAU,EAAE,OAAO,GAAG,CAAC;IACvB,eAAe,EAAE,CAAC,UAAU,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC;gBAEtC,EACV,eAA0B,GAC3B,GAAE;QACD;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,mBAAmB,CAAC,SAAS,CAAC,eAAe,CAAC;KACnE;IAYA,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoC7C,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAEpB;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAE1B;IAEO,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAGrC;IAEO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAI/B;IAEF,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAgCxB;IAEF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CA8G5B;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAcxD;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CA0BzB;CACJ"}
|
package/dist/renderer-hbs.js
CHANGED
@@ -18,17 +18,23 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
18
18
|
constructor({ alterHandlebars = () => { }, } = {}) {
|
19
19
|
super({
|
20
20
|
id: types_1.rendererIds.hbs,
|
21
|
-
extension: 'hbs',
|
22
21
|
language: 'hbs',
|
23
22
|
});
|
24
|
-
this.init = async (
|
25
|
-
await
|
23
|
+
this.init = async () => {
|
24
|
+
await this.registerComponentPaths();
|
25
|
+
};
|
26
|
+
this.hydrate = async () => {
|
26
27
|
await this.registerComponentPaths();
|
27
28
|
};
|
28
29
|
this.onChange = () => {
|
29
30
|
super.onChange();
|
30
31
|
this.registerComponentPaths();
|
31
32
|
};
|
33
|
+
this.watch = async () => {
|
34
|
+
app_1.knapsackEvents.onPatternsDataReady(() => {
|
35
|
+
this.registerComponentPaths();
|
36
|
+
});
|
37
|
+
};
|
32
38
|
this.render = async (opt) => {
|
33
39
|
try {
|
34
40
|
const usage = await this.getUsage(opt);
|
@@ -61,20 +67,28 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
61
67
|
};
|
62
68
|
}
|
63
69
|
};
|
64
|
-
this.getUsage = async ({
|
65
|
-
|
70
|
+
this.getUsage = async ({ patternId, templateId, state, demo, }) => {
|
71
|
+
if (!demo) {
|
72
|
+
throw new Error(`No demo received when rendering ${patternId}`);
|
73
|
+
}
|
74
|
+
const pattern = state.patterns[patternId];
|
75
|
+
if (!pattern) {
|
76
|
+
throw new Error(`No pattern received when rendering ${patternId}`);
|
77
|
+
}
|
78
|
+
switch (demo.type) {
|
66
79
|
case 'template': {
|
67
|
-
const {
|
68
|
-
|
69
|
-
templateId: template.id,
|
70
|
-
demoId: demo.id,
|
71
|
-
});
|
80
|
+
const { templateInfo } = demo;
|
81
|
+
const { absolutePath, exists } = await this.resolvePath(templateInfo.path);
|
72
82
|
if (!exists) {
|
73
83
|
throw new Error(`The Handlebars template demo does not exist at path ${absolutePath}`);
|
74
84
|
}
|
75
85
|
return (0, file_utils_1.readFile)(absolutePath);
|
76
86
|
}
|
77
87
|
case 'data': {
|
88
|
+
const template = pattern.templates.find((t) => t.id === templateId);
|
89
|
+
if (!template) {
|
90
|
+
throw new Error(`No template received when rendering ${templateId}`);
|
91
|
+
}
|
78
92
|
const { data: { props, slots, slotsOptionsComputed }, } = demo;
|
79
93
|
// No slots from the UI (empty slots object)
|
80
94
|
if ((0, isEmpty_1.default)(slots)) {
|
@@ -100,16 +114,12 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
100
114
|
slottedTemplate,
|
101
115
|
})}`);
|
102
116
|
}
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
patternManifest,
|
109
|
-
demo: slottedTemplate.demo ||
|
110
|
-
this.patterns.demosById[slottedTemplate.demoId],
|
117
|
+
return this.getUsage({
|
118
|
+
patternId: slottedTemplate.demo.patternId,
|
119
|
+
templateId: slottedTemplate.demo.templateId,
|
120
|
+
demo: slottedTemplate.demo,
|
121
|
+
state,
|
111
122
|
});
|
112
|
-
return usage;
|
113
123
|
}));
|
114
124
|
const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
|
115
125
|
const { openTag, closeTag } = (0, renderers_1.createSlotOptionsHtmlTags)({
|
@@ -136,10 +146,11 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
136
146
|
throw new Error(`Must pass in a demo.type`);
|
137
147
|
}
|
138
148
|
};
|
139
|
-
this.getTemplateSuggestions = async () => {
|
149
|
+
this.getTemplateSuggestions = async ({ state, }) => {
|
140
150
|
const { unusedPaths } = await this.getUnusedTemplatePaths({
|
141
151
|
globPaths: [(0, path_1.join)(gitRoot, '**/*.{hbs,handlebars}')],
|
142
152
|
cwd: gitRoot,
|
153
|
+
state,
|
143
154
|
});
|
144
155
|
const suggestions = unusedPaths.map((path) => ({
|
145
156
|
path,
|
@@ -181,12 +192,9 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
181
192
|
async registerComponentPaths() {
|
182
193
|
// Wipe out handlebars instance entirely and reregister everything
|
183
194
|
this.handlebars = handlebars_1.default.create();
|
184
|
-
const
|
185
|
-
await Promise.all(
|
186
|
-
const { absolutePath, originalPath } = this.
|
187
|
-
patternId,
|
188
|
-
templateId,
|
189
|
-
});
|
195
|
+
const paths = [...this.getCodeSrcs()];
|
196
|
+
await Promise.all(paths.map(async (path) => {
|
197
|
+
const { absolutePath, originalPath } = await this.resolvePath(path);
|
190
198
|
// ie /path/to/file/ks-test-hbs/src/button.hbs
|
191
199
|
const contents = await (0, file_utils_1.readFile)(absolutePath);
|
192
200
|
try {
|
@@ -194,11 +202,11 @@ class KnapsackHbsRenderer extends renderers_1.RendererBase {
|
|
194
202
|
this.handlebars.registerPartial(originalPath, contents);
|
195
203
|
}
|
196
204
|
catch (e) {
|
197
|
-
const msg = `Couldn't register Handlebars partial
|
205
|
+
const msg = `Couldn't register Handlebars partial: ${path}. Original error message: ${e.message}`;
|
198
206
|
app_1.log.error(msg);
|
199
207
|
throw e;
|
200
208
|
}
|
201
|
-
app_1.log.verbose(`Registered partial:
|
209
|
+
app_1.log.verbose(`Registered partial: ${originalPath}`);
|
202
210
|
}));
|
203
211
|
const protoContents = await (0, file_utils_1.readFile)(require.resolve(this.getMeta().prototypingTemplate.path));
|
204
212
|
this.handlebars.registerPartial(this.getMeta().prototypingTemplate.alias, protoContents);
|
package/dist/renderer-hbs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-hbs.js","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"renderer-hbs.js","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAoD;AACpD,uDAKiC;AACjC,qDAA4E;AAC5E,2CAAuE;AACvE,+BAA4B;AAC5B,4DAA6B;AAC7B,6DAAuC;AACvC,mCAAiD;AAEjD,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,0BAAa,EAAC,SAAS,CAAC,CAAC;AACzC,MAAM,OAAO,GAAG,IAAA,wBAAW,GAAE,CAAC;AAE9B,MAAa,mBAAoB,SAAQ,wBAAY;IAKnD,YAAY,EACV,eAAe,GAAG,GAAG,EAAE,GAAE,CAAC,MAOxB,EAAE;QACJ,KAAK,CAAC;YACJ,EAAE,EAAE,mBAAW,CAAC,GAAG;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;QA4CL,SAAI,GAAqB,KAAK,IAAI,EAAE;YAClC,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,YAAO,GAAwB,KAAK,IAAI,EAAE;YACx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AE,IAAI,EAAE,EAAE;YACvB,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEpE,8CAA8C;YAC9C,MAAM,QAAQ,GAAG,MAAM,IAAA,qBAAQ,EAAC,YAAY,CAAC,CAAC;YAE9C,IAAI,CAAC;gBACH,+CAA+C;gBAC/C,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,GAAG,GAAG,yCAAyC,IAAI,6BAA6B,CAAC,CAAC,OAAO,EAAE,CAAC;gBAClG,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACf,MAAM,CAAC,CAAC;YACV,CAAC;YAED,SAAG,CAAC,OAAO,CAAC,uBAAuB,YAAY,EAAE,CAAC,CAAC;QACrD,CAAC,CAAC,CACH,CAAC;QAEF,MAAM,aAAa,GAAG,MAAM,IAAA,qBAAQ,EAClC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,CACzD,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,eAAe,CAC7B,IAAI,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,KAAK,EACxC,aAAa,CACd,CAAC;QAEF,2DAA2D;QAC3D,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;CAkNF;AA7QD,kDA6QC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-hbs",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.70.0--canary.
|
4
|
+
"version": "4.70.0--canary.4821.56b0218.0",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
7
7
|
"exports": {
|
@@ -22,18 +22,18 @@
|
|
22
22
|
"test": "time ava"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@knapsack/app": "4.70.0--canary.
|
26
|
-
"@knapsack/file-utils": "4.70.0--canary.
|
27
|
-
"@knapsack/types": "4.70.0--canary.
|
28
|
-
"@knapsack/utils": "4.70.0--canary.
|
25
|
+
"@knapsack/app": "4.70.0--canary.4821.56b0218.0",
|
26
|
+
"@knapsack/file-utils": "4.70.0--canary.4821.56b0218.0",
|
27
|
+
"@knapsack/types": "4.70.0--canary.4821.56b0218.0",
|
28
|
+
"@knapsack/utils": "4.70.0--canary.4821.56b0218.0",
|
29
29
|
"handlebars": "^4.7.8",
|
30
30
|
"lodash": "^4.17.21"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@knapsack/eslint-config-starter": "4.70.0--canary.
|
34
|
-
"@knapsack/prettier-config": "4.70.0--canary.
|
35
|
-
"@knapsack/test-ava": "4.70.0--canary.
|
36
|
-
"@knapsack/typescript-config-starter": "4.70.0--canary.
|
33
|
+
"@knapsack/eslint-config-starter": "4.70.0--canary.4821.56b0218.0",
|
34
|
+
"@knapsack/prettier-config": "4.70.0--canary.4821.56b0218.0",
|
35
|
+
"@knapsack/test-ava": "4.70.0--canary.4821.56b0218.0",
|
36
|
+
"@knapsack/typescript-config-starter": "4.70.0--canary.4821.56b0218.0",
|
37
37
|
"@types/lodash": "^4.17.5",
|
38
38
|
"@types/node": "^20.16.6",
|
39
39
|
"ava": "^6.1.3",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"directory": "apps/client/renderers/renderer-hbs",
|
50
50
|
"type": "git"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "56b02187ee87f98fefa3254d2a725a06fc1f13f8"
|
53
53
|
}
|