Skip to content

Conversation

@cyanzhong
Copy link
Contributor

No description provided.

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 PR refactors the file content API by replacing getFileDataURI with a more comprehensive getFileObject function, while simplifying getFileContent to only return string content. The new getFileObject returns a structured object containing base64-encoded data along with file type metadata (MIME type, type identifier, and filename extension).

Changes:

  • Replaced getFileDataURI with getFileObject that returns structured metadata about files
  • Simplified getFileContent to remove the base64Encoded parameter and only return string content
  • Updated the markedit-api dependency from v0.19.0 to v0.20.0

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift Added UniformTypeIdentifiers import; simplified getFileContent; implemented new getFileObject with metadata
MarkEditKit/Sources/Bridge/Native/Generated/NativeModuleAPI.swift Updated protocol and bridge to include getFileObject method and removed base64Encoded parameter from getFileContent
CoreEditor/src/bridge/native/api.ts Updated TypeScript interface to match new Swift API signatures
CoreEditor/src/api/modules.ts Updated export from getFileDataURI to getFileObject
CoreEditor/src/api/files.ts Implemented new getFileObject function that parses JSON response; simplified getFileContent
CoreEditor/package.json Bumped markedit-api dependency to v0.20.0
CoreEditor/yarn.lock Updated markedit-api lockfile entry with new version and checksum

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

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

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


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

Copy link
Contributor

Copilot AI commented Jan 10, 2026

@cyanzhong I've opened a new pull request, #1213, to work on those changes. Once the pull request is ready, I'll request review from you.

@cyanzhong cyanzhong merged commit 8e283c5 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