Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Composer/packages/client/src/pages/publish/createPublishTarget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { userSettingsState } from '../../recoilModel';
import { PluginHost } from '../../components/PluginHost/PluginHost';
import { PluginAPI } from '../../plugins/api';

import { label, customPublishUISurface } from './styles';
import { label, defaultPublishSurface, pvaPublishSurface } from './styles';

interface CreatePublishTargetProps {
closeDialog: () => void;
Expand Down Expand Up @@ -104,9 +104,20 @@ const CreatePublishTarget: React.FC<CreatePublishTargetProps> = (props) => {

const publishTargetContent = useMemo(() => {
if (selectedTarget?.bundleId) {
let publishSurfaceStyles;
switch (selectedTarget.extensionId) {
case 'pva-publish-composer':
publishSurfaceStyles = pvaPublishSurface;
break;

default:
publishSurfaceStyles = defaultPublishSurface;
break;
}

// render custom plugin view
return (
<div css={customPublishUISurface}>
<div css={publishSurfaceStyles}>
<PluginHost bundleId={selectedTarget.bundleId} pluginName={selectedTarget.extensionId} pluginType="publish" />
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion Composer/packages/client/src/pages/publish/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export const targetSelected = css`
font-size: ${FontSizes.small};
`;

export const customPublishUISurface = css`
export const defaultPublishSurface = css`
height: 230px;
`;

export const pvaPublishSurface = css`
height: 350px;
`;