@gx-design-vue/context 0.0.5-beta.0 → 0.0.5-beta.1
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/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { SlotsType } from "vue";
|
|
3
|
+
import { EmptyEmit } from "@gx-design-vue/pro-utils";
|
|
3
4
|
|
|
4
5
|
//#region src/context/ContextProvider.d.ts
|
|
5
6
|
interface ContextProviderProps {
|
|
@@ -9,10 +10,9 @@ interface ContextProviderProps {
|
|
|
9
10
|
interface ContextProviderSlots {
|
|
10
11
|
default?: () => any;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
declare const ContextProvider: vue1.DefineSetupFnComponent<ContextProviderProps, EmptyEmit, SlotsType<ContextProviderSlots>, ContextProviderProps, vue1.PublicProps>;
|
|
13
|
+
declare const ContextProvider: vue0.DefineSetupFnComponent<ContextProviderProps, EmptyEmit, SlotsType<ContextProviderSlots>, ContextProviderProps, vue0.PublicProps>;
|
|
14
14
|
declare function useContextProvider<T = any>(contextInjectKey: string, defaultValue?: T): T & {
|
|
15
15
|
contextId: string;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
|
-
export { ContextProvider, ContextProviderSlots,
|
|
18
|
+
export { ContextProvider, ContextProviderSlots, useContextProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTheme, ThemeValue } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/theme-context/ThemeContext.d.ts
|
|
@@ -18,6 +18,6 @@ interface ThemeContextEmits {
|
|
|
18
18
|
interface ThemeContextSlots {
|
|
19
19
|
default?: () => any;
|
|
20
20
|
}
|
|
21
|
-
declare const ThemeContext:
|
|
21
|
+
declare const ThemeContext: vue1.DefineSetupFnComponent<ThemeContextProps, ThemeContextEmits, SlotsType<ThemeContextSlots>, ThemeContextProps, vue1.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ThemeContextEmits, ThemeContextSlots, ThemeContext as default };
|
package/global.d.ts
ADDED
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-beta.
|
|
4
|
+
"version": "0.0.5-beta.1",
|
|
5
5
|
"description": "Gx Design Context",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "gx12358",
|
|
@@ -25,12 +25,15 @@
|
|
|
25
25
|
"import": "./dist/*.js",
|
|
26
26
|
"default": "./dist/*.js"
|
|
27
27
|
},
|
|
28
|
+
"./global.d.ts": "./global.d.ts",
|
|
29
|
+
"./global": "./global.d.ts",
|
|
28
30
|
"./package.json": "./package.json"
|
|
29
31
|
},
|
|
30
32
|
"unpkg": "dist/context.js",
|
|
31
33
|
"jsdelivr": "dist/context.js",
|
|
32
34
|
"files": [
|
|
33
35
|
"dist",
|
|
36
|
+
"global.d.ts",
|
|
34
37
|
"package.json"
|
|
35
38
|
],
|
|
36
39
|
"contributes": {
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
},
|
|
46
49
|
"dependencies": {
|
|
47
50
|
"@vueuse/core": "^14.2.0",
|
|
48
|
-
"@gx-design-vue/pro-utils": "0.2.0-beta.
|
|
51
|
+
"@gx-design-vue/pro-utils": "0.2.0-beta.90"
|
|
49
52
|
},
|
|
50
53
|
"web-types": "web-types.json",
|
|
51
54
|
"browserslist": [
|