@evlop/commons 1.0.78 → 1.0.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/index.d.ts +1 -2
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js +12 -3
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/constants/platformSpecific.d.ts +4 -0
- package/dist/src/constants/platformSpecific.d.ts.map +1 -0
- package/dist/src/constants/platformSpecific.js +7 -0
- package/dist/src/constants/platformSpecific.js.map +1 -0
- package/dist/src/constants/platformSpecific.native.d.ts +4 -0
- package/dist/src/constants/platformSpecific.native.d.ts.map +1 -0
- package/dist/src/constants/platformSpecific.native.js +9 -0
- package/dist/src/constants/platformSpecific.native.js.map +1 -0
- package/package.json +1 -1
@@ -1,5 +1,3 @@
|
|
1
|
-
export declare const API_BASE_URL: string;
|
2
|
-
export declare const SOCKET_URL: string;
|
3
1
|
export declare const IS_SSR: boolean;
|
4
2
|
export declare const DIRECTION_TOP = "direction/Top";
|
5
3
|
export declare const DIRECTION_RIGHT = "direction/Right";
|
@@ -9,4 +7,5 @@ export declare const VERTICAL_LAYOUT = "layout/vertical";
|
|
9
7
|
export declare const HORIZONTAL_LAYOUT = "layout/horizontal";
|
10
8
|
export declare const TYPE_COMPONENT = "type/component";
|
11
9
|
export { default as iconInfo } from './iconInfo';
|
10
|
+
export * from './platformSpecific';
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
|
@@ -1,11 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
+
};
|
2
12
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
14
|
};
|
5
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.iconInfo = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR =
|
7
|
-
exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
|
8
|
-
exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
|
16
|
+
exports.iconInfo = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = void 0;
|
9
17
|
exports.IS_SSR = ['true', '1'].includes(String(process.env.SSR).toLowerCase());
|
10
18
|
exports.DIRECTION_TOP = "direction/Top";
|
11
19
|
exports.DIRECTION_RIGHT = "direction/Right";
|
@@ -16,4 +24,5 @@ exports.HORIZONTAL_LAYOUT = 'layout/horizontal';
|
|
16
24
|
exports.TYPE_COMPONENT = "type/component";
|
17
25
|
var iconInfo_1 = require("./iconInfo");
|
18
26
|
Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
|
27
|
+
__exportStar(require("./platformSpecific"), exports);
|
19
28
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAa,QAAA,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEvE,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAE/C,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,qDAAmC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platformSpecific.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC;AACrG,eAAO,MAAM,QAAQ,KAAK,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.APP_NAME = exports.SOCKET_URL = exports.API_BASE_URL = void 0;
|
4
|
+
exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
|
5
|
+
exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
|
6
|
+
exports.APP_NAME = "";
|
7
|
+
//# sourceMappingURL=platformSpecific.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platformSpecific.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9E,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AACxF,QAAA,QAAQ,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platformSpecific.native.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.native.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,KAAiG,CAAC;AAC3H,eAAO,MAAM,UAAU,KAA6E,CAAC;AACrG,eAAO,MAAM,QAAQ,KAA4B,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.APP_NAME = exports.SOCKET_URL = exports.API_BASE_URL = void 0;
|
4
|
+
const react_native_1 = require("react-native");
|
5
|
+
const { AppConstants } = react_native_1.NativeModules;
|
6
|
+
exports.API_BASE_URL = AppConstants.getApiBaseUrl() || process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
|
7
|
+
exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
|
8
|
+
exports.APP_NAME = AppConstants.getAppName();
|
9
|
+
//# sourceMappingURL=platformSpecific.native.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platformSpecific.native.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.native.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAExB,QAAA,YAAY,GAAG,YAAY,CAAC,aAAa,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9G,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AACxF,QAAA,QAAQ,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC"}
|