Skip to content

Commit a746561

Browse files
Merge branch 'main' into @kacperzolkiewski/feat-line-height
2 parents 041232d + 2b0d681 commit a746561

54 files changed

Lines changed: 607 additions & 102 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ jobs:
3939

4040
- name: Build docs
4141
run: yarn build
42+
43+
- name: Check docs llms.txt
44+
run: |
45+
file=build/llms.txt
46+
if [ ! -s "$file" ]; then
47+
echo "::error::$file is missing or empty"
48+
exit 1
49+
fi
50+
count=$(grep -cE '^- \[[^]]+\]\(https://docs\.swmansion\.com/react-native-enriched-html/[^)]+\)' "$file" || true)
51+
if [ "$count" -eq 0 ]; then
52+
echo "::error::$file lists no pages"
53+
exit 1
54+
fi
55+
echo "llms.txt lists $count pages"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Verifies that typing attributes are properly preserved on selection changes
4+
- launchApp
5+
6+
- tapOn:
7+
id: 'toggle-screen-button'
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-bold"
14+
15+
- inputText: 'bold text'
16+
- pressKey: Enter
17+
- pressKey: Enter
18+
- pressKey: Enter
19+
- inputText: 'another line'
20+
21+
- doubleTapOn:
22+
id: 'editor-input'
23+
point: '20%, 75%'
24+
25+
- tapOn:
26+
id: 'editor-input'
27+
point: '50%, 15%'
28+
29+
- inputText: 'new'
30+
31+
- runFlow:
32+
file: '../subflows/capture_or_assert_screenshot.yaml'
33+
env:
34+
SCREENSHOT_NAME: 'preserve_typing_attributes_on_selection_changes'
9.81 KB
Loading
8 Bytes
Loading
21 Bytes
Loading
11.6 KB
Loading

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@
2121

2222
## Installation
2323

24-
Check out the detailed [installation instructions](https://enriched.swmansion.com/html/).
24+
Check out the detailed [installation instructions](https://docs.swmansion.com/react-native-enriched-html/#installation).
2525

2626
## Compatibility
2727

2828
At the moment, the library offers stable support for iOS, Android and Web.
2929

30-
The full list of compatible React Native versions is available [here](https://enriched.swmansion.com/html/).
30+
The full list of compatible React Native versions is available [here](https://docs.swmansion.com/react-native-enriched-html/misc/compatibility/#supported-react-native-versions).
3131

3232
## Documentation
3333

34-
To find more about `react-native-enriched-html` including usage guides, API references, known limitations or our contributing guide, visit the official [documentation](https://enriched.swmansion.com/html/).
34+
To find more about `react-native-enriched-html` including usage guides, API references, known limitations or our contributing guide, visit the official [documentation](https://docs.swmansion.com/react-native-enriched-html/).
3535

3636
## Examples
3737

3838
The source code for the example mobile and web apps is under the [`apps`](https://github.com/software-mansion/react-native-enriched-html/tree/main/apps) directory.
39-
You can also see the live preview of the library's capabilities by visiting the [official documentation](https://enriched.swmansion.com/html/) filled with interactive examples.
39+
You can also see the live preview of the library's capabilities by visiting the [official documentation](https://docs.swmansion.com/react-native-enriched-html/) filled with interactive examples.
4040

4141
## License
4242

apps/example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ PODS:
18451845
- React-utils (= 0.86.0)
18461846
- ReactNativeDependencies
18471847
- ReactNativeDependencies (0.86.0)
1848-
- ReactNativeEnrichedHtml (1.1.0):
1848+
- ReactNativeEnrichedHtml (1.1.1):
18491849
- hermes-engine
18501850
- RCTRequired
18511851
- RCTTypeSafety
@@ -2182,7 +2182,7 @@ SPEC CHECKSUMS:
21822182
ReactCodegen: ee39bbc365b4791c9b5183b52c533ebf586e1d8d
21832183
ReactCommon: 4d01bfb533b93a2103329dfefc74db6a9e272888
21842184
ReactNativeDependencies: fa0a54b3f5319ae0e3b9aff32bfee7a424b88e66
2185-
ReactNativeEnrichedHtml: 2905798b4a734822d13c6b46f49ad69834358923
2185+
ReactNativeEnrichedHtml: c91b96b287fc5f413f1e2f066c9dba8dec5e9acf
21862186
Yoga: fe50ab299e578f397fef753cf309c6703a4db29b
21872187

21882188
PODFILE CHECKSUM: 88c10840d02e9884b2dc3f457d5120f83ac3803b

docs/docs/misc/known-limitations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ We may add support for more tags and related functionality over time - see the
3232
not supported yet, the best way to let us know is to open a
3333
[GitHub issue](https://github.com/software-mansion/react-native-enriched-html/issues)
3434
in our repo.
35+
36+
## No global blur support on mobile
37+
38+
On mobile, you can use `Keyboard.dismiss()` and `keyboardShouldPersistTaps` to blur
39+
the React Native's `TextInput` on taps outside of it. This doesn't work
40+
with `EnrichedTextInput`. This is a limitation of React Native itself, not
41+
something specific to this library: React Native doesn't expose
42+
`TextInputState` publicly, so we can't register our input in the React Native state.

docs/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const config = {
134134
],
135135

136136
plugins: [
137+
require('./plugins/swm-geo'),
137138
reactNativeWebPlugin,
138139
enrichedHtmlLocalSourcePlugin,
139140
function transpileTRexUiTheme() {

0 commit comments

Comments
 (0)