@cloudbase/lowcode-builder 1.8.58 → 1.8.59

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.
@@ -0,0 +1 @@
1
+ export declare function mergeCssVarConfig(cssVarConfig?: {}, platform?: any): Record<string, string>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeCssVarConfig = void 0;
4
+ function mergeCssVarConfig(cssVarConfig = {}, platform = 'PCWEB') {
5
+ let merged = { ...cssVarConfig === null || cssVarConfig === void 0 ? void 0 : cssVarConfig._ };
6
+ let list = [platform];
7
+ switch (platform) {
8
+ case 'PCWEB': {
9
+ list = ['WEB', 'PCWEB'];
10
+ break;
11
+ }
12
+ case 'MOBILEWEB': {
13
+ list = ['WEB', 'MOBILE', 'MOBILEWEB'];
14
+ break;
15
+ }
16
+ case 'MP': {
17
+ list = ['MOBILE', 'MP'];
18
+ break;
19
+ }
20
+ case 'WEB':
21
+ case 'MOBILE': {
22
+ list = [platform];
23
+ }
24
+ }
25
+ for (let key of list) {
26
+ if (cssVarConfig[key]) {
27
+ merged = {
28
+ ...merged,
29
+ ...cssVarConfig[key],
30
+ };
31
+ }
32
+ }
33
+ return merged;
34
+ }
35
+ exports.mergeCssVarConfig = mergeCssVarConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.8.58",
3
+ "version": "1.8.59",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -43,6 +43,8 @@
43
43
  "url": "https://github.com/TencentCloudBase/cloudbase-framework/issues"
44
44
  },
45
45
  "dependencies": {
46
+ "@babel/core": "7.21.4",
47
+ "@babel/preset-env": "7.21.4",
46
48
  "@cloudbase/cals": "^1.0.40",
47
49
  "@cloudbase/lowcode-generator": "^1.8.15",
48
50
  "axios": "^0.21.0",
@@ -543,7 +543,7 @@
543
543
  crossorigin
544
544
  src="<%=
545
545
  cdnEndpoints.cdngo
546
- %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.c2d4a32f196583b43edf.bundle.js"
546
+ %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.bd4b5a173c474e92a51a.bundle.js"
547
547
  ></script>
548
548
  </body>
549
549
  </html>
@@ -124,7 +124,8 @@ export function createPage({
124
124
  _isCheckingAtuh: false,
125
125
  _expiredMessage: '',
126
126
  weDaHasLogin: null,
127
- loginError: null
127
+ loginError: null,
128
+ pageStyle: `<%= pageStyle || '' %>`
128
129
  },
129
130
  lifetimes: {
130
131
  attached() {
@@ -5,7 +5,7 @@
5
5
  "dependencies": {<% if(importJSSDK) {%>
6
6
  "@cloudbase/js-sdk": "2.5.6-beta.1",<% } %>
7
7
  "@cloudbase/oauth": "0.1.1-alpha.5",
8
- "@cloudbase/weda-client": "1.0.14",
8
+ "@cloudbase/weda-client": "1.0.16",
9
9
  "@cloudbase/weda-cloud-sdk": "1.0.49",
10
10
  "mobx": "^5.15.4",
11
11
  "lodash.get": "^4.4.2",