desy-html 8.1.6 → 8.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,6 +252,19 @@ import componentTree %}
252
252
  </div>
253
253
  </div>
254
254
  <div class="pt-base lg:pt-lg mb-base">
255
+ {% set htmlContent %}
256
+ {{ componentButton({
257
+ "text": "Copiar código",
258
+ "classes": "c-button--sm c-button--transparent mb-sm",
259
+ "attributes": {
260
+ "data-module": "c-button-copy"
261
+ }
262
+ }) }}
263
+ <pre class="hljs"><code class="language-html hljs text-sm">
264
+ {{- getHTMLCodeFromExample(exampleComponent, example.data, 'component') | highlight("html") | safe -}}
265
+ </code>
266
+ </pre>
267
+ {% endset %}
255
268
  {% set nunjucksContent %}
256
269
  {% if example.data.caller %}
257
270
  {% from "_macro.render-caller.njk" import renderCaller %}
@@ -281,19 +294,6 @@ import componentTree %}
281
294
  <pre class="hljs"><code class="language-js hljs text-sm">{{- getNunjucksCodeFromExample(exampleComponent, example.data, 'component') | highlight("twig") | safe -}}</code></pre>
282
295
  {% endif %}
283
296
  {% endset %}
284
- {% set htmlContent %}
285
- {{ componentButton({
286
- "text": "Copiar código",
287
- "classes": "c-button--sm c-button--transparent mb-sm",
288
- "attributes": {
289
- "data-module": "c-button-copy"
290
- }
291
- }) }}
292
- <pre class="hljs"><code class="language-html hljs text-sm">
293
- {{- getHTMLCodeFromExample(exampleComponent, example.data, 'component') | highlight("html") | safe -}}
294
- </code>
295
- </pre>
296
- {% endset %}
297
297
  {% call componentDetails({
298
298
  "summary": {
299
299
  "html": 'Mostrar código<span class="sr-only">del ejemplo: ' + example.name | capitalize + '</span>',
@@ -1,3 +1,3 @@
1
1
  {% macro loadComponentTemplate(componentName, params) %}
2
2
  {% include "components/" + componentName + "/_template." + componentName + ".njk" %}
3
- {% endmacro %}
3
+ {% endmacro %}
@@ -1,3 +1,3 @@
1
1
  {% macro renderCaller(params) %}
2
- {{ params | safe }}
2
+ {{ params | safe }}
3
3
  {% endmacro %}
package/docs/index.html CHANGED
@@ -37,6 +37,10 @@
37
37
 
38
38
  <h2>Changelog (English)</h2>
39
39
  <p>What's new in the latest version of desy-html</p>
40
+ <h3>v.8.1.7</h3>
41
+ <ul class="text-sm">
42
+ <li>Fixed bad html copy code in caller components.</li>
43
+ </ul>
40
44
  <h3>v.8.1.6</h3>
41
45
  <ul class="text-sm">
42
46
  <li>Minor changes in docs.</li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desy-html",
3
- "version": "8.1.6",
3
+ "version": "8.1.7",
4
4
  "description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
5
5
  "author": {
6
6
  "name": "Desy (SDA Servicios Digitales de Aragón)",