@dcloudio/uni-cli-shared 3.0.0-5020320260806002 → 3.0.0-5020420260811002
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/resolve.d.ts +8 -0
- package/dist/resolve.js +78 -2
- package/lib/dom2/@intlify/core-base/LICENSE +20 -0
- package/lib/dom2/@intlify/core-base/dist/core-base.mjs +1903 -0
- package/lib/dom2/@intlify/core-base/package.json +11 -0
- package/lib/dom2/@intlify/message-compiler/LICENSE +20 -0
- package/lib/dom2/@intlify/message-compiler/dist/message-compiler.mjs +1550 -0
- package/lib/dom2/@intlify/message-compiler/package.json +11 -0
- package/lib/dom2/@intlify/shared/LICENSE +20 -0
- package/lib/dom2/@intlify/shared/dist/shared.mjs +333 -0
- package/lib/dom2/@intlify/shared/package.json +11 -0
- package/lib/dom2/@vue/devtools-api/LICENSE +21 -0
- package/lib/dom2/@vue/devtools-api/dist/index.js +26 -0
- package/lib/dom2/@vue/devtools-api/package.json +12 -0
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +2 -20
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +53 -29
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +23 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +22 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +80 -30
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +20 -3
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +369 -317
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2032 -5522
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11114 -33
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2825 -4668
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +905 -2413
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +378 -544
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +998 -2549
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +2 -94
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +24 -83
- package/lib/dom2/pinia/LICENSE +21 -0
- package/lib/dom2/pinia/dist/pinia.mjs +1941 -0
- package/lib/dom2/pinia/package.json +11 -0
- package/lib/dom2/vue-i18n/LICENSE +20 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.mjs +2501 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.mjs +2501 -0
- package/lib/dom2/vue-i18n/package.json +12 -0
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -17,6 +17,7 @@ function makeMap(str) {
|
|
|
17
17
|
for (const key of str.split(",")) map[key] = 1;
|
|
18
18
|
return (val) => val in map;
|
|
19
19
|
}
|
|
20
|
+
|
|
20
21
|
//#endregion
|
|
21
22
|
//#region packages/shared/src/general.ts
|
|
22
23
|
const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
@@ -142,6 +143,7 @@ function genCacheKey(source, options) {
|
|
|
142
143
|
function canSetValueDirectly(tagName) {
|
|
143
144
|
return tagName !== "PROGRESS" && !tagName.includes("-");
|
|
144
145
|
}
|
|
146
|
+
|
|
145
147
|
//#endregion
|
|
146
148
|
//#region packages/shared/src/patchFlags.ts
|
|
147
149
|
/**
|
|
@@ -211,6 +213,7 @@ const PatchFlagNames = {
|
|
|
211
213
|
[-1]: `CACHED`,
|
|
212
214
|
[-2]: `BAIL`
|
|
213
215
|
};
|
|
216
|
+
|
|
214
217
|
//#endregion
|
|
215
218
|
//#region packages/shared/src/shapeFlags.ts
|
|
216
219
|
const ShapeFlags = {
|
|
@@ -237,6 +240,7 @@ const ShapeFlags = {
|
|
|
237
240
|
"COMPONENT": 6,
|
|
238
241
|
"6": "COMPONENT"
|
|
239
242
|
};
|
|
243
|
+
|
|
240
244
|
//#endregion
|
|
241
245
|
//#region packages/shared/src/slotFlags.ts
|
|
242
246
|
const SlotFlags = {
|
|
@@ -255,9 +259,14 @@ const slotFlagsText = {
|
|
|
255
259
|
[2]: "DYNAMIC",
|
|
256
260
|
[3]: "FORWARDED"
|
|
257
261
|
};
|
|
258
|
-
|
|
262
|
+
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region packages/shared/src/globalsAllowList.ts
|
|
265
|
+
const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
|
|
266
|
+
const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
|
|
259
267
|
/** @deprecated use `isGloballyAllowed` instead */
|
|
260
268
|
const isGloballyWhitelisted = isGloballyAllowed;
|
|
269
|
+
|
|
261
270
|
//#endregion
|
|
262
271
|
//#region packages/shared/src/codeframe.ts
|
|
263
272
|
const range = 2;
|
|
@@ -296,6 +305,7 @@ function generateCodeFrame(source, start = 0, end = source.length) {
|
|
|
296
305
|
}
|
|
297
306
|
return res.join("\n");
|
|
298
307
|
}
|
|
308
|
+
|
|
299
309
|
//#endregion
|
|
300
310
|
//#region packages/shared/src/normalizeProp.ts
|
|
301
311
|
function normalizeStyle(value) {
|
|
@@ -354,6 +364,7 @@ function normalizeProps(props) {
|
|
|
354
364
|
if (style) props.style = normalizeStyle(style);
|
|
355
365
|
return props;
|
|
356
366
|
}
|
|
367
|
+
|
|
357
368
|
//#endregion
|
|
358
369
|
//#region packages/shared/src/domTagConfig.ts
|
|
359
370
|
const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
|
|
@@ -404,6 +415,7 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
|
|
|
404
415
|
* Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
|
|
405
416
|
*/
|
|
406
417
|
const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
|
|
418
|
+
|
|
407
419
|
//#endregion
|
|
408
420
|
//#region packages/shared/src/domAttrConfig.ts
|
|
409
421
|
/**
|
|
@@ -476,6 +488,7 @@ function shouldSetAsAttr(tagName, key) {
|
|
|
476
488
|
if (key === "sandbox" && tagName === "IFRAME") return true;
|
|
477
489
|
return false;
|
|
478
490
|
}
|
|
491
|
+
|
|
479
492
|
//#endregion
|
|
480
493
|
//#region packages/shared/src/domNamespace.ts
|
|
481
494
|
const Namespaces = {
|
|
@@ -486,6 +499,7 @@ const Namespaces = {
|
|
|
486
499
|
"MATH_ML": 2,
|
|
487
500
|
"2": "MATH_ML"
|
|
488
501
|
};
|
|
502
|
+
|
|
489
503
|
//#endregion
|
|
490
504
|
//#region packages/shared/src/escapeHtml.ts
|
|
491
505
|
const escapeRE = /["'&<>]/;
|
|
@@ -530,6 +544,7 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
|
530
544
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
531
545
|
return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
|
|
532
546
|
}
|
|
547
|
+
|
|
533
548
|
//#endregion
|
|
534
549
|
//#region packages/shared/src/looseEqual.ts
|
|
535
550
|
function looseCompareArrays(a, b) {
|
|
@@ -565,6 +580,7 @@ function looseEqual(a, b) {
|
|
|
565
580
|
function looseIndexOf(arr, val) {
|
|
566
581
|
return arr.findIndex((item) => looseEqual(item, val));
|
|
567
582
|
}
|
|
583
|
+
|
|
568
584
|
//#endregion
|
|
569
585
|
//#region packages/shared/src/toDisplayString.ts
|
|
570
586
|
const isRef = (val) => {
|
|
@@ -599,6 +615,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
599
615
|
var _description;
|
|
600
616
|
return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
|
|
601
617
|
};
|
|
618
|
+
|
|
602
619
|
//#endregion
|
|
603
620
|
//#region packages/shared/src/subSequence.ts
|
|
604
621
|
function getSequence(arr) {
|
|
@@ -636,6 +653,7 @@ function getSequence(arr) {
|
|
|
636
653
|
}
|
|
637
654
|
return result;
|
|
638
655
|
}
|
|
656
|
+
|
|
639
657
|
//#endregion
|
|
640
658
|
//#region packages/shared/src/cssVars.ts
|
|
641
659
|
/**
|
|
@@ -650,6 +668,7 @@ function normalizeCssVarValue(value) {
|
|
|
650
668
|
}
|
|
651
669
|
return String(value);
|
|
652
670
|
}
|
|
671
|
+
|
|
653
672
|
//#endregion
|
|
654
673
|
//#region packages/shared/src/vaporFlags.ts
|
|
655
674
|
/**
|
|
@@ -662,86 +681,8 @@ const VaporVForFlags = {
|
|
|
662
681
|
"IS_COMPONENT": 2,
|
|
663
682
|
"2": "IS_COMPONENT",
|
|
664
683
|
"ONCE": 4,
|
|
665
|
-
"4": "ONCE"
|
|
666
|
-
"IS_SINGLE_NODE": 8,
|
|
667
|
-
"8": "IS_SINGLE_NODE",
|
|
668
|
-
"IS_FRAGMENT": 16,
|
|
669
|
-
"16": "IS_FRAGMENT",
|
|
670
|
-
"SLOT_ROOT": 32,
|
|
671
|
-
"32": "SLOT_ROOT"
|
|
672
|
-
};
|
|
673
|
-
const VaporBlockShape = {
|
|
674
|
-
"EMPTY": 0,
|
|
675
|
-
"0": "EMPTY",
|
|
676
|
-
"SINGLE_ROOT": 1,
|
|
677
|
-
"1": "SINGLE_ROOT",
|
|
678
|
-
"MULTI_ROOT": 2,
|
|
679
|
-
"2": "MULTI_ROOT"
|
|
680
|
-
};
|
|
681
|
-
/**
|
|
682
|
-
* Bit layout for vapor `createIf` flags.
|
|
683
|
-
*
|
|
684
|
-
* - bits 0-1: true branch VaporBlockShape
|
|
685
|
-
* - bits 2-3: false branch VaporBlockShape
|
|
686
|
-
* - bit 4: v-once
|
|
687
|
-
* - bit 5: true branch is static and can skip branch-owned EffectScope
|
|
688
|
-
* - bit 6: false branch is static and can skip branch-owned EffectScope
|
|
689
|
-
* - bit 7: v-if sits on a slot content/fallback root chain
|
|
690
|
-
* - bits 8+: branch index + 1 for keyed dynamic fragments
|
|
691
|
-
*
|
|
692
|
-
* Examples:
|
|
693
|
-
* - v-once, true single-root, no false branch: 1 | ONCE = 17
|
|
694
|
-
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
|
|
695
|
-
*/
|
|
696
|
-
const VaporIfFlags = {
|
|
697
|
-
"BLOCK_SHAPE": 15,
|
|
698
|
-
"15": "BLOCK_SHAPE",
|
|
699
|
-
"ONCE": 16,
|
|
700
|
-
"16": "ONCE",
|
|
701
|
-
"TRUE_NO_SCOPE": 32,
|
|
702
|
-
"32": "TRUE_NO_SCOPE",
|
|
703
|
-
"FALSE_NO_SCOPE": 64,
|
|
704
|
-
"64": "FALSE_NO_SCOPE",
|
|
705
|
-
"SLOT_ROOT": 128,
|
|
706
|
-
"128": "SLOT_ROOT",
|
|
707
|
-
"INDEX_SHIFT": 8,
|
|
708
|
-
"8": "INDEX_SHIFT"
|
|
709
|
-
};
|
|
710
|
-
/**
|
|
711
|
-
* Flags used by vapor template factories, shared between the compiler and the
|
|
712
|
-
* runtime.
|
|
713
|
-
*/
|
|
714
|
-
const TemplateFlags = {
|
|
715
|
-
"ROOT": 1,
|
|
716
|
-
"1": "ROOT",
|
|
717
|
-
"STATIC": 2,
|
|
718
|
-
"2": "STATIC"
|
|
719
|
-
};
|
|
720
|
-
/**
|
|
721
|
-
* Flags used by vapor slot outlets, shared between the compiler and the
|
|
722
|
-
* runtime.
|
|
723
|
-
*/
|
|
724
|
-
const VaporSlotFlags = {
|
|
725
|
-
"NO_SLOTTED": 1,
|
|
726
|
-
"1": "NO_SLOTTED",
|
|
727
|
-
"ONCE": 2,
|
|
728
|
-
"2": "ONCE",
|
|
729
|
-
"SLOT_ROOT": 4,
|
|
730
|
-
"4": "SLOT_ROOT",
|
|
731
|
-
"NON_STABLE": 8,
|
|
732
|
-
"8": "NON_STABLE"
|
|
733
|
-
};
|
|
734
|
-
const VaporDynamicComponentFlags = {
|
|
735
|
-
"SINGLE_ROOT": 1,
|
|
736
|
-
"1": "SINGLE_ROOT",
|
|
737
|
-
"ONCE": 2,
|
|
738
|
-
"2": "ONCE",
|
|
739
|
-
"SLOT_ROOT": 4,
|
|
740
|
-
"4": "SLOT_ROOT",
|
|
741
|
-
"DOM2_FLATTEN_TRUE": 65536,
|
|
742
|
-
"65536": "DOM2_FLATTEN_TRUE",
|
|
743
|
-
"DOM2_FLATTEN_FALSE": 131072,
|
|
744
|
-
"131072": "DOM2_FLATTEN_FALSE"
|
|
684
|
+
"4": "ONCE"
|
|
745
685
|
};
|
|
686
|
+
|
|
746
687
|
//#endregion
|
|
747
|
-
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags,
|
|
688
|
+
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-present Eduardo San Martin Morote
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|