@linkurious/ogma-annotations-react 1.1.24 → 1.1.25

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.
@@ -2,9 +2,8 @@ import { Annotation } from '@linkurious/ogma-annotations';
2
2
  import { AnnotationCollection } from '@linkurious/ogma-annotations';
3
3
  import { AnnotationFeature } from '@linkurious/ogma-annotations';
4
4
  import { ArrowStyles } from '@linkurious/ogma-annotations';
5
- import { Context } from 'react';
6
5
  import { Control } from '@linkurious/ogma-annotations';
7
- import { JSX as JSX_2 } from 'react/jsx-runtime';
6
+ import { default as default_2 } from 'react';
8
7
  import { ReactElement } from 'react';
9
8
  import { TextStyle } from '@linkurious/ogma-annotations';
10
9
 
@@ -21,7 +20,7 @@ declare type AnnotationActionType = "add" | "remove" | "update";
21
20
  * @type {Context<IAnnotationsContext>} A typed context for annotation-related
22
21
  * state and operations
23
22
  */
24
- export declare const AnnotationsContext: Context<IAnnotationsContext>;
23
+ export declare const AnnotationsContext: default_2.Context<IAnnotationsContext>;
25
24
 
26
25
  /**
27
26
  * Provides a context provider for managing annotations in a graph visualization.
@@ -32,7 +31,7 @@ export declare const AnnotationsContext: Context<IAnnotationsContext>;
32
31
  * @param {Props} props - The component props containing child elements
33
32
  * @returns {ReactElement} A context provider with annotation management capabilities
34
33
  */
35
- export declare const AnnotationsContextProvider: ({ children }: Props) => JSX_2.Element;
34
+ export declare const AnnotationsContextProvider: ({ children }: Props) => default_2.JSX.Element;
36
35
 
37
36
  export declare const BLACK = "#333333";
38
37
 
@@ -41,7 +40,7 @@ export declare const BLACK = "#333333";
41
40
  *
42
41
  * @returns {Context<IAnnotationsContext | null>} A context for annotation-related state and operations that can be null
43
42
  */
44
- export declare function createAnnotationsContext(): Context<IAnnotationsContext | null>;
43
+ export declare function createAnnotationsContext(): default_2.Context<IAnnotationsContext | null>;
45
44
 
46
45
  /**
47
46
  * Default arrow style for annotations.
@@ -79,7 +78,7 @@ export declare interface IAnnotationsContext {
79
78
  /** Current annotations in the application. */
80
79
  annotations: AnnotationCollection;
81
80
  /** Updates the annotations in the application. */
82
- updateAnnotations: React.Dispatch<AnnotationAction>;
81
+ updateAnnotations: default_2.Dispatch<AnnotationAction>;
83
82
  /** The currently selected annotation in the application. */
84
83
  currentAnnotation: AnnotationFeature | null;
85
84
  /** Sets the currently selected annotation in the application. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkurious/ogma-annotations-react",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "description": "A react component to add ogma annotations with react",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "scripts": {
27
27
  "dev": "vite -c web/vite.config.mts",
28
- "build": "tsc --p ./tsconfig-build.json && vite build",
28
+ "build": "tsc --p ./tsconfig-build.json && vite build --mode production",
29
29
  "postversion": "npm i --save-peer @linkurious/ogma-annotations@${npm_new_version}",
30
30
  "bump:patch": "bump2version patch && npm version --no-git-tag-version patch",
31
31
  "bump:minor": "bump2version minor && npm version --no-git-tag-version minor",
@@ -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.24",
55
+ "@linkurious/ogma-annotations": "^1.1.25",
56
56
  "@linkurious/ogma-react": ">=5",
57
57
  "react": ">=17"
58
58
  },
@@ -61,7 +61,7 @@
61
61
  "@testing-library/react": "16.2.0",
62
62
  "@types/react": "18.3.1",
63
63
  "@types/react-dom": "18.3.1",
64
- "@vitejs/plugin-react": "4.3.4",
64
+ "@vitejs/plugin-react": "4.5.1",
65
65
  "eslint": "8.56.0",
66
66
  "eslint-plugin-react-hooks": "4.6.0",
67
67
  "eslint-plugin-react-refresh": "0.4.5",
@@ -69,7 +69,7 @@
69
69
  "react": "18.3.1",
70
70
  "react-dom": "18.3.1",
71
71
  "typescript": "5.3.3",
72
- "vite": "6.2.2",
72
+ "vite": "6.3.5",
73
73
  "vite-plugin-dts": "4.5.1",
74
74
  "vite-plugin-lib-inject-css": "1.3.0",
75
75
  "vitest": "3.0.7"