@pisell/lowcode-renderer 1.0.27 → 1.0.29
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/es/ReactRenderer/index.d.ts +1 -0
- package/es/ReactRenderer/index.d.ts.map +1 -0
- package/es/Render/index.d.ts +1 -0
- package/es/Render/index.d.ts.map +1 -0
- package/es/api/index.d.ts +1 -0
- package/es/api/index.d.ts.map +1 -0
- package/es/api/report/URL.d.ts +1 -0
- package/es/api/report/URL.d.ts.map +1 -0
- package/es/api/report/index.d.ts +1 -0
- package/es/api/report/index.d.ts.map +1 -0
- package/es/api/utils/index.d.ts +1 -0
- package/es/api/utils/index.d.ts.map +1 -0
- package/es/appHelper/index.d.ts +1 -0
- package/es/appHelper/index.d.ts.map +1 -0
- package/es/appHelper/index.js +3 -1
- package/es/appHelper/others.d.ts +2 -0
- package/es/appHelper/others.d.ts.map +1 -0
- package/es/appHelper/others.js +13 -0
- package/es/config/index.d.ts +1 -0
- package/es/config/index.d.ts.map +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.d.ts.map +1 -0
- package/lib/ReactRenderer/index.d.ts +1 -0
- package/lib/ReactRenderer/index.d.ts.map +1 -0
- package/lib/Render/index.d.ts +1 -0
- package/lib/Render/index.d.ts.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.d.ts.map +1 -0
- package/lib/api/report/URL.d.ts +1 -0
- package/lib/api/report/URL.d.ts.map +1 -0
- package/lib/api/report/index.d.ts +1 -0
- package/lib/api/report/index.d.ts.map +1 -0
- package/lib/api/utils/index.d.ts +1 -0
- package/lib/api/utils/index.d.ts.map +1 -0
- package/lib/appHelper/index.d.ts +1 -0
- package/lib/appHelper/index.d.ts.map +1 -0
- package/lib/appHelper/index.js +3 -1
- package/lib/appHelper/others.d.ts +2 -0
- package/lib/appHelper/others.d.ts.map +1 -0
- package/lib/appHelper/others.js +50 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAQL,KAAK,EACN,MAAM,8BAA8B,CAAC;;AA2DtC,wBAAyB"}
|
package/es/Render/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAI5E,UAAU,WAAW;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,MAAM,UAAW,WAAW,uBAwGjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/es/api/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;AAGA,wBAIE"}
|
package/es/api/report/URL.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"URL.d.ts","sourceRoot":"","sources":["URL.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,4BAA4B,yOAC+L,CAAC;AAGzO,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,iCAAiC,+OACgM,CAAC;AAG/O,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,sBAAsB,+OAC2M,CAAC;AAG/O,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,4BAA4B,+OACqM,CAAC;AAE/O,eAAO,MAAM,gBAAgB,+OACiN,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,8BAA8B,+OACmM,CAAC;AAG/O,eAAO,MAAM,uCAAuC,+OAC0L,CAAC;AAG/O,eAAO,MAAM,4BAA4B,+OACqM,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,+BAA+B,+OACkM,CAAC;AAG/O,eAAO,MAAM,uCAAuC,+OAC0L,CAAC;AAG/O,eAAO,MAAM,yCAAyC,+OACwL,CAAC;;;;;;;;;;;;;;;;;;;;AAE/O,wBAmBE"}
|
package/es/api/report/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AASA,aAAK,OAAO,GACR,8BAA8B,GAC9B,+BAA+B,GAC/B,mCAAmC,GACnC,+BAA+B,GAC/B,wBAAwB,GACxB,+BAA+B,GAC/B,8BAA8B,GAC9B,kBAAkB,GAClB,0BAA0B,GAC1B,0BAA0B,GAC1B,gCAAgC,GAChC,yCAAyC,GACzC,8BAA8B,GAC9B,0BAA0B,GAC1B,iCAAiC,GACjC,yCAAyC,GACzC,2CAA2C,CAAC;;;;AAiFhD,wBAEE"}
|
package/es/api/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
package/es/appHelper/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,EAAE,GAQhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/es/appHelper/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { isMobile, isIos, isAndroid } from "@pisell/utils";
|
|
2
|
+
import { getTimezone } from "./others";
|
|
2
3
|
import api from "../api";
|
|
3
4
|
var appHelper = {
|
|
4
5
|
utils: {
|
|
5
6
|
api: api,
|
|
6
7
|
isMobile: isMobile,
|
|
7
8
|
isIos: isIos,
|
|
8
|
-
isAndroid: isAndroid
|
|
9
|
+
isAndroid: isAndroid,
|
|
10
|
+
getTimezone: getTimezone
|
|
9
11
|
}
|
|
10
12
|
};
|
|
11
13
|
export default appHelper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"others.d.ts","sourceRoot":"","sources":["others.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,cAKvB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import utc from "dayjs/plugin/utc";
|
|
3
|
+
import timezone from "dayjs/plugin/timezone";
|
|
4
|
+
import { getShopConfig } from "../config";
|
|
5
|
+
dayjs.extend(utc);
|
|
6
|
+
dayjs.extend(timezone);
|
|
7
|
+
export var getTimezone = function getTimezone() {
|
|
8
|
+
var _getShopConfig = getShopConfig(),
|
|
9
|
+
timezone = _getShopConfig.timezone;
|
|
10
|
+
var now = dayjs().tz(timezone);
|
|
11
|
+
var diff = now.utcOffset() / 60;
|
|
12
|
+
return diff;
|
|
13
|
+
};
|
package/es/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,aAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,cAAc,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC;IACpD,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,QAAA,IAAI,cAAc,EAAE,kBAA6C,CAAC;AAElE,eAAO,MAAM,YAAY,YAAa,kBAAkB,SAEvD,CAAC;AAEF,QAAA,MAAM,aAAa,sBAKlB,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
package/es/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAQL,KAAK,EACN,MAAM,8BAA8B,CAAC;;AA2DtC,wBAAyB"}
|
package/lib/Render/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAI5E,UAAU,WAAW;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,MAAM,UAAW,WAAW,uBAwGjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/lib/api/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;AAGA,wBAIE"}
|
package/lib/api/report/URL.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"URL.d.ts","sourceRoot":"","sources":["URL.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,4BAA4B,yOAC+L,CAAC;AAGzO,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,iCAAiC,+OACgM,CAAC;AAG/O,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,sBAAsB,+OAC2M,CAAC;AAG/O,eAAO,MAAM,6BAA6B,+OACoM,CAAC;AAG/O,eAAO,MAAM,4BAA4B,+OACqM,CAAC;AAE/O,eAAO,MAAM,gBAAgB,+OACiN,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,8BAA8B,+OACmM,CAAC;AAG/O,eAAO,MAAM,uCAAuC,+OAC0L,CAAC;AAG/O,eAAO,MAAM,4BAA4B,+OACqM,CAAC;AAG/O,eAAO,MAAM,wBAAwB,+OACyM,CAAC;AAG/O,eAAO,MAAM,+BAA+B,+OACkM,CAAC;AAG/O,eAAO,MAAM,uCAAuC,+OAC0L,CAAC;AAG/O,eAAO,MAAM,yCAAyC,+OACwL,CAAC;;;;;;;;;;;;;;;;;;;;AAE/O,wBAmBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AASA,aAAK,OAAO,GACR,8BAA8B,GAC9B,+BAA+B,GAC/B,mCAAmC,GACnC,+BAA+B,GAC/B,wBAAwB,GACxB,+BAA+B,GAC/B,8BAA8B,GAC9B,kBAAkB,GAClB,0BAA0B,GAC1B,0BAA0B,GAC1B,gCAAgC,GAChC,yCAAyC,GACzC,8BAA8B,GAC9B,0BAA0B,GAC1B,iCAAiC,GACjC,yCAAyC,GACzC,2CAA2C,CAAC;;;;AAiFhD,wBAEE"}
|
package/lib/api/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
package/lib/appHelper/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,EAAE,GAQhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/appHelper/index.js
CHANGED
|
@@ -33,13 +33,15 @@ __export(appHelper_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(appHelper_exports);
|
|
35
35
|
var import_utils = require("@pisell/utils");
|
|
36
|
+
var import_others = require("./others");
|
|
36
37
|
var import_api = __toESM(require("../api"));
|
|
37
38
|
var appHelper = {
|
|
38
39
|
utils: {
|
|
39
40
|
api: import_api.default,
|
|
40
41
|
isMobile: import_utils.isMobile,
|
|
41
42
|
isIos: import_utils.isIos,
|
|
42
|
-
isAndroid: import_utils.isAndroid
|
|
43
|
+
isAndroid: import_utils.isAndroid,
|
|
44
|
+
getTimezone: import_others.getTimezone
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
var appHelper_default = appHelper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"others.d.ts","sourceRoot":"","sources":["others.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,cAKvB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/appHelper/others.ts
|
|
30
|
+
var others_exports = {};
|
|
31
|
+
__export(others_exports, {
|
|
32
|
+
getTimezone: () => getTimezone
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(others_exports);
|
|
35
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
36
|
+
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
37
|
+
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
|
38
|
+
var import_config = require("../config");
|
|
39
|
+
import_dayjs.default.extend(import_utc.default);
|
|
40
|
+
import_dayjs.default.extend(import_timezone.default);
|
|
41
|
+
var getTimezone = () => {
|
|
42
|
+
let { timezone: timezone2 } = (0, import_config.getShopConfig)();
|
|
43
|
+
const now = (0, import_dayjs.default)().tz(timezone2);
|
|
44
|
+
const diff = now.utcOffset() / 60;
|
|
45
|
+
return diff;
|
|
46
|
+
};
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
getTimezone
|
|
50
|
+
});
|
package/lib/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,aAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,cAAc,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC;IACpD,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,QAAA,IAAI,cAAc,EAAE,kBAA6C,CAAC;AAElE,eAAO,MAAM,YAAY,YAAa,kBAAkB,SAEvD,CAAC;AAEF,QAAA,MAAM,aAAa,sBAKlB,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/lowcode-renderer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@alifd/next": "^1.25.44",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"dayjs": "^1.11.9",
|
|
21
|
-
"@pisell/utils": "1.0.
|
|
21
|
+
"@pisell/utils": "1.0.13"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.9.0",
|