@evlop/commons 1.0.129 → 1.0.130
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
2
|
import { Action } from '../../hooks';
|
3
3
|
declare type SettingProp = {
|
4
4
|
model?: string;
|
@@ -6,16 +6,16 @@ declare type SettingProp = {
|
|
6
6
|
configModel?: string;
|
7
7
|
action?: Action;
|
8
8
|
};
|
9
|
-
export declare type ComponentWithSettings<P extends Object> = React.ForwardRefExoticComponent<P & SettingProp
|
9
|
+
export declare type ComponentWithSettings<P extends Object> = React.ForwardRefExoticComponent<PropsWithChildren<P & SettingProp>>;
|
10
10
|
export declare const withSettings: ({ name: elementName, valueOptions, configurationOptions }: {
|
11
11
|
name: any;
|
12
12
|
valueOptions?: any[];
|
13
13
|
configurationOptions?: any[];
|
14
|
-
}) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & SettingProp
|
14
|
+
}) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & SettingProp>> & React.RefAttributes<any>>;
|
15
15
|
export declare const withToolbar: ({ name: elementName, valueOptions, configurationOptions }: {
|
16
16
|
name: any;
|
17
17
|
valueOptions?: any[];
|
18
18
|
configurationOptions?: any[];
|
19
|
-
}) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & SettingProp
|
19
|
+
}) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & SettingProp>> & React.RefAttributes<any>>;
|
20
20
|
export default withSettings;
|
21
21
|
//# sourceMappingURL=withSettings.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAiE,MAAM,OAAO,CAAC;AAE5H,OAAO,EAAE,MAAM,EAAgE,MAAM,aAAa,CAAC;AAEnG,aAAK,WAAW,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/F,oBAAY,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAA;AAEzH,eAAO,MAAM,YAAY;;;;gMAsLvB,CAAC;AAGH,eAAO,MAAM,WAAW;;;;gMAAe,CAAC;AACxC,eAAe,YAAY,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmD;AACnD,+
|
1
|
+
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmD;AACnD,+CAA4H;AAC5H,6CAAiE;AACjE,uCAAmG;AAM5F,MAAM,YAAY,GAAC,CAAC,EAAC,IAAI,EAAE,WAAW,EAAE,YAAY,GAAG,EAAE,EAAE,oBAAoB,GAAG,EAAE,EAAC,EAAE,EAAE,CAAC,CAAmB,eAAuC,EAAE,EAAE,CAAC,kBAAU,CAA0C,CAAC,KAAU,EAAE,YAAY,EAAE,EAAE;IAE7O,MAAM,MAAM,GAAG,cAAM,EAAE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