@dcloudio/uni-mp-toutiao 3.0.0-alpha-3080420230602001 → 3.0.0-alpha-3080520230612002

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.
@@ -1054,39 +1054,37 @@ const previewImage = {
1054
1054
  };
1055
1055
 
1056
1056
  const eventChannels = {};
1057
- const eventChannelStack = [];
1058
1057
  let id = 0;
1059
1058
  function initEventChannel(events, cache = true) {
1060
1059
  id++;
1061
1060
  const eventChannel = new tt.EventChannel(id, events);
1062
1061
  if (cache) {
1063
1062
  eventChannels[id] = eventChannel;
1064
- eventChannelStack.push(eventChannel);
1065
1063
  }
1066
1064
  return eventChannel;
1067
1065
  }
1068
1066
  function getEventChannel(id) {
1069
- if (id) {
1070
- const eventChannel = eventChannels[id];
1071
- delete eventChannels[id];
1072
- return eventChannel;
1073
- }
1074
- return eventChannelStack.shift();
1067
+ const eventChannel = eventChannels[id];
1068
+ delete eventChannels[id];
1069
+ return eventChannel;
1075
1070
  }
1076
- const navigateTo = {
1077
- args(fromArgs) {
1078
- const id = initEventChannel(fromArgs.events).id;
1079
- if (fromArgs.url) {
1080
- fromArgs.url =
1081
- fromArgs.url +
1082
- (fromArgs.url.indexOf('?') === -1 ? '?' : '&') +
1083
- '__id__=' +
1084
- id;
1085
- }
1086
- },
1087
- returnValue(fromRes) {
1088
- fromRes.eventChannel = getEventChannel();
1089
- },
1071
+ const navigateTo$1 = () => {
1072
+ let eventChannel;
1073
+ return {
1074
+ args(fromArgs) {
1075
+ eventChannel = initEventChannel(fromArgs.events);
1076
+ if (fromArgs.url) {
1077
+ fromArgs.url =
1078
+ fromArgs.url +
1079
+ (fromArgs.url.indexOf('?') === -1 ? '?' : '&') +
1080
+ '__id__=' +
1081
+ eventChannel.id;
1082
+ }
1083
+ },
1084
+ returnValue(fromRes) {
1085
+ fromRes.eventChannel = eventChannel;
1086
+ },
1087
+ };
1090
1088
  };
1091
1089
 
1092
1090
  const baseApis = {
@@ -1166,6 +1164,7 @@ var shims = /*#__PURE__*/Object.freeze({
1166
1164
  getProvider: getProvider
1167
1165
  });
1168
1166
 
1167
+ const navigateTo = navigateTo$1();
1169
1168
  const connectSocket = {
1170
1169
  args: {
1171
1170
  method: false,
@@ -1187,22 +1186,6 @@ const startAccelerometer = {
1187
1186
  interval: false,
1188
1187
  },
1189
1188
  };
1190
- const showToast = {
1191
- args: {
1192
- image: false,
1193
- mask: false,
1194
- },
1195
- };
1196
- const showLoading = {
1197
- args: {
1198
- mask: false,
1199
- },
1200
- };
1201
- const showActionSheet = {
1202
- args: {
1203
- itemColor: false,
1204
- },
1205
- };
1206
1189
  const login = {
1207
1190
  args: {
1208
1191
  scopes: false,
@@ -1241,9 +1224,6 @@ var protocols = /*#__PURE__*/Object.freeze({
1241
1224
  redirectTo: redirectTo,
1242
1225
  requestPayment: requestPayment,
1243
1226
  scanCode: scanCode,
1244
- showActionSheet: showActionSheet,
1245
- showLoading: showLoading,
1246
- showToast: showToast,
1247
1227
  startAccelerometer: startAccelerometer
1248
1228
  });
1249
1229
 
@@ -62,7 +62,13 @@ function transformSwiper(node) {
62
62
  }
63
63
  }
64
64
 
65
- const customElements = ['aweme-data'];
65
+ const customElements = [
66
+ 'aweme-data',
67
+ 'consume-card',
68
+ 'pay-button',
69
+ 'rate-button',
70
+ 'member-button',
71
+ ];
66
72
  const projectConfigFilename = 'project.config.json';
67
73
  const nodeTransforms = [
68
74
  uniCliShared.transformRef,
@@ -1,5 +1,5 @@
1
1
  import { SLOT_DEFAULT_NAME, EventChannel, invokeArrayFns, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, ON_LOAD, ON_SHOW, ON_HIDE, ON_UNLOAD, ON_RESIZE, ON_TAB_ITEM_TAP, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH, ON_ADD_TO_FAVORITES, isUniLifecycleHook, ON_READY, once, ON_LAUNCH, ON_ERROR, ON_THEME_CHANGE, ON_PAGE_NOT_FOUND, ON_UNHANDLE_REJECTION, addLeadingSlash, stringifyQuery, customizeEvent } from '@dcloudio/uni-shared';
2
- import { isArray, hasOwn, isFunction, extend, isPlainObject, isObject } from '@vue/shared';
2
+ import { isArray, isFunction, hasOwn, extend, isPlainObject, isObject } from '@vue/shared';
3
3
  import { ref, nextTick, findComponentPropsData, toRaw, updateProps, hasQueueJob, invalidateJob, devtoolsComponentAdded, getExposeProxy, pruneComponentPropsCache } from 'vue';
4
4
  import { normalizeLocale, LOCALE_EN } from '@dcloudio/uni-i18n';
5
5
 
@@ -88,7 +88,10 @@ function callHook(name, args) {
88
88
  name = 'm';
89
89
  }
90
90
  {
91
- if (name === 'onLoad' && args && args.__id__) {
91
+ if (name === 'onLoad' &&
92
+ args &&
93
+ args.__id__ &&
94
+ isFunction(tt.getEventChannel)) {
92
95
  this.__eventChannel__ = tt.getEventChannel(args.__id__);
93
96
  delete args.__id__;
94
97
  }
@@ -431,14 +434,18 @@ function initDefaultProps(options, isBehavior = false) {
431
434
  if (options.behaviors) {
432
435
  // wx://form-field
433
436
  if (options.behaviors.includes('tt://form-field')) {
434
- properties.name = {
435
- type: null,
436
- value: '',
437
- };
438
- properties.value = {
439
- type: null,
440
- value: '',
441
- };
437
+ if (!options.properties || !options.properties.name) {
438
+ properties.name = {
439
+ type: null,
440
+ value: '',
441
+ };
442
+ }
443
+ if (!options.properties || !options.properties.value) {
444
+ properties.value = {
445
+ type: null,
446
+ value: '',
447
+ };
448
+ }
442
449
  }
443
450
  }
444
451
  return properties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-mp-toutiao",
3
- "version": "3.0.0-alpha-3080420230602001",
3
+ "version": "3.0.0-alpha-3080520230612002",
4
4
  "description": "uni-app mp-toutiao",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
28
28
  "dependencies": {
29
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3080420230602001",
30
- "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3080420230602001",
31
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-3080420230602001",
32
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-3080420230602001",
33
- "@dcloudio/uni-shared": "3.0.0-alpha-3080420230602001",
29
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3080520230612002",
30
+ "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3080520230612002",
31
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-3080520230612002",
32
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-3080520230612002",
33
+ "@dcloudio/uni-shared": "3.0.0-alpha-3080520230612002",
34
34
  "@vue/shared": "3.2.47",
35
35
  "@vue/compiler-core": "3.2.47"
36
36
  }