@dcloudio/uni-app
Advanced tools
Comparing version 3.0.0-alpha-3000020210708001 to 3.0.0-alpha-3000020210719001
@@ -8,42 +8,32 @@ 'use strict'; | ||
const EVENT_MAP = { | ||
onClick: '.e0', | ||
onChange: '.e1', | ||
onInput: '.e2', | ||
onLoad: '.e3', | ||
onError: '.e4', | ||
onTouchstart: '.e5', | ||
onTouchmove: '.e6', | ||
onTouchcancel: '.e7', | ||
onTouchend: '.e8', | ||
onLongpress: '.e9', | ||
onTransitionend: '.ea', | ||
onAnimationstart: '.eb', | ||
onAnimationiteration: '.ec', | ||
onAnimationend: '.ed', | ||
onTouchforcechange: '.ee', | ||
}; | ||
const OPTIONS = [ | ||
'Capture', | ||
'CaptureOnce', | ||
'CapturePassive', | ||
'CaptureOncePassive', | ||
'Once', | ||
'OncePassive', | ||
'Passive', | ||
]; | ||
/*#__PURE__*/ shared.extend({ | ||
class: '.c', | ||
style: '.s', | ||
}, Object.keys(EVENT_MAP).reduce((res, name) => { | ||
const value = EVENT_MAP[name]; | ||
res[name] = value; | ||
OPTIONS.forEach((v, i) => { | ||
res[name + v] = value + i; | ||
}); | ||
return res; | ||
}, Object.create(null))); | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_DATA = 'data'; | ||
// 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_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
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'; | ||
@@ -122,28 +112,2 @@ function assertKey(key, shallow = false) { | ||
// @ts-ignore | ||
// 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_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
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'; | ||
const createHook = (lifecycle) => (hook, target = vue.getCurrentInstance()) => | ||
@@ -150,0 +114,0 @@ // post-create lifecycle registrations are noops during SSR |
import { shallowRef, ref, getCurrentInstance, isInSSRComponentSetup, injectHook } from 'vue'; | ||
import { extend, hasOwn, isString } from '@vue/shared'; | ||
import { hasOwn, isString } from '@vue/shared'; | ||
const EVENT_MAP = { | ||
onClick: '.e0', | ||
onChange: '.e1', | ||
onInput: '.e2', | ||
onLoad: '.e3', | ||
onError: '.e4', | ||
onTouchstart: '.e5', | ||
onTouchmove: '.e6', | ||
onTouchcancel: '.e7', | ||
onTouchend: '.e8', | ||
onLongpress: '.e9', | ||
onTransitionend: '.ea', | ||
onAnimationstart: '.eb', | ||
onAnimationiteration: '.ec', | ||
onAnimationend: '.ed', | ||
onTouchforcechange: '.ee', | ||
}; | ||
const OPTIONS = [ | ||
'Capture', | ||
'CaptureOnce', | ||
'CapturePassive', | ||
'CaptureOncePassive', | ||
'Once', | ||
'OncePassive', | ||
'Passive', | ||
]; | ||
/*#__PURE__*/ extend({ | ||
class: '.c', | ||
style: '.s', | ||
}, Object.keys(EVENT_MAP).reduce((res, name) => { | ||
const value = EVENT_MAP[name]; | ||
res[name] = value; | ||
OPTIONS.forEach((v, i) => { | ||
res[name + v] = value + i; | ||
}); | ||
return res; | ||
}, Object.create(null))); | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
@@ -45,2 +8,29 @@ const UNI_SSR = '__uniSSR'; | ||
const UNI_SSR_GLOBAL_DATA = 'globalData'; | ||
// 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_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
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'; | ||
@@ -90,28 +80,2 @@ function getSSRDataType() { | ||
// @ts-ignore | ||
// 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_PAGE_NOT_FOUND = 'onPageNotFound'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
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'; | ||
const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => | ||
@@ -118,0 +82,0 @@ // post-create lifecycle registrations are noops during SSR |
{ | ||
"name": "@dcloudio/uni-app", | ||
"version": "3.0.0-alpha-3000020210708001", | ||
"version": "3.0.0-alpha-3000020210719001", | ||
"description": "@dcloudio/uni-app", | ||
@@ -21,3 +21,3 @@ "main": "./dist/uni-app.cjs.js", | ||
}, | ||
"gitHead": "b151fe7e8364e3492054835f047ce902f39d8bf1" | ||
"gitHead": "42999aefe7efc0e7758157cf094da7c774bf2cbc" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23773
259