Files
AFFiNE-Mirror/packages/frontend/apps/ios/App/Shared/ShareInbox/ShareInboxConstants.swift
T
DarkSky b6de0ad51b feat(ios): improve share preview (#15538)
#### PR Dependency Tree

* **PR #15538** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added rich link previews to mobile and iOS sharing, including images,
metadata, transcripts, and selected text.
* Share imports can now create structured content blocks, embeds,
bookmarks, and transcript callouts.
* Added workspace-aware preview handling for cloud, self-hosted, and
signed-out modes.
* **Accessibility**
* Improved collapse/expand controls with semantic buttons and ARIA
relationships.
* **Bug Fixes**
  * Enhanced URL and error sanitization in server logs.
* Improved link-preview CORS support, validation, and request handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-28 03:32:26 +08:00

19 lines
563 B
Swift

//
// ShareInboxConstants.swift
// Shared between AFFiNE and ShareExtension
//
import Foundation
enum ShareInboxConstants {
static let appGroupId = "group.app.affine.pro"
static let inboxDirectoryName = "ShareInbox"
static let attachmentsDirectoryName = "Attachments"
static let invalidDirectoryName = "Invalid"
static let workspaceModeFileName = "ShareWorkspaceMode.json"
static let officialLinkPreviewURL = URL(
string: "https://app.affine.pro/api/worker/link-preview"
)!
static let openInboxURL = URL(string: "affine://share-inbox")!
}