The reference plugin — deliberately the smallest thing that is still a real plugin, and what EXTRACTING-A-PLUGIN.md sends people to read. It leaves the platform tree with music and offscale, so that `plugins/` in the platform repository holds documentation and nothing else. That is the point of the move: a directory that contains both tracked source and untracked installs is one where "is this mine or is this installed" has no answer you can see. Same extraction as the two before it: source only, no history. The platform's history still holds every commit that shaped this. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
17 lines
768 B
TypeScript
17 lines
768 B
TypeScript
import type { LayoutNode } from 'officerdev';
|
|
|
|
// How this plugin's panels are arranged. The shell renders `WorkspaceView` with this as the default and
|
|
// persists the user's version per plugin, so this is the starting arrangement rather than a fixed one.
|
|
//
|
|
// Every `appType` here must be a key from `panels.ts` — `appTypes.allowed` is pinned to them, so a
|
|
// mismatch falls back rather than rendering another plugin's panel inside this screen.
|
|
export const defaultLayout: LayoutNode = {
|
|
type: 'group',
|
|
id: 'example-root',
|
|
direction: 'horizontal',
|
|
children: [
|
|
{ node: { type: 'panel', id: 'example-overview', appType: 'example-overview' }, size: 40 },
|
|
{ node: { type: 'panel', id: 'example-detail', appType: 'example-detail' }, size: 60 },
|
|
],
|
|
};
|