Skip to content

Commit 6094fe3

Browse files
Merge branch 'main' into sinle-middlewares-array
2 parents b4a2c2b + 2b00afd commit 6094fe3

File tree

19 files changed

+249
-224
lines changed

19 files changed

+249
-224
lines changed

package-lock.json

Lines changed: 178 additions & 187 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@recogito/text-annotator-monorepo",
3-
"version": "3.0.0-rc.51",
3+
"version": "3.0.0-rc.52",
44
"description": "Recogito Text Annotator monorepo",
55
"author": "Rainer Simon",
66
"repository": {

packages/extension-tei/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@recogito/text-annotator-tei",
3-
"version": "3.0.0-rc.51",
3+
"version": "3.0.0-rc.52",
44
"description": "Recogito Text Annotator TEI extension",
55
"author": "Rainer Simon",
66
"license": "BSD-3-Clause",
@@ -28,11 +28,11 @@
2828
"devDependencies": {
2929
"CETEIcean": "^1.9.3",
3030
"typescript": "5.6.3",
31-
"vite": "^5.4.10",
31+
"vite": "^5.4.11",
3232
"vite-plugin-dts": "^4.3.0"
3333
},
3434
"peerDependencies": {
35-
"@annotorious/core": "^3.0.11",
36-
"@recogito/text-annotator": "3.0.0-rc.51"
35+
"@annotorious/core": "^3.0.12",
36+
"@recogito/text-annotator": "3.0.0-rc.52"
3737
}
3838
}

packages/text-annotator-react/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@recogito/react-text-annotator",
3-
"version": "3.0.0-rc.51",
3+
"version": "3.0.0-rc.52",
44
"description": "Recogito Text Annotator React bindings",
55
"author": "Rainer Simon",
66
"license": "BSD-3-Clause",
@@ -29,9 +29,9 @@
2929
"react": "^18.3.1",
3030
"react-dom": "^18.3.1",
3131
"typescript": "5.6.3",
32-
"vite": "^5.4.10",
32+
"vite": "^5.4.11",
3333
"vite-plugin-dts": "^4.3.0",
34-
"vite-tsconfig-paths": "^5.1.0"
34+
"vite-tsconfig-paths": "^5.1.2"
3535
},
3636
"peerDependencies": {
3737
"openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0",
@@ -44,11 +44,11 @@
4444
}
4545
},
4646
"dependencies": {
47-
"@annotorious/core": "^3.0.11",
48-
"@annotorious/react": "^3.0.11",
47+
"@annotorious/core": "^3.0.12",
48+
"@annotorious/react": "^3.0.12",
4949
"@floating-ui/react": "^0.26.27",
50-
"@recogito/text-annotator": "3.0.0-rc.51",
51-
"@recogito/text-annotator-tei": "3.0.0-rc.51",
50+
"@recogito/text-annotator": "3.0.0-rc.52",
51+
"@recogito/text-annotator-tei": "3.0.0-rc.52",
5252
"CETEIcean": "^1.9.3"
5353
}
5454
}

packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx renamed to packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
useRole
2020
} from '@floating-ui/react';
2121

22-
import './TextAnnotatorPopup.css';
22+
import './TextAnnotationPopup.css';
2323

2424
interface TextAnnotationPopupProps {
2525

@@ -39,11 +39,11 @@ export interface TextAnnotationPopupContentProps {
3939

4040
editable?: boolean;
4141

42-
event?: PointerEvent;
42+
event?: PointerEvent | KeyboardEvent;
4343

4444
}
4545

46-
export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
46+
export const TextAnnotationPopup = (props: TextAnnotationPopupProps) => {
4747

4848
const r = useAnnotator<TextAnnotator>();
4949

@@ -169,3 +169,14 @@ const getStopEventsPropagationProps = <T extends HTMLElement = HTMLElement>() =>
169169
onMouseDown: (event: React.MouseEvent<T>) => event.stopPropagation(),
170170
onMouseUp: (event: React.MouseEvent<T>) => event.stopPropagation()
171171
});
172+
173+
/** For backwards compatibility **/
174+
/** @deprecated Use TextAnnotationPopup instead */
175+
export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
176+
177+
useEffect(() => {
178+
console.warn('TextAnnotatorPopup is deprecated and will be removed in a future version. Please use TextAnnotationPopup instead.');
179+
}, []);
180+
181+
return <TextAnnotationPopup {...props} />;
182+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './TextAnnotationPopup';

packages/text-annotator-react/src/TextAnnotatorPopup/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/text-annotator-react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export * from './tei';
22
export * from './TextAnnotator';
3-
export * from './TextAnnotatorPopup';
3+
export * from './TextAnnotationPopup';
44
export * from './TextAnnotatorPlugin';
55

66
// Essential re-exports from @annotorious/core

0 commit comments

Comments
 (0)