@baleada/vue-composition 0.10.12 → 0.10.13

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,8 +1,9 @@
1
1
  import { Ref } from 'vue';
2
- import { AnimateableKeyframe, AnimateableOptions, Animateable, BroadcastableOptions, Broadcastable, CompleteableOptions, Completeable, CopyableOptions, Copyable, DelayableEffect, DelayableOptions, Delayable, 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, ShareableOptions, Shareable, StoreableOptions, Storeable } from '@baleada/logic';
2
+ import { AnimateableKeyframe, AnimateableOptions, Animateable, BroadcastableOptions, Broadcastable, CompareableOptions, Compareable, CompleteableOptions, Completeable, CopyableOptions, Copyable, DelayableEffect, DelayableOptions, Delayable, 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, ShareableOptions, Shareable, StoreableOptions, Storeable } from '@baleada/logic';
3
3
 
4
4
  declare function useAnimateable(keyframes: AnimateableKeyframe[], options?: AnimateableOptions): Ref<Animateable>;
5
5
  declare function useBroadcastable<State>(state: State, options?: BroadcastableOptions): Ref<Broadcastable<State>>;
6
+ declare function useCompareable(string: string, options?: CompareableOptions): Ref<Compareable>;
6
7
  declare function useCompleteable(string: string, options?: CompleteableOptions): Ref<Completeable>;
7
8
  declare function useCopyable(string: string, options?: CopyableOptions): Ref<Copyable>;
8
9
  declare function useDelayable(effect: DelayableEffect, options?: DelayableOptions): Ref<Delayable>;
@@ -20,4 +21,4 @@ declare function useSearchable<Item extends string | object>(candidates: Item[],
20
21
  declare function useShareable(state: ShareData, options?: ShareableOptions): Ref<Shareable>;
21
22
  declare function useStoreable<String extends string>(key: string, options?: StoreableOptions): Ref<Storeable<String>>;
22
23
 
23
- export { useAnimateable, useBroadcastable, useCompleteable, useCopyable, useDelayable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useShareable, useStoreable };
24
+ export { useAnimateable, useBroadcastable, useCompareable, useCompleteable, useCopyable, useDelayable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useShareable, useStoreable };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ref, onBeforeUnmount } from 'vue';
2
- import { Animateable, Broadcastable, Completeable, Copyable, Delayable, Drawable, Fetchable, Fullscreenable, Grantable, Listenable, Navigateable, Pickable, Recognizeable, Resolveable, Sanitizeable, Searchable, Shareable, Storeable } from '@baleada/logic';
2
+ import { Animateable, Broadcastable, Compareable, Completeable, Copyable, Delayable, Drawable, Fetchable, Fullscreenable, Grantable, Listenable, Navigateable, Pickable, Recognizeable, Resolveable, Sanitizeable, Searchable, Shareable, Storeable } from '@baleada/logic';
3
3
 
4
4
  function useAnimateable(keyframes, options) {
5
5
  const instance = new Animateable(keyframes, options);
@@ -13,6 +13,11 @@ function useBroadcastable(state, options) {
13
13
  onBeforeUnmount(() => reactiveInstance.value.stop());
14
14
  return reactiveInstance;
15
15
  }
16
+ function useCompareable(string, options) {
17
+ const instance = new Compareable(string, options);
18
+ const reactiveInstance = ref(instance);
19
+ return reactiveInstance;
20
+ }
16
21
  function useCompleteable(string, options) {
17
22
  const instance = new Completeable(string, options);
18
23
  const reactiveInstance = ref(instance);
@@ -97,4 +102,4 @@ function useStoreable(key, options) {
97
102
  return reactiveInstance;
98
103
  }
99
104
 
100
- export { useAnimateable, useBroadcastable, useCompleteable, useCopyable, useDelayable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useShareable, useStoreable };
105
+ export { useAnimateable, useBroadcastable, useCompareable, useCompleteable, useCopyable, useDelayable, useDrawable, useFetchable, useFullscreenable, useGrantable, useListenable, useNavigateable, usePickable, useRecognizeable, useResolveable, useSanitizeable, useSearchable, useShareable, useStoreable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baleada/vue-composition",
3
- "version": "0.10.12",
3
+ "version": "0.10.13",
4
4
  "description": "Functions that expose Baleada Logic for composition in Vue.",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
@@ -35,20 +35,20 @@
35
35
  },
36
36
  "homepage": "https://baleada.netlify,com",
37
37
  "devDependencies": {
38
- "@baleada/prepare": "^0.5.29",
38
+ "@baleada/prepare": "^0.5.42",
39
39
  "@types/node": "^14.14.41",
40
40
  "dotenv": "^10.0.0",
41
- "esbuild": "^0.16.15",
41
+ "esbuild": "^0.18.2",
42
42
  "esbuild-register": "^3.4.2",
43
- "rollup": "^3.9.1",
43
+ "rollup": "^3.25.1",
44
44
  "tslib": "^2.4.1",
45
- "typescript": "^4.9.4",
45
+ "typescript": "^5.1.3",
46
46
  "uvu": "^0.5.6"
47
47
  },
48
48
  "sideEffects": false,
49
49
  "dependencies": {
50
- "@babel/runtime": "^7.20.7",
51
- "@baleada/logic": "^0.22.4",
52
- "vue": "^3.2.45"
50
+ "@babel/runtime": "^7.22.5",
51
+ "@baleada/logic": "^0.23.0",
52
+ "vue": "^3.3.4"
53
53
  }
54
54
  }