@acvl/frontend-components 0.0.63 → 0.0.64

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.
@@ -32,7 +32,7 @@ export interface DetailFormConfig {
32
32
  [k: string]: any;
33
33
  };
34
34
  };
35
- sections: (form: any) => SectionProps[];
35
+ sections: (form: any, pageType: PageType) => SectionProps[];
36
36
  pageType: PageType;
37
37
  /** dot-path prefix where `obj_permissions` live inside the fetched record. */
38
38
  permissionsPath?: string;
@@ -68,7 +68,7 @@ export interface DetailFormController {
68
68
  /** Node emitted by a successful mutation's `post_action`, or `null`. */
69
69
  postActionNode: ReactNode;
70
70
  /** Passthroughs consumed by `<DetailForm/>`. */
71
- sections: (form: any) => SectionProps[];
71
+ sections: (form: any, pageType: PageType) => SectionProps[];
72
72
  pageType: PageType;
73
73
  }
74
74
  /**
package/dist/index.d.ts CHANGED
@@ -1258,7 +1258,7 @@ interface DetailFormConfig {
1258
1258
  [k: string]: any;
1259
1259
  };
1260
1260
  };
1261
- sections: (form: any) => SectionProps[];
1261
+ sections: (form: any, pageType: PageType) => SectionProps[];
1262
1262
  pageType: PageType;
1263
1263
  /** dot-path prefix where `obj_permissions` live inside the fetched record. */
1264
1264
  permissionsPath?: string;
@@ -1294,7 +1294,7 @@ interface DetailFormController {
1294
1294
  /** Node emitted by a successful mutation's `post_action`, or `null`. */
1295
1295
  postActionNode: ReactNode;
1296
1296
  /** Passthroughs consumed by `<DetailForm/>`. */
1297
- sections: (form: any) => SectionProps[];
1297
+ sections: (form: any, pageType: PageType) => SectionProps[];
1298
1298
  pageType: PageType;
1299
1299
  }
1300
1300
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",