next-flow-interface 0.24.23 → 0.24.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.
Files changed (2) hide show
  1. package/index.d.ts +52 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -55,6 +55,7 @@ import {
55
55
  RecursiveObject,
56
56
  RhineVarArray,
57
57
  RhineVarMap,
58
+ RvKey,
58
59
  RvPath,
59
60
  StoredRhineVar,
60
61
  } from 'rhine-var'
@@ -1049,6 +1050,25 @@ declare function copyCurrentUrlToClipboard(): Promise<boolean>
1049
1050
 
1050
1051
  declare function copyText(text: string): Promise<boolean>
1051
1052
 
1053
+ /**
1054
+ * 创建属性右键菜单
1055
+ *
1056
+ * @param multiMark
1057
+ * @param multiInitialize
1058
+ * @param intl
1059
+ * @param defaultAttribute
1060
+ *
1061
+ * @public
1062
+ */
1063
+ export declare function createAttributeContextMenu(
1064
+ multiMark: () => void,
1065
+ multiInitialize: () => void,
1066
+ intl: Intl_2,
1067
+ defaultAttribute?: BaseAttribute<any>,
1068
+ ): {
1069
+ onContextMenu: (event: MouseEvent_2, label: string, paths: PathListWithOptionableAttribute | string) => void
1070
+ }
1071
+
1052
1072
  /**
1053
1073
  * @public
1054
1074
  */
@@ -2305,6 +2325,22 @@ declare interface JoinPathOptions {
2305
2325
  treatAsUrl?: boolean
2306
2326
  }
2307
2327
 
2328
+ /**
2329
+ * 合并两个RvPath
2330
+ *
2331
+ * @param pathA
2332
+ * @param pathB
2333
+ */
2334
+ declare function joinRvPath(pathA: string | RvPath, pathB: string | RvPath): RvKey[]
2335
+
2336
+ /**
2337
+ * 合并两个RvPath 返回字符串
2338
+ *
2339
+ * @param pathA
2340
+ * @param pathB
2341
+ */
2342
+ declare function joinRvPathString(pathA: string | RvPath, pathB: string | RvPath): string
2343
+
2308
2344
  /**
2309
2345
  * @public
2310
2346
  */
@@ -2948,12 +2984,10 @@ export declare type MessageType = 'info' | 'warning' | 'error' | 'success'
2948
2984
  */
2949
2985
  export declare class MixPartialData {
2950
2986
  data: Set<MixPartialDataItem>
2951
- constructor(data?: [BaseAttribute, string | RvPath, unknown][])
2952
- toMap(): Map<string, MixPartialDataItem>
2953
- toRecord(): Record<string, MixPartialDataItem>
2954
- push(attribute: BaseAttribute, path: string | RvPath, value: unknown): void
2955
- forEach(callback: (attribute: BaseAttribute, path: RvPath, value: unknown) => void): void
2956
- forEachWithStringPath(callback: (attribute: BaseAttribute, path: string, value: unknown) => void): void
2987
+ constructor(data?: [BaseAttribute<any>, string | RvPath, unknown][])
2988
+ push(attribute: BaseAttribute<any>, path: string | RvPath, value: unknown): void
2989
+ forEach(callback: (attribute: BaseAttribute<any>, path: RvPath, value: unknown) => void): void
2990
+ forEachWithStringPath(callback: (attribute: BaseAttribute<any>, path: string, value: unknown) => void): void
2957
2991
  toPartialData(): PartialData
2958
2992
  get size(): number
2959
2993
  }
@@ -2962,7 +2996,7 @@ export declare class MixPartialData {
2962
2996
  * @public
2963
2997
  */
2964
2998
  export declare interface MixPartialDataItem {
2965
- attribute: BaseAttribute
2999
+ attribute: BaseAttribute<any>
2966
3000
  path: RvPath
2967
3001
  value: unknown
2968
3002
  }
@@ -3584,12 +3618,10 @@ export declare const PageUtils: {
3584
3618
  export declare class PartialData {
3585
3619
  data: Set<PartialDataItem>
3586
3620
  constructor(data?: [string | RvPath, unknown][])
3587
- toMap(): Map<string, unknown>
3588
- toRecord(): Record<string, unknown>
3589
3621
  push(path: string | RvPath, value: unknown): void
3590
3622
  forEach(callback: (path: RvPath, value: unknown) => void): void
3591
3623
  forEachWithStringPath(callback: (path: string, value: unknown) => void): void
3592
- toMixPartialData(attribute: BaseAttribute): MixPartialData
3624
+ toMixPartialData(attribute: BaseAttribute<any>): MixPartialData
3593
3625
  get size(): number
3594
3626
  }
3595
3627
 
@@ -3601,6 +3633,14 @@ export declare interface PartialDataItem {
3601
3633
  value: unknown
3602
3634
  }
3603
3635
 
3636
+ /**
3637
+ * @public
3638
+ */
3639
+ export declare type PathListWithOptionableAttribute = (
3640
+ | [path: string | RvPath]
3641
+ | [path: string | RvPath, attribute: BaseAttribute<any>]
3642
+ )[]
3643
+
3604
3644
  declare type PathValueArray<T = unknown> = {
3605
3645
  path: RvPath
3606
3646
  value: T
@@ -5852,6 +5892,8 @@ export declare const RvUtils: {
5852
5892
  getByRvPath: typeof getByRvPath
5853
5893
  setByRvPath: typeof setByRvPath
5854
5894
  deleteByRvPath: typeof deleteByRvPath
5895
+ joinRvPath: typeof joinRvPath
5896
+ joinRvPathString: typeof joinRvPathString
5855
5897
  checkRvPathOverlay: typeof checkRvPathOverlay
5856
5898
  checkRvPathStartWith: typeof checkRvPathStartWith
5857
5899
  checkAnyRvPathOverlay: typeof checkAnyRvPathOverlay
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  "valtio": "2.1.7",
38
38
  "rhine-var": "0.11.2"
39
39
  },
40
- "version": "0.24.23",
40
+ "version": "0.24.25",
41
41
  "author": "NextFlow",
42
42
  "license": "Apache-2.0",
43
43
  "keywords": [