@linkurious/ogma-annotations-react 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/dist/index.mjs +561 -555
- package/dist/types/index.d.ts +2 -1
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const AnnotationsContext: default_2.Context<IAnnotationsContext>;
|
|
|
31
31
|
* @param {Props} props - The component props containing child elements
|
|
32
32
|
* @returns {ReactElement} A context provider with annotation management capabilities
|
|
33
33
|
*/
|
|
34
|
-
export declare const AnnotationsContextProvider: ({ children }: Props) => default_2.JSX.Element;
|
|
34
|
+
export declare const AnnotationsContextProvider: ({ children, annotations: initialAnnotations }: Props) => default_2.JSX.Element;
|
|
35
35
|
|
|
36
36
|
export declare const BLACK = "#333333";
|
|
37
37
|
|
|
@@ -113,6 +113,7 @@ export declare function normalize(t: number, min?: number, max?: number): number
|
|
|
113
113
|
|
|
114
114
|
declare interface Props {
|
|
115
115
|
children: ReactElement;
|
|
116
|
+
annotations?: AnnotationCollection;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkurious/ogma-annotations-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"description": "A react component to add ogma annotations with react",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@linkurious/ogma": ">=4.5.6 || ^5.0.0",
|
|
55
|
-
"@linkurious/ogma-annotations": "^1.1.
|
|
55
|
+
"@linkurious/ogma-annotations": "^1.1.26",
|
|
56
56
|
"@linkurious/ogma-react": ">=5",
|
|
57
57
|
"react": ">=17"
|
|
58
58
|
},
|