mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 02:38:23 +00:00
* feat(premiere-uxp): use native Bun bundler and build script instead of Vite * feat(premiere-uxp): switch FileListView to use Search API consistent with WebUI * feat(premiere-uxp): add on-demand jpeg preview conversion for uxp compatibility * feat(premiere-uxp): integrate spectrum web components (swc) * fix(premiere-uxp): align swc packages with 0.37.0 and fix auth layout * feat(premiere-uxp): use horizontal 2-column card view for projects and files * style(premiere-uxp): enlarge file preview by 20% and add row padding * fix(premiere-uxp): prevent card squishing and overflow with large item counts * fix(premiere-uxp): change host in manifest to single object * docs(premiere-uxp): add AGENTS.md with SWC preferences and UXP layout rules * feat(premiere-uxp): integrate spectrum web components across plugin views * fix(premiere-uxp): remove breadcrumb icons and use slash separator * feat(premiere-uxp): add collapsible folder and file sections with infinite scroll * feat(premiere-uxp): update file card layout with right column info and clean preview * fix(premiere-uxp): use raw text for file card details and fix black icons * style(premiere-uxp): use contain object-fit and black background for file card preview * fix(premiere-uxp): refine header logo, sticky title bars, circular badges, and controls * fix(premiere-uxp): replace stroke icons with spectrum workflow icons * fix(premiere-uxp): switch icon buttons to swc sp-button with icon-only and slot=icon * fix(premiere-uxp): vertically center endpoint text in header * feat(premiere-uxp): add asset and proxy import support into Premiere Pro - Implement context menu on file cards with left-click, right-click, and more action button triggers - Support raw file import for non-video assets and video assets - Support video proxy submenu listing ready transcode resolutions - Add UXP native file picker save dialog and binary download orchestration - Call Premiere Pro project.importFiles API to import downloaded assets into active project - Add non-blocking toast notification banner for progress and status reporting - Add unit tests for premiere host service and import orchestration * fix(premiere-uxp): anchor import menu directly to file card using sp-action-menu - Replace custom fixed-position ContextMenu with native SWC sp-action-menu - Anchor menu directly to the triggered file card rather than the top-left window corner - Support programmatic opening on file card click/contextmenu via imperative handle - Support video submenu with Original and ready proxy options inside sp-action-menu - Lazy load video proxies on menu open or hover - Clean up obsolete fixed-position styles and unused backdrop overlays * fix(premiere-uxp): align SWC packages to 0.37.0 and guard custom element registry - Downgrade action-menu and menu SWC packages to 0.37.0 to match the rest of the workspace - Eliminate duplicate icons-ui and sp-icon-chevron100 customElements.define calls - Add polyfill guard to customElements.define to prevent duplicate registration errors during UXP reload * fix(premiere-uxp): polyfill window.matchMedia for Adobe UXP - Add window.matchMedia polyfill in polyfills.ts - Satisfies SWC MatchMediaController used by ActionMenu and PickerBase in UXP - Prevents TypeError when opening files page * feat(premiere-uxp): replace context menu with card download action and video import dialog * fix(premiere-uxp): resolve download url before save, pass null targetBin, and center download icon * fix(premiere-uxp): resolve raw download url via download-url endpoint with fallback * feat(premiere-uxp): use native folder picker and auto-increment conflict suffixes * feat(premiere-uxp): add sequence linking, comment-marker sync, and navigation tabs - Add sequence-to-asset linking with persistent project metadata storage - Support one-way comment-to-marker timeline synchronization - Add two-tab navigation (Sequences and Browse) using Spectrum buttons - Add LinkSequenceDialog, SequencesView, and autoSyncService background engine - Enforce Spectrum Workflow Icons and UXP layout rules * feat(premiere-uxp): refine UI layouts, card interactions, and search box activation * fix(premiere-uxp): set compact fixed width for file list search box * fix(premiere-uxp): ensure search box click activation across full width in UXP * fix(premiere-uxp): revert search box hacks and restore simple default sp-search layout * feat(premiere-uxp): sync non-timestamped comments as markers at time 0 * feat(premiere-uxp): change link icon to unlink when asset is linked in file card * fix(premiere-uxp): sync linked sequences between host project and browse view * feat(premiere-uxp): remove synced markers on sequence unlink matching Frame.io * fix(premiere-uxp): ensure reliable marker GUID capture, normalization, and fallback on unlink * fix(premiere-uxp): use official Shumai logo for plugin manifest icons * fix(premiere-uxp): use official PNG icons for manifest and plugin entrypoints * refactor(premiere-uxp): use single 114x114 icon for plugin and panel * feat(premiere-uxp): show file version in file list page file card * build(premiere-uxp): check in built ccx package and update packaging configuration * fix(premiere-uxp): address code review findings for media conversion, marker sync, and link scoping - Reset hasJpegCover on project cover update and hasJpegPreview on asset media transcode - Only advance synced comment metadata after confirmed marker transaction - Normalize GUID keys and lookups in AutoSyncService map - Restrict cached sequence link lookups to project-specific keys and prevent cross-project leakage on empty sequences - Update built CCX distribution package
300 lines
8.7 KiB
TypeScript
300 lines
8.7 KiB
TypeScript
/* eslint-disable @typescript-eslint/naming-convention -- Custom element tag names in IntrinsicElements require hyphens */
|
|
declare module '@swc-uxp-wrappers/utils' {
|
|
export const aliases: Record<string, string>
|
|
}
|
|
|
|
type SpIconCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'
|
|
slot?: string
|
|
name?: string
|
|
label?: string
|
|
}
|
|
|
|
type SpButtonCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').ButtonHTMLAttributes<HTMLButtonElement>,
|
|
HTMLButtonElement
|
|
> & {
|
|
variant?: 'accent' | 'primary' | 'secondary' | 'negative' | 'white' | 'black' | string
|
|
treatment?: 'fill' | 'outline' | string
|
|
quiet?: boolean
|
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl'
|
|
label?: string
|
|
'icon-only'?: boolean
|
|
disabled?: boolean
|
|
slot?: string
|
|
}
|
|
|
|
type SpButtonGroupCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
vertical?: boolean
|
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl'
|
|
}
|
|
|
|
type SpActionButtonCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').ButtonHTMLAttributes<HTMLButtonElement>,
|
|
HTMLButtonElement
|
|
> & {
|
|
quiet?: boolean
|
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl'
|
|
label?: string
|
|
disabled?: boolean
|
|
selected?: boolean
|
|
toggles?: boolean
|
|
emphasized?: boolean
|
|
slot?: string
|
|
}
|
|
|
|
type SpActionMenuCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
quiet?: boolean
|
|
size?: 'xs' | 's' | 'm' | 'l' | 'xl'
|
|
label?: string
|
|
disabled?: boolean
|
|
open?: boolean
|
|
placement?:
|
|
| 'top'
|
|
| 'top-start'
|
|
| 'top-end'
|
|
| 'right'
|
|
| 'right-start'
|
|
| 'right-end'
|
|
| 'bottom'
|
|
| 'bottom-start'
|
|
| 'bottom-end'
|
|
| 'left'
|
|
| 'left-start'
|
|
| 'left-end'
|
|
'force-popover'?: boolean
|
|
selects?: 'single'
|
|
value?: string
|
|
slot?: string
|
|
}
|
|
|
|
type SpMenuCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
slot?: string
|
|
selects?: 'single' | 'multiple' | 'inherit'
|
|
label?: string
|
|
}
|
|
|
|
type SpMenuItemCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
disabled?: boolean
|
|
selected?: boolean
|
|
value?: string
|
|
slot?: string
|
|
}
|
|
|
|
type SpMenuDividerCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
size?: 's' | 'm' | 'l'
|
|
}
|
|
|
|
type SpMenuGroupCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
slot?: string
|
|
}
|
|
|
|
type SpStatusLightCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
variant?:
|
|
| 'negative'
|
|
| 'notice'
|
|
| 'positive'
|
|
| 'info'
|
|
| 'neutral'
|
|
| 'yellow'
|
|
| 'fuchsia'
|
|
| 'indigo'
|
|
| 'seafoam'
|
|
| 'chartreuse'
|
|
| 'magenta'
|
|
| 'celery'
|
|
| 'purple'
|
|
| string
|
|
disabled?: boolean
|
|
slot?: string
|
|
}
|
|
|
|
type SpProgressCircleCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
size?: 's' | 'm' | 'l'
|
|
indeterminate?: boolean
|
|
label?: string
|
|
slot?: string
|
|
'static-color'?: 'white' | string
|
|
}
|
|
|
|
type SpTopNavCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
selected?: string
|
|
quiet?: boolean
|
|
compact?: boolean
|
|
label?: string
|
|
}
|
|
|
|
type SpTopNavItemCustomElementProps = import('react').DetailedHTMLProps<
|
|
import('react').HTMLAttributes<HTMLElement>,
|
|
HTMLElement
|
|
> & {
|
|
value?: string
|
|
selected?: boolean
|
|
href?: string
|
|
disabled?: boolean
|
|
}
|
|
|
|
declare namespace React {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
'sp-icon': SpIconCustomElementProps
|
|
'sp-icon-refresh': SpIconCustomElementProps
|
|
'sp-icon-chevron-down': SpIconCustomElementProps
|
|
'sp-icon-chevron-right': SpIconCustomElementProps
|
|
'sp-icon-log-out': SpIconCustomElementProps
|
|
'sp-icon-arrow-right': SpIconCustomElementProps
|
|
'sp-icon-filmstrip': SpIconCustomElementProps
|
|
'sp-icon-folder': SpIconCustomElementProps
|
|
'sp-icon-folder-open': SpIconCustomElementProps
|
|
'sp-icon-audio': SpIconCustomElementProps
|
|
'sp-icon-image': SpIconCustomElementProps
|
|
'sp-icon-document': SpIconCustomElementProps
|
|
'sp-icon-link': SpIconCustomElementProps
|
|
'sp-icon-unlink': SpIconCustomElementProps
|
|
'sp-icon-link-out': SpIconCustomElementProps
|
|
'sp-icon-download': SpIconCustomElementProps
|
|
'sp-icon-briefcase': SpIconCustomElementProps
|
|
'sp-icon-alert-circle': SpIconCustomElementProps
|
|
'sp-icon-alert-triangle': SpIconCustomElementProps
|
|
'sp-icon-checkmark-circle': SpIconCustomElementProps
|
|
'sp-icon-close': SpIconCustomElementProps
|
|
'sp-icon-movie-camera': SpIconCustomElementProps
|
|
'sp-icon-video-filled': SpIconCustomElementProps
|
|
'sp-button': SpButtonCustomElementProps
|
|
'sp-button-group': SpButtonGroupCustomElementProps
|
|
'sp-action-button': SpActionButtonCustomElementProps
|
|
'sp-action-menu': SpActionMenuCustomElementProps
|
|
'sp-menu': SpMenuCustomElementProps
|
|
'sp-menu-item': SpMenuItemCustomElementProps
|
|
'sp-menu-divider': SpMenuDividerCustomElementProps
|
|
'sp-menu-group': SpMenuGroupCustomElementProps
|
|
'sp-status-light': SpStatusLightCustomElementProps
|
|
'sp-progress-circle': SpProgressCircleCustomElementProps
|
|
'sp-top-nav': SpTopNavCustomElementProps
|
|
'sp-top-nav-item': SpTopNavItemCustomElementProps
|
|
}
|
|
}
|
|
}
|
|
|
|
declare namespace JSX {
|
|
interface IntrinsicElements {
|
|
'sp-icon': SpIconCustomElementProps
|
|
'sp-icon-refresh': SpIconCustomElementProps
|
|
'sp-icon-chevron-down': SpIconCustomElementProps
|
|
'sp-icon-chevron-right': SpIconCustomElementProps
|
|
'sp-icon-log-out': SpIconCustomElementProps
|
|
'sp-icon-arrow-right': SpIconCustomElementProps
|
|
'sp-icon-filmstrip': SpIconCustomElementProps
|
|
'sp-icon-folder': SpIconCustomElementProps
|
|
'sp-icon-folder-open': SpIconCustomElementProps
|
|
'sp-icon-audio': SpIconCustomElementProps
|
|
'sp-icon-image': SpIconCustomElementProps
|
|
'sp-icon-document': SpIconCustomElementProps
|
|
'sp-icon-link': SpIconCustomElementProps
|
|
'sp-icon-unlink': SpIconCustomElementProps
|
|
'sp-icon-link-out': SpIconCustomElementProps
|
|
'sp-icon-download': SpIconCustomElementProps
|
|
'sp-icon-briefcase': SpIconCustomElementProps
|
|
'sp-icon-alert-circle': SpIconCustomElementProps
|
|
'sp-icon-alert-triangle': SpIconCustomElementProps
|
|
'sp-icon-checkmark-circle': SpIconCustomElementProps
|
|
'sp-icon-close': SpIconCustomElementProps
|
|
'sp-icon-movie-camera': SpIconCustomElementProps
|
|
'sp-icon-video-filled': SpIconCustomElementProps
|
|
'sp-button': SpButtonCustomElementProps
|
|
'sp-button-group': SpButtonGroupCustomElementProps
|
|
'sp-action-button': SpActionButtonCustomElementProps
|
|
'sp-action-menu': SpActionMenuCustomElementProps
|
|
'sp-menu': SpMenuCustomElementProps
|
|
'sp-menu-item': SpMenuItemCustomElementProps
|
|
'sp-menu-divider': SpMenuDividerCustomElementProps
|
|
'sp-menu-group': SpMenuGroupCustomElementProps
|
|
'sp-status-light': SpStatusLightCustomElementProps
|
|
'sp-progress-circle': SpProgressCircleCustomElementProps
|
|
'sp-top-nav': SpTopNavCustomElementProps
|
|
'sp-top-nav-item': SpTopNavItemCustomElementProps
|
|
}
|
|
}
|
|
|
|
type UxpEntry = UxpFileEntry | UxpFolderEntry
|
|
|
|
interface UxpFileEntry {
|
|
readonly isFile: true
|
|
readonly isFolder: false
|
|
readonly name: string
|
|
readonly nativePath: string
|
|
write(data: ArrayBuffer | string, options?: { format?: unknown; append?: boolean }): Promise<void>
|
|
}
|
|
|
|
interface UxpFolderEntry {
|
|
readonly isFile: false
|
|
readonly isFolder: true
|
|
readonly name: string
|
|
readonly nativePath: string
|
|
createFile(name: string, options?: { overwrite?: boolean }): Promise<UxpFileEntry>
|
|
getEntries(): Promise<UxpEntry[]>
|
|
getFiles?(): Promise<UxpFileEntry[]>
|
|
}
|
|
|
|
interface UxpLocalFileSystem {
|
|
getFileForSaving(
|
|
defaultName?: string,
|
|
options?: { types?: string[] },
|
|
): Promise<UxpFileEntry | null>
|
|
getFileForOpening(options?: {
|
|
allowMultiple?: boolean
|
|
types?: string[]
|
|
}): Promise<UxpFileEntry | UxpFileEntry[] | null>
|
|
getFolder(): Promise<UxpFolderEntry | null>
|
|
getTemporaryFolder(): Promise<UxpFolderEntry>
|
|
getDataFolder(): Promise<UxpFolderEntry>
|
|
getPluginFolder(): Promise<UxpFolderEntry>
|
|
}
|
|
|
|
interface UxpStorageFormats {
|
|
readonly binary: unknown
|
|
readonly utf8: unknown
|
|
}
|
|
|
|
interface UxpModule {
|
|
storage: {
|
|
localFileSystem: UxpLocalFileSystem
|
|
formats: UxpStorageFormats
|
|
}
|
|
}
|
|
|
|
declare module 'uxp' {
|
|
const uxp: UxpModule
|
|
export = uxp
|
|
}
|