Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions apps/mobile/deps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Enriched Markdown prototype package

The tarball contains the prepared `react-native-enriched-markdown` package based on
upstream [bb2b0942](https://github.com/software-mansion/enriched-markdown/commit/bb2b0942a55555463fe129899d9c922038f10c41),
including the prototype's generic API extensions and native fixes. It replaces
the original pnpm patch and includes opt-in per-link context menus on iOS 17+.
JS, TypeScript declarations, generated native bindings, native sources, and the
MIT license are included. Enriched's postinstall restores its grammar dependencies
as usual. T3 supplies menu titles, actions and callbacks in JS through
`linkContextMenus`; the native package contains no app-specific menu actions.

To inspect the package, extract it with `tar -xzf <tarball>`. The resulting
`package/` directory contains the sources as well as the built outputs.

To replace it, build and prepare the updated Enriched package for npm publication,
then run `npm pack --ignore-scripts --pack-destination <this directory>` from that
prepared package directory. Do not pack an installed copy after postinstall has
downloaded the grammar sources. Use a new filename for each rebuilt package,
update the mobile dependency path, and run `vp install` to refresh the lockfile's
integrity hash and the matching `allowBuilds` entry in `pnpm-workspace.yaml`.

Switch back to the published dependency once the required upstream APIs ship.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ android {

dependencies {
implementation project(':expo-modules-core')
implementation project(':t3tools-mobile-markdown-text')
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.16.1'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import android.widget.EditText
import expo.modules.kotlin.AppContext
import expo.modules.kotlin.viewevent.EventDispatcher
import expo.modules.kotlin.views.ExpoView
import expo.modules.t3markdowntext.T3ContextChip
import org.json.JSONObject
import kotlin.math.max

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expo.modules.t3markdowntext
package expo.modules.t3composereditor

import android.graphics.Canvas
import android.graphics.Color
Expand All @@ -11,7 +11,7 @@ import android.text.TextUtils
import kotlin.math.ceil
import kotlin.math.min

/** Shared by editable spans and inline chat images so their metrics and colors agree. */
/** Draws the context chips embedded in the composer. */
class T3ContextChip(
content: Content,
fontSize: Float,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,6 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
iconImage: UIImage?,
style: ComposerChipStyle
) -> UIImage {
// Kept in step with `T3ContextChipVectorIcon` in the markdown module: a chip drawn here and
// the same chip drawn in a sent message have to be the same picture.
let chipFontSize = fontSize * 0.86
let font = UIFont(name: "DMSans-Medium", size: chipFontSize)
?? UIFont.systemFont(ofSize: chipFontSize, weight: .medium)
Expand Down
32 changes: 0 additions & 32 deletions apps/mobile/modules/t3-markdown-text/android/build.gradle

This file was deleted.

This file was deleted.

Loading
Loading