@harbor-design/proform 1.1.18 → 1.1.20

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/index.js CHANGED
@@ -346,12 +346,12 @@ class ce {
346
346
  fieldParser(e, t, s = !0) {
347
347
  if (l.isFunction(e))
348
348
  if (e.name.startsWith("__proform_raw_"))
349
- t((...i) => {
350
- e({
349
+ t(
350
+ (...i) => e({
351
351
  rawArgs: i,
352
352
  ...this.getRuntimeMeta()
353
- });
354
- });
353
+ })
354
+ );
355
355
  else {
356
356
  const i = e(this.getRuntimeMeta());
357
357
  this.promiseFieldParser(i, t, s);
@@ -1,4 +1,8 @@
1
- import { AnyFunction } from "../types";
1
+ import { runtimeMeta } from "../types";
2
2
  type Modifier = "raw";
3
- export declare function useModifiers(functionRaw: AnyFunction, modifier: Modifier): AnyFunction;
3
+ export declare function useModifiers(functionRaw: (args: {
4
+ rawArgs: any[];
5
+ } & runtimeMeta) => any, modifier: Modifier): (args: {
6
+ rawArgs: any[];
7
+ } & runtimeMeta) => any;
4
8
  export {};
@@ -83,6 +83,7 @@ export interface ListSchema {
83
83
  export type Schema = ItemSchema | GroupSchema | ListSchema;
84
84
  export interface runtimeMeta {
85
85
  model: AnyObject;
86
+ reactiveModel: AnyObject;
86
87
  }
87
88
  export type ProFormProxyRule<T> = T | ((runtimeMeta: runtimeMeta) => T) | ((runtimeMeta: runtimeMeta) => Promise<T>);
88
89
  export type ProFormProxy<T> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",