@rkmodules/rules 0.0.29 → 0.0.31

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.
@@ -40,7 +40,7 @@ export declare function getBranch<T>(tree: Tree<T>, path: string): T[] | void;
40
40
  * @param fn
41
41
  * @returns
42
42
  */
43
- export declare function mapTree<T, U>(tree: Tree<T>, fn: (item: T, path: string, index: number) => U): Tree<U>;
43
+ export declare function mapTree<T, U>(tree: Tree<T>, fn: (item: T, path: string, index: number) => U | U[]): Tree<U>;
44
44
  export declare function mapTreeBranch<T, U>(tree: Tree<T>, fn: (branch: T[], path: string) => U[] | undefined): Tree<U>;
45
45
  /**
46
46
  * n-ary operation on a tree, branch by branch
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ConnectionLineComponentProps } from "@xyflow/react";
3
+ declare const _default: ({ fromX, fromY, toX, toY, fromHandle, fromNode, connectionStatus, }: ConnectionLineComponentProps) => React.JSX.Element;
4
+ export default _default;
@@ -1,2 +1,10 @@
1
1
  import { PrimitiveFunction } from "../Engine/types";
2
+ export declare const Lib: {
3
+ Util: Record<string, PrimitiveFunction>;
4
+ Math: Record<string, PrimitiveFunction>;
5
+ List: Record<string, PrimitiveFunction>;
6
+ Sequence: Record<string, PrimitiveFunction>;
7
+ Tree: Record<string, PrimitiveFunction>;
8
+ Logic: Record<string, PrimitiveFunction>;
9
+ };
2
10
  export declare const primitives: Record<string, PrimitiveFunction>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkmodules/rules",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "main": "dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [