@baleada/vue-composition 0.11.1 → 0.11.2
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 +2 -2
- package/lib/index.js +2 -2
- package/package.json +7 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShallowReactive } from 'vue';
|
|
1
|
+
import { ShallowReactive, Reactive } from 'vue';
|
|
2
2
|
import { AnimateableKeyframe, AnimateableOptions, Animateable, BroadcastableOptions, Broadcastable, CompareableOptions, Compareable, CompleteableOptions, Completeable, CopyableOptions, Copyable, DelayableEffect, DelayableOptions, Delayable, DrawableStroke, DrawableOptions, Drawable, FetchableOptions, Fetchable, FullscreenableGetElement, FullscreenableOptions, Fullscreenable, GrantableOptions, Grantable, ListenableSupportedType, ListenableOptions, Listenable, NavigateableOptions, Navigateable, PickableOptions, Pickable, ListenEffectParam, RecognizeableOptions, Recognizeable, ResolveableOptions, Resolveable, ShareableOptions, Shareable, StoreableOptions, Storeable } from '@baleada/logic';
|
|
3
3
|
|
|
4
4
|
declare function useAnimateable<Value extends string | number | any[]>(keyframes: AnimateableKeyframe<Value>[], options?: AnimateableOptions): ShallowReactive<Animateable<Value>>;
|
|
@@ -8,7 +8,7 @@ declare function useCompleteable(string: string, options?: CompleteableOptions):
|
|
|
8
8
|
declare function useCopyable(string: string, options?: CopyableOptions): ShallowReactive<Copyable>;
|
|
9
9
|
declare function useDelayable(effect: DelayableEffect, options?: DelayableOptions): ShallowReactive<Delayable>;
|
|
10
10
|
declare function useDrawable(stroke: DrawableStroke, options?: DrawableOptions): ShallowReactive<Drawable>;
|
|
11
|
-
declare function useFetchable(resource: string, options?: FetchableOptions):
|
|
11
|
+
declare function useFetchable<ResolveableValue>(resource: string, options?: FetchableOptions): Reactive<Fetchable<ResolveableValue>>;
|
|
12
12
|
declare function useFullscreenable<ElementType extends Element>(getElement: FullscreenableGetElement<ElementType>, options?: FullscreenableOptions): ShallowReactive<Fullscreenable<ElementType>>;
|
|
13
13
|
declare function useGrantable(descriptor: PermissionDescriptor, options?: GrantableOptions): ShallowReactive<Grantable>;
|
|
14
14
|
declare function useListenable<Type extends ListenableSupportedType, RecognizeableMetadata extends Record<any, any> = Record<any, any>>(type: Type, options?: ListenableOptions<Type, RecognizeableMetadata>): ShallowReactive<Listenable<Type, RecognizeableMetadata>>;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowReactive, onScopeDispose } from 'vue';
|
|
1
|
+
import { shallowReactive, onScopeDispose, reactive } from 'vue';
|
|
2
2
|
import { Animateable, Broadcastable, Compareable, Completeable, Copyable, Delayable, Drawable, Fetchable, Fullscreenable, Grantable, Listenable, Navigateable, Pickable, Recognizeable, Resolveable, Shareable, Storeable } from '@baleada/logic';
|
|
3
3
|
|
|
4
4
|
function useAnimateable(keyframes, options) {
|
|
@@ -42,7 +42,7 @@ function useDrawable(stroke, options) {
|
|
|
42
42
|
}
|
|
43
43
|
function useFetchable(resource, options) {
|
|
44
44
|
const instance = new Fetchable(resource, options);
|
|
45
|
-
const reactiveInstance =
|
|
45
|
+
const reactiveInstance = reactive(instance);
|
|
46
46
|
return reactiveInstance;
|
|
47
47
|
}
|
|
48
48
|
function useFullscreenable(getElement, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baleada/vue-composition",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Functions that expose Baleada Logic for composition in Vue.",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"baleada",
|
|
23
23
|
"vue",
|
|
24
24
|
"composition function",
|
|
25
|
-
"hook"
|
|
25
|
+
"hook",
|
|
26
|
+
"composable"
|
|
26
27
|
],
|
|
27
28
|
"author": {
|
|
28
29
|
"name": "Alex Vipond",
|
|
@@ -36,19 +37,19 @@
|
|
|
36
37
|
"homepage": "https://baleada.netlify,com",
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@baleada/prepare": "^0.5.42",
|
|
39
|
-
"@types/node": "^
|
|
40
|
+
"@types/node": "^22.10.2",
|
|
40
41
|
"dotenv": "^10.0.0",
|
|
41
42
|
"esbuild": "^0.18.2",
|
|
42
43
|
"esbuild-register": "^3.4.2",
|
|
43
44
|
"rollup": "^3.25.1",
|
|
44
45
|
"tslib": "^2.4.1",
|
|
45
|
-
"typescript": "^5.
|
|
46
|
+
"typescript": "^5.7.2",
|
|
46
47
|
"uvu": "^0.5.6"
|
|
47
48
|
},
|
|
48
49
|
"sideEffects": false,
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@babel/runtime": "^7.22.5",
|
|
51
|
-
"@baleada/logic": "^0.24.
|
|
52
|
-
"vue": "^3.
|
|
52
|
+
"@baleada/logic": "^0.24.19",
|
|
53
|
+
"vue": "^3.5.13"
|
|
53
54
|
}
|
|
54
55
|
}
|