@knapsack/renderer-hbs 4.67.0--canary.4438.2ae91d0.0 → 4.67.0--canary.4436.17c70f7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/renderer-hbs.d.ts.map +1 -1
- package/dist/renderer-hbs.js +2 -11
- package/dist/renderer-hbs.js.map +1 -1
- package/package.json +10 -10
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-hbs.d.ts","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAO,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,GAAG,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"renderer-hbs.d.ts","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAO,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,GAAG,MAAM,YAAY,CAAC;AAO7B,qBAAa,mBACX,SAAQ,oBACR,YAAW,QAAQ;IAGnB,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;IAaA,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IA0CvC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GACvC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAK/B,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAKtC,MAAM,CACV,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GACrC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAkC3B,QAAQ,CAAC,EACb,OAAO,EACP,eAAe,EACf,QAAQ,EACR,IAAI,GACL,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IA4GnE,sBAAsB,IAAI,UAAU,CACxC,QAAQ,CAAC,wBAAwB,CAAC,CACnC;IAaD,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAyBzB;CACJ"}
|
package/dist/renderer-hbs.js
CHANGED
@@ -13,8 +13,6 @@ const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
13
13
|
const utils_1 = require("./utils");
|
14
14
|
const { pkg } = (0, file_utils_1.findUpPkgJson)(__dirname);
|
15
15
|
const gitRoot = (0, file_utils_1.findGitRoot)();
|
16
|
-
// static methods only
|
17
|
-
const { createSlotOptionsHtmlTags } = app_1.KnapsackRendererBase;
|
18
16
|
class KnapsackHbsRenderer extends app_1.KnapsackRendererBase {
|
19
17
|
constructor({ alterHandlebars = () => { }, } = {}) {
|
20
18
|
super({
|
@@ -31,7 +29,6 @@ class KnapsackHbsRenderer extends app_1.KnapsackRendererBase {
|
|
31
29
|
enableDataDemos: true,
|
32
30
|
enableTemplateDemos: true,
|
33
31
|
hasSlotsSupport: true,
|
34
|
-
hasSlotOptionsSupport: true,
|
35
32
|
version: pkg.version,
|
36
33
|
hasInferSpecSupport: false,
|
37
34
|
hasTemplateSuggestionsSupport: true,
|
@@ -135,7 +132,7 @@ class KnapsackHbsRenderer extends app_1.KnapsackRendererBase {
|
|
135
132
|
return (0, file_utils_1.readFile)(absolutePath);
|
136
133
|
}
|
137
134
|
case 'data': {
|
138
|
-
const { data: { props, slots
|
135
|
+
const { data: { props, slots }, } = demo;
|
139
136
|
// No slots from the UI (empty slots object)
|
140
137
|
if ((0, isEmpty_1.default)(slots)) {
|
141
138
|
const usage = await (0, utils_1.getHbsUsage)({
|
@@ -171,15 +168,9 @@ class KnapsackHbsRenderer extends app_1.KnapsackRendererBase {
|
|
171
168
|
});
|
172
169
|
return usage;
|
173
170
|
}));
|
174
|
-
const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
|
175
|
-
const { openTag, closeTag } = createSlotOptionsHtmlTags({
|
176
|
-
slotOptionsComputed,
|
177
|
-
classAttributeName: 'class',
|
178
|
-
stylesValueType: 'string',
|
179
|
-
});
|
180
171
|
return {
|
181
172
|
name: slotName,
|
182
|
-
content:
|
173
|
+
content: slotContent,
|
183
174
|
};
|
184
175
|
}));
|
185
176
|
// @TODO: need slot names?
|
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,uCAA0D;AAC1D,qDAA4E;AAE5E,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,
|
1
|
+
{"version":3,"file":"renderer-hbs.js","sourceRoot":"","sources":["../src/renderer-hbs.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0D;AAC1D,qDAA4E;AAE5E,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;AA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AE,YAAY;qBACpB,CAAC,CAAC;oBAEH,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;YAED;gBACE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,KAAK,CAAC,sBAAsB;QAG1B,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC;YACxD,SAAS,EAAE,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;YACnD,GAAG,EAAE,OAAO;SACb,CAAC,CAAC;QAEH,MAAM,WAAW,GAAyB,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACnE,IAAI;SACL,CAAC,CAAC,CAAC;QAEJ,OAAO,EAAE,WAAW,EAAE,CAAC;IACzB,CAAC;CA4BF;AAjRD,kDAiRC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-hbs",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.67.0--canary.
|
4
|
+
"version": "4.67.0--canary.4436.17c70f7.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.67.0--canary.
|
26
|
-
"@knapsack/file-utils": "4.67.0--canary.
|
27
|
-
"@knapsack/types": "4.67.0--canary.
|
28
|
-
"@knapsack/utils": "4.67.0--canary.
|
25
|
+
"@knapsack/app": "4.67.0--canary.4436.17c70f7.0",
|
26
|
+
"@knapsack/file-utils": "4.67.0--canary.4436.17c70f7.0",
|
27
|
+
"@knapsack/types": "4.67.0--canary.4436.17c70f7.0",
|
28
|
+
"@knapsack/utils": "4.67.0--canary.4436.17c70f7.0",
|
29
29
|
"handlebars": "^4.7.8",
|
30
30
|
"lodash": "^4.17.21"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@knapsack/eslint-config-starter": "4.67.0--canary.
|
34
|
-
"@knapsack/prettier-config": "4.67.0--canary.
|
35
|
-
"@knapsack/test-ava": "4.67.0--canary.
|
36
|
-
"@knapsack/typescript-config-starter": "4.67.0--canary.
|
33
|
+
"@knapsack/eslint-config-starter": "4.67.0--canary.4436.17c70f7.0",
|
34
|
+
"@knapsack/prettier-config": "4.67.0--canary.4436.17c70f7.0",
|
35
|
+
"@knapsack/test-ava": "4.67.0--canary.4436.17c70f7.0",
|
36
|
+
"@knapsack/typescript-config-starter": "4.67.0--canary.4436.17c70f7.0",
|
37
37
|
"@types/lodash": "^4.17.5",
|
38
38
|
"@types/node": "^20.12.12",
|
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": "17c70f76ed1021abe3d38fc7e303f95e824f67a7"
|
53
53
|
}
|