@cloudbase/lowcode-builder 1.8.42 → 1.8.43-alpha.0

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.
@@ -6,12 +6,12 @@ export declare const materialsDirName = "materials";
6
6
  * src/template的代码,在IDE编辑器插件中构建builder
7
7
  * 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488&region=ap-shanghai&path=%252Flcap-builder%252F
8
8
  */
9
- export declare const builderTemplateURL = "https://comp-public-1303824488.file.myqcloud.com/lcap-builder/template.1.8.41.zip";
9
+ export declare const builderTemplateURL = "https://comp-public-1303824488.file.myqcloud.com/lcap-builder/template.1.8.43.zip";
10
10
  /**
11
11
  * miniprogram的代码,IDE插件后续会提供端功能
12
12
  * 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488&region=ap-shanghai&path=%252Flcap-builder%252F
13
13
  */
14
- export declare const miniprogramURL = "https://comp-public-1303824488.file.myqcloud.com/lcap-builder/miniprogram_npm.1.8.33.zip";
14
+ export declare const miniprogramURL = "https://comp-public-1303824488.file.myqcloud.com/lcap-builder/miniprogram_npm.1.8.43.zip";
15
15
  /**
16
16
  * miniprogram_npm存放目录。IDE插件builder用到
17
17
  */
@@ -45,12 +45,12 @@ exports.materialsDirName = 'materials'; // materials diretory of current project
45
45
  * src/template的代码,在IDE编辑器插件中构建builder
46
46
  * 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488&region=ap-shanghai&path=%252Flcap-builder%252F
47
47
  */
48
- exports.builderTemplateURL = 'https://comp-public-1303824488.file.myqcloud.com/lcap-builder/template.1.8.41.zip';
48
+ exports.builderTemplateURL = 'https://comp-public-1303824488.file.myqcloud.com/lcap-builder/template.1.8.43.zip';
49
49
  /**
50
50
  * miniprogram的代码,IDE插件后续会提供端功能
51
51
  * 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488&region=ap-shanghai&path=%252Flcap-builder%252F
52
52
  */
53
- exports.miniprogramURL = 'https://comp-public-1303824488.file.myqcloud.com/lcap-builder/miniprogram_npm.1.8.33.zip';
53
+ exports.miniprogramURL = 'https://comp-public-1303824488.file.myqcloud.com/lcap-builder/miniprogram_npm.1.8.43.zip';
54
54
  /**
55
55
  * miniprogram_npm存放目录。IDE插件builder用到
56
56
  */
@@ -137,6 +137,7 @@ async function generateWxMp({ buildContext, weapps, calses, plugins, deployOptio
137
137
  'common/query.js': {},
138
138
  'common/flow.js': {},
139
139
  'common/info': {},
140
+ 'common/privacyModal': {},
140
141
  /**
141
142
  * 调试用
142
143
  */
@@ -43,6 +43,7 @@ const chalk_1 = __importDefault(require("chalk"));
43
43
  function generateMpConfig(ctx, weapps, options) {
44
44
  var _a;
45
45
  const appConfig = {
46
+ __usePrivacyCheck__: true,
46
47
  useExtendedLib: { weui: true },
47
48
  };
48
49
  const { miniprogramPlugins = [] } = ctx;
@@ -22,8 +22,18 @@ function generateWxml(ctx, widgets, docTag, wxmlDataPrefix, usingComponents, com
22
22
  if (ctx.isPage) {
23
23
  const { enablePageRoot } = ctx;
24
24
  const originElements = xmlJson.elements;
25
+ usingComponents['wd-privacy'] = '/common/privacyModal/index';
26
+ usingComponents['wd-info'] = '/common/info/index';
25
27
  // 登录校验: 向其最外层包裹一层block
26
28
  xmlJson.elements = [
29
+ {
30
+ type: 'element',
31
+ name: 'wd-privacy',
32
+ attributes: {},
33
+ elements: [],
34
+ _order: -Infinity,
35
+ _parent: null,
36
+ },
27
37
  {
28
38
  type: 'element',
29
39
  name: enablePageRoot ? 'view' : 'block',
@@ -53,6 +63,18 @@ function generateWxml(ctx, widgets, docTag, wxmlDataPrefix, usingComponents, com
53
63
  _order: -1,
54
64
  _parent: null,
55
65
  },
66
+ {
67
+ type: 'element',
68
+ name: 'wd-info',
69
+ attributes: {
70
+ ['wx:if']: '{{weDaHasLogin === false && !_expiredMessage}}',
71
+ message: '无权限访问',
72
+ type: 'auth',
73
+ },
74
+ elements: [],
75
+ _order: Infinity,
76
+ _parent: null,
77
+ },
56
78
  ];
57
79
  if (ctx.enableExpiredTag) {
58
80
  usingComponents['wd-info'] = '/common/info/index';