@pisell/materials 1.0.534 → 1.0.535

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.
@@ -65,7 +65,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
65
65
  useCustomAction: boolean;
66
66
  actionType: string;
67
67
  openMode: "modal" | "drawer";
68
- openContentSize: "small" | "large" | "middle";
68
+ openContentSize: "small" | "middle" | "large";
69
69
  openTitle: string;
70
70
  key: string;
71
71
  } | undefined;
@@ -81,12 +81,5 @@ declare const useTableProps: (props: UseTablePropsProps) => {
81
81
  }[];
82
82
  } | undefined;
83
83
  onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
84
- extraParams?: {
85
- list?: Record<string, any> | undefined;
86
- get?: Record<string, any> | undefined;
87
- update?: Record<string, any> | undefined;
88
- create?: Record<string, any> | undefined;
89
- destroy?: Record<string, any> | undefined;
90
- } | undefined;
91
84
  };
92
85
  export default useTableProps;
@@ -105,7 +105,7 @@ var useActions = function useActions() {
105
105
  });
106
106
  case 2:
107
107
  result = _context.sent;
108
- if (!(dataSourceKey === 'mypisell-api')) {
108
+ if (!['pisell2-api', 'mypisell-api'].includes(dataSourceKey)) {
109
109
  _context.next = 5;
110
110
  break;
111
111
  }
@@ -65,7 +65,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
65
65
  useCustomAction: boolean;
66
66
  actionType: string;
67
67
  openMode: "modal" | "drawer";
68
- openContentSize: "small" | "large" | "middle";
68
+ openContentSize: "small" | "middle" | "large";
69
69
  openTitle: string;
70
70
  key: string;
71
71
  } | undefined;
@@ -81,12 +81,5 @@ declare const useTableProps: (props: UseTablePropsProps) => {
81
81
  }[];
82
82
  } | undefined;
83
83
  onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
84
- extraParams?: {
85
- list?: Record<string, any> | undefined;
86
- get?: Record<string, any> | undefined;
87
- update?: Record<string, any> | undefined;
88
- create?: Record<string, any> | undefined;
89
- destroy?: Record<string, any> | undefined;
90
- } | undefined;
91
84
  };
92
85
  export default useTableProps;
@@ -98,7 +98,7 @@ var useActions = ({
98
98
  headers,
99
99
  body
100
100
  });
101
- if (dataSourceKey === "mypisell-api") {
101
+ if (["pisell2-api", "mypisell-api"].includes(dataSourceKey)) {
102
102
  return result.data;
103
103
  }
104
104
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.534",
3
+ "version": "1.0.535",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -69,9 +69,9 @@
69
69
  "libphonenumber-js": "^1.11.17",
70
70
  "swiper": "^8.4.7",
71
71
  "react-barcode": "^1.5.3",
72
- "@pisell/date-picker": "1.0.115",
72
+ "@pisell/utils": "1.0.43",
73
73
  "@pisell/icon": "0.0.10",
74
- "@pisell/utils": "1.0.43"
74
+ "@pisell/date-picker": "1.0.115"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^18.0.0",