Skip to content

Commit 46bd583

Browse files
docs: Regenerate docs
1 parent 60b9144 commit 46bd583

24 files changed

Lines changed: 200 additions & 50 deletions

docs/docs/reference/core-plugins/admin-ui-plugin/admin-ui-plugin-options.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,9 @@ Allows the contents of the `vendure-ui-config.json` file to be set, e.g.
6363
for specifying the Vendure GraphQL API host, available UI languages, etc.
6464
### compatibilityMode
6565

66-
<MemberInfo kind="property" type={`boolean`} since="3.4.0" />
66+
<MemberInfo kind="property" type={`boolean`} since="3.4.0" />
67+
6768

68-
:::warning Deprecated
69-
This option is deprecated and no longer has any effect.
7069

71-
Previously used when running the AdminUiPlugin at the same time as the new `DashboardPlugin` to avoid conflicts, but this is no longer necessary as the schemas use different type names.
72-
:::
7370

7471
</div>

docs/docs/reference/core-plugins/admin-ui-plugin/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
1111

1212
## AdminUiPlugin
1313

14-
<GenerationInfo sourceFile="packages/admin-ui-plugin/src/plugin.ts" sourceLine="146" packageName="@vendure/admin-ui-plugin" />
14+
<GenerationInfo sourceFile="packages/admin-ui-plugin/src/plugin.ts" sourceLine="147" packageName="@vendure/admin-ui-plugin" />
1515

1616
:::warning Deprecated
1717
From Vendure v3.5.0, the Angular-based Admin UI has been replaced by the new [React Admin Dashboard](/guides/extending-the-dashboard/getting-started/).
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "ChannelChip"
3+
isDefaultIndex: false
4+
generated: true
5+
---
6+
<!-- This file was generated from the Vendure source. Do not modify. Instead, re-run the "docs:build" script -->
7+
import MemberInfo from '@site/src/components/MemberInfo';
8+
import GenerationInfo from '@site/src/components/GenerationInfo';
9+
import MemberDescription from '@site/src/components/MemberDescription';
10+
11+
12+
## ChannelChip
13+
14+
<GenerationInfo sourceFile="packages/dashboard/src/lib/components/shared/channel-chip.tsx" sourceLine="18" packageName="@vendure/dashboard" since="3.5.2" />
15+
16+
A component for displaying a channel as a chip.
17+
18+
```ts title="Signature"
19+
function ChannelChip(props: Readonly<ChannelChipProps>): void
20+
```
21+
Parameters
22+
23+
### props
24+
25+
<MemberInfo kind="parameter" type={`Readonly&#60;ChannelChipProps&#62;`} />
26+

docs/docs/reference/dashboard/detail-views/use-detail-page.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
1111

1212
## useDetailPage
1313

14-
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/page/use-detail-page.ts" sourceLine="238" packageName="@vendure/dashboard" since="3.3.0" />
14+
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/page/use-detail-page.ts" sourceLine="240" packageName="@vendure/dashboard" since="3.3.0" />
1515

1616
**Status: Developer Preview**
1717

@@ -104,7 +104,9 @@ interface DetailPageOptions<T extends TypedDocumentNode<any, any>, C extends Typ
104104
entityName?: string;
105105
createDocument?: C;
106106
updateDocument?: U;
107-
setValuesForUpdate: (entity: NonNullable<ResultOf<T>[EntityField]>) => VariablesOf<U>[VarNameUpdate];
107+
setValuesForUpdate: (
108+
entity: NonNullable<ResultOf<T>[EntityField]>,
109+
) => WithLooseCustomFields<VariablesOf<U>[VarNameUpdate]>;
108110
transformCreateInput?: (input: VariablesOf<C>[VarNameCreate]) => VariablesOf<C>[VarNameCreate];
109111
transformUpdateInput?: (input: VariablesOf<U>[VarNameUpdate]) => VariablesOf<U>[VarNameUpdate];
110112
onSuccess?: (entity: ResultOf<C>[keyof ResultOf<C>] | ResultOf<U>[keyof ResultOf<U>]) => void;
@@ -154,7 +156,7 @@ The document to create the entity.
154156
The document to update the entity.
155157
### setValuesForUpdate
156158

157-
<MemberInfo kind="property" type={`(entity: NonNullable&#60;ResultOf&#60;T&#62;[EntityField]&#62;) =&#62; VariablesOf&#60;U&#62;[VarNameUpdate]`} />
159+
<MemberInfo kind="property" type={`( entity: NonNullable&#60;ResultOf&#60;T&#62;[EntityField]&#62;, ) =&#62; WithLooseCustomFields&#60;VariablesOf&#60;U&#62;[VarNameUpdate]&#62;`} />
158160

159161
The function to set the values for the update document.
160162
### transformCreateInput
@@ -184,7 +186,7 @@ The function to call when the update is successful.
184186

185187
## UseDetailPageResult
186188

187-
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/page/use-detail-page.ts" sourceLine="156" packageName="@vendure/dashboard" since="3.3.0" />
189+
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/page/use-detail-page.ts" sourceLine="158" packageName="@vendure/dashboard" since="3.3.0" />
188190

189191

190192

docs/docs/reference/dashboard/detail-views/use-generated-form.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
1111

1212
## useGeneratedForm
1313

14-
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/form-engine/use-generated-form.tsx" sourceLine="80" packageName="@vendure/dashboard" since="3.3.0" />
14+
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/form-engine/use-generated-form.tsx" sourceLine="86" packageName="@vendure/dashboard" since="3.3.0" />
1515

1616
This hook is used to create a form from a document and an entity.
1717
It will create a form with the fields defined in the document's input type.
@@ -51,7 +51,7 @@ Parameters
5151

5252
## GeneratedFormOptions
5353

54-
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/form-engine/use-generated-form.tsx" sourceLine="20" packageName="@vendure/dashboard" since="3.3.0" />
54+
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/form-engine/use-generated-form.tsx" sourceLine="24" packageName="@vendure/dashboard" since="3.3.0" />
5555

5656
Options for the useGeneratedForm hook.
5757

@@ -63,7 +63,9 @@ interface GeneratedFormOptions<T extends TypedDocumentNode<any, any>, VarName ex
6363
customFieldConfig?: any[];
6464
setValues: (
6565
entity: NonNullable<E>,
66-
) => VarName extends keyof VariablesOf<T> ? VariablesOf<T>[VarName] : VariablesOf<T>;
66+
) => WithLooseCustomFields<
67+
VarName extends keyof VariablesOf<T> ? VariablesOf<T>[VarName] : VariablesOf<T>
68+
>;
6769
onSubmit?: (
6870
values: VarName extends keyof VariablesOf<T> ? VariablesOf<T>[VarName] : VariablesOf<T>,
6971
) => void;
@@ -94,7 +96,7 @@ The entity to use to generate the form.
9496

9597
### setValues
9698

97-
<MemberInfo kind="property" type={`( entity: NonNullable&#60;E&#62;, ) =&#62; VarName extends keyof VariablesOf&#60;T&#62; ? VariablesOf&#60;T&#62;[VarName] : VariablesOf&#60;T&#62;`} />
99+
<MemberInfo kind="property" type={`( entity: NonNullable&#60;E&#62;, ) =&#62; WithLooseCustomFields&#60; VarName extends keyof VariablesOf&#60;T&#62; ? VariablesOf&#60;T&#62;[VarName] : VariablesOf&#60;T&#62; &#62;`} />
98100

99101

100102
### onSubmit

docs/docs/reference/dashboard/extensions-api/data-tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
1111

1212
## DashboardDataTableExtensionDefinition
1313

14-
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/extension-api/types/data-table.ts" sourceLine="129" packageName="@vendure/dashboard" since="3.4.0" />
14+
<GenerationInfo sourceFile="packages/dashboard/src/lib/framework/extension-api/types/data-table.ts" sourceLine="131" packageName="@vendure/dashboard" since="3.4.0" />
1515

1616
This allows you to customize aspects of existing data tables in the dashboard.
1717

docs/docs/reference/dashboard/extensions-api/navigation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface DashboardNavSectionDefinition {
2424
title: string;
2525
icon?: LucideIcon;
2626
order?: number;
27+
placement?: 'top' | 'bottom';
2728
}
2829
```
2930

@@ -56,6 +57,11 @@ import { PlusIcon } from 'lucide-react';
5657
<MemberInfo kind="property" type={`number`} />
5758

5859
Optional order number to control the position of this section in the sidebar.
60+
### placement
61+
62+
<MemberInfo kind="property" type={`'top' | 'bottom'`} />
63+
64+
Optional placement to control the position of this section in the sidebar.
5965

6066

6167
</div>

docs/docs/reference/dashboard/extensions-api/page-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ clicking the `< />` icon when hovering over a page block.
121121
type PageBlockLocation = {
122122
pageId: string;
123123
position: PageBlockPosition;
124-
column: 'main' | 'side';
124+
column: 'main' | 'side' | 'full';
125125
}
126126
```
127127
@@ -139,7 +139,7 @@ type PageBlockLocation = {
139139
140140
### column
141141
142-
<MemberInfo kind="property" type={`'main' | 'side'`} />
142+
<MemberInfo kind="property" type={`'main' | 'side' | 'full'`} />
143143
144144
145145

docs/docs/reference/dashboard/extensions-api/routes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ interface DashboardRouteDefinition {
2020
component: (route: AnyRoute) => React.ReactNode;
2121
path: string;
2222
navMenuItem?: Partial<NavMenuItem> & { sectionId: string };
23-
loader?: RouteOptions['loader'];
24-
validateSearch?: RouteOptions['validateSearch'];
23+
loader?: RouteOptions<any>['loader'];
24+
validateSearch?: RouteOptions<any>['validateSearch'];
2525
authenticated?: boolean;
2626
}
2727
```
@@ -50,14 +50,14 @@ this item should appear in. It can also point to custom nav menu sections that
5050
have been defined using the `navSections` extension property.
5151
### loader
5252

53-
<MemberInfo kind="property" type={`RouteOptions['loader']`} />
53+
<MemberInfo kind="property" type={`RouteOptions&#60;any&#62;['loader']`} />
5454

5555
Optional loader function to fetch data before the route renders.
5656
The value is a Tanstack Router
5757
[loader function](https://tanstack.com/router/latest/docs/framework/react/guide/data-loading#route-loaders)
5858
### validateSearch
5959

60-
<MemberInfo kind="property" type={`RouteOptions['validateSearch']`} />
60+
<MemberInfo kind="property" type={`RouteOptions&#60;any&#62;['validateSearch']`} />
6161

6262
Optional search parameter validation function.
6363
The value is a Tanstack Router

docs/docs/reference/dashboard/form-components/number-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
1111

1212
## NumberInput
1313

14-
<GenerationInfo sourceFile="packages/dashboard/src/lib/components/data-input/number-input.tsx" sourceLine="20" packageName="@vendure/dashboard" />
14+
<GenerationInfo sourceFile="packages/dashboard/src/lib/components/data-input/number-input.tsx" sourceLine="23" packageName="@vendure/dashboard" />
1515

1616
A component for displaying a numeric value.
1717

0 commit comments

Comments
 (0)