@aloudata/ink-flow 1.0.26 → 1.0.27
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/container/Viewport/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useNodeInView.d.ts +10 -0
- package/dist/hooks/useNodeInView.d.ts.map +1 -0
- package/dist/hooks/useNodesInView.d.ts +12 -0
- package/dist/hooks/useNodesInView.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/general.d.ts +7 -0
- package/dist/utils/general.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/container/Viewport/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/container/Viewport/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAWnD"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for checking if a specific node is visible in the viewport.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
* @param nodeId - The id of the node to check visibility for
|
|
6
|
+
* @returns boolean indicating if the node is visible in the viewport
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare function useNodeInView(nodeId: string): boolean;
|
|
10
|
+
//# sourceMappingURL=useNodeInView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNodeInView.d.ts","sourceRoot":"","sources":["../../src/hooks/useNodeInView.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAsCrD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Node } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for getting nodes that are currently visible in the viewport.
|
|
4
|
+
* Unlike getNodesInside, this hook does NOT force initial render visibility,
|
|
5
|
+
* making it suitable for lazy loading scenarios.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @returns array of visible nodes
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare function useNodesInView<NodeType extends Node = Node>(): NodeType[];
|
|
12
|
+
//# sourceMappingURL=useNodesInView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNodesInView.d.ts","sourceRoot":"","sources":["../../src/hooks/useNodesInView.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,UAAU,CAAC;AAGnD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,EAAE,CAsCzE"}
|