@ct-player/embed 1.0.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1542,10 +1542,14 @@ interface VirtualFileSystem {
1542
1542
  getFileTree: () => FileSystemEntry;
1543
1543
  subscribe: (callback: () => void) => () => void;
1544
1544
  writeFile: (path: string, content: string) => void;
1545
+ /** Optional: Delete a file by path */
1546
+ deleteFile?: (path: string) => void;
1545
1547
  /** Optional: Read file content by path */
1546
1548
  readFile?: (path: string) => string;
1547
1549
  /** Optional: Get all files as a record */
1548
1550
  getFiles?: () => Record<string, string>;
1551
+ /** Optional: Notify subscribers of changes (call after batch VFS operations) */
1552
+ notifyChanged?: () => void;
1549
1553
  }
1550
1554
  declare function FileExplorer({ fileSystem, selectedFile, onFileSelect, onFileCreate, onFolderCreate, onFileDelete, onFileRename, onFileCreationStart, onFileCreationInput, onFileCreationCancel, playbackFileCreation, className }: FileExplorerProps & {
1551
1555
  fileSystem: VirtualFileSystem;
package/dist/index.d.ts CHANGED
@@ -1542,10 +1542,14 @@ interface VirtualFileSystem {
1542
1542
  getFileTree: () => FileSystemEntry;
1543
1543
  subscribe: (callback: () => void) => () => void;
1544
1544
  writeFile: (path: string, content: string) => void;
1545
+ /** Optional: Delete a file by path */
1546
+ deleteFile?: (path: string) => void;
1545
1547
  /** Optional: Read file content by path */
1546
1548
  readFile?: (path: string) => string;
1547
1549
  /** Optional: Get all files as a record */
1548
1550
  getFiles?: () => Record<string, string>;
1551
+ /** Optional: Notify subscribers of changes (call after batch VFS operations) */
1552
+ notifyChanged?: () => void;
1549
1553
  }
1550
1554
  declare function FileExplorer({ fileSystem, selectedFile, onFileSelect, onFileCreate, onFolderCreate, onFileDelete, onFileRename, onFileCreationStart, onFileCreationInput, onFileCreationCancel, playbackFileCreation, className }: FileExplorerProps & {
1551
1555
  fileSystem: VirtualFileSystem;