Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

1.1 KB
Raw Blame
import type { WidgetManifest } from '@workbench/widgetContracts';

import { galleryQuickSettings, gallerySettingsFields } from '@features/gallery/settingsContribution';
import { ImageIcon } from 'lucide-react';

export const galleryWidgetManifest: WidgetManifest = {
  allowMultiple: false,
  allowedRegions: ['left', 'right', 'center', 'bottom'],
  bottomPanel: 'expandable',
  chrome: { body: 'fill' },
  failurePolicy: { isolateRenderFailure: true, onRegistrationFailure: 'disable' },
  icon: ImageIcon,
  id: 'gallery',
  label: (t) => t('widgets.labels.gallery'),
  load: () =>
    import('@features/gallery/widget').then((module) => ({
      footer: module.GalleryWidgetFooter,
      headerActions: module.GalleryWidgetHeaderActions,
      headerLabel: module.GalleryWidgetLabel,
      view: module.GalleryWidgetView,
    })),
  // The Gallery owns the field metadata; the binding is Workbench's (see `workbench/settings/README.md`).
  settings: {
    id: 'gallery',
    label: (t) => t('widgets.labels.gallery'),
    fields: gallerySettingsFields,
    quick: galleryQuickSettings,
    load: () => import('./settingsBindings'),
  },
  version: 1,
};