@aevantec/litevue 0.5.17 → 0.6.1

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 (55) hide show
  1. package/LICENSE +2 -1
  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.dev.iife.js +63 -47
  6. package/dist/litevue-plugins.dev.mjs +63 -47
  7. package/dist/litevue-plugins.iife.js +1 -1
  8. package/dist/litevue-plugins.mjs +1 -1
  9. package/dist/litevue-plugins.umd.js +1 -1
  10. package/dist/litevue.dev.iife.js +28 -21
  11. package/dist/litevue.dev.mjs +28 -21
  12. package/dist/litevue.iife.js +1 -1
  13. package/dist/litevue.mjs +1 -1
  14. package/dist/litevue.umd.js +1 -1
  15. package/dist/plugins/collapse.iife.js +1 -1
  16. package/dist/plugins/collapse.mjs +1 -1
  17. package/dist/plugins/collapse.umd.js +1 -1
  18. package/dist/plugins/focus.iife.js +1 -1
  19. package/dist/plugins/focus.mjs +1 -1
  20. package/dist/plugins/focus.umd.js +1 -1
  21. package/dist/plugins/mask.iife.js +1 -1
  22. package/dist/plugins/mask.mjs +1 -1
  23. package/dist/plugins/mask.umd.js +1 -1
  24. package/dist/plugins/morph.dev.iife.js +24 -5
  25. package/dist/plugins/morph.dev.mjs +24 -5
  26. package/dist/plugins/morph.iife.js +1 -1
  27. package/dist/plugins/morph.mjs +1 -1
  28. package/dist/plugins/morph.umd.js +1 -1
  29. package/dist/plugins/navigate.dev.iife.js +26 -20
  30. package/dist/plugins/navigate.dev.mjs +26 -20
  31. package/dist/plugins/navigate.iife.js +1 -1
  32. package/dist/plugins/navigate.mjs +1 -1
  33. package/dist/plugins/navigate.umd.js +1 -1
  34. package/dist/plugins/persist.dev.iife.js +6 -8
  35. package/dist/plugins/persist.dev.mjs +6 -8
  36. package/dist/plugins/persist.iife.js +1 -1
  37. package/dist/plugins/persist.mjs +1 -1
  38. package/dist/plugins/persist.umd.js +1 -1
  39. package/dist/plugins/popover.iife.js +1 -1
  40. package/dist/plugins/popover.mjs +1 -1
  41. package/dist/plugins/popover.umd.js +1 -1
  42. package/dist/plugins/transition.iife.js +1 -1
  43. package/dist/plugins/transition.mjs +1 -1
  44. package/dist/plugins/transition.umd.js +1 -1
  45. package/dist/types/devtools-panel/values.d.mts +6 -0
  46. package/dist/types/devtools-panel/values.d.ts +6 -0
  47. package/dist/types/directives/index.d.mts +2 -0
  48. package/dist/types/directives/index.d.ts +2 -0
  49. package/dist/types/plugins/focus/index.d.mts +1 -1
  50. package/dist/types/plugins/focus/index.d.ts +1 -1
  51. package/dist/types/plugins/morph/index.d.mts +6 -0
  52. package/dist/types/plugins/morph/index.d.ts +6 -0
  53. package/dist/types/scheduler.d.mts +1 -1
  54. package/dist/types/scheduler.d.ts +1 -1
  55. package/package.json +10 -10
@@ -13,3 +13,5 @@ export interface DirectiveContext<T = Element> {
13
13
  ctx: Context;
14
14
  }
15
15
  export declare const builtInDirectives: Record<string, Directive<any>>;
16
+ export declare const structuralDirectives: string[];
17
+ export declare const isBuiltInDirective: (name: string) => boolean;
@@ -13,3 +13,5 @@ export interface DirectiveContext<T = Element> {
13
13
  ctx: Context;
14
14
  }
15
15
  export declare const builtInDirectives: Record<string, Directive<any>>;
16
+ export declare const structuralDirectives: string[];
17
+ export declare const isBuiltInDirective: (name: string) => boolean;
@@ -2,7 +2,7 @@ import type { Plugin } from '../../app.mjs';
2
2
  /**
3
3
  * Focus utilities.
4
4
  *
5
- * v-focus="expression" — focuses the element while the expression is truthy,
5
+ * v-focus="expression" — focuses the element when the expression becomes truthy,
6
6
  * on mount included, making it an autofocus.
7
7
  * - .select also select the text (inputs/textareas)
8
8
  *
@@ -2,7 +2,7 @@ import type { Plugin } from '../../app';
2
2
  /**
3
3
  * Focus utilities.
4
4
  *
5
- * v-focus="expression" — focuses the element while the expression is truthy,
5
+ * v-focus="expression" — focuses the element when the expression becomes truthy,
6
6
  * on mount included, making it an autofocus.
7
7
  * - .select also select the text (inputs/textareas)
8
8
  *
@@ -39,6 +39,12 @@ export interface MorphOptions {
39
39
  * returns. Without the API it patches immediately, as if the option were off.
40
40
  */
41
41
  transition?: boolean;
42
+ /**
43
+ * Set `value`, `checked` and `selected` from the incoming markup, as a full
44
+ * load would, so typed text gives way to the server's. Fields the client
45
+ * binds, and `data-morph-skip` subtrees, keep theirs.
46
+ */
47
+ values?: boolean;
42
48
  }
43
49
  /**
44
50
  * morph(from, to) — patch `from` in place so it matches `to`, which may be an
@@ -39,6 +39,12 @@ export interface MorphOptions {
39
39
  * returns. Without the API it patches immediately, as if the option were off.
40
40
  */
41
41
  transition?: boolean;
42
+ /**
43
+ * Set `value`, `checked` and `selected` from the incoming markup, as a full
44
+ * load would, so typed text gives way to the server's. Fields the client
45
+ * binds, and `data-morph-skip` subtrees, keep theirs.
46
+ */
47
+ values?: boolean;
42
48
  }
43
49
  /**
44
50
  * morph(from, to) — patch `from` in place so it matches `to`, which may be an
@@ -4,7 +4,7 @@ export declare const stopEffect: (runner: ReactiveEffectRunner) => void;
4
4
  export type Job = Function & {
5
5
  i?: number;
6
6
  };
7
- export declare const nextTick: (fn: () => void) => Promise<void>;
7
+ export declare const nextTick: (fn?: () => void) => Promise<void>;
8
8
  /**
9
9
  * Stamps a job with its creation order, which the flush runs in. An effect
10
10
  * stamped as it is created sorts before the children its first run creates.
@@ -4,7 +4,7 @@ export declare const stopEffect: (runner: ReactiveEffectRunner) => void;
4
4
  export type Job = Function & {
5
5
  i?: number;
6
6
  };
7
- export declare const nextTick: (fn: () => void) => Promise<void>;
7
+ export declare const nextTick: (fn?: () => void) => Promise<void>;
8
8
  /**
9
9
  * Stamps a job with its creation order, which the flush runs in. An effect
10
10
  * stamped as it is created sorts before the children its first run creates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aevantec/litevue",
3
- "version": "0.5.17",
3
+ "version": "0.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -255,30 +255,30 @@
255
255
  },
256
256
  "homepage": "https://litevue.dev",
257
257
  "engines": {
258
- "node": ">=18"
258
+ "node": ">=22"
259
259
  },
260
- "packageManager": "pnpm@10.30.3",
260
+ "packageManager": "pnpm@12.18.0",
261
261
  "dependencies": {
262
262
  "@vue/reactivity": "~3.4.0"
263
263
  },
264
264
  "devDependencies": {
265
265
  "@arethetypeswrong/cli": "^0.18.5",
266
- "@tailwindcss/vite": "4.3.3",
267
- "@vitest/browser": "^4.1.11",
268
- "@vitest/browser-playwright": "^4.1.11",
269
- "@vitest/coverage-v8": "^4.1.11",
266
+ "@tailwindcss/vite": "4.3.4",
267
+ "@vitest/browser": "^5.1.0",
268
+ "@vitest/browser-playwright": "^5.1.0",
269
+ "@vitest/coverage-v8": "^5.1.0",
270
270
  "@vue/shared": "~3.4.0",
271
- "jsdom": "^30.0.1",
271
+ "jsdom": "^31.0.0",
272
272
  "oxlint": "^1.80.0",
273
273
  "playwright": "^1.62.1",
274
274
  "prettier": "^3.4.0",
275
275
  "publint": "^0.3.24",
276
- "tailwindcss": "4.3.3",
276
+ "tailwindcss": "4.3.4",
277
277
  "terser": "^5.50.0",
278
278
  "typescript": "^7.0.2",
279
279
  "vite": "^8.2.2",
280
280
  "vitepress": "^1.6.4",
281
- "vitest": "^4.1.11"
281
+ "vitest": "^5.1.0"
282
282
  },
283
283
  "contributors": [
284
284
  "Evan You (petite-vue, which this is forked from)"