mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
feat(studio): wire group-selection and hide-all into the property panel
This commit is contained in:
@@ -109,6 +109,7 @@ export function StudioRightPanel({
|
|||||||
copiedAgentPrompt,
|
copiedAgentPrompt,
|
||||||
clearDomSelection,
|
clearDomSelection,
|
||||||
handleUngroupSelection,
|
handleUngroupSelection,
|
||||||
|
handleGroupSelection,
|
||||||
handleDomStyleCommit,
|
handleDomStyleCommit,
|
||||||
handleDomAttributeCommit,
|
handleDomAttributeCommit,
|
||||||
handleDomAttributeLiveCommit,
|
handleDomAttributeLiveCommit,
|
||||||
@@ -342,6 +343,10 @@ export function StudioRightPanel({
|
|||||||
[projectId, refreshFileTree, showToast],
|
[projectId, refreshFileTree, showToast],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const handleHideAllSelected = () =>
|
||||||
|
domEditGroupSelections
|
||||||
|
.map((el) => el.id ?? el.selector)
|
||||||
|
.forEach((key) => key && void onToggleElementHidden?.(key, true));
|
||||||
const propertyPanel = (
|
const propertyPanel = (
|
||||||
<DesignPanelPromoteProvider
|
<DesignPanelPromoteProvider
|
||||||
selection={domEditGroupSelections.length > 1 ? null : domEditSelection}
|
selection={domEditGroupSelections.length > 1 ? null : domEditSelection}
|
||||||
@@ -359,6 +364,9 @@ export function StudioRightPanel({
|
|||||||
assets={assets}
|
assets={assets}
|
||||||
element={domEditGroupSelections.length > 1 ? null : domEditSelection}
|
element={domEditGroupSelections.length > 1 ? null : domEditSelection}
|
||||||
multiSelectCount={domEditGroupSelections.length}
|
multiSelectCount={domEditGroupSelections.length}
|
||||||
|
multiSelectedElements={domEditGroupSelections}
|
||||||
|
onGroupSelection={handleGroupSelection}
|
||||||
|
onHideAllSelected={handleHideAllSelected}
|
||||||
copiedAgentPrompt={copiedAgentPrompt}
|
copiedAgentPrompt={copiedAgentPrompt}
|
||||||
onClearSelection={clearDomSelection}
|
onClearSelection={clearDomSelection}
|
||||||
onToggleElementHidden={onToggleElementHidden}
|
onToggleElementHidden={onToggleElementHidden}
|
||||||
|
|||||||
Reference in New Issue
Block a user