@aevantec/litevue 0.5.4 → 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 -853
- package/dist/litevue-devtools.umd.js +1 -1
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -717
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.iife.js +1 -12
- package/dist/litevue.mjs +1 -1890
- package/dist/litevue.umd.js +1 -12
- package/dist/plugins/collapse.iife.js +1 -1
- package/dist/plugins/collapse.mjs +1 -46
- package/dist/plugins/collapse.umd.js +1 -1
- package/dist/plugins/focus.iife.js +1 -1
- package/dist/plugins/focus.mjs +1 -69
- package/dist/plugins/focus.umd.js +1 -1
- package/dist/plugins/intersect.iife.js +1 -1
- package/dist/plugins/intersect.mjs +1 -20
- package/dist/plugins/intersect.umd.js +1 -1
- package/dist/plugins/mask.iife.js +1 -1
- package/dist/plugins/mask.mjs +1 -37
- package/dist/plugins/mask.umd.js +1 -1
- package/dist/plugins/media.iife.js +1 -1
- package/dist/plugins/media.mjs +1 -204
- package/dist/plugins/media.umd.js +1 -1
- package/dist/plugins/morph.iife.js +1 -1
- package/dist/plugins/morph.mjs +1 -174
- package/dist/plugins/morph.umd.js +1 -1
- package/dist/plugins/persist.iife.js +1 -1
- package/dist/plugins/persist.mjs +1 -86
- package/dist/plugins/persist.umd.js +1 -1
- package/dist/plugins/resize.iife.js +1 -1
- package/dist/plugins/resize.mjs +1 -15
- package/dist/plugins/resize.umd.js +1 -1
- package/dist/plugins/transition.iife.js +1 -1
- package/dist/plugins/transition.mjs +1 -76
- package/dist/plugins/transition.umd.js +1 -1
- package/dist/types/app.d.mts +20 -2
- package/dist/types/app.d.ts +20 -2
- package/dist/types/block.d.mts +6 -0
- package/dist/types/block.d.ts +6 -0
- package/dist/types/context.d.mts +8 -4
- package/dist/types/context.d.ts +8 -4
- 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/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/magics.d.mts +5 -6
- package/dist/types/magics.d.ts +5 -6
- package/dist/types/ownership.d.mts +23 -0
- package/dist/types/ownership.d.ts +23 -0
- 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 -11
- package/dist/types/plugins/media/index.d.ts +6 -11
- 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/scheduler.d.mts +3 -0
- package/dist/types/scheduler.d.ts +3 -0
- 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 +14 -0
- package/dist/types/warn.d.ts +14 -0
- package/package.json +16 -8
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { type ReactiveEffectRunner } from '@vue/reactivity';
|
|
2
|
+
/** Stops an effect and remembers that it is stopped. Use instead of `stop`. */
|
|
3
|
+
export declare const stopEffect: (runner: ReactiveEffectRunner) => void;
|
|
1
4
|
export declare const nextTick: (fn: () => void) => Promise<void>;
|
|
2
5
|
export declare const queueJob: (job: Function) => void;
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Development warnings.
|
|
3
|
+
*
|
|
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.
|
|
8
|
+
*/
|
|
9
|
+
export declare const warn: (msg: string) => void;
|
|
10
|
+
/**
|
|
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.
|
|
13
|
+
*/
|
|
14
|
+
export declare const warnOnce: (key: string, msg: string) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Development warnings.
|
|
3
|
+
*
|
|
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.
|
|
8
|
+
*/
|
|
9
|
+
export declare const warn: (msg: string) => void;
|
|
10
|
+
/**
|
|
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.
|
|
13
|
+
*/
|
|
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,13 +186,17 @@
|
|
|
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",
|
|
192
193
|
"docs:preview": "vitepress preview docs",
|
|
193
194
|
"format": "prettier --write \"**/*.{ts,mts,js,html,json}\"",
|
|
194
195
|
"test": "vitest run",
|
|
195
|
-
"test:
|
|
196
|
+
"test:browser": "vitest run --config vitest.browser.config.mts",
|
|
197
|
+
"coverage": "vitest run --coverage",
|
|
198
|
+
"test:watch": "vitest",
|
|
199
|
+
"check:size": "node scripts/check-size.mjs"
|
|
196
200
|
},
|
|
197
201
|
"repository": {
|
|
198
202
|
"type": "git",
|
|
@@ -225,15 +229,19 @@
|
|
|
225
229
|
},
|
|
226
230
|
"devDependencies": {
|
|
227
231
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
232
|
+
"@vitest/browser": "^4.1.11",
|
|
233
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
234
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
228
235
|
"@vue/shared": "~3.4.0",
|
|
229
|
-
"jsdom": "^
|
|
236
|
+
"jsdom": "^30.0.1",
|
|
237
|
+
"playwright": "^1.62.1",
|
|
230
238
|
"prettier": "^3.4.0",
|
|
231
|
-
"publint": "^0.3.
|
|
232
|
-
"terser": "^5.
|
|
233
|
-
"typescript": "^
|
|
234
|
-
"vite": "^
|
|
239
|
+
"publint": "^0.3.24",
|
|
240
|
+
"terser": "^5.50.0",
|
|
241
|
+
"typescript": "^7.0.2",
|
|
242
|
+
"vite": "^8.2.2",
|
|
235
243
|
"vitepress": "^1.6.4",
|
|
236
|
-
"vitest": "^
|
|
244
|
+
"vitest": "^4.1.11"
|
|
237
245
|
},
|
|
238
246
|
"contributors": [
|
|
239
247
|
"Evan You (petite-vue, which this is forked from)"
|