@histoire/vendors 0.10.2 → 0.10.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/parser",
3
- "version": "7.18.11",
3
+ "version": "7.18.13",
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",
@@ -1,11 +1,12 @@
1
1
  import Vue from 'vue'
2
- import type { PluginFunction, PluginObject, VueConstructor, VNode, VNodeDirective } from 'vue'
2
+ import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey, Component } from 'vue'
3
3
 
4
4
  declare const isVue2: boolean
5
5
  declare const isVue3: boolean
6
6
  declare const Vue2: typeof Vue | undefined
7
7
  declare const version: string
8
8
  declare const install: (vue?: typeof Vue) => void
9
+ export declare function warn(msg: string, vm?: Component | null): void
9
10
  /**
10
11
  * @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Vue2` or named exports instead.
11
12
  * Refer to https://github.com/vueuse/vue-demi/issues/41
@@ -20,23 +21,6 @@ export * from 'vue'
20
21
  export { V as Vue, Vue2, isVue2, isVue3, version, install }
21
22
 
22
23
  // #region createApp polyfill
23
- export type DirectiveModifiers = Record<string, boolean>
24
- export interface DirectiveBinding<V> extends Readonly<VNodeDirective> {
25
- readonly modifiers: DirectiveModifiers
26
- readonly value: V
27
- readonly oldValue: V | null
28
- }
29
- export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void
30
- export interface ObjectDirective<T = any, V = any> {
31
- bind?: DirectiveHook<T, any, V>
32
- inserted?: DirectiveHook<T, any, V>
33
- update?: DirectiveHook<T, any, V>
34
- componentUpdated?: DirectiveHook<T, any, V>
35
- unbind?: DirectiveHook<T, any, V>
36
- }
37
- export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>
38
- export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>
39
- export interface InjectionKey<T> extends Symbol {}
40
24
  export interface App<T = any> {
41
25
  config: VueConstructor['config']
42
26
  use: VueConstructor['use']
@@ -44,7 +28,7 @@ export interface App<T = any> {
44
28
  component: VueConstructor['component']
45
29
  directive(name: string): Directive | undefined
46
30
  directive(name: string, directive: Directive): this
47
- provide<T>(key: InjectionKey<T> | symbol | string, value: T): this
31
+ provide<T>(key: InjectionKey<T> | string, value: T): this
48
32
  mount: Vue['$mount']
49
33
  unmount: Vue['$destroy']
50
34
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },
@@ -1,11 +1,12 @@
1
1
  import Vue from 'vue'
2
- import type { PluginFunction, PluginObject, VueConstructor, VNode, VNodeDirective } from 'vue'
2
+ import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey, Component } from 'vue'
3
3
 
4
4
  declare const isVue2: boolean
5
5
  declare const isVue3: boolean
6
6
  declare const Vue2: typeof Vue | undefined
7
7
  declare const version: string
8
8
  declare const install: (vue?: typeof Vue) => void
9
+ export declare function warn(msg: string, vm?: Component | null): void
9
10
  /**
10
11
  * @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Vue2` or named exports instead.
11
12
  * Refer to https://github.com/vueuse/vue-demi/issues/41
@@ -20,23 +21,6 @@ export * from 'vue'
20
21
  export { V as Vue, Vue2, isVue2, isVue3, version, install }
21
22
 
22
23
  // #region createApp polyfill
23
- export type DirectiveModifiers = Record<string, boolean>
24
- export interface DirectiveBinding<V> extends Readonly<VNodeDirective> {
25
- readonly modifiers: DirectiveModifiers
26
- readonly value: V
27
- readonly oldValue: V | null
28
- }
29
- export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void
30
- export interface ObjectDirective<T = any, V = any> {
31
- bind?: DirectiveHook<T, any, V>
32
- inserted?: DirectiveHook<T, any, V>
33
- update?: DirectiveHook<T, any, V>
34
- componentUpdated?: DirectiveHook<T, any, V>
35
- unbind?: DirectiveHook<T, any, V>
36
- }
37
- export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>
38
- export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>
39
- export interface InjectionKey<T> extends Symbol {}
40
24
  export interface App<T = any> {
41
25
  config: VueConstructor['config']
42
26
  use: VueConstructor['use']
@@ -44,7 +28,7 @@ export interface App<T = any> {
44
28
  component: VueConstructor['component']
45
29
  directive(name: string): Directive | undefined
46
30
  directive(name: string, directive: Directive): this
47
- provide<T>(key: InjectionKey<T> | symbol | string, value: T): this
31
+ provide<T>(key: InjectionKey<T> | string, value: T): this
48
32
  mount: Vue['$mount']
49
33
  unmount: Vue['$destroy']
50
34
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/vendors",
3
- "version": "0.10.2",
3
+ "version": "0.10.5",
4
4
  "description": "Bundled vendors for histoire",
5
5
  "license": "MIT",
6
6
  "author": {