@dcloudio/uni-cli-shared 3.0.0-alpha-4050220250208001 → 3.0.0-alpha-4050320250221002

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.
@@ -1,4 +1,5 @@
1
1
  export declare function isUniPageFile(file: string, inputDir?: string): boolean;
2
+ export declare function isUniPageSetupAndUts(file: string): boolean;
2
3
  export declare function isUniPageSetupAndTs(file: string): boolean;
3
4
  export declare function isUniPageSfcFile(file: string, inputDir?: string): boolean;
4
5
  /**
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.filterPlatformPages = exports.parseSubpackagesRootOnce = exports.normalizePagesRoute = exports.removePlatformStyle = exports.validatePages = exports.normalizePagesJson = exports.parsePagesJsonOnce = exports.parsePagesJson = exports.isUniPageSfcFile = exports.isUniPageSetupAndTs = exports.isUniPageFile = void 0;
6
+ exports.filterPlatformPages = exports.parseSubpackagesRootOnce = exports.normalizePagesRoute = exports.removePlatformStyle = exports.validatePages = exports.normalizePagesJson = exports.parsePagesJsonOnce = exports.parsePagesJson = exports.isUniPageSfcFile = exports.isUniPageSetupAndTs = exports.isUniPageSetupAndUts = exports.isUniPageFile = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const shared_1 = require("@vue/shared");
@@ -23,6 +23,14 @@ function isUniPageFile(file, inputDir = process.env.UNI_INPUT_DIR) {
23
23
  return pagesCacheSet.has((0, utils_1.removeExt)(file));
24
24
  }
25
25
  exports.isUniPageFile = isUniPageFile;
26
+ function isUniPageSetupAndUts(file) {
27
+ const { filename, query } = (0, vite_1.parseVueRequest)(file);
28
+ return !!(query.vue &&
29
+ query.setup &&
30
+ (0, shared_1.hasOwn)(query, 'lang.uts') &&
31
+ constants_1.EXTNAME_VUE_RE.test(filename));
32
+ }
33
+ exports.isUniPageSetupAndUts = isUniPageSetupAndUts;
26
34
  function isUniPageSetupAndTs(file) {
27
35
  const { filename, query } = (0, vite_1.parseVueRequest)(file);
28
36
  return !!(query.vue &&
package/dist/utils.js CHANGED
@@ -203,7 +203,9 @@ function createIdent(platform) {
203
203
  if (process.env.UNI_INPUT_DIR) {
204
204
  const manifestJson = (0, json_1.parseManifestJsonOnce)(process.env.UNI_INPUT_DIR);
205
205
  let id = (manifestJson.appid || '').replace('__UNI__', '');
206
- const platformAppId = manifestJson[platform]?.appid;
206
+ const platformAppId = platform === 'mp-harmony'
207
+ ? (manifestJson[platform]?.distribute?.bundleName || '').replace('com.atomicservice.', '')
208
+ : manifestJson[platform]?.appid;
207
209
  if (platformAppId) {
208
210
  id += '%%' + platformAppId;
209
211
  }
@@ -32,6 +32,10 @@ const uniPreset = {
32
32
  'onTabItemTap',
33
33
  'onReachBottom',
34
34
  'onPullDownRefresh',
35
+ // 其他
36
+ 'onShareTimeline',
37
+ 'onShareAppMessage',
38
+ 'onShareChat', // xhs-share
35
39
  // 辅助
36
40
  'renderComponentSlot',
37
41
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-4050220250208001",
3
+ "version": "3.0.0-alpha-4050320250221002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,8 +66,8 @@
66
66
  "tapable": "^2.2.0",
67
67
  "unplugin-auto-import": "^0.18.2",
68
68
  "xregexp": "3.1.0",
69
- "@dcloudio/uni-i18n": "3.0.0-alpha-4050220250208001",
70
- "@dcloudio/uni-shared": "3.0.0-alpha-4050220250208001"
69
+ "@dcloudio/uni-i18n": "3.0.0-alpha-4050320250221002",
70
+ "@dcloudio/uni-shared": "3.0.0-alpha-4050320250221002"
71
71
  },
72
72
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
73
73
  "devDependencies": {
@@ -88,6 +88,6 @@
88
88
  "postcss": "^8.4.21",
89
89
  "unimport": "^3.11.1",
90
90
  "vue": "3.4.21",
91
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-4050220250208001"
91
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-4050320250221002"
92
92
  }
93
93
  }