@autobusal/providers 1.5.1 → 1.6.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to `@autobusal/providers` are documented here. This project
4
4
  adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.6.0] - 2026-07-30
8
+
9
+ ### Added
10
+
11
+ - **Sitewide `Organization` + `WebSite` JSON-LD** (`Setup/Preload.tsx`), via
12
+ the new `@autobusal/common` `JsonLd` component - the entity-grounding
13
+ signal AI assistants and Google's Knowledge Graph use to resolve "who is
14
+ this brand". `Organization.sameAs` is populated from
15
+ `preferences.social.*`. No `WebSite.potentialAction`/SearchAction -
16
+ that schema is for a single free-text query field (Google's sitelinks
17
+ searchbox); this app's search is two-field (from/to), so a SearchAction
18
+ here would be invalid structured data, not a working sitelinks box.
19
+
7
20
  ## [1.5.1] - 2026-07-30
8
21
 
9
22
  ### Fixed
package/Setup/Preload.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ import { JsonLd } from '@autobusal/common';
1
2
  import { SettingsData } from '../types/settings';
2
3
  import { useSystemTheme } from '@autobusal/hooks';
3
4
 
@@ -22,6 +23,30 @@ const Preload = ({ data, children }: Props): JSX.Element => {
22
23
 
23
24
  const primaryColor = data.colors[theme].primary.normal;
24
25
 
26
+ // sitewide Organization + WebSite structured data - the entity-grounding
27
+ // signal AI assistants and Google's Knowledge Graph use to resolve "who is
28
+ // this brand". Rendered once here rather than per-page since it describes
29
+ // the SITE, not a specific page. No WebSite `potentialAction`/SearchAction:
30
+ // that schema is meant for a single free-text query field (Google's
31
+ // sitelinks searchbox), and this app's search is inherently two-field
32
+ // (from/to) - forcing it into that shape would just be invalid structured
33
+ // data, not a working sitelinks box.
34
+ const organizationLd = {
35
+ '@context': 'https://schema.org',
36
+ '@type': 'Organization',
37
+ name: data.preferences.company,
38
+ url: data.url,
39
+ logo: `${ data.url }/favicons/apple-touch-icon.png`,
40
+ sameAs: Object.values(data.preferences.social).filter(Boolean)
41
+ };
42
+
43
+ const websiteLd = {
44
+ '@context': 'https://schema.org',
45
+ '@type': 'WebSite',
46
+ name: data.preferences.company,
47
+ url: data.url
48
+ };
49
+
25
50
  return (
26
51
  <>
27
52
  <title>{ data.preferences.company }</title>
@@ -38,6 +63,9 @@ const Preload = ({ data, children }: Props): JSX.Element => {
38
63
 
39
64
  <link href={ `https://fonts.googleapis.com/css2?family=${ fontTitle }:wght@700&family=${ fontContent }:wght@300;400;700&display=swap` } rel="stylesheet" />
40
65
 
66
+ <JsonLd data={ organizationLd } />
67
+ <JsonLd data={ websiteLd } />
68
+
41
69
  { children }
42
70
  </>
43
71
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"