@knapsack/renderer-twig 4.70.0--canary.4433.133de0f.0 → 4.70.0--canary.4513.12c8d13.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,105 @@
1
+ # v4.69.13 (Thu Sep 26 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - update design src user flow to be async [#4739](https://github.com/knapsack-labs/app-monorepo/pull/4739) ([@mabry1985](https://github.com/mabry1985))
6
+ - Merge branch 'latest' into feature/ksp-5512-create-add-design-src-file-async-mutation ([@mabry1985](https://github.com/mabry1985))
7
+
8
+ #### 🏠 Internal
9
+
10
+ - improve Renderer clients [#4770](https://github.com/knapsack-labs/app-monorepo/pull/4770) ([@EvanLovely](https://github.com/EvanLovely))
11
+ - refactors user flow for updating design src files [#4769](https://github.com/knapsack-labs/app-monorepo/pull/4769) ([@mabry1985](https://github.com/mabry1985))
12
+
13
+ #### Authors: 2
14
+
15
+ - Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
16
+ - Josh Mabry ([@mabry1985](https://github.com/mabry1985))
17
+
18
+ ---
19
+
20
+ # v4.69.12 (Thu Sep 26 2024)
21
+
22
+ #### 🐛 Bug Fix
23
+
24
+ - Merge branch 'latest' into feature/ksp-5560-replace-schema-forms-in-content-blocks ([@GormanDesign](https://github.com/GormanDesign))
25
+
26
+ #### Authors: 1
27
+
28
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
29
+
30
+ ---
31
+
32
+ # v4.69.11 (Fri Sep 20 2024)
33
+
34
+ #### 🏠 Internal
35
+
36
+ - adds select all option to exclude patterns filters [#4803](https://github.com/knapsack-labs/app-monorepo/pull/4803) ([@GormanDesign](https://github.com/GormanDesign))
37
+
38
+ #### Authors: 1
39
+
40
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
41
+
42
+ ---
43
+
44
+ # v4.69.9 (Sat Sep 14 2024)
45
+
46
+ #### 🏠 Internal
47
+
48
+ - update template stage ui [#4763](https://github.com/knapsack-labs/app-monorepo/pull/4763) ([@GormanDesign](https://github.com/GormanDesign))
49
+ - add spacing under form feedback banner [#4747](https://github.com/knapsack-labs/app-monorepo/pull/4747) ([@GormanDesign](https://github.com/GormanDesign))
50
+
51
+ #### Authors: 1
52
+
53
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
54
+
55
+ ---
56
+
57
+ # v4.69.8 (Thu Sep 12 2024)
58
+
59
+ #### 🐛 Bug Fix
60
+
61
+ - refactor Renderers for cleaner types [#4746](https://github.com/knapsack-labs/app-monorepo/pull/4746) ([@EvanLovely](https://github.com/EvanLovely))
62
+
63
+ #### Authors: 1
64
+
65
+ - Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
66
+
67
+ ---
68
+
69
+ # v4.69.7 (Wed Sep 11 2024)
70
+
71
+ #### 🐛 Bug Fix
72
+
73
+ - Merge branch 'latest' into feature/ksp-5497-setup-status-id-in-client ([@mabry1985](https://github.com/mabry1985))
74
+
75
+ #### 🏠 Internal
76
+
77
+ - fixes schema form select appearance [#4700](https://github.com/knapsack-labs/app-monorepo/pull/4700) ([@GormanDesign](https://github.com/GormanDesign))
78
+ - add scroll indicator to popover [#4697](https://github.com/knapsack-labs/app-monorepo/pull/4697) ([@GormanDesign](https://github.com/GormanDesign))
79
+
80
+ #### Authors: 2
81
+
82
+ - Josh Mabry ([@mabry1985](https://github.com/mabry1985))
83
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
84
+
85
+ ---
86
+
87
+ # v4.69.6 (Fri Sep 06 2024)
88
+
89
+ #### 🐛 Bug Fix
90
+
91
+ - Merge branch 'latest' into feature/ksp-5458-anchor-links-not-jumping-to-the-right-spot ([@GormanDesign](https://github.com/GormanDesign))
92
+
93
+ #### 🏠 Internal
94
+
95
+ - restores hash link handling [#4637](https://github.com/knapsack-labs/app-monorepo/pull/4637) ([@GormanDesign](https://github.com/GormanDesign))
96
+
97
+ #### Authors: 1
98
+
99
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
100
+
101
+ ---
102
+
1
103
  # v4.69.2 (Fri Aug 30 2024)
2
104
 
3
105
  #### 🐛 Bug Fix
@@ -1,13 +1,12 @@
1
- import { KnapsackRendererBase } from '@knapsack/app';
2
- import type { KnapsackRenderParams, KnapsackTemplateRenderer, KnapsackTemplateRendererResults } from '@knapsack/app/types';
1
+ import { Renderable, Renderer, RendererBase } from '@knapsack/app/renderers';
3
2
  import TwigRenderer, { type TwigRendererConfig } from '@basalt/twig-renderer';
4
- export declare class KnapsackTwigRenderer extends KnapsackRendererBase implements KnapsackTemplateRenderer {
3
+ export declare class KnapsackTwigRenderer extends RendererBase implements Renderable {
5
4
  #private;
6
5
  twigRenderer: TwigRenderer;
7
6
  constructor(config: TwigRendererConfig);
8
- render(opt: KnapsackRenderParams): Promise<KnapsackTemplateRendererResults>;
9
- getUsage(opt: KnapsackRenderParams): Promise<string>;
10
- getTemplateSuggestions(): ReturnType<KnapsackTemplateRenderer['getTemplateSuggestions']>;
11
- getMeta: KnapsackTemplateRenderer['getMeta'];
7
+ render: Renderer['render'];
8
+ getUsage: Renderer['getUsage'];
9
+ getTemplateSuggestions: Renderer['getTemplateSuggestions'];
10
+ getMeta: Renderer['getMeta'];
12
11
  }
13
12
  //# sourceMappingURL=renderer-twig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-twig.d.ts","sourceRoot":"","sources":["../src/renderer-twig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAO,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,YAAY,EAAE,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAqB9E,qBAAa,oBACX,SAAQ,oBACR,YAAW,wBAAwB;;IAEnC,YAAY,EAAE,YAAY,CAAC;gBAGf,MAAM,EAAE,kBAAkB;IAwBhC,MAAM,CACV,GAAG,EAAE,oBAAoB,GACxB,OAAO,CAAC,+BAA+B,CAAC;IAOrC,QAAQ,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IA2HpD,sBAAsB,IAAI,UAAU,CACxC,wBAAwB,CAAC,wBAAwB,CAAC,CACnD;IAsCD,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC,CA4BzC;CACJ"}
1
+ {"version":3,"file":"renderer-twig.d.ts","sourceRoot":"","sources":["../src/renderer-twig.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAEjC,OAAO,YAAY,EAAE,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAe9E,qBAAa,oBAAqB,SAAQ,YAAa,YAAW,UAAU;;IAC1E,YAAY,EAAE,YAAY,CAAC;gBAGf,MAAM,EAAE,kBAAkB;IAwBtC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAKxB;IAEF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAuH5B;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAoCxD;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CA4BzB;CACJ"}
@@ -17,20 +17,18 @@ var _KnapsackTwigRenderer_src;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.KnapsackTwigRenderer = void 0;
19
19
  const app_1 = require("@knapsack/app");
20
+ const renderers_1 = require("@knapsack/app/renderers");
20
21
  const types_1 = require("@knapsack/types");
21
22
  const twig_renderer_1 = __importDefault(require("@basalt/twig-renderer"));
22
23
  const path_1 = require("path");
23
- const fs_extra_1 = require("fs-extra");
24
24
  const file_utils_1 = require("@knapsack/file-utils");
25
25
  const utils_1 = require("./utils");
26
- const pkg = JSON.parse((0, fs_extra_1.readFileSync)((0, path_1.join)(__dirname, '../package.json'), 'utf-8'));
26
+ const pkg = JSON.parse((0, file_utils_1.readFileSync)((0, path_1.join)(__dirname, '../package.json')));
27
27
  app_1.log.setupUpdateNotifier(pkg);
28
- // static methods only
29
- const { createSlotOptionsHtmlTags } = app_1.KnapsackRendererBase;
30
28
  const protoTemplatePath = (0, path_1.join)(__dirname, '../prototype-template/prototype-template.twig');
31
29
  (0, file_utils_1.assertFileExists)(protoTemplatePath);
32
30
  const protoTwigNamespace = 'knapsack-renderer-twig-prototype-template';
33
- class KnapsackTwigRenderer extends app_1.KnapsackRendererBase {
31
+ class KnapsackTwigRenderer extends renderers_1.RendererBase {
34
32
  constructor(config) {
35
33
  super({
36
34
  id: types_1.rendererIds.twig,
@@ -38,6 +36,132 @@ class KnapsackTwigRenderer extends app_1.KnapsackRendererBase {
38
36
  extension: '.twig',
39
37
  });
40
38
  _KnapsackTwigRenderer_src.set(this, void 0);
39
+ this.render = async (opt) => {
40
+ const usage = await this.getUsage(opt);
41
+ const results = await this.twigRenderer.renderString(usage);
42
+ return { ...results, usage, templateLanguage: this.language };
43
+ // return this.twigRenderer.render(template.alias, data);
44
+ };
45
+ this.getUsage = async (opt) => {
46
+ const { pattern, template, demo,
47
+ /**
48
+ * The Patterns class
49
+ */
50
+ patternManifest, } = opt;
51
+ if (!demo) {
52
+ return `{% include "${template.alias}" only %}`;
53
+ }
54
+ switch (demo.type) {
55
+ case 'template': {
56
+ const { absolutePath: templateDemoPath, exists } = await this.resolvePath(demo.templateInfo.path);
57
+ if (!exists) {
58
+ throw new Error(`Could not find template demo file at ${templateDemoPath}`);
59
+ }
60
+ return (0, file_utils_1.readFile)(templateDemoPath);
61
+ }
62
+ case 'data': {
63
+ const { data: { props, slots, slotsOptionsComputed }, } = demo;
64
+ if (!slots) {
65
+ return (0, utils_1.getTwigUsage)({
66
+ templateName: template.alias,
67
+ props,
68
+ });
69
+ }
70
+ {
71
+ const slotProps = {};
72
+ await Promise.all(Object.keys(slots).map(async (slotName) => {
73
+ const slottedTemplates = slots[slotName];
74
+ slotProps[slotName] = await Promise.all(slottedTemplates.map(async (slottedTemplate) => {
75
+ if (slottedTemplate.type === 'text') {
76
+ return ` ${slottedTemplate.text}`;
77
+ }
78
+ if (slottedTemplate.type === 'template-reference') {
79
+ throw new Error(`Cannot handle slotted template references in ${JSON.stringify({
80
+ patternId: pattern.id,
81
+ templateId: template.id,
82
+ demoId: demo.id,
83
+ slottedTemplate,
84
+ })}`);
85
+ }
86
+ const thisPattern = patternManifest.getPattern(slottedTemplate.patternId);
87
+ const thisTemplate = thisPattern.templates.find((t) => t.id === slottedTemplate.templateId);
88
+ const usage = await this.getUsage({
89
+ pattern: thisPattern,
90
+ template: thisTemplate,
91
+ patternManifest,
92
+ demo: slottedTemplate.demo ||
93
+ this.patterns.demosById[slottedTemplate.demoId],
94
+ });
95
+ // indenting 2 spaces since it will be in a `{% set slotName %}` block
96
+ return usage
97
+ .split('\n')
98
+ .map((line) => ` ${line}`)
99
+ .join('\n');
100
+ }));
101
+ }));
102
+ const extraProps = [];
103
+ const slotIncludes = Object.keys(slotProps).map((slotName) => {
104
+ extraProps.push({
105
+ key: slotName,
106
+ value: slotName,
107
+ });
108
+ const slotCodes = slotProps[slotName];
109
+ const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
110
+ const { openTag, closeTag } = (0, renderers_1.createSlotOptionsHtmlTags)({
111
+ slotOptionsComputed,
112
+ classAttributeName: 'class',
113
+ stylesValueType: 'string',
114
+ });
115
+ return `
116
+ {% set ${slotName} %}
117
+ ${[openTag, ...slotCodes, closeTag].filter(Boolean).join('\n')}
118
+ {% endset %}
119
+ `.trim();
120
+ });
121
+ const usage = await (0, utils_1.getTwigUsage)({
122
+ templateName: template.alias,
123
+ props,
124
+ before: slotIncludes.join('\n\n'),
125
+ extraProps,
126
+ });
127
+ return usage;
128
+ }
129
+ }
130
+ default:
131
+ throw new Error(`Must pass in a demo.type`);
132
+ }
133
+ };
134
+ this.getTemplateSuggestions = async () => {
135
+ var _a, _b;
136
+ const { unusedPaths } = await this.getUnusedTemplatePaths({
137
+ globPaths: __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").roots.map((root) => (0, path_1.join)(root, '**/*.twig')),
138
+ cwd: this.userConfigDir,
139
+ });
140
+ const namespaces = (_b = (_a = __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").namespaces) === null || _a === void 0 ? void 0 : _a.map(({ id, paths }) => {
141
+ const absPaths = paths.map((path) => (0, path_1.isAbsolute)(path) ? path : (0, path_1.join)(this.userConfigDir, path));
142
+ return {
143
+ id,
144
+ paths: absPaths,
145
+ };
146
+ })) !== null && _b !== void 0 ? _b : [];
147
+ const suggestions = unusedPaths.map((twigPath) => {
148
+ const namespace = namespaces.find(({ paths }) => paths.some((path) => twigPath.startsWith(path)));
149
+ let alias;
150
+ if (namespace) {
151
+ namespace.paths.forEach((path) => {
152
+ if (twigPath.startsWith(path)) {
153
+ const subPath = (0, path_1.relative)(path, twigPath);
154
+ alias = `@${namespace.id}/${subPath}`;
155
+ }
156
+ });
157
+ }
158
+ return {
159
+ path: twigPath,
160
+ alias,
161
+ };
162
+ });
163
+ return { suggestions };
164
+ };
41
165
  this.getMeta = () => ({
42
166
  id: this.id,
43
167
  title: 'Twig',
@@ -83,133 +207,6 @@ class KnapsackTwigRenderer extends app_1.KnapsackRendererBase {
83
207
  },
84
208
  });
85
209
  }
86
- async render(opt) {
87
- const usage = await this.getUsage(opt);
88
- const results = await this.twigRenderer.renderString(usage);
89
- return { ...results, usage, templateLanguage: this.language };
90
- // return this.twigRenderer.render(template.alias, data);
91
- }
92
- async getUsage(opt) {
93
- const { pattern, template, demo,
94
- /**
95
- * The Patterns class
96
- */
97
- patternManifest, } = opt;
98
- if (!demo) {
99
- return `{% include "${template.alias}" only %}`;
100
- }
101
- switch (demo.type) {
102
- case 'template': {
103
- const templateDemoPath = patternManifest.getTemplateDemoAbsolutePath({
104
- patternId: pattern.id,
105
- templateId: template.id,
106
- demoId: demo.id,
107
- });
108
- return (0, fs_extra_1.readFile)(templateDemoPath, 'utf8');
109
- }
110
- case 'data': {
111
- const { data: { props, slots, slotsOptionsComputed }, } = demo;
112
- if (!slots) {
113
- return (0, utils_1.getTwigUsage)({
114
- templateName: template.alias,
115
- props,
116
- });
117
- }
118
- {
119
- const slotProps = {};
120
- await Promise.all(Object.keys(slots).map(async (slotName) => {
121
- const slottedTemplates = slots[slotName];
122
- slotProps[slotName] = await Promise.all(slottedTemplates.map(async (slottedTemplate) => {
123
- if (app_1.KnapsackRendererBase.isSlottedText(slottedTemplate)) {
124
- return ` ${slottedTemplate.text}`;
125
- }
126
- if (app_1.KnapsackRendererBase.isSlottedTemplateReference(slottedTemplate)) {
127
- throw new Error(`Cannot handle slotted template references in ${JSON.stringify({
128
- patternId: pattern.id,
129
- templateId: template.id,
130
- demoId: demo.id,
131
- slottedTemplate,
132
- })}`);
133
- }
134
- const thisPattern = patternManifest.getPattern(slottedTemplate.patternId);
135
- const thisTemplate = thisPattern.templates.find((t) => t.id === slottedTemplate.templateId);
136
- const usage = await this.getUsage({
137
- pattern: thisPattern,
138
- template: thisTemplate,
139
- patternManifest,
140
- demo: slottedTemplate.demo ||
141
- this.patterns.demosById[slottedTemplate.demoId],
142
- });
143
- // indenting 2 spaces since it will be in a `{% set slotName %}` block
144
- return usage
145
- .split('\n')
146
- .map((line) => ` ${line}`)
147
- .join('\n');
148
- }));
149
- }));
150
- const extraProps = [];
151
- const slotIncludes = Object.keys(slotProps).map((slotName) => {
152
- extraProps.push({
153
- key: slotName,
154
- value: slotName,
155
- });
156
- const slotCodes = slotProps[slotName];
157
- const slotOptionsComputed = slotsOptionsComputed === null || slotsOptionsComputed === void 0 ? void 0 : slotsOptionsComputed[slotName];
158
- const { openTag, closeTag } = createSlotOptionsHtmlTags({
159
- slotOptionsComputed,
160
- classAttributeName: 'class',
161
- stylesValueType: 'string',
162
- });
163
- return `
164
- {% set ${slotName} %}
165
- ${[openTag, ...slotCodes, closeTag].filter(Boolean).join('\n')}
166
- {% endset %}
167
- `.trim();
168
- });
169
- const usage = await (0, utils_1.getTwigUsage)({
170
- templateName: template.alias,
171
- props,
172
- before: slotIncludes.join('\n\n'),
173
- extraProps,
174
- });
175
- return usage;
176
- }
177
- }
178
- default:
179
- throw new Error(`Must pass in a demo.type`);
180
- }
181
- }
182
- async getTemplateSuggestions() {
183
- var _a, _b;
184
- const { unusedPaths } = await this.getUnusedTemplatePaths({
185
- globPaths: __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").roots.map((root) => (0, path_1.join)(root, '**/*.twig')),
186
- cwd: this.userConfigDir,
187
- });
188
- const namespaces = (_b = (_a = __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").namespaces) === null || _a === void 0 ? void 0 : _a.map(({ id, paths }) => {
189
- const absPaths = paths.map((path) => (0, path_1.isAbsolute)(path) ? path : (0, path_1.join)(this.userConfigDir, path));
190
- return {
191
- id,
192
- paths: absPaths,
193
- };
194
- })) !== null && _b !== void 0 ? _b : [];
195
- const suggestions = unusedPaths.map((twigPath) => {
196
- const namespace = namespaces.find(({ paths }) => paths.some((path) => twigPath.startsWith(path)));
197
- let alias;
198
- if (namespace) {
199
- namespace.paths.forEach((path) => {
200
- if (twigPath.startsWith(path)) {
201
- const subPath = (0, path_1.relative)(path, twigPath);
202
- alias = `@${namespace.id}/${subPath}`;
203
- }
204
- });
205
- }
206
- return {
207
- path: twigPath,
208
- alias,
209
- };
210
- });
211
- return { suggestions };
212
- }
213
210
  }
214
211
  exports.KnapsackTwigRenderer = KnapsackTwigRenderer;
215
212
  _KnapsackTwigRenderer_src = new WeakMap();
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-twig.js","sourceRoot":"","sources":["../src/renderer-twig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA0D;AAM1D,2CAAuE;AACvE,0EAA8E;AAC9E,+BAAqE;AACrE,uCAAkD;AAClD,qDAAwD;AACxD,mCAAuC;AAEvC,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O;YACpB,mBAAmB,EAAE,KAAK;YAC1B,6BAA6B,EAAE,IAAI;YACnC,mBAAmB,EAAE;gBACnB,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,IAAI,kBAAkB,IAAI,IAAA,eAAQ,EAAC,iBAAiB,CAAC,EAAE;gBAC9D,IAAI,EAAE;oBACJ,UAAU,EAAE,KAAK;oBACjB,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,EAAE;qBACf;oBACD,KAAK,EAAE;wBACL,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;qBAChC;iBACF;aACF;SACF,CAAC,CAAC;QApND,6CAA6C;QAC7C,uBAAA,IAAI,6BAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAA,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,uBAAY,CAAC;YACnC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;YAChD,GAAG,MAAM;YACT,GAAG,EAAE;gBACH,GAAG,MAAM,CAAC,GAAG;gBACb,UAAU,EAAE;oBACV,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU;oBACxB;wBACE,EAAE,EAAE,kBAAkB;wBACtB,KAAK,EAAE,CAAC,IAAA,cAAO,EAAC,iBAAiB,CAAC,CAAC;qBACpC;iBACF;aACF;SACF,CAAC,CAAC;IACL,CAAC;CAqMF;AA/ND,oDA+NC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/renderer-twig",
3
3
  "description": "Render Twig",
4
- "version": "4.70.0--canary.4433.133de0f.0",
4
+ "version": "4.70.0--canary.4513.12c8d13.0",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "exports": {
@@ -25,17 +25,15 @@
25
25
  "author": "Knapsack (https://www.knapsack.cloud)",
26
26
  "dependencies": {
27
27
  "@basalt/twig-renderer": "^3.2.2",
28
- "@knapsack/app": "4.70.0--canary.4433.133de0f.0",
29
- "@knapsack/file-utils": "4.70.0--canary.4433.133de0f.0",
30
- "@knapsack/types": "4.70.0--canary.4433.133de0f.0",
31
- "ejs": "^3.1.10",
32
- "fs-extra": "^11.2.0"
28
+ "@knapsack/app": "4.70.0--canary.4513.12c8d13.0",
29
+ "@knapsack/file-utils": "4.70.0--canary.4513.12c8d13.0",
30
+ "@knapsack/types": "4.70.0--canary.4513.12c8d13.0",
31
+ "ejs": "^3.1.10"
33
32
  },
34
33
  "devDependencies": {
35
- "@knapsack/eslint-config-starter": "4.70.0--canary.4433.133de0f.0",
36
- "@knapsack/test-ava": "4.70.0--canary.4433.133de0f.0",
37
- "@knapsack/typescript-config-starter": "4.70.0--canary.4433.133de0f.0",
38
- "@types/fs-extra": "^11.0.4",
34
+ "@knapsack/eslint-config-starter": "4.70.0--canary.4513.12c8d13.0",
35
+ "@knapsack/test-ava": "4.70.0--canary.4513.12c8d13.0",
36
+ "@knapsack/typescript-config-starter": "4.70.0--canary.4513.12c8d13.0",
39
37
  "ava": "^6.1.3",
40
38
  "eslint": "^8.57.0",
41
39
  "typescript": "^5.5.4"
@@ -48,5 +46,5 @@
48
46
  "directory": "apps/client/renderers/renderer-twig",
49
47
  "type": "git"
50
48
  },
51
- "gitHead": "133de0f024277534b2d012833b847030e6dcc099"
49
+ "gitHead": "12c8d1378411614ad6f84e50e3721e5eb58243f4"
52
50
  }