Skip to content

Conversation

@cyanzhong
Copy link
Contributor

@cyanzhong cyanzhong requested a review from Copilot January 10, 2026 08:29
@cyanzhong cyanzhong changed the title Implements getFileDataURI for binary files Implement getFileDataURI for binary files Jan 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for reading binary files by implementing a getFileDataURI function that returns base64-encoded file content. It integrates changes from the MarkEdit-api repository (v0.19.0) by adding a base64Encoded parameter to the existing getFileContent method.

Changes:

  • Enhanced getFileContent to support both text and base64-encoded output via a new boolean parameter
  • Added getFileDataURI function as a convenience wrapper for base64-encoded file reading
  • Updated dependency to markedit-api v0.19.0

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift Added base64Encoded parameter to getFileContent method and implemented conditional encoding logic
MarkEditKit/Sources/Bridge/Native/Generated/NativeModuleAPI.swift Updated protocol signature and bridge message structure to support the new parameter
CoreEditor/src/bridge/native/api.ts Updated TypeScript interface to include base64Encoded parameter in method signature
CoreEditor/src/api/files.ts Modified getFileContent to explicitly pass base64Encoded: false and added new getFileDataURI function
CoreEditor/src/api/modules.ts Added import and export for the new getFileDataURI function
CoreEditor/package.json Updated markedit-api dependency from v0.18.0 to v0.19.0
CoreEditor/yarn.lock Updated lockfile to reflect new markedit-api version and checksum

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyanzhong cyanzhong merged commit 9c8e3a4 into main Jan 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants