@antdv-next/cssinjs 1.0.0-rc.3 → 1.0.0

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.
@@ -46,6 +46,46 @@ function provideStyleContext(app, props) {
46
46
  function useStyleContext() {
47
47
  return inject(StyleContextKey, ref(defaultStyleContext));
48
48
  }
49
+ const styleContextProps = {
50
+ autoClear: {
51
+ type: Boolean,
52
+ default: void 0
53
+ },
54
+ mock: {
55
+ type: String,
56
+ default: void 0
57
+ },
58
+ cache: { type: Object },
59
+ defaultCache: { type: Boolean },
60
+ hashPriority: {
61
+ type: String,
62
+ default: void 0
63
+ },
64
+ container: {
65
+ type: [Object],
66
+ default: void 0
67
+ },
68
+ ssrInline: {
69
+ type: Boolean,
70
+ default: void 0
71
+ },
72
+ transformers: {
73
+ type: Array,
74
+ default: void 0
75
+ },
76
+ linters: {
77
+ type: Array,
78
+ default: void 0
79
+ },
80
+ layer: {
81
+ type: Boolean,
82
+ default: void 0
83
+ },
84
+ autoPrefix: {
85
+ type: Boolean,
86
+ default: void 0
87
+ }
88
+ };
49
89
  const StyleProvider = defineComponent((props, { slots }) => {
50
90
  const parentContext = useStyleContext();
51
91
  useStyleContextProvide(computed(() => {
@@ -64,18 +104,7 @@ const StyleProvider = defineComponent((props, { slots }) => {
64
104
  return () => {
65
105
  return slots?.default?.();
66
106
  };
67
- }, { props: [
68
- "cache",
69
- "hashPriority",
70
- "defaultCache",
71
- "autoClear",
72
- "layer",
73
- "linters",
74
- "container",
75
- "mock",
76
- "ssrInline",
77
- "transformers"
78
- ] });
107
+ }, { props: styleContextProps });
79
108
 
80
109
  //#endregion
81
110
  export { ATTR_CACHE_PATH, ATTR_MARK, ATTR_TOKEN, CSS_IN_JS_INSTANCE, StyleProvider, createCache, provideStyleContext, useStyleContext, useStyleContextProvide };
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@antdv-next/cssinjs",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.3",
4
+ "version": "1.0.0",
5
5
  "description": "cssinjs solution for ant-design-vue",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/antdv-next/antdv-next.git",
9
+ "directory": "packages/cssinjs"
10
+ },
6
11
  "exports": {
7
12
  ".": {
8
13
  "types": "./dist/index.d.mts",
@@ -30,7 +35,7 @@
30
35
  "dependencies": {
31
36
  "@emotion/hash": "^0.8.0",
32
37
  "@emotion/unitless": "^0.7.5",
33
- "@v-c/util": "^1.0.9",
38
+ "@v-c/util": "^1.0.11",
34
39
  "csstype": "^3.2.3",
35
40
  "defu": "^6.1.4",
36
41
  "stylis": "^4.3.6"