@hybridly/vue 0.1.0-alpha.6 → 0.1.0-alpha.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/dist/index.cjs +1 -0
- package/dist/index.d.ts +9 -7
- package/dist/index.mjs +1 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -771,6 +771,7 @@ const registerHook = (hook, fn, options) => {
|
|
|
771
771
|
function useDialog() {
|
|
772
772
|
return {
|
|
773
773
|
close: () => hybridly.router.dialog.close(),
|
|
774
|
+
closeLocally: () => hybridly.router.dialog.close({ local: true }),
|
|
774
775
|
unmount: () => dialogStore.removeComponent(),
|
|
775
776
|
show: vue.computed(() => dialogStore.state.show.value),
|
|
776
777
|
properties: vue.computed(() => state.context.value?.dialog?.properties)
|
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,13 @@ type PathImpl<T, K extends keyof T> = K extends string ? T[K] extends undefined
|
|
|
187
187
|
type Path<T> = PathImpl<T, keyof T> | keyof T;
|
|
188
188
|
type PathValue<T, P extends Path<T>> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? T[K] extends undefined ? undefined : Rest extends Path<T[K]> ? PathValue<T[K], Rest> : Rest extends Path<NonNullable<T[K]>> ? PathValue<NonNullable<T[K]>, Rest> | undefined : never : never : P extends keyof T ? T[P] extends undefined ? undefined : T[P] : never;
|
|
189
189
|
|
|
190
|
+
type UrlResolvable = string | URL | Location;
|
|
191
|
+
type UrlTransformable = BaseUrlTransformable | ((string: URL) => BaseUrlTransformable);
|
|
192
|
+
type BaseUrlTransformable = Partial<Omit<URL, 'searchParams' | 'toJSON' | 'toString'>> & {
|
|
193
|
+
query?: any;
|
|
194
|
+
trailingSlash?: boolean;
|
|
195
|
+
};
|
|
196
|
+
|
|
190
197
|
type MaybePromise<T> = T | Promise<T>;
|
|
191
198
|
|
|
192
199
|
interface RequestHooks {
|
|
@@ -273,13 +280,6 @@ interface RouteDefinition {
|
|
|
273
280
|
name: string;
|
|
274
281
|
}
|
|
275
282
|
|
|
276
|
-
type UrlResolvable = string | URL | Location;
|
|
277
|
-
type UrlTransformable = BaseUrlTransformable | ((string: URL) => BaseUrlTransformable);
|
|
278
|
-
type BaseUrlTransformable = Partial<Omit<URL, 'searchParams' | 'toJSON' | 'toString'>> & {
|
|
279
|
-
query?: any;
|
|
280
|
-
trailingSlash?: boolean;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
283
|
type ConditionalNavigationOption<T extends boolean | string> = T | ((payload: NavigationOptions) => T);
|
|
284
284
|
interface NavigationOptions {
|
|
285
285
|
/** View to navigate to. */
|
|
@@ -650,6 +650,8 @@ declare const registerHook: typeof registerHook$1;
|
|
|
650
650
|
declare function useDialog(): {
|
|
651
651
|
/** Closes the dialog. */
|
|
652
652
|
close: () => void;
|
|
653
|
+
/** Closes the dialog without a server round-trip. */
|
|
654
|
+
closeLocally: () => void;
|
|
653
655
|
/** Unmounts the dialog. Should be called after its closing animations. */
|
|
654
656
|
unmount: () => void;
|
|
655
657
|
/** Whether the dialog is shown. */
|
package/dist/index.mjs
CHANGED
|
@@ -763,6 +763,7 @@ const registerHook = (hook, fn, options) => {
|
|
|
763
763
|
function useDialog() {
|
|
764
764
|
return {
|
|
765
765
|
close: () => router$1.dialog.close(),
|
|
766
|
+
closeLocally: () => router$1.dialog.close({ local: true }),
|
|
766
767
|
unmount: () => dialogStore.removeComponent(),
|
|
767
768
|
show: computed(() => dialogStore.state.show.value),
|
|
768
769
|
properties: computed(() => state.context.value?.dialog?.properties)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vue",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "Vue adapter for Hybridly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hybridly",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"lodash.isequal": "^4.5.0",
|
|
44
44
|
"nprogress": "^0.2.0",
|
|
45
45
|
"qs": "^6.11.1",
|
|
46
|
-
"@hybridly/config": "0.1.0-alpha.
|
|
47
|
-
"@hybridly/core": "0.1.0-alpha.
|
|
48
|
-
"@hybridly/progress-plugin": "0.1.0-alpha.
|
|
49
|
-
"@hybridly/utils": "0.1.0-alpha.
|
|
46
|
+
"@hybridly/config": "0.1.0-alpha.7",
|
|
47
|
+
"@hybridly/core": "0.1.0-alpha.7",
|
|
48
|
+
"@hybridly/progress-plugin": "0.1.0-alpha.7",
|
|
49
|
+
"@hybridly/utils": "0.1.0-alpha.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/lodash": "^4.14.191",
|