@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.
Files changed (46) hide show
  1. package/README.md +3 -2
  2. package/dist/litevue-devtools.iife.js +1 -1
  3. package/dist/litevue-devtools.mjs +1 -1
  4. package/dist/litevue-devtools.umd.js +1 -1
  5. package/dist/litevue-plugins.iife.js +1 -1
  6. package/dist/litevue-plugins.mjs +1 -1
  7. package/dist/litevue-plugins.umd.js +1 -1
  8. package/dist/litevue.iife.js +1 -1
  9. package/dist/litevue.mjs +1 -1
  10. package/dist/litevue.umd.js +1 -1
  11. package/dist/plugins/morph.iife.js +1 -1
  12. package/dist/plugins/morph.mjs +1 -1
  13. package/dist/plugins/morph.umd.js +1 -1
  14. package/dist/types/app.d.mts +8 -18
  15. package/dist/types/app.d.ts +8 -18
  16. package/dist/types/block.d.mts +1 -2
  17. package/dist/types/block.d.ts +1 -2
  18. package/dist/types/context.d.mts +5 -8
  19. package/dist/types/context.d.ts +5 -8
  20. package/dist/types/devtools.d.mts +7 -0
  21. package/dist/types/devtools.d.ts +7 -0
  22. package/dist/types/effect.d.mts +6 -10
  23. package/dist/types/effect.d.ts +6 -10
  24. package/dist/types/magics.d.mts +5 -6
  25. package/dist/types/magics.d.ts +5 -6
  26. package/dist/types/ownership.d.mts +9 -16
  27. package/dist/types/ownership.d.ts +9 -16
  28. package/dist/types/plugins/focus/index.d.mts +6 -8
  29. package/dist/types/plugins/focus/index.d.ts +6 -8
  30. package/dist/types/plugins/media/index.d.mts +6 -7
  31. package/dist/types/plugins/media/index.d.ts +6 -7
  32. package/dist/types/plugins/morph/index.d.mts +21 -10
  33. package/dist/types/plugins/morph/index.d.ts +21 -10
  34. package/dist/types/plugins/persist/index.d.mts +12 -19
  35. package/dist/types/plugins/persist/index.d.ts +12 -19
  36. package/dist/types/plugins/resize/index.d.mts +5 -7
  37. package/dist/types/plugins/resize/index.d.ts +5 -7
  38. package/dist/types/plugins/transition/index.d.mts +7 -12
  39. package/dist/types/plugins/transition/index.d.ts +7 -12
  40. package/dist/types/store.d.mts +3 -6
  41. package/dist/types/store.d.ts +3 -6
  42. package/dist/types/utils.d.mts +3 -3
  43. package/dist/types/utils.d.ts +3 -3
  44. package/dist/types/warn.d.mts +6 -8
  45. package/dist/types/warn.d.ts +6 -8
  46. 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. Toggles the element
4
- * with Vue-style transition classes: name-enter-from / name-enter-active /
5
- * name-enter-to on show, and name-leave-from / name-leave-active /
6
- * name-leave-to before hiding. The element is only hidden after the leave
7
- * transition finishes (duration is read from computed styles).
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
- * The name defaults to "v". The initial state applies without animating
10
- * unless the .appear modifier is present. Use it instead of v-show.
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. Toggles the element
4
- * with Vue-style transition classes: name-enter-from / name-enter-active /
5
- * name-enter-to on show, and name-leave-from / name-leave-active /
6
- * name-leave-to before hiding. The element is only hidden after the leave
7
- * transition finishes (duration is read from computed styles).
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
- * The name defaults to "v". The initial state applies without animating
10
- * unless the .appear modifier is present. Use it instead of v-show.
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,10 +1,7 @@
1
1
  export declare const stores: Record<string, any>;
2
2
  /**
3
- * Register or retrieve a global store, shared across all apps and available
4
- * to every expression as $store.<name>.
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;
@@ -1,10 +1,7 @@
1
1
  export declare const stores: Record<string, any>;
2
2
  /**
3
- * Register or retrieve a global store, shared across all apps and available
4
- * to every expression as $store.<name>.
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;
@@ -1,7 +1,7 @@
1
1
  export declare const checkAttr: (el: Element, name: string) => string | null;
2
2
  /**
3
- * Adds a listener and hands back a remover. Callers are expected to use it:
4
- * `app.unmount(el)` tears down a region whose elements stay in the document, so
5
- * a listener left behind would keep driving markup that is meant to be inert.
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;
@@ -1,7 +1,7 @@
1
1
  export declare const checkAttr: (el: Element, name: string) => string | null;
2
2
  /**
3
- * Adds a listener and hands back a remover. Callers are expected to use it:
4
- * `app.unmount(el)` tears down a region whose elements stay in the document, so
5
- * a listener left behind would keep driving markup that is meant to be inert.
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;
@@ -1,16 +1,14 @@
1
1
  /**
2
2
  * Development warnings.
3
3
  *
4
- * Every call site is guarded by `import.meta.env.DEV`, and the guard is what
5
- * removes them: the production build replaces that constant and terser drops
6
- * the branch, so neither these functions nor their message strings reach a
7
- * shipped bundle. Warnings are therefore free to be wordy — a warning that
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 of these fire from effects, which re-run on every
13
- * relevant state change — without this a single mistake would print on every
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;
@@ -1,16 +1,14 @@
1
1
  /**
2
2
  * Development warnings.
3
3
  *
4
- * Every call site is guarded by `import.meta.env.DEV`, and the guard is what
5
- * removes them: the production build replaces that constant and terser drops
6
- * the branch, so neither these functions nor their message strings reach a
7
- * shipped bundle. Warnings are therefore free to be wordy — a warning that
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 of these fire from effects, which re-run on every
13
- * relevant state change — without this a single mistake would print on every
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.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",