提交 aa71541d 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 98f83285
......@@ -2257,6 +2257,8 @@ function initLaunchOptions({ path, query, referrerInfo, }) {
path,
query: query ? parseQuery(query) : {},
referrerInfo: referrerInfo || {},
channel: plus.runtime.channel,
launcher: plus.runtime.launcher,
});
extend(enterOptions, launchOptions);
return extend({}, launchOptions);
......@@ -13260,9 +13262,12 @@ function getScreenInfo() {
};
}
const getSystemInfoSync = defineSyncApi('getSystemInfoSync', () => {
const platform = plus.os.name.toLowerCase();
const ios = platform === 'ios';
const isAndroid = platform === 'android';
const { getSystemInfoSync } = weex.requireModule('plus');
const info = getSystemInfoSync();
const { deviceBrand, deviceModel, osName, osVersion, osLanguage } = info;
const brand = deviceBrand.toLowerCase();
const _osName = osName.toLowerCase();
const ios = _osName === 'ios';
const { screenWidth, screenHeight } = getScreenInfo();
const statusBarHeight = getStatusbarHeight();
let safeAreaInsets;
......@@ -13322,19 +13327,19 @@ const getSystemInfoSync = defineSyncApi('getSystemInfoSync', () => {
width: windowWidth - safeAreaInsets.left - safeAreaInsets.right,
height: windowHeightReal - safeAreaInsets.top - safeAreaInsets.bottom,
};
return {
brand: plus.device.vendor,
model: plus.device.model,
return extend({
brand: brand,
model: deviceModel,
pixelRatio: plus.screen.scale,
screenWidth,
screenHeight,
windowWidth,
windowHeight,
statusBarHeight,
language: plus.os.language,
system: `${ios ? 'iOS' : isAndroid ? 'Android' : ''} ${plus.os.version}`,
language: osLanguage,
system: `${osName} ${osVersion}`,
version: plus.runtime.innerVersion,
platform,
platform: _osName,
SDKVersion: '',
windowTop,
windowBottom,
......@@ -13346,7 +13351,10 @@ const getSystemInfoSync = defineSyncApi('getSystemInfoSync', () => {
left: safeAreaInsets.left,
},
deviceId: deviceId$1(),
};
}, info, {
deviceBrand: brand,
osName: _osName,
});
});
const getSystemInfo = defineAsyncApi('getSystemInfo', (_, { resolve }) => {
return resolve(getSystemInfoSync());
......
......@@ -32,7 +32,7 @@
"@vue/compiler-sfc": "3.2.33",
"@vue/server-renderer": "3.2.33",
"@vue/shared": "3.2.33",
"autoprefixer": "^10.4.5",
"autoprefixer": "^10.4.6",
"base64url": "^3.0.1",
"chokidar": "^3.5.3",
"compare-versions": "^3.6.0",
......
......@@ -5049,6 +5049,7 @@ function parseNodes(nodes, parentNode, scopeId, triggerItemClick) {
if (!elem) {
return;
}
scopeId && elem.setAttribute(scopeId, "");
const attrs = node.attrs;
if (shared.isPlainObject(attrs)) {
const tagAttrs = TAGS[tagName] || [];
......@@ -5059,7 +5060,6 @@ function parseNodes(nodes, parentNode, scopeId, triggerItemClick) {
Array.isArray(value) && (value = value.join(" "));
case "style":
elem.setAttribute(name, value);
scopeId && elem.setAttribute(scopeId, "");
break;
default:
if (tagAttrs.indexOf(name) !== -1) {
......@@ -6458,10 +6458,14 @@ const props$a = /* @__PURE__ */ shared.extend({}, props$k, {
},
confirmType: {
type: String,
default: ""
default: "return",
validator(val) {
return ConfirmTypes.concat("return").includes(val);
}
}
});
let fixMargin = false;
const ConfirmTypes = ["done", "go", "next", "search", "send"];
var index$i = /* @__PURE__ */ defineBuiltInComponent({
name: "Textarea",
props: props$a,
......@@ -6478,7 +6482,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
trigger
} = useField(props2, rootRef, emit2);
const valueCompute = vue.computed(() => state.value.split(uniShared.LINEFEED));
const isDone = vue.computed(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType));
const isDone = vue.computed(() => ConfirmTypes.includes(props2.confirmType));
const heightRef = vue.ref(0);
const lineRef = vue.ref(null);
vue.watch(() => heightRef.value, (height) => {
......
import { withModifiers, createVNode, getCurrentInstance, ref, defineComponent, openBlock, createElementBlock, provide, computed, watch, onUnmounted, inject, onBeforeUnmount, mergeProps, injectHook, reactive, onActivated, onMounted, nextTick, onBeforeMount, withDirectives, vShow, shallowRef, watchEffect, isVNode, Fragment, markRaw, Comment, createTextVNode, onBeforeActivate, onBeforeDeactivate, createBlock, renderList, onDeactivated, createApp, Transition, effectScope, withCtx, KeepAlive, resolveDynamicComponent, createElementVNode, normalizeStyle, renderSlot } from "vue";
import { isString, extend, isArray, remove, stringifyStyle, parseStringStyle, isPlainObject, isFunction, capitalize, camelize, hasOwn, isObject, toRawType, makeMap as makeMap$1, isPromise, hyphenate, invokeArrayFns as invokeArrayFns$1 } from "@vue/shared";
import { once, UNI_STORAGE_LOCALE, I18N_JSON_DELIMITERS, Emitter, passive, initCustomDatasetOnce, resolveComponentInstance, addLeadingSlash, invokeArrayFns, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, LINEFEED, ON_ERROR, callOptions, ON_UNHANDLE_REJECTION, ON_PAGE_NOT_FOUND, PRIMARY_COLOR, removeLeadingSlash, getLen, debounce, ON_LOAD, UniLifecycleHooks, invokeCreateVueAppHook, NAVBAR_HEIGHT, parseQuery, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, updateElementStyle, ON_BACK_PRESS, parseUrl, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, onCreateVueApp, formatDateTime, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared";
import { once, UNI_STORAGE_LOCALE, I18N_JSON_DELIMITERS, Emitter, passive, initCustomDatasetOnce, resolveComponentInstance, addLeadingSlash, invokeArrayFns, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, LINEFEED, ON_ERROR, callOptions, ON_UNHANDLE_REJECTION, ON_PAGE_NOT_FOUND, PRIMARY_COLOR, removeLeadingSlash, getLen, debounce, ON_LOAD, UniLifecycleHooks, invokeCreateVueAppHook, NAVBAR_HEIGHT, parseQuery, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, updateElementStyle, IEVersion, getDeviceBrand, ON_BACK_PRESS, parseUrl, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, onCreateVueApp, formatDateTime, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared";
export { onCreateVueApp } from "@dcloudio/uni-shared";
import { initVueI18n, isI18nStr, LOCALE_EN, LOCALE_ES, LOCALE_FR, LOCALE_ZH_HANS, LOCALE_ZH_HANT } from "@dcloudio/uni-i18n";
import { useRoute, createRouter, createWebHistory, createWebHashHistory, useRouter, isNavigationFailure, RouterView } from "vue-router";
......@@ -1202,11 +1202,14 @@ function resolveOwnerComponentPublicInstance(eventValue, instance2, checkArgsLen
}
function wrapperH5WxsEvent(event, eventValue, instance2, checkArgsLength = true) {
if (eventValue) {
Object.defineProperty(event, "instance", {
get() {
return getComponentDescriptor(instance2.proxy, false);
}
});
if (!event.__instance) {
event.__instance = true;
Object.defineProperty(event, "instance", {
get() {
return getComponentDescriptor(instance2.proxy, false);
}
});
}
const ownerVm = resolveOwnerComponentPublicInstance(eventValue, instance2, checkArgsLength);
if (ownerVm) {
return [event, getComponentDescriptor(ownerVm, false)];
......@@ -11735,6 +11738,7 @@ function parseNodes(nodes, parentNode, scopeId, triggerItemClick) {
if (!elem) {
return;
}
scopeId && elem.setAttribute(scopeId, "");
const attrs2 = node.attrs;
if (isPlainObject(attrs2)) {
const tagAttrs = TAGS[tagName] || [];
......@@ -11745,7 +11749,6 @@ function parseNodes(nodes, parentNode, scopeId, triggerItemClick) {
Array.isArray(value) && (value = value.join(" "));
case "style":
elem.setAttribute(name, value);
scopeId && elem.setAttribute(scopeId, "");
break;
default:
if (tagAttrs.indexOf(name) !== -1) {
......@@ -13452,10 +13455,14 @@ const props$h = /* @__PURE__ */ extend({}, props$r, {
},
confirmType: {
type: String,
default: ""
default: "return",
validator(val) {
return ConfirmTypes.concat("return").includes(val);
}
}
});
let fixMargin = false;
const ConfirmTypes = ["done", "go", "next", "search", "send"];
function setFixMargin() {
const DARK_TEST_STRING = "(prefers-color-scheme: dark)";
fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING;
......@@ -13476,7 +13483,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({
trigger
} = useField(props2, rootRef, emit2);
const valueCompute = computed(() => state2.value.split(LINEFEED));
const isDone = computed(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType));
const isDone = computed(() => ConfirmTypes.includes(props2.confirmType));
const heightRef = ref(0);
const lineRef = ref(null);
watch(() => heightRef.value, (height) => {
......@@ -16291,6 +16298,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
let osname;
let osversion;
let model = "";
let deviceType = "phone";
if (isIOS$1) {
osname = "iOS";
const osversionFind = ua.match(/OS\s([\w_]+)\slike/);
......@@ -16342,10 +16350,12 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
} else if (isIPadOS) {
model = "iPad";
osname = "iOS";
deviceType = "pad";
osversion = typeof window.BigInt === "function" ? "14.0" : "13.0";
} else if (isWindows || isMac || isLinux) {
model = "PC";
osname = "PC";
deviceType = "pc";
osversion = "0";
let osversionFind = ua.match(/\((.+?)\)/)[1];
if (isWindows) {
......@@ -16396,6 +16406,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
} else {
osname = "Other";
osversion = "0";
deviceType = "other";
}
const system = `${osname} ${osversion}`;
const platform = osname.toLocaleLowerCase();
......@@ -16410,6 +16421,27 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
const { top: windowTop, bottom: windowBottom } = getWindowOffset();
windowHeight -= windowTop;
windowHeight -= windowBottom;
let browserName = "";
let browseVersion = String(IEVersion());
if (browseVersion !== "-1") {
browserName = "IE";
} else {
const browseVendors = ["Version", "Firefox", "Chrome", "Edge{0,1}"];
const vendors = ["Safari", "Firefox", "Chrome", "Edge"];
for (let index2 = 0; index2 < browseVendors.length; index2++) {
const vendor = browseVendors[index2];
const reg = new RegExp(`(${vendor})/(\\S*)\\b`);
if (reg.test(ua)) {
browserName = vendors[index2];
browseVersion = ua.match(reg)[2];
}
}
}
let deviceBrand = "";
if (model) {
const _model = model.toLocaleLowerCase();
deviceBrand = getDeviceBrand(_model) || getDeviceBrand(osname.toLocaleLowerCase()) || _model.split(" ")[0];
}
return {
windowTop,
windowBottom,
......@@ -16422,6 +16454,8 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
statusBarHeight,
system,
platform,
deviceBrand,
deviceType,
model,
safeArea,
safeAreaInsets: {
......@@ -16430,9 +16464,28 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
bottom: out.bottom,
left: out.left
},
version: "",
version: __uniConfig.appVersion,
SDKVersion: "",
deviceId: deviceId$1()
deviceId: deviceId$1(),
ua,
uniPlatform: "web",
browserName,
browseVersion,
osLanguage: language,
osName: osname,
osVersion: osversion,
hostLanguage: language,
uniCompileVersion: __uniConfig.compilerVersion,
uniRuntimeVersion: __uniConfig.compilerVersion,
appId: __uniConfig.appId,
appName: __uniConfig.appName,
appVersion: __uniConfig.appVersion,
appVersionCode: __uniConfig.appVersionCode,
hostName: browserName,
hostVersion: browseVersion,
osTheme: "",
hostTheme: "",
hostPackageName: ""
};
});
const getSystemInfo = /* @__PURE__ */ defineAsyncApi("getSystemInfo", (_args, { resolve }) => {
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
const eventChannels = {};
const eventChannelStack = [];
......@@ -854,18 +854,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = my) {
......@@ -880,6 +868,81 @@ function useDeviceId(global = my) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = platform.toLocaleLowerCase();
osVersion = system;
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.app;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const redirectTo = {};
......@@ -1017,6 +1080,7 @@ function handleSystemInfo(fromRes, toRes) {
useDeviceId({
getStorageSync,
})(fromRes, toRes);
populateParameters(fromRes, toRes);
let platform = fromRes.platform ? fromRes.platform.toLowerCase() : 'devtools';
if (!~['android', 'ios'].indexOf(platform)) {
platform = 'devtools';
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
const eventChannels = {};
const eventChannelStack = [];
......@@ -854,18 +854,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = swan) {
......@@ -880,12 +868,76 @@ function useDeviceId(global = swan) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// host 枚举值 https://smartprogram.baidu.com/docs/develop/api/device_sys/hostlist/
{
hostVersion = fromRes.swanNativeVersion || version;
}
// deviceType
let deviceType = fromRes.deviceType || 'phone';
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.host;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
const eventChannels = {};
const eventChannelStack = [];
......@@ -854,18 +854,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = ks) {
......@@ -880,12 +868,88 @@ function useDeviceId(global = ks) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.host;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
......
......@@ -854,6 +854,107 @@ function initGetProvider(providers) {
};
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = tt) {
return function addDeviceId(_, toRes) {
deviceId = deviceId || global.getStorageSync(UUID_KEY);
if (!deviceId) {
deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
tt.setStorage({
key: UUID_KEY,
data: deviceId,
});
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = brand.toLocaleLowerCase();
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.appName;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
const getSystemInfoSync = getSystemInfo;
const redirectTo = {};
const previewImage = {
......@@ -991,7 +1092,9 @@ var protocols = /*#__PURE__*/Object.freeze({
getFileInfo: getFileInfo,
redirectTo: redirectTo,
navigateTo: navigateTo,
previewImage: previewImage
previewImage: previewImage,
getSystemInfo: getSystemInfo,
getSystemInfoSync: getSystemInfoSync
});
var uni = initUni(shims, protocols);
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
const eventChannels = {};
const eventChannelStack = [];
......@@ -854,18 +854,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = qq) {
......@@ -880,12 +868,88 @@ function useDeviceId(global = qq) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.AppPlatform;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
......
......@@ -854,6 +854,107 @@ function initGetProvider(providers) {
};
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = tt) {
return function addDeviceId(_, toRes) {
deviceId = deviceId || global.getStorageSync(UUID_KEY);
if (!deviceId) {
deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
tt.setStorage({
key: UUID_KEY,
data: deviceId,
});
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = brand.toLocaleLowerCase();
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = fromRes.appName;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
const getSystemInfoSync = getSystemInfo;
const redirectTo = {};
const previewImage = {
......@@ -991,7 +1092,9 @@ var protocols = /*#__PURE__*/Object.freeze({
getFileInfo: getFileInfo,
redirectTo: redirectTo,
navigateTo: navigateTo,
previewImage: previewImage
previewImage: previewImage,
getSystemInfo: getSystemInfo,
getSystemInfoSync: getSystemInfoSync
});
var index = initUni(shims, protocols);
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
function getBaseSystemInfo() {
return wx.getSystemInfoSync()
......@@ -818,18 +818,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = wx) {
......@@ -844,12 +832,88 @@ function useDeviceId(global = wx) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
_hostName = (fromRes.host || {}).env;
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
......
import { isArray, hasOwn, isString, isPlainObject, isObject, capitalize, toRawType, makeMap, isFunction, isPromise, remove, extend } from '@vue/shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared';
import { Emitter, onCreateVueApp, invokeCreateVueAppHook, getDeviceBrand } from '@dcloudio/uni-shared';
const eventChannels = {};
const eventChannelStack = [];
......@@ -854,18 +854,6 @@ function initGetProvider(providers) {
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: Math.abs(fromRes.screenHeight - safeArea.bottom),
};
}
}
const UUID_KEY = '__DC_STAT_UUID';
let deviceId;
function useDeviceId(global = qa) {
......@@ -880,12 +868,87 @@ function useDeviceId(global = qa) {
}
toRes.deviceId = deviceId;
};
}
function addSafeAreaInsets(fromRes, toRes) {
if (fromRes.safeArea) {
const safeArea = fromRes.safeArea;
toRes.safeAreaInsets = {
top: safeArea.top,
left: safeArea.left,
right: fromRes.windowWidth - safeArea.right,
bottom: fromRes.screenHeight - safeArea.bottom,
};
}
}
function populateParameters(fromRes, toRes) {
const { brand, model, system, language, theme, version, hostName, platform } = fromRes;
// osName osVersion
let osName = '';
let osVersion = '';
{
osName = system.split(' ')[0] || '';
osVersion = system.split(' ')[1] || '';
}
let hostVersion = version;
// deviceType
let deviceType = fromRes.deviceType || 'phone';
{
const deviceTypeMaps = {
ipad: 'pad',
windows: 'pc',
mac: 'pc',
};
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
const _model = model.toLocaleLowerCase();
for (let index = 0; index < deviceTypeMapsKeys.length; index++) {
const _m = deviceTypeMapsKeys[index];
if (_model.indexOf(_m) !== -1) {
deviceType = deviceTypeMaps[_m];
break;
}
}
}
// deviceModel
let deviceBrand = model.split(' ')[0].toLocaleLowerCase();
{
deviceBrand = getDeviceBrand(deviceBrand);
}
// hostName
let _hostName = hostName; // mp-jd
// wx.getAccountInfoSync
const parameters = {
appId: process.env.UNI_APP_ID,
appName: process.env.UNI_APP_NAME,
appVersion: process.env.UNI_APP_VERSION_NAME,
appVersionCode: process.env.UNI_APP_VERSION_CODE,
uniCompileVersion: process.env.UNI_COMPILER_VERSION,
uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
uniPlatform: process.env.UNI_PLATFORM,
deviceBrand,
deviceModel: model,
deviceType,
osName,
osVersion,
osLanguage: language,
osTheme: theme,
hostTheme: theme,
hostVersion,
hostLanguage: language,
hostName: _hostName,
// TODO
ua: '',
hostPackageName: '',
browserName: '',
browseVersion: '',
};
extend(toRes, parameters);
}
const getSystemInfo = {
returnValue: (fromRes, toRes) => {
addSafeAreaInsets(fromRes, toRes);
useDeviceId()(fromRes, toRes);
populateParameters(fromRes, toRes);
},
};
......
......@@ -406,6 +406,40 @@ function getValueByDataPath(obj, path) {
return obj[key];
}
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
}
function IEVersion() {
const userAgent = navigator.userAgent;
const isIE = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1;
const isEdge = userAgent.indexOf('Edge') > -1 && !isIE;
const isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf('rv:11.0') > -1;
if (isIE) {
const reIE = new RegExp('MSIE (\\d+\\.\\d+);');
reIE.test(userAgent);
const fIEVersion = parseFloat(RegExp.$1);
if (fIEVersion > 6) {
return fIEVersion;
}
else {
return 6;
}
}
else if (isEdge) {
return -1;
}
else if (isIE11) {
return 11;
}
else {
return -1;
}
}
function getDeviceBrand(model) {
if (/iphone/gi.test(model) || /ipad/gi.test(model) || /mac/gi.test(model)) {
return 'apple';
}
if (/windows/gi.test(model)) {
return 'microsoft';
}
}
function formatKey(key) {
......@@ -1442,6 +1476,7 @@ exports.Emitter = E$1;
exports.EventChannel = EventChannel;
exports.EventModifierFlags = EventModifierFlags;
exports.I18N_JSON_DELIMITERS = I18N_JSON_DELIMITERS;
exports.IEVersion = IEVersion;
exports.JSON_PROTOCOL = JSON_PROTOCOL;
exports.LINEFEED = LINEFEED;
exports.MINI_PROGRAM_PAGE_RUNTIME_HOOKS = MINI_PROGRAM_PAGE_RUNTIME_HOOKS;
......@@ -1533,6 +1568,7 @@ exports.formatDateTime = formatDateTime;
exports.formatH5Log = formatH5Log;
exports.formatLog = formatLog;
exports.getCustomDataset = getCustomDataset;
exports.getDeviceBrand = getDeviceBrand;
exports.getEnvLocale = getEnvLocale;
exports.getLen = getLen;
exports.getValueByDataPath = getValueByDataPath;
......
......@@ -229,6 +229,8 @@ export declare function formatLog(module: string, ...args: any[]): string;
export declare function getCustomDataset(el: HTMLElement | HTMLElementWithDataset): DOMStringMap & Record<string, any>;
export declare function getDeviceBrand(model: string): "apple" | "microsoft" | undefined;
export declare function getEnvLocale(): string;
export declare function getLen(str?: string): number;
......@@ -241,6 +243,8 @@ declare interface HTMLElementWithDataset extends HTMLElement {
export declare const I18N_JSON_DELIMITERS: [string, string];
export declare function IEVersion(): number;
export declare const initCustomDatasetOnce: () => void;
/**
......
......@@ -402,6 +402,40 @@ function getValueByDataPath(obj, path) {
return obj[key];
}
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
}
function IEVersion() {
const userAgent = navigator.userAgent;
const isIE = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1;
const isEdge = userAgent.indexOf('Edge') > -1 && !isIE;
const isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf('rv:11.0') > -1;
if (isIE) {
const reIE = new RegExp('MSIE (\\d+\\.\\d+);');
reIE.test(userAgent);
const fIEVersion = parseFloat(RegExp.$1);
if (fIEVersion > 6) {
return fIEVersion;
}
else {
return 6;
}
}
else if (isEdge) {
return -1;
}
else if (isIE11) {
return 11;
}
else {
return -1;
}
}
function getDeviceBrand(model) {
if (/iphone/gi.test(model) || /ipad/gi.test(model) || /mac/gi.test(model)) {
return 'apple';
}
if (/windows/gi.test(model)) {
return 'microsoft';
}
}
function formatKey(key) {
......@@ -1406,4 +1440,4 @@ function getEnvLocale() {
return (lang && lang.replace(/[.:].*/, '')) || 'en';
}
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_INIT, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SAVE_EXIT_STATE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDatasetOnce, invokeArrayFns, invokeCreateVueAppHook, isAppNVueNativeTag, isAppNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, isRootImmediateHook, normalizeDataset, normalizeEventType, normalizeTarget, onCreateVueApp, once, parseEventName, parseNVueDataset, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle };
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, IEVersion, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_INIT, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SAVE_EXIT_STATE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getDeviceBrand, getEnvLocale, getLen, getValueByDataPath, initCustomDatasetOnce, invokeArrayFns, invokeCreateVueAppHook, isAppNVueNativeTag, isAppNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, isRootImmediateHook, normalizeDataset, normalizeEventType, normalizeTarget, onCreateVueApp, once, parseEventName, parseNVueDataset, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle };
......@@ -46,7 +46,7 @@ importers:
rollup-plugin-vue: ^6.0.0
semver: ^7.3.5
ts-jest: ^27.0.3
typescript: 4.6.3
typescript: 4.6.4
vite: ^2.9.6
vue: 3.2.33
vue-router: ^4.0.14
......@@ -66,7 +66,7 @@ importers:
'@rollup/plugin-replace': 2.4.2_rollup@2.60.2
'@rollup/plugin-strip': 2.1.0_rollup@2.60.2
'@types/jest': 26.0.24
'@typescript-eslint/parser': 5.14.0_eslint@7.32.0+typescript@4.6.3
'@typescript-eslint/parser': 5.14.0_eslint@7.32.0+typescript@4.6.4
'@vitejs/plugin-vue': 2.3.1_vite@2.9.6+vue@3.2.33
'@vitejs/plugin-vue-jsx': 1.3.10
'@vue/reactivity': 3.2.33
......@@ -90,11 +90,11 @@ importers:
rollup-plugin-node-builtins: 2.1.2
rollup-plugin-node-globals: 1.4.0
rollup-plugin-terser: 7.0.2_rollup@2.60.2
rollup-plugin-typescript2: 0.29.0_rollup@2.60.2+typescript@4.6.3
rollup-plugin-typescript2: 0.29.0_rollup@2.60.2+typescript@4.6.4
rollup-plugin-vue: 6.0.0
semver: 7.3.5
ts-jest: 27.1.0_2528360f5083edd4f29e3d452ccadc0f
typescript: 4.6.3
ts-jest: 27.1.0_47d58305135e10b3657e8fdb59182ab7
typescript: 4.6.4
vite: 2.9.6
vue: 3.2.33
vue-router: 4.0.14_vue@3.2.33
......@@ -295,7 +295,7 @@ importers:
'@vue/compiler-sfc': 3.2.33
'@vue/server-renderer': 3.2.33
'@vue/shared': 3.2.33
autoprefixer: ^10.4.5
autoprefixer: ^10.4.6
base64url: ^3.0.1
chokidar: ^3.5.3
compare-versions: ^3.6.0
......@@ -335,7 +335,7 @@ importers:
'@vue/compiler-sfc': 3.2.33
'@vue/server-renderer': 3.2.33_vue@3.2.33
'@vue/shared': 3.2.33
autoprefixer: 10.4.5_postcss@8.4.12
autoprefixer: 10.4.6_postcss@8.4.12
base64url: 3.0.1
chokidar: 3.5.3
compare-versions: 3.6.0
......@@ -2366,8 +2366,8 @@ packages:
lodash.once: 4.1.1
dev: true
/@dcloudio/types/2.6.4:
resolution: {integrity: sha512-Tr3+46YJ/sL4nnAmNSeela5/0g6O2WP6ZFVjkVoBkhHcOwJsRUXm3RblD+B2fjBtZs0IW0Ulxogi/jGoOk0WIA==}
/@dcloudio/types/2.6.6:
resolution: {integrity: sha512-ChLbkLuXfWxaj6VcsCcspIyC9+xIYKAJX++f50oCzUWbApslGwRpJ12wqS9k5Eg5euaHSzmyE0JfpZlNFpBk6w==}
dev: true
/@dcloudio/uni-cli-i18n/2.0.0-alpha-33020211130001:
......@@ -3157,7 +3157,7 @@ packages:
dev: true
optional: true
/@typescript-eslint/parser/5.14.0_eslint@7.32.0+typescript@4.6.3:
/@typescript-eslint/parser/5.14.0_eslint@7.32.0+typescript@4.6.4:
resolution: {integrity: sha512-aHJN8/FuIy1Zvqk4U/gcO/fxeMKyoSv/rS46UXMXOJKVsLQ+iYPuXNbpbH7cBLcpSbmyyFbwrniLx5+kutu1pw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
......@@ -3169,10 +3169,10 @@ packages:
dependencies:
'@typescript-eslint/scope-manager': 5.14.0
'@typescript-eslint/types': 5.14.0
'@typescript-eslint/typescript-estree': 5.14.0_typescript@4.6.3
'@typescript-eslint/typescript-estree': 5.14.0_typescript@4.6.4
debug: 4.3.3
eslint: 7.32.0
typescript: 4.6.3
typescript: 4.6.4
transitivePeerDependencies:
- supports-color
dev: true
......@@ -3190,7 +3190,7 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/@typescript-eslint/typescript-estree/5.14.0_typescript@4.6.3:
/@typescript-eslint/typescript-estree/5.14.0_typescript@4.6.4:
resolution: {integrity: sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
......@@ -3205,8 +3205,8 @@ packages:
globby: 11.0.4
is-glob: 4.0.3
semver: 7.3.5
tsutils: 3.21.0_typescript@4.6.3
typescript: 4.6.3
tsutils: 3.21.0_typescript@4.6.4
typescript: 4.6.4
transitivePeerDependencies:
- supports-color
dev: true
......@@ -3560,15 +3560,15 @@ packages:
resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==}
engines: {node: '>= 4.0.0'}
/autoprefixer/10.4.5_postcss@8.4.12:
resolution: {integrity: sha512-Fvd8yCoA7lNX/OUllvS+aS1I7WRBclGXsepbvT8ZaPgrH24rgXpZzF0/6Hh3ZEkwg+0AES/Osd196VZmYoEFtw==}
/autoprefixer/10.4.6_postcss@8.4.12:
resolution: {integrity: sha512-Rvzel0AZO9tJNm3ydySK80PpkWoEZTGC5bHUh/xbrP8qJCy08NFBwNGPcozy3d3SDIM0b2kNxw2K7jAIYFF01A==}
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
postcss: ^8.1.0
dependencies:
browserslist: 4.20.2
caniuse-lite: 1.0.30001332
browserslist: 4.20.3
caniuse-lite: 1.0.30001335
fraction.js: 4.2.0
normalize-range: 0.1.2
picocolors: 1.0.0
......@@ -3866,6 +3866,18 @@ packages:
node-releases: 2.0.2
picocolors: 1.0.0
/browserslist/4.20.3:
resolution: {integrity: sha512-NBhymBQl1zM0Y5dQT/O+xiLP9/rzOIQdKM/eMJBAq7yBgaB6krIYLGejrwVYnSHZdqjscB1SPuAjHwxjvN6Wdg==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
caniuse-lite: 1.0.30001335
electron-to-chromium: 1.4.129
escalade: 3.1.1
node-releases: 2.0.4
picocolors: 1.0.0
dev: false
/bs-logger/0.2.6:
resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==}
engines: {node: '>= 6'}
......@@ -3952,8 +3964,8 @@ packages:
/caniuse-lite/1.0.30001317:
resolution: {integrity: sha512-xIZLh8gBm4dqNX0gkzrBeyI86J2eCjWzYAs40q88smG844YIrN4tVQl/RhquHvKEKImWWFIVh1Lxe5n1G/N+GQ==}
/caniuse-lite/1.0.30001332:
resolution: {integrity: sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==}
/caniuse-lite/1.0.30001335:
resolution: {integrity: sha512-ddP1Tgm7z2iIxu6QTtbZUv6HJxSaV/PZeSrWFZtbY4JZ69tOeNhBCl3HyRQgeNZKE5AOn1kpV7fhljigy0Ty3w==}
dev: false
/caseless/0.12.0:
......@@ -4571,6 +4583,10 @@ packages:
resolution: {integrity: sha512-2OhsaYgsWGhWjx2et8kaUcdktPbBGjKM2X0BReUCKcSCPttEY+hz2zie820JLbttU8jwL92+JJysWwkut3wZgA==}
dev: true
/electron-to-chromium/1.4.129:
resolution: {integrity: sha512-GgtN6bsDtHdtXJtlMYZWGB/uOyjZWjmRDumXTas7dGBaB9zUyCjzHet1DY2KhyHN8R0GLbzZWqm4efeddqqyRQ==}
dev: false
/electron-to-chromium/1.4.52:
resolution: {integrity: sha512-JGkh8HEh5PnVrhU4HbpyyO0O791dVY6k7AdqfDeqbcRMeoGxtNHWT77deR2nhvbLe4dKpxjlDEvdEwrvRLGu2Q==}
dev: true
......@@ -7159,6 +7175,10 @@ packages:
/node-releases/2.0.2:
resolution: {integrity: sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==}
/node-releases/2.0.4:
resolution: {integrity: sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==}
dev: false
/normalize-path/1.0.0:
resolution: {integrity: sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=}
engines: {node: '>=0.10.0'}
......@@ -7976,7 +7996,7 @@ packages:
- acorn
dev: true
/rollup-plugin-typescript2/0.29.0_rollup@2.60.2+typescript@4.6.3:
/rollup-plugin-typescript2/0.29.0_rollup@2.60.2+typescript@4.6.4:
resolution: {integrity: sha512-YytahBSZCIjn/elFugEGQR5qTsVhxhUwGZIsA9TmrSsC88qroGo65O5HZP/TTArH2dm0vUmYWhKchhwi2wL9bw==}
peerDependencies:
rollup: '>=1.26.3'
......@@ -7988,7 +8008,7 @@ packages:
resolve: 1.17.0
rollup: 2.60.2
tslib: 2.0.1
typescript: 4.6.3
typescript: 4.6.4
dev: true
/rollup-plugin-vue/6.0.0:
......@@ -8482,7 +8502,7 @@ packages:
punycode: 2.1.1
dev: true
/ts-jest/27.1.0_2528360f5083edd4f29e3d452ccadc0f:
/ts-jest/27.1.0_47d58305135e10b3657e8fdb59182ab7:
resolution: {integrity: sha512-ZouWlP03JMtzfNHg0ZeDrxAESYGmVhWyHtIl2/01kBbXaMbTr4Vhv6/GeMxUed6GFg/4ycMo+yU6Eo9gI16xTQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
hasBin: true
......@@ -8510,7 +8530,7 @@ packages:
lodash.memoize: 4.1.2
make-error: 1.3.6
semver: 7.3.5
typescript: 4.6.3
typescript: 4.6.4
yargs-parser: 20.2.9
dev: true
......@@ -8526,14 +8546,14 @@ packages:
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
dev: true
/tsutils/3.21.0_typescript@4.6.3:
/tsutils/3.21.0_typescript@4.6.4:
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}
peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies:
tslib: 1.14.1
typescript: 4.6.3
typescript: 4.6.4
dev: true
/tunnel-agent/0.6.0:
......@@ -8603,8 +8623,8 @@ packages:
hasBin: true
dev: true
/typescript/4.6.3:
resolution: {integrity: sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==}
/typescript/4.6.4:
resolution: {integrity: sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
......
......@@ -37,16 +37,16 @@ const pkgs = {
latest: '1.8.1',
},
'@dcloudio/types': {
latest: '2.6.4',
latest: '2.6.6',
},
autoprefixer: {
latest: '10.4.5',
latest: '10.4.6',
},
'rollup-plugin-copy': {
latest: '3.4.0',
},
typescript: {
latest: '4.6.3',
latest: '4.6.4',
},
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册