Skip to content

Commit 2be1fb7

Browse files
authored
Merge pull request #2491 from Shopify/block/collapsed-summary
add collapsedSummary prop to AdminBlock
2 parents 4a113ea + 1e1f82e commit 2be1fb7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.changeset/rotten-donuts-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/ui-extensions': patch
3+
---
4+
5+
AdminBlock remove summary prop and add collapsedSummary

packages/ui-extensions/src/surfaces/admin/components/AdminBlock/AdminBlock.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ export interface AdminBlockProps {
77
title?: string;
88

99
/**
10-
* The summary to display when the app block is collapsed.
11-
*
12-
* @deprecated App blocks no longer have a collapsed state, so this prop is no longer supported.
10+
* The summary to display when the app block is collapsed. Summary longer than 30 characters will be truncated.
1311
*/
14-
summary?: string;
12+
collapsedSummary?: string;
1513
}
1614

1715
export const AdminBlock = createRemoteComponent<'AdminBlock', AdminBlockProps>(

0 commit comments

Comments
 (0)