@aevantec/litevue 0.5.5 → 0.5.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/README.md +3 -2
- package/dist/litevue-devtools.iife.js +1 -1
- package/dist/litevue-devtools.mjs +1 -1
- package/dist/litevue-devtools.umd.js +1 -1
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -1
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.iife.js +1 -1
- package/dist/litevue.mjs +1 -1
- package/dist/litevue.umd.js +1 -1
- package/dist/plugins/morph.iife.js +1 -1
- package/dist/plugins/morph.mjs +1 -1
- package/dist/plugins/morph.umd.js +1 -1
- package/dist/types/app.d.mts +8 -18
- package/dist/types/app.d.ts +8 -18
- package/dist/types/block.d.mts +1 -2
- package/dist/types/block.d.ts +1 -2
- package/dist/types/context.d.mts +5 -8
- package/dist/types/context.d.ts +5 -8
- package/dist/types/devtools.d.mts +7 -0
- package/dist/types/devtools.d.ts +7 -0
- package/dist/types/effect.d.mts +6 -10
- package/dist/types/effect.d.ts +6 -10
- package/dist/types/magics.d.mts +5 -6
- package/dist/types/magics.d.ts +5 -6
- package/dist/types/ownership.d.mts +9 -16
- package/dist/types/ownership.d.ts +9 -16
- package/dist/types/plugins/focus/index.d.mts +6 -8
- package/dist/types/plugins/focus/index.d.ts +6 -8
- package/dist/types/plugins/media/index.d.mts +6 -7
- package/dist/types/plugins/media/index.d.ts +6 -7
- package/dist/types/plugins/morph/index.d.mts +21 -10
- package/dist/types/plugins/morph/index.d.ts +21 -10
- package/dist/types/plugins/persist/index.d.mts +12 -19
- package/dist/types/plugins/persist/index.d.ts +12 -19
- package/dist/types/plugins/resize/index.d.mts +5 -7
- package/dist/types/plugins/resize/index.d.ts +5 -7
- package/dist/types/plugins/transition/index.d.mts +7 -12
- package/dist/types/plugins/transition/index.d.ts +7 -12
- package/dist/types/store.d.mts +3 -6
- package/dist/types/store.d.ts +3 -6
- package/dist/types/utils.d.mts +3 -3
- package/dist/types/utils.d.ts +3 -3
- package/dist/types/warn.d.mts +6 -8
- package/dist/types/warn.d.ts +6 -8
- package/package.json +2 -1
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import type { Plugin } from '../../app.mjs';
|
|
2
2
|
/**
|
|
3
|
-
* v-transition:name="expression" — an animated v-show
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* v-transition:name="expression" — an animated v-show, using Vue-style
|
|
4
|
+
* classes: name-enter-from/-active/-to on show, name-leave-* before hiding.
|
|
5
|
+
* The element hides only once the leave transition finishes, its duration read
|
|
6
|
+
* from computed styles. The name defaults to "v", and the initial state does
|
|
7
|
+
* not animate unless `.appear` is present.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* With no expression (`v-transition:fade` on a v-if/v-for element) it
|
|
13
|
-
* switches to unmount mode: the enter transition runs when the element is
|
|
14
|
-
* inserted, and a leave hook is registered so the core delays removal until
|
|
15
|
-
* the leave transition finishes.
|
|
9
|
+
* With no expression, on a v-if/v-for element, it switches to unmount mode:
|
|
10
|
+
* enter runs on insertion, and a leave hook makes the core delay removal.
|
|
16
11
|
*/
|
|
17
12
|
export declare const transition: Plugin;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import type { Plugin } from '../../app';
|
|
2
2
|
/**
|
|
3
|
-
* v-transition:name="expression" — an animated v-show
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* v-transition:name="expression" — an animated v-show, using Vue-style
|
|
4
|
+
* classes: name-enter-from/-active/-to on show, name-leave-* before hiding.
|
|
5
|
+
* The element hides only once the leave transition finishes, its duration read
|
|
6
|
+
* from computed styles. The name defaults to "v", and the initial state does
|
|
7
|
+
* not animate unless `.appear` is present.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* With no expression (`v-transition:fade` on a v-if/v-for element) it
|
|
13
|
-
* switches to unmount mode: the enter transition runs when the element is
|
|
14
|
-
* inserted, and a leave hook is registered so the core delays removal until
|
|
15
|
-
* the leave transition finishes.
|
|
9
|
+
* With no expression, on a v-if/v-for element, it switches to unmount mode:
|
|
10
|
+
* enter runs on insertion, and a leave hook makes the core delay removal.
|
|
16
11
|
*/
|
|
17
12
|
export declare const transition: Plugin;
|
package/dist/types/store.d.mts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export declare const stores: Record<string, any>;
|
|
2
2
|
/**
|
|
3
|
-
* Register or retrieve a global store, shared across
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* store('cart', { items: [], add(i) { this.items.push(i) } }) registers a
|
|
7
|
-
* reactive store (an init() method, if present, runs once on registration);
|
|
8
|
-
* store('cart') retrieves it.
|
|
3
|
+
* Register or retrieve a global store, shared across apps and exposed to every
|
|
4
|
+
* expression as `$store.<name>`. Passing a value registers it and runs its
|
|
5
|
+
* `init()` once, if present; omitting one retrieves.
|
|
9
6
|
*/
|
|
10
7
|
export declare const store: <T extends Record<string, any>>(name: string, value?: T) => T;
|
package/dist/types/store.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export declare const stores: Record<string, any>;
|
|
2
2
|
/**
|
|
3
|
-
* Register or retrieve a global store, shared across
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* store('cart', { items: [], add(i) { this.items.push(i) } }) registers a
|
|
7
|
-
* reactive store (an init() method, if present, runs once on registration);
|
|
8
|
-
* store('cart') retrieves it.
|
|
3
|
+
* Register or retrieve a global store, shared across apps and exposed to every
|
|
4
|
+
* expression as `$store.<name>`. Passing a value registers it and runs its
|
|
5
|
+
* `init()` once, if present; omitting one retrieves.
|
|
9
6
|
*/
|
|
10
7
|
export declare const store: <T extends Record<string, any>>(name: string, value?: T) => T;
|
package/dist/types/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const checkAttr: (el: Element, name: string) => string | null;
|
|
2
2
|
/**
|
|
3
|
-
* Adds a listener and
|
|
4
|
-
* `app.unmount(el)`
|
|
5
|
-
*
|
|
3
|
+
* Adds a listener and returns a remover. Callers are expected to use it:
|
|
4
|
+
* `app.unmount(el)` leaves elements in the document, so a listener left behind
|
|
5
|
+
* would keep driving markup meant to be inert.
|
|
6
6
|
*/
|
|
7
7
|
export declare const listen: (el: Element, event: string, handler: any, options?: any) => () => void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const checkAttr: (el: Element, name: string) => string | null;
|
|
2
2
|
/**
|
|
3
|
-
* Adds a listener and
|
|
4
|
-
* `app.unmount(el)`
|
|
5
|
-
*
|
|
3
|
+
* Adds a listener and returns a remover. Callers are expected to use it:
|
|
4
|
+
* `app.unmount(el)` leaves elements in the document, so a listener left behind
|
|
5
|
+
* would keep driving markup meant to be inert.
|
|
6
6
|
*/
|
|
7
7
|
export declare const listen: (el: Element, event: string, handler: any, options?: any) => () => void;
|
package/dist/types/warn.d.mts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Development warnings.
|
|
3
3
|
*
|
|
4
|
-
* Every call site is guarded by `import.meta.env.DEV
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* does not say what to do instead is barely worth the bytes it does not cost.
|
|
4
|
+
* Every call site is guarded by `import.meta.env.DEV`; the production build
|
|
5
|
+
* replaces that constant and terser drops the branch, so neither these
|
|
6
|
+
* functions nor their strings ship. Messages are therefore free to be wordy —
|
|
7
|
+
* say what to do instead.
|
|
9
8
|
*/
|
|
10
9
|
export declare const warn: (msg: string) => void;
|
|
11
10
|
/**
|
|
12
|
-
* Warns once per `key`. Most
|
|
13
|
-
* relevant
|
|
14
|
-
* keystroke and train the reader to ignore the console.
|
|
11
|
+
* Warns once per `key`. Most callers are effects, which re-run on every
|
|
12
|
+
* relevant change — one mistake would otherwise print on every keystroke.
|
|
15
13
|
*/
|
|
16
14
|
export declare const warnOnce: (key: string, msg: string) => void;
|
package/dist/types/warn.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Development warnings.
|
|
3
3
|
*
|
|
4
|
-
* Every call site is guarded by `import.meta.env.DEV
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* does not say what to do instead is barely worth the bytes it does not cost.
|
|
4
|
+
* Every call site is guarded by `import.meta.env.DEV`; the production build
|
|
5
|
+
* replaces that constant and terser drops the branch, so neither these
|
|
6
|
+
* functions nor their strings ship. Messages are therefore free to be wordy —
|
|
7
|
+
* say what to do instead.
|
|
9
8
|
*/
|
|
10
9
|
export declare const warn: (msg: string) => void;
|
|
11
10
|
/**
|
|
12
|
-
* Warns once per `key`. Most
|
|
13
|
-
* relevant
|
|
14
|
-
* keystroke and train the reader to ignore the console.
|
|
11
|
+
* Warns once per `key`. Most callers are effects, which re-run on every
|
|
12
|
+
* relevant change — one mistake would otherwise print on every keystroke.
|
|
15
13
|
*/
|
|
16
14
|
export declare const warnOnce: (key: string, msg: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aevantec/litevue",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"lint:package": "publint --strict && attw --pack .",
|
|
187
187
|
"check:bundles": "node scripts/check-bundles.mjs",
|
|
188
188
|
"check:docs-versions": "node scripts/check-docs-versions.mjs",
|
|
189
|
+
"check:docs-sizes": "node scripts/check-docs-sizes.mjs",
|
|
189
190
|
"prepublishOnly": "pnpm build && publint --strict",
|
|
190
191
|
"docs:dev": "vitepress dev docs",
|
|
191
192
|
"docs:build": "vitepress build docs",
|