@gramlot/gramlot-examples 0.3.2 → 0.3.3

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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install @gramlot/gramlot-examples
12
12
  [![PyPI](https://img.shields.io/pypi/v/gramlot-examples)](https://pypi.org/project/gramlot-examples/)
13
13
  [![npm](https://img.shields.io/npm/v/@gramlot/gramlot-examples)](https://www.npmjs.com/package/@gramlot/gramlot-examples)
14
14
 
15
- Current release: 0.3.2.
15
+ Current release: 0.3.3.
16
16
 
17
17
  [Documentation and learning sequence](https://gramlot-examples.readthedocs.io/en/latest/)
18
18
  include every lesson, its Python and JavaScript source, and the gallery guide.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gramlot/gramlot-examples",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Gramlot example pages, the gallery page and its catalogue.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -57,7 +57,7 @@ export class GalleryPage extends IndexPage {
57
57
  header.html_button('Code ⟨/⟩', {type: 'button', id: 'index-code-toggle',
58
58
  aria_controls: 'index-code', aria_expanded: 'false', disabled: true});
59
59
  const views = header.div({class: 'gallery-mobile-views gallery-mobile-only', role: 'group', aria_label: 'Gallery view'});
60
- for (const [view, caption] of [['example', 'Esempio'], ['code', 'Codice'], ['inspector', 'Inspector']]) {
60
+ for (const [view, caption] of [['example', 'Example'], ['code', 'Code'], ['inspector', 'Inspector']]) {
61
61
  views.html_button(caption, {type: 'button', id: `gallery-view-${view}`, aria_pressed: String(view === 'example')});
62
62
  }
63
63
  }
@@ -85,7 +85,7 @@ export class GalleryPage extends IndexPage {
85
85
 
86
86
  const preview = panel.div({class: 'gallery-preview', id: `preview-${key}`});
87
87
  const modes = preview.div({class: 'gallery-preview-modes', role: 'group', aria_label: 'Preview mode'});
88
- for (const [mode, caption] of [['normal', 'Normale'], ['mobile', 'Mobile']]) {
88
+ for (const [mode, caption] of [['normal', 'Normal'], ['mobile', 'Mobile']]) {
89
89
  modes.html_button(caption, {type: 'button', id: `preview-${mode}-${key}`, aria_pressed: mode === 'normal' ? 'true' : 'false'});
90
90
  }
91
91
  const stage = preview.div({class: 'gallery-preview-stage', id: `preview-stage-${key}`});