@tarojs/plugin-platform-harmony-cpp 4.1.2-alpha.2 → 4.1.3-alpha.1

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/dist/index.js CHANGED
@@ -15,12 +15,13 @@ var utils = require('@tarojs/vite-runner/dist/utils');
15
15
  var parseCssToStylesheet = require('@tarojs/parse-css-to-stylesheet');
16
16
  var constants = require('@tarojs/vite-runner/dist/harmony/postcss/constants');
17
17
 
18
- var version = "4.1.2-alpha.2";
18
+ var version = "4.1.3-alpha.1";
19
19
 
20
20
  const PKG_NAME = '@taro-oh/library';
21
21
  const PKG_VERSION = version;
22
22
  const PROJECT_DEPENDENCIES_NAME = [];
23
23
  const PKG_DEPENDENCIES = {};
24
+ const STATIC_FOLDER_NAME = 'static';
24
25
 
25
26
  /* eslint-disable no-console */
26
27
  const PLATFORM_NAME = 'harmony_cpp';
@@ -299,7 +300,15 @@ function pagePlugin () {
299
300
  const pluginContext = this;
300
301
  const { runnerUtils, runOpts } = that.context;
301
302
  const isPureComp = (page) => {
302
- return runOpts?.options?.args.pure || page.config?.entryOption === false;
303
+ if (page instanceof Array)
304
+ return false;
305
+ if (runOpts?.options?.args.pure || page.config?.entryOption === false) {
306
+ page.isPure = true;
307
+ }
308
+ else {
309
+ page.isPure = false;
310
+ }
311
+ return page.isPure;
303
312
  };
304
313
  const { getViteHarmonyCompilerContext } = runnerUtils;
305
314
  const compiler = getViteHarmonyCompilerContext(pluginContext);
@@ -336,7 +345,7 @@ function pagePlugin () {
336
345
  };
337
346
  const oddModifyInstantiate = compiler.loaderMeta.modifyInstantiate;
338
347
  compiler.loaderMeta.modifyInstantiate = function (code = '', type = '', page) {
339
- if (type === 'page') {
348
+ if (type === 'page' && !(page instanceof Array)) {
340
349
  const componentName = page.config?.componentName;
341
350
  if (shared.isString(componentName)) {
342
351
  code = code.replace(/export\sdefault\sstruct\sIndex/, `export struct ${componentName}`);
@@ -349,12 +358,20 @@ function pagePlugin () {
349
358
  config.entryOption = {};
350
359
  }
351
360
  config.modifyPageImport = function (importStr, page) {
352
- if (!isPureComp(page)) {
361
+ function fixPageEntry(meta) {
353
362
  Object.assign(config.entryOption, {
354
- routeName: page.name,
363
+ routeName: meta.name,
355
364
  });
356
- if (shared.isObject(page.config?.entryOption)) {
357
- Object.assign(config.entryOption, page.config.entryOption);
365
+ if (shared.isObject(meta.config?.entryOption)) {
366
+ Object.assign(config.entryOption, meta.config.entryOption);
367
+ }
368
+ }
369
+ if (!isPureComp(page)) {
370
+ if (page instanceof Array) {
371
+ page.forEach(fixPageEntry);
372
+ }
373
+ else {
374
+ fixPageEntry(page);
358
375
  }
359
376
  }
360
377
  importStr.unshift('import { navigateBack } from "@tarojs/taro"');
@@ -372,11 +389,11 @@ function pagePlugin () {
372
389
  type: 'TaroAny',
373
390
  foreach: () => 'null',
374
391
  disabled: !this.buildConfig.isBuildNativeComp && isPure,
375
- }, this.isTabbarPage), this.renderState({
392
+ }, false), this.renderState({
376
393
  name: 'areaChange',
377
394
  type: 'TaroAny',
378
395
  foreach: () => 'null',
379
- }, this.isTabbarPage), this.renderState({
396
+ }, false), this.renderState({
380
397
  name: '__pageName',
381
398
  type: 'TaroAny',
382
399
  foreach: () => 'null',
@@ -387,7 +404,7 @@ function pagePlugin () {
387
404
  type: 'TaroObject',
388
405
  foreach: () => '{}',
389
406
  disabled: !this.buildConfig.isBuildNativeComp && isPure,
390
- }, this.isTabbarPage), this.renderState({
407
+ }, false), this.renderState({
391
408
  decorator: 'State',
392
409
  name: 'statusBarHeight',
393
410
  type: 'number',
@@ -396,9 +413,18 @@ function pagePlugin () {
396
413
  decorator: 'State',
397
414
  name: 'isHideTitleBar',
398
415
  type: 'boolean',
399
- foreach: () => this.appConfig.window?.navigationStyle === 'custom'
400
- ? `config.navigationStyle !== 'default'`
401
- : `config.navigationStyle === 'custom'`,
416
+ foreach: (_, index) => {
417
+ if (this.isTabbarPage) {
418
+ return this.appConfig.window?.navigationStyle === 'custom'
419
+ ? `config${index}.navigationStyle !== 'default'`
420
+ : `config${index}.navigationStyle === 'custom'`;
421
+ }
422
+ else {
423
+ return this.appConfig.window?.navigationStyle === 'custom'
424
+ ? `config.navigationStyle !== 'default'`
425
+ : `config.navigationStyle === 'custom'`;
426
+ }
427
+ },
402
428
  }, this.isTabbarPage), this.renderState({
403
429
  decorator: 'State',
404
430
  name: 'isUseCache',
@@ -455,19 +481,40 @@ function pagePlugin () {
455
481
  ` Current.audioSessionManager = audioManager.getSessionManager()`,
456
482
  `}`,
457
483
  `this.activeAudioSession()`,
458
- `initEtsBuilder('${genUniPageId(page)}')`,
484
+ ...(page instanceof Array ? [
485
+ ...page.map(p => `initEtsBuilder('${genUniPageId(p)}')`),
486
+ ...page.map((p, i) => `this.__pageName[${i}] = '${p.name}'`),
487
+ ] : [
488
+ `initEtsBuilder('${genUniPageId(page)}')`,
489
+ `this.__pageName = '${page.name}'`,
490
+ ]),
459
491
  'this.__layoutSize = this.params._layout_',
460
- `this.__pageName = '${page.name}'`,
461
492
  `systemContext.windowWidth = ${config.config.windowArea?.width || 'this.params._layout_?.width'}`,
462
493
  `systemContext.windowHeight = ${config.config.windowArea?.height || 'this.params._layout_?.height'}`,
463
- `TaroNativeModule.initStylesheet('${genUniPageId(page)}', styleJson, initStyleSheetConfig({ width: systemContext.windowWidth, height: systemContext.windowHeight}, this.getNavHeight()))`,
494
+ ...(page instanceof Array ? [
495
+ ...page.map((p, i) => `TaroNativeModule.initStylesheet('${genUniPageId(p)}', styleJson${i}, initStyleSheetConfig({ width: systemContext.windowWidth, height: systemContext.windowHeight}, this.getNavHeight()))`),
496
+ ] : [
497
+ `TaroNativeModule.initStylesheet('${genUniPageId(page)}', styleJson, initStyleSheetConfig({ width: systemContext.windowWidth, height: systemContext.windowHeight}, this.getNavHeight()))`,
498
+ ]),
464
499
  ];
465
500
  if (!isPure) {
466
501
  appearCode.push('Current.$r = (path: string): Resource => {', ' return $r(path)', '}', 'let currentSplit = false', 'let pendingAreaChange: TaroAny', `const resizeFn = (canSplit: boolean, size: TaroAny, sizeChange: boolean) => {`, ` const _display = display.getDefaultDisplaySync()`, ` const orientation = _display.orientation`, ` const idPortrait = orientation == display.Orientation.PORTRAIT || orientation == display.Orientation.PORTRAIT_INVERTED`, ` const _sysInfo: TaroAny = getSystemInfoSync()`, ` callFn(this.page?.onResize, this, {`, ` size: {`,
467
502
  // @ts-ignore
468
503
  ` windowWidth: ${config.config.windowArea?.width || 'size?.width'},`,
469
504
  // @ts-ignore
470
- ` windowHeight: ${config.config.windowArea?.height || 'size?.height'},`, ` screenWidth: _sysInfo.screenWidth,`, ` screenHeight: _sysInfo.screenHeight,`, ` },`, ` deviceOrientation: idPortrait ? "portrait" : "landscape",`, ` foldDisplayMode: _sysInfo.foldDisplayMode,`, ` canSplit: canSplit,`, ` reason: sizeChange ? "size" : "statusBar"`, ` })`, `}`, `const avoidAreaChange = (res: TaroAny) => {`, ` const statusHeight: number = px2vp(res.area.topRect.height);`, ` this.statusBarHeight = statusHeight;`, ` TaroNativeModule.UpdateEnvRule('${genUniPageId(page)}', initStyleSheetConfig({ width: this.__layoutSize.width, height: this.__layoutSize.height}, this.getNavHeight()), this.node?._nid)`, ` resizeFn(currentSplit, this.__layoutSize, false)`, `}`, `const windowStage: TaroAny = AppStorage.get(WINDOW_STATE);`, 'this.areaChange = (res: TaroAny) => {', ' if (res.type !== oh_window.AvoidAreaType.TYPE_SYSTEM) return;', ' if (!this.isShown) {', ' pendingAreaChange = () => { avoidAreaChange(res) }', ' } else {', ' avoidAreaChange(res)', ' }', '}', `windowStage.getMainWindowSync().on('avoidAreaChange', this.areaChange)`);
505
+ ` windowHeight: ${config.config.windowArea?.height || 'size?.height'},`, ` screenWidth: _sysInfo.screenWidth,`, ` screenHeight: _sysInfo.screenHeight,`, ` },`, ` deviceOrientation: idPortrait ? "portrait" : "landscape",`, ` foldDisplayMode: _sysInfo.foldDisplayMode,`, ` canSplit: canSplit,`, ` reason: sizeChange ? "size" : "statusBar"`, ` })`, `}`, `const avoidAreaChange = (res: TaroAny) => {`, ` const statusHeight: number = px2vp(res.area.topRect.height)`, ...(page instanceof Array
506
+ ? [
507
+ ` this.statusBarHeight = this.statusBarHeight.map(() => statusHeight)`,
508
+ ` this.node.forEach((item: TaroAny, i) => {`,
509
+ ` if (item?._nid) {`,
510
+ ` TaroNativeModule.UpdateEnvRule('${getProjectId()}:' + this.__pageName[i], initStyleSheetConfig({ width: this.__layoutSize.width, height: this.__layoutSize.height}, this.getNavHeight()), item._nid)`,
511
+ ` }`,
512
+ ` })`
513
+ ]
514
+ : [
515
+ ` this.statusBarHeight = statusHeight`,
516
+ ` TaroNativeModule.UpdateEnvRule('${genUniPageId(page)}', initStyleSheetConfig({ width: this.__layoutSize.width, height: this.__layoutSize.height}, this.getNavHeight()), this.node?._nid)`,
517
+ ]), ` resizeFn(currentSplit, this.__layoutSize, false)`, `}`, `const windowStage: TaroAny = AppStorage.get(WINDOW_STATE)`, 'this.areaChange = (res: TaroAny) => {', ' if (res.type !== oh_window.AvoidAreaType.TYPE_SYSTEM) return', ' if (!this.isShown) {', ' pendingAreaChange = () => { avoidAreaChange(res) }', ' } else {', ' avoidAreaChange(res)', ' }', '}', `windowStage.getMainWindowSync().on('avoidAreaChange', this.areaChange)`);
471
518
  }
472
519
  appearCode.push(appearStr);
473
520
  return this.transArr2Str(appearCode.filter(Boolean));
@@ -477,7 +524,7 @@ function pagePlugin () {
477
524
  `this.handlePageDetach()`,
478
525
  'this.deactivateAudioSession()',
479
526
  'if (this.areaChange) {',
480
- ' const windowStage: TaroAny = AppStorage.get(WINDOW_STATE);',
527
+ ' const windowStage: TaroAny = AppStorage.get(WINDOW_STATE)',
481
528
  ` windowStage.getMainWindowSync().off('avoidAreaChange', this.areaChange)`,
482
529
  '}'
483
530
  ]);
@@ -485,8 +532,15 @@ function pagePlugin () {
485
532
  config.modifyPageBuild = function (_, page) {
486
533
  const coreBuildCodeArray = [
487
534
  'Stack() {',
488
- ' if (this.isReady) {',
489
- ' TaroXComponent({ pageId: (this.node as TaroAny)?._nid, data: this.nodeContent })',
535
+ ...(this.isTabbarPage
536
+ ? [
537
+ ' if (this.isReady[index]) {',
538
+ ' TaroXComponent({ pageId: (this.node[index] as TaroAny)?._nid, data: this.nodeContent[index] })',
539
+ ]
540
+ : [
541
+ ' if (this.isReady) {',
542
+ ' TaroXComponent({ pageId: (this.node as TaroAny)?._nid, data: this.nodeContent })',
543
+ ]),
490
544
  ' }',
491
545
  '}',
492
546
  '.align(Alignment.TopStart)',
@@ -497,7 +551,9 @@ function pagePlugin () {
497
551
  '.onDetach(this.handlePageDetach)',
498
552
  ];
499
553
  if (!isPureComp(page)) {
500
- coreBuildCodeArray.push('.backgroundColor(this.pageBackgroundContentColor || this.pageBackgroundColor || "#FFFFFF")');
554
+ coreBuildCodeArray.push(this.isTabbarPage
555
+ ? '.backgroundColor(this.pageBackgroundContentColor[index] || this.pageBackgroundColor[index] || "#FFFFFF")'
556
+ : '.backgroundColor(this.pageBackgroundContentColor || this.pageBackgroundColor || "#FFFFFF")');
501
557
  if (this.enableRefresh === 1) {
502
558
  coreBuildCodeArray.forEach((code, idx) => coreBuildCodeArray.splice(idx, 1, `${' '.repeat(2)}${code}`));
503
559
  coreBuildCodeArray.unshift('Refresh({', ' refreshing: $$this.isRefreshing,', ' builder: this.customRefreshBuilder()', '}) {');
@@ -505,10 +561,17 @@ function pagePlugin () {
505
561
  }
506
562
  coreBuildCodeArray.forEach((code, idx) => coreBuildCodeArray.splice(idx, 1, `${' '.repeat(2)}${code}`));
507
563
  coreBuildCodeArray.unshift('Navigation() {');
508
- coreBuildCodeArray.push('}', `.backgroundColor(this.pageBackgroundColor || '${this.appConfig?.window?.backgroundColor || '#FFFFFF'}')`, `.height('100%')`, `.width('100%')`, `.title({ builder: this.renderTitle, height: this.getNavHeight() })`, `.titleMode(NavigationTitleMode.Mini)`, `.hideTitleBar(this.isHideTitleBar)`, `.hideBackButton(true)`,
564
+ coreBuildCodeArray.push('}', this.isTabbarPage
565
+ ? `.backgroundColor(this.pageBackgroundColor[index] || '${this.appConfig?.window?.backgroundColor || '#FFFFFF'}')`
566
+ : `.backgroundColor(this.pageBackgroundColor || '${this.appConfig?.window?.backgroundColor || '#FFFFFF'}')`, `.height('100%')`, `.width('100%')`, `.title({ builder: this.renderTitle, height: this.getNavHeight() })`, `.titleMode(NavigationTitleMode.Mini)`, this.isTabbarPage ? `.hideTitleBar(this.isHideTitleBar[index])` : `.hideTitleBar(this.isHideTitleBar)`, `.hideBackButton(true)`,
509
567
  // `.expandSafeArea([SafeAreaType.SYSTEM])`,
510
568
  `.mode(NavigationMode.Stack)`);
511
569
  }
570
+ if (this.isTabbarPage) {
571
+ coreBuildCodeArray.forEach((code, idx) => coreBuildCodeArray.splice(idx, 1, `${' '.repeat(6)}${code}`));
572
+ coreBuildCodeArray.unshift('Tabs({', ` barPosition: this.tabBarPosition !== 'top' ? BarPosition.End : BarPosition.Start,`, ' controller: this.tabBarController,', ' index: this.tabBarCurrentIndex,', '}) {', ' ForEach(this.tabBarList, (item: ITabBarItem, index) => {', ' TabContent() {');
573
+ coreBuildCodeArray.push(` }.tabBar(this.renderTabItemBuilder(index, item))`, ` }, (item: ITabBarItem, index) => \`\${item.key || index}\`)`, `}`, `.vertical(false)`, `.barMode(BarMode.Fixed)`, `.barHeight(this.isTabBarShow ? 56 : 0)`, `.animationDuration(this.tabBarAnimationDuration)`, `.onChange((index: number) => {`, ` if (this.tabBarCurrentIndex !== index) {`, ` callFn(this.page?.onHide, this)`, ` this.setTabBarCurrentIndex(index)`, ` }`, ` this.handlePageAppear()`, ` callFn(this.page?.onShow, this)`, `})`, `.backgroundColor(this.tabBarBackgroundColor)`, `.padding({`, ` bottom: px2vp(sysInfo.screenHeight - (sysInfo.safeArea?.bottom || 0)),`, `})`);
574
+ }
512
575
  return this.transArr2Str(coreBuildCodeArray);
513
576
  };
514
577
  config.modifyPageMethods = function (methods, page$1) {
@@ -517,11 +580,18 @@ function pagePlugin () {
517
580
  if (handlePageAppearMethods) {
518
581
  const methodsBodyList = handlePageAppearMethods.body?.split('\n') || [];
519
582
  let insertIndex = methodsBodyList.findIndex((item) => item.startsWith('const params'));
520
- insertIndex = methodsBodyList.findIndex((item) => item.includes('this.node = instance'));
583
+ if (this.isTabbarPage) {
584
+ insertIndex = methodsBodyList.findIndex((item) => item.includes('this.node[index] = instance'));
585
+ }
586
+ else {
587
+ insertIndex = methodsBodyList.findIndex((item) => item.includes('this.node = instance'));
588
+ }
521
589
  if (insertIndex >= 0) {
522
590
  methodsBodyList?.splice(insertIndex + 1, 0, ...[
523
- ' TaroNativeModule.buildTaroNode(this.nodeContent, instance._nid)',
524
- ' this.isReady = true',
591
+ this.isTabbarPage
592
+ ? ' TaroNativeModule.buildTaroNode(this.nodeContent[index], instance._nid)'
593
+ : ' TaroNativeModule.buildTaroNode(this.nodeContent, instance._nid)',
594
+ this.isTabbarPage ? ' this.isReady[index] = true' : ' this.isReady = true',
525
595
  isPure ? ` this.currentRouter = Current.router` : null,
526
596
  isPure ? ` eventCenter.on(this.currentRouter?.getEventName('onResize') || '', this.handlePageResizeEvent)` : null,
527
597
  ].filter(shared.isString));
@@ -552,15 +622,17 @@ function pagePlugin () {
552
622
  });
553
623
  methods.unshift({
554
624
  name: 'getNavHeight',
555
- body: 'return this.isHideTitleBar ? 0 : 48 + this.statusBarHeight',
625
+ body: this.isTabbarPage
626
+ ? 'return this.isHideTitleBar[this.tabBarCurrentIndex] ? 0 : 48 + this.statusBarHeight[this.tabBarCurrentIndex]'
627
+ : 'return this.isHideTitleBar ? 0 : 48 + this.statusBarHeight',
556
628
  });
557
629
  methods.push({
558
630
  name: 'handlePageDetach',
559
631
  type: 'arrow',
560
632
  body: this.transArr2Str([
561
- `if (!this.isReady) return`,
633
+ this.isTabbarPage ? `if (!this.isReady[this.tabBarCurrentIndex]) return` : `if (!this.isReady) return`,
562
634
  '',
563
- `this.isReady = false`,
635
+ this.isTabbarPage ? `this.isReady[this.tabBarCurrentIndex] = false` : `this.isReady = false`,
564
636
  isPure
565
637
  ? `eventCenter.off(this.currentRouter?.getEventName('onResize'), this.handlePageResizeEvent)`
566
638
  : null,
@@ -928,10 +1000,20 @@ function stylePlugin () {
928
1000
  }
929
1001
  const { outputRoot = 'dist', sourceRoot = 'src' } = this.buildConfig;
930
1002
  const targetRoot = path.resolve(this.appPath, sourceRoot);
931
- const styleName = `${page.originName}_style.json`;
932
- const styleJsonPath = path.resolve(targetRoot, styleName);
933
- importStr.push(`import styleJson from "${styleJsonPath}"`);
934
- PageMap.set(path.resolve(outputRoot, styleName), pluginContext.getModuleInfo(page.id));
1003
+ if (page instanceof Array) {
1004
+ page.forEach((p, i) => {
1005
+ const styleName = `${p.originName}_style.json`;
1006
+ const styleJsonPath = path.resolve(targetRoot, styleName);
1007
+ importStr.push(`import styleJson${i} from "${styleJsonPath}"`);
1008
+ PageMap.set(path.resolve(outputRoot, styleName), pluginContext.getModuleInfo(p.id));
1009
+ });
1010
+ }
1011
+ else {
1012
+ const styleName = `${page.originName}_style.json`;
1013
+ const styleJsonPath = path.resolve(targetRoot, styleName);
1014
+ importStr.push(`import styleJson from "${styleJsonPath}"`);
1015
+ PageMap.set(path.resolve(outputRoot, styleName), pluginContext.getModuleInfo(page.id));
1016
+ }
935
1017
  };
936
1018
  };
937
1019
  compiler?.pages?.forEach?.(modifyPageOrComp);
@@ -1127,10 +1209,9 @@ class Harmony extends dist.HarmonyOS_ArkTS {
1127
1209
  /* eslint-disable no-console */
1128
1210
  const argProjectPath = getProcessArg('lib');
1129
1211
  const argHapName = getProcessArg('hap');
1130
- const staticDirname = 'static';
1131
1212
  let harName = `${PKG_NAME}-${PKG_VERSION}.har`;
1132
- if (!helper.fs.existsSync(path.join(__dirname, '..', staticDirname, harName))) {
1133
- harName = require('fast-glob').sync('**/*.har', { cwd: path.join(__dirname, '..', staticDirname) })[0] || '';
1213
+ if (!helper.fs.existsSync(path.join(__dirname, '..', STATIC_FOLDER_NAME, harName))) {
1214
+ harName = require('fast-glob').sync('**/*.har', { cwd: path.join(__dirname, '..', STATIC_FOLDER_NAME) })[0] || '';
1134
1215
  }
1135
1216
  var index = (ctx, options = {}) => {
1136
1217
  options.useChoreLibrary = options.useChoreLibrary ?? 'local';
@@ -1207,11 +1288,11 @@ var index = (ctx, options = {}) => {
1207
1288
  }
1208
1289
  }
1209
1290
  else if (options.useChoreLibrary === 'local' && harName) {
1210
- const harPath = path.join(argProjectPath || projectPath, staticDirname, harName);
1291
+ const harPath = path.join(argProjectPath || projectPath, STATIC_FOLDER_NAME, harName);
1211
1292
  const harDir = path.dirname(harPath);
1212
1293
  helper.fs.ensureDirSync(harDir);
1213
1294
  helper.fs.emptyDirSync(harDir);
1214
- helper.fs.copyFileSync(path.join(program.harmonyCppPluginPath, staticDirname, harName), harPath);
1295
+ helper.fs.copyFileSync(path.join(program.harmonyCppPluginPath, STATIC_FOLDER_NAME, harName), harPath);
1215
1296
  }
1216
1297
  }
1217
1298
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-cpp",
3
- "version": "4.1.2-alpha.2",
3
+ "version": "4.1.3-alpha.1",
4
4
  "description": "鸿蒙系统插件 C-API 版本",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -41,13 +41,15 @@
41
41
  "rollup-plugin-node-externals": "^5.1.3",
42
42
  "rollup-plugin-ts": "^3.4.5",
43
43
  "scheduler": "^0.23.2",
44
- "@tarojs/react": "4.1.2-alpha.2",
45
- "@tarojs/service": "4.1.2-alpha.2",
46
- "@tarojs/runner-utils": "4.1.2-alpha.2"
44
+ "@tarojs/react": "4.1.3-alpha.1",
45
+ "@tarojs/runner-utils": "4.1.3-alpha.1",
46
+ "@tarojs/service": "4.1.3-alpha.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@rollup/plugin-typescript": "^11.1.6",
50
50
  "@types/node": "^18.19.34",
51
+ "@types/conventional-commits-parser": "^3.0.0",
52
+ "conventional-commits-parser": "^3.0.0",
51
53
  "postcss": "^8.4.38",
52
54
  "prettier": "^2.8.8",
53
55
  "solid-js": "^1.8.17",
@@ -57,37 +59,39 @@
57
59
  "tslib": "^2.6.3",
58
60
  "typescript": "~5.4.5",
59
61
  "vite": "^4.2.0",
60
- "@tarojs/helper": "4.1.2-alpha.2",
61
- "@tarojs/plugin-framework-react": "4.1.2-alpha.2",
62
- "@tarojs/components": "4.1.2-alpha.2",
63
- "@tarojs/plugin-platform-harmony-ets": "4.1.2-alpha.2",
64
- "@tarojs/shared": "4.1.2-alpha.2",
65
- "@tarojs/react": "4.1.2-alpha.2",
66
- "@tarojs/taro": "4.1.2-alpha.2",
67
- "@tarojs/runtime": "4.1.2-alpha.2",
68
- "@tarojs/vite-runner": "4.1.2-alpha.2",
69
- "rollup-plugin-copy": "4.1.2-alpha.2"
62
+ "@tarojs/components": "4.1.3-alpha.1",
63
+ "@tarojs/helper": "4.1.3-alpha.1",
64
+ "@tarojs/plugin-platform-harmony-ets": "4.1.3-alpha.1",
65
+ "@tarojs/plugin-framework-react": "4.1.3-alpha.1",
66
+ "@tarojs/react": "4.1.3-alpha.1",
67
+ "@tarojs/runtime": "4.1.3-alpha.1",
68
+ "@tarojs/shared": "4.1.3-alpha.1",
69
+ "@tarojs/vite-runner": "4.1.3-alpha.1",
70
+ "rollup-plugin-copy": "4.1.3-alpha.1",
71
+ "@tarojs/taro": "4.1.3-alpha.1"
70
72
  },
71
73
  "peerDependencies": {
72
74
  "less": "^4.2.0",
73
75
  "sass": "^1.75.0",
74
76
  "stylus": "^0.63.0",
75
- "@tarojs/components": "4.1.2-alpha.2",
76
- "@tarojs/plugin-framework-react": "4.1.2-alpha.2",
77
- "@tarojs/helper": "4.1.2-alpha.2",
78
- "@tarojs/react": "4.1.2-alpha.2",
79
- "@tarojs/plugin-platform-harmony-ets": "4.1.2-alpha.2",
80
- "@tarojs/runtime": "4.1.2-alpha.2",
81
- "@tarojs/shared": "4.1.2-alpha.2",
82
- "@tarojs/vite-runner": "4.1.2-alpha.2",
83
- "@tarojs/taro": "4.1.2-alpha.2"
77
+ "@tarojs/helper": "4.1.3-alpha.1",
78
+ "@tarojs/components": "4.1.3-alpha.1",
79
+ "@tarojs/react": "4.1.3-alpha.1",
80
+ "@tarojs/plugin-platform-harmony-ets": "4.1.3-alpha.1",
81
+ "@tarojs/runtime": "4.1.3-alpha.1",
82
+ "@tarojs/shared": "4.1.3-alpha.1",
83
+ "@tarojs/taro": "4.1.3-alpha.1",
84
+ "@tarojs/vite-runner": "4.1.3-alpha.1",
85
+ "@tarojs/plugin-framework-react": "4.1.3-alpha.1"
84
86
  },
85
87
  "scripts": {
86
88
  "prebuild": "rimraf --impl=move-remove dist",
87
89
  "build": "pnpm run rollup",
88
90
  "prod": "pnpm run build",
89
91
  "build:library": "pnpm run tsx --files ./scripts/build",
92
+ "changelog": "pnpm run tsx --files ./scripts/ohpm-changelog",
90
93
  "dev": "pnpm run rollup -w",
94
+ "ohpm-publish": "pnpm run tsx --files ./scripts/ohpm-publish",
91
95
  "remove:reference": "pnpm run tsx --files ./scripts/reference",
92
96
  "rollup": "rollup --config rollup.config.mts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs",
93
97
  "tsx": "ts-node --skipIgnore"
Binary file