@burdenoff/website-sdk 2026.829.3 → 2026.829.5
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/dist/components/explore.d.mts +7 -1
- package/dist/components/explore.d.ts +7 -1
- package/dist/components/explore.js +468 -32
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +468 -32
- package/dist/components/explore.mjs.map +1 -1
- package/dist/index.d.mts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +469 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +469 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -86,4 +86,62 @@ declare const Textarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLP
|
|
|
86
86
|
*/
|
|
87
87
|
declare const ECOSYSTEM_PRODUCTS: WebsiteSwitcherProduct[];
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Localisation for the `/explore` chat surface.
|
|
91
|
+
*
|
|
92
|
+
* ## Why this is self-contained
|
|
93
|
+
*
|
|
94
|
+
* The app shells localise through `useI18n()` from `@burdenoff/fe-libs`, which is mounted by
|
|
95
|
+
* `AppShellProvider` and fetches translations at runtime from `global-i18n-svc`. None of that
|
|
96
|
+
* exists on a marketing website: no provider, no dictionary, no locale routing, and no
|
|
97
|
+
* translation files in any of the 39 site repos. Pulling that machinery in would mean adding
|
|
98
|
+
* a runtime translation fetch to a static prerendered page — a network round-trip in front of
|
|
99
|
+
* the first paint, on pages whose whole point is that they are prerendered.
|
|
100
|
+
*
|
|
101
|
+
* So the strings are bundled. There are few enough of them that the cost is bytes rather than
|
|
102
|
+
* a request, and a prerendered page stays fully rendered.
|
|
103
|
+
*
|
|
104
|
+
* ## Locales
|
|
105
|
+
*
|
|
106
|
+
* The six the products actually ship, taken from `{product}-app/src/components/chrome/
|
|
107
|
+
* languages.ts` (FALLBACK_LANGUAGES). Deliberately NOT the wider `Locale` union in fe-libs,
|
|
108
|
+
* which also lists fr/de/ja that no product ships, and deliberately not the backend's BCP-47
|
|
109
|
+
* set, which has fr/de/ja but lacks ta and ar.
|
|
110
|
+
*/
|
|
111
|
+
declare const EXPLORE_LOCALES: readonly ["en", "zh", "hi", "es", "ar", "ta"];
|
|
112
|
+
type ExploreLocale = (typeof EXPLORE_LOCALES)[number];
|
|
113
|
+
interface ExploreStrings {
|
|
114
|
+
badge: string;
|
|
115
|
+
welcomeTitle: string;
|
|
116
|
+
welcomeBody: string;
|
|
117
|
+
tryAsking: string;
|
|
118
|
+
focusProduct: string;
|
|
119
|
+
allProducts: string;
|
|
120
|
+
showAll: string;
|
|
121
|
+
showLess: string;
|
|
122
|
+
sources: string;
|
|
123
|
+
nextYouCouldAsk: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
placeholderProduct: string;
|
|
126
|
+
send: string;
|
|
127
|
+
stop: string;
|
|
128
|
+
newChat: string;
|
|
129
|
+
history: string;
|
|
130
|
+
clearHistory: string;
|
|
131
|
+
share: string;
|
|
132
|
+
copied: string;
|
|
133
|
+
copying: string;
|
|
134
|
+
shareUnavailable: string;
|
|
135
|
+
disclaimer: string;
|
|
136
|
+
disclaimerShort: string;
|
|
137
|
+
dictate: string;
|
|
138
|
+
stopDictating: string;
|
|
139
|
+
noAnswer: string;
|
|
140
|
+
askHuman: string;
|
|
141
|
+
prevSuggestion: string;
|
|
142
|
+
nextSuggestion: string;
|
|
143
|
+
capabilities: [string, string, string];
|
|
144
|
+
prompts: string[];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { Button, type ButtonProps, CareersPostingOption, CareersSubmissionForm, type CareersSubmissionFormProps, ECOSYSTEM_PRODUCTS, EXPLORE_LOCALES, type ExploreLocale, type ExploreStrings, Input, Label, Select, Textarea, WebsiteSwitcherProduct, buttonVariants, isValidUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -86,4 +86,62 @@ declare const Textarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLP
|
|
|
86
86
|
*/
|
|
87
87
|
declare const ECOSYSTEM_PRODUCTS: WebsiteSwitcherProduct[];
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Localisation for the `/explore` chat surface.
|
|
91
|
+
*
|
|
92
|
+
* ## Why this is self-contained
|
|
93
|
+
*
|
|
94
|
+
* The app shells localise through `useI18n()` from `@burdenoff/fe-libs`, which is mounted by
|
|
95
|
+
* `AppShellProvider` and fetches translations at runtime from `global-i18n-svc`. None of that
|
|
96
|
+
* exists on a marketing website: no provider, no dictionary, no locale routing, and no
|
|
97
|
+
* translation files in any of the 39 site repos. Pulling that machinery in would mean adding
|
|
98
|
+
* a runtime translation fetch to a static prerendered page — a network round-trip in front of
|
|
99
|
+
* the first paint, on pages whose whole point is that they are prerendered.
|
|
100
|
+
*
|
|
101
|
+
* So the strings are bundled. There are few enough of them that the cost is bytes rather than
|
|
102
|
+
* a request, and a prerendered page stays fully rendered.
|
|
103
|
+
*
|
|
104
|
+
* ## Locales
|
|
105
|
+
*
|
|
106
|
+
* The six the products actually ship, taken from `{product}-app/src/components/chrome/
|
|
107
|
+
* languages.ts` (FALLBACK_LANGUAGES). Deliberately NOT the wider `Locale` union in fe-libs,
|
|
108
|
+
* which also lists fr/de/ja that no product ships, and deliberately not the backend's BCP-47
|
|
109
|
+
* set, which has fr/de/ja but lacks ta and ar.
|
|
110
|
+
*/
|
|
111
|
+
declare const EXPLORE_LOCALES: readonly ["en", "zh", "hi", "es", "ar", "ta"];
|
|
112
|
+
type ExploreLocale = (typeof EXPLORE_LOCALES)[number];
|
|
113
|
+
interface ExploreStrings {
|
|
114
|
+
badge: string;
|
|
115
|
+
welcomeTitle: string;
|
|
116
|
+
welcomeBody: string;
|
|
117
|
+
tryAsking: string;
|
|
118
|
+
focusProduct: string;
|
|
119
|
+
allProducts: string;
|
|
120
|
+
showAll: string;
|
|
121
|
+
showLess: string;
|
|
122
|
+
sources: string;
|
|
123
|
+
nextYouCouldAsk: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
placeholderProduct: string;
|
|
126
|
+
send: string;
|
|
127
|
+
stop: string;
|
|
128
|
+
newChat: string;
|
|
129
|
+
history: string;
|
|
130
|
+
clearHistory: string;
|
|
131
|
+
share: string;
|
|
132
|
+
copied: string;
|
|
133
|
+
copying: string;
|
|
134
|
+
shareUnavailable: string;
|
|
135
|
+
disclaimer: string;
|
|
136
|
+
disclaimerShort: string;
|
|
137
|
+
dictate: string;
|
|
138
|
+
stopDictating: string;
|
|
139
|
+
noAnswer: string;
|
|
140
|
+
askHuman: string;
|
|
141
|
+
prevSuggestion: string;
|
|
142
|
+
nextSuggestion: string;
|
|
143
|
+
capabilities: [string, string, string];
|
|
144
|
+
prompts: string[];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { Button, type ButtonProps, CareersPostingOption, CareersSubmissionForm, type CareersSubmissionFormProps, ECOSYSTEM_PRODUCTS, EXPLORE_LOCALES, type ExploreLocale, type ExploreStrings, Input, Label, Select, Textarea, WebsiteSwitcherProduct, buttonVariants, isValidUrl };
|