@faasjs/ant-design 0.0.3-beta.77 → 0.0.3-beta.79
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.d.ts +4 -3
- package/dist/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
|
+
export { faas, useFaas } from '@faasjs/react';
|
|
1
3
|
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-provider';
|
|
2
4
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
3
5
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
@@ -10,7 +12,6 @@ import { CSSProperties, ReactNode, ReactElement, Component, LazyExoticComponent,
|
|
|
10
12
|
export { lazy } from 'react';
|
|
11
13
|
import { Dayjs } from 'dayjs';
|
|
12
14
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
13
|
-
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
14
15
|
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
15
16
|
import * as antd_es_form_context from 'antd/es/form/context';
|
|
16
17
|
import * as antd_es_form_ErrorList from 'antd/es/form/ErrorList';
|
|
@@ -204,7 +205,7 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
|
|
|
204
205
|
declare function FormItem<T = any>(props: FormItemProps<T>): JSX.Element;
|
|
205
206
|
declare namespace FormItem {
|
|
206
207
|
var useStatus: () => {
|
|
207
|
-
status?: "" | "
|
|
208
|
+
status?: "" | "error" | "success" | "warning" | "validating";
|
|
208
209
|
};
|
|
209
210
|
}
|
|
210
211
|
|
|
@@ -383,7 +384,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
|
|
|
383
384
|
}> {
|
|
384
385
|
constructor(props: ErrorBoundaryProps);
|
|
385
386
|
componentDidCatch(error: Error | null, info: any): void;
|
|
386
|
-
render(): string | number | boolean |
|
|
387
|
+
render(): string | number | boolean | JSX.Element | react.ReactFragment;
|
|
387
388
|
}
|
|
388
389
|
|
|
389
390
|
type FormSubmitProps = {
|
package/dist/index.js
CHANGED
|
@@ -44,15 +44,18 @@ __export(src_exports, {
|
|
|
44
44
|
Table: () => Table,
|
|
45
45
|
Tabs: () => Tabs,
|
|
46
46
|
Title: () => Title,
|
|
47
|
+
faas: () => import_react15.faas,
|
|
47
48
|
lazy: () => import_react12.lazy,
|
|
48
49
|
transferOptions: () => transferOptions,
|
|
49
50
|
transferValue: () => transferValue,
|
|
50
51
|
useApp: () => useApp,
|
|
51
52
|
useConfigContext: () => useConfigContext,
|
|
52
53
|
useDrawer: () => useDrawer,
|
|
54
|
+
useFaas: () => import_react15.useFaas,
|
|
53
55
|
useModal: () => useModal
|
|
54
56
|
});
|
|
55
57
|
module.exports = __toCommonJS(src_exports);
|
|
58
|
+
var import_react15 = require("@faasjs/react");
|
|
56
59
|
|
|
57
60
|
// src/App.tsx
|
|
58
61
|
var import_antd3 = require("antd");
|
|
@@ -1781,11 +1784,13 @@ function Title(props) {
|
|
|
1781
1784
|
Table,
|
|
1782
1785
|
Tabs,
|
|
1783
1786
|
Title,
|
|
1787
|
+
faas,
|
|
1784
1788
|
lazy,
|
|
1785
1789
|
transferOptions,
|
|
1786
1790
|
transferValue,
|
|
1787
1791
|
useApp,
|
|
1788
1792
|
useConfigContext,
|
|
1789
1793
|
useDrawer,
|
|
1794
|
+
useFaas,
|
|
1790
1795
|
useModal
|
|
1791
1796
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { faas as faas2, useFaas } from "@faasjs/react";
|
|
3
|
+
|
|
1
4
|
// src/App.tsx
|
|
2
5
|
import {
|
|
3
6
|
ConfigProvider,
|
|
@@ -1787,11 +1790,13 @@ export {
|
|
|
1787
1790
|
Table,
|
|
1788
1791
|
Tabs,
|
|
1789
1792
|
Title,
|
|
1793
|
+
faas2 as faas,
|
|
1790
1794
|
lazy,
|
|
1791
1795
|
transferOptions,
|
|
1792
1796
|
transferValue,
|
|
1793
1797
|
useApp,
|
|
1794
1798
|
useConfigContext,
|
|
1795
1799
|
useDrawer,
|
|
1800
|
+
useFaas,
|
|
1796
1801
|
useModal
|
|
1797
1802
|
};
|