@gx-design-vue/context 0.0.5-alpha.1 → 0.0.5-alpha.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { PropType, SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/context/ContextProvider.d.ts
|
|
@@ -19,7 +19,7 @@ declare const contextProps: {
|
|
|
19
19
|
required: boolean;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
declare const ContextProvider:
|
|
22
|
+
declare const ContextProvider: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
23
23
|
contextKey: {
|
|
24
24
|
type: PropType<ContextProviderProps["contextKey"]>;
|
|
25
25
|
required: boolean;
|
|
@@ -28,7 +28,7 @@ declare const ContextProvider: vue6.DefineComponent<vue6.ExtractPropTypes<{
|
|
|
28
28
|
type: PropType<ContextProviderProps["value"]>;
|
|
29
29
|
required: boolean;
|
|
30
30
|
};
|
|
31
|
-
}>, () => any, {}, {}, {},
|
|
31
|
+
}>, () => any, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
32
32
|
contextKey: {
|
|
33
33
|
type: PropType<ContextProviderProps["contextKey"]>;
|
|
34
34
|
required: boolean;
|
|
@@ -37,7 +37,7 @@ declare const ContextProvider: vue6.DefineComponent<vue6.ExtractPropTypes<{
|
|
|
37
37
|
type: PropType<ContextProviderProps["value"]>;
|
|
38
38
|
required: boolean;
|
|
39
39
|
};
|
|
40
|
-
}>> & Readonly<{}>, {}, SlotsType<ContextProviderSlots>, {}, {}, string,
|
|
40
|
+
}>> & Readonly<{}>, {}, SlotsType<ContextProviderSlots>, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
declare function useContextProvider<T = any>(contextInjectKey: string, defaultValue?: T): T & {
|
|
42
42
|
contextId: string;
|
|
43
43
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTheme, ThemeValue } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue6 from "vue";
|
|
3
3
|
import { PropType, SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/theme-context/ThemeContext.d.ts
|
|
@@ -36,7 +36,7 @@ declare const themeContextProps: {
|
|
|
36
36
|
type: PropType<(theme: ThemeValue) => void>;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
declare const ThemeContext:
|
|
39
|
+
declare const ThemeContext: vue6.DefineComponent<vue6.ExtractPropTypes<{
|
|
40
40
|
theme: {
|
|
41
41
|
type: PropType<ThemeValue>;
|
|
42
42
|
};
|
|
@@ -53,7 +53,7 @@ declare const ThemeContext: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
|
53
53
|
onUpdateTheme: {
|
|
54
54
|
type: PropType<(theme: ThemeValue) => void>;
|
|
55
55
|
};
|
|
56
|
-
}>, () => any, {}, {}, {},
|
|
56
|
+
}>, () => any, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<vue6.ExtractPropTypes<{
|
|
57
57
|
theme: {
|
|
58
58
|
type: PropType<ThemeValue>;
|
|
59
59
|
};
|
|
@@ -72,6 +72,6 @@ declare const ThemeContext: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
|
72
72
|
};
|
|
73
73
|
}>> & Readonly<{}>, {
|
|
74
74
|
defaultTheme: ThemeValue;
|
|
75
|
-
}, SlotsType<ThemeContextSlots>, {}, {}, string,
|
|
75
|
+
}, SlotsType<ThemeContextSlots>, {}, {}, string, vue6.ComponentProvideOptions, true, {}, any>;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { ThemeContextEmits, ThemeContextProps, ThemeContextSlots, ThemeContext as default, themeContextProps };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/context",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.5-alpha.
|
|
4
|
+
"version": "0.0.5-alpha.2",
|
|
5
5
|
"description": "Gx Design Context",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "gx12358",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@vueuse/core": "^14.2.0",
|
|
44
|
-
"@gx-design-vue/pro-utils": "0.2.0-alpha.
|
|
44
|
+
"@gx-design-vue/pro-utils": "^0.2.0-alpha.2"
|
|
45
45
|
},
|
|
46
46
|
"browserslist": [
|
|
47
47
|
"> 1%",
|