@faasjs/ant-design 0.0.3-beta.99 → 0.0.4-beta.1

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/README.md CHANGED
@@ -45,10 +45,6 @@ Form are based on [Ant Design's Form.Item component](https://ant.design/componen
45
45
  - [Form](modules/Form.md)
46
46
  - [FormItem](modules/FormItem.md)
47
47
 
48
- ### Classes
49
-
50
- - [ErrorBoundary](classes/ErrorBoundary.md)
51
-
52
48
  ### Interfaces
53
49
 
54
50
  - [AppProps](interfaces/AppProps.md)
@@ -107,6 +103,7 @@ Form are based on [Ant Design's Form.Item component](https://ant.design/componen
107
103
  - [Blank](#blank)
108
104
  - [ConfigProvider](#configprovider)
109
105
  - [Description](#description)
106
+ - [ErrorBoundary](#errorboundary)
110
107
  - [FaasDataWrapper](#faasdatawrapper)
111
108
  - [Form](#form)
112
109
  - [FormItem](#formitem)
@@ -502,6 +499,22 @@ Description component.
502
499
 
503
500
  ___
504
501
 
502
+ ### ErrorBoundary
503
+
504
+ ▸ **ErrorBoundary**(`props`): `Element`
505
+
506
+ #### Parameters
507
+
508
+ | Name | Type |
509
+ | :------ | :------ |
510
+ | `props` | [`ErrorBoundaryProps`](interfaces/ErrorBoundaryProps.md) |
511
+
512
+ #### Returns
513
+
514
+ `Element`
515
+
516
+ ___
517
+
505
518
  ### FaasDataWrapper
506
519
 
507
520
  ▸ **FaasDataWrapper**<`T`\>(`props`): `JSX.Element`
@@ -544,10 +557,6 @@ ___
544
557
 
545
558
  Form component with Ant Design & FaasJS
546
559
 
547
- **`Ref`**
548
-
549
- https://ant.design/components/form/
550
-
551
560
  #### Type parameters
552
561
 
553
562
  | Name | Type |
@@ -564,6 +573,10 @@ https://ant.design/components/form/
564
573
 
565
574
  `Element`
566
575
 
576
+ **`Ref`**
577
+
578
+ https://ant.design/components/form/
579
+
567
580
  ___
568
581
 
569
582
  ### FormItem
@@ -702,10 +715,6 @@ ___
702
715
 
703
716
  Table component with Ant Design & FaasJS
704
717
 
705
- **`Ref`**
706
-
707
- https://ant.design/components/table/
708
-
709
718
  #### Type parameters
710
719
 
711
720
  | Name | Type |
@@ -723,6 +732,10 @@ https://ant.design/components/table/
723
732
 
724
733
  `Element`
725
734
 
735
+ **`Ref`**
736
+
737
+ https://ant.design/components/table/
738
+
726
739
  ___
727
740
 
728
741
  ### Tabs
@@ -731,10 +744,6 @@ ___
731
744
 
732
745
  Tabs component with Ant Design & FaasJS
733
746
 
734
- **`Ref`**
735
-
736
- https://ant.design/components/tabs/
737
-
738
747
  #### Parameters
739
748
 
740
749
  | Name | Type |
@@ -745,6 +754,10 @@ https://ant.design/components/tabs/
745
754
 
746
755
  `Element`
747
756
 
757
+ **`Ref`**
758
+
759
+ https://ant.design/components/tabs/
760
+
748
761
  ___
749
762
 
750
763
  ### Title
@@ -907,10 +920,7 @@ Request faas server with React hook
907
920
  | :------ | :------ | :------ |
908
921
  | `action` | `string` \| `PathOrData` | {string} action name |
909
922
  | `defaultParams` | `FaasParams`<`PathOrData`\> | {object} initial action params |
910
- | `options?` | `Object` | - |
911
- | `options.data?` | `FaasData`<`PathOrData`\> | - |
912
- | `options.setData?` | `Dispatch`<`SetStateAction`<`FaasData`<`PathOrData`\>\>\> | - |
913
- | `options.skip?` | `boolean` | - |
923
+ | `options?` | `useFaasOptions`<`PathOrData`\> | - |
914
924
 
915
925
  #### Returns
916
926
 
package/dist/index.d.mts CHANGED
@@ -157,7 +157,7 @@ declare const ConfigContext: react.Context<ConfigProviderProps>;
157
157
  * </ConfigProvider>
158
158
  * ```
159
159
  */
160
- declare function ConfigProvider({ config, children }: {
160
+ declare function ConfigProvider({ config, children, }: {
161
161
  config: ConfigProviderProps;
162
162
  children: React.ReactNode;
163
163
  }): react_jsx_runtime.JSX.Element;
@@ -267,7 +267,7 @@ interface DescriptionItemProps<T = any> extends FaasItemProps {
267
267
  }
268
268
  interface DescriptionProps<T = any, ExtendItemProps = any> extends Omit<DescriptionsProps, 'items'> {
269
269
  renderTitle?(values: T): ReactNode;
270
- items: ((DescriptionItemProps | ExtendItemProps))[];
270
+ items: (DescriptionItemProps | ExtendItemProps)[];
271
271
  extendTypes?: {
272
272
  [key: string]: ExtendDescriptionTypeProps;
273
273
  };
@@ -448,6 +448,7 @@ interface LinkProps {
448
448
  block?: boolean;
449
449
  /** only use for text without button */
450
450
  copyable?: boolean;
451
+ onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
451
452
  }
452
453
  /**
453
454
  * Link component with button.
package/dist/index.d.ts CHANGED
@@ -157,7 +157,7 @@ declare const ConfigContext: react.Context<ConfigProviderProps>;
157
157
  * </ConfigProvider>
158
158
  * ```
159
159
  */
160
- declare function ConfigProvider({ config, children }: {
160
+ declare function ConfigProvider({ config, children, }: {
161
161
  config: ConfigProviderProps;
162
162
  children: React.ReactNode;
163
163
  }): react_jsx_runtime.JSX.Element;
@@ -267,7 +267,7 @@ interface DescriptionItemProps<T = any> extends FaasItemProps {
267
267
  }
268
268
  interface DescriptionProps<T = any, ExtendItemProps = any> extends Omit<DescriptionsProps, 'items'> {
269
269
  renderTitle?(values: T): ReactNode;
270
- items: ((DescriptionItemProps | ExtendItemProps))[];
270
+ items: (DescriptionItemProps | ExtendItemProps)[];
271
271
  extendTypes?: {
272
272
  [key: string]: ExtendDescriptionTypeProps;
273
273
  };
@@ -448,6 +448,7 @@ interface LinkProps {
448
448
  block?: boolean;
449
449
  /** only use for text without button */
450
450
  copyable?: boolean;
451
+ onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
451
452
  }
452
453
  /**
453
454
  * Link component with button.