Skip to content

Commit dcbb625

Browse files
authored
1 parent 93cbce1 commit dcbb625

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

packages/types/news/7531.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Complete expanders typings, include `translations`. @sneridagh

packages/types/news/7560.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Better `BlockViewProps` typings, include `isEditMode`. @sneridagh

packages/types/src/blocks/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface BlockViewProps {
2929
path: string;
3030
className: string;
3131
style: Record<`--${string}`, string>;
32+
isEditMode?: boolean;
3233
}
3334

3435
type SearchMetadataResultItem = {};

packages/types/src/content/common.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { GetSiteResponse } from '../services/site';
77
import type { GetAliasesResponse } from '../services/aliases';
88
import type { ContextNavigationResponse } from '../services/contextnavigation';
99
import type { WorkflowResponse } from '../services/workflow';
10+
import type { GetTranslationResponse } from '../services/translations';
1011

1112
export interface Expanders {
1213
[key: string]: unknown;
@@ -17,6 +18,7 @@ export interface Expanders {
1718
navigation: NavigationResponse;
1819
navroot: GetNavrootResponse;
1920
site?: GetSiteResponse;
21+
translations?: GetTranslationResponse;
2022
types: GetTypesResponse;
2123
workflow: WorkflowResponse;
2224
}

0 commit comments

Comments
 (0)