@gisce/react-ooui 2.0.0-alpha.37 → 2.0.0-alpha.38
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/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/context/ConfigContext.d.ts +9 -1
- package/dist/context/ConfigContext.d.ts.map +1 -1
- package/dist/react-ooui.es.js +2284 -2277
- package/dist/react-ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/TreeActionBar.tsx +84 -78
- package/src/context/ConfigContext.tsx +22 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/TreeActionBar.tsx"],"names":[],"mappings":"AAkCA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/TreeActionBar.tsx"],"names":[],"mappings":"AAkCA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,2CAgVlC;AAMD,eAAe,aAAa,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface ConfigContextProps {
|
|
3
|
-
|
|
3
|
+
erpFeatures: ErpFeaturesMap;
|
|
4
4
|
}
|
|
5
5
|
export declare const ConfigContext: React.Context<ConfigContextProps>;
|
|
6
|
+
export declare enum ErpFeatureKeys {
|
|
7
|
+
FEATURE_ADVANCED_EXPORT = "export_data2"
|
|
8
|
+
}
|
|
9
|
+
export type ErpFeaturesMap = {
|
|
10
|
+
[key in ErpFeatureKeys]?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const useConfigContext: () => ConfigContextProps;
|
|
13
|
+
export declare const useFeatureIsEnabled: (featureKey: ErpFeatureKeys) => boolean;
|
|
6
14
|
export {};
|
|
7
15
|
//# sourceMappingURL=ConfigContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/ConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/ConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,UAAU,kBAAkB;IAC1B,WAAW,EAAE,cAAc,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,mCAExB,CAAC;AAGH,oBAAY,cAAc;IACxB,uBAAuB,iBAAiB;CAEzC;AAED,MAAM,MAAM,cAAc,GAAG;KAC1B,GAAG,IAAI,cAAc,CAAC,CAAC,EAAE,OAAO;CAClC,CAAC;AAEF,eAAO,MAAM,gBAAgB,0BAE5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,cAAc,KAAG,OAGhE,CAAC"}
|