@abdellatifui/react 3.1.27 → 3.1.28

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.
@@ -1,3 +1,4 @@
1
- declare const CustomMarker: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default CustomMarker;
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>;
3
+ export default _default;
3
4
  //# sourceMappingURL=CustomMarker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/CustomMarker.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,GAAI,UAAK,4CAmB1B,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"CustomMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/CustomMarker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAA;;AA0BnC,wBAAiC"}
@@ -1,11 +1,23 @@
1
1
  import React from 'react';
2
2
  import 'maplibre-gl/dist/maplibre-gl.css';
3
3
  import { NetworkMapProps } from './types';
4
- export declare const mapStyles: {
4
+ export declare const mapStyles: ({
5
5
  name: string;
6
6
  url: string;
7
- index: number;
8
- }[];
7
+ } | {
8
+ name: string;
9
+ url: {
10
+ version: number;
11
+ sources: {};
12
+ layers: {
13
+ id: string;
14
+ type: string;
15
+ paint: {
16
+ "background-color": string;
17
+ };
18
+ }[];
19
+ };
20
+ })[];
9
21
  declare const NetworkMap: React.MemoExoticComponent<React.ForwardRefExoticComponent<NetworkMapProps & React.RefAttributes<unknown>>>;
10
22
  export default NetworkMap;
11
23
  //# sourceMappingURL=Map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Map.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2F,MAAM,OAAO,CAAC;AAIhH,OAAO,kCAAkC,CAAC;AAS1C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAW1C,eAAO,MAAM,SAAS;;;;GAUrB,CAAA;AAiTD,QAAA,MAAM,UAAU,4GAA4B,CAAC;AAC7C,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Map.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwG,MAAM,OAAO,CAAC;AAG7H,OAAO,kCAAkC,CAAC;AAW1C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAU1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;IAWrB,CAAA;AA+eD,QAAA,MAAM,UAAU,4GAA4B,CAAC;AAC7C,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PinItem.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/PinItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAA;;AAyDpD,wBAA4B"}
1
+ {"version":3,"file":"PinItem.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/PinItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4F,MAAM,OAAO,CAAA;;AA6HhH,wBAA4B"}
@@ -6,11 +6,20 @@ export type NetworkMapProps = {
6
6
  linkHighlightedColorHex: string;
7
7
  defaultLinkColorHex: string;
8
8
  hideLinksOnDrag: boolean;
9
+ showHoveredLinksOnly: boolean;
10
+ draggingMode: boolean;
11
+ maxZoomOutForLinkCount: number;
12
+ nodeSizeScaler: number;
9
13
  defaultAnimationLinkColor: string;
10
14
  linkAnimation: boolean;
15
+ staticMapColor: string;
16
+ isolateNonSelectedLinksOnNodeClick: boolean;
17
+ showLinkCount: boolean;
18
+ tid: string | number;
11
19
  onConnClick: (conn: object) => void;
12
20
  onNodeClick: (node: object) => void;
13
21
  onNodeMouseOver: (node: object) => void;
22
+ getMenuTitle: (connection: object) => void;
14
23
  onLinkContextMenu: (info: {
15
24
  data: object;
16
25
  event: React.MouseEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/types.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,EAAE,CAAC,IAAI,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;QACxB,MAAM,EAAE,QAAQ,CAAE;QAClB,IAAI,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;IACX,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAG;QACP,GAAG,EAAG,MAAM,CAAC;QACb,KAAK,EAAG,MAAM,CAAC;QACf,IAAI,EAAG,MAAM,CAAA;KAChB,CAAC;IACF,SAAS,EAAG,OAAO,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE;YACZ,IAAI,EAA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QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;QACxB,MAAM,EAAE,QAAQ,CAAE;QAClB,IAAI,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;IACX,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAG;QACP,GAAG,EAAG,MAAM,CAAC;QACb,KAAK,EAAG,MAAM,CAAC;QACf,IAAI,EAAG,MAAM,CAAA;KAChB,CAAC;IACF,SAAS,EAAG,OAAO,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;YACxB,MAAM,EAAE,QAAQ,CAAE;YAClB,IAAI,EAAE,MAAM,CAAC;SAChB,KAAK,IAAI,CAAC;KACd,EAAE,CAAC;IACJ,cAAc,CAAC,EAAG,CAAC,MAAM,KAAA,KAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAAE;CAC1D,CAAC"}
@@ -1,6 +1,7 @@
1
- import { LineLayer } from '@deck.gl/layers';
1
+ import { PathLayer } from '@deck.gl/layers';
2
2
  import { TripsLayer } from '@deck.gl/geo-layers';
3
- declare const useCreatePath: ({ connections, mapApi, options, selectedConn, _onLinkSelected, mapDragging, hideLinksOnDrag }: {
3
+ import { PathStyleExtension } from '@deck.gl/extensions';
4
+ declare const useCreatePath: ({ connections, mapApi, options, selectedConn, _onLinkSelected, mapDragging, hideLinksOnDrag, hoveredConnection, onScreenLinksGroup }: {
4
5
  connections?: any[];
5
6
  mapApi: any;
6
7
  options: any;
@@ -8,16 +9,21 @@ declare const useCreatePath: ({ connections, mapApi, options, selectedConn, _onL
8
9
  _onLinkSelected: any;
9
10
  mapDragging: any;
10
11
  hideLinksOnDrag: any;
11
- }) => (LineLayer<any, {
12
- id: "line";
12
+ hoveredConnection: any;
13
+ onScreenLinksGroup: any;
14
+ }) => (PathLayer<any, {
15
+ id: "path-1";
13
16
  data: any[];
14
- getSourcePosition: (d: any) => [any, any];
15
- getTargetPosition: (d: any) => [any, any];
16
- getWidth: 4;
17
- pickable: true;
17
+ getPath: (d: any) => [any, any][];
18
+ getWidth: (d: any) => 10 | 8 | 5;
18
19
  getColor: (d: any) => any;
19
- opacity: 1;
20
+ opacity: 0 | 1;
21
+ main: boolean;
22
+ capRounded: true;
20
23
  visible: boolean;
24
+ getOffset: (d: any) => number;
25
+ extensions: PathStyleExtension[];
26
+ pickable: true;
21
27
  onHover: (event: {
22
28
  color: Uint8Array | null;
23
29
  layer: import("@deck.gl/core").Layer | null;
@@ -48,37 +54,27 @@ declare const useCreatePath: ({ connections, mapApi, options, selectedConn, _onL
48
54
  devicePixel?: [number, number];
49
55
  pixelRatio: number;
50
56
  }) => void;
51
- highlightColor: any;
52
- autoHighlight: true;
53
- zIndex: number;
54
57
  parameters: {
55
58
  depthTest: boolean;
56
59
  };
57
- updateTriggers: {
58
- visible: any[];
59
- };
60
- }> | LineLayer<any, {
61
- id: "line";
62
- data: any[];
63
- getSourcePosition: (d: any) => [any, any];
64
- getTargetPosition: (d: any) => [any, any];
65
- getWidth: (d: any) => number;
66
- pickable: true;
67
- getColor: any;
68
- visible: true;
60
+ widthMinPixels: 1;
61
+ widthMaxPixels: 100;
62
+ widthUnits: "pixels";
69
63
  updateTriggers: {
70
64
  getWidth: any[];
71
- };
72
- parameters: {
73
- depthTest: boolean;
65
+ getColor: any[];
66
+ getPath: any[];
67
+ data: any[];
74
68
  };
75
69
  }> | TripsLayer<any, {
76
- id: "trip";
70
+ id: "trip-1";
77
71
  data: any[];
78
72
  getPath: (d: any) => [any, any][];
79
73
  getTimestamps: (d: any) => any;
80
74
  getColor: (d: any) => any;
81
75
  widthMinPixels: 4;
76
+ opacity: 0 | 1;
77
+ visible: boolean;
82
78
  trailLength: 2;
83
79
  currentTime: number;
84
80
  parameters: {
@@ -1 +1 @@
1
- {"version":3,"file":"useCreatePath.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/useCreatePath.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQjD,QAAA,MAAM,aAAa,GAAK;;;;;;;;CAAuG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgI9H,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useCreatePath.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/useCreatePath.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAG,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAEvD,QAAA,MAAM,aAAa,GAAK;;;;;;;;;;CAAgJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmGvK,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,26 +1,20 @@
1
- export declare const hex2rgb: (hex: any) => any[];
1
+ export declare const hex2rgb: (hex: any) => number[];
2
2
  export declare const createDefaultNodeTempate: (name: any, id: any, color: any, lng: any, lat: any, details: any) => {
3
3
  name: any;
4
4
  color: any;
5
- id: any;
5
+ elementId: any;
6
6
  details: any;
7
7
  location: {
8
8
  lng: any;
9
9
  lat: any;
10
10
  };
11
11
  };
12
- export declare const createDefaultConnTemplate: (name: any, id: any, srcLng: any, srcLat: any, destLng: any, destLat: any, details?: {}, linkColor?: any, linkAnimationColor?: any) => {
12
+ export declare const createDefaultConnTemplate: (name: any, id: any, srcLng: any, sourceId: any, destinationId: any, details?: {}, linkColor?: any, linkAnimationColor?: any) => {
13
13
  name: any;
14
14
  id: any;
15
15
  details: {};
16
- source: {
17
- lng: any;
18
- lat: any;
19
- };
20
- destination: {
21
- lng: any;
22
- lat: any;
23
- };
16
+ source: any;
17
+ destination: any;
24
18
  linkColor: any;
25
19
  linkAnimationColor: any;
26
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/utils.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAI,QAAG,UAI1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,GAAK,SAAI,EAAG,OAAE,EAAG,UAAK,EAAG,QAAG,EAAG,QAAG,EAAG,YAAO;;;;;;;;;CAWhF,CAAA;AAGD,eAAO,MAAM,yBAAyB,GAAI,SAAI,EAAG,OAAE,EAAG,WAAM,EAAG,WAAM,EAAG,YAAO,EAAG,YAAO,EAAG,YAAU,EAAG,eAAc,EAAG,wBAAuB;;;;;;;;;;;;;;CAUhJ,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/utils.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAI,QAAG,aAS1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,GAAK,SAAI,EAAG,OAAE,EAAG,UAAK,EAAG,QAAG,EAAG,QAAG,EAAG,YAAO;;;;;;;;;CAWhF,CAAA;AAGD,eAAO,MAAM,yBAAyB,GAAI,SAAI,EAAG,OAAE,EAAG,WAAM,EAAG,aAAQ,EAAG,kBAAa,EAAG,YAAU,EAAG,eAAc,EAAG,wBAAuB;;;;;;;;CAU9I,CAAA"}
@@ -9,9 +9,29 @@ declare const _default: {
9
9
  linkHighlightedColorHex: {
10
10
  control: string;
11
11
  };
12
+ staticMapColor: {
13
+ control: string;
14
+ };
12
15
  defaultAnimationLinkColor: {
13
16
  control: string;
14
17
  };
18
+ FlyToNodeApi: {
19
+ control: string;
20
+ options: any;
21
+ };
22
+ ChooseMapStyle: {
23
+ control: string;
24
+ options: string[];
25
+ };
26
+ nodeSizeScaler: {
27
+ control: {
28
+ type: string;
29
+ min: number;
30
+ max: number;
31
+ step: number;
32
+ defaultValue: number;
33
+ };
34
+ };
15
35
  };
16
36
  };
17
37
  export default _default;
@@ -19,5 +39,6 @@ export declare const Primary: any;
19
39
  export declare const CustomNodeIcon: any;
20
40
  export declare const NodeCreateRemoveApi: any;
21
41
  export declare const AnotherMapStyle: any;
42
+ export declare const StaticBgMap: any;
22
43
  export declare const GetDataApi: any;
23
44
  //# sourceMappingURL=map.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;AAW/C,wBAcC;AA0ED,eAAO,MAAM,OAAO,KAAoB,CAAC;AAiCzC,eAAO,MAAM,cAAc,KAAoB,CAAC;AAYhD,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAOrD,eAAO,MAAM,eAAe,KAAoB,CAAC;AAKjD,eAAO,MAAM,UAAU,KAAoB,CAAC"}
1
+ {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAW1D,wBAkCC;AAmFD,eAAO,MAAM,OAAO,KAAoB,CAAC;AA4CzC,eAAO,MAAM,cAAc,KAAoB,CAAC;AAYhD,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAOrD,eAAO,MAAM,eAAe,KAAoB,CAAC;AAIjD,eAAO,MAAM,WAAW,KAAoB,CAAC;AAK7C,eAAO,MAAM,UAAU,KAAoB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.1.27",
4
+ "version": "3.1.28",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [
@@ -1,3 +0,0 @@
1
- declare const Connection: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default Connection;
3
- //# sourceMappingURL=Connection.backup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Connection.backup.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Connection.backup.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,UAAU,GAAI,UAAK,4CAoCxB,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const Connection: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default Connection;
3
- //# sourceMappingURL=Connection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Connection.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,UAAU,GAAI,UAAK,4CAoCxB,CAAA;AAED,eAAe,UAAU,CAAA"}