@htmlbricks/hb-sidebar-desktop 0.74.1 → 0.76.1

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/manifest.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "languageChange": {
11
11
  "additionalProperties": false,
12
- "description": "Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy.",
12
+ "description": "Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks.",
13
13
  "properties": {
14
14
  "code": {
15
15
  "type": "string"
@@ -292,7 +292,7 @@
292
292
  }
293
293
  }
294
294
  },
295
- "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } when a language is chosen (host updates i18nlang on hb-layout or equivalent).",
295
+ "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } on mount and when a language is chosen. On selection the sidebar updates document.documentElement.lang and its selector immediately (and sets the host i18nlang attribute when the prop was empty); the host may still set i18nlang on hb-layout for shell-wide copy.",
296
296
  "storybookArgs": {
297
297
  "companylogouri": {
298
298
  "control": {
@@ -798,7 +798,7 @@
798
798
  },
799
799
  {
800
800
  "name": "sidebarWithLanguages",
801
- "description": "Language dropdown (from i18nlanguages) next to the theme switch; emits languageChange with { code }. Host should set i18nlang when a language is picked.",
801
+ "description": "Language dropdown (from i18nlanguages) next to the theme switch; applies selection locally (document lang, UI) and emits languageChange on mount and on pick. Host may sync i18nlang.",
802
802
  "data": {
803
803
  "navlinks": [
804
804
  {
@@ -847,7 +847,7 @@
847
847
  }
848
848
  }
849
849
  ],
850
- "iifeIntegrity": "sha384-ip/qvUes0G9cD65XoTOqSmWiDxpnfHPbwfzp65FCll/lia3mH4UYBEOawUB7Oymh",
850
+ "iifeIntegrity": "sha384-HG1+IbNK8s1j+IuNo9H6G4uBbtaNuvRdMsfyNCwBc+QkgbZHpkd5XiEuC3r1dkxP",
851
851
  "dependencies": [
852
852
  {
853
853
  "name": "hb-sidenav-link",
@@ -873,5 +873,5 @@
873
873
  "size": {},
874
874
  "iifePath": "main.iife.js",
875
875
  "repoName": "@htmlbricks/hb-sidebar-desktop",
876
- "version": "0.74.1"
876
+ "version": "0.76.1"
877
877
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-sidebar-desktop",
3
- "version": "0.74.1",
3
+ "version": "0.76.1",
4
4
  "contributors": [],
5
- "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } when a language is chosen (host updates i18nlang on hb-layout or equivalent).",
5
+ "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } on mount and when a language is chosen. On selection the sidebar updates document.documentElement.lang and its selector immediately (and sets the host i18nlang attribute when the prop was empty); the host may still set i18nlang on hb-layout for shell-wide copy.",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -32,6 +32,6 @@ export type Events = {
32
32
  pageChange: { page: string };
33
33
  /** Host applies Bulma/document hooks (`data-theme` / `theme-*` on `html`/`body`) or ignores. */
34
34
  themeChange: { mode: ThemePreference };
35
- /** Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy. */
35
+ /** Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks. */
36
36
  languageChange: { code: string };
37
37
  };
@@ -7,7 +7,7 @@
7
7
  "properties": {
8
8
  "languageChange": {
9
9
  "additionalProperties": false,
10
- "description": "Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy.",
10
+ "description": "Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks.",
11
11
  "properties": {
12
12
  "code": {
13
13
  "type": "string"