Skip to content

Commit b3be80e

Browse files
Update interlinearizer-extension for React 19 / Tailwind 4 compatibility
1 parent 74fcf3a commit b3be80e

20 files changed

Lines changed: 12481 additions & 16594 deletions

.stylelintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
'plugin',
4141
'source',
4242
'custom-variant',
43+
'utility',
4344
],
4445
},
4546
],

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This is a **Platform.Bible extension** for interlinear Bible text alignment. Pla
3838

3939
### WebView UI
4040

41-
`src/interlinearizer.web-view.tsx` — React component rendered inside Platform.Bible's WebView iframe. `useWebViewScrollGroupScrRef` is a **prop injected by the PAPI host** (not a hook import). Uses PAPI frontend hooks (`useProjectData`, `useProjectSetting`, `useLocalizedStrings`, `useRecentScriptureRefs`) to fetch live data. Renders verse segments as token chips with Tailwind utility classes (all prefixed `tw-`).
41+
`src/interlinearizer.web-view.tsx` — React component rendered inside Platform.Bible's WebView iframe. `useWebViewScrollGroupScrRef` is a **prop injected by the PAPI host** (not a hook import). Uses PAPI frontend hooks (`useProjectData`, `useProjectSetting`, `useLocalizedStrings`, `useRecentScriptureRefs`) to fetch live data. Renders verse segments as token chips with Tailwind utility classes (all prefixed `tw:`).
4242

4343
The WebView is injected into the main bundle via Webpack's `?inline` query:
4444

@@ -55,7 +55,7 @@ The WebView root component is assigned to `globalThis.webViewComponent` (not exp
5555

5656
### Styling
5757

58-
All UI uses Tailwind CSS (via `src/tailwind.css`). Every Tailwind class is prefixed `tw-` to avoid collisions with Platform.Bible's own styles (configured in `tailwind.config.ts`).
58+
All UI uses Tailwind CSS (via `src/tailwind.css`). Every Tailwind class is prefixed `tw:` to avoid collisions with Platform.Bible's own styles (configured in `tailwind.config.ts`). For modifier variants the prefix comes first: `tw:hover:px-3`, not `hover:tw-px-3`.
5959

6060
### Parser pipeline
6161

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ git merge template/main --allow-unrelated-histories
253253

254254
For more information, read [the instructions on the wiki](https://github.com/paranext/paranext-extension-template/wiki/Merging-Template-Changes-into-Your-Extension).
255255

256+
After updating this extension from the template, clear all temp/cache files and regenerate the extension's `package-lock.json` with this command:
257+
258+
```bash
259+
npm run core:reinstall
260+
```
261+
256262
**Note:** The merge/squash commits created when updating this repo from the template are important; Git uses them to compare the files for future updates. If you edit this repo's Git history, please preserve these commits (do not squash them, for example) to avoid duplicated merge conflicts in the future.
257263

258264
## Special features in this project

0 commit comments

Comments
 (0)