Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	packages/text-annotator-react/package.json
#	packages/text-annotator-react/src/index.ts
#	packages/text-annotator/package.json
  • Loading branch information
oleksandr-danylchenko committed Jun 5, 2024
2 parents e85cd6e + 58d2d1c commit 137357c
Show file tree
Hide file tree
Showing 8 changed files with 1,387 additions and 544 deletions.
1,889 changes: 1,361 additions & 528 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@recogito/text-annotator-monorepo",
"version": "3.0.0-rc.28",
"version": "3.0.0-rc.29",
"description": "Recogito Text Annotator monorepo",
"author": "Rainer Simon",
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions packages/extension-tei/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@recogito/text-annotator-tei",
"version": "3.0.0-rc.28",
"version": "3.0.0-rc.29",
"description": "Recogito Text Annotator TEI extension",
"author": "Rainer Simon",
"license": "BSD-3-Clause",
Expand Down Expand Up @@ -28,11 +28,11 @@
"devDependencies": {
"CETEIcean": "^1.9.2",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
"@annotorious/core": "^3.0.0-rc.25",
"@recogito/text-annotator": "3.0.0-rc.28"
"@annotorious/core": "^3.0.0-rc.27",
"@recogito/text-annotator": "3.0.0-rc.29"
}
}
16 changes: 11 additions & 5 deletions packages/text-annotator-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,31 @@
"types": "./dist/index.d.ts",
"devDependencies": {
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.0",
"openseadragon": "4.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-plugin-dts": "^3.9.1",
"vite-tsconfig-paths": "^4.3.2"
},
"peerDependencies": {
"openseadragon": "^3.0.0 || ^4.0.0",
"react": "16.8.0 || >=17.x || >=18.x",
"react-dom": "16.8.0 || >=17.x || >=18.x"
},
"peerDependenciesMeta": {
"openseadragon": {
"optional": true
}
},
"dependencies": {
"@annotorious/core": "^3.0.0-rc.25",
"@annotorious/react": "^3.0.0-rc.25",
"@annotorious/core": "^3.0.0-rc.27",
"@annotorious/react": "^3.0.0-rc.27",
"@floating-ui/react": "^0.26.15",
"@soomo/text-annotator": "^3.0.0-staging.16",
"@recogito/text-annotator-tei": "3.0.0-rc.28",
"@recogito/text-annotator-tei": "3.0.0-rc.29",
"CETEIcean": "^1.9.2"
}
}
4 changes: 4 additions & 0 deletions packages/text-annotator-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ export type {
TextAnnotator as RecogitoTextAnnotator,
TextAnnotationStore
} from '@soomo/text-annotator';

export {
W3CTextFormat
} from '@recogito/text-annotator';
8 changes: 4 additions & 4 deletions packages/text-annotator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
"./dist/text-annotator.css": "./dist/text-annotator.css"
},
"devDependencies": {
"@types/jsdom": "^21.1.6",
"@types/jsdom": "^21.1.7",
"@types/rbush": "^3.0.3",
"@types/uuid": "^9.0.8",
"jsdom": "^24.0.0",
"jsdom": "^24.1.0",
"svelte": "^4.2.17",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.6.0"
},
"dependencies": {
"@annotorious/core": "^3.0.0-rc.25",
"@annotorious/core": "^3.0.0-rc.27",
"colord": "^2.9.3",
"dequal": "^2.0.3",
"rbush": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/text-annotator/src/highlight/baseRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const createBaseRenderer = (
const hovered = annotation.id === hover.current;

return { annotation, rects, state: { selected, hover: hovered }};
})
});

renderer.redraw(highlights, bounds, currentStyle, currentPainter, lazy);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const createRenderer = (container: HTMLElement): RendererImplementation => {
// Don't redraw the SPANs - but redraw the painter, if any!
const shouldRedraw = !(noChanges && lazy);

if (!painter) return;
if (!painter && !shouldRedraw) return;

if (shouldRedraw)
highlightLayer.innerHTML = '';
Expand Down

0 comments on commit 137357c

Please sign in to comment.