@rxflow/base 0.0.2-alpha.4 → 0.0.2-alpha.6

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,22 +1,13 @@
1
- /**
2
- * @author: yanxianliang
3
- * @date: 2025-10-16 17:28
4
- * @modified:2025/10/16 17:28 by yanxianliang
5
- * @desc: 全局状态管理器
6
- *
7
- * Copyright (c) 2025 by yanxianliang, All Rights Reserved.
8
- */
9
- import { BaseStateType, ExtractState } from "../types";
10
1
  import React from "react";
11
2
  import { UseBoundStore } from "zustand";
12
3
  import type { StoreApi } from "zustand/vanilla";
4
+ import { BaseStateType, ExtractState } from "../types";
13
5
  export declare const FlowContext: React.Context<{
14
6
  useStore?: UseBoundStore<StoreApi<BaseStateType>> | undefined;
15
7
  }>;
16
- export declare const FlowProvider: React.MemoExoticComponent<({ children, }: {
8
+ export declare const FlowProvider: React.ComponentType<{
17
9
  children: React.ReactNode;
18
- id?: string | undefined;
19
- }) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined>;
10
+ }>;
20
11
  /**
21
12
  * hooks 创建
22
13
  * selector 创建
@@ -1 +1 @@
1
- {"version":3,"file":"FlowProvider.d.ts","sourceRoot":"","sources":["FlowProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAErD,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAS,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAG9C,eAAO,MAAM,WAAW;;EAET,CAAC;AA+BhB,eAAO,MAAM,YAAY;cAIX,MAAM,SAAS;;4TAY3B,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAA2B,aAAa,SAAS,aAAa,CAAC,CAAC,KAAK,CAAC,MAO7F,CAAA;AAED,eAAO,MAAM,WAAW,qKAOvB,CAAA;AAED,eAAO,MAAM,WAAW,2BAOvB,CAAA"}
1
+ {"version":3,"file":"FlowProvider.d.ts","sourceRoot":"","sources":["FlowProvider.tsx"],"names":[],"mappings":"AASA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAS,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAGrD,eAAO,MAAM,WAAW;;EAET,CAAC;AA8BhB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAAC,CAe1E,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAA2B,aAAa,SAAS,aAAa,CAAC,CAAC,KAAK,CAAC,MAO7F,CAAA;AAED,eAAO,MAAM,WAAW,qKAOvB,CAAA;AAED,eAAO,MAAM,WAAW,2BAOvB,CAAA"}
@@ -1,22 +1,13 @@
1
- /**
2
- * @author: yanxianliang
3
- * @date: 2025-10-16 17:28
4
- * @modified:2025/10/16 17:28 by yanxianliang
5
- * @desc: 全局状态管理器
6
- *
7
- * Copyright (c) 2025 by yanxianliang, All Rights Reserved.
8
- */
9
- import { BaseStateType, ExtractState } from "../types";
10
1
  import React from "react";
11
2
  import { UseBoundStore } from "zustand";
12
3
  import type { StoreApi } from "zustand/vanilla";
4
+ import { BaseStateType, ExtractState } from "../types";
13
5
  export declare const FlowContext: React.Context<{
14
6
  useStore?: UseBoundStore<StoreApi<BaseStateType>> | undefined;
15
7
  }>;
16
- export declare const FlowProvider: React.MemoExoticComponent<({ children, }: {
8
+ export declare const FlowProvider: React.ComponentType<{
17
9
  children: React.ReactNode;
18
- id?: string | undefined;
19
- }) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined>;
10
+ }>;
20
11
  /**
21
12
  * hooks 创建
22
13
  * selector 创建
@@ -1 +1 @@
1
- {"version":3,"file":"FlowProvider.d.ts","sourceRoot":"","sources":["FlowProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAErD,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAS,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAG9C,eAAO,MAAM,WAAW;;EAET,CAAC;AA+BhB,eAAO,MAAM,YAAY;cAIX,MAAM,SAAS;;4TAY3B,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAA2B,aAAa,SAAS,aAAa,CAAC,CAAC,KAAK,CAAC,MAO7F,CAAA;AAED,eAAO,MAAM,WAAW,qKAOvB,CAAA;AAED,eAAO,MAAM,WAAW,2BAOvB,CAAA"}
1
+ {"version":3,"file":"FlowProvider.d.ts","sourceRoot":"","sources":["FlowProvider.tsx"],"names":[],"mappings":"AASA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAS,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAGrD,eAAO,MAAM,WAAW;;EAET,CAAC;AA8BhB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAAC,CAe1E,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAA2B,aAAa,SAAS,aAAa,CAAC,CAAC,KAAK,CAAC,MAO7F,CAAA;AAED,eAAO,MAAM,WAAW,qKAOvB,CAAA;AAED,eAAO,MAAM,WAAW,2BAOvB,CAAA"}
@@ -12,7 +12,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
  *
13
13
  * Copyright (c) 2025 by yanxianliang, All Rights Reserved.
14
14
  */
15
-
16
15
  import { ReactFlowProvider } from "@xyflow/react";
17
16
  import React, { memo, useContext, useState } from "react";
18
17
  import { create } from "zustand";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxflow/base",
3
- "version": "0.0.2-alpha.4",
3
+ "version": "0.0.2-alpha.6",
4
4
  "description": "BaseFlow - 核心 Flow 组件库",
5
5
  "keywords": [
6
6
  "reactflow",
@@ -42,12 +42,12 @@
42
42
  "dependencies": {
43
43
  "@ant-design/icons": "^6.0.0",
44
44
  "@antv/hierarchy": "0.6.14",
45
- "@rxflow/manhattan": "^0.0.2-alpha.4",
45
+ "@rxflow/manhattan": "^0.0.2-alpha.6",
46
46
  "@xyflow/react": "^12.8.6",
47
47
  "@xyflow/system": "^0.0.70",
48
48
  "@zumer/snapdom": "^1.9.9",
49
49
  "ahooks": "3.8.4",
50
- "antd": ">=5.0.0",
50
+ "antd": "^5.0.0",
51
51
  "classcat": "^5.0.5",
52
52
  "color-hash": "^2.0.2",
53
53
  "comlink": "^4.4.2",