@knapsack/renderer-twig 4.69.13--canary.4860.ba46b2a.0 → 4.69.13--canary.4821.ae550c0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
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;AAoB9E,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,CAyH5B;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAoCxD;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CA4BzB;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;IAuBtC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAKxB;IAEF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAoH5B;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAuCxD;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CA4BzB;CACJ"}
@@ -33,7 +33,6 @@ class KnapsackTwigRenderer extends renderers_1.RendererBase {
33
33
  super({
34
34
  id: types_1.rendererIds.twig,
35
35
  language: 'twig',
36
- extension: '.twig',
37
36
  });
38
37
  _KnapsackTwigRenderer_src.set(this, void 0);
39
38
  this.render = async (opt) => {
@@ -42,27 +41,27 @@ class KnapsackTwigRenderer extends renderers_1.RendererBase {
42
41
  return { ...results, usage, templateLanguage: this.language };
43
42
  // return this.twigRenderer.render(template.alias, data);
44
43
  };
45
- this.getUsage = async (opt) => {
46
- const { pattern, template, demo,
47
- /**
48
- * The Patterns class
49
- */
50
- patternManifest, } = opt;
44
+ this.getUsage = async ({ patternId, templateId, demo, state, }) => {
51
45
  if (!demo) {
52
- return `{% include "${template.alias}" only %}`;
46
+ throw new Error(`No demo received when rendering ${patternId} ${templateId}`);
47
+ }
48
+ const pattern = state.patterns[patternId];
49
+ if (!pattern) {
50
+ throw new Error(`Could not find pattern: ${patternId}`);
53
51
  }
54
52
  switch (demo.type) {
55
53
  case 'template': {
56
- const { absolutePath: templateDemoPath, exists } = await (0, file_utils_1.resolvePath)({
57
- path: demo.templateInfo.path,
58
- resolveFromDir: this.dataDir,
59
- });
54
+ const { absolutePath: templateDemoPath, exists } = await this.resolvePath(demo.templateInfo.path);
60
55
  if (!exists) {
61
56
  throw new Error(`Could not find template demo file at ${templateDemoPath}`);
62
57
  }
63
58
  return (0, file_utils_1.readFile)(templateDemoPath);
64
59
  }
65
60
  case 'data': {
61
+ const template = pattern.templates.find((t) => t.id === templateId);
62
+ if (!template) {
63
+ throw new Error(`Could not find template: ${templateId}`);
64
+ }
66
65
  const { data: { props, slots, slotsOptionsComputed }, } = demo;
67
66
  if (!slots) {
68
67
  return (0, utils_1.getTwigUsage)({
@@ -86,14 +85,11 @@ class KnapsackTwigRenderer extends renderers_1.RendererBase {
86
85
  slottedTemplate,
87
86
  })}`);
88
87
  }
89
- const thisPattern = patternManifest.getPattern(slottedTemplate.patternId);
90
- const thisTemplate = thisPattern.templates.find((t) => t.id === slottedTemplate.templateId);
91
88
  const usage = await this.getUsage({
92
- pattern: thisPattern,
93
- template: thisTemplate,
94
- patternManifest,
95
- demo: slottedTemplate.demo ||
96
- this.patterns.demosById[slottedTemplate.demoId],
89
+ patternId: slottedTemplate.demo.patternId,
90
+ templateId: slottedTemplate.demo.templateId,
91
+ demo: slottedTemplate.demo,
92
+ state,
97
93
  });
98
94
  // indenting 2 spaces since it will be in a `{% set slotName %}` block
99
95
  return usage
@@ -134,11 +130,12 @@ ${[openTag, ...slotCodes, closeTag].filter(Boolean).join('\n')}
134
130
  throw new Error(`Must pass in a demo.type`);
135
131
  }
136
132
  };
137
- this.getTemplateSuggestions = async () => {
133
+ this.getTemplateSuggestions = async ({ state, }) => {
138
134
  var _a, _b;
139
135
  const { unusedPaths } = await this.getUnusedTemplatePaths({
140
136
  globPaths: __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").roots.map((root) => (0, path_1.join)(root, '**/*.twig')),
141
137
  cwd: this.userConfigDir,
138
+ state,
142
139
  });
143
140
  const namespaces = (_b = (_a = __classPrivateFieldGet(this, _KnapsackTwigRenderer_src, "f").namespaces) === null || _a === void 0 ? void 0 : _a.map(({ id, paths }) => {
144
141
  const absPaths = paths.map((path) => (0, path_1.isAbsolute)(path) ? path : (0, path_1.join)(this.userConfigDir, path));
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-twig.js","sourceRoot":"","sources":["../src/renderer-twig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AACpC,uDAKiC;AACjC,2CAAuE;AACvE,0EAA8E;AAC9E,+BAAqE;AACrE,qDAK8B;AAC9B,mCAAuC;AAEvC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,yBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;AACzE,SAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAE7B,MAAM,iBAAiB,GAA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AAI;YACrB,qBAAqB,EAAE,IAAI;YAC3B,OAAO,EAAE,GAAG,CAAC,OAAO;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;AA9ND,oDA8NC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/renderer-twig",
3
3
  "description": "Render Twig",
4
- "version": "4.69.13--canary.4860.ba46b2a.0",
4
+ "version": "4.69.13--canary.4821.ae550c0.0",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "exports": {
@@ -25,15 +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.69.13--canary.4860.ba46b2a.0",
29
- "@knapsack/file-utils": "4.69.13--canary.4860.ba46b2a.0",
30
- "@knapsack/types": "4.69.13--canary.4860.ba46b2a.0",
28
+ "@knapsack/app": "4.69.13--canary.4821.ae550c0.0",
29
+ "@knapsack/file-utils": "4.69.13--canary.4821.ae550c0.0",
30
+ "@knapsack/types": "4.69.13--canary.4821.ae550c0.0",
31
31
  "ejs": "^3.1.10"
32
32
  },
33
33
  "devDependencies": {
34
- "@knapsack/eslint-config-starter": "4.69.13--canary.4860.ba46b2a.0",
35
- "@knapsack/test-ava": "4.69.13--canary.4860.ba46b2a.0",
36
- "@knapsack/typescript-config-starter": "4.69.13--canary.4860.ba46b2a.0",
34
+ "@knapsack/eslint-config-starter": "4.69.13--canary.4821.ae550c0.0",
35
+ "@knapsack/test-ava": "4.69.13--canary.4821.ae550c0.0",
36
+ "@knapsack/typescript-config-starter": "4.69.13--canary.4821.ae550c0.0",
37
37
  "ava": "^6.1.3",
38
38
  "eslint": "^8.57.0",
39
39
  "typescript": "^5.5.4"
@@ -46,5 +46,5 @@
46
46
  "directory": "apps/client/renderers/renderer-twig",
47
47
  "type": "git"
48
48
  },
49
- "gitHead": "ba46b2a883fd157220fc50c5e9a86ce53bddabca"
49
+ "gitHead": "ae550c01a29adac4bac77c6147d975fa372c3131"
50
50
  }