@baleada/vue-composition 0.10.6 → 0.10.7

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/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { AnimateableKeyframe, AnimateableOptions, Animateable, CompleteableOptions, Completeable, CopyableOptions, Copyable, DelayableEffect, DelayableOptions, Delayable, ListenableSupportedEventType, DispatchableOptions, Dispatchable, DrawableState, DrawableOptions, Drawable, FetchableOptions, Fetchable, FullscreenableGetElement, FullscreenableOptions, Fullscreenable, GrantableOptions, Grantable, ListenableSupportedType, ListenableOptions, Listenable, NavigateableOptions, Navigateable, ListenEffectParam, RecognizeableOptions, Recognizeable, ResolveableGetPromise, ResolveableOptions, Resolveable, SanitizeableOptions, Sanitizeable, SearchableOptions, Searchable, StoreableOptions, Storeable } from '@baleada/logic';
2
+ import { AnimateableKeyframe, AnimateableOptions, Animateable, CompleteableOptions, Completeable, CopyableOptions, Copyable, DelayableEffect, DelayableOptions, Delayable, ListenableSupportedEventType, DispatchableOptions, Dispatchable, DrawableState, DrawableOptions, Drawable, FetchableOptions, Fetchable, FullscreenableGetElement, FullscreenableOptions, Fullscreenable, GrantableOptions, Grantable, ListenableSupportedType, ListenableOptions, Listenable, NavigateableOptions, Navigateable, PickableOptions, Pickable, ListenEffectParam, RecognizeableOptions, Recognizeable, ResolveableGetPromise, ResolveableOptions, Resolveable, SanitizeableOptions, Sanitizeable, SearchableOptions, Searchable, StoreableOptions, Storeable } from '@baleada/logic';
3
3
 
4
4
  declare function useAnimateable(keyframes: AnimateableKeyframe[], options?: AnimateableOptions): Ref<Animateable>;
5
5
  declare function useCompleteable(string: string, options?: CompleteableOptions): Ref<Completeable>;
@@ -12,10 +12,11 @@ declare function useFullscreenable<ElementType extends Element>(getElement: Full
12
12
  declare function useGrantable<DescriptorType extends PermissionDescriptor>(descriptor: DescriptorType, options?: GrantableOptions): Ref<Grantable<DescriptorType>>;
13
13
  declare function useListenable<Type extends ListenableSupportedType, RecognizeableMetadata extends Record<any, any> = Record<any, any>>(type: Type, options?: ListenableOptions<Type, RecognizeableMetadata>): Ref<Listenable<Type, RecognizeableMetadata>>;
14
14
  declare function useNavigateable<Item>(array: Item[], options?: NavigateableOptions): Ref<Navigateable<Item>>;
15
+ declare function usePickable<Item>(array: Item[], options?: PickableOptions): Ref<Pickable<Item>>;
15
16
  declare function useRecognizeable<Type extends ListenableSupportedType, Metadata extends Record<any, any>>(sequence: ListenEffectParam<Type>[], options?: RecognizeableOptions<Type, Metadata>): Ref<Recognizeable<Type, Metadata>>;
16
17
  declare function useResolveable<Value>(getPromise: ResolveableGetPromise<Value>, options?: ResolveableOptions): Ref<Resolveable<Value>>;
17
18
  declare function useSanitizeable(html: string, options?: SanitizeableOptions): Ref<Sanitizeable>;
18
19
  declare function useSearchable<Item extends string | object>(candidates: Item[], options?: SearchableOptions<Item>): Ref<Searchable<Item>>;
19
20
  declare function useStoreable(key: string, options?: StoreableOptions): Ref<Storeable>;
20
21
 
21
- export { useAnimateable, useCompleteable, useCopyable, useDelayable, useDispatchable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useStoreable };
22
+ export { useAnimateable, useCompleteable, useCopyable, useDelayable, useDispatchable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useStoreable };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ref, onBeforeUnmount } from 'vue';
2
- import { Animateable, Completeable, Copyable, Delayable, Dispatchable, Drawable, Fetchable, Fullscreenable, Grantable, Listenable, Navigateable, Recognizeable, Resolveable, Sanitizeable, Searchable, Storeable } from '@baleada/logic';
2
+ import { Animateable, Completeable, Copyable, Delayable, Dispatchable, Drawable, Fetchable, Fullscreenable, Grantable, Listenable, Navigateable, Pickable, Recognizeable, Resolveable, Sanitizeable, Searchable, Storeable } from '@baleada/logic';
3
3
 
4
4
  function useAnimateable(keyframes, options) {
5
5
  const instance = new Animateable(keyframes, options);
@@ -60,6 +60,11 @@ function useNavigateable(array, options) {
60
60
  const reactiveInstance = ref(instance);
61
61
  return reactiveInstance;
62
62
  }
63
+ function usePickable(array, options) {
64
+ const instance = new Pickable(array, options);
65
+ const reactiveInstance = ref(instance);
66
+ return reactiveInstance;
67
+ }
63
68
  function useRecognizeable(sequence, options) {
64
69
  const instance = new Recognizeable(sequence, options);
65
70
  const reactiveInstance = ref(instance);
@@ -86,4 +91,4 @@ function useStoreable(key, options) {
86
91
  return reactiveInstance;
87
92
  }
88
93
 
89
- export { useAnimateable, useCompleteable, useCopyable, useDelayable, useDispatchable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useStoreable };
94
+ export { useAnimateable, useCompleteable, useCopyable, useDelayable, useDispatchable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useStoreable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baleada/vue-composition",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "description": "Functions that expose Baleada Logic for composition in Vue.",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
@@ -47,7 +47,7 @@
47
47
  "sideEffects": false,
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.13.17",
50
- "@baleada/logic": "^0.20.13",
50
+ "@baleada/logic": "^0.20.16",
51
51
  "vue": "^3.2.2"
52
52
  }
53
53
  }