@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 +8 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
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