@histoire/vendors 0.17.4 → 0.17.6
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/client/b-pinia.js +9 -8
- package/dist/client/b-vue-router.js +13 -13
- package/dist/client/node_modules/@babel/parser/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +9 -3
- package/dist/client/node_modules/@vue/compiler-core/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +8 -7
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +16 -18
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +50 -74
- package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +9 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +7 -7
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +77 -204
- package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +16 -14
- package/dist/client/node_modules/@vue/runtime-dom/package.json +4 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -2
- package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +8 -3
- package/dist/client/node_modules/@vue/shared/package.json +1 -1
- package/dist/client/node_modules/nanoid/package.json +33 -11
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +9 -0
- package/dist/client/node_modules/pinia/package.json +1 -1
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +1 -6
- package/dist/client/node_modules/vue/jsx.d.ts +1 -6
- package/dist/client/node_modules/vue/package.json +16 -6
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +21 -16
- package/dist/client/node_modules/vue-router/package.json +19 -15
- package/dist/client/vue.runtime.esm-bundler.js +707 -645
- package/package.json +6 -6
package/dist/client/b-pinia.js
CHANGED
|
@@ -3,7 +3,7 @@ import { s as setupDevtoolsPlugin } from './index2.js';
|
|
|
3
3
|
import { y as hasInjectionContext, z as inject, A as toRaw, B as watch, C as unref, D as markRaw, E as effectScope, u as ref, G as isRef, H as isReactive, I as getCurrentScope, J as onScopeDispose, K as toRefs, L as computed, b as nextTick, M as reactive, N as toRef, O as getCurrentInstance } from './vue.runtime.esm-bundler.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
|
-
* pinia v2.1.
|
|
6
|
+
* pinia v2.1.7
|
|
7
7
|
* (c) 2023 Eduardo San Martin Morote
|
|
8
8
|
* @license MIT
|
|
9
9
|
*/
|
|
@@ -382,9 +382,14 @@ async function actionGlobalOpenStateFile(pinia) {
|
|
|
382
382
|
function loadStoresState(pinia, state) {
|
|
383
383
|
for (const key in state) {
|
|
384
384
|
const storeState = pinia.state.value[key];
|
|
385
|
+
// store is already instantiated, patch it
|
|
385
386
|
if (storeState) {
|
|
386
387
|
Object.assign(storeState, state[key]);
|
|
387
388
|
}
|
|
389
|
+
else {
|
|
390
|
+
// store is not instantiated, set the initial state
|
|
391
|
+
pinia.state.value[key] = state[key];
|
|
392
|
+
}
|
|
388
393
|
}
|
|
389
394
|
}
|
|
390
395
|
|
|
@@ -1444,10 +1449,7 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
|
|
|
1444
1449
|
pinia._s.set($id, store);
|
|
1445
1450
|
const runWithContext = (pinia._a && pinia._a.runWithContext) || fallbackRunWithContext;
|
|
1446
1451
|
// TODO: idea create skipSerialize that marks properties as non serializable and they are skipped
|
|
1447
|
-
const setupStore = pinia._e.run(() =>
|
|
1448
|
-
scope = effectScope();
|
|
1449
|
-
return runWithContext(() => scope.run(setup));
|
|
1450
|
-
});
|
|
1452
|
+
const setupStore = runWithContext(() => pinia._e.run(() => (scope = effectScope()).run(setup)));
|
|
1451
1453
|
// overwrite existing actions to support $onAction
|
|
1452
1454
|
for (const key in setupStore) {
|
|
1453
1455
|
const prop = setupStore[key];
|
|
@@ -1706,9 +1708,8 @@ idOrOptions, setup, setupOptions) {
|
|
|
1706
1708
|
if (pinia)
|
|
1707
1709
|
setActivePinia(pinia);
|
|
1708
1710
|
if ((process.env.NODE_ENV !== 'production') && !activePinia) {
|
|
1709
|
-
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia.
|
|
1710
|
-
|
|
1711
|
-
`\tapp.use(pinia)\n` +
|
|
1711
|
+
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?\n` +
|
|
1712
|
+
`See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.\n` +
|
|
1712
1713
|
`This will fail in production.`);
|
|
1713
1714
|
}
|
|
1714
1715
|
pinia = activePinia;
|
|
@@ -2,7 +2,7 @@ import { P as onUnmounted, Q as onDeactivated, R as onActivated, O as getCurrent
|
|
|
2
2
|
import { s as setupDevtoolsPlugin } from './index2.js';
|
|
3
3
|
|
|
4
4
|
/*!
|
|
5
|
-
* vue-router v4.2.
|
|
5
|
+
* vue-router v4.2.5
|
|
6
6
|
* (c) 2023 Eduardo San Martin Morote
|
|
7
7
|
* @license MIT
|
|
8
8
|
*/
|
|
@@ -413,7 +413,6 @@ function useHistoryListeners(base, historyState, currentLocation, replace) {
|
|
|
413
413
|
else {
|
|
414
414
|
replace(to);
|
|
415
415
|
}
|
|
416
|
-
// console.log({ deltaFromCurrent })
|
|
417
416
|
// Here we could also revert the navigation by calling history.go(-delta)
|
|
418
417
|
// this listener will have to be adapted to not trigger again and to wait for the url
|
|
419
418
|
// to be updated before triggering the listeners. Some kind of validation function would also
|
|
@@ -619,15 +618,11 @@ function createMemoryHistory(base = '') {
|
|
|
619
618
|
base = normalizeBase(base);
|
|
620
619
|
function setLocation(location) {
|
|
621
620
|
position++;
|
|
622
|
-
if (position
|
|
623
|
-
// we are at the end, we can simply append a new entry
|
|
624
|
-
queue.push(location);
|
|
625
|
-
}
|
|
626
|
-
else {
|
|
621
|
+
if (position !== queue.length) {
|
|
627
622
|
// we are in the middle, we remove everything from here in the queue
|
|
628
623
|
queue.splice(position);
|
|
629
|
-
queue.push(location);
|
|
630
624
|
}
|
|
625
|
+
queue.push(location);
|
|
631
626
|
}
|
|
632
627
|
function triggerListeners(to, from, { direction, delta }) {
|
|
633
628
|
const info = {
|
|
@@ -2706,7 +2701,10 @@ function addDevtools(app, router, matcher) {
|
|
|
2706
2701
|
return;
|
|
2707
2702
|
const payload = activeRoutesPayload;
|
|
2708
2703
|
// children routes will appear as nested
|
|
2709
|
-
let routes = matcher.getRoutes().filter(route => !route.parent
|
|
2704
|
+
let routes = matcher.getRoutes().filter(route => !route.parent ||
|
|
2705
|
+
// these routes have a parent with no component which will not appear in the view
|
|
2706
|
+
// therefore we still need to include them
|
|
2707
|
+
!route.parent.record.components);
|
|
2710
2708
|
// reset match state to false
|
|
2711
2709
|
routes.forEach(resetMatchStateOnRouteRecord);
|
|
2712
2710
|
// apply a match state if there is a payload
|
|
@@ -3445,15 +3443,16 @@ function createRouter(options) {
|
|
|
3445
3443
|
}
|
|
3446
3444
|
triggerAfterEach(toLocation, from, failure);
|
|
3447
3445
|
})
|
|
3446
|
+
// avoid warnings in the console about uncaught rejections, they are logged by triggerErrors
|
|
3448
3447
|
.catch(noop);
|
|
3449
3448
|
});
|
|
3450
3449
|
}
|
|
3451
3450
|
// Initialization and Errors
|
|
3452
3451
|
let readyHandlers = useCallbacks();
|
|
3453
|
-
let
|
|
3452
|
+
let errorListeners = useCallbacks();
|
|
3454
3453
|
let ready;
|
|
3455
3454
|
/**
|
|
3456
|
-
* Trigger
|
|
3455
|
+
* Trigger errorListeners added via onError and throws the error as well
|
|
3457
3456
|
*
|
|
3458
3457
|
* @param error - error to throw
|
|
3459
3458
|
* @param to - location we were navigating to when the error happened
|
|
@@ -3462,7 +3461,7 @@ function createRouter(options) {
|
|
|
3462
3461
|
*/
|
|
3463
3462
|
function triggerError(error, to, from) {
|
|
3464
3463
|
markAsReady(error);
|
|
3465
|
-
const list =
|
|
3464
|
+
const list = errorListeners.list();
|
|
3466
3465
|
if (list.length) {
|
|
3467
3466
|
list.forEach(handler => handler(error, to, from));
|
|
3468
3467
|
}
|
|
@@ -3472,6 +3471,7 @@ function createRouter(options) {
|
|
|
3472
3471
|
}
|
|
3473
3472
|
console.error(error);
|
|
3474
3473
|
}
|
|
3474
|
+
// reject the error no matter there were error listeners or not
|
|
3475
3475
|
return Promise.reject(error);
|
|
3476
3476
|
}
|
|
3477
3477
|
function isReady() {
|
|
@@ -3528,7 +3528,7 @@ function createRouter(options) {
|
|
|
3528
3528
|
beforeEach: beforeGuards.add,
|
|
3529
3529
|
beforeResolve: beforeResolveGuards.add,
|
|
3530
3530
|
afterEach: afterGuards.add,
|
|
3531
|
-
onError:
|
|
3531
|
+
onError: errorListeners.add,
|
|
3532
3532
|
isReady,
|
|
3533
3533
|
install(app) {
|
|
3534
3534
|
const router = this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/parser",
|
|
3
|
-
"version": "7.23.
|
|
3
|
+
"version": "7.23.4",
|
|
4
4
|
"description": "A JavaScript parser",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"node": ">=6.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/code-frame": "^7.
|
|
37
|
+
"@babel/code-frame": "^7.23.4",
|
|
38
38
|
"@babel/helper-check-duplicate-nodes": "^7.22.5",
|
|
39
|
-
"@babel/helper-fixtures": "^7.
|
|
40
|
-
"@babel/helper-string-parser": "^7.
|
|
39
|
+
"@babel/helper-fixtures": "^7.23.4",
|
|
40
|
+
"@babel/helper-string-parser": "^7.23.4",
|
|
41
41
|
"@babel/helper-validator-identifier": "^7.22.20",
|
|
42
42
|
"charcodes": "^0.2.0"
|
|
43
43
|
},
|
|
@@ -90,10 +90,10 @@ export interface TransformContext extends Required<Omit<TransformOptions, 'filen
|
|
|
90
90
|
removeIdentifiers(exp: ExpressionNode | string): void;
|
|
91
91
|
hoist(exp: string | JSChildNode | ArrayExpression): SimpleExpressionNode;
|
|
92
92
|
cache<T extends JSChildNode>(exp: T, isVNode?: boolean): CacheExpression | T;
|
|
93
|
-
constantCache:
|
|
93
|
+
constantCache: WeakMap<TemplateChildNode, ConstantTypes>;
|
|
94
94
|
filters?: Set<string>;
|
|
95
95
|
}
|
|
96
|
-
export declare function createTransformContext(root: RootNode, { filename, prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, inSSR, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig }: TransformOptions): TransformContext;
|
|
96
|
+
export declare function createTransformContext(root: RootNode, { filename, prefixIdentifiers, hoistStatic, hmr, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, inSSR, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig }: TransformOptions): TransformContext;
|
|
97
97
|
export declare function transform(root: RootNode, options: TransformOptions): void;
|
|
98
98
|
export declare function traverseNode(node: RootNode | TemplateChildNode, context: TransformContext): void;
|
|
99
99
|
export declare function createStructuralDirectiveTransform(name: string | RegExp, fn: StructuralDirectiveTransform): NodeTransform;
|
|
@@ -840,6 +840,12 @@ export interface TransformOptions extends SharedTransformCodegenOptions, ErrorHa
|
|
|
840
840
|
* needed to render inline CSS variables on component root
|
|
841
841
|
*/
|
|
842
842
|
ssrCssVars?: string;
|
|
843
|
+
/**
|
|
844
|
+
* Whether to compile the template assuming it needs to handle HMR.
|
|
845
|
+
* Some edge cases may need to generate different code for HMR to work
|
|
846
|
+
* correctly, e.g. #6938, #7138
|
|
847
|
+
*/
|
|
848
|
+
hmr?: boolean;
|
|
843
849
|
}
|
|
844
850
|
export interface CodegenOptions extends SharedTransformCodegenOptions {
|
|
845
851
|
/**
|
|
@@ -976,7 +982,7 @@ export declare function stringifyExpression(exp: ExpressionNode | string): strin
|
|
|
976
982
|
|
|
977
983
|
export declare const trackSlotScopes: NodeTransform;
|
|
978
984
|
export declare const trackVForSlotScopes: NodeTransform;
|
|
979
|
-
export type SlotFnBuilder = (slotProps: ExpressionNode | undefined, slotChildren: TemplateChildNode[], loc: SourceLocation) => FunctionExpression;
|
|
985
|
+
export type SlotFnBuilder = (slotProps: ExpressionNode | undefined, vForExp: ExpressionNode | undefined, slotChildren: TemplateChildNode[], loc: SourceLocation) => FunctionExpression;
|
|
980
986
|
export declare function buildSlots(node: ElementNode, context: TransformContext, buildSlotFn?: SlotFnBuilder): {
|
|
981
987
|
slots: SlotsExpression;
|
|
982
988
|
hasDynamicSlots: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/parser": "^7.
|
|
36
|
-
"@vue/shared": "3.3.
|
|
35
|
+
"@babel/parser": "^7.23.0",
|
|
36
|
+
"@vue/shared": "3.3.8",
|
|
37
37
|
"estree-walker": "^2.0.2",
|
|
38
38
|
"source-map-js": "^1.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/types": "^7.
|
|
41
|
+
"@babel/types": "^7.23.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-dom",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/compiler-dom",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-dom.esm-bundler.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vue/shared": "3.3.
|
|
41
|
-
"@vue/compiler-core": "3.3.
|
|
40
|
+
"@vue/shared": "3.3.8",
|
|
41
|
+
"@vue/compiler-core": "3.3.8"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _babel_types from '@babel/types';
|
|
2
|
-
import { Statement, Expression, TSType, Program, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
|
|
2
|
+
import { Statement, Expression, TSType, Program, CallExpression, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
|
|
3
3
|
import { CompilerOptions, CodegenResult, ParserOptions, RootNode, CompilerError, SourceLocation, ElementNode, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
|
|
4
4
|
export { BindingMetadata, CompilerError, CompilerOptions, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from '@vue/compiler-core';
|
|
5
5
|
import { RawSourceMap } from 'source-map-js';
|
|
@@ -8,6 +8,7 @@ export { parse as babelParse } from '@babel/parser';
|
|
|
8
8
|
import { Result, LazyResult } from 'postcss';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
10
10
|
export { default as MagicString } from 'magic-string';
|
|
11
|
+
import TS from 'typescript';
|
|
11
12
|
export { shouldTransform as shouldTransformRef, transform as transformRef, transformAST as transformRefAST } from '@vue/reactivity-transform';
|
|
12
13
|
|
|
13
14
|
export interface AssetURLTagConfig {
|
|
@@ -228,9 +229,6 @@ export interface SFCParseResult {
|
|
|
228
229
|
descriptor: SFCDescriptor;
|
|
229
230
|
errors: (CompilerError | SyntaxError)[];
|
|
230
231
|
}
|
|
231
|
-
export declare const parseCache: Map<string, SFCParseResult> & {
|
|
232
|
-
max?: number | undefined;
|
|
233
|
-
};
|
|
234
232
|
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler }?: SFCParseOptions): SFCParseResult;
|
|
235
233
|
|
|
236
234
|
type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus';
|
|
@@ -375,7 +373,8 @@ export declare class ScriptCompileContext {
|
|
|
375
373
|
hasDefineOptionsCall: boolean;
|
|
376
374
|
hasDefineSlotsCall: boolean;
|
|
377
375
|
hasDefineModelCall: boolean;
|
|
378
|
-
|
|
376
|
+
propsCall: CallExpression | undefined;
|
|
377
|
+
propsDecl: Node | undefined;
|
|
379
378
|
propsRuntimeDecl: Node | undefined;
|
|
380
379
|
propsTypeDecl: Node | undefined;
|
|
381
380
|
propsDestructureDecl: ObjectPattern | undefined;
|
|
@@ -384,7 +383,7 @@ export declare class ScriptCompileContext {
|
|
|
384
383
|
propsRuntimeDefaults: Node | undefined;
|
|
385
384
|
emitsRuntimeDecl: Node | undefined;
|
|
386
385
|
emitsTypeDecl: Node | undefined;
|
|
387
|
-
|
|
386
|
+
emitDecl: Node | undefined;
|
|
388
387
|
modelDecls: Record<string, ModelDecl>;
|
|
389
388
|
optionsRuntimeDecl: Node | undefined;
|
|
390
389
|
bindingMetadata: BindingMetadata;
|
|
@@ -460,7 +459,7 @@ export declare function resolveTypeElements(ctx: TypeResolveContext, node: Node
|
|
|
460
459
|
/**
|
|
461
460
|
* @private
|
|
462
461
|
*/
|
|
463
|
-
export declare function registerTS(
|
|
462
|
+
export declare function registerTS(_loadTS: () => typeof TS): void;
|
|
464
463
|
/**
|
|
465
464
|
* @private
|
|
466
465
|
*/
|
|
@@ -469,5 +468,7 @@ export declare function inferRuntimeType(ctx: TypeResolveContext, node: Node & M
|
|
|
469
468
|
|
|
470
469
|
export declare const version: string;
|
|
471
470
|
|
|
471
|
+
export declare const parseCache: Map<string, SFCParseResult>;
|
|
472
|
+
|
|
472
473
|
export declare const walk: any;
|
|
473
474
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -32,29 +32,27 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/parser": "^7.
|
|
36
|
-
"@vue/compiler-core": "3.3.
|
|
37
|
-
"@vue/compiler-dom": "3.3.
|
|
38
|
-
"@vue/compiler-ssr": "3.3.
|
|
39
|
-
"@vue/reactivity-transform": "3.3.
|
|
40
|
-
"@vue/shared": "3.3.
|
|
35
|
+
"@babel/parser": "^7.23.0",
|
|
36
|
+
"@vue/compiler-core": "3.3.8",
|
|
37
|
+
"@vue/compiler-dom": "3.3.8",
|
|
38
|
+
"@vue/compiler-ssr": "3.3.8",
|
|
39
|
+
"@vue/reactivity-transform": "3.3.8",
|
|
40
|
+
"@vue/shared": "3.3.8",
|
|
41
41
|
"estree-walker": "^2.0.2",
|
|
42
|
-
"magic-string": "^0.30.
|
|
43
|
-
"postcss": "^8.
|
|
42
|
+
"magic-string": "^0.30.5",
|
|
43
|
+
"postcss": "^8.4.31",
|
|
44
44
|
"source-map-js": "^1.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/types": "^7.
|
|
48
|
-
"@types/estree": "^0.0.48",
|
|
49
|
-
"@types/lru-cache": "^5.1.0",
|
|
47
|
+
"@babel/types": "^7.23.0",
|
|
50
48
|
"@vue/consolidate": "^0.17.3",
|
|
51
49
|
"hash-sum": "^2.0.0",
|
|
52
|
-
"lru-cache": "^
|
|
50
|
+
"lru-cache": "^10.0.1",
|
|
53
51
|
"merge-source-map": "^1.1.0",
|
|
54
|
-
"minimatch": "^9.0.
|
|
55
|
-
"postcss-modules": "^4.
|
|
56
|
-
"postcss-selector-parser": "^6.0.
|
|
57
|
-
"pug": "^3.0.
|
|
58
|
-
"sass": "^1.
|
|
52
|
+
"minimatch": "^9.0.3",
|
|
53
|
+
"postcss-modules": "^4.3.1",
|
|
54
|
+
"postcss-selector-parser": "^6.0.13",
|
|
55
|
+
"pug": "^3.0.2",
|
|
56
|
+
"sass": "^1.69.5"
|
|
59
57
|
}
|
|
60
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.3.
|
|
32
|
-
"@vue/compiler-dom": "3.3.
|
|
31
|
+
"@vue/shared": "3.3.8",
|
|
32
|
+
"@vue/compiler-dom": "3.3.8"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -234,17 +234,9 @@ export declare const enum TriggerOpTypes {
|
|
|
234
234
|
|
|
235
235
|
export declare class EffectScope {
|
|
236
236
|
detached: boolean;
|
|
237
|
-
/* removed internal: _active */
|
|
238
|
-
/* removed internal: effects */
|
|
239
|
-
/* removed internal: cleanups */
|
|
240
|
-
/* removed internal: parent */
|
|
241
|
-
/* removed internal: scopes */
|
|
242
|
-
/* removed internal: index */
|
|
243
237
|
constructor(detached?: boolean);
|
|
244
238
|
get active(): boolean;
|
|
245
239
|
run<T>(fn: () => T): T | undefined;
|
|
246
|
-
/* removed internal: on */
|
|
247
|
-
/* removed internal: off */
|
|
248
240
|
stop(fromParent?: boolean): void;
|
|
249
241
|
}
|
|
250
242
|
/**
|
|
@@ -272,69 +264,6 @@ export declare function getCurrentScope(): EffectScope | undefined;
|
|
|
272
264
|
*/
|
|
273
265
|
export declare function onScopeDispose(fn: () => void): void;
|
|
274
266
|
|
|
275
|
-
declare const ComputedRefSymbol: unique symbol;
|
|
276
|
-
export interface ComputedRef<T = any> extends WritableComputedRef<T> {
|
|
277
|
-
readonly value: T;
|
|
278
|
-
[ComputedRefSymbol]: true;
|
|
279
|
-
}
|
|
280
|
-
export interface WritableComputedRef<T> extends Ref<T> {
|
|
281
|
-
readonly effect: ReactiveEffect<T>;
|
|
282
|
-
}
|
|
283
|
-
export type ComputedGetter<T> = (...args: any[]) => T;
|
|
284
|
-
export type ComputedSetter<T> = (v: T) => void;
|
|
285
|
-
export interface WritableComputedOptions<T> {
|
|
286
|
-
get: ComputedGetter<T>;
|
|
287
|
-
set: ComputedSetter<T>;
|
|
288
|
-
}
|
|
289
|
-
declare class ComputedRefImpl<T> {
|
|
290
|
-
private readonly _setter;
|
|
291
|
-
dep?: Dep;
|
|
292
|
-
private _value;
|
|
293
|
-
readonly effect: ReactiveEffect<T>;
|
|
294
|
-
readonly __v_isRef = true;
|
|
295
|
-
readonly [ReactiveFlags.IS_READONLY]: boolean;
|
|
296
|
-
_dirty: boolean;
|
|
297
|
-
_cacheable: boolean;
|
|
298
|
-
constructor(getter: ComputedGetter<T>, _setter: ComputedSetter<T>, isReadonly: boolean, isSSR: boolean);
|
|
299
|
-
get value(): T;
|
|
300
|
-
set value(newValue: T);
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Takes a getter function and returns a readonly reactive ref object for the
|
|
304
|
-
* returned value from the getter. It can also take an object with get and set
|
|
305
|
-
* functions to create a writable ref object.
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* ```js
|
|
309
|
-
* // Creating a readonly computed ref:
|
|
310
|
-
* const count = ref(1)
|
|
311
|
-
* const plusOne = computed(() => count.value + 1)
|
|
312
|
-
*
|
|
313
|
-
* console.log(plusOne.value) // 2
|
|
314
|
-
* plusOne.value++ // error
|
|
315
|
-
* ```
|
|
316
|
-
*
|
|
317
|
-
* ```js
|
|
318
|
-
* // Creating a writable computed ref:
|
|
319
|
-
* const count = ref(1)
|
|
320
|
-
* const plusOne = computed({
|
|
321
|
-
* get: () => count.value + 1,
|
|
322
|
-
* set: (val) => {
|
|
323
|
-
* count.value = val - 1
|
|
324
|
-
* }
|
|
325
|
-
* })
|
|
326
|
-
*
|
|
327
|
-
* plusOne.value = 1
|
|
328
|
-
* console.log(count.value) // 0
|
|
329
|
-
* ```
|
|
330
|
-
*
|
|
331
|
-
* @param getter - Function that produces the next value.
|
|
332
|
-
* @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
|
|
333
|
-
* @see {@link https://vuejs.org/api/reactivity-core.html#computed}
|
|
334
|
-
*/
|
|
335
|
-
export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
|
|
336
|
-
export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
|
|
337
|
-
|
|
338
267
|
export type EffectScheduler = (...args: any[]) => any;
|
|
339
268
|
export type DebuggerEvent = {
|
|
340
269
|
effect: ReactiveEffect;
|
|
@@ -354,9 +283,6 @@ export declare class ReactiveEffect<T = any> {
|
|
|
354
283
|
active: boolean;
|
|
355
284
|
deps: Dep[];
|
|
356
285
|
parent: ReactiveEffect | undefined;
|
|
357
|
-
/* removed internal: computed */
|
|
358
|
-
/* removed internal: allowRecurse */
|
|
359
|
-
/* removed internal: deferStop */
|
|
360
286
|
onStop?: () => void;
|
|
361
287
|
onTrack?: (event: DebuggerEvent) => void;
|
|
362
288
|
onTrigger?: (event: DebuggerEvent) => void;
|
|
@@ -672,5 +598,55 @@ type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref
|
|
|
672
598
|
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>;
|
|
673
599
|
} : T;
|
|
674
600
|
|
|
601
|
+
declare const ComputedRefSymbol: unique symbol;
|
|
602
|
+
export interface ComputedRef<T = any> extends WritableComputedRef<T> {
|
|
603
|
+
readonly value: T;
|
|
604
|
+
[ComputedRefSymbol]: true;
|
|
605
|
+
}
|
|
606
|
+
export interface WritableComputedRef<T> extends Ref<T> {
|
|
607
|
+
readonly effect: ReactiveEffect<T>;
|
|
608
|
+
}
|
|
609
|
+
export type ComputedGetter<T> = (...args: any[]) => T;
|
|
610
|
+
export type ComputedSetter<T> = (v: T) => void;
|
|
611
|
+
export interface WritableComputedOptions<T> {
|
|
612
|
+
get: ComputedGetter<T>;
|
|
613
|
+
set: ComputedSetter<T>;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Takes a getter function and returns a readonly reactive ref object for the
|
|
617
|
+
* returned value from the getter. It can also take an object with get and set
|
|
618
|
+
* functions to create a writable ref object.
|
|
619
|
+
*
|
|
620
|
+
* @example
|
|
621
|
+
* ```js
|
|
622
|
+
* // Creating a readonly computed ref:
|
|
623
|
+
* const count = ref(1)
|
|
624
|
+
* const plusOne = computed(() => count.value + 1)
|
|
625
|
+
*
|
|
626
|
+
* console.log(plusOne.value) // 2
|
|
627
|
+
* plusOne.value++ // error
|
|
628
|
+
* ```
|
|
629
|
+
*
|
|
630
|
+
* ```js
|
|
631
|
+
* // Creating a writable computed ref:
|
|
632
|
+
* const count = ref(1)
|
|
633
|
+
* const plusOne = computed({
|
|
634
|
+
* get: () => count.value + 1,
|
|
635
|
+
* set: (val) => {
|
|
636
|
+
* count.value = val - 1
|
|
637
|
+
* }
|
|
638
|
+
* })
|
|
639
|
+
*
|
|
640
|
+
* plusOne.value = 1
|
|
641
|
+
* console.log(count.value) // 0
|
|
642
|
+
* ```
|
|
643
|
+
*
|
|
644
|
+
* @param getter - Function that produces the next value.
|
|
645
|
+
* @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
|
|
646
|
+
* @see {@link https://vuejs.org/api/reactivity-core.html#computed}
|
|
647
|
+
*/
|
|
648
|
+
export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
|
|
649
|
+
export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
|
|
650
|
+
|
|
675
651
|
export declare function deferredComputed<T>(getter: () => T): ComputedRef<T>;
|
|
676
652
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/reactivity",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/reactivity.esm-bundler.js",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vue/shared": "3.3.
|
|
39
|
+
"@vue/shared": "3.3.8"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,6 +2,9 @@ import { ImportSpecifier, ImportDefaultSpecifier, ImportNamespaceSpecifier, Prog
|
|
|
2
2
|
import MagicString, { SourceMap } from 'magic-string';
|
|
3
3
|
import { ParserPlugin } from '@babel/parser';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated will be removed in 3.4
|
|
7
|
+
*/
|
|
5
8
|
export declare function shouldTransform(src: string): boolean;
|
|
6
9
|
export interface RefTransformOptions {
|
|
7
10
|
filename?: string;
|
|
@@ -21,7 +24,13 @@ export interface ImportBinding {
|
|
|
21
24
|
source: string;
|
|
22
25
|
specifier: ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
|
|
23
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated will be removed in 3.4
|
|
29
|
+
*/
|
|
24
30
|
export declare function transform(src: string, { filename, sourceMap, parserPlugins, importHelpersFrom }?: RefTransformOptions): RefTransformResults;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated will be removed in 3.4
|
|
33
|
+
*/
|
|
25
34
|
export declare function transformAST(ast: Program, s: MagicString, offset?: number, knownRefs?: string[], knownProps?: Record<string, // public prop key
|
|
26
35
|
{
|
|
27
36
|
local: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity-transform",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/reactivity-transform",
|
|
5
5
|
"main": "dist/reactivity-transform.cjs.js",
|
|
6
6
|
"files": [
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/dev/packages/reactivity-transform#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/parser": "^7.
|
|
32
|
-
"@vue/compiler-core": "3.3.
|
|
33
|
-
"@vue/shared": "3.3.
|
|
31
|
+
"@babel/parser": "^7.23.0",
|
|
32
|
+
"@vue/compiler-core": "3.3.8",
|
|
33
|
+
"@vue/shared": "3.3.8",
|
|
34
34
|
"estree-walker": "^2.0.2",
|
|
35
|
-
"magic-string": "^0.30.
|
|
35
|
+
"magic-string": "^0.30.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@babel/core": "^7.
|
|
39
|
-
"@babel/types": "^7.
|
|
38
|
+
"@babel/core": "^7.23.2",
|
|
39
|
+
"@babel/types": "^7.23.0"
|
|
40
40
|
}
|
|
41
41
|
}
|