@dcloudio/uni-shared
Advanced tools
Comparing version 3.0.0-alpha-3021220211105011 to 3.0.0-alpha-3021320211109002
@@ -75,80 +75,17 @@ 'use strict'; | ||
} | ||
function isH5CustomElement(tag) { | ||
function isCustomElement(tag) { | ||
return TAGS.indexOf(tag) !== -1 || BUILT_IN_TAGS.indexOf(tag) !== -1; | ||
} | ||
function isH5NativeTag(tag) { | ||
function isNativeTag(tag) { | ||
return (shared.isHTMLTag(tag) || shared.isSVGTag(tag)) && !isBuiltInComponent(tag); | ||
} | ||
function isNativeTag(tag) { | ||
function isServiceNativeTag(tag) { | ||
return shared.isHTMLTag(tag) || shared.isSVGTag(tag) || isBuiltInComponent(tag); | ||
} | ||
function isCustomElement(_tag) { | ||
function isServiceCustomElement(_tag) { | ||
return false; | ||
} | ||
function isComponentTag(tag) { | ||
return tag[0].toLowerCase() + tag.slice(1) === 'component'; | ||
} | ||
const COMPONENT_SELECTOR_PREFIX = 'uni-'; | ||
const COMPONENT_PREFIX = 'v-' + COMPONENT_SELECTOR_PREFIX; | ||
const LINEFEED = '\n'; | ||
const NAVBAR_HEIGHT = 44; | ||
const TABBAR_HEIGHT = 50; | ||
const ON_REACH_BOTTOM_DISTANCE = 50; | ||
const RESPONSIVE_MIN_WIDTH = 768; | ||
// quickapp-webview 不能使用 default 作为插槽名称 | ||
const SLOT_DEFAULT_NAME = 'd'; | ||
const COMPONENT_NAME_PREFIX = 'VUni'; | ||
const I18N_JSON_DELIMITERS = ['%', '%']; | ||
const PRIMARY_COLOR = '#007aff'; | ||
const SELECTED_COLOR = '#0062cc'; // 选中的颜色,如选项卡默认的选中颜色 | ||
const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 | ||
const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_TITLE = 'title'; | ||
const UNI_SSR_STORE = 'store'; | ||
const UNI_SSR_DATA = 'data'; | ||
const UNI_SSR_GLOBAL_DATA = 'globalData'; | ||
const SCHEME_RE = /^([a-z-]+:)?\/\//i; | ||
const DATA_RE = /^data:.*,.*/; | ||
const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; | ||
const WXS_PROTOCOL = 'wxs://'; | ||
const JSON_PROTOCOL = 'json://'; | ||
const WXS_MODULES = 'wxsModules'; | ||
const RENDERJS_MODULES = 'renderjsModules'; | ||
// lifecycle | ||
// App and Page | ||
const ON_SHOW = 'onShow'; | ||
const ON_HIDE = 'onHide'; | ||
//App | ||
const ON_LAUNCH = 'onLaunch'; | ||
const ON_ERROR = 'onError'; | ||
const ON_THEME_CHANGE = 'onThemeChange'; | ||
const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; | ||
const ON_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
const ON_UNLOAD = 'onUnload'; | ||
const ON_RESIZE = 'onResize'; | ||
const ON_BACK_PRESS = 'onBackPress'; | ||
const ON_PAGE_SCROLL = 'onPageScroll'; | ||
const ON_TAB_ITEM_TAP = 'onTabItemTap'; | ||
const ON_REACH_BOTTOM = 'onReachBottom'; | ||
const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; | ||
const ON_SHARE_TIMELINE = 'onShareTimeline'; | ||
const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; | ||
const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; | ||
// navigationBar | ||
const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; | ||
// framework | ||
const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; | ||
const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; | ||
const ON_WEB_INVOKE_APP_SERVICE = 'onWebInvokeAppService'; | ||
const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; | ||
function resolveOwnerVm(vm) { | ||
@@ -185,5 +122,2 @@ if (!vm) { | ||
} | ||
function dynamicSlotName(name) { | ||
return name === 'default' ? SLOT_DEFAULT_NAME : name; | ||
} | ||
@@ -239,7 +173,2 @@ let lastLogTime = 0; | ||
}; | ||
const defaultMiniProgramRpx2Unit = { | ||
unit: 'rpx', | ||
unitRatio: 1, | ||
unitPrecision: 1, | ||
}; | ||
function createRpx2Unit(unit, unitRatio, unitPrecision) { | ||
@@ -251,5 +180,2 @@ // ignore: rpxCalcIncludeWidth | ||
} | ||
if (unitRatio === 1) { | ||
return `${$1}${unit}`; | ||
} | ||
const value = toFixed(parseFloat($1) * unitRatio, unitPrecision); | ||
@@ -483,14 +409,2 @@ return value === 0 ? '0' : `${value}${unit}`; | ||
function getDataByPath(obj, path) { | ||
const parts = path.split('.'); | ||
const key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getDataByPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function plusReady(callback) { | ||
@@ -1039,2 +953,59 @@ if (typeof callback !== 'function') { | ||
const NAVBAR_HEIGHT = 44; | ||
const TABBAR_HEIGHT = 50; | ||
const ON_REACH_BOTTOM_DISTANCE = 50; | ||
const RESPONSIVE_MIN_WIDTH = 768; | ||
const COMPONENT_NAME_PREFIX = 'VUni'; | ||
const I18N_JSON_DELIMITERS = ['%', '%']; | ||
const PRIMARY_COLOR = '#007aff'; | ||
const SELECTED_COLOR = '#0062cc'; // 选中的颜色,如选项卡默认的选中颜色 | ||
const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 | ||
const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_TITLE = 'title'; | ||
const UNI_SSR_STORE = 'store'; | ||
const UNI_SSR_DATA = 'data'; | ||
const UNI_SSR_GLOBAL_DATA = 'globalData'; | ||
const SCHEME_RE = /^([a-z-]+:)?\/\//i; | ||
const DATA_RE = /^data:.*,.*/; | ||
const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; | ||
const WXS_PROTOCOL = 'wxs://'; | ||
const JSON_PROTOCOL = 'json://'; | ||
const WXS_MODULES = 'wxsModules'; | ||
const RENDERJS_MODULES = 'renderjsModules'; | ||
// lifecycle | ||
// App and Page | ||
const ON_SHOW = 'onShow'; | ||
const ON_HIDE = 'onHide'; | ||
//App | ||
const ON_LAUNCH = 'onLaunch'; | ||
const ON_ERROR = 'onError'; | ||
const ON_THEME_CHANGE = 'onThemeChange'; | ||
const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; | ||
const ON_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
const ON_UNLOAD = 'onUnload'; | ||
const ON_RESIZE = 'onResize'; | ||
const ON_BACK_PRESS = 'onBackPress'; | ||
const ON_PAGE_SCROLL = 'onPageScroll'; | ||
const ON_TAB_ITEM_TAP = 'onTabItemTap'; | ||
const ON_REACH_BOTTOM = 'onReachBottom'; | ||
const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; | ||
const ON_SHARE_TIMELINE = 'onShareTimeline'; | ||
const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; | ||
const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; | ||
// navigationBar | ||
const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; | ||
// framework | ||
const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; | ||
const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; | ||
const ON_WEB_INVOKE_APP_SERVICE = 'onWebInvokeAppService'; | ||
const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; | ||
class EventChannel { | ||
@@ -1179,3 +1150,2 @@ constructor(id, events) { | ||
exports.JSON_PROTOCOL = JSON_PROTOCOL; | ||
exports.LINEFEED = LINEFEED; | ||
exports.NAVBAR_HEIGHT = NAVBAR_HEIGHT; | ||
@@ -1222,3 +1192,2 @@ exports.NODE_TYPE_COMMENT = NODE_TYPE_COMMENT; | ||
exports.SELECTED_COLOR = SELECTED_COLOR; | ||
exports.SLOT_DEFAULT_NAME = SLOT_DEFAULT_NAME; | ||
exports.TABBAR_HEIGHT = TABBAR_HEIGHT; | ||
@@ -1252,5 +1221,3 @@ exports.TAGS = TAGS; | ||
exports.decodedQuery = decodedQuery; | ||
exports.defaultMiniProgramRpx2Unit = defaultMiniProgramRpx2Unit; | ||
exports.defaultRpx2Unit = defaultRpx2Unit; | ||
exports.dynamicSlotName = dynamicSlotName; | ||
exports.formatAppLog = formatAppLog; | ||
@@ -1260,3 +1227,2 @@ exports.formatDateTime = formatDateTime; | ||
exports.getCustomDataset = getCustomDataset; | ||
exports.getDataByPath = getDataByPath; | ||
exports.getEnvLocale = getEnvLocale; | ||
@@ -1268,8 +1234,7 @@ exports.getLen = getLen; | ||
exports.isBuiltInComponent = isBuiltInComponent; | ||
exports.isComponentTag = isComponentTag; | ||
exports.isCustomElement = isCustomElement; | ||
exports.isH5CustomElement = isH5CustomElement; | ||
exports.isH5NativeTag = isH5NativeTag; | ||
exports.isNativeTag = isNativeTag; | ||
exports.isRootHook = isRootHook; | ||
exports.isServiceCustomElement = isServiceCustomElement; | ||
exports.isServiceNativeTag = isServiceNativeTag; | ||
exports.normalizeDataset = normalizeDataset; | ||
@@ -1276,0 +1241,0 @@ exports.normalizeEventType = normalizeEventType; |
@@ -1,5 +0,5 @@ | ||
import type { ComponentInternalInstance } from '@vue/runtime-core'; | ||
import { ComponentOptionsBase } from '@vue/runtime-core'; | ||
import { ComponentPublicInstance } from '@vue/runtime-core'; | ||
import { RendererNode } from '@vue/runtime-core'; | ||
import { ComponentInternalInstance } from 'vue'; | ||
import { ComponentOptionsBase } from 'vue'; | ||
import { ComponentPublicInstance } from 'vue'; | ||
import { RendererNode } from 'vue'; | ||
@@ -135,8 +135,2 @@ export declare const ACTION_TYPE_ADD_EVENT = 8; | ||
export declare const defaultMiniProgramRpx2Unit: { | ||
unit: string; | ||
unitRatio: number; | ||
unitPrecision: number; | ||
}; | ||
export declare const defaultRpx2Unit: { | ||
@@ -150,4 +144,2 @@ unit: string; | ||
export declare function dynamicSlotName(name: string): string; | ||
export declare class EventChannel { | ||
@@ -188,4 +180,2 @@ id?: number; | ||
export declare function getDataByPath(obj: Record<string | number, any>, path: string): unknown; | ||
export declare function getEnvLocale(): string; | ||
@@ -216,14 +206,12 @@ | ||
export declare function isComponentTag(tag: string): boolean; | ||
export declare function isCustomElement(tag: string): boolean; | ||
export declare function isCustomElement(_tag: string): boolean; | ||
export declare function isNativeTag(tag: string): boolean; | ||
export declare function isH5CustomElement(tag: string): boolean; | ||
export declare function isRootHook(name: string): boolean; | ||
export declare function isH5NativeTag(tag: string): boolean; | ||
export declare function isServiceCustomElement(_tag: string): boolean; | ||
export declare function isNativeTag(tag: string): boolean; | ||
export declare function isServiceNativeTag(tag: string): boolean; | ||
export declare function isRootHook(name: string): boolean; | ||
export declare interface IUniPageNode { | ||
@@ -249,4 +237,2 @@ pageId: number; | ||
export declare const LINEFEED = "\n"; | ||
export declare const NAVBAR_HEIGHT = 44; | ||
@@ -470,4 +456,2 @@ | ||
export declare const SLOT_DEFAULT_NAME = "d"; | ||
export declare function stringifyQuery(obj?: Record<string, any>, encodeStr?: typeof encodeURIComponent): string; | ||
@@ -474,0 +458,0 @@ |
@@ -71,80 +71,17 @@ import { isHTMLTag, isSVGTag, hyphenate, camelize, extend, isString, isPlainObject, isArray, toTypeString, toRawType, capitalize } from '@vue/shared'; | ||
} | ||
function isH5CustomElement(tag) { | ||
function isCustomElement(tag) { | ||
return TAGS.indexOf(tag) !== -1 || BUILT_IN_TAGS.indexOf(tag) !== -1; | ||
} | ||
function isH5NativeTag(tag) { | ||
function isNativeTag(tag) { | ||
return (isHTMLTag(tag) || isSVGTag(tag)) && !isBuiltInComponent(tag); | ||
} | ||
function isNativeTag(tag) { | ||
function isServiceNativeTag(tag) { | ||
return isHTMLTag(tag) || isSVGTag(tag) || isBuiltInComponent(tag); | ||
} | ||
function isCustomElement(_tag) { | ||
function isServiceCustomElement(_tag) { | ||
return false; | ||
} | ||
function isComponentTag(tag) { | ||
return tag[0].toLowerCase() + tag.slice(1) === 'component'; | ||
} | ||
const COMPONENT_SELECTOR_PREFIX = 'uni-'; | ||
const COMPONENT_PREFIX = 'v-' + COMPONENT_SELECTOR_PREFIX; | ||
const LINEFEED = '\n'; | ||
const NAVBAR_HEIGHT = 44; | ||
const TABBAR_HEIGHT = 50; | ||
const ON_REACH_BOTTOM_DISTANCE = 50; | ||
const RESPONSIVE_MIN_WIDTH = 768; | ||
// quickapp-webview 不能使用 default 作为插槽名称 | ||
const SLOT_DEFAULT_NAME = 'd'; | ||
const COMPONENT_NAME_PREFIX = 'VUni'; | ||
const I18N_JSON_DELIMITERS = ['%', '%']; | ||
const PRIMARY_COLOR = '#007aff'; | ||
const SELECTED_COLOR = '#0062cc'; // 选中的颜色,如选项卡默认的选中颜色 | ||
const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 | ||
const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_TITLE = 'title'; | ||
const UNI_SSR_STORE = 'store'; | ||
const UNI_SSR_DATA = 'data'; | ||
const UNI_SSR_GLOBAL_DATA = 'globalData'; | ||
const SCHEME_RE = /^([a-z-]+:)?\/\//i; | ||
const DATA_RE = /^data:.*,.*/; | ||
const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; | ||
const WXS_PROTOCOL = 'wxs://'; | ||
const JSON_PROTOCOL = 'json://'; | ||
const WXS_MODULES = 'wxsModules'; | ||
const RENDERJS_MODULES = 'renderjsModules'; | ||
// lifecycle | ||
// App and Page | ||
const ON_SHOW = 'onShow'; | ||
const ON_HIDE = 'onHide'; | ||
//App | ||
const ON_LAUNCH = 'onLaunch'; | ||
const ON_ERROR = 'onError'; | ||
const ON_THEME_CHANGE = 'onThemeChange'; | ||
const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; | ||
const ON_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
const ON_UNLOAD = 'onUnload'; | ||
const ON_RESIZE = 'onResize'; | ||
const ON_BACK_PRESS = 'onBackPress'; | ||
const ON_PAGE_SCROLL = 'onPageScroll'; | ||
const ON_TAB_ITEM_TAP = 'onTabItemTap'; | ||
const ON_REACH_BOTTOM = 'onReachBottom'; | ||
const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; | ||
const ON_SHARE_TIMELINE = 'onShareTimeline'; | ||
const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; | ||
const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; | ||
// navigationBar | ||
const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; | ||
// framework | ||
const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; | ||
const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; | ||
const ON_WEB_INVOKE_APP_SERVICE = 'onWebInvokeAppService'; | ||
const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; | ||
function resolveOwnerVm(vm) { | ||
@@ -181,5 +118,2 @@ if (!vm) { | ||
} | ||
function dynamicSlotName(name) { | ||
return name === 'default' ? SLOT_DEFAULT_NAME : name; | ||
} | ||
@@ -235,7 +169,2 @@ let lastLogTime = 0; | ||
}; | ||
const defaultMiniProgramRpx2Unit = { | ||
unit: 'rpx', | ||
unitRatio: 1, | ||
unitPrecision: 1, | ||
}; | ||
function createRpx2Unit(unit, unitRatio, unitPrecision) { | ||
@@ -247,5 +176,2 @@ // ignore: rpxCalcIncludeWidth | ||
} | ||
if (unitRatio === 1) { | ||
return `${$1}${unit}`; | ||
} | ||
const value = toFixed(parseFloat($1) * unitRatio, unitPrecision); | ||
@@ -479,14 +405,2 @@ return value === 0 ? '0' : `${value}${unit}`; | ||
function getDataByPath(obj, path) { | ||
const parts = path.split('.'); | ||
const key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getDataByPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function plusReady(callback) { | ||
@@ -1035,2 +949,59 @@ if (typeof callback !== 'function') { | ||
const NAVBAR_HEIGHT = 44; | ||
const TABBAR_HEIGHT = 50; | ||
const ON_REACH_BOTTOM_DISTANCE = 50; | ||
const RESPONSIVE_MIN_WIDTH = 768; | ||
const COMPONENT_NAME_PREFIX = 'VUni'; | ||
const I18N_JSON_DELIMITERS = ['%', '%']; | ||
const PRIMARY_COLOR = '#007aff'; | ||
const SELECTED_COLOR = '#0062cc'; // 选中的颜色,如选项卡默认的选中颜色 | ||
const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 | ||
const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_TITLE = 'title'; | ||
const UNI_SSR_STORE = 'store'; | ||
const UNI_SSR_DATA = 'data'; | ||
const UNI_SSR_GLOBAL_DATA = 'globalData'; | ||
const SCHEME_RE = /^([a-z-]+:)?\/\//i; | ||
const DATA_RE = /^data:.*,.*/; | ||
const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; | ||
const WXS_PROTOCOL = 'wxs://'; | ||
const JSON_PROTOCOL = 'json://'; | ||
const WXS_MODULES = 'wxsModules'; | ||
const RENDERJS_MODULES = 'renderjsModules'; | ||
// lifecycle | ||
// App and Page | ||
const ON_SHOW = 'onShow'; | ||
const ON_HIDE = 'onHide'; | ||
//App | ||
const ON_LAUNCH = 'onLaunch'; | ||
const ON_ERROR = 'onError'; | ||
const ON_THEME_CHANGE = 'onThemeChange'; | ||
const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; | ||
const ON_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
const ON_UNLOAD = 'onUnload'; | ||
const ON_RESIZE = 'onResize'; | ||
const ON_BACK_PRESS = 'onBackPress'; | ||
const ON_PAGE_SCROLL = 'onPageScroll'; | ||
const ON_TAB_ITEM_TAP = 'onTabItemTap'; | ||
const ON_REACH_BOTTOM = 'onReachBottom'; | ||
const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; | ||
const ON_SHARE_TIMELINE = 'onShareTimeline'; | ||
const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; | ||
const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; | ||
// navigationBar | ||
const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; | ||
const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; | ||
// framework | ||
const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; | ||
const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; | ||
const ON_WEB_INVOKE_APP_SERVICE = 'onWebInvokeAppService'; | ||
const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; | ||
class EventChannel { | ||
@@ -1144,2 +1115,2 @@ constructor(id, events) { | ||
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, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, 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_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, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, cache, cacheStringFunction, callOptions, createRpx2Unit, createUniEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultRpx2Unit, dynamicSlotName, formatAppLog, formatDateTime, formatLog, getCustomDataset, getDataByPath, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isBuiltInComponent, isComponentTag, isCustomElement, isH5CustomElement, isH5NativeTag, isNativeTag, isRootHook, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, 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, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, 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_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, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, cache, cacheStringFunction, callOptions, createRpx2Unit, createUniEvent, debounce, decode, decodedQuery, defaultRpx2Unit, formatAppLog, formatDateTime, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isBuiltInComponent, isCustomElement, isNativeTag, isRootHook, isServiceCustomElement, isServiceNativeTag, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle }; |
{ | ||
"name": "@dcloudio/uni-shared", | ||
"version": "3.0.0-alpha-3021220211105011", | ||
"version": "3.0.0-alpha-3021320211109002", | ||
"description": "@dcloudio/uni-shared", | ||
@@ -21,6 +21,3 @@ "main": "./dist/uni-shared.cjs.js", | ||
}, | ||
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da", | ||
"devDependencies": { | ||
"@vue/runtime-core": "^3.2.21" | ||
} | ||
"gitHead": "dca99147c88fcaeba9da61743ad26cb72c4dc417" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
0
106524
2799