@lexibase/rdx-types 2.5.0 → 2.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/dist/config.d.ts CHANGED
@@ -123,6 +123,12 @@ export type RdxHomepageProps = {
123
123
  docsHref: string
124
124
  }
125
125
 
126
+ /** Props for the server homepage enabled by homepage.translations. */
127
+ export type RdxTranslatedHomepageProps = RdxHomepageProps & {
128
+ /** Translate a source phrase, falling back to the phrase itself. */
129
+ t: (text: string) => string
130
+ }
131
+
126
132
  /** Options for the built-in landing page or a project-owned home.tsx component. */
127
133
  export type RdxHomepage = {
128
134
  /**
@@ -138,6 +144,8 @@ export type RdxHomepage = {
138
144
  * component: Home // import Home from './home'
139
145
  */
140
146
  component?: ComponentType<RdxHomepageProps>
147
+ /** Load components/home.tsx on the server and translate its text from locale folders. */
148
+ translations?: boolean
141
149
  /** Built-in homepage heading. Defaults to metadata.applicationName. */
142
150
  title?: string
143
151
  /** Text below the built-in heading. Defaults to the site description. */
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export {
4
4
  RDXConfig,
5
5
  RdxHomepage,
6
6
  RdxHomepageProps,
7
+ RdxTranslatedHomepageProps,
7
8
  RdxMetadata,
8
9
  RdxRuntimeConfig,
9
10
  ResolvedRdxConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-types",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared TypeScript types for RDX documentation projects.",
6
6
  "types": "./dist/index.d.ts",